/*
 *             Copyright (c) 2003-2026, 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.              |
 *          |                                                                                 |
 *          |                                                                                 |
 *          +---------------------------------------------------------------------------------+
 *
 *
 *
 *
 */
import{Command as _0x44d8e7,Context as _0x9e63ec,ContextPlugin as _0x4dd342,Editor as _0x95124b,ElementApiMixin as _0x3fae6b,PendingActions as _0x88e4e2,Plugin as _0x11fe30,rootAcceptsBlocks as _0x11c1de}from'ckeditor5';import{IconAI as _0x433965,IconAIAdjustLength as _0x4be88b,IconAIAskAI as _0x427617,IconAIAuthor as _0x405806,IconAIChangeTone as _0x45aa03,IconAIChat as _0x264984,IconAIChatCommands as _0x545249,IconAIContinueWriting as _0x1a9cd2,IconAIGrammarCheck as _0x455699,IconAIHistory as _0x2bb729,IconAIImproveWriting as _0x54af64,IconAIOther as _0xf3e750,IconAIQuickActions as _0x386c36,IconAIReview as _0x5318d1,IconAITranslate as _0x76454d,IconAddComment as _0x5a454d,IconArrowDown as _0xa9f245,IconArrowUp as _0x468a96,IconBoxWithCheck as _0x2aa27e,IconBoxWithCross as _0x5d4dea,IconBoxWithMarker as _0x126a59,IconBrowseFiles as _0x18d0ff,IconBulb as _0x50ce8f,IconBulletedList as _0x14bb6c,IconCancel as _0x2f7d46,IconCaseChange as _0x1d3c82,IconCheck as _0x2659e3,IconChevronDown as _0x4cb2ca,IconChevronRight as _0x4df65e,IconChevronUp as _0x313b4b,IconCodeBlock as _0x3f72bd,IconCommentsArchive as _0x3780eb,IconCopy as _0x4c78d4,IconDocument as _0x5669ab,IconDocumentOutline as _0x3e88f4,IconDropbox as _0x565415,IconDropdownArrow as _0x188278,IconEmoji as _0x34b16c,IconError as _0x400451,IconExportPdf as _0x5567fa,IconExportWord as _0x252eaf,IconEye as _0x33f3cf,IconEyeCrossedOut as tt,IconFacebook as et,IconFileUpload as it,IconFootnote as st,IconGoogleDrive as nt,IconGooglePhotos as rt,IconHeading1 as ot,IconHeading2 as at,IconHeading3 as ct,IconHeading4 as lt,IconHeading5 as ht,IconHeading6 as ut,IconHistory as dt,IconHorizontalLine as ft,IconHtml as mt,IconImage as pt,IconImportWord as gt,IconIndent as Ot,IconInfo as wt,IconInsertMergeField as bt,IconLineHeight as yt,IconLink as vt,IconListStyleArabicIndic as _t,IconListStyleDecimal as Et,IconListStyleDecimalLeadingZero as Tt,IconListStyleLowerLatin as At,IconListStyleLowerRoman as St,IconListStyleUpperLatin as It,IconListStyleUpperRoman as kt,IconLoupe as xt,IconMagicWand as Ct,IconMaximize as Rt,IconMinimize as Pt,IconMultiLevelList as Nt,IconNextArrow as Mt,IconNotification as Lt,IconNumberedList as $t,IconOneDrive as Dt,IconOutdated as Qt,IconOutdent as jt,IconPaintRoller as Ut,IconPaperClip as Vt,IconParagraph as Bt,IconPencil as Ht,IconPin as Ft,IconPlay as Zt,IconPlus as Gt,IconPreviewMergeFields as Xt,IconPreviousArrow as qt,IconQuote as Wt,IconRefresh as zt,IconRemoveComment as Yt,IconRevisionHistory as Kt,IconRobotPencil as Jt,IconSelection as te,IconShowChangesOff as _0x4e4bad,IconShowChangesOn as _0x1eed91,IconSource as _0x181bd7,IconSparkle as _0x48f9dd,IconStop as _0x127d5d,IconSubmit as _0x308d5f,IconTable as _0x16de9f,IconTableOfContents as _0x117a83,IconTemplate as _0x547560,IconTemplateGeneric as _0x2a9864,IconThreeHorizontalDots as _0x44cb48,IconThreeVerticalDots as _0x1589e0,IconThumbDown as _0x4ec95c,IconThumbUp as _0x37a2a7,IconTodoList as _0x3204db,IconTrackChanges as _0x529299,IconUndo as _0x43d11e,IconUploadcareImageEdit as _0x146b08,IconUploadcareImageUpload as _0x442a3a,IconUploadcareLink as _0x4a1f54,IconUser as _0x537674,IconWarning as _0x3c5ea9,IconWeb as _0x39260c}from'ckeditor5';import{CKEditorError as _0x4242d4,Collection as _0x2186b6,DomEmitterMixin as _0x5c7b5e,ElementReplacer as _0x1fb585,EmitterMixin as _0x3e0c97,FocusTracker as _0x1c95ab,KeystrokeHandler as _0xa8275a,ObservableMixin as _0x356c1e,Rect as _0x517140,ResizeObserver as _0x55dcdb,_isMotionReduced as _0x3beb43,collectStylesheets as _0x320c18,createElement as _0x2a0f20,decodeLicenseKey as _0x4ab93d,diff as _0x5bce1f,diffToChanges as _0x43aafd,env as _0x5a4d25,first as _0x4b2d4c,formatHtml as _0xa5c05d,getAncestors as _0x198bde,getConstrainedViewportRect as _0x32d195,getEnvKeystrokeText as _0x12b1a8,global as _0x250afe,insertToPriorityArray as _0x5e09c0,isFeatureBlockedByLicenseKey as _0x5f4a63,isVisible as _0x3179f9,keyCodes as _0x4ebb29,logError as _0x4ddea0,logWarning as _0x53dc7a,priorities as _0x1a573c,scrollAncestorsToShowTarget as ti,scrollViewportToShowTarget as _0xc72d5d,toArray as _0x577a85,toUnit as _0x3b6ceb,uid as _0xea66bb,version as _0x291c35}from'ckeditor5';import{AutocompleteView as _0x301197,BalloonPanelView as _0x42b496,BalloonToolbar as _0x6a1a25,BodyCollection as _0x49bad4,BoxedEditorUIView as _0x203d61,ButtonLabelView as _0x532ad8,ButtonLabelWithHighlightView as _0x1b9124,ButtonView as _0x39ae99,CollapsibleView as _0x553571,ContextualBalloon as _0x2f4a98,CssTransitionDisablerMixin as _0x1b722c,Dialog as _0x3e3ae5,DialogViewPosition as _0x3846ff,DropdownButtonView as _0x13f4fb,DropdownMenuPanelPositioningFunctions as _0x3d0bfc,EditorUI as _0x1fb434,EditorUIView as _0x1d0e3f,FileDialogButtonView as _0x19f49a,FocusCycler as _0x273f88,FormHeaderView as _0x226af1,FormRowView as _0x5de48b,HighlightedTextView as _0x5ad9a9,IconView as _0x5d1800,InlineEditableUIView as _0x4d38ef,InputNumberView as _0x26d5ed,InputTextView as _0x37a56e,LabelView as _0x579a10,LabelWithHighlightView as _0x2b31ee,LabeledFieldView as _0x51334f,ListItemButtonView as _0x5ca120,ListItemGroupView as _0x54b18d,ListItemView as _0x585012,ListSeparatorView as _0x4f9da1,ListView as _0x19f1e8,MenuBarMenuListItemButtonView as _0x589436,MenuBarMenuListItemFileDialogButtonView as _0x3432ac,MenuBarMenuListItemView as _0x1bf87e,MenuBarMenuListView as _0x32d381,MenuBarMenuView as _0xf2980e,Notification as _0x362622,SearchTextView as _0x30d1f3,SpinnerView as _0x4d4034,SplitButtonView as _0xdb04e7,StickyPanelView as _0x33ce5b,Template as _0xf3a581,TextareaView as _0x535c1b,ToolbarSeparatorView as _0x321c2c,ToolbarView as _0x416164,UIModel as ts,View as _0x2f6e1a,ViewCollection as _0x18940b,addKeyboardHandlingForGrid as _0x2cde60,addListToDropdown as _0x55b796,addMenuToDropdown as _0x285dbc,clickOutsideHandler as _0xca2f72,createDropdown as _0x46490d,createLabeledInputNumber as _0x507b7e,createLabeledInputText as _0x565b0b,createLabeledTextarea as _0x165b0b,filterGroupAndItemNames as _0x2d8557,focusChildOnDropdownOpen as _0x18848c,isViewWithFocusCycler as _0x2ba396,normalizeColorOptions as _0x4fccd5,normalizeToolbarConfig as _0x199210,submitHandler as _0x5840c3}from'ckeditor5';import{Clipboard as _0x493c99,ClipboardMarkersUtils as _0x36137f,ClipboardPipeline as _0x4b8e01}from'ckeditor5';import{AttributeOperation as _0x540370,ClickObserver as _0x3a6f85,History as _0x47bebe,InsertOperation as _0x144d3a,MarkerOperation as _0x365d2c,Matcher as _0x44d927,MergeOperation as _0x4fb461,ModelDocumentFragment as _0x25e1b5,ModelElement as _0x284373,ModelLivePosition as _0x56e15a,ModelLiveRange as _0x2a6d0b,ModelPosition as _0x34c45c,ModelRange as _0x45ca57,ModelText as _0x3c0cd2,ModelTreeWalker as _0x1c17f6,MouseObserver as _0x43057c,MoveOperation as _0x3e83c0,NoOperation as _0x9201d0,OperationFactory as _0x3b4771,PointerObserver as _0x521121,RenameOperation as _0x42303b,RootAttributeOperation as _0x4a0894,SplitOperation as _0x13be28,StylesMap as _0x28c583,ViewAttributeElement as _0x1c3ec9,ViewContainerElement as _0x3ad3dc,ViewDataTransfer as _0x5e4952,ViewDocument as _0x2de006,ViewDocumentDomEventData as _0x40cda4,ViewDocumentFragment as _0x152374,ViewDomConverter as _0x59df35,ViewDowncastWriter as _0x1e8b09,ViewElement as _0x7ee47a,ViewEmptyElement as _0x36556b,ViewRawElement as tn,ViewText as _0x49b0da,ViewUIElement as _0x4f749e,ViewUpcastWriter as _0x138c8c,_DetachOperation as _0x44a63a,_insertIntoModelNodeList as _0xe0e37a,_removeFromModelNodeList as _0x55cf62,addMarginStylesRules as _0x35a636,addPaddingStylesRules as _0x2611f8,disableViewPlaceholder as _0x3f8228,enableViewPlaceholder as _0x33f9ea,isPercentageStyleValue as _0x2739d7,transformOperationSets as _0x4e362f}from'ckeditor5';import{CloudServices as _0x3bc91d}from'ckeditor5';import{Widget as _0x3671ff,WidgetToolbarRepository as _0x1b87a2,findOptimalInsertionRange as _0x4abaeb,isWidget as _0x570702,setHighlightHandling as _0x2c4a14,toWidget as _0x24589f,toWidgetEditable as _0x18140b,viewToModelPositionOutsideModelElement as _0xf1d59b}from'ckeditor5';import{MarkdownGfmMdToHtml as _0x1f56cd,MarkdownGfmMdToHtmlDefaultPlugins as _0x998154}from'ckeditor5';import{Enter as _0x32f1b6,ShiftEnter as _0x5b80f7}from'ckeditor5';import{SelectAll as _0x2a6b46}from'ckeditor5';import{Delete as _0x2e4156,Input as _0x3f2b41,Typing as _0x325bd9}from'ckeditor5';import{Undo as _0x288ca5}from'ckeditor5';import{Paragraph as _0x2bb6de}from'ckeditor5';import{RemoveFormatCommand as _0x8c2d0e}from'ckeditor5';import{ListEditing as _0x3921a1,_isFirstBlockOfListItem as _0x4b955f}from'ckeditor5';import{ImageEditing as _0x3d4317,ImageUploadEditing as _0x5284ea,ImageUploadProgress as _0x95e42b,ImageUtils as _0x54720c,PictureEditing as _0x1dca4a}from'ckeditor5';import{Mention as _0x1322cb}from'ckeditor5';import{PasteFromOffice as _0x57a742,PasteFromOfficeMSWordNormalizer as _0x4b93a1}from'ckeditor5';import{FileRepository as _0x1ec573}from'ckeditor5';var Zn=Object['create'],Gn=Object['defineProperty'],Xn=Object['getOwnPropertyDescriptor'],qn=Object['getOwnPropertyNames'],Wn=Object['getPrototypeOf'],zn=Object['prototype']['hasOwnProperty'],Yn=(_0x73055f,_0xc590ad)=>()=>(_0xc590ad||(_0x73055f((_0xc590ad={'exports':{}})['exports'],_0xc590ad),_0x73055f=null),_0xc590ad['exports']),Kn=(_0xf3a7c3,_0x547b3a)=>{let _0x3f866e={};for(var _0x2ab2d8 in _0xf3a7c3)Gn(_0x3f866e,_0x2ab2d8,{'get':_0xf3a7c3[_0x2ab2d8],'enumerable':!0x0});return _0x547b3a||Gn(_0x3f866e,Symbol['toStringTag'],{'value':'Module'}),_0x3f866e;},Jn=(_0x22d86e,_0x26beb6,_0x4f5a6b)=>(_0x4f5a6b=null!=_0x22d86e?Zn(Wn(_0x22d86e)):{},((_0x125e5d,_0x57b319,_0x54f3a8,_0x480082)=>{if(_0x57b319&&'object'==typeof _0x57b319||'function'==typeof _0x57b319){for(var _0x2534c2,_0x119359=qn(_0x57b319),_0x562955=0x0,_0x9fbb6=_0x119359['length'];_0x562955<_0x9fbb6;_0x562955++)_0x2534c2=_0x119359[_0x562955],zn['call'](_0x125e5d,_0x2534c2)||_0x2534c2===_0x54f3a8||Gn(_0x125e5d,_0x2534c2,{'get':(_0x54b201=>_0x57b319[_0x54b201])['bind'](null,_0x2534c2),'enumerable':!(_0x480082=Xn(_0x57b319,_0x2534c2))||_0x480082['enumerable']});}return _0x125e5d;})(!_0x26beb6&&_0x22d86e&&_0x22d86e['__esModule']?_0x4f5a6b:Gn(_0x4f5a6b,'default',{'value':_0x22d86e,'enumerable':!0x0}),_0x22d86e));const tr='_ungrouppedCommands';function er(_0x30d8d6,_0xf46099){const _0x3ce62d=(0x0,_0xf46099['t'])('Other');return _0x30d8d6['length']?'groupId'in _0x30d8d6[0x0]?_0x30d8d6:[{'groupId':tr,'groupLabel':_0x3ce62d,'order':0x1/0x0,'commands':_0x30d8d6}]:[{'groupId':tr,'groupLabel':_0x3ce62d,'order':0x1/0x0,'commands':[]}];}const ir=globalThis['DataTransfer'],sr='ai-ui';var nr=class extends _0x11fe30{static get['pluginName'](){return'AIAssistantEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x422f1a}=this,_0x2e8365=['ck-fake-ai-selection'];_0x422f1a['config']['get']('ai.assistant.useTheme')&&_0x2e8365['push']('ck-ai-assistant-ui_theme'),_0x422f1a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':sr,'view':{'classes':_0x2e8365,'priority':0xc}}),_0x422f1a['conversion']['for']('editingDowncast')['markerToElement']({'model':sr,'view':(_0x4f0eea,{writer:_0x42b15d})=>{if(!_0x4f0eea['markerRange']['isCollapsed'])return null;const _0x27ea8b=_0x42b15d['createUIElement']('span');return _0x42b15d['addClass'](['ck-fake-ai-selection','ck-fake-ai-selection_collapsed'],_0x27ea8b),_0x27ea8b;}});}afterInit(){this['_blockIfRemovedByLicenseKey'](),async function(_0x511cfe){const _0x54ac19='nA7yurgOHbZvDplRkJscdICm86oPWx92f1qF0LaSX3NGwTMK4jVtYUBQi5zheE',_0x3668a4=0x791d0,_0x1de6fa=window['Date']['now'](),_0x19e61f=_0x511cfe['editor'],_0x244a1f=new window['Promise'](_0x152740=>{_0x19e61f['once']('ready',_0x152740);}),_0x18e576={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x396c7e=_0x19e61f['config']['get']('licenseKey');async function _0x29e933(){let _0x17ba04,_0x295c79=null,_0x7e734=null;try{return'GPL'==_0x396c7e?'NotAllowed':(_0x17ba04=_0x35c76e(),_0x17ba04?(_0x17ba04['usageEndpoint']&&(_0x7e734=_0x1d943c(_0x17ba04['usageEndpoint'],_0x17ba04['jti'])),await _0x3db4d8()?_0x2ec6e1()?_0x149d02()?'Expired':_0x178f81()?('evaluation'==_0x17ba04['licenseType']&&(_0x295c79=_0x45eeb6('EvaluationLimit')),await _0x3626b3()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x149d02(){const _0x37699d=['evaluation','trial']['includes'](_0x17ba04['licenseType'])?_0x1de6fa/0x3e8:0xe10*_0x3668a4;return _0x17ba04['exp']<_0x37699d;}function _0x2ec6e1(){const _0x5248b7=_0x17ba04['features'];return!!_0x5248b7&&(!!_0x5248b7['includes']('*')||!!_0x5248b7['includes']('AI'));}function _0x178f81(){const _0x56314d=_0x17ba04['licensedHosts'];if(!_0x56314d||0x0==_0x56314d['length'])return!0x0;const {hostname:_0xc0bf0c}=new URL(window['location']['href']);if(_0x56314d['includes'](_0xc0bf0c))return!0x0;const _0x2e5725=_0xc0bf0c['split']('.');return _0x56314d['filter'](_0x37fce4=>_0x37fce4['includes']('*'))['map'](_0x3701e1=>_0x3701e1['split']('.'))['filter'](_0x421c2f=>_0x421c2f['length']<=_0x2e5725['length'])['map'](_0x3e43c2=>Array(_0x2e5725['length']-_0x3e43c2['length'])['fill']('*'===_0x3e43c2[0x0]?'*':'')['concat'](_0x3e43c2))['some'](_0x8d9793=>_0x2e5725['every']((_0xee7726,_0x576338)=>_0x8d9793[_0x576338]===_0xee7726||'*'===_0x8d9793[_0x576338]));}function _0x3626b3(){return _0x295c79&&_0x7e734?new window['Promise']((_0x23318c,_0x1747e0)=>{_0x295c79['then'](_0x23318c,_0x1747e0),_0x7e734['then'](_0x2c3a1b=>{'Valid'!=_0x2c3a1b&&_0x23318c(_0x2c3a1b);},_0x1747e0);}):_0x295c79||_0x7e734||'Valid';}}function _0x1d943c(_0x292520,_0x49d771){return new window['Promise'](_0x10b7f9=>{if(_0xce771c())return _0x10b7f9('Valid');_0x13e147(),_0x19e61f['decorate']('_sendUsageRequest');let _0x368c25=!0x1;const _0x3bdc80=_0xea66bb();function _0x6040e1(_0x5bdc78){return!!_0x5bdc78&&('object'==typeof _0x5bdc78||'function'==typeof _0x5bdc78)&&'function'==typeof _0x5bdc78['then']&&'function'==typeof _0x5bdc78['catch'];}function _0x872ffc(_0x48a990){_0xb189b0(_0x48a990)['then'](_0x1e91b8=>_0x1e91b8&&'ok'==_0x1e91b8['status']?_0x2ad155(_0x3a096e(_0x3bdc80+_0x49d771))!=_0x1e91b8['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x5c5a8c=>(_0x7cdeee(),_0x5c5a8c),()=>{const _0x1400d9=_0x3753f1();return null==_0x1400d9?(_0x7cdeee(),'Valid'):_0x1de6fa-_0x1400d9>0x240c8400?'UsageLimit':'Valid';})['then'](_0x10b7f9)['catch'](()=>{_0x10b7f9('UsageLimit');});const _0x480724=0x36ee80;function _0x7cdeee(){const _0x36953f='llct-'+_0x2ad155(_0x3a096e(_0x292520)),_0x2b1257=_0x1ff2d8(_0x2ad155(window['Math']['ceil'](_0x1de6fa/_0x480724)));window['localStorage']['setItem'](_0x36953f,_0x2b1257);}function _0x3753f1(){const _0x2fbcfe='llct-'+_0x2ad155(_0x3a096e(_0x292520)),_0x4be9f1=window['localStorage']['getItem'](_0x2fbcfe);return _0x4be9f1?window['parseInt'](_0x1ff2d8(_0x4be9f1),0x10)*_0x480724:null;}function _0xb189b0(_0x17488d){return new window['Promise']((_0x42ad65,_0xfada35)=>{_0x17488d['then'](_0x42ad65,_0xfada35),window['setTimeout'](_0xfada35,0x1d4c0);});}}_0x19e61f['on']('_sendUsageRequest',(_0x27ace3,_0x25b60d)=>{if(_0x25b60d[0x0]!=_0x292520)return _0x10b7f9('UsageLimit');_0x25b60d[0x1]={..._0x25b60d[0x1],'requestId':_0x3bdc80};},{'priority':'high'}),_0x19e61f['on']('_sendUsageRequest',_0x5cf922=>{_0x6040e1(_0x5cf922['return'])&&(_0x368c25=!0x0,_0x872ffc(_0x5cf922['return']));},{'priority':'low'}),_0x244a1f['then'](()=>{_0x368c25||_0x10b7f9('UsageLimit');});});function _0xce771c(){return'auto'==_0x19e61f['editing']['view']['_overlayModeHint'];}function _0x13e147(){_0x19e61f['editing']['view']['_overlayModeHint']='auto';}}function _0x45eeb6(_0x4932bd){const _0x579c80=[new window['Promise'](_0x4e41f7=>setTimeout(_0x4e41f7,0x93ecc)),_0x244a1f['then'](()=>new window['Promise'](_0x56ebca=>{let _0x589476=0x0;_0x19e61f['model']['on']('applyOperation',(_0x2991ab,_0x50e29a)=>{_0x50e29a[0x0]['isDocumentOperation']&&_0x589476++,0x5e8==_0x589476&&(_0x56ebca(),_0x2991ab['off']());});}))];return window['Promise']['race'](_0x579c80)['then'](()=>_0x4932bd);}async function _0x2dc19a(){await _0x244a1f,_0x19e61f['model']['change']=_0x14c30d,_0x19e61f['model']['enqueueChange']=_0x14c30d,_0x19e61f['enableReadOnlyMode']('model');}function _0x1c45a1(_0x40b096){const _0x1f6e34=_0xc9bfd2();_0x19e61f[_0x1f6e34]='aiLicenseKey'+_0x40b096,'Valid'!=_0x40b096&&_0x2dc19a();}function _0xc9bfd2(){const _0x2d4e4b=window['String'](window['performance']['now']())['replace']('.','');let _0x5ef08c='n';for(let _0x5d37e6=0x0;_0x5d37e6<_0x2d4e4b['length'];_0x5d37e6+=0x2){let _0x1e65ad=window['parseInt'](_0x2d4e4b['substring'](_0x5d37e6,_0x5d37e6+0x2));_0x1e65ad>=0x3e&&(_0x1e65ad-=0x3e),_0x5ef08c+=_0x54ac19[_0x1e65ad];}return _0x5ef08c;}function _0x35c76e(){const _0x3026d2=_0x396c7e['split']('.');if(0x3!=_0x3026d2['length'])return null;return _0x1ae5d9(_0x3026d2[0x1]);function _0x1ae5d9(_0x4eee91){const _0x44499b=_0x2134e2(_0x4eee91);return _0x44499b&&_0x5c6ac5()?_0x44499b:null;function _0x5c6ac5(){const _0x1e15e9=_0x44499b['jti'],_0x4230f0=window['parseInt'](_0x1e15e9['substring'](_0x1e15e9['length']-0x8),0x10),_0x5b9737={..._0x44499b,'jti':_0x1e15e9['substring'](0x0,_0x1e15e9['length']-0x8)};return delete _0x5b9737['vc'],_0x3a096e(_0x5b9737)==_0x4230f0;}}}async function _0x3db4d8(){let _0x44270c=!0x0;try{const [_0x1b1623,_0x5e80ba,_0x471ca4]=_0x396c7e['split']('.');return _0x564b78(_0x1b1623),await _0x4a5dbb(_0x1b1623,_0x5e80ba,_0x471ca4),_0x44270c;}catch{return!0x1;}function _0x564b78(_0x35cc9f){const _0x27b039=_0x2134e2(_0x35cc9f);_0x27b039&&'ES256'==_0x27b039['alg']||(_0x44270c=!0x1);}async function _0x4a5dbb(_0x2d5bb2,_0x15e49d,_0x4e6bad){const _0x2544b3=window['Uint8Array']['from'](_0x4da123(_0x4e6bad),_0x10534c=>_0x10534c['charCodeAt'](0x0)),_0x44812f=new window['TextEncoder']()['encode'](_0x2d5bb2+'.'+_0x15e49d),_0x367b71=window['crypto']['subtle'];if(!_0x367b71)return;const _0x3f3789=await _0x367b71['importKey']('jwk',_0x18e576,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x367b71['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3f3789,_0x2544b3,_0x44812f)||(_0x44270c=!0x1);}}function _0x2134e2(_0x40edfa){return _0x40edfa['startsWith']('ey')?JSON['parse'](_0x4da123(_0x40edfa)):null;}function _0x4da123(_0x4b2161){return window['atob'](_0x4b2161['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x3a096e(_0xe28dd1){let _0x397e4d=0x1505;function _0x48da3d(_0x3785e1){for(let _0x207e5a=0x0;_0x207e5a<_0x3785e1['length'];_0x207e5a++){const _0x1cd189=_0x3785e1['charCodeAt'](_0x207e5a);_0x397e4d=(_0x397e4d<<0x5)+_0x397e4d+_0x1cd189,_0x397e4d&=_0x397e4d;}}function _0x496457(_0x8a36f4){Array['isArray'](_0x8a36f4)?_0x8a36f4['forEach'](_0x496457):_0x8a36f4&&'object'==typeof _0x8a36f4?Object['entries'](_0x8a36f4)['sort']()['forEach'](([_0x455216,_0x5811ef])=>{_0x48da3d(_0x455216),_0x496457(_0x5811ef);}):_0x48da3d(window['String'](_0x8a36f4));}return _0x496457(_0xe28dd1),_0x397e4d>>>0x0;}function _0x2ad155(_0x19effe){return _0x19effe['toString'](0x10)['padStart'](0x8,'0');}function _0x1ff2d8(_0x40c74a){return _0x40c74a['split']('')['reverse']()['join']('');}function _0x14c30d(){}_0x1c45a1(await _0x29e933());}(this);}['_blockIfRemovedByLicenseKey'](){const _0x578960=this['editor'],_0x3c7326=_0x4ab93d(_0x578960['config']['get']('licenseKey'));_0x3c7326&&_0x5f4a63(_0x3c7326,'AI')&&(_0x578960['enableReadOnlyMode'](Symbol('invalidLicense')),_0x578960['_showLicenseError']('featureNotAllowed','AIAssistant'));}showFakeVisualSelection(){const _0x1a6891=this['editor']['model'];_0x1a6891['change'](_0x6490c8=>{const _0x217c3d=_0x1a6891['document']['selection']['getRanges']();let _0xcc8f34=0x0;for(const _0x4ee2ec of _0x217c3d){const _0x2cbee8=sr+':'+_0xcc8f34;if(_0x1a6891['markers']['has'](_0x2cbee8))_0x6490c8['updateMarker'](_0x2cbee8,{'range':_0x4ee2ec});else{if(_0x4ee2ec['start']['isAtEnd']){const _0x4d0aa5=_0x4ee2ec['start']['getLastMatchingPosition'](({item:_0x211252})=>!_0x1a6891['schema']['isContent'](_0x211252),{'boundaries':_0x4ee2ec});_0x6490c8['addMarker'](_0x2cbee8,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x6490c8['createRange'](_0x4d0aa5,_0x4ee2ec['end'])});}else _0x6490c8['addMarker'](_0x2cbee8,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x4ee2ec});}_0xcc8f34++;}});}hideFakeVisualSelection(){const _0x1fd461=this['editor']['model'],_0x977b94=Array['from'](this['editor']['model']['markers']['getMarkersGroup'](sr));_0x977b94['length']&&_0x1fd461['change'](_0x111afb=>{_0x977b94['forEach'](_0x31adcb=>{_0x111afb['removeMarker'](_0x31adcb);});});}insertContent(_0xc928fd,_0x11892c){const _0x32fdf3=this['_getAISelection'](),_0x367f24=_0x11892c||_0x32fdf3['getFirstRange']();this['editor']['model']['canEditAt'](_0x367f24)&&this['editor']['model']['change'](_0x5aef39=>{this['hideFakeVisualSelection'](),_0x11892c||this['_resetContentOfSelectedTableCells'](_0x5aef39,_0x32fdf3),this['_pasteHTMLUsingClipboard']({'insertAt':_0x367f24,'writer':_0x5aef39,'html':_0xc928fd});});}insertContentBelow(_0x5a1fd3){const {model:_0x364064}=this['editor'],_0x20fe2b=this['_getAISelection']();_0x364064['change'](()=>{const _0x2f0631=this['_prepareTableInsertBelowPosition'](_0x5a1fd3,_0x20fe2b)||this['_getDefaultInsertBelowPosition'](_0x20fe2b);this['insertContent'](_0x5a1fd3,_0x2f0631);});}_getAISelection(){const _0x26ff97=this['editor']['model'],_0x5af6a3=Array['from'](_0x26ff97['markers']['getMarkersGroup'](sr))['map'](_0x212e92=>_0x212e92['getRange']());return _0x26ff97['createSelection'](_0x5af6a3);}_pasteHTMLUsingClipboard({writer:_0x54f322,html:_0x4846bd,insertAt:_0x39eec0}){const {view:_0x2c5578}=this['editor']['editing'],_0x43ed2c=this['editor']['plugins']['get'](_0x4b8e01),_0x53d1eb=new ir();_0x53d1eb['setData']('text/html',_0x4846bd);const _0x229a20=new _0x40cda4(_0x2c5578,new ClipboardEvent('paste',{'clipboardData':_0x53d1eb}),{'dataTransfer':new _0x5e4952(_0x53d1eb)});_0x54f322['setSelection'](_0x39eec0);const _0x2c4678=(_0xb73b87,_0x147ddd)=>{_0x147ddd['resultRange']&&_0x54f322['setSelection'](_0x147ddd['resultRange']);};_0x43ed2c['once']('contentInsertion',_0x2c4678,{'priority':'lowest'}),_0x2c5578['document']['fire']('paste',_0x229a20),_0x43ed2c['off']('contentInsertion',_0x2c4678);}_getDefaultInsertBelowPosition(_0xd8f024){const {model:_0x50ebc8}=this['editor'],_0x1bfa33=Array['from'](_0xd8f024['getSelectedBlocks']());return _0x1bfa33['length']?_0x50ebc8['createPositionAfter'](_0x1bfa33['pop']()):_0xd8f024['getLastPosition']();}_prepareTableInsertBelowPosition(_0x4c124e,_0x4af47a){const {model:_0x25621b,plugins:_0x347dfb}=this['editor'];if(_0x347dfb['has']('TableUtils')){const _0x7a8ed7=_0x347dfb['get']('TableUtils')['getSelectedTableCells'](_0x4af47a);if(_0x7a8ed7['length']){const _0x2f371d=this['_getTableRowCountFromContent'](_0x4c124e),_0x139fda=this['_createEmptyTableRows'](_0x7a8ed7,_0x2f371d);return _0x25621b['createPositionAt'](_0x139fda,0x0);}}return null;}_getTableRowCountFromContent(_0x4989ff){const _0x4eb982=this['editor']['plugins']['get']('TableUtils'),_0x2aa5ba=this['editor']['data']['parse'](_0x4989ff,'$documentFragment'),_0x161863=Array['from'](_0x2aa5ba['getChildren']())['filter'](_0x49526e=>_0x49526e['is']('element','table'));let _0x2b9dac=0x0;return _0x161863['forEach'](_0x3e776c=>{_0x2b9dac+=_0x4eb982['getRows'](_0x3e776c);}),_0x2b9dac;}_createEmptyTableRows(_0x10d5c5,_0x1830a9){const _0x38d65b=this['editor']['plugins']['get']('TableUtils'),_0x373956=_0x38d65b['getRowIndexes'](_0x10d5c5),_0x2d8d3e=_0x38d65b['getColumnIndexes'](_0x10d5c5),_0x405b59=_0x373956['last']+0x1,_0x733584=_0x2d8d3e['first'],_0x5a9efb=_0x10d5c5[0x0]['findAncestor']('table');for(let _0x2aee60=0x0;_0x2aee60<_0x1830a9;_0x2aee60++)_0x38d65b['insertRows'](_0x5a9efb,{'at':_0x405b59});return _0x5a9efb['getChild'](_0x405b59)['getChild'](_0x733584);}_resetContentOfSelectedTableCells(_0x13d5cb,_0x365bfc){const {plugins:_0x13af88}=this['editor'],{model:_0x414738}=_0x13d5cb;_0x13af88['has']('TableUtils')&&_0x13af88['get']('TableUtils')['getSelectedTableCells'](_0x365bfc)['length']&&_0x414738['deleteContent'](_0x365bfc);}},rr=class extends _0x11fe30{static get['pluginName'](){return'AIAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){if(!this['textAdapter'])throw new _0x4242d4('aiadapter-text-adapter-not-set',null);}},or=class extends Error{constructor(_0x10e00d){super(_0x10e00d),this['name']='AIRequestError';}};function ar(_0x354b97,_0x23f51d,_0x329b73){const t=_0x354b97['t'];switch(_0x23f51d){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x329b73);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x329b73);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x329b73);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_AWS_NOT_SUPPORTED':return t({'id':'AI_ERROR_AWS_NOT_SUPPORTED','string':'The\x20AWS\x20integration\x20is\x20no\x20longer\x20supported.\x20Please\x20contact\x20the\x20support.'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x23f51d;}}var cr=class extends _0x44d8e7{_commandDefinitions;constructor(_0x352dde,_0x3de482){super(_0x352dde),this['_commandDefinitions']=_0x3de482,this['set']('enabledCommandsIds',[]),this['on']('change:_hasContext',(_0x10c8e7,_0x4abdbf,_0x4540c3)=>{this['isEnabled']&&(this['enabledCommandsIds']=lr(this['_commandDefinitions'],_0x4540c3));}),this['set']('_hasContext',!0x1),this['on']('change:isEnabled',(_0x4037ad,_0x8eec31,_0x1d1edd)=>{this['enabledCommandsIds']=_0x1d1edd?lr(this['_commandDefinitions'],this['_hasContext']):[];});}['refresh'](){const _0x200540=this['editor']['model'];this['_hasContext']=function(_0x2b06bd){const _0x102213=_0x2b06bd['document']['selection'];return _0x102213['isCollapsed']?0x0!==[..._0x102213['getSelectedBlocks']()]['length']&&![..._0x102213['getSelectedBlocks']()][0x0]['isEmpty']:!!_0x2b06bd['hasContent'](_0x102213['getFirstRange']());}(_0x200540);const _0x26d048=_0x200540['document']['selection'],_0x5ef0fb=this['editor']['config']['get']('ai.assistant.disabledElements');for(const _0x568b2a of _0x26d048['getRanges']())for(const _0x38ab27 of _0x568b2a['getItems']())if(_0x38ab27['is']('element')&&_0x5ef0fb['includes'](_0x38ab27['name']))return void(this['isEnabled']=!0x1);this['isEnabled']=!0x0;}execute(_0x5daa89='',_0x5a9437='',_0x2cf15e='custom'){this['editor']['plugins']['get'](Vo)['showUI'](_0x5daa89,_0x5a9437,_0x2cf15e);}};function lr(_0x141a6c,_0x59a8d6){const _0x20fdb5=new Set();for(const _0x57d447 of _0x141a6c['values']())(_0x59a8d6||!0x1===_0x57d447['requiresContent'])&&_0x20fdb5['add'](_0x57d447['id']);return Array['from'](_0x20fdb5);}const hr=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is'),ur=/* #__PURE__  -- @preserve */
_0x356c1e();var dr=class extends ur{editor;textAdapter;['view'];_sanitizationContainer;['_domParser'];['_xmlSerializer'];constructor(_0x373dcd,_0x446701,_0x49569f){super(),this['editor']=_0x373dcd,this['textAdapter']=_0x446701,this['_sanitizationContainer']=document['createElement']('div'),this['_domParser']=new DOMParser(),this['_xmlSerializer']=new XMLSerializer(),this['view']=_0x49569f,this['set']({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on']('set:currentContext',(_0xb10a7f,_0x55c951,_0x84bb43)=>{this['view']['value']=this['_sanitizeHTML'](_0x84bb43);}),this['listenTo'](this['view'],'submitPrompt',(_0x34624c,_0x2db2c9)=>{const _0x15e321=this['currentContext']||this['initialContext'];this['_handleQuery'](_0x2db2c9,_0x15e321,'custom');}),this['listenTo'](this['view'],'tryAgainEvent',()=>{this['view']['prompt']=this['previousLabel'],this['_handleQuery'](this['previousQuery'],this['previousContext'],this['previousActionId'],this['previousLabel']);}),this['listenTo'](this['view'],'stopProcessing',()=>{this['stopProcessing']();});}destroy(){this['stopListening']();}async updateView({actionId:_0xb37326,query:_0x18a84d,htmlContent:_0x264265,label:_0x49afa3,mainActionLabel:_0x2cf9b5}){this['view']['prompt']=_0x49afa3,this['view']['mainAction']=_0x2cf9b5,this['initialContext']=_0x264265,_0x18a84d&&(this['view']['isRendered']?this['_handleQuery'](_0x18a84d,_0x264265,_0xb37326,_0x49afa3):this['view']['once']('render',()=>{this['_handleQuery'](_0x18a84d,_0x264265,_0xb37326,_0x49afa3);}));}stopProcessing(){this['isProcessing']&&(this['isProcessing']=!0x1,this['view']['finishProcessing'](),this['textAdapter']['abort']());}reset(){this['initialContext']='',this['currentContext']='',this['currentResponse']='',this['previousContext']='',this['previousQuery']='',this['previousLabel']='',this['previousActionId']=void 0x0,this['view']['reset'](),this['stopProcessing']();}async['_handleQuery'](_0x1ee1d2,_0x549b9b,_0x23de2d,_0x62c27c){return this['isProcessing']=!0x0,this['view']['startProcessing'](),this['previousContext']=_0x549b9b,this['previousQuery']=_0x1ee1d2,this['previousLabel']=_0x62c27c||_0x1ee1d2,this['previousActionId']=_0x23de2d,new Promise(_0x2305ec=>{this['textAdapter']['makeRequest']({'query':_0x1ee1d2,'context':_0x549b9b,'onData':_0x4b9bb9=>{this['currentResponse']=_0x4b9bb9,this['currentContext']=this['_parseAndNormalizeContent'](this['currentResponse']);},'actionId':_0x23de2d})['then'](()=>{!this['currentContext']&&this['currentResponse']&&(this['currentContext']=this['_parseAndNormalizeContent'](this['currentResponse'],!0x0));})['catch'](_0x350b94=>{_0x350b94 instanceof or?this['view']['handleError'](_0x350b94['message']):this['view']['handleError'](),_0x2305ec();})['finally'](()=>{this['stopProcessing'](),_0x2305ec();});});}_parseAndNormalizeContent(_0x396b82,_0xa4f998=!0x1){const _0x3dd292=hr['exec'](_0x396b82);_0x396b82=_0x3dd292?_0x396b82['substring'](_0x3dd292[0x1]['length']):_0x396b82['length']<0x64&&!_0xa4f998?'':this['_stripMarkdownSyntax'](_0x396b82);const _0x516737=this['_domParser']['parseFromString'](_0x396b82,'text/html');if(_0x3dd292){const _0x372d75=Array['from'](_0x516737['body']['childNodes']);_0x372d75['reverse']();for(const _0x37e4d0 of _0x372d75){if(_0x37e4d0['nodeType']==Node['ELEMENT_NODE'])break;_0x37e4d0['remove']();}}const _0x4cf550=this['editor']['data']['processor']['toView'](this['_xmlSerializer']['serializeToString'](_0x516737['body']));this['_isH1TagSupportEnabled']()||this['_normalizeResponseHeadings'](_0x4cf550);const _0x12a058=this['editor']['config']['get']('ai.assistant.preserveComments'),_0x37da13=this['editor']['data']['toModel'](_0x4cf550);return _0x12a058||_0x37da13['markers']['clear'](),this['editor']['data']['stringify'](_0x37da13);}['_normalizeResponseHeadings'](_0x452e0b){const _0x1a8826=new _0x138c8c(this['editor']['editing']['view']['document']),_0x513d57=new _0x44d927({'name':/^h[1-5]$/}),_0x502977=[];let _0x3af79e=!0x1;for(const _0x22b90c of _0x452e0b)_0x22b90c['is']('element')&&_0x513d57['match'](_0x22b90c)&&(_0x502977['push'](_0x22b90c),'h1'==_0x22b90c['name']&&(_0x3af79e=!0x0));if(_0x3af79e){for(const _0x393571 of _0x502977)_0x1a8826['rename']('h'+(parseInt(_0x393571['name'][0x1])+0x1),_0x393571);}}_isH1TagSupportEnabled(){const {data:_0x94a762,editing:_0x3bbef8}=this['editor'],_0x17f231=_0x94a762['htmlProcessor']['toView']('<h1></h1>'),_0x21378a=_0x94a762['toView'](_0x94a762['toModel'](_0x17f231));return!!_0x3bbef8['view']['domConverter']['viewToDom'](_0x21378a)['querySelector']('h1');}_sanitizeHTML(_0x49151c){return this['editor']['editing']['view']['domConverter']['setContentOf'](this['_sanitizationContainer'],_0x49151c),this['_sanitizationContainer']['innerHTML'];}_stripMarkdownSyntax(_0x46e213){const _0x17ae36=_0x46e213['trim']();return _0x17ae36['startsWith']('```html')?_0x17ae36['endsWith']('```')?_0x17ae36['substring'](0x7,_0x17ae36['length']-0x3):_0x17ae36['substring'](0x7):_0x46e213;}};const fr={'REPLACE':'replace','INSERT':'insert'};var mr=class extends _0x416164{constructor(_0x144415){super(_0x144415),this['set']('isVisible',!0x1),this['set']('mainAction',fr['REPLACE']),this['replaceButton']=this['_createButton']('','ck-button-action'),this['replaceButton']['bind']('label')['to'](this,'mainAction',_0x3fa59f=>ar(_0x144415,'AI_'+_0x3fa59f['toUpperCase']()+'_CONTENT')),this['insertButton']=this['_createButton'](ar(_0x144415,'Insert\x20below')),this['tryAgainButton']=this['_createButton'](ar(_0x144415,'Try\x20again')),this['stopButton']=this['_createButton'](ar(_0x144415,'Stop'));const _0x381754=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':['ck-ai-form__toolbar',_0x381754['if']('isVisible','ck-hidden',_0x33c1de=>!_0x33c1de)]}}),this['items']['addMany']([this['replaceButton'],this['insertButton'],this['tryAgainButton'],this['stopButton']]);}_createButton(_0x15f756,_0x491252){const _0x3cfcc0=new _0x39ae99(this['locale']);return _0x3cfcc0['set']({'label':_0x15f756,'class':_0x491252||'','isVisible':!0x0,'withText':!0x0}),_0x3cfcc0;}},pr=class extends _0x2f6e1a{contentFieldView;copyButtonView;constructor(_0x52c294,_0x4c09d0=''){super(_0x52c294),this['set']({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x329298=this['bindTemplate'];this['contentFieldView']=new gr(_0x52c294,_0x4c09d0),this['copyButtonView']=this['_createCopyButton'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__content-area-wrapper',_0x329298['if']('isVisible','ck-hidden',_0x244808=>!_0x244808)],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-form__content-area',_0x329298['if']('isProcessing','ck-ai-form__content-area--processing')]},'children':[this['contentFieldView'],{'tag':'div','attributes':{'class':['ck','ck-ai-form__copy-button-wrapper']},'children':[this['copyButtonView']]}]}]});}['render'](){super['render'](),this['value']&&this['contentFieldView']['setContent'](this['value']);let _0x4a52c8=!0x1;this['on']('change:value',(_0x4d09ba,_0x3175a7,_0x226e92)=>{const _0x3df7fa=!this['contentFieldView']['element']['querySelector']('.ck-ai-form__loader');this['contentFieldView']['setContent'](_0x226e92),this['isProcessing']&&_0x3df7fa&&!_0x4a52c8&&this['element']['scrollTo']({'top':this['element']['scrollHeight'],'behavior':'smooth'});}),this['on']('change:isProcessing',(_0x41fc8e,_0x5497b2,_0x13d89e)=>{_0x4a52c8=!0x1,_0x13d89e?(this['value']=null,this['contentFieldView']['appendLoader']()):this['value']||this['contentFieldView']['setContent']('');}),this['listenTo'](this['element'],'wheel',()=>{_0x4a52c8=!0x0;}),this['listenTo'](this['element'],'mousedown',()=>{_0x4a52c8=!0x0;});}['focus'](){this['element']['focus']();}_createCopyButton(){const _0x150bd5=this['locale'],_0x10374e=new _0x39ae99(this['locale']),_0x3b1eca='ck-ai-form__copy-button';return _0x10374e['set']({'label':ar(_0x150bd5,'Copy'),'icon':_0x4c78d4,'class':_0x3b1eca,'tooltip':!0x0}),_0x10374e['bind']('isVisible')['to'](this,'value',_0x263741=>!!_0x263741),_0x10374e['bind']('isEnabled')['to'](this,'isProcessing',_0x31c4c7=>!_0x31c4c7),_0x10374e['on']('execute',()=>{this['_copyHTMLToClipboard'](this['contentFieldView']['element']),_0x10374e['icon']=_0x2659e3,_0x10374e['class']=_0x3b1eca+'\x20ck-ai-form__copy-button--copied',this['focus'](),setTimeout(()=>{_0x10374e['icon']=_0x4c78d4,_0x10374e['class']=_0x3b1eca;},0x3e8);}),_0x10374e;}['_copyHTMLToClipboard'](_0x522113){const {window:_0x153d65,document:_0x5476c8}=_0x250afe;if(_0x153d65['ClipboardItem']){const {Blob:_0x396117,ClipboardItem:_0x33668f}=_0x153d65,_0x2a4295=[new _0x33668f({'text/html':new _0x396117([_0x522113['innerHTML']],{'type':'text/html'}),'text/plain':new _0x396117([_0x522113['textContent']||''],{'type':'text/plain'})})];navigator['clipboard']['write'](_0x2a4295);}else{const _0x539855=_0x5476c8['createElement']('div');_0x539855['style']['position']='absolute',_0x539855['style']['left']='-9999px',_0x539855['innerHTML']='<span>[</span>'+_0x522113['innerHTML']+'<span>]</span>',_0x5476c8['body']['appendChild'](_0x539855);const _0x38b86f=_0x5476c8['createRange']();_0x38b86f['setStartAfter'](_0x539855['firstElementChild']),_0x38b86f['setEndBefore'](_0x539855['lastElementChild']);const _0x491533=_0x153d65['getSelection']();_0x491533['removeAllRanges'](),_0x491533['addRange'](_0x38b86f),_0x5476c8['execCommand']('copy'),_0x539855['remove']();}}},gr=class extends _0x2f6e1a{constructor(_0x397b39,_0x11247d=''){super(_0x397b39),this['loaderView']=this['_createLoader'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-content',_0x11247d,'ck-reset_all-excluded','ck-ai-form__content-field']}});}setContent(_0x230c08){this['element']['innerHTML']=_0x230c08;}['appendLoader'](){this['element']['appendChild'](this['loaderView']['element']);}_createLoader(){const _0x557fe9=new _0x2f6e1a(),_0x4ce212=this['locale'],_0x51024d=new _0x4d4034();return _0x51024d['isVisible']=!0x0,_0x557fe9['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__loader']},'children':[_0x51024d,{'text':ar(_0x4ce212,'AI\x20is\x20writing...')}]}),_0x557fe9['render'](),_0x557fe9;}},Or=class extends _0x2f6e1a{constructor(_0x422f5d,_0x6634ce=''){super(_0x422f5d);const _0x5ba722=new _0x5d1800(),_0x1780e9=this['bindTemplate'];this['set']('text',_0x6634ce),_0x5ba722['content']=_0x400451,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__error']},'children':[_0x5ba722,{'text':_0x1780e9['to']('text')}]});}},wr=class extends _0x301197{submitButtonView;showHistoryButtonView;constructor(_0x17383a,_0x4dd15b){super(_0x17383a,_0x4dd15b),this['queryView']['fieldView']['minRows']=0x1,this['queryView']['fieldView']['maxRows']=0x3,this['submitButtonView']=this['_createSubmitButton'](),this['showHistoryButtonView']=this['_createShowHistoryButton'](),this['focusableChildren']['add'](this['showHistoryButtonView'],0x1),this['focusableChildren']['add'](this['submitButtonView']);}['render'](){super['render'](),this['queryView']['fieldWrapperChildren']['add'](this['showHistoryButtonView']),this['children']['add'](this['submitButtonView']),this['keystrokes']['set']('enter',(_0x1e81b8,_0x5bddd5)=>{_0x1e81b8['target']==this['queryView']['fieldView']['element']&&(this['submit'](),_0x5bddd5());});}_createSubmitButton(){const _0x423440=new _0x39ae99(this['locale']),_0x23644c=this['locale'];return _0x423440['set']({'icon':_0x308d5f,'label':ar(_0x23644c,'Submit'),'isVisible':!0x0,'tooltip':!0x0,'class':'ck-ai-form__submit'}),_0x423440['on']('execute',()=>{this['submit']();}),_0x423440['bind']('isEnabled')['to'](this['queryView']['fieldView'],'isEmpty',this,'isEnabled',(_0x5c5311,_0x5c2335)=>!_0x5c5311&&_0x5c2335),_0x423440;}_createShowHistoryButton(){const _0x54eb53=new _0x39ae99(this['locale']),_0xd8722d=this['resultsView'],_0x200c69=this['locale'];_0x54eb53['set']({'label':ar(_0x200c69,'History'),'withText':!0x1,'icon':_0x2bb729,'tooltip':!0x0,'tooltipPosition':'sw','class':'ck-ai-form__toggle-history'}),_0x54eb53['bind']('isOn')['to'](_0xd8722d,'isVisible'),_0x54eb53['bind']('isEnabled')['to'](this,'isEnabled'),_0x54eb53['on']('execute',()=>{_0xd8722d['isVisible']=!_0xd8722d['isVisible'],_0xd8722d['isVisible']?this['filteredView']['focus']():this['focus']();});const _0x4dca35=()=>{_0x250afe['window']['requestAnimationFrame'](()=>{if(_0x3179f9(this['element'])){const _0x10e830=new _0x517140(this['queryView']['fieldView']['element']),_0x3fa21a=_0x10e830['width'],_0x66335c='rtl'===_0x200c69['uiLanguageDirection']?'left':'right';_0x10e830['excludeScrollbarsAndBorders'](),_0x54eb53['element']['style'][_0x66335c]=_0x3fa21a-_0x10e830['width']+0x1+'px';}});};return this['queryView']['fieldView']['on']('update',_0x4dca35),this['on']('render',_0x4dca35),_0x54eb53;}submit(){const _0x1e57dd=this['queryView']['fieldView']['element']['value'];this['fire']('submit',_0x1e57dd);}['focus'](_0x1e26fd){-0x1===_0x1e26fd?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}},br=class extends _0x19f1e8{historyGroupView;clearHistoryButton;constructor(_0x8fc2a9){super(_0x8fc2a9),this['clearHistoryButton']=this['_createClearHistoryButton'](),this['historyGroupView']=new _0x54b18d(),this['historyGroupView']['children']['add'](this['clearHistoryButton'],0x1),this['historyGroupView']['label']=ar(_0x8fc2a9,'Prompt\x20history'),this['historyGroupView']['items']['delegate']('execute')['to'](this),this['items']['add'](this['historyGroupView']);}filter(){let _0xf00cf6=0x0;for(const _0x5e3f1d of this['items'])_0xf00cf6+=_0x5e3f1d['items']['length'];return{'resultsCount':_0xf00cf6,'totalItemsCount':_0xf00cf6};}_createClearHistoryButton(){const _0x3a960e=this['locale'],_0x5843d2=new _0x39ae99(this['locale']);return _0x5843d2['set']({'label':'('+ar(_0x3a960e,'Clear')+')','withText':!0x0}),_0x5843d2['on']('execute',()=>this['fire']('clearHistory')),_0x5843d2;}};function yr(_0x3932d3,_0x13f47a,{signal:_0x567a8b,edges:_0x5e4e8c}={}){let _0x17f6b2,_0x657301=null;const _0x91edc0=null!=_0x5e4e8c&&_0x5e4e8c['includes']('leading'),_0x1a87a1=null==_0x5e4e8c||_0x5e4e8c['includes']('trailing'),_0x1dca46=()=>{null!==_0x657301&&(_0x3932d3['apply'](_0x17f6b2,_0x657301),_0x17f6b2=void 0x0,_0x657301=null);};let _0x3d3a9b=null;const _0x3ade3f=()=>{null!=_0x3d3a9b&&clearTimeout(_0x3d3a9b),_0x3d3a9b=setTimeout(()=>{_0x3d3a9b=null,_0x1a87a1&&_0x1dca46(),_0xde7a0e();},_0x13f47a);},_0xde7a0e=()=>{null!==_0x3d3a9b&&(clearTimeout(_0x3d3a9b),_0x3d3a9b=null),_0x17f6b2=void 0x0,_0x657301=null;},_0x54a378=function(..._0x4a351d){if(_0x567a8b?.['aborted'])return;_0x17f6b2=this,_0x657301=_0x4a351d;const _0x3db286=null==_0x3d3a9b;_0x3ade3f(),_0x91edc0&&_0x3db286&&_0x1dca46();};return _0x54a378['schedule']=_0x3ade3f,_0x54a378['cancel']=_0xde7a0e,_0x54a378['flush']=()=>{_0x1dca46();},_0x567a8b?.['addEventListener']('abort',_0xde7a0e,{'once':!0x0}),_0x54a378;}function vr(_0x4a4eeb,_0x2e35f7=0x0,_0x22c8b5={}){'object'!=typeof _0x22c8b5&&(_0x22c8b5={});const {leading:_0x16fea6=!0x1,trailing:_0x571a5d=!0x0,maxWait:_0x51be9c}=_0x22c8b5,_0x554f65=Array(0x2);let _0x8a1461;_0x16fea6&&(_0x554f65[0x0]='leading'),_0x571a5d&&(_0x554f65[0x1]='trailing');let _0x2cc904=null;const _0x5932a4=yr(function(..._0x515435){_0x8a1461=_0x4a4eeb['apply'](this,_0x515435),_0x2cc904=null;},_0x2e35f7,{'edges':_0x554f65}),_0x3abc8b=function(..._0x43c61c){return null!=_0x51be9c&&(null===_0x2cc904&&(_0x2cc904=Date['now']()),Date['now']()-_0x2cc904>=_0x51be9c)?(_0x8a1461=_0x4a4eeb['apply'](this,_0x43c61c),_0x2cc904=Date['now'](),_0x5932a4['cancel'](),_0x5932a4['schedule'](),_0x8a1461):(_0x5932a4['apply'](this,_0x43c61c),_0x8a1461);};return _0x3abc8b['cancel']=_0x5932a4['cancel'],_0x3abc8b['flush']=()=>(_0x5932a4['flush'](),_0x8a1461),_0x3abc8b;}function _r(_0x21306f,_0x270ad1=0x0,_0x35c6ff={}){const {leading:_0x5cdd5d=!0x0,trailing:_0xe47d1e=!0x0}=_0x35c6ff;return vr(_0x21306f,_0x270ad1,{'leading':_0x5cdd5d,'maxWait':_0x270ad1,'trailing':_0xe47d1e});}function Er(_0x13fedf){if(!_0x13fedf||'object'!=typeof _0x13fedf)return!0x1;const _0x3606b7=Object['getPrototypeOf'](_0x13fedf);return(null===_0x3606b7||_0x3606b7===Object['prototype']||null===Object['getPrototypeOf'](_0x3606b7))&&'[object\x20Object]'===Object['prototype']['toString']['call'](_0x13fedf);}function Tr(_0x480cef){return Object['getOwnPropertySymbols'](_0x480cef)['filter'](_0x3994a0=>Object['prototype']['propertyIsEnumerable']['call'](_0x480cef,_0x3994a0));}function Ar(_0x10721c){return null==_0x10721c?void 0x0===_0x10721c?'[object\x20Undefined]':'[object\x20Null]':Object['prototype']['toString']['call'](_0x10721c);}const Sr='[object\x20RegExp]',Ir='[object\x20String]',kr='[object\x20Number]',xr='[object\x20Boolean]',Cr='[object\x20Arguments]',Rr='[object\x20Symbol]',Pr='[object\x20Date]',Nr='[object\x20Map]',Mr='[object\x20Set]',Lr='[object\x20Array]',$r='[object\x20ArrayBuffer]',Dr='[object\x20Object]',Qr='[object\x20DataView]',jr='[object\x20Uint8Array]',Ur='[object\x20Uint8ClampedArray]',Vr='[object\x20Uint16Array]',Br='[object\x20Uint32Array]',Hr='[object\x20Int8Array]',Fr='[object\x20Int16Array]',Zr='[object\x20Int32Array]',Gr='[object\x20Float32Array]',Xr='[object\x20Float64Array]';function qr(_0x341453,_0x437a87){return _0x341453===_0x437a87||Number['isNaN'](_0x341453)&&Number['isNaN'](_0x437a87);}function Wr(_0xcbf255,_0x53d8bb,_0x4d3206,_0x1b4f1e,_0x19af25,_0x352073,_0xa92efe){const _0x16d1b3=_0xa92efe(_0xcbf255,_0x53d8bb,_0x4d3206,_0x1b4f1e,_0x19af25,_0x352073);if(void 0x0!==_0x16d1b3)return _0x16d1b3;if(typeof _0xcbf255==typeof _0x53d8bb)switch(typeof _0xcbf255){case'bigint':case'string':case'boolean':case'symbol':case'undefined':case'function':return _0xcbf255===_0x53d8bb;case'number':return _0xcbf255===_0x53d8bb||Object['is'](_0xcbf255,_0x53d8bb);case'object':return zr(_0xcbf255,_0x53d8bb,_0x352073,_0xa92efe);}return zr(_0xcbf255,_0x53d8bb,_0x352073,_0xa92efe);}function zr(_0x410478,_0xbbe922,_0x364db4,_0x18e8db){if(Object['is'](_0x410478,_0xbbe922))return!0x0;let _0x2069f6=Ar(_0x410478),_0x56053e=Ar(_0xbbe922);if('[object\x20Arguments]'===_0x2069f6&&(_0x2069f6=Dr),'[object\x20Arguments]'===_0x56053e&&(_0x56053e=Dr),_0x2069f6!==_0x56053e)return!0x1;switch(_0x2069f6){case Ir:return _0x410478['toString']()===_0xbbe922['toString']();case kr:return qr(_0x410478['valueOf'](),_0xbbe922['valueOf']());case xr:case Pr:case Rr:return Object['is'](_0x410478['valueOf'](),_0xbbe922['valueOf']());case Sr:return _0x410478['source']===_0xbbe922['source']&&_0x410478['flags']===_0xbbe922['flags'];case'[object\x20Function]':return _0x410478===_0xbbe922;}const _0x431f4a=(_0x364db4=_0x364db4??new Map())['get'](_0x410478),_0x26d16b=_0x364db4['get'](_0xbbe922);if(null!=_0x431f4a&&null!=_0x26d16b)return _0x431f4a===_0xbbe922;_0x364db4['set'](_0x410478,_0xbbe922),_0x364db4['set'](_0xbbe922,_0x410478);try{switch(_0x2069f6){case Nr:if(_0x410478['size']!==_0xbbe922['size'])return!0x1;for(const [_0x3c4417,_0x3ed200]of _0x410478['entries']())if(!_0xbbe922['has'](_0x3c4417)||!Wr(_0x3ed200,_0xbbe922['get'](_0x3c4417),_0x3c4417,_0x410478,_0xbbe922,_0x364db4,_0x18e8db))return!0x1;return!0x0;case Mr:{if(_0x410478['size']!==_0xbbe922['size'])return!0x1;const _0x54170f=Array['from'](_0x410478['values']()),_0x4a8e41=Array['from'](_0xbbe922['values']());for(let _0x460eae=0x0;_0x460eae<_0x54170f['length'];_0x460eae++){const _0xcf4c63=_0x54170f[_0x460eae],_0x2f9cca=_0x4a8e41['findIndex'](_0x16be6e=>Wr(_0xcf4c63,_0x16be6e,void 0x0,_0x410478,_0xbbe922,_0x364db4,_0x18e8db));if(-0x1===_0x2f9cca)return!0x1;_0x4a8e41['splice'](_0x2f9cca,0x1);}return!0x0;}case Lr:case jr:case Ur:case Vr:case Br:case'[object\x20BigUint64Array]':case Hr:case Fr:case Zr:case'[object\x20BigInt64Array]':case Gr:case Xr:if('undefined'!=typeof Buffer&&Buffer['isBuffer'](_0x410478)!==Buffer['isBuffer'](_0xbbe922))return!0x1;if(_0x410478['length']!==_0xbbe922['length'])return!0x1;for(let _0x33b472=0x0;_0x33b472<_0x410478['length'];_0x33b472++)if(!Wr(_0x410478[_0x33b472],_0xbbe922[_0x33b472],_0x33b472,_0x410478,_0xbbe922,_0x364db4,_0x18e8db))return!0x1;return!0x0;case $r:return _0x410478['byteLength']===_0xbbe922['byteLength']&&zr(new Uint8Array(_0x410478),new Uint8Array(_0xbbe922),_0x364db4,_0x18e8db);case Qr:return _0x410478['byteLength']===_0xbbe922['byteLength']&&_0x410478['byteOffset']===_0xbbe922['byteOffset']&&zr(new Uint8Array(_0x410478),new Uint8Array(_0xbbe922),_0x364db4,_0x18e8db);case'[object\x20Error]':return _0x410478['name']===_0xbbe922['name']&&_0x410478['message']===_0xbbe922['message'];case Dr:{if(!(zr(_0x410478['constructor'],_0xbbe922['constructor'],_0x364db4,_0x18e8db)||Er(_0x410478)&&Er(_0xbbe922)))return!0x1;const _0x24d7fb=[...Object['keys'](_0x410478),...Tr(_0x410478)],_0x248f9e=[...Object['keys'](_0xbbe922),...Tr(_0xbbe922)];if(_0x24d7fb['length']!==_0x248f9e['length'])return!0x1;for(let _0x78a0be=0x0;_0x78a0be<_0x24d7fb['length'];_0x78a0be++){const _0x3faa0d=_0x24d7fb[_0x78a0be],_0x57024c=_0x410478[_0x3faa0d];if(!Object['hasOwn'](_0xbbe922,_0x3faa0d))return!0x1;if(!Wr(_0x57024c,_0xbbe922[_0x3faa0d],_0x3faa0d,_0x410478,_0xbbe922,_0x364db4,_0x18e8db))return!0x1;}return!0x0;}default:return!0x1;}}finally{_0x364db4['delete'](_0x410478),_0x364db4['delete'](_0xbbe922);}}function Yr(){}function Kr(_0x392a68,_0x277687){return function(_0xc615d4,_0x296fdf,_0xce728a){return Wr(_0xc615d4,_0x296fdf,void 0x0,void 0x0,void 0x0,void 0x0,_0xce728a);}(_0x392a68,_0x277687,Yr);}function Jr(_0x40b1ef){return ArrayBuffer['isView'](_0x40b1ef)&&!(_0x40b1ef instanceof DataView);}function to(_0x1daca9,_0x41a5e0,_0x163ab1,_0x80996b=new Map(),_0x546969=void 0x0){const _0x5587d5=_0x546969?.(_0x1daca9,_0x41a5e0,_0x163ab1,_0x80996b);if(void 0x0!==_0x5587d5)return _0x5587d5;if(function(_0x57131b){return null==_0x57131b||'object'!=typeof _0x57131b&&'function'!=typeof _0x57131b;}(_0x1daca9))return _0x1daca9;if(_0x80996b['has'](_0x1daca9))return _0x80996b['get'](_0x1daca9);if(Array['isArray'](_0x1daca9)){const _0x391894=new Array(_0x1daca9['length']);_0x80996b['set'](_0x1daca9,_0x391894);for(let _0x8304f3=0x0;_0x8304f3<_0x1daca9['length'];_0x8304f3++)_0x391894[_0x8304f3]=to(_0x1daca9[_0x8304f3],_0x8304f3,_0x163ab1,_0x80996b,_0x546969);return Object['hasOwn'](_0x1daca9,'index')&&(_0x391894['index']=_0x1daca9['index']),Object['hasOwn'](_0x1daca9,'input')&&(_0x391894['input']=_0x1daca9['input']),_0x391894;}if(_0x1daca9 instanceof Date)return new Date(_0x1daca9['getTime']());if(_0x1daca9 instanceof RegExp){const _0x32056f=new RegExp(_0x1daca9['source'],_0x1daca9['flags']);return _0x32056f['lastIndex']=_0x1daca9['lastIndex'],_0x32056f;}if(_0x1daca9 instanceof Map){const _0x3a29ea=new Map();_0x80996b['set'](_0x1daca9,_0x3a29ea);for(const [_0x1d567a,_0x4e12e7]of _0x1daca9)_0x3a29ea['set'](_0x1d567a,to(_0x4e12e7,_0x1d567a,_0x163ab1,_0x80996b,_0x546969));return _0x3a29ea;}if(_0x1daca9 instanceof Set){const _0x4f0c49=new Set();_0x80996b['set'](_0x1daca9,_0x4f0c49);for(const _0x1f6c09 of _0x1daca9)_0x4f0c49['add'](to(_0x1f6c09,void 0x0,_0x163ab1,_0x80996b,_0x546969));return _0x4f0c49;}if('undefined'!=typeof Buffer&&Buffer['isBuffer'](_0x1daca9))return _0x1daca9['subarray']();if(Jr(_0x1daca9)){const _0x59073e=new(Object['getPrototypeOf'](_0x1daca9))['constructor'](_0x1daca9['length']);_0x80996b['set'](_0x1daca9,_0x59073e);for(let _0x536329=0x0;_0x536329<_0x1daca9['length'];_0x536329++)_0x59073e[_0x536329]=to(_0x1daca9[_0x536329],_0x536329,_0x163ab1,_0x80996b,_0x546969);return _0x59073e;}if(_0x1daca9 instanceof ArrayBuffer||'undefined'!=typeof SharedArrayBuffer&&_0x1daca9 instanceof SharedArrayBuffer)return _0x1daca9['slice'](0x0);if(_0x1daca9 instanceof DataView){const _0x3433a4=new DataView(_0x1daca9['buffer']['slice'](0x0),_0x1daca9['byteOffset'],_0x1daca9['byteLength']);return _0x80996b['set'](_0x1daca9,_0x3433a4),eo(_0x3433a4,_0x1daca9,_0x163ab1,_0x80996b,_0x546969),_0x3433a4;}if('undefined'!=typeof File&&_0x1daca9 instanceof File){const _0x7d69e3=new File([_0x1daca9],_0x1daca9['name'],{'type':_0x1daca9['type']});return _0x80996b['set'](_0x1daca9,_0x7d69e3),eo(_0x7d69e3,_0x1daca9,_0x163ab1,_0x80996b,_0x546969),_0x7d69e3;}if('undefined'!=typeof Blob&&_0x1daca9 instanceof Blob){const _0x187747=new Blob([_0x1daca9],{'type':_0x1daca9['type']});return _0x80996b['set'](_0x1daca9,_0x187747),eo(_0x187747,_0x1daca9,_0x163ab1,_0x80996b,_0x546969),_0x187747;}if(_0x1daca9 instanceof Error){const _0x21e6b4=structuredClone(_0x1daca9);return _0x80996b['set'](_0x1daca9,_0x21e6b4),_0x21e6b4['message']=_0x1daca9['message'],_0x21e6b4['name']=_0x1daca9['name'],_0x21e6b4['stack']=_0x1daca9['stack'],_0x21e6b4['cause']=_0x1daca9['cause'],_0x21e6b4['constructor']=_0x1daca9['constructor'],eo(_0x21e6b4,_0x1daca9,_0x163ab1,_0x80996b,_0x546969),_0x21e6b4;}if(_0x1daca9 instanceof Boolean){const _0x8b4a29=new Boolean(_0x1daca9['valueOf']());return _0x80996b['set'](_0x1daca9,_0x8b4a29),eo(_0x8b4a29,_0x1daca9,_0x163ab1,_0x80996b,_0x546969),_0x8b4a29;}if(_0x1daca9 instanceof Number){const _0x3f7640=new Number(_0x1daca9['valueOf']());return _0x80996b['set'](_0x1daca9,_0x3f7640),eo(_0x3f7640,_0x1daca9,_0x163ab1,_0x80996b,_0x546969),_0x3f7640;}if(_0x1daca9 instanceof String){const _0x1f6572=new String(_0x1daca9['valueOf']());return _0x80996b['set'](_0x1daca9,_0x1f6572),eo(_0x1f6572,_0x1daca9,_0x163ab1,_0x80996b,_0x546969),_0x1f6572;}if('object'==typeof _0x1daca9&&function(_0x912732){switch(Ar(_0x912732)){case Cr:case Lr:case $r:case Qr:case xr:case Pr:case Gr:case Xr:case Hr:case Fr:case Zr:case Nr:case kr:case Dr:case Sr:case Mr:case Ir:case Rr:case jr:case Ur:case Vr:case Br:return!0x0;default:return!0x1;}}(_0x1daca9)){const _0x59bb27=Object['create'](Object['getPrototypeOf'](_0x1daca9));return _0x80996b['set'](_0x1daca9,_0x59bb27),eo(_0x59bb27,_0x1daca9,_0x163ab1,_0x80996b,_0x546969),_0x59bb27;}return _0x1daca9;}function eo(_0x192f24,_0x3f483b,_0x397b19=_0x192f24,_0x5a8aa5,_0x3361ad){const _0x322b10=[...Object['keys'](_0x3f483b),...Tr(_0x3f483b)];for(let _0x434e15=0x0;_0x434e15<_0x322b10['length'];_0x434e15++){const _0x383af8=_0x322b10[_0x434e15],_0x1fb70b=Object['getOwnPropertyDescriptor'](_0x192f24,_0x383af8);(null==_0x1fb70b||_0x1fb70b['writable'])&&(_0x192f24[_0x383af8]=to(_0x3f483b[_0x383af8],_0x383af8,_0x397b19,_0x5a8aa5,_0x3361ad));}}function io(_0x53aaa0,_0x17e639){return function(_0x7d39bc,_0x3e95e6){return to(_0x7d39bc,void 0x0,_0x7d39bc,new Map(),_0x3e95e6);}(_0x53aaa0,(_0x234bad,_0x36444c,_0x3653ec,_0xe5185d)=>{const _0x84684a=_0x17e639?.(_0x234bad,_0x36444c,_0x3653ec,_0xe5185d);if(void 0x0!==_0x84684a)return _0x84684a;if('object'==typeof _0x53aaa0){if('[object\x20Object]'===Ar(_0x53aaa0)&&'function'!=typeof _0x53aaa0['constructor']){const _0x532104={};return _0xe5185d['set'](_0x53aaa0,_0x532104),eo(_0x532104,_0x53aaa0,_0x3653ec,_0xe5185d),_0x532104;}switch(Object['prototype']['toString']['call'](_0x53aaa0)){case kr:case Ir:case xr:{const _0x1496fe=new _0x53aaa0['constructor'](_0x53aaa0?.['valueOf']());return eo(_0x1496fe,_0x53aaa0),_0x1496fe;}case Cr:{const _0x268a17={};return eo(_0x268a17,_0x53aaa0),_0x268a17['length']=_0x53aaa0['length'],_0x268a17[Symbol['iterator']]=_0x53aaa0[Symbol['iterator']],_0x268a17;}default:return;}}});}function so(_0x145859){return io(_0x145859);}function no(_0xf66b52){return null!=_0xf66b52&&'function'!=typeof _0xf66b52&&function(_0x2080bf){return Number['isSafeInteger'](_0x2080bf)&&_0x2080bf>=0x0;}(_0xf66b52['length']);}function ro(_0x149d11){return'symbol'==typeof _0x149d11||_0x149d11 instanceof Symbol;}function oo(_0x4ffe8d){return _0x4ffe8d?(_0x4ffe8d=function(_0x4af5bf){return ro(_0x4af5bf)?NaN:Number(_0x4af5bf);}(_0x4ffe8d))===0x1/0x0||_0x4ffe8d===-0x1/0x0?(_0x4ffe8d<0x0?-0x1:0x1)*Number['MAX_VALUE']:_0x4ffe8d==_0x4ffe8d?_0x4ffe8d:0x0:0x0===_0x4ffe8d?_0x4ffe8d:0x0;}function ao(_0x3f69e9,_0x5c1ff7){if(_0x3f69e9=function(_0x2c78ff){const _0x1853a0=oo(_0x2c78ff),_0x1081ac=_0x1853a0%0x1;return _0x1081ac?_0x1853a0-_0x1081ac:_0x1853a0;}(_0x3f69e9),_0x3f69e9<0x1||!Number['isSafeInteger'](_0x3f69e9))return[];const _0x474c26=new Array(_0x3f69e9);for(let _0x1edd05=0x0;_0x1edd05<_0x3f69e9;_0x1edd05++)_0x474c26[_0x1edd05]='function'==typeof _0x5c1ff7?_0x5c1ff7(_0x1edd05):_0x1edd05;return _0x474c26;}function co(_0x2ce823){if(null==_0x2ce823)return[];switch(typeof _0x2ce823){case'object':case'function':return no(_0x2ce823)?function(_0x2ae656){const _0x401e1c=ao(_0x2ae656['length'],_0x21f3f2=>''+_0x21f3f2),_0x308b6c=new Set(_0x401e1c);(function(_0x14f8e1){return'undefined'!=typeof Buffer&&Buffer['isBuffer'](_0x14f8e1);}(_0x2ae656)&&(_0x308b6c['add']('offset'),_0x308b6c['add']('parent')),function(_0x15c48c){return Jr(_0x15c48c);}(_0x2ae656)&&(_0x308b6c['add']('buffer'),_0x308b6c['add']('byteLength'),_0x308b6c['add']('byteOffset')));const _0x56fdf6=lo(_0x2ae656)['filter'](_0x2eaeac=>!_0x308b6c['has'](_0x2eaeac));return Array['isArray'](_0x2ae656)?[..._0x401e1c,..._0x56fdf6]:[..._0x401e1c['filter'](_0x5907b9=>Object['hasOwn'](_0x2ae656,_0x5907b9)),..._0x56fdf6];}(_0x2ce823):function(_0x5d09a7){const _0xdf71b3=_0x5d09a7?.['constructor'];return _0x5d09a7===('function'==typeof _0xdf71b3?_0xdf71b3['prototype']:Object['prototype']);}(_0x2ce823)?function(_0x4cd680){return lo(_0x4cd680)['filter'](_0x3f21f4=>'constructor'!==_0x3f21f4);}(_0x2ce823):lo(_0x2ce823);default:return lo(Object(_0x2ce823));}}function lo(_0x4d99b0){const _0x412535=[];for(const _0x3ec28f in _0x4d99b0)_0x412535['push'](_0x3ec28f);return _0x412535;}function ho(_0x3712ce){return'__proto__'===_0x3712ce;}function uo(_0x5a0561){switch(typeof _0x5a0561){case'number':case'symbol':return!0x1;case'string':return _0x5a0561['includes']('.')||_0x5a0561['includes']('[')||_0x5a0561['includes'](']');}}function fo(_0x3e973b){return'string'==typeof _0x3e973b||'symbol'==typeof _0x3e973b?_0x3e973b:Object['is'](_0x3e973b?.['valueOf']?.(),-0x0)?'-0':String(_0x3e973b);}function mo(_0x4417ac){if(null==_0x4417ac)return'';if('string'==typeof _0x4417ac)return _0x4417ac;if(Array['isArray'](_0x4417ac))return _0x4417ac['map'](mo)['join'](',');const _0x3fc813=String(_0x4417ac);return'0'===_0x3fc813&&Object['is'](Number(_0x4417ac),-0x0)?'-0':_0x3fc813;}function po(_0x352e8e){if(Array['isArray'](_0x352e8e))return _0x352e8e['map'](fo);if('symbol'==typeof _0x352e8e)return[_0x352e8e];const _0x5446d4=[],_0xba5985=(_0x352e8e=mo(_0x352e8e))['length'];if(0x0===_0xba5985)return _0x5446d4;let _0x271609=0x0,_0x11da18='',_0x258a50='',_0x339ac8=!0x1;for(0x2e===_0x352e8e['charCodeAt'](0x0)&&(_0x5446d4['push'](''),_0x271609++);_0x271609<_0xba5985;){const _0x1aaec0=_0x352e8e[_0x271609];_0x258a50?'\x5c'===_0x1aaec0&&_0x271609+0x1<_0xba5985?(_0x271609++,_0x11da18+=_0x352e8e[_0x271609]):_0x1aaec0===_0x258a50?_0x258a50='':_0x11da18+=_0x1aaec0:_0x339ac8?'\x22'===_0x1aaec0||'\x27'===_0x1aaec0?_0x258a50=_0x1aaec0:']'===_0x1aaec0?(_0x339ac8=!0x1,_0x5446d4['push'](_0x11da18),_0x11da18=''):_0x11da18+=_0x1aaec0:'['===_0x1aaec0?(_0x339ac8=!0x0,_0x11da18&&(_0x5446d4['push'](_0x11da18),_0x11da18='')):'.'===_0x1aaec0?_0x11da18&&(_0x5446d4['push'](_0x11da18),_0x11da18=''):_0x11da18+=_0x1aaec0,_0x271609++;}return _0x11da18&&_0x5446d4['push'](_0x11da18),_0x5446d4;}function go(_0x5d912b,_0x2a673a,_0x1506c0){if(null==_0x5d912b)return _0x1506c0;switch(typeof _0x2a673a){case'string':{if(ho(_0x2a673a))return _0x1506c0;const _0x151d00=_0x5d912b[_0x2a673a];return void 0x0===_0x151d00?uo(_0x2a673a)?go(_0x5d912b,po(_0x2a673a),_0x1506c0):_0x1506c0:_0x151d00;}case'number':case'symbol':{'number'==typeof _0x2a673a&&(_0x2a673a=fo(_0x2a673a));const _0x1b0c71=_0x5d912b[_0x2a673a];return void 0x0===_0x1b0c71?_0x1506c0:_0x1b0c71;}default:{if(Array['isArray'](_0x2a673a))return function(_0x40973b,_0x40b9b3,_0x2703af){if(0x0===_0x40b9b3['length'])return _0x2703af;let _0x2456ae=_0x40973b;for(let _0x4fea8f=0x0;_0x4fea8f<_0x40b9b3['length'];_0x4fea8f++){if(null==_0x2456ae)return _0x2703af;if(ho(_0x40b9b3[_0x4fea8f]))return _0x2703af;_0x2456ae=_0x2456ae[_0x40b9b3[_0x4fea8f]];}return void 0x0===_0x2456ae?_0x2703af:_0x2456ae;}(_0x5d912b,_0x2a673a,_0x1506c0);if(ho(_0x2a673a=Object['is'](_0x2a673a?.['valueOf'](),-0x0)?'-0':String(_0x2a673a)))return _0x1506c0;const _0x345174=_0x5d912b[_0x2a673a];return void 0x0===_0x345174?_0x1506c0:_0x345174;}}}function Oo(_0x245331,_0x216ec7){if(null==_0x245331)return!0x0;switch(typeof _0x216ec7){case'symbol':case'number':case'object':if(Array['isArray'](_0x216ec7))return wo(_0x245331,_0x216ec7);if('number'==typeof _0x216ec7?_0x216ec7=fo(_0x216ec7):'object'==typeof _0x216ec7&&(_0x216ec7=Object['is'](_0x216ec7?.['valueOf'](),-0x0)?'-0':String(_0x216ec7)),ho(_0x216ec7))return!0x1;if(void 0x0===_0x245331?.[_0x216ec7])return!0x0;try{return delete _0x245331[_0x216ec7],!0x0;}catch{return!0x1;}case'string':if(void 0x0===_0x245331?.[_0x216ec7]&&uo(_0x216ec7))return wo(_0x245331,po(_0x216ec7));if(ho(_0x216ec7))return!0x1;try{return delete _0x245331[_0x216ec7],!0x0;}catch{return!0x1;}}}function wo(_0x3d880d,_0x23e0a6){const _0x5513b6=0x1===_0x23e0a6['length']?_0x3d880d:go(_0x3d880d,_0x23e0a6['slice'](0x0,-0x1)),_0x10eb35=_0x23e0a6[_0x23e0a6['length']-0x1];if(void 0x0===_0x5513b6?.[_0x10eb35])return!0x0;if(ho(_0x10eb35))return!0x1;try{return delete _0x5513b6[_0x10eb35],!0x0;}catch{return!0x1;}}function bo(_0x5e0def){const _0x42f16a=[];for(;_0x5e0def;)_0x42f16a['push'](...Tr(_0x5e0def)),_0x5e0def=Object['getPrototypeOf'](_0x5e0def);return _0x42f16a;}function yo(_0xa027db){if('object'!=typeof _0xa027db)return!0x1;if(null==_0xa027db)return!0x1;if(null===Object['getPrototypeOf'](_0xa027db))return!0x0;if('[object\x20Object]'!==Object['prototype']['toString']['call'](_0xa027db)){const _0x415263=_0xa027db[Symbol['toStringTag']];return null!=_0x415263&&(!!Object['getOwnPropertyDescriptor'](_0xa027db,Symbol['toStringTag'])?.['writable']&&_0xa027db['toString']()==='[object\x20'+_0x415263+']');}let _0xfdadae=_0xa027db;for(;null!==Object['getPrototypeOf'](_0xfdadae);)_0xfdadae=Object['getPrototypeOf'](_0xfdadae);return Object['getPrototypeOf'](_0xa027db)===_0xfdadae;}function vo(_0x584441,..._0xf1e142){if(null==_0x584441)return{};_0xf1e142=function(_0x4a5991,_0x6f6009=0x1){const _0x430895=[],_0x200332=Math['floor'](_0x6f6009);if(!no(_0x4a5991))return _0x430895;const _0xcc508c=(_0x559b86,_0x1b0095)=>{for(let _0x2a1302=0x0;_0x2a1302<_0x559b86['length'];_0x2a1302++){const _0xcf61d8=_0x559b86[_0x2a1302];_0x1b0095<_0x200332&&(Array['isArray'](_0xcf61d8)||Boolean(_0xcf61d8?.[Symbol['isConcatSpreadable']])||null!==_0xcf61d8&&'object'==typeof _0xcf61d8&&'[object\x20Arguments]'===Object['prototype']['toString']['call'](_0xcf61d8))?Array['isArray'](_0xcf61d8)?_0xcc508c(_0xcf61d8,_0x1b0095+0x1):_0xcc508c(Array['from'](_0xcf61d8),_0x1b0095+0x1):_0x430895['push'](_0xcf61d8);}};return _0xcc508c(Array['from'](_0x4a5991),0x0),_0x430895;}(_0xf1e142);const _0x1d1ed9=function(_0x4259d9,_0x15c49d){return _0x15c49d['some'](_0x577aa4=>Array['isArray'](_0x577aa4)||uo(_0x577aa4))?function(_0x3a1204){const _0x3c1b31={},_0x8fa080=[...co(_0x3a1204),...bo(_0x3a1204)];for(let _0x1cbad2=0x0;_0x1cbad2<_0x8fa080['length'];_0x1cbad2++){const _0x4b5cce=_0x8fa080[_0x1cbad2];_0x3c1b31[_0x4b5cce]=io(_0x3a1204[_0x4b5cce],_0x340aae=>{if(!yo(_0x340aae))return _0x340aae;});}return _0x3c1b31;}(_0x4259d9):function(_0x24dd13){const _0x50d825={},_0x1930c8=[...co(_0x24dd13),...bo(_0x24dd13)];for(let _0x224e11=0x0;_0x224e11<_0x1930c8['length'];_0x224e11++){const _0x58f790=_0x1930c8[_0x224e11];_0x50d825[_0x58f790]=_0x24dd13[_0x58f790];}return _0x50d825;}(_0x4259d9);}(_0x584441,_0xf1e142);for(let _0x1a453e=0x0;_0x1a453e<_0xf1e142['length'];_0x1a453e++){let _0x3a7909=_0xf1e142[_0x1a453e];switch(typeof _0x3a7909){case'object':Array['isArray'](_0x3a7909)||(_0x3a7909=Array['from'](_0x3a7909));for(let _0x3075ed=0x0;_0x3075ed<_0x3a7909['length'];_0x3075ed++){Oo(_0x1d1ed9,_0x3a7909[_0x3075ed]);}break;case'string':case'symbol':case'number':Oo(_0x1d1ed9,_0x3a7909);}}return _0x1d1ed9;}const _o=(_0x134eb4,_0x39aa17,_0x25cdb1)=>{const _0x413c2a=_0x134eb4[_0x39aa17];Object['hasOwn'](_0x134eb4,_0x39aa17)&&qr(_0x413c2a,_0x25cdb1)&&(void 0x0!==_0x25cdb1||_0x39aa17 in _0x134eb4)||(_0x134eb4[_0x39aa17]=_0x25cdb1);},Eo=/^(?:0|[1-9]\d*)$/;function To(_0x5a870b,_0x1a0e16=Number['MAX_SAFE_INTEGER']){switch(typeof _0x5a870b){case'number':return Number['isInteger'](_0x5a870b)&&_0x5a870b>=0x0&&_0x5a870b<_0x1a0e16;case'symbol':return!0x1;case'string':return Eo['test'](_0x5a870b);}}const Ao=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,So=/^\w*$/;function Io(_0x2195a8){return null!==_0x2195a8&&('object'==typeof _0x2195a8||'function'==typeof _0x2195a8);}function ko(_0x5df1fa,_0x279b18,_0x3b2cd1,_0x3e3fbb){if(null==_0x5df1fa&&!Io(_0x5df1fa))return _0x5df1fa;let _0x4205bd;_0x4205bd=function(_0xb234d3,_0x1d03fb){return!Array['isArray'](_0xb234d3)&&(!('number'!=typeof _0xb234d3&&'boolean'!=typeof _0xb234d3&&null!=_0xb234d3&&!ro(_0xb234d3))||'string'==typeof _0xb234d3&&(So['test'](_0xb234d3)||!Ao['test'](_0xb234d3))||null!=_0x1d03fb&&Object['hasOwn'](_0x1d03fb,_0xb234d3));}(_0x279b18,_0x5df1fa)?[_0x279b18]:Array['isArray'](_0x279b18)?_0x279b18:po(_0x279b18);const _0x2a8a26=_0x3b2cd1(go(_0x5df1fa,_0x4205bd));let _0x49c571=_0x5df1fa;for(let _0x474645=0x0;_0x474645<_0x4205bd['length']&&null!=_0x49c571;_0x474645++){const _0x25256d=fo(_0x4205bd[_0x474645]);if(ho(_0x25256d))continue;let _0x390c97;if(_0x474645===_0x4205bd['length']-0x1)_0x390c97=_0x2a8a26;else{const _0x3c4f79=_0x49c571[_0x25256d],_0x349aae=_0x3e3fbb?.(_0x3c4f79,_0x25256d,_0x5df1fa);_0x390c97=void 0x0!==_0x349aae?_0x349aae:Io(_0x3c4f79)?_0x3c4f79:To(_0x4205bd[_0x474645+0x1])?[]:{};}_o(_0x49c571,_0x25256d,_0x390c97),_0x49c571=_0x49c571[_0x25256d];}return _0x5df1fa;}function xo(_0x26aaa1,_0x45a8ee,_0x4af38c){return ko(_0x26aaa1,_0x45a8ee,()=>_0x4af38c,()=>{});}const Co={'&':'&amp;','<':'&lt;','>':'&gt;','\x22':'&quot;','\x27':'&#39;'};function Ro(_0x32440c){return mo(_0x32440c)['replace'](/[&<>"']/g,_0x3be470=>Co[_0x3be470]);}function Po(_0x55197e){return function(_0x3818e3){return _0x3818e3['replace'](/[\\^$.*+?()[\]{}|]/g,'\x5c$&');}(mo(_0x55197e));}const No={'&amp;':'&','&lt;':'<','&gt;':'>','&quot;':'\x22','&#39;':'\x27'};function Mo(_0x1eeaa5){return function(_0x46cf62){return _0x46cf62['replace'](/&(?:amp|lt|gt|quot|#(0+)?39);/g,_0x308ea1=>No[_0x308ea1]||'\x27');}(mo(_0x1eeaa5));}var Lo=class extends _0x585012{constructor(_0x4bef20){super();const _0xe9b6be=new _0x532ad8(),_0x10c424=new _0x39ae99(this['locale'],_0xe9b6be);this['children']['add'](_0x10c424),_0x10c424['set']({'label':_0x4bef20['prompt'],'withText':!0x0}),_0x10c424['on']('execute',()=>{this['fire']('execute',{'value':Mo(_0x4bef20['prompt'])});});}};const $o='CKEditor/AIFormView/PromptHistory';var Do=class extends _0x2186b6{constructor(){super(),this['_loadFromSessionStorage'](),this['on']('add',(_0x3a75a5,_0x1fe071)=>{const _0x5ace8e=Qo(_0x1fe071['prompt']);for(const _0x2a562a of this)if(_0x2a562a!=_0x1fe071&&Qo(_0x2a562a['prompt'])===_0x5ace8e){this['remove'](_0x2a562a);break;}this['length']>0x14&&this['remove'](this['last']),this['_saveToSessionStorage']();}),this['on']('remove',()=>{this['_saveToSessionStorage']();});}_loadFromSessionStorage(){const _0x587865=sessionStorage['getItem']($o)||'[]';this['addMany'](JSON['parse'](_0x587865));}_saveToSessionStorage(){sessionStorage['setItem']($o,JSON['stringify'](this['map'](_0x4217d1=>_0x4217d1)));}};function Qo(_0x4ceec9){return _0x4ceec9['toLowerCase']()['trim']();}var jo=class extends _0x2f6e1a{['focusTracker'];keystrokes;contentArea;toolbar;promptView;['errorView'];['_focusables'];['focusCycler'];_promptHistory;constructor(_0x31559f,_0x4f5cbb,_0x104af6=''){super(_0x31559f),this['set']('isEnabled',!0x0),this['set']('isProcessing',!0x1),this['set']('prompt',''),this['set']('value',''),this['set']('isError',!0x1),this['set']('mainAction',fr['REPLACE']),this['_promptHistory']=new Do(),this['errorView']=new Or(_0x31559f),this['contentArea']=new pr(_0x31559f,_0x104af6),this['contentArea']['bind']('isProcessing')['to'](this),this['contentArea']['bind']('value')['to'](this),this['toolbar']=this['_createToolbar'](),this['toolbar']['bind']('mainAction')['to'](this),this['promptView']=this['_createPromptView'](),this['focusTracker']=new _0x1c95ab(),this['keystrokes']=new _0xa8275a(),this['_focusables']=this['createCollection']([this['contentArea'],this['contentArea']['copyButtonView'],this['toolbar'],this['promptView']]),this['focusCycler']=new _0x273f88({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['focusCycler']['chain'](this['promptView']['focusCycler']),this['promptView']['queryView']['fieldView']['bind']('value')['to'](this,'prompt');const _0x538f21=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form',_0x4f5cbb],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-form-content']},'children':[{'tag':'div','attributes':{'class':[_0x538f21['if']('isError','ck-hidden',_0x5af698=>!_0x5af698)]},'children':[this['errorView']]},this['contentArea'],this['toolbar'],this['promptView']]}]});}['render'](){super['render'](),this['focusTracker']['add'](this['contentArea']['element']),this['focusTracker']['add'](this['contentArea']['copyButtonView']['element']),this['focusTracker']['add'](this['toolbar']['element']),this['focusTracker']['add'](this['promptView']['element']),this['keystrokes']['listenTo'](this['element']);}['focus'](_0x4ca06c=0x1){-0x1===_0x4ca06c?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}reset(){this['prompt']='',this['value']='',this['isError']=!0x1,this['promptView']['reset'](),this['contentArea']['isVisible']=!0x1,this['toolbar']['isVisible']=!0x1;}_createPromptView(){const _0xc30129=this['locale'],_0x49e308=new wr(_0xc30129,{'queryView':{'label':ar(_0xc30129,'Ask\x20AI\x20to\x20edit\x20or\x20generate'),'creator':_0x165b0b,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':ar(_0xc30129,'Empty\x20history'),'secondary':ar(_0xc30129,'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.')}}},'filteredView':this['_createHistoryView'](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x49e308['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',(_0x5d9f42,_0x33d7e4)=>_0x5d9f42&&!_0x33d7e4),this['listenTo'](_0x49e308,'submit',(_0x38ef23,_0x422db1)=>{this['prompt']=_0x422db1;const _0x37aac9=Ro(_0x422db1);this['fire']('submitPrompt',_0x37aac9),_0x422db1['trim']()&&this['_promptHistory']['add']({'prompt':_0x37aac9},0x0);},{'priority':'high'}),_0x49e308;}_createHistoryView(){const _0x57b080=new br(this['locale']);return _0x57b080['historyGroupView']['items']['bindTo'](this['_promptHistory'])['as'](Lo),_0x57b080['on']('clearHistory',()=>{this['_promptHistory']['clear'](),this['promptView']['search'](''),this['promptView']['focus']();}),_0x57b080;}_createToolbar(){const _0x5ee2b1=new mr(this['locale']);return _0x5ee2b1['replaceButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',this,'value',(_0x365e5b,_0x445f9a,_0x569075)=>_0x365e5b&&!_0x445f9a&&!!_0x569075),_0x5ee2b1['replaceButton']['delegate']('execute')['to'](this,'replaceContent'),_0x5ee2b1['insertButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',this,'value',(_0x58aeed,_0x334188,_0x4b4d78)=>_0x58aeed&&!_0x334188&&!!_0x4b4d78),_0x5ee2b1['insertButton']['delegate']('execute')['to'](this,'insertContentBelow'),_0x5ee2b1['tryAgainButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',(_0x597e43,_0x484bab)=>_0x597e43&&!_0x484bab),_0x5ee2b1['tryAgainButton']['delegate']('execute')['to'](this,'tryAgainEvent'),_0x5ee2b1['stopButton']['bind']('isEnabled')['to'](this,'isProcessing'),_0x5ee2b1['stopButton']['delegate']('execute')['to'](this,'stopProcessing'),_0x5ee2b1;}startProcessing(){this['value']='',this['isError']=!0x1,this['isProcessing']=!0x0,this['contentArea']['isVisible']=!0x0,this['toolbar']['isVisible']=!0x0,this['contentArea']['focus']();}['finishProcessing'](){const _0x3f7c33=this['locale'];this['isProcessing']=!0x1,this['prompt']='',this['promptView']['reset'](),this['value']&&(this['promptView']['queryView']['label']=ar(_0x3f7c33,'Ask\x20AI\x20to\x20improve\x20generated\x20text'));}['handleError'](_0x57700b){const _0x16b534=this['locale'];this['finishProcessing'](),this['isError']=!0x0,this['errorView']['text']=_0x57700b||ar(_0x16b534,'AI_ERROR_FAILED'),this['value']||(this['contentArea']['isVisible']=!0x1);}};const Uo=globalThis['DataTransfer'];var Vo=class extends _0x11fe30{['licenseKey'];_licenseKeyCheckInterval;['_dialog'];['_formView'];_aiAdapter;_aiAssistantController;['_uiCssClasses']='';static get['pluginName'](){return'AIAssistantUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x36137f,nr,rr,_0x3e3ae5];}constructor(_0x21f64d){super(_0x21f64d),_0x21f64d['config']['define']('ai.assistant.disabledElements',['media','rawHtml','tableOfContents']),_0x21f64d['config']['define']('ai.assistant.contentAreaCssClass',''),_0x21f64d['config']['define']('ai.assistant.useTheme',!0x0),this['_uiCssClasses']='ck-ai-assistant-ui'+(_0x21f64d['config']['get']('ai.assistant.useTheme')?'\x20ck-ai-assistant-ui_theme':'');}init(){const {editor:_0x55ae19}=this;this['_aiAdapter']=_0x55ae19['plugins']['get'](rr),this['_dialog']=_0x55ae19['plugins']['get'](_0x3e3ae5),this['_formView']=null,this['_commandDefinitions']=this['_getResolvedCommandsDefinitions']();const _0x27ae1a=new cr(_0x55ae19,Array['from'](this['_commandDefinitions']['values']()));_0x55ae19['commands']['add']('showAIAssistant',_0x27ae1a),_0x55ae19['ui']['componentFactory']['add']('aiCommands',_0x176494=>{const _0x55e863=_0x46490d(_0x176494);return _0x55e863['set']({'class':'ck-ai-commands-dropdown\x20'+this['_uiCssClasses']}),_0x55e863['buttonView']['set']({'label':ar(_0x176494,'AI\x20Commands'),'icon':Ct,'tooltip':!0x0}),_0x55e863['on']('execute',_0x277dd6=>this['_onExecute'](_0x277dd6['source']['id'])),_0x285dbc(_0x55e863,_0x55ae19['ui']['view']['body'],function(_0x1d2faa){const _0x331bd7=Ho(_0x1d2faa,er(_0x1d2faa['config']['get']('ai.assistant.commands'),_0x1d2faa['locale']))['filter'](_0xfd7690=>_0xfd7690['commands']['length']);return 0x1===_0x331bd7['length']?Ho(_0x1d2faa,_0x331bd7[0x0]['commands'])['map'](_0x526792=>({'id':_0x526792['id'],'label':_0x526792['label']})):_0x331bd7['map'](_0x3c9269=>{const {groupId:_0x3ed280,groupLabel:_0xdbd147,commands:_0x5978a3}=_0x3c9269,_0x492aa8=Ho(_0x1d2faa,_0x5978a3)['map'](_0x28c856=>({'id':_0x28c856['id'],'label':_0x28c856['label']}));return{'id':_0x3ed280,'menu':_0xdbd147||_0x3ed280,'children':_0x492aa8};});}(_0x55ae19),{'ariaLabel':ar(_0x176494,'AI\x20Commands')}),_0x55e863['menuView']['menuPanelClass']='ck-ai-commands-dropdown\x20'+this['_uiCssClasses'],_0x27ae1a['on']('change:enabledCommandsIds',_0x10b086),_0x55e863['menuView']['once']('render',_0x10b086),_0x55e863;function _0x10b086(){_0x55e863['isEnabled']=_0x27ae1a['enabledCommandsIds']['length']>0x0;for(const _0x2a5b93 of _0x55e863['menuView']['buttons'])_0x2a5b93['isEnabled']=_0x27ae1a['enabledCommandsIds']['includes'](_0x2a5b93['id']);}}),_0x55ae19['ui']['componentFactory']['add']('menuBar:aiCommands',_0x1ad239=>{const _0x1c65d9=new _0xf2980e(_0x1ad239);_0x1c65d9['buttonView']['set']({'label':ar(_0x1ad239,'AI\x20Commands'),'icon':Ct}),_0x1c65d9['bind']('isEnabled')['to'](_0x27ae1a,'enabledCommandsIds',_0x1fe74c=>_0x1fe74c['length']>0x0);const _0x319b20=er(_0x55ae19['config']['get']('ai.assistant.commands'),_0x1ad239);return this['_populateMenuBarMenu'](_0x27ae1a,_0x1c65d9,_0x319b20,_0x4c25e2=>this['_onExecute'](_0x4c25e2)),_0x1c65d9;}),_0x55ae19['ui']['componentFactory']['add']('aiAssistant',()=>{const _0x31a1d2=this['_createAIAssistantUIButton'](_0x39ae99);return _0x31a1d2['set']({'tooltip':!0x0,'class':'ck-ai-assistant-button\x20'+this['_uiCssClasses']}),_0x31a1d2;}),_0x55ae19['ui']['componentFactory']['add']('menuBar:aiAssistant',()=>{const _0x50cec2=this['_createAIAssistantUIButton'](_0x589436);return _0x50cec2['set']({'role':'menuitemcheckbox'}),_0x50cec2;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x630b95=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x171d77;for(const _0xa2dd56 in _0x630b95){const _0x380876=_0xa2dd56,_0xa49af1=_0x630b95[_0x380876];if('aiLicenseKeyValid'==_0xa49af1||'aiLicenseKeyInvalid'==_0xa49af1||'aiLicenseKeyExpired'==_0xa49af1||'aiLicenseKeyDomainLimit'==_0xa49af1||'aiLicenseKeyNotAllowed'==_0xa49af1||'aiLicenseKeyEvaluationLimit'==_0xa49af1||'aiLicenseKeyUsageLimit'==_0xa49af1){delete _0x630b95[_0x380876],_0x171d77=_0xa49af1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'aiLicenseKeyInvalid'==_0x171d77&&_0x630b95['_showLicenseError']('invalid'),'aiLicenseKeyExpired'==_0x171d77&&_0x630b95['_showLicenseError']('expired'),'aiLicenseKeyDomainLimit'==_0x171d77&&_0x630b95['_showLicenseError']('domainLimit'),'aiLicenseKeyNotAllowed'==_0x171d77&&_0x630b95['_showLicenseError']('featureNotAllowed','AIAssistant'),'aiLicenseKeyEvaluationLimit'==_0x171d77&&_0x630b95['_showLicenseError']('evaluationLimit'),'aiLicenseKeyUsageLimit'==_0x171d77&&_0x630b95['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['showUI'](_0x4d28='',_0x357748='',_0x26130b='custom'){const _0x45e90a=this['editor'],_0x5be1b1=_0x45e90a['editing']['view'],_0x101285=_0x45e90a['plugins']['get'](nr),_0x19ec52=_0x45e90a['plugins']['get'](_0x36137f);_0x101285['showFakeVisualSelection']();const _0x500697=new Uo(),_0x92d443=new ClipboardEvent('copy',{'clipboardData':_0x500697}),_0x301043=new _0x5e4952(_0x500697),_0xc9ed1b=new _0x40cda4(_0x5be1b1,_0x92d443,{'dataTransfer':_0x301043});_0x19ec52['_forceMarkersCopy']('comment',()=>{_0x5be1b1['document']['fire']('copy',_0xc9ed1b);}),this['_formView']||(this['_initView'](),this['_aiAssistantController']=new dr(_0x45e90a,this['_aiAdapter']['textAdapter'],this['_formView']));let _0x82d9ef=_0x301043['getData']('text/html');const _0x2fe64d=_0x45e90a['model']['document']['selection'],_0x139ede=Array['from'](_0x2fe64d['getRanges']());0x1===_0x139ede['length']&&_0x139ede[0x0]['isFlat']&&!_0x2fe64d['getSelectedElement']()&&''!==_0x82d9ef['replace'](/&nbsp;/g,'')['trim']()&&(_0x82d9ef='<p>'+_0x82d9ef+'</p>'),this['_aiAssistantController']['updateView']({'actionId':_0x26130b,'query':_0x4d28,'htmlContent':_0x82d9ef,'label':_0x357748,'mainActionLabel':fr[_0x45e90a['model']['document']['selection']['isCollapsed']?'INSERT':'REPLACE']}),'aiAssistant'!==this['_dialog']['id']?this['_dialog']['show']({'id':'aiAssistant','icon':Jt,'title':ar(this['editor']['locale'],'AI\x20Assistant'),'content':this['_formView'],'position':_0x3846ff['EDITOR_TOP_SIDE'],'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_aiAssistantController']['reset'](),_0x101285['hideFakeVisualSelection']();}}):this['_dialog']['view']['wasMoved']||this['_dialog']['view']['updatePosition']();}['hideUI'](){this['_dialog']['hide']();}_getResolvedCommandsDefinitions(){const _0x38e463=new Map(),_0x5708af=er(this['editor']['config']['get']('ai.assistant.commands'),this['editor']['locale']);for(const _0x319e53 of _0x5708af)for(const _0x3f82ad of _0x319e53['commands'])_0x38e463['set'](_0x3f82ad['id'],{..._0x3f82ad,'groupId':_0x319e53['groupId'],'groupLabel':_0x319e53['groupLabel']||_0x319e53['groupId']});return _0x38e463;}_createAIAssistantUIButton(_0x4c1346){const _0x37a32c=this['editor'],_0x4cf803=_0x37a32c['commands']['get']('showAIAssistant'),_0x11df3c=new _0x4c1346(_0x37a32c['locale']);return _0x11df3c['set']({'label':ar(_0x37a32c['locale'],'AI\x20Assistant'),'icon':Jt,'isToggleable':!0x0}),_0x11df3c['bind']('isEnabled')['to'](_0x4cf803),_0x11df3c['bind']('isOn')['to'](this['_dialog'],'id',_0x962e65=>'aiAssistant'===_0x962e65),this['listenTo'](_0x11df3c,'execute',()=>{_0x11df3c['isOn']?this['hideUI']():_0x4cf803['execute']();}),_0x11df3c;}_initView(){const _0x4d9019=this['editor']['plugins']['get'](nr);this['_formView']=new jo(this['editor']['locale'],this['_uiCssClasses'],this['editor']['config']['get']('ai.assistant.contentAreaCssClass')),this['_formView']['on']('change:value',()=>{this['_dialog']['view']['wasMoved']||this['_dialog']['view']['updatePosition']();}),this['_formView']['promptView']['queryView']['fieldView']['on']('update',()=>{this['_dialog']['view']['wasMoved']||this['_dialog']['view']['updatePosition']();}),this['listenTo'](this['_formView'],'replaceContent',()=>{_0x4d9019['insertContent'](this['_aiAssistantController']['currentContext']),this['hideUI']();}),this['listenTo'](this['_formView'],'insertContentBelow',()=>{_0x4d9019['insertContentBelow'](this['_aiAssistantController']['currentContext']),this['hideUI']();}),this['_initAriaAiStatusChangeAnnouncements']();}_initAriaAiStatusChangeAnnouncements(){const {locale:_0x32e808,ui:{ariaLiveAnnouncer:_0xf2e293}}=this['editor'];this['_formView']['contentArea']['on']('change:isProcessing',(_0x1326c8,_0x564db4,_0x5f0d86)=>{const _0x2ed6ff=this['_aiAssistantController']['currentContext'];_0x5f0d86?_0xf2e293['announce'](ar(_0x32e808,'AI\x20is\x20writing')):_0x2ed6ff&&_0xf2e293['announce'](ar(_0x32e808,'Generated\x20content:\x20%0',_0x2ed6ff),{'politeness':'polite','isUnsafeHTML':!0x0});}),this['_formView']['on']('change:isError',(_0x2f10cf,_0xe2e95a,_0xcad601)=>{if(_0xcad601){const _0x2c95d6=this['_formView']['errorView']['text'];_0xf2e293['announce'](ar(_0x32e808,'Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x2c95d6));}});}_onExecute(_0x1ce0ae){const _0xabc17d=this['_commandDefinitions']['get'](_0x1ce0ae),_0x10577e=this['editor'],_0x430747=_0x10577e['model']['document']['selection'],_0x5a1d34=_0x10577e['commands']['get']('showAIAssistant'),_0x195375=_0x10577e['plugins']['get'](nr),_0x1c8d55=''+('_ungrouppedCommands'!==_0xabc17d['groupId']?_0xabc17d['groupLabel']+':\x20':'')+_0xabc17d['label'];if(!0x1!==_0xabc17d['requiresContent']&&_0x430747['isCollapsed']){const _0x1f3184=_0x4b2d4c(_0x430747['getSelectedBlocks']())||_0x10577e['model']['schema']['getLimitElement'](_0x430747);_0x10577e['model']['change'](_0x267dbd=>{_0x267dbd['setSelection'](_0x1f3184,'in');});}_0x195375['showFakeVisualSelection'](),_0x5a1d34['execute'](_0xabc17d['prompt'],_0x1c8d55,'command:'+_0x1ce0ae);}_populateMenuBarMenu(_0x1bad28,_0x37afa9,_0x104202,_0x2a4a7a){const _0x45b4e1=this['editor'],_0x3e07ff=_0x45b4e1['locale'],_0x436dbc=new _0x32d381(_0x3e07ff),_0x117146=Ho(_0x45b4e1,_0x104202)['filter'](_0x6768a1=>_0x6768a1['commands']['length']);0x1===_0x117146['length']?this['_getMenuBarGroupButtons']({'command':_0x1bad28,'commands':_0x117146[0x0]['commands'],'parentMenuView':_0x37afa9,'onExecute':_0x2a4a7a})['forEach'](_0x1bfe85=>_0x436dbc['items']['add'](_0x1bfe85)):_0x117146['forEach'](({groupId:_0x41d2de,groupLabel:_0x43ee24,commands:_0x560797})=>{const _0x151791=new _0x1bf87e(_0x3e07ff,_0x37afa9),_0xcb3f02=new _0xf2980e(_0x3e07ff),_0x1242cf=new _0x32d381(_0x3e07ff),_0x6f4736=this['_getMenuBarGroupButtons']({'command':_0x1bad28,'commands':_0x560797,'parentMenuView':_0xcb3f02,'onExecute':_0x2a4a7a});_0xcb3f02['buttonView']['set']({'label':_0x43ee24||_0x41d2de}),_0xcb3f02['delegate']('execute')['to'](_0x37afa9),_0x1242cf['items']['addMany'](_0x6f4736),_0xcb3f02['panelView']['children']['add'](_0x1242cf),_0x151791['children']['add'](_0xcb3f02),_0x436dbc['items']['add'](_0x151791);}),_0x37afa9['panelView']['children']['add'](_0x436dbc);}_getMenuBarGroupButtons({command:_0x33cf15,commands:_0x1a02e1,parentMenuView:_0x25b690,onExecute:_0x3d1fa3}){const _0x4a1b11=this['editor'],_0x21e905=_0x4a1b11['locale'];return Ho(_0x4a1b11,_0x1a02e1)['map'](_0x57bff5=>{const _0x1565e5=new _0x1bf87e(_0x21e905,_0x25b690),_0x15755b=new _0x589436(_0x21e905);return _0x15755b['set']({'label':_0x57bff5['label']}),_0x15755b['delegate']('execute')['to'](_0x25b690),_0x15755b['on']('execute',()=>_0x3d1fa3(_0x57bff5['id'])),_0x15755b['bind']('isEnabled')['to'](_0x33cf15,'enabledCommandsIds',_0x563d66=>_0x563d66['includes'](_0x57bff5['id'])),_0x1565e5['children']['add'](_0x15755b),_0x1565e5;});}};function Bo(_0x467bb8,_0x406ae5){return void 0x0!==_0x467bb8['order']&&void 0x0===_0x406ae5['order']?0x1:void 0x0===_0x467bb8['order']&&void 0x0!==_0x406ae5['order']?-0x1:void 0x0!==_0x467bb8['order']&&void 0x0!==_0x406ae5['order']?_0x467bb8['order']-_0x406ae5['order']:0x0;}function Ho(_0xba90d7,_0x1e6576){_0x1e6576['sort'](Bo);const _0x59b5a2={},_0x4c6ef7=[];for(const _0x453097 of _0x1e6576)if(void 0x0!==_0x453097['order']){if(_0x453097['order']in _0x59b5a2)throw new _0x4242d4('ai-commands-config-order-collision',_0xba90d7,{'conflictingDefinitions':[_0x453097,_0x59b5a2[_0x453097['order']]]});_0x59b5a2[_0x453097['order']]=_0x453097,_0x4c6ef7['splice'](_0x453097['order'],0x0,_0x453097);}else _0x4c6ef7['push'](_0x453097);return _0x4c6ef7;}var Fo=class extends _0x11fe30{static get requires(){return[Vo,nr];}static get['pluginName'](){return'AIAssistant';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x22753e){super(_0x22753e);const _0x515b54=_0x22753e['config'],_0x2fe3f0=_0x22753e['locale'];_0x515b54['define']('ai.assistant.preserveComments',!0x0),_0x515b54['define']('ai.assistant.commands',Zo(_0x2fe3f0)),_0x515b54['define']('ai.assistant.extraCommandGroups',[]),_0x515b54['define']('ai.assistant.removeCommands',[]);let _0x20881e=er(_0x515b54['get']('ai.assistant.commands'),_0x2fe3f0);const _0x58cb35=_0x515b54['get']('ai.assistant.extraCommandGroups'),_0x153fda=_0x515b54['get']('ai.assistant.removeCommands');_0x58cb35['forEach'](_0x5bafed=>{const _0x2e182f=_0x20881e['find'](_0x37ccf6=>_0x37ccf6['groupId']===_0x5bafed['groupId']);_0x2e182f?_0x2e182f['commands']=_0x2e182f['commands']['concat'](_0x5bafed['commands']):_0x20881e['push'](_0x5bafed);}),_0x20881e=_0x20881e['filter'](_0x1954d2=>!_0x153fda['includes'](_0x1954d2['groupId'])),_0x20881e['forEach'](_0x2eaa1d=>{_0x2eaa1d['commands']=_0x2eaa1d['commands']['filter'](_0x32d0a3=>!_0x153fda['includes'](_0x32d0a3['id']));}),_0x515b54['set']('ai.assistant.commands',_0x20881e);}};function Zo(_0x410aaa){return[{'groupId':'editOrReview','groupLabel':ar(_0x410aaa,'Edit\x20or\x20review'),'commands':[{'id':'improveWriting','label':ar(_0x410aaa,'Improve\x20writing'),'prompt':'Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.'},{'id':'makeShorter','label':ar(_0x410aaa,'Make\x20shorter'),'prompt':'Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.'},{'id':'makeLonger','label':ar(_0x410aaa,'Make\x20longer'),'prompt':'Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.'},{'id':'simplifyLanguage','label':ar(_0x410aaa,'Simplify\x20language'),'prompt':'Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.'}]},{'groupId':'generate','groupLabel':ar(_0x410aaa,'Generate\x20from\x20selection'),'commands':[{'id':'summarize','label':ar(_0x410aaa,'Summarize'),'prompt':'Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.'},{'id':'continue','label':ar(_0x410aaa,'Continue'),'prompt':'Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.'}]},{'groupId':'changeTone','groupLabel':ar(_0x410aaa,'Change\x20tone'),'commands':[{'id':'professional','label':ar(_0x410aaa,'Professional'),'prompt':'Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.'},{'id':'casual','label':ar(_0x410aaa,'Casual'),'prompt':'Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.'},{'id':'direct','label':ar(_0x410aaa,'Direct'),'prompt':'Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.'},{'id':'confident','label':ar(_0x410aaa,'Confident'),'prompt':'Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.'},{'id':'friendly','label':ar(_0x410aaa,'Friendly'),'prompt':'Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.'}]},{'groupId':'changeStyle','groupLabel':ar(_0x410aaa,'Change\x20style'),'commands':[{'id':'business','label':ar(_0x410aaa,'Business'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.'},{'id':'legal','label':ar(_0x410aaa,'Legal'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.'},{'id':'journalism','label':ar(_0x410aaa,'Journalism'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.'},{'id':'poetic','label':ar(_0x410aaa,'Poetic'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.'}]},{'groupId':'translate','groupLabel':ar(_0x410aaa,'Translate'),'commands':[{'id':'translateEnglish','label':ar(_0x410aaa,'English'),'prompt':'Translate\x20the\x20content\x20to\x20English\x20language.'},{'id':'translateSpanish','label':ar(_0x410aaa,'Spanish'),'prompt':'Translate\x20the\x20content\x20to\x20Spanish\x20language.'},{'id':'translatePortuguese','label':ar(_0x410aaa,'Portuguese'),'prompt':'Translate\x20the\x20content\x20to\x20Portuguese\x20language.'},{'id':'translateGerman','label':ar(_0x410aaa,'German'),'prompt':'Translate\x20the\x20content\x20to\x20German\x20language.'},{'id':'translateFrench','label':ar(_0x410aaa,'French'),'prompt':'Translate\x20the\x20content\x20to\x20French\x20language.'},{'id':'translateChinese','label':ar(_0x410aaa,'Simplified\x20Chinese'),'prompt':'Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.'},{'id':'translateHindi','label':ar(_0x410aaa,'Hindi'),'prompt':'Translate\x20the\x20content\x20to\x20Hindi\x20language.'},{'id':'translateArabic','label':ar(_0x410aaa,'Arabic'),'prompt':'Translate\x20the\x20content\x20to\x20Arabic\x20language.'}]}];}var Go=class extends _0x11fe30{abortController;static get requires(){return[rr];}constructor(_0xf0ad28){super(_0xf0ad28),this['abortController']=new AbortController();}init(){this['editor']['plugins']['get'](rr)['textAdapter']=this;}abort(){this['abortController']['signal']['aborted']||(this['abortController']['abort'](),this['abortController']=new AbortController());}async makeRequest(_0x46c1e4){return this['sendRequest'](_0x46c1e4)['catch'](_0x28064=>{if(_0x28064 instanceof or)return Promise['reject'](_0x28064);if('AbortError'==_0x28064['name'])return Promise['resolve']();throw console['error'](_0x28064),new _0x4242d4('aitextadapter-send-request-failed',null);});}async _prepareRequestHeaders(_0x5a4463,_0x375d71){const _0x4303c0=this['editor']['locale'],_0x7c82bb={'Content-Type':'application/json'};if('object'==typeof _0x5a4463)Object['assign'](_0x7c82bb,_0x5a4463);else{if(_0x5a4463)try{const _0x3610d9=await _0x5a4463(_0x375d71);Object['assign'](_0x7c82bb,_0x3610d9);}catch{return Promise['reject'](new or(ar(_0x4303c0,'AI_ERROR_GET_HEADERS')));}}return _0x7c82bb;}async _prepareRequestParameters(_0x192ec0,_0x1878b8){const _0x4df0d0=this['editor']['locale'];if('object'==typeof _0x192ec0)return _0x192ec0;try{return await _0x192ec0(_0x1878b8);}catch{return Promise['reject'](new or(ar(_0x4df0d0,'AI_ERROR_GET_PARAMETERS')));}}},Xo=class extends Go{['_apiUrl'];_requestHeaders;_requestParameters;static get['pluginName'](){return'OpenAITextAdapter';}constructor(_0x4af656){super(_0x4af656),_0x4af656['config']['define']('ai.assistant.adapter.openAI.apiUrl','https://api.openai.com/v1/chat/completions'),_0x4af656['config']['get']('ai.assistant.adapter.openAI.requestParameters')||_0x4af656['config']['define']('ai.assistant.adapter.openAI.requestParameters',{'model':'gpt-4o','temperature':0x1,'top_p':0x1,'stream':!0x0}),this['_apiUrl']=_0x4af656['config']['get']('ai.assistant.adapter.openAI.apiUrl'),this['_requestHeaders']=_0x4af656['config']['get']('ai.assistant.adapter.openAI.requestHeaders')||{},this['_requestParameters']=_0x4af656['config']['get']('ai.assistant.adapter.openAI.requestParameters');}async sendRequest({query:_0x5a3ac3,context:_0x44b462,onData:_0x175b4f,actionId:_0x533f8e}){const _0x1a87c0=this['editor']['locale'],_0x3a8bc5=await this['prepareMessages'](_0x5a3ac3,_0x44b462,_0x533f8e),_0x5aaf8b=await this['_prepareRequestHeaders'](this['_requestHeaders'],_0x533f8e),_0x51a2dc=await this['_prepareRequestParameters'](this['_requestParameters'],_0x533f8e),_0x504004={'messages':_0x3a8bc5,..._0x51a2dc},_0x14d895={'method':'POST','headers':_0x5aaf8b,'body':JSON['stringify'](_0x504004),'signal':this['abortController']['signal']},_0x5caadd=await fetch(this['_apiUrl'],_0x14d895);if(_0x5caadd['ok'])return _0x51a2dc['stream']?await this['_readStreamableResponse'](_0x5caadd,_0x175b4f):await this['_readStaticResponse'](_0x5caadd,_0x175b4f),Promise['resolve']();{const _0x4b0183=await _0x5caadd['text']();return _0x4b0183['includes']('context_length_exceeded')?Promise['reject'](new or(ar(_0x1a87c0,'AI_ERROR_CONTEXT_LENGTH'))):_0x4b0183['includes']('Moderation')?Promise['reject'](new or(ar(_0x1a87c0,'AI_ERROR_MODERATION'))):Promise['reject'](new Error(_0x4b0183));}}async['prepareMessages'](_0x4c4eec,_0x2bdb90,_0x2db93f){let _0x282378,_0x2c65c0;return _0x2bdb90?(_0x282378='Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.',_0x2c65c0='Instruction:\x0a'+_0x4c4eec+'\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a'+_0x2bdb90):(_0x282378='Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.',_0x2c65c0=_0x4c4eec),[{'role':'system','content':_0x282378},{'role':'user','content':_0x2c65c0}];}async _readStreamableResponse(_0x41cf53,_0x4a5a75){const _0x4092f7=_0x41cf53['body']['getReader'](),_0x2e3233=new TextDecoder();let _0x4d8506='',_0x2a9e3d='',_0xcec523='',_0x360356=!0x1;for(;!_0x360356;){const {done:_0x20f055,value:_0x1f9581}=await _0x4092f7['read'](),_0x221158=_0x4d8506+_0x2e3233['decode'](_0x1f9581);let _0x58e410;_0x360356=_0x20f055;try{_0x58e410=this['_cleanUpData'](_0x221158),_0x4d8506='';}catch{_0x4d8506=_0x221158;continue;}_0x2a9e3d+=_0x58e410,!_0x360356&&this['_isBufferIncomplete'](_0x2a9e3d)||_0x2a9e3d&&(_0xcec523+=_0x2a9e3d,_0x2a9e3d='',_0x4a5a75(_0xcec523));}return Promise['resolve']();}async _readStaticResponse(_0x1245e0,_0x18aa9f){return _0x18aa9f((await _0x1245e0['json']())['choices'][0x0]['message']['content']),Promise['resolve']();}_isBufferIncomplete(_0x91c61f){const _0x25791d=_0x91c61f['split']('<')['length']!==_0x91c61f['split']('>')['length'],_0x59f175=_0x91c61f['length']<0x1e;return _0x25791d&&_0x59f175;}_cleanUpData(_0x49baa5){return _0x49baa5['split'](/\n(?![^{]*\})/g)['map'](_0x503a5b=>_0x503a5b['replace']('data:\x20',''))['filter'](_0x4ffb99=>_0x4ffb99&&_0x4ffb99['length']>0x0&&'[DONE]'!==_0x4ffb99)['map'](_0x543cc6=>{const {choices:_0x2853e3}=JSON['parse'](_0x543cc6);if(_0x2853e3[0x0]?.['delta']?.['content'])return _0x2853e3[0x0]['delta']['content'];})['filter'](_0x14a507=>_0x14a507)['join']('');}},qo=class extends Go{static get['pluginName'](){return'AWSTextAdapter';}init(){super['init'](),_0x53dc7a('ai-aws-adapter-not-supported');}async sendRequest(_0x52ca3e){throw _0x4ddea0('ai-aws-adapter-not-supported'),new or(ar(this['editor']['locale'],'AI_ERROR_AWS_NOT_SUPPORTED'));}},Wo=class extends _0x39ae99{constructor(_0x3cd58f,_0x5fab3e={}){super(_0x3cd58f),this['isToggleable']=!0x0,this['set']('side',_0x5fab3e['side']||'top');const _0x44bde5=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':['ck-tab-button',..._0x577a85(_0x5fab3e['class']||[]),_0x44bde5['to']('side',_0x5ae8f0=>'ck-tab-button_'+_0x5ae8f0),_0x44bde5['to']('class')]}});}['show'](){this['set']('isVisible',!0x0);}['hide'](){this['set']('isVisible',!0x1);}},zo=class extends _0x2f6e1a{['children'];constructor(_0x4961cf,_0x28ca43={}){super(_0x4961cf);const _0x426440=this['bindTemplate'];this['set']('isVisible',!0x1),this['set']('class',''),this['children']=this['createCollection'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-tab-panel',..._0x577a85(_0x28ca43['class']||[]),_0x426440['to']('class'),_0x426440['if']('isVisible','ck-hidden',_0xb5cf73=>!_0xb5cf73)]},'children':this['children']});}['show'](){this['set']('isVisible',!0x0);}['hide'](){this['set']('isVisible',!0x1);}},Yo=class extends _0x2f6e1a{buttonViews=this['createCollection']();['panelViews']=this['createCollection']();_tabs=new Map();constructor(_0x211dc3,_0x27a825={}){super(_0x211dc3),this['set']('class',void 0x0),this['set']('activeTab',null),this['set']('side',_0x27a825['side']||'top'),this['set']('isMaximized',!0x1),this['set']('collapsible',_0x27a825['collapsible']||!0x1),this['set']('isCollapsed',!0x1),this['set']('_isMaximizedActive',!0x1),this['bind']('_isMaximizedActive')['to'](this,'isMaximized',this,'isCollapsed',(_0x223464,_0x547f9c)=>_0x223464&&!_0x547f9c);const _0x4876b8=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-tabs',..._0x577a85(_0x27a825['class']||[]),_0x4876b8['to']('side',_0x4270ec=>'ck-tabs_'+_0x4270ec),_0x4876b8['to']('class'),_0x4876b8['if']('_isMaximizedActive','ck-ai-tabs_maximized'),_0x4876b8['if']('isCollapsed','ck-ai-tabs_collapsed')],'tabindex':'0'},'children':[{'tag':'div','attributes':{'class':['ck','ck-tabs__buttons-container',_0x4876b8['to']('side',_0x4a503b=>'ck-tabs__buttons-container_'+_0x4a503b)]},'children':this['buttonViews']},{'tag':'div','attributes':{'class':['ck','ck-tabs__panels-container',_0x4876b8['to']('side',_0x25523a=>'ck-tabs__panels-container_'+_0x25523a)]},'children':this['panelViews']},..._0x577a85(_0x27a825['children']||[])]});}getTabIds(){return[...this['_tabs']['keys']()];}getTab(_0x246fc8){const _0x5c68c2=this['_tabs']['get'](_0x246fc8);return _0x5c68c2||null;}['addTab'](_0x58d9e7){const _0x3afcf4=this['_setupButton']({'id':_0x58d9e7['id'],'label':_0x58d9e7['buttonLabel'],'icon':_0x58d9e7['buttonIcon'],'order':_0x58d9e7['order']}),_0x2eb81f=new zo(this['locale']);return _0x2eb81f['render'](),_0x58d9e7['content']&&_0x2eb81f['children']['add'](_0x58d9e7['content']),this['panelViews']['add'](_0x2eb81f),this['_tabs']['set'](_0x58d9e7['id'],{'button':_0x3afcf4,'panel':_0x2eb81f,'order':void 0x0!==_0x58d9e7['order']?_0x58d9e7['order']:null}),this['fire']('addTab:'+_0x58d9e7['id'],{'id':_0x58d9e7['id'],'button':_0x3afcf4,'panel':_0x2eb81f}),null===this['activeTab']?this['activateTab'](_0x58d9e7['id']):this['_hidePanel'](_0x58d9e7['id']),{'button':_0x3afcf4,'panel':_0x2eb81f};}activateTab(_0x42ea6f){if(null!==_0x42ea6f&&!this['getTab'](_0x42ea6f))throw new _0x4242d4('ui-tabsview-tab-not-found',{'tabs':this,'tabId':_0x42ea6f});if(this['isCollapsed']=!0x1,this['activeTab']===_0x42ea6f)return;const _0x76d847=this['activeTab'];this['activeTab']&&this['_hidePanel'](this['activeTab']),this['activeTab']=_0x42ea6f,_0x42ea6f&&this['_showPanel'](_0x42ea6f),this['fire']('activateTab:'+_0x42ea6f,{'newTab':_0x42ea6f,'oldTab':_0x76d847});}toggleTabPanel(_0x53c4e1){this['activeTab']===_0x53c4e1?this['collapsible']&&(this['isCollapsed']=!this['isCollapsed']):this['activateTab'](_0x53c4e1);}['showTab'](_0x5736e5){if(!this['getTab'](_0x5736e5))throw new _0x4242d4('ui-tabsview-tab-not-found',{'tabs':this,'tabId':_0x5736e5});this['_showPanel'](_0x5736e5),this['_showButton'](_0x5736e5),this['fire']('show:'+_0x5736e5,_0x5736e5);}['hideTab'](_0x2b758a){if(!this['getTab'](_0x2b758a))throw new _0x4242d4('ui-tabsview-tab-not-found',{'tabs':this,'tabId':_0x2b758a});const _0x7ec679=this['activeTab'];this['_hidePanel'](_0x2b758a),this['_hideButton'](_0x2b758a);const _0x54eca7=this['getTabIds']();_0x7ec679===_0x2b758a&&_0x54eca7['length']>0x1&&this['activateTab'](_0x54eca7['find'](_0x208c75=>_0x208c75!==_0x2b758a)),this['fire']('hide:'+_0x2b758a,_0x2b758a);}_getPanel(_0x3050f6){const _0x45dfb0=this['_tabs']['get'](_0x3050f6);return _0x45dfb0?_0x45dfb0['panel']:null;}['_showPanel'](_0x1f2cc7){null!==this['activeTab']&&this['activeTab']!==_0x1f2cc7||this['_getPanel'](_0x1f2cc7)['show']();}['_hidePanel'](_0x541652){const _0x5544f5=this['_getPanel'](_0x541652);_0x5544f5['isVisible']&&(this['activeTab']===_0x541652&&(this['activeTab']=null),_0x5544f5['hide']());}_getButton(_0x3ae597){const _0x5c45a2=this['_tabs']['get'](_0x3ae597);return _0x5c45a2?_0x5c45a2['button']:null;}_showButton(_0x33cf99){this['_getButton'](_0x33cf99)['show']();}_hideButton(_0x593f2e){this['_getButton'](_0x593f2e)['hide']();}_setupButton(_0x3a4ac1){const _0x52806e=new Wo(this['locale'],{'side':this['side']}),_0x212a11=this['buttonViews'];if(_0x52806e['set']({'label':_0x3a4ac1['label'],'icon':_0x3a4ac1['icon'],'tooltip':!0x0,'withText':!0x0}),_0x52806e['bind']('isOn')['to'](this,'activeTab',this,'isCollapsed',(_0x2f6f0a,_0xd6e16a)=>_0x2f6f0a===_0x3a4ac1['id']&&!_0xd6e16a),_0x52806e['bind']('side')['to'](this,'side'),_0x3a4ac1['order']){const _0x49d173=[...this['_tabs']]['reduce']((_0x2e5c03,_0x34601a)=>{const _0xa06c9b=_0x34601a[0x0],{order:_0x572ca9}=_0x34601a[0x1];return!_0x572ca9||_0x572ca9>_0x3a4ac1['order']?_0x2e5c03:_0x572ca9>=_0x2e5c03['order']?{'id':_0xa06c9b,'order':_0x572ca9}:_0x2e5c03;},{'id':'','order':0x0}),_0x1f67d0=_0x212a11['getIndex'](this['_getButton'](_0x49d173['id']));_0x212a11['add'](_0x52806e,_0x1f67d0+0x1);}else _0x212a11['add'](_0x52806e);return _0x52806e['on']('execute',()=>{this['toggleTabPanel'](_0x3a4ac1['id']);}),_0x52806e;}};const Ko=['overlay','sidebar','custom'],Jo=['left','right'];var ta=class extends Yo{constructor(_0x5cd3e7,_0xc7bc75={}){super(_0x5cd3e7,_0xc7bc75),this['set']('type',_0xc7bc75['type']||'sidebar'),this['set']('side',_0xc7bc75['side']||'right'),this['set']('isVisible',_0xc7bc75['visibleByDefault']??!0x0);const _0x48d532=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':['ck-ai-tabs',_0x48d532['if']('type','ck-ai-tabs__overlay',_0x12a5c6=>'overlay'===_0x12a5c6),_0x48d532['if']('type','ck-ai-tabs__sidebar',_0x314d00=>'sidebar'===_0x314d00),_0x48d532['if']('isVisible','ck-hidden',_0x10313c=>!_0x10313c)]}}),this['buttonViews']['on']('add',(_0x3b7ef0,_0x4ade12)=>{_0x4ade12['set']('withText',!0x1);});}},ea=class extends _0x4dd342{['view'];container=null;showResizeButton=!0x0;static get['pluginName'](){return'AITabs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1413f6){if(super(_0x1413f6),!this['context']['config']['get']('ai.container'))throw new _0x4242d4('ai-tabs-configuration-not-found');this['context']['config']['define']('ai.container.visibleByDefault',!0x0),this['context']['config']['define']('ai.container.collapsible',!0x1);const _0xcbff91=this['context']['config']['get']('ai.container');if(this['set']('side','right'),void 0x0!==_0xcbff91['showResizeButton']&&(this['showResizeButton']=_0xcbff91['showResizeButton']),'sidebar'!==_0xcbff91['type']&&'overlay'!==_0xcbff91['type']||_0xcbff91['side']&&(this['side']=_0xcbff91['side']),'sidebar'===_0xcbff91['type']){if(this['container']=_0xcbff91['element'],this['set']('type','sidebar'),!this['container'])throw new _0x4242d4('ai-tabs-sidebar-container-element-not-found');}else'overlay'===_0xcbff91['type']?(this['container']=document['body'],this['set']('type','overlay')):(this['container']=null,this['set']('type','custom'));this['view']=new ta(this['context']['locale'],{'side':this['side'],'type':this['type'],'visibleByDefault':_0xcbff91['visibleByDefault'],'collapsible':_0xcbff91['collapsible']}),this['view']['render'](),this['view']['bind']('side')['to'](this,'side'),this['view']['bind']('type')['to'](this,'type'),this['container']&&this['container']['appendChild'](this['view']['element']),this['context']instanceof _0x95124b&&this['context']['ui']['focusTracker']['add'](this['view']['element']),this['listenTo'](this,'resizeTabs',()=>{this['view']['isMaximized']=!this['view']['isMaximized'],this['fire']('resizedTabs',this['view']['isMaximized']);});}switchType(_0x1807fb){if(_0x1807fb&&this['type']!==_0x1807fb){if(!Ko['includes'](_0x1807fb))throw new _0x4242d4('ai-tabs-unsupported-ui-type');this['type']=_0x1807fb;}}switchSide(_0x532e3c){if(_0x532e3c&&this['side']!==_0x532e3c){if(!Jo['includes'](_0x532e3c))throw new _0x4242d4('ai-tabs-unsupported-ui-side');this['side']=_0x532e3c;}}destroy(){super['destroy'](),this['view']['destroy'](),this['view']['element']&&this['view']['element']['remove']();}},ia=class extends Error{constructor(_0x4bca40,_0x25a2bc){super(_0x4bca40),this['name']='ParseError',this['type']=_0x25a2bc['type'],this['field']=_0x25a2bc['field'],this['value']=_0x25a2bc['value'],this['line']=_0x25a2bc['line'];}};function sa(_0x30690a){}function na(_0xce834e){if('function'==typeof _0xce834e)throw new TypeError('`callbacks`\x20must\x20be\x20an\x20object,\x20got\x20a\x20function\x20instead.\x20Did\x20you\x20mean\x20`{onEvent:\x20fn}`?');const {onEvent:_0x2fc0c9=sa,onError:_0x488c94=sa,onRetry:_0x3db94c=sa,onComment:_0x36f222}=_0xce834e;let _0x2c2fe7,_0x2b0194='',_0x4bba39=!0x0,_0x43af0d='',_0x8d952e='';function _0x507dc0(_0xef5dcf){if(''===_0xef5dcf)return _0x43af0d['length']>0x0&&_0x2fc0c9({'id':_0x2c2fe7,'event':_0x8d952e||void 0x0,'data':_0x43af0d['endsWith']('\x0a')?_0x43af0d['slice'](0x0,-0x1):_0x43af0d}),_0x2c2fe7=void 0x0,_0x43af0d='',void(_0x8d952e='');if(_0xef5dcf['startsWith'](':'))return void(_0x36f222&&_0x36f222(_0xef5dcf['slice'](_0xef5dcf['startsWith'](':\x20')?0x2:0x1)));const _0x2842ee=_0xef5dcf['indexOf'](':');if(-0x1!==_0x2842ee){const _0xbe6eb6=_0xef5dcf['slice'](0x0,_0x2842ee),_0x1c3c84='\x20'===_0xef5dcf[_0x2842ee+0x1]?0x2:0x1;return void _0x3fabe9(_0xbe6eb6,_0xef5dcf['slice'](_0x2842ee+_0x1c3c84),_0xef5dcf);}_0x3fabe9(_0xef5dcf,'',_0xef5dcf);}function _0x3fabe9(_0x298cda,_0x16f16c,_0x9ebe30){switch(_0x298cda){case'event':_0x8d952e=_0x16f16c;break;case'data':_0x43af0d=''+_0x43af0d+_0x16f16c+'\x0a';break;case'id':_0x2c2fe7=_0x16f16c['includes']('\x00')?void 0x0:_0x16f16c;break;case'retry':/^\d+$/['test'](_0x16f16c)?_0x3db94c(parseInt(_0x16f16c,0xa)):_0x488c94(new ia('Invalid\x20`retry`\x20value:\x20\x22'+_0x16f16c+'\x22',{'type':'invalid-retry','value':_0x16f16c,'line':_0x9ebe30}));break;default:_0x488c94(new ia('Unknown\x20field\x20\x22'+(_0x298cda['length']>0x14?_0x298cda['slice'](0x0,0x14)+'…':_0x298cda)+'\x22',{'type':'unknown-field','field':_0x298cda,'value':_0x16f16c,'line':_0x9ebe30}));}}return{'feed':function(_0x2848d0){const _0x34fe73=_0x4bba39?_0x2848d0['replace'](/^\xEF\xBB\xBF/,''):_0x2848d0,[_0x5688e9,_0x1b2c4a]=function(_0x6ed04a){const _0x54bf0c=[];let _0x1101eb='',_0xa08056=0x0;for(;_0xa08056<_0x6ed04a['length'];){const _0x214ecd=_0x6ed04a['indexOf']('\x0d',_0xa08056),_0x481871=_0x6ed04a['indexOf']('\x0a',_0xa08056);let _0x4a07dc=-0x1;if(-0x1!==_0x214ecd&&-0x1!==_0x481871?_0x4a07dc=Math['min'](_0x214ecd,_0x481871):-0x1!==_0x214ecd?_0x4a07dc=_0x214ecd:-0x1!==_0x481871&&(_0x4a07dc=_0x481871),-0x1===_0x4a07dc){_0x1101eb=_0x6ed04a['slice'](_0xa08056);break;}{const _0x4c8b79=_0x6ed04a['slice'](_0xa08056,_0x4a07dc);_0x54bf0c['push'](_0x4c8b79),_0xa08056=_0x4a07dc+0x1,'\x0d'===_0x6ed04a[_0xa08056-0x1]&&'\x0a'===_0x6ed04a[_0xa08056]&&_0xa08056++;}}return[_0x54bf0c,_0x1101eb];}(''+_0x2b0194+_0x34fe73);for(const _0x2729e3 of _0x5688e9)_0x507dc0(_0x2729e3);_0x2b0194=_0x1b2c4a,_0x4bba39=!0x1;},'reset':function(_0x448df0={}){_0x2b0194&&_0x448df0['consume']&&_0x507dc0(_0x2b0194),_0x4bba39=!0x0,_0x2c2fe7=void 0x0,_0x43af0d='',_0x8d952e='',_0x2b0194='';}};}function ra(_0x303730){return{..._0x303730,'type':'context'};}var oa=class extends _0x4dd342{['_apiUrl'];get['_apiUrlV11'](){return this['_apiUrl']['replace'](/\/v1$/,'/v1.1');}_token;['_decoder'];static get requires(){return[_0x3bc91d];}static get['pluginName'](){return'AIConnector';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5bee00){if(super(_0x5bee00),this['context']['config']['define']('ai.serviceUrl','https://ai.cke-cs.com/v1'),this['_apiUrl']=this['context']['config']['get']('ai.serviceUrl')['replace'](/\/+$/,''),!this['_apiUrl']['endsWith']('/v1'))throw new _0x4242d4('ai-service-url-invalid-version',this,{'serviceUrl':this['_apiUrl']});this['_token']=null,this['_decoder']=new TextDecoder();}init(){const _0x3e4cf6=this['context']['plugins']['get'](_0x3bc91d);if(!_0x3e4cf6['token'])throw new _0x4242d4('ai-missing-token',this);this['_token']=_0x3e4cf6['token'];}_getExtraHttpHeaders(){const _0x134414=this['context']['config']['get']('ai.extraHttpHeaders'),_0x2d8c7b='function'==typeof _0x134414?_0x134414():_0x134414;if(Array['isArray'](_0x2d8c7b)&&_0x2d8c7b['length'])return Object['fromEntries'](_0x2d8c7b['map'](({domain:_0x26ff68,headers:_0x246049})=>[_0x26ff68,_0x246049]));}startConversation(_0x5615cb,_0x57b1b8){const _0x24eabc=this['_sendApiRequest']('/conversations','POST',{'id':_0x5615cb,'group':_0x57b1b8});return{'getConversation':async()=>(await _0x24eabc['request'])['json'](),'abortController':_0x24eabc['abortController']};}queryAssistant({message:_0x587645,conversationId:_0x160fa1,parts:_0x65a037,capabilities:_0x16e4df,model:_0x49d693,attributes:_0x490b5e}){const _0x50861c=this['_getExtraHttpHeaders'](),_0x182298={..._0x587645&&{'prompt':_0x587645},'content':_0x65a037,'model':_0x49d693,..._0x16e4df&&{'capabilities':_0x16e4df},..._0x490b5e&&{'attributes':_0x490b5e},..._0x50861c&&{'extraHttpHeaders':_0x50861c}},_0xe25aaf=this['_sendApiRequest']('/conversations/'+_0x160fa1+'/messages','POST',_0x182298,{'apiUrl':this['_apiUrlV11']});return{'getStream':async()=>{const _0x46fe7a=(await _0xe25aaf['request'])['body'];return this['_getStreamReader'](_0x46fe7a);},'abortController':_0xe25aaf['abortController']};}executeCustomAction({content:_0x3435b7,message:_0x3b487d,model:_0x2b2241,outputFormat:_0x390906,contexts:_0x5c9d80}){const _0x193b18={'content':[{'type':'text','content':_0x3435b7}],..._0x3b487d&&{'prompt':_0x3b487d},'model':_0x2b2241,'outputFormat':_0x390906,...aa(_0x5c9d80)},_0x1944cc=this['_sendApiRequest']('/actions/custom/calls','POST',_0x193b18);return{'getStream':async()=>{const _0x11bfdf=(await _0x1944cc['request'])['body'];return this['_getStreamReader'](_0x11bfdf);},'abortController':_0x1944cc['abortController']};}executeAction({actionName:_0x48b7c1,content:_0x413a93,args:_0x14fd55,contexts:_0x123097}){const _0x2b3f5b={'content':[{'type':'text','content':_0x413a93}],'args':_0x14fd55,...aa(_0x123097)},_0x3dc364=this['_sendApiRequest']('/actions/system/'+_0x48b7c1+'/calls','POST',_0x2b3f5b);return{'getStream':async()=>{const _0x4d7230=(await _0x3dc364['request'])['body'];return this['_getStreamReader'](_0x4d7230);},'abortController':_0x3dc364['abortController']};}['uploadFile'](_0x5352bc,_0x3e598f,_0x198c06){const _0x1af331=new FormData();_0x1af331['append']('file',_0x3e598f,_0x3e598f['name']),_0x198c06&&_0x1af331['append']('attributes',JSON['stringify'](_0x198c06));const _0x202275=this['_sendApiRequest']('/conversations/'+_0x5352bc+'/files','POST',_0x1af331);return{'getId':async()=>(await _0x202275['request'])['json'](),'abortController':_0x202275['abortController']};}uploadDocuments(_0x4733d7,_0x5e14fd){const _0x330e9f={'documents':_0x5e14fd['map'](_0x1e0fc1=>({'content':_0x1e0fc1['content'],'attributes':{'version':_0x1e0fc1['version'],'sessionId':_0x1e0fc1['sessionId'],'channelId':_0x1e0fc1['channelId'],'rootName':_0x1e0fc1['rootName'],'selections':_0x1e0fc1['selections']},...void 0x0!==_0x1e0fc1['name']?{'name':_0x1e0fc1['name']}:{},...void 0x0!==_0x1e0fc1['description']?{'description':_0x1e0fc1['description']}:{}}))},_0x5408b0=this['_sendApiRequest']('/conversations/'+_0x4733d7+'/documents/batch','POST',_0x330e9f);return{'getIds':async()=>(await _0x5408b0['request'])['json'](),'abortController':_0x5408b0['abortController']};}fetchDocuments(_0x796673,_0x3fa57a){const _0x476ba6=new URLSearchParams();_0x476ba6['append']('documentIds',_0x3fa57a['join'](','));const _0x55f579=this['_sendApiRequest']('/conversations/'+_0x796673+'/documents/batch?'+_0x476ba6['toString'](),'GET');return{'getDocuments':async()=>(await _0x55f579['request'])['json'](),'abortController':_0x55f579['abortController']};}fetchConversations(_0x19e454,_0x2c76c3={}){const _0x1ea136=new URLSearchParams();_0x1ea136['append']('group',_0x19e454),_0x1ea136['append']('excludeEmpty',!0x1!==_0x2c76c3['excludeEmpty']?'true':'false'),_0x1ea136['append']('limit',_0x2c76c3['limit']?_0x2c76c3['limit']['toString']():0x64['toString']()),_0x1ea136['append']('sortBy',_0x2c76c3['sortBy']?_0x2c76c3['sortBy']:'createdAt'),_0x1ea136['append']('order',_0x2c76c3['order']?_0x2c76c3['order']:'desc');const _0x10ae3f=this['_sendApiRequest']('/conversations?'+_0x1ea136['toString'](),'GET');return{'getConversations':async()=>(await(await _0x10ae3f['request'])['json']())['items'],'abortController':_0x10ae3f['abortController']};}deleteConversation(_0x17c2b3){const _0x24852d=this['_sendApiRequest']('/conversations/'+_0x17c2b3,'DELETE');return{'execute':async()=>{await _0x24852d['request'];},'abortController':_0x24852d['abortController']};}updateConversation(_0x403371,_0x37934f){const _0xf22da1=this['_sendApiRequest']('/conversations/'+_0x403371,'PATCH',_0x37934f);return{'getResult':async()=>(await _0xf22da1['request'],_0x37934f),'abortController':_0xf22da1['abortController']};}fetchConversation(_0x5bdf1a){const _0x3cc5de=this['_sendApiRequest']('/conversations/'+_0x5bdf1a,'GET');return{'getConversation':async()=>(await _0x3cc5de['request'])['json'](),'abortController':_0x3cc5de['abortController']};}fetchConversationMessages(_0x56066e){const _0x4f723e=this['_sendApiRequest']('/conversations/'+_0x56066e+'/messages','GET',void 0x0,{'apiUrl':this['_apiUrlV11']});return{'getMessages':async()=>(await(await _0x4f723e['request'])['json']())['items'],'abortController':_0x4f723e['abortController']};}['uploadUrl'](_0x5782c4,_0x55e5aa,_0x1582f3){const _0x2b7de7=this['_sendApiRequest']('/conversations/'+_0x5782c4+'/web-resources','POST',{'url':_0x55e5aa,'attributes':_0x1582f3});return{'getId':async()=>(await _0x2b7de7['request'])['json'](),'abortController':_0x2b7de7['abortController']};}getModels(_0x4eba97='en'){const _0xf5b9a7=new URLSearchParams();_0xf5b9a7['append']('language',_0x4eba97);const _0x4ccac2='/models/1?'+_0xf5b9a7['toString'](),_0x1280d4=this['_sendApiRequest'](_0x4ccac2,'GET');return{'list':async()=>await(await _0x1280d4['request'])['json'](),'abortController':_0x1280d4['abortController']};}listContexts(_0x293c2e={}){const _0x25e9da=new URLSearchParams();_0x25e9da['append']('limit',_0x293c2e['limit']?_0x293c2e['limit']['toString']():0x64['toString']()),_0x293c2e['cursor']&&_0x25e9da['append']('cursor',_0x293c2e['cursor']),_0x293c2e['order']&&_0x25e9da['append']('order',_0x293c2e['order']);const _0x1e0ebf=this['_sendApiRequest']('/contexts?'+_0x25e9da['toString'](),'GET');return{'getContexts':async()=>(await(await _0x1e0ebf['request'])['json']())['items'],'abortController':_0x1e0ebf['abortController']};}deleteFile(_0x43c39a,_0xd26ea6){const _0xc57b4d=this['_sendApiRequest']('/conversations/'+_0x43c39a+'/files/'+_0xd26ea6,'DELETE');return{'execute':async()=>{await _0xc57b4d['request'];},'abortController':_0xc57b4d['abortController']};}deleteDocument(_0x1af182,_0x53b206){const _0x4ee3ef=this['_sendApiRequest']('/conversations/'+_0x1af182+'/documents/'+_0x53b206,'DELETE');return{'execute':async()=>{await _0x4ee3ef['request'];},'abortController':_0x4ee3ef['abortController']};}deleteWebResource(_0x485aa5,_0x12c650){const _0x516ef4=this['_sendApiRequest']('/conversations/'+_0x485aa5+'/web-resources/'+_0x12c650,'DELETE');return{'execute':async()=>{await _0x516ef4['request'];},'abortController':_0x516ef4['abortController']};}cancelStream(_0x13c51e,_0x177cdb){const _0x2d7ce9=this['_sendApiRequest']('/conversations/'+_0x13c51e+'/messages/'+_0x177cdb+'/stream','DELETE',void 0x0,{'apiUrl':this['_apiUrlV11']});return{'execute':async()=>{await _0x2d7ce9['request'];},'abortController':_0x2d7ce9['abortController']};}resumeStream(_0x542371,_0x17ded0,_0x3c131d='0-0'){const _0x53adf4=new URLSearchParams({'lastEventId':_0x3c131d}),_0x3ab44b=this['_sendApiRequest']('/conversations/'+_0x542371+'/messages/'+_0x17ded0+'/stream?'+_0x53adf4['toString'](),'GET',void 0x0,{'apiUrl':this['_apiUrlV11']});return{'getStream':async()=>{const _0xdc521a=await _0x3ab44b['request'];return this['_getStreamReader'](_0xdc521a['body']);},'abortController':_0x3ab44b['abortController']};}callSystemReview({reviewName:_0x262da2,content:_0x458118,args:_0x223256,contexts:_0x11e77a}){const _0x2070f3=this['_sendApiRequest']('/reviews/system/'+_0x262da2+'/calls','POST',{'content':[{'type':'text','content':_0x458118}],'args':_0x223256,...aa(_0x11e77a)});return{'getStream':async()=>{const _0x52aab7=(await _0x2070f3['request'])['body'];return this['_getStreamReader'](_0x52aab7);},'abortController':_0x2070f3['abortController']};}processDocument({content:_0x4a2202,prompt:_0x54266a,model:_0x3b4361,capabilities:_0x54b6ea,contexts:_0x202699}){const _0xa896dc=this['_getExtraHttpHeaders'](),_0x3c5793=this['_sendApiRequest']('/documents/process','POST',{'content':_0x4a2202,'prompt':_0x54266a,'model':_0x3b4361,..._0x54b6ea&&{'capabilities':_0x54b6ea},...aa(_0x202699),..._0xa896dc&&{'extraHttpHeaders':_0xa896dc}});return{'getResult':async()=>(await _0x3c5793['request'])['json'](),'abortController':_0x3c5793['abortController']};}callCustomReview({content:_0x18b825,prompt:_0x22b5ef,model:_0x97c0e9,contexts:_0x3fa441}){const _0x49ff49=this['_sendApiRequest']('/reviews/custom/calls','POST',{'content':[{'type':'text','content':_0x18b825}],..._0x22b5ef&&{'prompt':_0x22b5ef},'model':_0x97c0e9,...aa(_0x3fa441)});return{'getStream':async()=>{const _0x1b87b1=(await _0x49ff49['request'])['body'];return this['_getStreamReader'](_0x1b87b1);},'abortController':_0x49ff49['abortController']};}upsertAIChatRating(_0x488b9e,_0xbd928d,_0x509f4e){const _0x194448=this['_sendApiRequest']('/conversations/'+_0x488b9e+'/messages/'+_0xbd928d+'/ratings','PUT',{'positiveCount':_0x509f4e['positiveCount'],'totalCount':_0x509f4e['totalCount'],'modificationId':_0x509f4e['modificationId']});return{'execute':async()=>{await _0x194448['request'];},'abortController':_0x194448['abortController']};}upsertAIActionRating(_0x304b03,_0x1b7c77,_0x1454da){const _0xfb45a6=this['_sendApiRequest']('/actions/system/'+_0x304b03+'/calls/'+_0x1b7c77+'/ratings','PUT',{'positiveCount':_0x1454da['positiveCount'],'totalCount':_0x1454da['totalCount']});return{'execute':async()=>{await _0xfb45a6['request'];},'abortController':_0xfb45a6['abortController']};}upsertCustomAIActionRating(_0x4443bd,_0xba0029){const _0x27fb47=this['_sendApiRequest']('/actions/custom/calls/'+_0x4443bd+'/ratings','PUT',{'positiveCount':_0xba0029['positiveCount'],'totalCount':_0xba0029['totalCount']});return{'execute':async()=>{await _0x27fb47['request'];},'abortController':_0x27fb47['abortController']};}upsertAIReviewRating(_0x2b3589,_0x3bc3a8,_0x467277,_0x1186aa){const _0x52f523=this['_sendApiRequest']('/reviews/system/'+_0x2b3589+'/calls/'+_0x3bc3a8+'/ratings','PUT',{'positiveCount':_0x467277['positiveCount'],'totalCount':_0x467277['totalCount'],'dataId':_0x1186aa});return{'execute':async()=>{await _0x52f523['request'];},'abortController':_0x52f523['abortController']};}upsertCustomAIReviewRating(_0x1dbd36,_0x17c7c1,_0xcb42){const _0x33a2c4=this['_sendApiRequest']('/reviews/custom/calls/'+_0x1dbd36+'/ratings','PUT',{'positiveCount':_0x17c7c1['positiveCount'],'totalCount':_0x17c7c1['totalCount'],'dataId':_0xcb42});return{'execute':async()=>{await _0x33a2c4['request'];},'abortController':_0x33a2c4['abortController']};}_sendApiRequest(_0x30b0c2,_0x10ad29,_0x202c8d,_0x324def={}){const {apiUrl:_0x4845cb=this['_apiUrl']}=_0x324def,_0x16c6a5=new AbortController(),_0x3885f1=_0x202c8d instanceof FormData,_0x2181a8={'Authorization':'Bearer\x20'+this['_token']?.['value'],'X-Editor-Version':_0x291c35};_0x202c8d&&!_0x3885f1&&(_0x2181a8['Content-Type']='application/json');const _0x2c36b1={'method':_0x10ad29,'headers':_0x2181a8,'signal':_0x16c6a5['signal']};return _0x202c8d&&(_0x2c36b1['body']=_0x3885f1?_0x202c8d:JSON['stringify'](_0x202c8d)),{'request':fetch(''+_0x4845cb+_0x30b0c2,_0x2c36b1)['catch'](_0x1da66b=>{this['_handleError'](_0x1da66b);})['then'](_0x215524=>_0x215524['ok']?_0x215524:_0x215524['json']()['then'](_0x5bd799=>{throw{'url':_0x4845cb,'path':_0x30b0c2,'method':_0x10ad29,'body':_0x202c8d,'status':(_0x215524||{})['status'],'statusText':(_0x215524||{})['statusText'],'code':_0x5bd799['code'],'message':_0x5bd799['message'],'traceId':_0x5bd799['traceId'],'data':_0x5bd799['data']};})),'abortController':_0x16c6a5};}async *_getStreamReader(_0x34d7e9){const _0x360e9f=[],_0x121ba4=_0x34d7e9['getReader'](),_0x599aee=na({'onError':_0x59abb4=>{this['_handleError'](_0x59abb4);},'onEvent':_0x3f758f=>{_0x3f758f['data']=JSON['parse'](_0x3f758f['data']),_0x360e9f['push'](_0x3f758f);}});try{let _0x518df0=!0x1;for(;!_0x518df0;){const {done:_0x3190de,value:_0x1b1a13}=await _0x121ba4['read']();_0x3190de&&(_0x518df0=!0x0),_0x599aee['feed'](this['_decoder']['decode'](_0x1b1a13,{'stream':!0x0})),yield*_0x360e9f,_0x360e9f['length']=0x0;}}catch(_0x26cbfb){this['_handleError'](_0x26cbfb);}finally{_0x121ba4['releaseLock'](),_0x599aee['reset']();}}['_handleError'](_0x41aebf){if(_0x41aebf instanceof _0x4242d4)throw _0x41aebf;if(_0x41aebf instanceof Error&&'AbortError'===_0x41aebf['name'])throw new _0x4242d4('ai-request-aborted',this,{'originalError':_0x41aebf});throw new _0x4242d4('ai-request-failed',this,{'originalError':_0x41aebf});}};function aa(_0x47a37b){return _0x47a37b?.['length']?{'contexts':_0x47a37b['map'](ra)}:{};}function ca(_0x25e0e3,_0x130053,_0x548e2b){const t=_0x25e0e3['t'];switch(_0x130053){case'AI_SUGGESTION_HEADER_TITLE':return t({'id':'AI_SUGGESTION_HEADER_TITLE','string':'Proposed\x20changes'});case'AI_SUGGESTION_BUTTON_SHOW_CHANGES':return t({'id':'AI_SUGGESTION_BUTTON_SHOW_CHANGES','string':'Show\x20details'});case'AI_MINI_TOOLBAR_LIKE':return t({'id':'AI_MINI_TOOLBAR_LIKE','string':'I\x20like\x20this\x20response'});case'AI_MINI_TOOLBAR_DISLIKE':return t({'id':'AI_MINI_TOOLBAR_DISLIKE','string':'I\x20don\x27t\x20like\x20this\x20response'});case'AI_MINI_TOOLBAR_COPY':return t({'id':'AI_MINI_TOOLBAR_COPY','string':'Copy\x20to\x20clipboard'});case'AI_SUGGESTION_CONTENT_PART_TITLE':return t({'id':'AI_SUGGESTION_CONTENT_PART_TITLE','string':'Change\x20%0'},_0x548e2b);case'AI_SUGGESTION_CONTENT_PART_REJECTED':return t({'id':'AI_SUGGESTION_CONTENT_PART_REJECTED','string':'Change\x20was\x20rejected'});case'AI_SUGGESTION_CONTENT_PART_OUTDATED':return t({'id':'AI_SUGGESTION_CONTENT_PART_OUTDATED','string':'Change\x20is\x20outdated'});case'AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED':return t({'id':'AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','string':'Change\x20is\x20already\x20applied'});case'AI_SUGGESTION_CONTENT_PART_APPLY':return t({'id':'AI_SUGGESTION_CONTENT_PART_APPLY','string':'Apply\x20change'});case'AI_SUGGESTION_CONTENT_PART_ADD_SUGGESTION':return t({'id':'AI_SUGGESTION_CONTENT_PART_ADD_SUGGESTION','string':'Add\x20as\x20suggestion'});case'AI_SUGGESTION_CONTENT_PART_REJECT':return t({'id':'AI_SUGGESTION_CONTENT_PART_REJECT','string':'Reject\x20change'});case'AI_SUGGESTION_CONTENT_PART_REMOVED':return t({'id':'AI_SUGGESTION_CONTENT_PART_REMOVED','string':'Removed\x20content.\x20Use\x20\x22Show\x20details\x22\x20to\x20learn\x20more.'});case'AI_SUGGESTION_CONTENT_PART_STATE_ACCEPTED':return t({'id':'AI_SUGGESTION_CONTENT_PART_STATE_ACCEPTED','string':'Approved'});case'AI_SUGGESTION_CONTENT_PART_STATE_REJECTED':return t({'id':'AI_SUGGESTION_CONTENT_PART_STATE_REJECTED','string':'Rejected'});case'AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED':return t({'id':'AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED','string':'Outdated'});case'AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED_TOOLTIP':return t({'id':'AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED_TOOLTIP','string':'Created\x20for\x20a\x20previous\x20version\x20of\x20the\x20document\x20and\x20can\x20no\x20longer\x20be\x20applied.'});case'AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED_CONTENT_REMOVED_TOOLTIP':return t({'id':'AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED_CONTENT_REMOVED_TOOLTIP','string':'Created\x20for\x20content\x20that\x20no\x20longer\x20exists.'});case'AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED_EDITOR_REMOVED_TOOLTIP':return t({'id':'AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED_EDITOR_REMOVED_TOOLTIP','string':'Created\x20for\x20content\x20that\x20no\x20longer\x20exists.'});case'AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED_SESSION_CHANGED_TOOLTIP':return t({'id':'AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED_SESSION_CHANGED_TOOLTIP','string':'Created\x20for\x20a\x20previous\x20version\x20of\x20the\x20document\x20and\x20can\x20no\x20longer\x20be\x20applied.'});case'AI_DISCLAIMER_TEXT':return t({'id':'AI_DISCLAIMER_TEXT','string':'AI\x20can\x20make\x20mistakes.\x20Please\x20double-check\x20responses.'});case'AI_TABS_LABEL_MAXIMIZE':return t({'id':'AI_TABS_LABEL_MAXIMIZE','string':'Maximize'});case'AI_TABS_LABEL_MINIMIZE':return t({'id':'AI_TABS_LABEL_MINIMIZE','string':'Minimize'});case'AI_CHAT_HEADING':return t({'id':'AI_CHAT_HEADING','string':'Chat'});case'AI_CHAT_SOURCES_HEADER':return t({'id':'AI_CHAT_SOURCES_HEADER','string':'Sources'});case'AI_CHAT_UNTITLED_CONVERSATION':return t({'id':'AI_CHAT_UNTITLED_CONVERSATION','string':'Untitled\x20conversation'});case'AI_CHAT_LABEL_NEW_CHAT':return t({'id':'AI_CHAT_LABEL_NEW_CHAT','string':'New\x20chat'});case'AI_CHAT_STOP_GENERATING':return t({'id':'AI_CHAT_STOP_GENERATING','string':'Stop\x20generating'});case'AI_CHAT_IS_WRITING':return t({'id':'AI_CHAT_IS_WRITING','string':'AI\x20is\x20writing...'});case'AI_CHAT_PROMPT_EMPTY_ERROR':return t({'id':'AI_CHAT_PROMPT_EMPTY_ERROR','string':'This\x20field\x20cannot\x20be\x20empty.'});case'AI_CHAT_LABEL_SUBMIT':return t({'id':'AI_CHAT_LABEL_SUBMIT','string':'Submit'});case'AI_CHAT_WELCOME_MESSAGE':return t({'id':'AI_CHAT_WELCOME_MESSAGE','string':'Hi!\x20I\x20can\x20help\x20you\x20draft,\x20rewrite,\x20and\x20improve\x20your\x20text,\x20explore\x20ideas,\x20research\x20topics,\x20and\x20solve\x20problems.\x20How\x20can\x20I\x20help\x20right\x20now?'});case'AI_CHAT_ABORTED_MESSAGE':return t({'id':'AI_CHAT_ABORTED_MESSAGE','string':'Response\x20stopped.'});case'AI_CHAT_GENERIC_ERROR':return t({'id':'AI_CHAT_GENERIC_ERROR','string':'Something\x20went\x20wrong\x20while\x20processing\x20your\x20request.\x20Please\x20try\x20again.'});case'AI_CHAT_UNABLE_TO_START_CONVERSATION':return t({'id':'AI_CHAT_UNABLE_TO_START_CONVERSATION','string':'Unable\x20to\x20start\x20conversation.\x20Please\x20make\x20sure\x20you\x20are\x20online\x20and\x20try\x20again.'});case'AI_CHAT_UNABLE_TO_LOAD_CONVERSATION':return t({'id':'AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','string':'Unable\x20to\x20load\x20chosen\x20conversation.\x20Please\x20make\x20sure\x20you\x20are\x20online\x20and\x20try\x20again.'});case'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE':return t({'id':'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','string':'Failed\x20to\x20upload\x20files:\x20%0.\x20Please\x20try\x20again.'},_0x548e2b);case'AI_CHAT_CONTEXT_FOLDER_NOT_SUPPORTED':return t({'id':'AI_CHAT_CONTEXT_FOLDER_NOT_SUPPORTED','string':'Folders\x20cannot\x20be\x20added\x20to\x20the\x20chat.\x20Try\x20adding\x20individual\x20files\x20instead.'});case'AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES':return t({'id':'AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','string':'Unable\x20to\x20load\x20resources\x20from\x20%0.\x20Please\x20try\x20again.'},_0x548e2b);case'AI_CHAT_RESOURCE_LOAD_FAILED':return t({'id':'AI_CHAT_RESOURCE_LOAD_FAILED','string':'Failed\x20to\x20load\x20resource.\x20Please\x20try\x20again.'});case'AI_CHAT_CONTEXT_CURRENT_DOCUMENT':return t({'id':'AI_CHAT_CONTEXT_CURRENT_DOCUMENT','string':'Current\x20document'});case'AI_CHAT_CONTEXT_PASTED_TEXT_NAME':return t({'id':'AI_CHAT_CONTEXT_PASTED_TEXT_NAME','string':'Pasted\x20Text'});case'AI_CHAT_DROP_ZONE_HINT':return t({'id':'AI_CHAT_DROP_ZONE_HINT','string':'Drop\x20files\x20here\x20to\x20add\x20to\x20the\x20chat'});case'AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT':return t({'id':'AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','string':'Remove\x20from\x20context'});case'AI_CHAT_CONTEXT_ADD_CONTEXT':return t({'id':'AI_CHAT_CONTEXT_ADD_CONTEXT','string':'Add\x20context'});case'AI_CHAT_CONTEXT_URL_LABEL':return t({'id':'AI_CHAT_CONTEXT_URL_LABEL','string':'URL'});case'AI_CHAT_CONTEXT_FILE_LABEL':return t({'id':'AI_CHAT_CONTEXT_FILE_LABEL','string':'File'});case'AI_CHAT_CONTEXT_LIBRARY_LABEL':return t({'id':'AI_CHAT_CONTEXT_LIBRARY_LABEL','string':'Context\x20library'});case'AI_CHAT_CONTEXT_CURRENT_CONTEXT_LABEL':return t({'id':'AI_CHAT_CONTEXT_CURRENT_CONTEXT_LABEL','string':'Current\x20context'});case'AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL':return t({'id':'AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','string':'Selected\x20content'});case'AI_CHAT_SEARCH_WEB':return t({'id':'AI_CHAT_SEARCH_WEB','string':'Web\x20search'});case'AI_CHAT_ENABLE_WEB_SEARCH':return t({'id':'AI_CHAT_ENABLE_WEB_SEARCH','string':'Enable\x20web\x20search'});case'AI_CHAT_DISABLE_WEB_SEARCH':return t({'id':'AI_CHAT_DISABLE_WEB_SEARCH','string':'Disable\x20web\x20search'});case'AI_CHAT_REASONING':return t({'id':'AI_CHAT_REASONING','string':'Reasoning'});case'AI_CHAT_ENABLE_REASONING':return t({'id':'AI_CHAT_ENABLE_REASONING','string':'Enable\x20reasoning'});case'AI_CHAT_DISABLE_REASONING':return t({'id':'AI_CHAT_DISABLE_REASONING','string':'Disable\x20reasoning'});case'AI_CHAT_COMMANDS':return t({'id':'AI_CHAT_COMMANDS','string':'Commands'});case'AI_CHAT_SEARCH_RESOURCES':return t({'id':'AI_CHAT_SEARCH_RESOURCES','string':'Search\x20resources'});case'AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT':return t({'id':'AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','string':'Back\x20to\x20context\x20options'});case'AI_CHAT_CONTEXT_URL_ADD_URL':return t({'id':'AI_CHAT_CONTEXT_URL_ADD_URL','string':'Add\x20URL'});case'AI_CHAT_CONTEXT_URL_PLACEHOLDER':return t({'id':'AI_CHAT_CONTEXT_URL_PLACEHOLDER','string':'Add\x20URL...'});case'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL':return t({'id':'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','string':'Failed\x20to\x20upload\x20URL:\x20%0.\x20Please\x20try\x20again.'},_0x548e2b);case'AI_CHAT_CONTEXT_INVALID_DATA':return t({'id':'AI_CHAT_CONTEXT_INVALID_DATA','string':'Invalid\x20context\x20data\x20type\x20for\x20the\x20selected\x20resource.'});case'AI_CHAT_CONTEXT_UNSUPPORTED_TYPE':return t({'id':'AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','string':'Unsupported\x20resource\x20type.\x20Only\x20files\x20and\x20URLs\x20are\x20supported.'});case'AI_CHAT_CONTEXT_URL_EMPTY_ERROR':return t({'id':'AI_CHAT_CONTEXT_URL_EMPTY_ERROR','string':'URL\x20cannot\x20be\x20empty.'});case'AI_CHAT_CONTEXT_URL_INVALID_ERROR':return t({'id':'AI_CHAT_CONTEXT_URL_INVALID_ERROR','string':'Please\x20enter\x20a\x20valid\x20URL.'});case'AI_CHAT_INVALID_REQUEST':return t({'id':'AI_CHAT_INVALID_REQUEST','string':'Something\x20went\x20wrong\x20while\x20processing\x20your\x20request.\x20Please\x20try\x20again.'});case'AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE':return t({'id':'AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','string':'The\x20file\x20type\x20is\x20not\x20supported.\x20Please\x20upload\x20a\x20different\x20file.'});case'AI_CHAT_CONTEXT_FILE_TOO_LARGE':return t({'id':'AI_CHAT_CONTEXT_FILE_TOO_LARGE','string':'The\x20file\x20is\x20too\x20large.\x20Please\x20upload\x20a\x20smaller\x20file.'});case'AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES':return t({'id':'AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','string':'The\x20file\x20has\x20too\x20many\x20pages.\x20Please\x20upload\x20a\x20file\x20with\x20fewer\x20pages.'});case'AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED':return t({'id':'AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','string':'The\x20form\x20data\x20size\x20limits\x20are\x20exceeded.\x20Please\x20upload\x20a\x20smaller\x20file.'});case'AI_CHAT_FEED_LOADING_MESSAGE_REGULAR':return t({'id':'AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','string':'AI\x20is\x20preparing\x20a\x20response...'});case'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH':return t({'id':'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','string':'AI\x20is\x20searching\x20the\x20web\x20to\x20provide\x20the\x20most\x20accurate\x20answer...'});case'AI_CHAT_FEED_LOADING_MESSAGE_REASONING':return t({'id':'AI_CHAT_FEED_LOADING_MESSAGE_REASONING','string':'AI\x20is\x20using\x20reasoning\x20to\x20provide\x20the\x20most\x20accurate\x20answer...'});case'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING':return t({'id':'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','string':'AI\x20is\x20using\x20reasoning\x20and\x20searching\x20the\x20web\x20to\x20provide\x20the\x20most\x20accurate\x20answer...'});case'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH':return t({'id':'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','string':'Scanned\x20the\x20internet\x20for\x20insights'});case'AI_CHAT_FEED_REPLY_ITEM_USED_REASONING':return t({'id':'AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','string':'AI\x20used\x20reasoning\x20to\x20improve\x20the\x20response'});case'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING':return t({'id':'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','string':'AI\x20used\x20search\x20and\x20reasoning\x20to\x20improve\x20the\x20response'});case'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR':return t({'id':'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','string':'Ask\x20AI\x20anything...'});case'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH':return t({'id':'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','string':'Ask\x20AI\x20anything\x20(web\x20search\x20enabled)...'});case'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING':return t({'id':'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','string':'Ask\x20AI\x20anything\x20(reasoning\x20enabled)...'});case'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING':return t({'id':'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','string':'Ask\x20AI\x20anything\x20(web\x20search\x20and\x20reasoning\x20enabled)...'});case'AI_CHAT_SUGGESTION_ACTION_SUGGEST_ALL':return t({'id':'AI_CHAT_SUGGESTION_ACTION_SUGGEST_ALL','string':'Suggest\x20all'},_0x548e2b);case'AI_CHAT_SUGGESTION_ACTION_SUGGEST':return t({'id':'AI_CHAT_SUGGESTION_ACTION_SUGGEST','string':'Suggest'},_0x548e2b);case'AI_CHAT_SUGGESTION_ACTION_APPLY_ALL':return t({'id':'AI_CHAT_SUGGESTION_ACTION_APPLY_ALL','string':'Apply\x20all'});case'AI_CHAT_SUGGESTION_ACTION_APPLY':return t({'id':'AI_CHAT_SUGGESTION_ACTION_APPLY','string':'Apply'});case'AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP':return t({'id':'AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','string':'More\x20options'},_0x548e2b);case'AI_CHAT_MODEL_SELECTOR_GROUP':return t({'id':'AI_CHAT_MODEL_SELECTOR_GROUP','string':'Models'});case'AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP':return t({'id':'AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','string':'Select\x20a\x20model'});case'AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP':return t({'id':'AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','string':'Start\x20a\x20new\x20conversation\x20to\x20change\x20the\x20model'});case'AI_CHAT_CAPABILITIES_YES':return t({'id':'AI_CHAT_CAPABILITIES_YES','string':'Yes'});case'AI_CHAT_CAPABILITIES_NO':return t({'id':'AI_CHAT_CAPABILITIES_NO','string':'No'});case'AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT':return t({'id':'AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','string':'The\x20selected\x20model\x20is\x20no\x20longer\x20available,\x20so\x20you\x20cannot\x20continue\x20this\x20conversation.\x20Please\x20'});case'AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON':return t({'id':'AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','string':'start\x20a\x20new\x20one.'});case'AI_CHAT_CONTEXT_SOURCES_LABEL':return t({'id':'AI_CHAT_CONTEXT_SOURCES_LABEL','string':'Sources'});case'AI_CHAT_HISTORY_HEADING':return t({'id':'AI_CHAT_HISTORY_HEADING','string':'Chat\x20History'});case'AI_CHAT_HISTORY_SEARCH_LABEL':return t({'id':'AI_CHAT_HISTORY_SEARCH_LABEL','string':'Search\x20history'});case'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY':return t({'id':'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','string':'No\x20chats\x20were\x20found\x20matching\x20\x22%0\x22.'},_0x548e2b);case'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY':return t({'id':'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','string':'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.'});case'AI_CHAT_HISTORY_EMPTY_MESSAGE':return t({'id':'AI_CHAT_HISTORY_EMPTY_MESSAGE','string':'Your\x20chat\x20history\x20for\x20current\x20document\x20will\x20appear\x20here.'});case'AI_CHAT_HISTORY_GO_TO_CHAT_BUTTON':return t({'id':'AI_CHAT_HISTORY_GO_TO_CHAT_BUTTON','string':'Go\x20to\x20chat'});case'AI_CHAT_HISTORY_PIN_BUTTON':return t({'id':'AI_CHAT_HISTORY_PIN_BUTTON','string':'Pin'});case'AI_CHAT_HISTORY_SHOW_MORE_ITEMS':return t({'id':'AI_CHAT_HISTORY_SHOW_MORE_ITEMS','string':'Show\x20more\x20items'});case'AI_CHAT_HISTORY_EDIT_NAME':return t({'id':'AI_CHAT_HISTORY_EDIT_NAME','string':'Edit\x20name'});case'AI_CHAT_HISTORY_REMOVE':return t({'id':'AI_CHAT_HISTORY_REMOVE','string':'Remove'});case'AI_CHAT_HISTORY_REMOVE_CONFIRM':return t({'id':'AI_CHAT_HISTORY_REMOVE_CONFIRM','string':'Do\x20you\x20want\x20to\x20remove\x20this\x20chat?'});case'AI_CHAT_HISTORY_ACCEPT':return t({'id':'AI_CHAT_HISTORY_ACCEPT','string':'Accept'});case'AI_CHAT_HISTORY_CANCEL':return t({'id':'AI_CHAT_HISTORY_CANCEL','string':'Cancel'});case'AI_CHAT_HISTORY_LOADING_REMOVING':return t({'id':'AI_CHAT_HISTORY_LOADING_REMOVING','string':'Removing\x20the\x20chat...'});case'AI_CHAT_HISTORY_LOADING_RENAMING':return t({'id':'AI_CHAT_HISTORY_LOADING_RENAMING','string':'Renaming\x20the\x20chat...'});case'AI_CHAT_HISTORY_LOADING_PINNING':return t({'id':'AI_CHAT_HISTORY_LOADING_PINNING','string':'Pinning\x20the\x20chat...'});case'AI_CHAT_HISTORY_LOADING_UNPINNING':return t({'id':'AI_CHAT_HISTORY_LOADING_UNPINNING','string':'Unpinning\x20the\x20chat...'});case'AI_CHAT_HISTORY_CATEGORY_PINNED':return t({'id':'AI_CHAT_HISTORY_CATEGORY_PINNED','string':'Pinned'});case'AI_CHAT_HISTORY_CATEGORY_TODAY':return t({'id':'AI_CHAT_HISTORY_CATEGORY_TODAY','string':'Today'});case'AI_CHAT_HISTORY_CATEGORY_YESTERDAY':return t({'id':'AI_CHAT_HISTORY_CATEGORY_YESTERDAY','string':'Yesterday'});case'AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS':return t({'id':'AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','string':'Last\x2014\x20days'});case'AI_CHAT_HISTORY_CATEGORY_LATER':return t({'id':'AI_CHAT_HISTORY_CATEGORY_LATER','string':'Later'});case'AI_CHAT_HISTORY_ERROR_UPDATE_TITLE':return t({'id':'AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','string':'Failed\x20to\x20change\x20the\x20\x22%0\x22\x20chat\x20name.\x20Please\x20try\x20again\x20later.'},_0x548e2b);case'AI_CHAT_HISTORY_ERROR_UPDATE_PINNED':return t({'id':'AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','string':'Failed\x20to\x20%0\x20the\x20\x22%1\x22\x20chat.\x20Please\x20try\x20again\x20later.'},_0x548e2b);case'AI_CHAT_HISTORY_ERROR_REMOVE_ITEM':return t({'id':'AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','string':'Failed\x20to\x20delete\x20the\x20\x22%0\x22\x20chat.\x20Please\x20try\x20again\x20later.'},_0x548e2b);case'AI_CHAT_HISTORY_ERROR_LOAD_ITEMS':return t({'id':'AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','string':'Failed\x20to\x20load\x20the\x20chat\x20history.\x20Please\x20try\x20again\x20later.'});case'AI_CHAT_HISTORY_ERROR_GENERIC':return t({'id':'AI_CHAT_HISTORY_ERROR_GENERIC','string':'Something\x20went\x20wrong.\x20Please\x20try\x20again\x20later.'});case'AI_CHAT_HISTORY_PIN_ACTION':return t({'id':'AI_CHAT_HISTORY_PIN_ACTION','string':'pin'});case'AI_CHAT_HISTORY_UNPIN_ACTION':return t({'id':'AI_CHAT_HISTORY_UNPIN_ACTION','string':'unpin'});case'AI_BALLOON_HEADER_TITLE':return t({'id':'AI_BALLOON_HEADER_TITLE','string':'Change\x20%0'},_0x548e2b);case'AI_BALLOON_APPLY_BUTTON':return t({'id':'AI_BALLOON_APPLY_BUTTON','string':'Apply'});case'AI_BALLOON_SUGGEST_BUTTON':return t({'id':'AI_BALLOON_SUGGEST_BUTTON','string':'Suggest'});case'AI_BALLOON_NEXT_LABEL':return t({'id':'AI_BALLOON_NEXT_LABEL','string':'Next'});case'AI_BALLOON_PREVIOUS_LABEL':return t({'id':'AI_BALLOON_PREVIOUS_LABEL','string':'Previous'});case'AI_SUGGESTION_NO_PARTS_WARNING':return t({'id':'AI_SUGGESTION_NO_PARTS_WARNING','string':'This\x20change\x20is\x20not\x20supported\x20by\x20the\x20editor\x20and\x20can\x27t\x20be\x20previewed\x20or\x20applied.'});case'AI_SUGGESTION_EMPTY_PART_WARNING':return t({'id':'AI_SUGGESTION_EMPTY_PART_WARNING','string':'Some\x20of\x20the\x20changes\x20are\x20not\x20supported\x20by\x20the\x20editor\x20and\x20can\x27t\x20be\x20previewed\x20or\x20applied.'});case'AI_ACTIONS_TRY_AGAIN':return t({'id':'AI_ACTIONS_TRY_AGAIN','string':'Retry'});case'AI_ACTIONS_PREVIOUS_INTERACTION':return t({'id':'AI_ACTIONS_PREVIOUS_INTERACTION','string':'Previous'});case'AI_ACTIONS_NEXT_INTERACTION':return t({'id':'AI_ACTIONS_NEXT_INTERACTION','string':'Next'});case'AI_MODEL_NAME_AUTO':return t({'id':'AI_MODEL_NAME_AUTO','string':'Auto'});case'AI_QUICK_ACTIONS_HEADING':return t({'id':'AI_QUICK_ACTIONS_HEADING','string':'AI\x20Quick\x20Actions'});case'AI_QUICK_ACTIONS_SEARCH':return t({'id':'AI_QUICK_ACTIONS_SEARCH','string':'Search\x20AI\x20commands'});case'AI_QUICK_ACTIONS_SEARCH_NOT_FOUND':return t({'id':'AI_QUICK_ACTIONS_SEARCH_NOT_FOUND','string':'No\x20AI\x20commands\x20found'});case'AI_QUICK_ACTIONS_ASK_AI':return t({'id':'AI_QUICK_ACTIONS_ASK_AI','string':'Ask\x20AI'});case'AI_QUICK_ACTIONS_CHAT_COMMANDS':return t({'id':'AI_QUICK_ACTIONS_CHAT_COMMANDS','string':'Chat\x20commands'});case'AI_QUICK_ACTIONS_IMPROVE_WRITING':return t({'id':'AI_QUICK_ACTIONS_IMPROVE_WRITING','string':'Improve\x20writing'});case'AI_QUICK_ACTIONS_CONTINUE_WRITING':return t({'id':'AI_QUICK_ACTIONS_CONTINUE_WRITING','string':'Continue\x20writing'});case'AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING':return t({'id':'AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','string':'Fix\x20grammar\x20&\x20spelling'});case'AI_QUICK_ACTIONS_ADJUST_LENGTH':return t({'id':'AI_QUICK_ACTIONS_ADJUST_LENGTH','string':'Adjust\x20length'});case'AI_QUICK_ACTIONS_CHANGE_TONE':return t({'id':'AI_QUICK_ACTIONS_CHANGE_TONE','string':'Change\x20tone'});case'AI_QUICK_ACTIONS_TRANSLATE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE','string':'Translate'});case'AI_QUICK_ACTIONS_EXPLAIN':return t({'id':'AI_QUICK_ACTIONS_EXPLAIN','string':'Explain'});case'AI_QUICK_ACTIONS_SUMMARIZE':return t({'id':'AI_QUICK_ACTIONS_SUMMARIZE','string':'Summarize'});case'AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS':return t({'id':'AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','string':'Highlight\x20key\x20points'});case'AI_QUICK_ACTIONS_MAKE_SHORTER':return t({'id':'AI_QUICK_ACTIONS_MAKE_SHORTER','string':'Make\x20shorter'});case'AI_QUICK_ACTIONS_MAKE_LONGER':return t({'id':'AI_QUICK_ACTIONS_MAKE_LONGER','string':'Make\x20longer'});case'AI_QUICK_ACTIONS_MORE_CASUAL':return t({'id':'AI_QUICK_ACTIONS_MORE_CASUAL','string':'More\x20casual'});case'AI_QUICK_ACTIONS_MORE_DIRECT':return t({'id':'AI_QUICK_ACTIONS_MORE_DIRECT','string':'More\x20direct'});case'AI_QUICK_ACTIONS_MORE_FRIENDLY':return t({'id':'AI_QUICK_ACTIONS_MORE_FRIENDLY','string':'More\x20friendly'});case'AI_QUICK_ACTIONS_MORE_CONFIDENT':return t({'id':'AI_QUICK_ACTIONS_MORE_CONFIDENT','string':'More\x20confident'});case'AI_QUICK_ACTIONS_MORE_PROFESSIONAL':return t({'id':'AI_QUICK_ACTIONS_MORE_PROFESSIONAL','string':'More\x20professional'});case'AI_QUICK_ACTIONS_ADJUST_BASED_ON_DOCUMENT':return t({'id':'AI_QUICK_ACTIONS_ADJUST_BASED_ON_DOCUMENT','string':'Adjust\x20based\x20on\x20the\x20rest\x20of\x20the\x20document'});case'AI_QUICK_ACTIONS_TRANSLATE_ENGLISH':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','string':'English'});case'AI_QUICK_ACTIONS_TRANSLATE_CHINESE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_CHINESE','string':'Chinese\x20(Simplified)'});case'AI_QUICK_ACTIONS_TRANSLATE_FRENCH':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_FRENCH','string':'French'});case'AI_QUICK_ACTIONS_TRANSLATE_JAPANESE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','string':'Japanese'});case'AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','string':'Portuguese'});case'AI_QUICK_ACTIONS_TRANSLATE_KOREAN':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_KOREAN','string':'Korean'});case'AI_QUICK_ACTIONS_TRANSLATE_ITALIAN':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','string':'Italian'});case'AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','string':'Russian'});case'AI_QUICK_ACTIONS_TRANSLATE_SPANISH':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_SPANISH','string':'Spanish'});case'AI_QUICK_ACTIONS_TRANSLATE_GERMAN':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_GERMAN','string':'German'});case'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND':return t({'id':'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','string':'%0\x20plugin\x20is\x20required\x20but\x20not\x20found.'},_0x548e2b);case'AI_QUICK_ACTIONS_OTHER':return t({'id':'AI_QUICK_ACTIONS_OTHER','string':'Other'});case'AI_ACTIONS_GENERIC_ERROR':return t({'id':'AI_ACTIONS_GENERIC_ERROR','string':'Sorry,\x20we\x20couldn\x27t\x20generate\x20the\x20response.\x20Please\x20try\x20again\x20in\x20a\x20moment.'});case'AI_BALLOON_SELECTION_REMOVED_ERROR':return t({'id':'AI_BALLOON_SELECTION_REMOVED_ERROR','string':'Changes\x20cannot\x20be\x20applied.\x20The\x20original\x20content\x20no\x20longer\x20exists.'});case'AI_REVIEW_MODE_STOP_GENERATING':return t({'id':'AI_REVIEW_MODE_STOP_GENERATING','string':'Stop\x20generating'});case'AI_REVIEW_MODE_HIDE_CHANGES':return t({'id':'AI_REVIEW_MODE_HIDE_CHANGES','string':'Hide\x20changes'});case'AI_REVIEW_MODE_SHOW_CHANGES':return t({'id':'AI_REVIEW_MODE_SHOW_CHANGES','string':'Show\x20changes'});case'AI_REVIEW_MODE_ACCEPT_ALL':return t({'id':'AI_REVIEW_MODE_ACCEPT_ALL','string':'Accept\x20all'});case'AI_REVIEW_MODE_EXIT_REVIEW':return t({'id':'AI_REVIEW_MODE_EXIT_REVIEW','string':'Exit\x20review'});case'AI_REVIEW_MODE_ACCEPT_CHANGE':return t({'id':'AI_REVIEW_MODE_ACCEPT_CHANGE','string':'Accept'});case'AI_REVIEW_MODE_DISMISS_CHANGE':return t({'id':'AI_REVIEW_MODE_DISMISS_CHANGE','string':'Dismiss'});case'AI_REVIEW_MODE_LEARN_MORE':return t({'id':'AI_REVIEW_MODE_LEARN_MORE','string':'Learn\x20more'});case'AI_REVIEW_MODE_COMPLETED_TEXT':return t({'id':'AI_REVIEW_MODE_COMPLETED_TEXT','string':'There\x27s\x20nothing\x20left\x20to\x20review.'});case'AI_REVIEW_MODE_EMPTY_RESULTS_TEXT':return t({'id':'AI_REVIEW_MODE_EMPTY_RESULTS_TEXT','string':'There\x20are\x20no\x20changes\x20to\x20suggest.'});case'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL':return t({'id':'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL','string':'Finish\x20Review'});case'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE':return t({'id':'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE','string':'Review\x20complete.\x20Finish\x20when\x20ready.'});case'AI_REVIEW_INITIALIZATION_ERROR_MESSAGE':return t({'id':'AI_REVIEW_INITIALIZATION_ERROR_MESSAGE','string':'AI\x20Review\x20initialized\x20with\x20errors.\x20Some\x20features\x20may\x20not\x20be\x20available\x20or\x20work\x20properly.'});case'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE':return t({'id':'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE','string':'Sorry,\x20we\x20couldn\x27t\x20generate\x20the\x20whole\x20review\x20properly.\x20Please\x20try\x20again\x20in\x20a\x20moment.'});case'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE':return t({'id':'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE','string':'Not\x20everything\x20went\x20through,\x20but\x20the\x20completed\x20items\x20are\x20listed\x20below.'});case'AI_REVIEW_MODE':return t({'id':'AI_REVIEW_MODE','string':'Review'});case'AI_REVIEW_MODE_PROMPT_EMPTY_ERROR':return t({'id':'AI_REVIEW_MODE_PROMPT_EMPTY_ERROR','string':'Prompt\x20must\x20not\x20be\x20empty'});case'AI_REVIEW_CHECK_CUSTOM_TITLE':return t({'id':'AI_REVIEW_CHECK_CUSTOM_TITLE','string':'Custom\x20command'});case'AI_REVIEW_CHECK_CUSTOM_DESCRIPTION':return t({'id':'AI_REVIEW_CHECK_CUSTOM_DESCRIPTION','string':'Enter\x20a\x20custom\x20command\x20for\x20a\x20specific\x20review.'});case'AI_REVIEW_CHECK_CORRECTNESS_TITLE':return t({'id':'AI_REVIEW_CHECK_CORRECTNESS_TITLE','string':'Proofread'});case'AI_REVIEW_CHECK_CORRECTNESS_DESCRIPTION':return t({'id':'AI_REVIEW_CHECK_CORRECTNESS_DESCRIPTION','string':'Check\x20the\x20text\x20for\x20errors\x20in\x20grammar,\x20spelling,\x20and\x20punctuation.'});case'AI_REVIEW_CHECK_CLARITY_TITLE':return t({'id':'AI_REVIEW_CHECK_CLARITY_TITLE','string':'Improve\x20clarity'});case'AI_REVIEW_CHECK_CLARITY_DESCRIPTION':return t({'id':'AI_REVIEW_CHECK_CLARITY_DESCRIPTION','string':'Improve\x20the\x20logical\x20structure\x20and\x20precision\x20for\x20clearer\x20message.'});case'AI_REVIEW_CHECK_READABILITY_TITLE':return t({'id':'AI_REVIEW_CHECK_READABILITY_TITLE','string':'Improve\x20readability'});case'AI_REVIEW_CHECK_READABILITY_DESCRIPTION':return t({'id':'AI_REVIEW_CHECK_READABILITY_DESCRIPTION','string':'Adjust\x20sentence\x20structure\x20and\x20word\x20choice\x20for\x20an\x20easier\x20read.'});case'AI_REVIEW_CHECK_MAKE_TITLE':return t({'id':'AI_REVIEW_CHECK_MAKE_TITLE','string':'Adjust\x20length'});case'AI_REVIEW_CHECK_MAKE_DESCRIPTION':return t({'id':'AI_REVIEW_CHECK_MAKE_DESCRIPTION','string':'Shorten\x20or\x20lengthen\x20the\x20text\x20as\x20needed.'});case'AI_REVIEW_CHECK_MAKE_OPTIONS_LABEL':return t({'id':'AI_REVIEW_CHECK_MAKE_OPTIONS_LABEL','string':'Adjust\x20length'});case'AI_REVIEW_CHECK_MAKE_OPTIONS_DATA_LONGER':return t({'id':'AI_REVIEW_CHECK_MAKE_OPTIONS_DATA_LONGER','string':'Longer'});case'AI_REVIEW_CHECK_MAKE_OPTIONS_DATA_SHORTER':return t({'id':'AI_REVIEW_CHECK_MAKE_OPTIONS_DATA_SHORTER','string':'Shorter'});case'AI_REVIEW_CHECK_MAKE_TONE_TITLE':return t({'id':'AI_REVIEW_CHECK_MAKE_TONE_TITLE','string':'Adjust\x20tone\x20and\x20style'});case'AI_REVIEW_CHECK_MAKE_TONE_DESCRIPTION':return t({'id':'AI_REVIEW_CHECK_MAKE_TONE_DESCRIPTION','string':'Modify\x20the\x20text\x20to\x20a\x20desired\x20tone\x20and\x20style.'});case'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_LABEL':return t({'id':'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_LABEL','string':'Adjust\x20tone\x20and\x20style'});case'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_CASUAL':return t({'id':'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_CASUAL','string':'Casual'});case'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_DIRECT':return t({'id':'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_DIRECT','string':'Direct'});case'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_FRIENDLY':return t({'id':'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_FRIENDLY','string':'Friendly'});case'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_CONFIDENT':return t({'id':'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_CONFIDENT','string':'Confident'});case'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_PROFESSIONAL':return t({'id':'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_PROFESSIONAL','string':'Professional'});case'AI_REVIEW_CHECK_TRANSLATE_TITLE':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_TITLE','string':'Translate'});case'AI_REVIEW_CHECK_TRANSLATE_DESCRIPTION':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_DESCRIPTION','string':'Translate\x20the\x20text\x20into\x20another\x20language.'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_LABEL':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_LABEL','string':'Select\x20language'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_ENGLISH':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_ENGLISH','string':'English'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_SPANISH':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_SPANISH','string':'Spanish'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_FRENCH':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_FRENCH','string':'French'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_GERMAN':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_GERMAN','string':'German'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_CHINESE':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_CHINESE','string':'Chinese\x20(Simplified)'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_JAPANESE':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_JAPANESE','string':'Japanese'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_RUSSIAN':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_RUSSIAN','string':'Russian'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_PORTUGUESE':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_PORTUGUESE','string':'Portuguese'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_KOREAN':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_KOREAN','string':'Korean'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_ITALIAN':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_ITALIAN','string':'Italian'});case'AI_REVIEW_MODE_CHECK_STATUS_ACCEPTED':return t({'id':'AI_REVIEW_MODE_CHECK_STATUS_ACCEPTED','string':'Accepted'});case'AI_REVIEW_MODE_CHECK_STATUS_REJECTED':return t({'id':'AI_REVIEW_MODE_CHECK_STATUS_REJECTED','string':'Dismissed'});case'AI_REVIEW_MODE_CHECK_STATUS_OUTDATED':return t({'id':'AI_REVIEW_MODE_CHECK_STATUS_OUTDATED','string':'Outdated'});case'AI_TOGGLE_BUTTON_LABEL':return t({'id':'AI_TOGGLE_BUTTON_LABEL','string':'AI'});case'AI_TRANSLATE_ACCEPT_ALL':return t({'id':'AI_TRANSLATE_ACCEPT_ALL','string':'Accept\x20translation'});case'AI_TRANSLATE_FINISH_HEADER_TITLE':return t({'id':'AI_TRANSLATE_FINISH_HEADER_TITLE','string':'Translation\x20complete.\x20Finish\x20when\x20ready.'});case'AI_TRANSLATE_EMPTY_RESULTS_TEXT':return t({'id':'AI_TRANSLATE_EMPTY_RESULTS_TEXT','string':'There\x20are\x20no\x20translations\x20to\x20review.'});case'AI_TRANSLATE_FINISH_BUTTON_LABEL':return t({'id':'AI_TRANSLATE_FINISH_BUTTON_LABEL','string':'Finish\x20Translation'});case'AI_TRANSLATE_CHECK_LIST_HEADER_TITLE':return t({'id':'AI_TRANSLATE_CHECK_LIST_HEADER_TITLE','string':'Content\x20Translation'});case'AI_TRANSLATE_CHECK_LIST_HEADER_DESCRIPTION':return t({'id':'AI_TRANSLATE_CHECK_LIST_HEADER_DESCRIPTION','string':'A\x20dedicated\x20mode\x20for\x20translating\x20the\x20entire\x20text.'});case'AI_TRANSLATE_CHECK_RESULTS_LOADING_TITLE':return t({'id':'AI_TRANSLATE_CHECK_RESULTS_LOADING_TITLE','string':'Translating\x20to'});case'AI_TRANSLATE_CHECK_RESULTS_READY_TITLE':return t({'id':'AI_TRANSLATE_CHECK_RESULTS_READY_TITLE','string':'Translated\x20to'});case'AI_TRANSLATE_GENERAL_ERROR_MESSAGE':return t({'id':'AI_TRANSLATE_GENERAL_ERROR_MESSAGE','string':'Sorry,\x20we\x20couldn\x27t\x20generate\x20translations\x20properly.\x20Please\x20try\x20again\x20in\x20a\x20moment.'});default:return _0x130053;}}const la=/* #__PURE__ -- @preserve */
_0x3e0c97();var ha=class extends la{_connector;['_config'];['_locale'];_modelList=[];_modelsRequest=null;constructor({connector:_0xc0a4d2,config:_0x332c3b,locale:_0x384be1}){super(),this['_connector']=_0xc0a4d2,this['_config']=_0x332c3b,this['_locale']=_0x384be1;}get['_availableModels'](){return this['_config']?.['displayedModels'];}get _defaultModelId(){return this['_config']?.['defaultModelId'];}async getAllModels(){return this['_modelsRequest']||(this['_modelsRequest']=this['_retrieveModels']()['catch'](_0x3a36ac=>{throw this['_modelsRequest']=null,_0x3a36ac;})),this['_modelsRequest'];}async getAvailableModels(){const _0x338a03=await this['getAllModels']();let _0xdebc5c;return _0xdebc5c=this['_availableModels']?this['_filterModels'](_0x338a03,this['_availableModels']):_0x338a03['filter'](_0x39f72d=>_0x39f72d['recommended']),_0xdebc5c;}async['resolveModel'](_0x3d4d6f){const _0x4e8994=await this['getAllModels']();if(!_0x4e8994['length'])return null;if(_0x3d4d6f){const _0x16cad6=this['_getModelById'](_0x4e8994,_0x3d4d6f);if(_0x16cad6)return _0x16cad6;_0x53dc7a('ai-chat-model-id-unrecognized',{'modelId':_0x3d4d6f,'fallBackModelId':this['_defaultModelId']});}return this['getDefault']();}async getDefault(){const _0x2c5485=await this['getAvailableModels']();if(!_0x2c5485['length'])return null;if(this['_defaultModelId']){const _0x243c5f=this['_getModelById'](_0x2c5485,this['_defaultModelId']);if(_0x243c5f)return _0x243c5f;_0x53dc7a('ai-chat-default-model-id-unrecognized',{'defaultModelId':this['_defaultModelId'],'fallBackModelId':_0x2c5485[0x0]['id']});}return _0x2c5485[0x0];}async['isAvailable'](_0x2c1096){return(await this['getAvailableModels']())['some'](_0x2d9588=>_0x2d9588['name']===_0x2c1096['name']&&_0x2d9588['provider']===_0x2c1096['provider']);}async getModel(_0xbd26a4){const _0x2ab420=await this['getAllModels']();return this['_getModelById'](_0x2ab420,_0xbd26a4)||null;}async _retrieveModels(){if(!this['_modelList']['length']){const _0x1e4945=this['_locale']['uiLanguage']||'en',_0x2aa318=await this['_connector']['getModels'](_0x1e4945)['list']();this['_modelList']=_0x2aa318['items']['map'](_0x3973a2=>ua(_0x3973a2)?{..._0x3973a2,'name':ca(this['_locale'],'AI_MODEL_NAME_AUTO')}:_0x3973a2);}return[...this['_modelList']];}_filterModels(_0x564db5,_0x25b939){let _0x495d63;if(_0x25b939){_0x495d63=[];const _0x175006=new Set(),_0x5d1514='string'==typeof _0x25b939?[_0x25b939['toLocaleLowerCase']()]:_0x25b939['map'](_0x4e4654=>_0x4e4654['toLocaleLowerCase']());for(const _0x5ab147 of _0x5d1514)for(const _0x41948c of _0x564db5)!_0x175006['has'](_0x41948c['id'])&&this['_isMatchingFilter'](_0x41948c,_0x5ab147)&&(_0x495d63['push'](_0x41948c),_0x175006['add'](_0x41948c['id']));}else _0x495d63=_0x564db5;return _0x495d63;}_isMatchingFilter(_0x476294,_0x42e0e9){const _0x405423=_0x476294['id']['toLocaleLowerCase'](),_0x556e58=_0x476294['name']['toLocaleLowerCase'](),_0x2d0b11=_0x476294['provider']['toLocaleLowerCase']();return _0x405423===_0x42e0e9||_0x556e58===_0x42e0e9||ua(_0x476294)&&'auto'===_0x42e0e9||_0x2d0b11===_0x42e0e9||_0x405423['startsWith'](_0x42e0e9);}_getModelById(_0x318b42,_0x1b4e1b){return _0x318b42['find'](_0x4af4b9=>ua(_0x4af4b9)&&'auto'===_0x1b4e1b?_0x4af4b9:_0x4af4b9['id']===_0x1b4e1b)||null;}};function ua(_0x859a2d){return _0x859a2d['id']['startsWith']('agent');}var da=class{_connector;_defaultContext;_contextsRequest=null;constructor({connector:_0xa32768,defaultContext:_0x5286d4}){this['_connector']=_0xa32768,this['_defaultContext']=_0x5286d4;}async getAllContexts(){return this['_contextsRequest']||(this['_contextsRequest']=this['_connector']['listContexts']()['getContexts']()['catch'](_0x25ab1c=>{throw this['_contextsRequest']=null,_0x25ab1c;})),[...await this['_contextsRequest']];}async getAvailableContexts(){const _0x583d9=await this['getAllContexts'](),_0x5e40e7=new Set((this['_defaultContext']??[])['map'](_0x4f9790=>_0x4f9790['id']));return _0x583d9['filter'](_0x50a4ca=>!_0x5e40e7['has'](_0x50a4ca['id']));}resolveContext({feature:_0x594071,ids:_0x22f711=[],extraContexts:_0x991327=[],idScopedOnly:_0x135017=!0x1,context:_0x1a8d76}){const _0x1a9b38=this['_resolveDefaultContext'](_0x594071,_0x22f711,_0x135017);return _0x1a8d76['addDefaultContext']([..._0x1a9b38,..._0x991327]),_0x1a8d76;}_resolveDefaultContext(_0x2dd9fc,_0x20a4ce,_0x382f07=!0x1){if(!this['_defaultContext'])return[];const _0xb014ab=[];for(const _0x5bb30f of this['_defaultContext'])this['_entryAppliesToFeature'](_0x5bb30f['features'],_0x2dd9fc,_0x20a4ce)&&(_0x382f07&&this['_entryAppliesToFeature'](_0x5bb30f['features'],_0x2dd9fc,[])||_0xb014ab['push'](this['_toContextRef'](_0x5bb30f)));return _0xb014ab;}_toContextRef(_0x3effac){return'promptId'in _0x3effac?{'id':_0x3effac['id'],'promptId':_0x3effac['promptId']}:'fileId'in _0x3effac?{'id':_0x3effac['id'],'fileId':_0x3effac['fileId']}:{'id':_0x3effac['id']};}_entryAppliesToFeature(_0x115a97,_0x470b40,_0x18e458){if(!_0x115a97)return!0x0;const _0x4dd258=_0x115a97[_0x470b40];return!!_0x4dd258&&(!0x0===_0x4dd258||_0x18e458['some'](_0x4a863d=>_0x4dd258['test'](_0x4a863d)));}},fa=class extends _0x4dd342{['models'];contextLibrary;static get['pluginName'](){return'AICore';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[oa];}init(){const _0x28085e=this['context']['plugins']['get'](oa);this['models']=new ha({'connector':_0x28085e,'config':this['context']['config']['get']('ai.models'),'locale':this['context']['locale']}),this['contextLibrary']=new da({'connector':_0x28085e,'defaultContext':this['context']['config']['get']('ai.defaultContext')});}};function ma(_0x5d2f7b){return _0x5d2f7b?_0x5d2f7b instanceof _0x95124b?[_0x5d2f7b]:_0x5d2f7b['editors']&&0x0!==_0x5d2f7b['editors']['length']?Array['from'](_0x5d2f7b['editors']):[]:[];}function pa(_0x3a43ee){const _0xd1e81b=ma(_0x3a43ee);if(!_0xd1e81b['length'])throw new _0x4242d4('ai-get-editor-from-context-no-editor');if(0x1===_0xd1e81b['length'])return _0xd1e81b[0x0];const _0x2a2a6d=_0xd1e81b['find'](_0x5ca00f=>_0x5ca00f['ui']?.['focusTracker']?.['isFocused']);if(_0x2a2a6d)return _0x2a2a6d;const _0x1d9c10=function(_0x42985e){if(_0x42985e instanceof _0x95124b)return;const _0x17c106=_0x42985e;if(!_0x17c106['plugins']||!_0x17c106['plugins']['has']('AIEditing'))return;return _0x17c106['plugins']['get']('AIEditing')['getLastContentFocusedEditor']?.();}(_0x3a43ee);return _0x1d9c10&&_0xd1e81b['includes'](_0x1d9c10)?_0x1d9c10:_0xd1e81b[0x0];}const ga=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\x00\x00\x00\x00\x00\x00ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\x5cbfms\x7f\u0084\u008b\u0090\u0095\u0098¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp\u009d¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTǇǋǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\x00\x00\x00͔͂\x00Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\x00\x00ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\x00\x00ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\x00ц\x00ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\x00ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\x00\x00ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\x00\x00֣mallSquare;旼erySmallSquare;斪Ͱֺ\x00ֿ\x00\x00ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\x00ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\x00ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\x00ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\x00ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\x00ࣃbleBracket;柦nǔࣈ\x00࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻\x22䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\x00စbleBracket;柧nǔည\x00နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\x00\x00ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉ǲኀ\x00ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀\u205f\u200aSpace;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\x00ጬጱ\x00\x00\x00\x00\x00ጸጽ፷ᎅ\x00᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\x00጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻ǲᕔ\x00ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\x00ᖰᖶᖿ\x00\x00\x00\x00ᗆᗛᗫᙟ᙭\x00ᚕ᚛ᚲᚹ\x00ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\x00\x00ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\x00\x00ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\x00ᠳƲᠯ\x00ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\x00᧨ᨑᨕᨲ\x00ᨷᩐ\x00\x00᪴\x00\x00᫁\x00\x00ᬡᬮ᭍᭒\x00᯽\x00ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\x00᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\x00\x00᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\x00ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\x00\x00᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\x00ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\x00\x00᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\x00\x00ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\x00\x00ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\x00\x00ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤĳạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\x00\x00ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\x00ᾞ\x00ᾡᾧ\x00\x00ῆῌ\x00ΐ\x00ῦῪ\u2000\x00\u2008⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ﬃɩᾹ\x00\x00᾽g;耀ﬀig;耀ﬄ;쀀𝔣lig;耀ﬁlig;쀀fjƀaltῙ῜ῡt;晭ig;耀ﬂns;斱of;䆒ǰ΅\x00ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒α‚‰‸⁅⁈\x00⁐β•‥‧‪‬\x00‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\x00‶;慔;慖ʴ‾⁁\x00\x00⁃耻¾䂾;慗;慜5;慘ƶ⁌\x00⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\x00↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\x00⊪\x00⊸⋅⋎\x00⋕⋳\x00\x00⋸⌢⍧⍢⍿\x00⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\x00⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\x00⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\x00⒪\x00⒱\x00\x00\x00\x00\x00⒵Ⓔ\x00ⓆⓈⓍ\x00⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସǳ⧟\x00⧣p肻\u00a0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\x00⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\x00\x00⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00ⴭ\x00ⴸⵈⵠⵥ⵲ⶄᬇ\x00\x00ⶍⶫ\x00ⷈⷎ\x00ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗǈⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\x00\x00⵼\x00ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\x00⹽\x00⺀⺝\x00⺢⺹\x00\x00⻋ຜ\x00⼓\x00\x00⼫⾼\x00⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\x00\x00⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\x00㍺㎤\x00\x00㏬㏰\x00㐨㑈㑚㒭㒱㓊㓱\x00㘖\x00\x00㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\x00㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\x00\x00㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\x00㙾㛂\x00\x00\x00\x00\x00㛛㜃\x00㜉㝬\x00\x00\x00㞇ɲ㙖\x00\x00㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼ǲ㚋\x00㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\x00㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\x00\x00㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\x00\x00㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\x00㪋\x00㪐㪛\x00\x00㪝㪨㪫㪯\x00\x00㫃㫎\x00㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'['split']('')['map'](_0x4c73e4=>_0x4c73e4['charCodeAt'](0x0))),Oa=new Uint16Array('Ȁaglq\x09\x15\x18\x1bɭ\x0f\x00\x00\x12p;䀦os;䀧t;䀾t;䀼uot;䀢'['split']('')['map'](_0x160238=>_0x160238['charCodeAt'](0x0)));var wa;const ba=new Map([[0x0,0xfffd],[0x80,0x20ac],[0x82,0x201a],[0x83,0x192],[0x84,0x201e],[0x85,0x2026],[0x86,0x2020],[0x87,0x2021],[0x88,0x2c6],[0x89,0x2030],[0x8a,0x160],[0x8b,0x2039],[0x8c,0x152],[0x8e,0x17d],[0x91,0x2018],[0x92,0x2019],[0x93,0x201c],[0x94,0x201d],[0x95,0x2022],[0x96,0x2013],[0x97,0x2014],[0x98,0x2dc],[0x99,0x2122],[0x9a,0x161],[0x9b,0x203a],[0x9c,0x153],[0x9e,0x17e],[0x9f,0x178]]),ya=null!==(wa=String['fromCodePoint'])&&void 0x0!==wa?wa:function(_0xc558d2){let _0x31f820='';return _0xc558d2>0xffff&&(_0xc558d2-=0x10000,_0x31f820+=String['fromCharCode'](_0xc558d2>>>0xa&0x3ff|0xd800),_0xc558d2=0xdc00|0x3ff&_0xc558d2),_0x31f820+=String['fromCharCode'](_0xc558d2),_0x31f820;};var va;!function(_0x26d283){_0x26d283[_0x26d283['NUM']=0x23]='NUM',_0x26d283[_0x26d283['SEMI']=0x3b]='SEMI',_0x26d283[_0x26d283['EQUALS']=0x3d]='EQUALS',_0x26d283[_0x26d283['ZERO']=0x30]='ZERO',_0x26d283[_0x26d283['NINE']=0x39]='NINE',_0x26d283[_0x26d283['LOWER_A']=0x61]='LOWER_A',_0x26d283[_0x26d283['LOWER_F']=0x66]='LOWER_F',_0x26d283[_0x26d283['LOWER_X']=0x78]='LOWER_X',_0x26d283[_0x26d283['LOWER_Z']=0x7a]='LOWER_Z',_0x26d283[_0x26d283['UPPER_A']=0x41]='UPPER_A',_0x26d283[_0x26d283['UPPER_F']=0x46]='UPPER_F',_0x26d283[_0x26d283['UPPER_Z']=0x5a]='UPPER_Z';}(va||(va={}));var _a,Ea,Ta;function Aa(_0x1721dd){return _0x1721dd>=va['ZERO']&&_0x1721dd<=va['NINE'];}function Sa(_0x2aff02){return _0x2aff02>=va['UPPER_A']&&_0x2aff02<=va['UPPER_F']||_0x2aff02>=va['LOWER_A']&&_0x2aff02<=va['LOWER_F'];}function Ia(_0x57f06e){return _0x57f06e===va['EQUALS']||function(_0x241065){return _0x241065>=va['UPPER_A']&&_0x241065<=va['UPPER_Z']||_0x241065>=va['LOWER_A']&&_0x241065<=va['LOWER_Z']||Aa(_0x241065);}(_0x57f06e);}!function(_0x3c7089){_0x3c7089[_0x3c7089['VALUE_LENGTH']=0xc000]='VALUE_LENGTH',_0x3c7089[_0x3c7089['BRANCH_LENGTH']=0x3f80]='BRANCH_LENGTH',_0x3c7089[_0x3c7089['JUMP_TABLE']=0x7f]='JUMP_TABLE';}(_a||(_a={})),function(_0x3dde72){_0x3dde72[_0x3dde72['EntityStart']=0x0]='EntityStart',_0x3dde72[_0x3dde72['NumericStart']=0x1]='NumericStart',_0x3dde72[_0x3dde72['NumericDecimal']=0x2]='NumericDecimal',_0x3dde72[_0x3dde72['NumericHex']=0x3]='NumericHex',_0x3dde72[_0x3dde72['NamedEntity']=0x4]='NamedEntity';}(Ea||(Ea={})),function(_0x204361){_0x204361[_0x204361['Legacy']=0x0]='Legacy',_0x204361[_0x204361['Strict']=0x1]='Strict',_0x204361[_0x204361['Attribute']=0x2]='Attribute';}(Ta||(Ta={}));var ka,xa,Ca,Ra=class{constructor(_0x3a66bb,_0x1aceda,_0x1088fa){this['decodeTree']=_0x3a66bb,this['emitCodePoint']=_0x1aceda,this['errors']=_0x1088fa,this['state']=Ea['EntityStart'],this['consumed']=0x1,this['result']=0x0,this['treeIndex']=0x0,this['excess']=0x1,this['decodeMode']=Ta['Strict'];}startEntity(_0x293bce){this['decodeMode']=_0x293bce,this['state']=Ea['EntityStart'],this['result']=0x0,this['treeIndex']=0x0,this['excess']=0x1,this['consumed']=0x1;}write(_0x44722e,_0x119b7c){switch(this['state']){case Ea['EntityStart']:return _0x44722e['charCodeAt'](_0x119b7c)===va['NUM']?(this['state']=Ea['NumericStart'],this['consumed']+=0x1,this['stateNumericStart'](_0x44722e,_0x119b7c+0x1)):(this['state']=Ea['NamedEntity'],this['stateNamedEntity'](_0x44722e,_0x119b7c));case Ea['NumericStart']:return this['stateNumericStart'](_0x44722e,_0x119b7c);case Ea['NumericDecimal']:return this['stateNumericDecimal'](_0x44722e,_0x119b7c);case Ea['NumericHex']:return this['stateNumericHex'](_0x44722e,_0x119b7c);case Ea['NamedEntity']:return this['stateNamedEntity'](_0x44722e,_0x119b7c);}}stateNumericStart(_0x45482b,_0x45c9ff){return _0x45c9ff>=_0x45482b['length']?-0x1:(0x20|_0x45482b['charCodeAt'](_0x45c9ff))===va['LOWER_X']?(this['state']=Ea['NumericHex'],this['consumed']+=0x1,this['stateNumericHex'](_0x45482b,_0x45c9ff+0x1)):(this['state']=Ea['NumericDecimal'],this['stateNumericDecimal'](_0x45482b,_0x45c9ff));}addToNumericResult(_0x56c707,_0x402432,_0x5cb1cc,_0x52a3fd){if(_0x402432!==_0x5cb1cc){const _0x260c57=_0x5cb1cc-_0x402432;this['result']=this['result']*Math['pow'](_0x52a3fd,_0x260c57)+Number['parseInt'](_0x56c707['substr'](_0x402432,_0x260c57),_0x52a3fd),this['consumed']+=_0x260c57;}}stateNumericHex(_0x478fe4,_0x3c98bd){const _0x5c4baf=_0x3c98bd;for(;_0x3c98bd<_0x478fe4['length'];){const _0x547011=_0x478fe4['charCodeAt'](_0x3c98bd);if(!Aa(_0x547011)&&!Sa(_0x547011))return this['addToNumericResult'](_0x478fe4,_0x5c4baf,_0x3c98bd,0x10),this['emitNumericEntity'](_0x547011,0x3);_0x3c98bd+=0x1;}return this['addToNumericResult'](_0x478fe4,_0x5c4baf,_0x3c98bd,0x10),-0x1;}stateNumericDecimal(_0x2f63e5,_0x4ff996){const _0x41e67f=_0x4ff996;for(;_0x4ff996<_0x2f63e5['length'];){const _0xfe9aad=_0x2f63e5['charCodeAt'](_0x4ff996);if(!Aa(_0xfe9aad))return this['addToNumericResult'](_0x2f63e5,_0x41e67f,_0x4ff996,0xa),this['emitNumericEntity'](_0xfe9aad,0x2);_0x4ff996+=0x1;}return this['addToNumericResult'](_0x2f63e5,_0x41e67f,_0x4ff996,0xa),-0x1;}emitNumericEntity(_0x97d451,_0x1f02d1){var _0x40a763;if(this['consumed']<=_0x1f02d1)return null===(_0x40a763=this['errors'])||void 0x0===_0x40a763||_0x40a763['absenceOfDigitsInNumericCharacterReference'](this['consumed']),0x0;if(_0x97d451===va['SEMI'])this['consumed']+=0x1;else{if(this['decodeMode']===Ta['Strict'])return 0x0;}return this['emitCodePoint'](function(_0x549886){var _0x20e6a2;return _0x549886>=0xd800&&_0x549886<=0xdfff||_0x549886>0x10ffff?0xfffd:null!==(_0x20e6a2=ba['get'](_0x549886))&&void 0x0!==_0x20e6a2?_0x20e6a2:_0x549886;}(this['result']),this['consumed']),this['errors']&&(_0x97d451!==va['SEMI']&&this['errors']['missingSemicolonAfterCharacterReference'](),this['errors']['validateNumericCharacterReference'](this['result'])),this['consumed'];}stateNamedEntity(_0x27ef87,_0x3279e9){const {decodeTree:_0x4bd4ae}=this;let _0x451258=_0x4bd4ae[this['treeIndex']],_0x427ad1=(_0x451258&_a['VALUE_LENGTH'])>>0xe;for(;_0x3279e9<_0x27ef87['length'];_0x3279e9++,this['excess']++){const _0x5d70b6=_0x27ef87['charCodeAt'](_0x3279e9);if(this['treeIndex']=Pa(_0x4bd4ae,_0x451258,this['treeIndex']+Math['max'](0x1,_0x427ad1),_0x5d70b6),this['treeIndex']<0x0)return 0x0===this['result']||this['decodeMode']===Ta['Attribute']&&(0x0===_0x427ad1||Ia(_0x5d70b6))?0x0:this['emitNotTerminatedNamedEntity']();if(_0x451258=_0x4bd4ae[this['treeIndex']],_0x427ad1=(_0x451258&_a['VALUE_LENGTH'])>>0xe,0x0!==_0x427ad1){if(_0x5d70b6===va['SEMI'])return this['emitNamedEntityData'](this['treeIndex'],_0x427ad1,this['consumed']+this['excess']);this['decodeMode']!==Ta['Strict']&&(this['result']=this['treeIndex'],this['consumed']+=this['excess'],this['excess']=0x0);}}return-0x1;}emitNotTerminatedNamedEntity(){var _0x38cea4;const {result:_0x340cfe,decodeTree:_0x450ea6}=this,_0x5dd77f=(_0x450ea6[_0x340cfe]&_a['VALUE_LENGTH'])>>0xe;return this['emitNamedEntityData'](_0x340cfe,_0x5dd77f,this['consumed']),null===(_0x38cea4=this['errors'])||void 0x0===_0x38cea4||_0x38cea4['missingSemicolonAfterCharacterReference'](),this['consumed'];}emitNamedEntityData(_0x16364a,_0x573f9b,_0x41db38){const {decodeTree:_0x3dea1b}=this;return this['emitCodePoint'](0x1===_0x573f9b?_0x3dea1b[_0x16364a]&~_a['VALUE_LENGTH']:_0x3dea1b[_0x16364a+0x1],_0x41db38),0x3===_0x573f9b&&this['emitCodePoint'](_0x3dea1b[_0x16364a+0x2],_0x41db38),_0x41db38;}['end'](){var _0x67cf5f;switch(this['state']){case Ea['NamedEntity']:return 0x0===this['result']||this['decodeMode']===Ta['Attribute']&&this['result']!==this['treeIndex']?0x0:this['emitNotTerminatedNamedEntity']();case Ea['NumericDecimal']:return this['emitNumericEntity'](0x0,0x2);case Ea['NumericHex']:return this['emitNumericEntity'](0x0,0x3);case Ea['NumericStart']:return null===(_0x67cf5f=this['errors'])||void 0x0===_0x67cf5f||_0x67cf5f['absenceOfDigitsInNumericCharacterReference'](this['consumed']),0x0;case Ea['EntityStart']:return 0x0;}}};function Pa(_0x4b2a0d,_0x36a5a8,_0x39b3fa,_0x1a9ace){const _0x3ff4a8=(_0x36a5a8&_a['BRANCH_LENGTH'])>>0x7,_0x5c7b74=_0x36a5a8&_a['JUMP_TABLE'];if(0x0===_0x3ff4a8)return 0x0!==_0x5c7b74&&_0x1a9ace===_0x5c7b74?_0x39b3fa:-0x1;if(_0x5c7b74){const _0x291d52=_0x1a9ace-_0x5c7b74;return _0x291d52<0x0||_0x291d52>=_0x3ff4a8?-0x1:_0x4b2a0d[_0x39b3fa+_0x291d52]-0x1;}let _0x28a1ad=_0x39b3fa,_0x53a076=_0x28a1ad+_0x3ff4a8-0x1;for(;_0x28a1ad<=_0x53a076;){const _0x59e2d1=_0x28a1ad+_0x53a076>>>0x1,_0x2cf2c3=_0x4b2a0d[_0x59e2d1];if(_0x2cf2c3<_0x1a9ace)_0x28a1ad=_0x59e2d1+0x1;else{if(!(_0x2cf2c3>_0x1a9ace))return _0x4b2a0d[_0x59e2d1+_0x3ff4a8];_0x53a076=_0x59e2d1-0x1;}}return-0x1;}function Na(_0x342a40){return _0x342a40===ka['Space']||_0x342a40===ka['NewLine']||_0x342a40===ka['Tab']||_0x342a40===ka['FormFeed']||_0x342a40===ka['CarriageReturn'];}function Ma(_0x154a0f){return _0x154a0f===ka['Slash']||_0x154a0f===ka['Gt']||Na(_0x154a0f);}!function(_0x51db59){_0x51db59[_0x51db59['Tab']=0x9]='Tab',_0x51db59[_0x51db59['NewLine']=0xa]='NewLine',_0x51db59[_0x51db59['FormFeed']=0xc]='FormFeed',_0x51db59[_0x51db59['CarriageReturn']=0xd]='CarriageReturn',_0x51db59[_0x51db59['Space']=0x20]='Space',_0x51db59[_0x51db59['ExclamationMark']=0x21]='ExclamationMark',_0x51db59[_0x51db59['Number']=0x23]='Number',_0x51db59[_0x51db59['Amp']=0x26]='Amp',_0x51db59[_0x51db59['SingleQuote']=0x27]='SingleQuote',_0x51db59[_0x51db59['DoubleQuote']=0x22]='DoubleQuote',_0x51db59[_0x51db59['Dash']=0x2d]='Dash',_0x51db59[_0x51db59['Slash']=0x2f]='Slash',_0x51db59[_0x51db59['Zero']=0x30]='Zero',_0x51db59[_0x51db59['Nine']=0x39]='Nine',_0x51db59[_0x51db59['Semi']=0x3b]='Semi',_0x51db59[_0x51db59['Lt']=0x3c]='Lt',_0x51db59[_0x51db59['Eq']=0x3d]='Eq',_0x51db59[_0x51db59['Gt']=0x3e]='Gt',_0x51db59[_0x51db59['Questionmark']=0x3f]='Questionmark',_0x51db59[_0x51db59['UpperA']=0x41]='UpperA',_0x51db59[_0x51db59['LowerA']=0x61]='LowerA',_0x51db59[_0x51db59['UpperF']=0x46]='UpperF',_0x51db59[_0x51db59['LowerF']=0x66]='LowerF',_0x51db59[_0x51db59['UpperZ']=0x5a]='UpperZ',_0x51db59[_0x51db59['LowerZ']=0x7a]='LowerZ',_0x51db59[_0x51db59['LowerX']=0x78]='LowerX',_0x51db59[_0x51db59['OpeningSquareBracket']=0x5b]='OpeningSquareBracket';}(ka||(ka={})),function(_0x14ce59){_0x14ce59[_0x14ce59['Text']=0x1]='Text',_0x14ce59[_0x14ce59['BeforeTagName']=0x2]='BeforeTagName',_0x14ce59[_0x14ce59['InTagName']=0x3]='InTagName',_0x14ce59[_0x14ce59['InSelfClosingTag']=0x4]='InSelfClosingTag',_0x14ce59[_0x14ce59['BeforeClosingTagName']=0x5]='BeforeClosingTagName',_0x14ce59[_0x14ce59['InClosingTagName']=0x6]='InClosingTagName',_0x14ce59[_0x14ce59['AfterClosingTagName']=0x7]='AfterClosingTagName',_0x14ce59[_0x14ce59['BeforeAttributeName']=0x8]='BeforeAttributeName',_0x14ce59[_0x14ce59['InAttributeName']=0x9]='InAttributeName',_0x14ce59[_0x14ce59['AfterAttributeName']=0xa]='AfterAttributeName',_0x14ce59[_0x14ce59['BeforeAttributeValue']=0xb]='BeforeAttributeValue',_0x14ce59[_0x14ce59['InAttributeValueDq']=0xc]='InAttributeValueDq',_0x14ce59[_0x14ce59['InAttributeValueSq']=0xd]='InAttributeValueSq',_0x14ce59[_0x14ce59['InAttributeValueNq']=0xe]='InAttributeValueNq',_0x14ce59[_0x14ce59['BeforeDeclaration']=0xf]='BeforeDeclaration',_0x14ce59[_0x14ce59['InDeclaration']=0x10]='InDeclaration',_0x14ce59[_0x14ce59['InProcessingInstruction']=0x11]='InProcessingInstruction',_0x14ce59[_0x14ce59['BeforeComment']=0x12]='BeforeComment',_0x14ce59[_0x14ce59['CDATASequence']=0x13]='CDATASequence',_0x14ce59[_0x14ce59['InSpecialComment']=0x14]='InSpecialComment',_0x14ce59[_0x14ce59['InCommentLike']=0x15]='InCommentLike',_0x14ce59[_0x14ce59['BeforeSpecialS']=0x16]='BeforeSpecialS',_0x14ce59[_0x14ce59['BeforeSpecialT']=0x17]='BeforeSpecialT',_0x14ce59[_0x14ce59['SpecialStartSequence']=0x18]='SpecialStartSequence',_0x14ce59[_0x14ce59['InSpecialTag']=0x19]='InSpecialTag',_0x14ce59[_0x14ce59['InEntity']=0x1a]='InEntity';}(xa||(xa={})),function(_0x40b381){_0x40b381[_0x40b381['NoValue']=0x0]='NoValue',_0x40b381[_0x40b381['Unquoted']=0x1]='Unquoted',_0x40b381[_0x40b381['Single']=0x2]='Single',_0x40b381[_0x40b381['Double']=0x3]='Double';}(Ca||(Ca={}));const La={'Cdata':new Uint8Array([0x43,0x44,0x41,0x54,0x41,0x5b]),'CdataEnd':new Uint8Array([0x5d,0x5d,0x3e]),'CommentEnd':new Uint8Array([0x2d,0x2d,0x3e]),'ScriptEnd':new Uint8Array([0x3c,0x2f,0x73,0x63,0x72,0x69,0x70,0x74]),'StyleEnd':new Uint8Array([0x3c,0x2f,0x73,0x74,0x79,0x6c,0x65]),'TitleEnd':new Uint8Array([0x3c,0x2f,0x74,0x69,0x74,0x6c,0x65]),'TextareaEnd':new Uint8Array([0x3c,0x2f,0x74,0x65,0x78,0x74,0x61,0x72,0x65,0x61]),'XmpEnd':new Uint8Array([0x3c,0x2f,0x78,0x6d,0x70])};var $a=class{constructor({xmlMode:_0x14bd39=!0x1,decodeEntities:_0x2da97b=!0x0},_0x5532d6){this['cbs']=_0x5532d6,this['state']=xa['Text'],this['buffer']='',this['sectionStart']=0x0,this['index']=0x0,this['entityStart']=0x0,this['baseState']=xa['Text'],this['isSpecial']=!0x1,this['running']=!0x0,this['offset']=0x0,this['currentSequence']=void 0x0,this['sequenceIndex']=0x0,this['xmlMode']=_0x14bd39,this['decodeEntities']=_0x2da97b,this['entityDecoder']=new Ra(_0x14bd39?Oa:ga,(_0x40fc90,_0x46a169)=>this['emitCodePoint'](_0x40fc90,_0x46a169));}reset(){this['state']=xa['Text'],this['buffer']='',this['sectionStart']=0x0,this['index']=0x0,this['baseState']=xa['Text'],this['currentSequence']=void 0x0,this['running']=!0x0,this['offset']=0x0;}write(_0x3bae5a){this['offset']+=this['buffer']['length'],this['buffer']=_0x3bae5a,this['parse']();}['end'](){this['running']&&this['finish']();}['pause'](){this['running']=!0x1;}['resume'](){this['running']=!0x0,this['index']<this['buffer']['length']+this['offset']&&this['parse']();}stateText(_0x1ab40e){_0x1ab40e===ka['Lt']||!this['decodeEntities']&&this['fastForwardTo'](ka['Lt'])?(this['index']>this['sectionStart']&&this['cbs']['ontext'](this['sectionStart'],this['index']),this['state']=xa['BeforeTagName'],this['sectionStart']=this['index']):this['decodeEntities']&&_0x1ab40e===ka['Amp']&&this['startEntity']();}stateSpecialStartSequence(_0x39986f){const _0x72d934=this['sequenceIndex']===this['currentSequence']['length'];if(_0x72d934?Ma(_0x39986f):(0x20|_0x39986f)===this['currentSequence'][this['sequenceIndex']]){if(!_0x72d934)return void this['sequenceIndex']++;}else this['isSpecial']=!0x1;this['sequenceIndex']=0x0,this['state']=xa['InTagName'],this['stateInTagName'](_0x39986f);}stateInSpecialTag(_0x43b74f){if(this['sequenceIndex']===this['currentSequence']['length']){if(_0x43b74f===ka['Gt']||Na(_0x43b74f)){const _0x24e5e6=this['index']-this['currentSequence']['length'];if(this['sectionStart']<_0x24e5e6){const _0x473745=this['index'];this['index']=_0x24e5e6,this['cbs']['ontext'](this['sectionStart'],_0x24e5e6),this['index']=_0x473745;}return this['isSpecial']=!0x1,this['sectionStart']=_0x24e5e6+0x2,void this['stateInClosingTagName'](_0x43b74f);}this['sequenceIndex']=0x0;}(0x20|_0x43b74f)===this['currentSequence'][this['sequenceIndex']]?this['sequenceIndex']+=0x1:0x0===this['sequenceIndex']?this['currentSequence']===La['TitleEnd']?this['decodeEntities']&&_0x43b74f===ka['Amp']&&this['startEntity']():this['fastForwardTo'](ka['Lt'])&&(this['sequenceIndex']=0x1):this['sequenceIndex']=Number(_0x43b74f===ka['Lt']);}stateCDATASequence(_0x1686ce){_0x1686ce===La['Cdata'][this['sequenceIndex']]?++this['sequenceIndex']===La['Cdata']['length']&&(this['state']=xa['InCommentLike'],this['currentSequence']=La['CdataEnd'],this['sequenceIndex']=0x0,this['sectionStart']=this['index']+0x1):(this['sequenceIndex']=0x0,this['state']=xa['InDeclaration'],this['stateInDeclaration'](_0x1686ce));}fastForwardTo(_0x23ec0d){for(;++this['index']<this['buffer']['length']+this['offset'];)if(this['buffer']['charCodeAt'](this['index']-this['offset'])===_0x23ec0d)return!0x0;return this['index']=this['buffer']['length']+this['offset']-0x1,!0x1;}stateInCommentLike(_0x1ff889){_0x1ff889===this['currentSequence'][this['sequenceIndex']]?++this['sequenceIndex']===this['currentSequence']['length']&&(this['currentSequence']===La['CdataEnd']?this['cbs']['oncdata'](this['sectionStart'],this['index'],0x2):this['cbs']['oncomment'](this['sectionStart'],this['index'],0x2),this['sequenceIndex']=0x0,this['sectionStart']=this['index']+0x1,this['state']=xa['Text']):0x0===this['sequenceIndex']?this['fastForwardTo'](this['currentSequence'][0x0])&&(this['sequenceIndex']=0x1):_0x1ff889!==this['currentSequence'][this['sequenceIndex']-0x1]&&(this['sequenceIndex']=0x0);}isTagStartChar(_0xe170da){return this['xmlMode']?!Ma(_0xe170da):function(_0xfc22ec){return _0xfc22ec>=ka['LowerA']&&_0xfc22ec<=ka['LowerZ']||_0xfc22ec>=ka['UpperA']&&_0xfc22ec<=ka['UpperZ'];}(_0xe170da);}startSpecial(_0x576d48,_0x2f0517){this['isSpecial']=!0x0,this['currentSequence']=_0x576d48,this['sequenceIndex']=_0x2f0517,this['state']=xa['SpecialStartSequence'];}stateBeforeTagName(_0x5c04c4){if(_0x5c04c4===ka['ExclamationMark'])this['state']=xa['BeforeDeclaration'],this['sectionStart']=this['index']+0x1;else{if(_0x5c04c4===ka['Questionmark'])this['state']=xa['InProcessingInstruction'],this['sectionStart']=this['index']+0x1;else{if(this['isTagStartChar'](_0x5c04c4)){const _0x41339d=0x20|_0x5c04c4;this['sectionStart']=this['index'],this['xmlMode']?this['state']=xa['InTagName']:_0x41339d===La['ScriptEnd'][0x2]?this['state']=xa['BeforeSpecialS']:_0x41339d===La['TitleEnd'][0x2]||_0x41339d===La['XmpEnd'][0x2]?this['state']=xa['BeforeSpecialT']:this['state']=xa['InTagName'];}else _0x5c04c4===ka['Slash']?this['state']=xa['BeforeClosingTagName']:(this['state']=xa['Text'],this['stateText'](_0x5c04c4));}}}stateInTagName(_0x26dd04){Ma(_0x26dd04)&&(this['cbs']['onopentagname'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['state']=xa['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x26dd04));}stateBeforeClosingTagName(_0x4e209d){Na(_0x4e209d)||(_0x4e209d===ka['Gt']?this['state']=xa['Text']:(this['state']=this['isTagStartChar'](_0x4e209d)?xa['InClosingTagName']:xa['InSpecialComment'],this['sectionStart']=this['index']));}stateInClosingTagName(_0x35daaf){(_0x35daaf===ka['Gt']||Na(_0x35daaf))&&(this['cbs']['onclosetag'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['state']=xa['AfterClosingTagName'],this['stateAfterClosingTagName'](_0x35daaf));}stateAfterClosingTagName(_0x460666){(_0x460666===ka['Gt']||this['fastForwardTo'](ka['Gt']))&&(this['state']=xa['Text'],this['sectionStart']=this['index']+0x1);}stateBeforeAttributeName(_0x4c6337){_0x4c6337===ka['Gt']?(this['cbs']['onopentagend'](this['index']),this['isSpecial']?(this['state']=xa['InSpecialTag'],this['sequenceIndex']=0x0):this['state']=xa['Text'],this['sectionStart']=this['index']+0x1):_0x4c6337===ka['Slash']?this['state']=xa['InSelfClosingTag']:Na(_0x4c6337)||(this['state']=xa['InAttributeName'],this['sectionStart']=this['index']);}stateInSelfClosingTag(_0x490130){_0x490130===ka['Gt']?(this['cbs']['onselfclosingtag'](this['index']),this['state']=xa['Text'],this['sectionStart']=this['index']+0x1,this['isSpecial']=!0x1):Na(_0x490130)||(this['state']=xa['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x490130));}stateInAttributeName(_0x1a7cba){(_0x1a7cba===ka['Eq']||Ma(_0x1a7cba))&&(this['cbs']['onattribname'](this['sectionStart'],this['index']),this['sectionStart']=this['index'],this['state']=xa['AfterAttributeName'],this['stateAfterAttributeName'](_0x1a7cba));}stateAfterAttributeName(_0x524fd6){_0x524fd6===ka['Eq']?this['state']=xa['BeforeAttributeValue']:_0x524fd6===ka['Slash']||_0x524fd6===ka['Gt']?(this['cbs']['onattribend'](Ca['NoValue'],this['sectionStart']),this['sectionStart']=-0x1,this['state']=xa['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x524fd6)):Na(_0x524fd6)||(this['cbs']['onattribend'](Ca['NoValue'],this['sectionStart']),this['state']=xa['InAttributeName'],this['sectionStart']=this['index']);}stateBeforeAttributeValue(_0x286162){_0x286162===ka['DoubleQuote']?(this['state']=xa['InAttributeValueDq'],this['sectionStart']=this['index']+0x1):_0x286162===ka['SingleQuote']?(this['state']=xa['InAttributeValueSq'],this['sectionStart']=this['index']+0x1):Na(_0x286162)||(this['sectionStart']=this['index'],this['state']=xa['InAttributeValueNq'],this['stateInAttributeValueNoQuotes'](_0x286162));}handleInAttributeValue(_0x35ccf1,_0x1ed23e){_0x35ccf1===_0x1ed23e||!this['decodeEntities']&&this['fastForwardTo'](_0x1ed23e)?(this['cbs']['onattribdata'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['cbs']['onattribend'](_0x1ed23e===ka['DoubleQuote']?Ca['Double']:Ca['Single'],this['index']+0x1),this['state']=xa['BeforeAttributeName']):this['decodeEntities']&&_0x35ccf1===ka['Amp']&&this['startEntity']();}stateInAttributeValueDoubleQuotes(_0x825e86){this['handleInAttributeValue'](_0x825e86,ka['DoubleQuote']);}stateInAttributeValueSingleQuotes(_0x1762bd){this['handleInAttributeValue'](_0x1762bd,ka['SingleQuote']);}stateInAttributeValueNoQuotes(_0x1daddc){Na(_0x1daddc)||_0x1daddc===ka['Gt']?(this['cbs']['onattribdata'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['cbs']['onattribend'](Ca['Unquoted'],this['index']),this['state']=xa['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x1daddc)):this['decodeEntities']&&_0x1daddc===ka['Amp']&&this['startEntity']();}stateBeforeDeclaration(_0x5df814){_0x5df814===ka['OpeningSquareBracket']?(this['state']=xa['CDATASequence'],this['sequenceIndex']=0x0):this['state']=_0x5df814===ka['Dash']?xa['BeforeComment']:xa['InDeclaration'];}stateInDeclaration(_0x24f26b){(_0x24f26b===ka['Gt']||this['fastForwardTo'](ka['Gt']))&&(this['cbs']['ondeclaration'](this['sectionStart'],this['index']),this['state']=xa['Text'],this['sectionStart']=this['index']+0x1);}stateInProcessingInstruction(_0x5c4a32){(_0x5c4a32===ka['Gt']||this['fastForwardTo'](ka['Gt']))&&(this['cbs']['onprocessinginstruction'](this['sectionStart'],this['index']),this['state']=xa['Text'],this['sectionStart']=this['index']+0x1);}stateBeforeComment(_0x5f3621){_0x5f3621===ka['Dash']?(this['state']=xa['InCommentLike'],this['currentSequence']=La['CommentEnd'],this['sequenceIndex']=0x2,this['sectionStart']=this['index']+0x1):this['state']=xa['InDeclaration'];}stateInSpecialComment(_0x3c6eb8){(_0x3c6eb8===ka['Gt']||this['fastForwardTo'](ka['Gt']))&&(this['cbs']['oncomment'](this['sectionStart'],this['index'],0x0),this['state']=xa['Text'],this['sectionStart']=this['index']+0x1);}stateBeforeSpecialS(_0x21c473){const _0x2f927d=0x20|_0x21c473;_0x2f927d===La['ScriptEnd'][0x3]?this['startSpecial'](La['ScriptEnd'],0x4):_0x2f927d===La['StyleEnd'][0x3]?this['startSpecial'](La['StyleEnd'],0x4):(this['state']=xa['InTagName'],this['stateInTagName'](_0x21c473));}stateBeforeSpecialT(_0x20be97){switch(0x20|_0x20be97){case La['TitleEnd'][0x3]:this['startSpecial'](La['TitleEnd'],0x4);break;case La['TextareaEnd'][0x3]:this['startSpecial'](La['TextareaEnd'],0x4);break;case La['XmpEnd'][0x3]:this['startSpecial'](La['XmpEnd'],0x4);break;default:this['state']=xa['InTagName'],this['stateInTagName'](_0x20be97);}}startEntity(){this['baseState']=this['state'],this['state']=xa['InEntity'],this['entityStart']=this['index'],this['entityDecoder']['startEntity'](this['xmlMode']?Ta['Strict']:this['baseState']===xa['Text']||this['baseState']===xa['InSpecialTag']?Ta['Legacy']:Ta['Attribute']);}stateInEntity(){const _0x20d7c0=this['entityDecoder']['write'](this['buffer'],this['index']-this['offset']);_0x20d7c0>=0x0?(this['state']=this['baseState'],0x0===_0x20d7c0&&(this['index']=this['entityStart'])):this['index']=this['offset']+this['buffer']['length']-0x1;}['cleanup'](){this['running']&&this['sectionStart']!==this['index']&&(this['state']===xa['Text']||this['state']===xa['InSpecialTag']&&0x0===this['sequenceIndex']?(this['cbs']['ontext'](this['sectionStart'],this['index']),this['sectionStart']=this['index']):this['state']!==xa['InAttributeValueDq']&&this['state']!==xa['InAttributeValueSq']&&this['state']!==xa['InAttributeValueNq']||(this['cbs']['onattribdata'](this['sectionStart'],this['index']),this['sectionStart']=this['index']));}shouldContinue(){return this['index']<this['buffer']['length']+this['offset']&&this['running'];}['parse'](){for(;this['shouldContinue']();){const _0x34c9be=this['buffer']['charCodeAt'](this['index']-this['offset']);switch(this['state']){case xa['Text']:this['stateText'](_0x34c9be);break;case xa['SpecialStartSequence']:this['stateSpecialStartSequence'](_0x34c9be);break;case xa['InSpecialTag']:this['stateInSpecialTag'](_0x34c9be);break;case xa['CDATASequence']:this['stateCDATASequence'](_0x34c9be);break;case xa['InAttributeValueDq']:this['stateInAttributeValueDoubleQuotes'](_0x34c9be);break;case xa['InAttributeName']:this['stateInAttributeName'](_0x34c9be);break;case xa['InCommentLike']:this['stateInCommentLike'](_0x34c9be);break;case xa['InSpecialComment']:this['stateInSpecialComment'](_0x34c9be);break;case xa['BeforeAttributeName']:this['stateBeforeAttributeName'](_0x34c9be);break;case xa['InTagName']:this['stateInTagName'](_0x34c9be);break;case xa['InClosingTagName']:this['stateInClosingTagName'](_0x34c9be);break;case xa['BeforeTagName']:this['stateBeforeTagName'](_0x34c9be);break;case xa['AfterAttributeName']:this['stateAfterAttributeName'](_0x34c9be);break;case xa['InAttributeValueSq']:this['stateInAttributeValueSingleQuotes'](_0x34c9be);break;case xa['BeforeAttributeValue']:this['stateBeforeAttributeValue'](_0x34c9be);break;case xa['BeforeClosingTagName']:this['stateBeforeClosingTagName'](_0x34c9be);break;case xa['AfterClosingTagName']:this['stateAfterClosingTagName'](_0x34c9be);break;case xa['BeforeSpecialS']:this['stateBeforeSpecialS'](_0x34c9be);break;case xa['BeforeSpecialT']:this['stateBeforeSpecialT'](_0x34c9be);break;case xa['InAttributeValueNq']:this['stateInAttributeValueNoQuotes'](_0x34c9be);break;case xa['InSelfClosingTag']:this['stateInSelfClosingTag'](_0x34c9be);break;case xa['InDeclaration']:this['stateInDeclaration'](_0x34c9be);break;case xa['BeforeDeclaration']:this['stateBeforeDeclaration'](_0x34c9be);break;case xa['BeforeComment']:this['stateBeforeComment'](_0x34c9be);break;case xa['InProcessingInstruction']:this['stateInProcessingInstruction'](_0x34c9be);break;case xa['InEntity']:this['stateInEntity']();}this['index']++;}this['cleanup']();}['finish'](){this['state']===xa['InEntity']&&(this['entityDecoder']['end'](),this['state']=this['baseState']),this['handleTrailingData'](),this['cbs']['onend']();}handleTrailingData(){const _0x566840=this['buffer']['length']+this['offset'];this['sectionStart']>=_0x566840||(this['state']===xa['InCommentLike']?this['currentSequence']===La['CdataEnd']?this['cbs']['oncdata'](this['sectionStart'],_0x566840,0x0):this['cbs']['oncomment'](this['sectionStart'],_0x566840,0x0):this['state']===xa['InTagName']||this['state']===xa['BeforeAttributeName']||this['state']===xa['BeforeAttributeValue']||this['state']===xa['AfterAttributeName']||this['state']===xa['InAttributeName']||this['state']===xa['InAttributeValueSq']||this['state']===xa['InAttributeValueDq']||this['state']===xa['InAttributeValueNq']||this['state']===xa['InClosingTagName']||this['cbs']['ontext'](this['sectionStart'],_0x566840));}emitCodePoint(_0x53f541,_0x222504){this['baseState']!==xa['Text']&&this['baseState']!==xa['InSpecialTag']?(this['sectionStart']<this['entityStart']&&this['cbs']['onattribdata'](this['sectionStart'],this['entityStart']),this['sectionStart']=this['entityStart']+_0x222504,this['index']=this['sectionStart']-0x1,this['cbs']['onattribentity'](_0x53f541)):(this['sectionStart']<this['entityStart']&&this['cbs']['ontext'](this['sectionStart'],this['entityStart']),this['sectionStart']=this['entityStart']+_0x222504,this['index']=this['sectionStart']-0x1,this['cbs']['ontextentity'](_0x53f541,this['sectionStart']));}};const Da=new Set(['input','option','optgroup','select','button','datalist','textarea']),Qa=new Set(['p']),ja=new Set(['thead','tbody']),Ua=new Set(['dd','dt']),Va=new Set(['rt','rp']),Ba=new Map([['tr',new Set(['tr','th','td'])],['th',new Set(['th'])],['td',new Set(['thead','th','td'])],['body',new Set(['head','link','script'])],['li',new Set(['li'])],['p',Qa],['h1',Qa],['h2',Qa],['h3',Qa],['h4',Qa],['h5',Qa],['h6',Qa],['select',Da],['input',Da],['output',Da],['button',Da],['datalist',Da],['textarea',Da],['option',new Set(['option'])],['optgroup',new Set(['optgroup','option'])],['dd',Ua],['dt',Ua],['address',Qa],['article',Qa],['aside',Qa],['blockquote',Qa],['details',Qa],['div',Qa],['dl',Qa],['fieldset',Qa],['figcaption',Qa],['figure',Qa],['footer',Qa],['form',Qa],['header',Qa],['hr',Qa],['main',Qa],['nav',Qa],['ol',Qa],['pre',Qa],['section',Qa],['table',Qa],['ul',Qa],['rt',Va],['rp',Va],['tbody',ja],['tfoot',ja]]),Ha=new Set(['area','base','basefont','br','col','command','embed','frame','hr','img','input','isindex','keygen','link','meta','param','source','track','wbr']),Fa=new Set(['math','svg']),Za=new Set(['mi','mo','mn','ms','mtext','annotation-xml','foreignobject','desc','title']),Ga=/\s|\//;var Xa,qa=class{constructor(_0x168bbf,_0x57ec73={}){var _0xd4697,_0x1268c7,_0x39014a,_0x4bf2f0,_0x1a9ea4,_0x519776;this['options']=_0x57ec73,this['startIndex']=0x0,this['endIndex']=0x0,this['openTagStart']=0x0,this['tagname']='',this['attribname']='',this['attribvalue']='',this['attribs']=null,this['stack']=[],this['buffers']=[],this['bufferOffset']=0x0,this['writeIndex']=0x0,this['ended']=!0x1,this['cbs']=null!=_0x168bbf?_0x168bbf:{},this['htmlMode']=!this['options']['xmlMode'],this['lowerCaseTagNames']=null!==(_0xd4697=_0x57ec73['lowerCaseTags'])&&void 0x0!==_0xd4697?_0xd4697:this['htmlMode'],this['lowerCaseAttributeNames']=null!==(_0x1268c7=_0x57ec73['lowerCaseAttributeNames'])&&void 0x0!==_0x1268c7?_0x1268c7:this['htmlMode'],this['recognizeSelfClosing']=null!==(_0x39014a=_0x57ec73['recognizeSelfClosing'])&&void 0x0!==_0x39014a?_0x39014a:!this['htmlMode'],this['tokenizer']=new(null!==(_0x4bf2f0=_0x57ec73['Tokenizer'])&&void 0x0!==_0x4bf2f0?_0x4bf2f0:$a)(this['options'],this),this['foreignContext']=[!this['htmlMode']],null===(_0x519776=(_0x1a9ea4=this['cbs'])['onparserinit'])||void 0x0===_0x519776||_0x519776['call'](_0x1a9ea4,this);}ontext(_0x2604fb,_0x120e50){var _0x3a2cb9,_0x509735;const _0x468cee=this['getSlice'](_0x2604fb,_0x120e50);this['endIndex']=_0x120e50-0x1,null===(_0x509735=(_0x3a2cb9=this['cbs'])['ontext'])||void 0x0===_0x509735||_0x509735['call'](_0x3a2cb9,_0x468cee),this['startIndex']=_0x120e50;}ontextentity(_0x45c0fa,_0x4aaf62){var _0x57bdea,_0x3e318b;this['endIndex']=_0x4aaf62-0x1,null===(_0x3e318b=(_0x57bdea=this['cbs'])['ontext'])||void 0x0===_0x3e318b||_0x3e318b['call'](_0x57bdea,ya(_0x45c0fa)),this['startIndex']=_0x4aaf62;}isVoidElement(_0x46f9fc){return this['htmlMode']&&Ha['has'](_0x46f9fc);}onopentagname(_0x5092b5,_0x15cdc5){this['endIndex']=_0x15cdc5;let _0xff1284=this['getSlice'](_0x5092b5,_0x15cdc5);this['lowerCaseTagNames']&&(_0xff1284=_0xff1284['toLowerCase']()),this['emitOpenTag'](_0xff1284);}emitOpenTag(_0x149a02){var _0x4899b7,_0x46ed0c,_0x16fd5d,_0x534d80;this['openTagStart']=this['startIndex'],this['tagname']=_0x149a02;const _0xc9433f=this['htmlMode']&&Ba['get'](_0x149a02);if(_0xc9433f)for(;this['stack']['length']>0x0&&_0xc9433f['has'](this['stack'][0x0]);){const _0x3f0a4c=this['stack']['shift']();null===(_0x46ed0c=(_0x4899b7=this['cbs'])['onclosetag'])||void 0x0===_0x46ed0c||_0x46ed0c['call'](_0x4899b7,_0x3f0a4c,!0x0);}this['isVoidElement'](_0x149a02)||(this['stack']['unshift'](_0x149a02),this['htmlMode']&&(Fa['has'](_0x149a02)?this['foreignContext']['unshift'](!0x0):Za['has'](_0x149a02)&&this['foreignContext']['unshift'](!0x1))),null===(_0x534d80=(_0x16fd5d=this['cbs'])['onopentagname'])||void 0x0===_0x534d80||_0x534d80['call'](_0x16fd5d,_0x149a02),this['cbs']['onopentag']&&(this['attribs']={});}['endOpenTag'](_0x20b503){var _0x491aa8,_0x3a7ac6;this['startIndex']=this['openTagStart'],this['attribs']&&(null===(_0x3a7ac6=(_0x491aa8=this['cbs'])['onopentag'])||void 0x0===_0x3a7ac6||_0x3a7ac6['call'](_0x491aa8,this['tagname'],this['attribs'],_0x20b503),this['attribs']=null),this['cbs']['onclosetag']&&this['isVoidElement'](this['tagname'])&&this['cbs']['onclosetag'](this['tagname'],!0x0),this['tagname']='';}onopentagend(_0x2ad7a2){this['endIndex']=_0x2ad7a2,this['endOpenTag'](!0x1),this['startIndex']=_0x2ad7a2+0x1;}onclosetag(_0x47613d,_0x1059e1){var _0x4ecd08,_0x9de04b,_0x1fbc27,_0x44955f,_0x49e8eb,_0x214499,_0x1ca737,_0xa6602d;this['endIndex']=_0x1059e1;let _0x3ba378=this['getSlice'](_0x47613d,_0x1059e1);if(this['lowerCaseTagNames']&&(_0x3ba378=_0x3ba378['toLowerCase']()),this['htmlMode']&&(Fa['has'](_0x3ba378)||Za['has'](_0x3ba378))&&this['foreignContext']['shift'](),this['isVoidElement'](_0x3ba378))this['htmlMode']&&'br'===_0x3ba378&&(null===(_0x44955f=(_0x1fbc27=this['cbs'])['onopentagname'])||void 0x0===_0x44955f||_0x44955f['call'](_0x1fbc27,'br'),null===(_0x214499=(_0x49e8eb=this['cbs'])['onopentag'])||void 0x0===_0x214499||_0x214499['call'](_0x49e8eb,'br',{},!0x0),null===(_0xa6602d=(_0x1ca737=this['cbs'])['onclosetag'])||void 0x0===_0xa6602d||_0xa6602d['call'](_0x1ca737,'br',!0x1));else{const _0x103c4d=this['stack']['indexOf'](_0x3ba378);if(-0x1!==_0x103c4d)for(let _0x419aef=0x0;_0x419aef<=_0x103c4d;_0x419aef++){const _0x5a3a4a=this['stack']['shift']();null===(_0x9de04b=(_0x4ecd08=this['cbs'])['onclosetag'])||void 0x0===_0x9de04b||_0x9de04b['call'](_0x4ecd08,_0x5a3a4a,_0x419aef!==_0x103c4d);}else this['htmlMode']&&'p'===_0x3ba378&&(this['emitOpenTag']('p'),this['closeCurrentTag'](!0x0));}this['startIndex']=_0x1059e1+0x1;}onselfclosingtag(_0x19975f){this['endIndex']=_0x19975f,this['recognizeSelfClosing']||this['foreignContext'][0x0]?(this['closeCurrentTag'](!0x1),this['startIndex']=_0x19975f+0x1):this['onopentagend'](_0x19975f);}closeCurrentTag(_0x46a09d){var _0xc56de1,_0x204ae0;const _0x70e9a8=this['tagname'];this['endOpenTag'](_0x46a09d),this['stack'][0x0]===_0x70e9a8&&(null===(_0x204ae0=(_0xc56de1=this['cbs'])['onclosetag'])||void 0x0===_0x204ae0||_0x204ae0['call'](_0xc56de1,_0x70e9a8,!_0x46a09d),this['stack']['shift']());}onattribname(_0x202d2c,_0x5283c7){this['startIndex']=_0x202d2c;const _0xb59486=this['getSlice'](_0x202d2c,_0x5283c7);this['attribname']=this['lowerCaseAttributeNames']?_0xb59486['toLowerCase']():_0xb59486;}onattribdata(_0x502fa9,_0x358b02){this['attribvalue']+=this['getSlice'](_0x502fa9,_0x358b02);}onattribentity(_0xe77f13){this['attribvalue']+=ya(_0xe77f13);}onattribend(_0x2ab2aa,_0xcb44f2){var _0x5807e3,_0x20d39e;this['endIndex']=_0xcb44f2,null===(_0x20d39e=(_0x5807e3=this['cbs'])['onattribute'])||void 0x0===_0x20d39e||_0x20d39e['call'](_0x5807e3,this['attribname'],this['attribvalue'],_0x2ab2aa===Ca['Double']?'\x22':_0x2ab2aa===Ca['Single']?'\x27':_0x2ab2aa===Ca['NoValue']?void 0x0:null),this['attribs']&&!Object['prototype']['hasOwnProperty']['call'](this['attribs'],this['attribname'])&&(this['attribs'][this['attribname']]=this['attribvalue']),this['attribvalue']='';}getInstructionName(_0x5f58a3){const _0x188d35=_0x5f58a3['search'](Ga);let _0x30b08e=_0x188d35<0x0?_0x5f58a3:_0x5f58a3['substr'](0x0,_0x188d35);return this['lowerCaseTagNames']&&(_0x30b08e=_0x30b08e['toLowerCase']()),_0x30b08e;}ondeclaration(_0x3ef225,_0x1be6ed){this['endIndex']=_0x1be6ed;const _0x4357ad=this['getSlice'](_0x3ef225,_0x1be6ed);if(this['cbs']['onprocessinginstruction']){const _0x44822b=this['getInstructionName'](_0x4357ad);this['cbs']['onprocessinginstruction']('!'+_0x44822b,'!'+_0x4357ad);}this['startIndex']=_0x1be6ed+0x1;}onprocessinginstruction(_0x2bdcb7,_0x5ab2fd){this['endIndex']=_0x5ab2fd;const _0x51a920=this['getSlice'](_0x2bdcb7,_0x5ab2fd);if(this['cbs']['onprocessinginstruction']){const _0x2e0fac=this['getInstructionName'](_0x51a920);this['cbs']['onprocessinginstruction']('?'+_0x2e0fac,'?'+_0x51a920);}this['startIndex']=_0x5ab2fd+0x1;}oncomment(_0x4a4b1,_0x421755,_0x3a6664){var _0x1a1e63,_0x57b994,_0xf798c3,_0x4c124d;this['endIndex']=_0x421755,null===(_0x57b994=(_0x1a1e63=this['cbs'])['oncomment'])||void 0x0===_0x57b994||_0x57b994['call'](_0x1a1e63,this['getSlice'](_0x4a4b1,_0x421755-_0x3a6664)),null===(_0x4c124d=(_0xf798c3=this['cbs'])['oncommentend'])||void 0x0===_0x4c124d||_0x4c124d['call'](_0xf798c3),this['startIndex']=_0x421755+0x1;}oncdata(_0x543943,_0x9199b3,_0x1a0b17){var _0x354834,_0x352373,_0x153c57,_0x361e0c,_0x5dd794,_0x47fe14,_0x1726d1,_0x5c3122,_0x30b487,_0x2d7e3d;this['endIndex']=_0x9199b3;const _0x2d358f=this['getSlice'](_0x543943,_0x9199b3-_0x1a0b17);!this['htmlMode']||this['options']['recognizeCDATA']?(null===(_0x352373=(_0x354834=this['cbs'])['oncdatastart'])||void 0x0===_0x352373||_0x352373['call'](_0x354834),null===(_0x361e0c=(_0x153c57=this['cbs'])['ontext'])||void 0x0===_0x361e0c||_0x361e0c['call'](_0x153c57,_0x2d358f),null===(_0x47fe14=(_0x5dd794=this['cbs'])['oncdataend'])||void 0x0===_0x47fe14||_0x47fe14['call'](_0x5dd794)):(null===(_0x5c3122=(_0x1726d1=this['cbs'])['oncomment'])||void 0x0===_0x5c3122||_0x5c3122['call'](_0x1726d1,'[CDATA['+_0x2d358f+']]'),null===(_0x2d7e3d=(_0x30b487=this['cbs'])['oncommentend'])||void 0x0===_0x2d7e3d||_0x2d7e3d['call'](_0x30b487)),this['startIndex']=_0x9199b3+0x1;}['onend'](){var _0x27107a,_0x2e91c1;if(this['cbs']['onclosetag']){this['endIndex']=this['startIndex'];for(let _0x581492=0x0;_0x581492<this['stack']['length'];_0x581492++)this['cbs']['onclosetag'](this['stack'][_0x581492],!0x0);}null===(_0x2e91c1=(_0x27107a=this['cbs'])['onend'])||void 0x0===_0x2e91c1||_0x2e91c1['call'](_0x27107a);}reset(){var _0x90b3b1,_0xb21e39,_0x1105f0,_0x45c96;null===(_0xb21e39=(_0x90b3b1=this['cbs'])['onreset'])||void 0x0===_0xb21e39||_0xb21e39['call'](_0x90b3b1),this['tokenizer']['reset'](),this['tagname']='',this['attribname']='',this['attribs']=null,this['stack']['length']=0x0,this['startIndex']=0x0,this['endIndex']=0x0,null===(_0x45c96=(_0x1105f0=this['cbs'])['onparserinit'])||void 0x0===_0x45c96||_0x45c96['call'](_0x1105f0,this),this['buffers']['length']=0x0,this['foreignContext']['length']=0x0,this['foreignContext']['unshift'](!this['htmlMode']),this['bufferOffset']=0x0,this['writeIndex']=0x0,this['ended']=!0x1;}parseComplete(_0x523011){this['reset'](),this['end'](_0x523011);}getSlice(_0x50ba0c,_0x17bcb5){for(;_0x50ba0c-this['bufferOffset']>=this['buffers'][0x0]['length'];)this['shiftBuffer']();let _0x2e9f8b=this['buffers'][0x0]['slice'](_0x50ba0c-this['bufferOffset'],_0x17bcb5-this['bufferOffset']);for(;_0x17bcb5-this['bufferOffset']>this['buffers'][0x0]['length'];)this['shiftBuffer'](),_0x2e9f8b+=this['buffers'][0x0]['slice'](0x0,_0x17bcb5-this['bufferOffset']);return _0x2e9f8b;}shiftBuffer(){this['bufferOffset']+=this['buffers'][0x0]['length'],this['writeIndex']--,this['buffers']['shift']();}write(_0x12df29){var _0x147c7c,_0x33a92d;this['ended']?null===(_0x33a92d=(_0x147c7c=this['cbs'])['onerror'])||void 0x0===_0x33a92d||_0x33a92d['call'](_0x147c7c,new Error('.write()\x20after\x20done!')):(this['buffers']['push'](_0x12df29),this['tokenizer']['running']&&(this['tokenizer']['write'](_0x12df29),this['writeIndex']++));}['end'](_0x442f41){var _0x43268,_0x53400f;this['ended']?null===(_0x53400f=(_0x43268=this['cbs'])['onerror'])||void 0x0===_0x53400f||_0x53400f['call'](_0x43268,new Error('.end()\x20after\x20done!')):(_0x442f41&&this['write'](_0x442f41),this['ended']=!0x0,this['tokenizer']['end']());}['pause'](){this['tokenizer']['pause']();}['resume'](){for(this['tokenizer']['resume']();this['tokenizer']['running']&&this['writeIndex']<this['buffers']['length'];)this['tokenizer']['write'](this['buffers'][this['writeIndex']++]);this['ended']&&this['tokenizer']['end']();}['parseChunk'](_0x21d0ef){this['write'](_0x21d0ef);}['done'](_0x5274dd){this['end'](_0x5274dd);}};!function(_0x3589ae){_0x3589ae['Root']='root',_0x3589ae['Text']='text',_0x3589ae['Directive']='directive',_0x3589ae['Comment']='comment',_0x3589ae['Script']='script',_0x3589ae['Style']='style',_0x3589ae['Tag']='tag',_0x3589ae['CDATA']='cdata',_0x3589ae['Doctype']='doctype';}(Xa||(Xa={}));const Wa=Xa['Root'],za=Xa['Text'],Ya=Xa['Directive'],Ka=Xa['Comment'],Ja=Xa['Script'],tc=Xa['Style'],ec=Xa['Tag'],ic=Xa['CDATA'],sc=Xa['Doctype'];var nc=class{constructor(){this['parent']=null,this['prev']=null,this['next']=null,this['startIndex']=null,this['endIndex']=null;}get parentNode(){return this['parent'];}set parentNode(_0xc11e46){this['parent']=_0xc11e46;}get['previousSibling'](){return this['prev'];}set['previousSibling'](_0x1cb7aa){this['prev']=_0x1cb7aa;}get nextSibling(){return this['next'];}set nextSibling(_0x4a096e){this['next']=_0x4a096e;}['cloneNode'](_0x134afa=!0x1){return wc(this,_0x134afa);}},rc=class extends nc{constructor(_0x430c45){super(),this['data']=_0x430c45;}get['nodeValue'](){return this['data'];}set['nodeValue'](_0x3007d3){this['data']=_0x3007d3;}},oc=class extends rc{constructor(){super(...arguments),this['type']=Xa['Text'];}get['nodeType'](){return 0x3;}},ac=class extends rc{constructor(){super(...arguments),this['type']=Xa['Comment'];}get['nodeType'](){return 0x8;}},cc=class extends rc{constructor(_0x43ff83,_0x1cd6ac){super(_0x1cd6ac),this['name']=_0x43ff83,this['type']=Xa['Directive'];}get['nodeType'](){return 0x1;}},lc=class extends nc{constructor(_0x4e60ac){super(),this['children']=_0x4e60ac;}get firstChild(){var _0x678510;return null!==(_0x678510=this['children'][0x0])&&void 0x0!==_0x678510?_0x678510:null;}get lastChild(){return this['children']['length']>0x0?this['children'][this['children']['length']-0x1]:null;}get['childNodes'](){return this['children'];}set['childNodes'](_0x552a42){this['children']=_0x552a42;}},hc=class extends lc{constructor(){super(...arguments),this['type']=Xa['CDATA'];}get['nodeType'](){return 0x4;}},uc=class extends lc{constructor(){super(...arguments),this['type']=Xa['Root'];}get['nodeType'](){return 0x9;}},dc=class extends lc{constructor(_0x29fc1f,_0x5b13ec,_0x2d8eb6=[],_0x5979b7='script'===_0x29fc1f?Xa['Script']:'style'===_0x29fc1f?Xa['Style']:Xa['Tag']){super(_0x2d8eb6),this['name']=_0x29fc1f,this['attribs']=_0x5b13ec,this['type']=_0x5979b7;}get['nodeType'](){return 0x1;}get tagName(){return this['name'];}set tagName(_0x2601ef){this['name']=_0x2601ef;}get attributes(){return Object['keys'](this['attribs'])['map'](_0x33c668=>{var _0x546c36,_0x5075b4;return{'name':_0x33c668,'value':this['attribs'][_0x33c668],'namespace':null===(_0x546c36=this['x-attribsNamespace'])||void 0x0===_0x546c36?void 0x0:_0x546c36[_0x33c668],'prefix':null===(_0x5075b4=this['x-attribsPrefix'])||void 0x0===_0x5075b4?void 0x0:_0x5075b4[_0x33c668]};});}};function fc(_0x1503a9){return(_0x5109b7=_0x1503a9)['type']===Xa['Tag']||_0x5109b7['type']===Xa['Script']||_0x5109b7['type']===Xa['Style'];var _0x5109b7;}function mc(_0x63cbdf){return _0x63cbdf['type']===Xa['Text'];}function pc(_0xab54bd){return _0xab54bd['type']===Xa['Comment'];}function gc(_0x24a8c6){return _0x24a8c6['type']===Xa['Root'];}function Oc(_0x3a7d56){return Object['prototype']['hasOwnProperty']['call'](_0x3a7d56,'children');}function wc(_0x25fc6d,_0x291435=!0x1){let _0x30de62;if(mc(_0x25fc6d))_0x30de62=new oc(_0x25fc6d['data']);else{if(pc(_0x25fc6d))_0x30de62=new ac(_0x25fc6d['data']);else{if(fc(_0x25fc6d)){const _0x1fa2de=_0x291435?bc(_0x25fc6d['children']):[],_0x698ad2=new dc(_0x25fc6d['name'],{..._0x25fc6d['attribs']},_0x1fa2de);_0x1fa2de['forEach'](_0x45e696=>_0x45e696['parent']=_0x698ad2),null!=_0x25fc6d['namespace']&&(_0x698ad2['namespace']=_0x25fc6d['namespace']),_0x25fc6d['x-attribsNamespace']&&(_0x698ad2['x-attribsNamespace']={..._0x25fc6d['x-attribsNamespace']}),_0x25fc6d['x-attribsPrefix']&&(_0x698ad2['x-attribsPrefix']={..._0x25fc6d['x-attribsPrefix']}),_0x30de62=_0x698ad2;}else{if(function(_0x110a88){return _0x110a88['type']===Xa['CDATA'];}(_0x25fc6d)){const _0x3ecfd2=_0x291435?bc(_0x25fc6d['children']):[],_0x2a7384=new hc(_0x3ecfd2);_0x3ecfd2['forEach'](_0x2b6495=>_0x2b6495['parent']=_0x2a7384),_0x30de62=_0x2a7384;}else{if(gc(_0x25fc6d)){const _0x317c6a=_0x291435?bc(_0x25fc6d['children']):[],_0x2b785a=new uc(_0x317c6a);_0x317c6a['forEach'](_0x26457e=>_0x26457e['parent']=_0x2b785a),_0x25fc6d['x-mode']&&(_0x2b785a['x-mode']=_0x25fc6d['x-mode']),_0x30de62=_0x2b785a;}else{if(!function(_0x3363b7){return _0x3363b7['type']===Xa['Directive'];}(_0x25fc6d))throw new Error('Not\x20implemented\x20yet:\x20'+_0x25fc6d['type']);{const _0x1b97fd=new cc(_0x25fc6d['name'],_0x25fc6d['data']);null!=_0x25fc6d['x-name']&&(_0x1b97fd['x-name']=_0x25fc6d['x-name'],_0x1b97fd['x-publicId']=_0x25fc6d['x-publicId'],_0x1b97fd['x-systemId']=_0x25fc6d['x-systemId']),_0x30de62=_0x1b97fd;}}}}}}return _0x30de62['startIndex']=_0x25fc6d['startIndex'],_0x30de62['endIndex']=_0x25fc6d['endIndex'],null!=_0x25fc6d['sourceCodeLocation']&&(_0x30de62['sourceCodeLocation']=_0x25fc6d['sourceCodeLocation']),_0x30de62;}function bc(_0x422fcd){const _0x1c9b35=_0x422fcd['map'](_0x108db7=>wc(_0x108db7,!0x0));for(let _0x55a20b=0x1;_0x55a20b<_0x1c9b35['length'];_0x55a20b++)_0x1c9b35[_0x55a20b]['prev']=_0x1c9b35[_0x55a20b-0x1],_0x1c9b35[_0x55a20b-0x1]['next']=_0x1c9b35[_0x55a20b];return _0x1c9b35;}const yc={'withStartIndices':!0x1,'withEndIndices':!0x1,'xmlMode':!0x1};var vc=class{constructor(_0x5b7562,_0x3fe398,_0x96d8c7){this['dom']=[],this['root']=new uc(this['dom']),this['done']=!0x1,this['tagStack']=[this['root']],this['lastNode']=null,this['parser']=null,'function'==typeof _0x3fe398&&(_0x96d8c7=_0x3fe398,_0x3fe398=yc),'object'==typeof _0x5b7562&&(_0x3fe398=_0x5b7562,_0x5b7562=void 0x0),this['callback']=null!=_0x5b7562?_0x5b7562:null,this['options']=null!=_0x3fe398?_0x3fe398:yc,this['elementCB']=null!=_0x96d8c7?_0x96d8c7:null;}onparserinit(_0x53a72e){this['parser']=_0x53a72e;}onreset(){this['dom']=[],this['root']=new uc(this['dom']),this['done']=!0x1,this['tagStack']=[this['root']],this['lastNode']=null,this['parser']=null;}['onend'](){this['done']||(this['done']=!0x0,this['parser']=null,this['handleCallback'](null));}['onerror'](_0x317beb){this['handleCallback'](_0x317beb);}onclosetag(){this['lastNode']=null;const _0x5a7121=this['tagStack']['pop']();this['options']['withEndIndices']&&(_0x5a7121['endIndex']=this['parser']['endIndex']),this['elementCB']&&this['elementCB'](_0x5a7121);}onopentag(_0x2b2ea1,_0x5725a7){const _0x2dac86=new dc(_0x2b2ea1,_0x5725a7,void 0x0,this['options']['xmlMode']?Xa['Tag']:void 0x0);this['addNode'](_0x2dac86),this['tagStack']['push'](_0x2dac86);}ontext(_0x21c5ee){const {lastNode:_0x2ed048}=this;if(_0x2ed048&&_0x2ed048['type']===Xa['Text'])_0x2ed048['data']+=_0x21c5ee,this['options']['withEndIndices']&&(_0x2ed048['endIndex']=this['parser']['endIndex']);else{const _0x4792fc=new oc(_0x21c5ee);this['addNode'](_0x4792fc),this['lastNode']=_0x4792fc;}}oncomment(_0x6f0fb3){if(this['lastNode']&&this['lastNode']['type']===Xa['Comment'])return void(this['lastNode']['data']+=_0x6f0fb3);const _0x2586fb=new ac(_0x6f0fb3);this['addNode'](_0x2586fb),this['lastNode']=_0x2586fb;}oncommentend(){this['lastNode']=null;}oncdatastart(){const _0x3f66de=new oc(''),_0x343789=new hc([_0x3f66de]);this['addNode'](_0x343789),_0x3f66de['parent']=_0x343789,this['lastNode']=_0x3f66de;}oncdataend(){this['lastNode']=null;}onprocessinginstruction(_0x4111a0,_0x18c136){const _0x37f0cb=new cc(_0x4111a0,_0x18c136);this['addNode'](_0x37f0cb);}['handleCallback'](_0x1251cc){if('function'==typeof this['callback'])this['callback'](_0x1251cc,this['dom']);else{if(_0x1251cc)throw _0x1251cc;}}['addNode'](_0x3bdad2){const _0x14d214=this['tagStack'][this['tagStack']['length']-0x1],_0x269e24=_0x14d214['children'][_0x14d214['children']['length']-0x1];this['options']['withStartIndices']&&(_0x3bdad2['startIndex']=this['parser']['startIndex']),this['options']['withEndIndices']&&(_0x3bdad2['endIndex']=this['parser']['endIndex']),_0x14d214['children']['push'](_0x3bdad2),_0x269e24&&(_0x3bdad2['prev']=_0x269e24,_0x269e24['next']=_0x3bdad2),_0x3bdad2['parent']=_0x14d214,this['lastNode']=null;}};const _c=/["&'<>$\x80-\uFFFF]/g,Ec=new Map([[0x22,'&quot;'],[0x26,'&amp;'],[0x27,'&apos;'],[0x3c,'&lt;'],[0x3e,'&gt;']]),Tc=null!=String['prototype']['codePointAt']?(_0x2c22c4,_0x3b082a)=>_0x2c22c4['codePointAt'](_0x3b082a):(_0x19e7f8,_0x2f758b)=>0xd800==(0xfc00&_0x19e7f8['charCodeAt'](_0x2f758b))?0x400*(_0x19e7f8['charCodeAt'](_0x2f758b)-0xd800)+_0x19e7f8['charCodeAt'](_0x2f758b+0x1)-0xdc00+0x10000:_0x19e7f8['charCodeAt'](_0x2f758b);function Ac(_0x4d9b3f){let _0x82ab1c,_0x4136b3='',_0x4d3a5e=0x0;for(;null!==(_0x82ab1c=_c['exec'](_0x4d9b3f));){const _0x3521e7=_0x82ab1c['index'],_0x393db2=_0x4d9b3f['charCodeAt'](_0x3521e7),_0x33d881=Ec['get'](_0x393db2);void 0x0!==_0x33d881?(_0x4136b3+=_0x4d9b3f['substring'](_0x4d3a5e,_0x3521e7)+_0x33d881,_0x4d3a5e=_0x3521e7+0x1):(_0x4136b3+=_0x4d9b3f['substring'](_0x4d3a5e,_0x3521e7)+'&#x'+Tc(_0x4d9b3f,_0x3521e7)['toString'](0x10)+';',_0x4d3a5e=_c['lastIndex']+=Number(0xd800==(0xfc00&_0x393db2)));}return _0x4136b3+_0x4d9b3f['substr'](_0x4d3a5e);}function Sc(_0x3e5131,_0x3019ce){return function(_0x2742e3){let _0x40c980,_0x906791=0x0,_0x48c9a1='';for(;_0x40c980=_0x3e5131['exec'](_0x2742e3);)_0x906791!==_0x40c980['index']&&(_0x48c9a1+=_0x2742e3['substring'](_0x906791,_0x40c980['index'])),_0x48c9a1+=_0x3019ce['get'](_0x40c980[0x0]['charCodeAt'](0x0)),_0x906791=_0x40c980['index']+0x1;return _0x48c9a1+_0x2742e3['substring'](_0x906791);};}Sc(/[&<>'"]/g,Ec);const Ic=Sc(/["&\u00A0]/g,new Map([[0x22,'&quot;'],[0x26,'&amp;'],[0xa0,'&nbsp;']])),kc=Sc(/[&<>\u00A0]/g,new Map([[0x26,'&amp;'],[0x3c,'&lt;'],[0x3e,'&gt;'],[0xa0,'&nbsp;']])),xc=new Map(['altGlyph','altGlyphDef','altGlyphItem','animateColor','animateMotion','animateTransform','clipPath','feBlend','feColorMatrix','feComponentTransfer','feComposite','feConvolveMatrix','feDiffuseLighting','feDisplacementMap','feDistantLight','feDropShadow','feFlood','feFuncA','feFuncB','feFuncG','feFuncR','feGaussianBlur','feImage','feMerge','feMergeNode','feMorphology','feOffset','fePointLight','feSpecularLighting','feSpotLight','feTile','feTurbulence','foreignObject','glyphRef','linearGradient','radialGradient','textPath']['map'](_0xf7a3bd=>[_0xf7a3bd['toLowerCase'](),_0xf7a3bd])),Cc=new Map(['definitionURL','attributeName','attributeType','baseFrequency','baseProfile','calcMode','clipPathUnits','diffuseConstant','edgeMode','filterUnits','glyphRef','gradientTransform','gradientUnits','kernelMatrix','kernelUnitLength','keyPoints','keySplines','keyTimes','lengthAdjust','limitingConeAngle','markerHeight','markerUnits','markerWidth','maskContentUnits','maskUnits','numOctaves','pathLength','patternContentUnits','patternTransform','patternUnits','pointsAtX','pointsAtY','pointsAtZ','preserveAlpha','preserveAspectRatio','primitiveUnits','refX','refY','repeatCount','repeatDur','requiredExtensions','requiredFeatures','specularConstant','specularExponent','spreadMethod','startOffset','stdDeviation','stitchTiles','surfaceScale','systemLanguage','tableValues','targetX','targetY','textLength','viewBox','viewTarget','xChannelSelector','yChannelSelector','zoomAndPan']['map'](_0x2f054=>[_0x2f054['toLowerCase'](),_0x2f054])),Rc=new Set(['style','script','xmp','iframe','noembed','noframes','plaintext','noscript']);function Pc(_0x39db17){return _0x39db17['replace'](/"/g,'&quot;');}const Nc=new Set(['area','base','basefont','br','col','command','embed','frame','hr','img','input','isindex','keygen','link','meta','param','source','track','wbr']);function Mc(_0xc5593b,_0x3cde99={}){const _0x45804a='length'in _0xc5593b?_0xc5593b:[_0xc5593b];let _0x674324='';for(let _0x4429f5=0x0;_0x4429f5<_0x45804a['length'];_0x4429f5++)_0x674324+=Lc(_0x45804a[_0x4429f5],_0x3cde99);return _0x674324;}function Lc(_0xed71a5,_0x913217){switch(_0xed71a5['type']){case Wa:return Mc(_0xed71a5['children'],_0x913217);case sc:case Ya:return'<'+_0xed71a5['data']+'>';case Ka:return function(_0x2feabb){return'<!--'+_0x2feabb['data']+'-->';}(_0xed71a5);case ic:return function(_0x4efaa7){return'<![CDATA['+_0x4efaa7['children'][0x0]['data']+']]>';}(_0xed71a5);case Ja:case tc:case ec:return function(_0x5d9307,_0x16a69c){var _0x3eb5b2;'foreign'===_0x16a69c['xmlMode']&&(_0x5d9307['name']=null!==(_0x3eb5b2=xc['get'](_0x5d9307['name']))&&void 0x0!==_0x3eb5b2?_0x3eb5b2:_0x5d9307['name'],_0x5d9307['parent']&&$c['has'](_0x5d9307['parent']['name'])&&(_0x16a69c={..._0x16a69c,'xmlMode':!0x1})),!_0x16a69c['xmlMode']&&Dc['has'](_0x5d9307['name'])&&(_0x16a69c={..._0x16a69c,'xmlMode':'foreign'});let _0x2cf3a6='<'+_0x5d9307['name'];const _0x353a14=function(_0x467c66,_0x2f32f6){var _0x4732b6;if(!_0x467c66)return;const _0x593b34=!0x1===(null!==(_0x4732b6=_0x2f32f6['encodeEntities'])&&void 0x0!==_0x4732b6?_0x4732b6:_0x2f32f6['decodeEntities'])?Pc:_0x2f32f6['xmlMode']||'utf8'!==_0x2f32f6['encodeEntities']?Ac:Ic;return Object['keys'](_0x467c66)['map'](_0x12182d=>{var _0x50ffc6,_0x1bd18c;const _0x27a420=null!==(_0x50ffc6=_0x467c66[_0x12182d])&&void 0x0!==_0x50ffc6?_0x50ffc6:'';return'foreign'===_0x2f32f6['xmlMode']&&(_0x12182d=null!==(_0x1bd18c=Cc['get'](_0x12182d))&&void 0x0!==_0x1bd18c?_0x1bd18c:_0x12182d),_0x2f32f6['emptyAttrs']||_0x2f32f6['xmlMode']||''!==_0x27a420?_0x12182d+'=\x22'+_0x593b34(_0x27a420)+'\x22':_0x12182d;})['join']('\x20');}(_0x5d9307['attribs'],_0x16a69c);return _0x353a14&&(_0x2cf3a6+='\x20'+_0x353a14),0x0===_0x5d9307['children']['length']&&(_0x16a69c['xmlMode']?!0x1!==_0x16a69c['selfClosingTags']:_0x16a69c['selfClosingTags']&&Nc['has'](_0x5d9307['name']))?(_0x16a69c['xmlMode']||(_0x2cf3a6+='\x20'),_0x2cf3a6+='/>'):(_0x2cf3a6+='>',_0x5d9307['children']['length']>0x0&&(_0x2cf3a6+=Mc(_0x5d9307['children'],_0x16a69c)),!_0x16a69c['xmlMode']&&Nc['has'](_0x5d9307['name'])||(_0x2cf3a6+='</'+_0x5d9307['name']+'>')),_0x2cf3a6;}(_0xed71a5,_0x913217);case za:return function(_0x29345a,_0xe48e0){var _0x11840c;let _0x415855=_0x29345a['data']||'';return!0x1===(null!==(_0x11840c=_0xe48e0['encodeEntities'])&&void 0x0!==_0x11840c?_0x11840c:_0xe48e0['decodeEntities'])||!_0xe48e0['xmlMode']&&_0x29345a['parent']&&Rc['has'](_0x29345a['parent']['name'])||(_0x415855=_0xe48e0['xmlMode']||'utf8'!==_0xe48e0['encodeEntities']?Ac(_0x415855):kc(_0x415855)),_0x415855;}(_0xed71a5,_0x913217);}}const $c=new Set(['mi','mo','mn','ms','mtext','annotation-xml','foreignObject','desc','title']),Dc=new Set(['svg','math']);function Qc(_0x4fb5d8){return Array['isArray'](_0x4fb5d8)?_0x4fb5d8['map'](Qc)['join'](''):Oc(_0x4fb5d8)&&!pc(_0x4fb5d8)?Qc(_0x4fb5d8['children']):mc(_0x4fb5d8)?_0x4fb5d8['data']:'';}function jc(_0x3362c4){return _0x3362c4['parent']||null;}function Uc(_0x4d0bd0){if(_0x4d0bd0['prev']&&(_0x4d0bd0['prev']['next']=_0x4d0bd0['next']),_0x4d0bd0['next']&&(_0x4d0bd0['next']['prev']=_0x4d0bd0['prev']),_0x4d0bd0['parent']){const _0x2191ae=_0x4d0bd0['parent']['children'],_0x276a97=_0x2191ae['lastIndexOf'](_0x4d0bd0);_0x276a97>=0x0&&_0x2191ae['splice'](_0x276a97,0x1);}_0x4d0bd0['next']=null,_0x4d0bd0['prev']=null,_0x4d0bd0['parent']=null;}function Vc(_0x5b23e6,_0x25efdf){const _0x415976=_0x25efdf['prev']=_0x5b23e6['prev'];_0x415976&&(_0x415976['next']=_0x25efdf);const _0x4ec5c7=_0x25efdf['next']=_0x5b23e6['next'];_0x4ec5c7&&(_0x4ec5c7['prev']=_0x25efdf);const _0x263571=_0x25efdf['parent']=_0x5b23e6['parent'];if(_0x263571){const _0x183de1=_0x263571['children'];_0x183de1[_0x183de1['lastIndexOf'](_0x5b23e6)]=_0x25efdf,_0x5b23e6['parent']=null;}}function Bc(_0xd15363,_0x28079a){if(Uc(_0x28079a),_0x28079a['next']=null,_0x28079a['parent']=_0xd15363,_0xd15363['children']['push'](_0x28079a)>0x1){const _0x224317=_0xd15363['children'][_0xd15363['children']['length']-0x2];_0x224317['next']=_0x28079a,_0x28079a['prev']=_0x224317;}else _0x28079a['prev']=null;}function Hc(_0x5d80ab,_0x3e6d00){Uc(_0x3e6d00);const {parent:_0x42c8a2}=_0x5d80ab,_0x25c2fd=_0x5d80ab['next'];if(_0x3e6d00['next']=_0x25c2fd,_0x3e6d00['prev']=_0x5d80ab,_0x5d80ab['next']=_0x3e6d00,_0x3e6d00['parent']=_0x42c8a2,_0x25c2fd){if(_0x25c2fd['prev']=_0x3e6d00,_0x42c8a2){const _0x540192=_0x42c8a2['children'];_0x540192['splice'](_0x540192['lastIndexOf'](_0x25c2fd),0x0,_0x3e6d00);}}else _0x42c8a2&&_0x42c8a2['children']['push'](_0x3e6d00);}function Fc(_0x291454,_0x2bfc5e){if(Uc(_0x2bfc5e),_0x2bfc5e['parent']=_0x291454,_0x2bfc5e['prev']=null,0x1!==_0x291454['children']['unshift'](_0x2bfc5e)){const _0x56fa47=_0x291454['children'][0x1];_0x56fa47['prev']=_0x2bfc5e,_0x2bfc5e['next']=_0x56fa47;}else _0x2bfc5e['next']=null;}function Zc(_0x2c6494,_0x5c27bc){Uc(_0x5c27bc);const {parent:_0x2ba0d8}=_0x2c6494;if(_0x2ba0d8){const _0x306b35=_0x2ba0d8['children'];_0x306b35['splice'](_0x306b35['indexOf'](_0x2c6494),0x0,_0x5c27bc);}_0x2c6494['prev']&&(_0x2c6494['prev']['next']=_0x5c27bc),_0x5c27bc['parent']=_0x2ba0d8,_0x5c27bc['prev']=_0x2c6494['prev'],_0x5c27bc['next']=_0x2c6494,_0x2c6494['prev']=_0x5c27bc;}function Gc(_0x3bf4f6,_0x417c39,_0x5f19cf=!0x0){const _0xb9f0f3=Array['isArray'](_0x417c39)?_0x417c39:[_0x417c39];for(let _0x9330dc=0x0;_0x9330dc<_0xb9f0f3['length'];_0x9330dc++){const _0x45877e=_0xb9f0f3[_0x9330dc];if(fc(_0x45877e)&&_0x3bf4f6(_0x45877e))return _0x45877e;if(_0x5f19cf&&Oc(_0x45877e)&&_0x45877e['children']['length']>0x0){const _0xd55cf9=Gc(_0x3bf4f6,_0x45877e['children'],!0x0);if(_0xd55cf9)return _0xd55cf9;}}return null;}function Xc(_0x2edcbe,_0x38dbf8){const _0x5d35e7=[],_0x441d46=[Array['isArray'](_0x38dbf8)?_0x38dbf8:[_0x38dbf8]],_0x1b6423=[0x0];for(;;){if(_0x1b6423[0x0]>=_0x441d46[0x0]['length']){if(0x1===_0x441d46['length'])return _0x5d35e7;_0x441d46['shift'](),_0x1b6423['shift']();continue;}const _0x30664c=_0x441d46[0x0][_0x1b6423[0x0]++];fc(_0x30664c)&&_0x2edcbe(_0x30664c)&&_0x5d35e7['push'](_0x30664c),Oc(_0x30664c)&&_0x30664c['children']['length']>0x0&&(_0x1b6423['unshift'](0x0),_0x441d46['unshift'](_0x30664c['children']));}}function qc(_0x8730ee,_0x22b4f1){return function(_0x5ed102,_0x2912c5){const _0x194203=new vc(void 0x0,_0x2912c5);return new qa(_0x194203,_0x2912c5)['end'](_0x5ed102),_0x194203['root'];}(_0x8730ee,_0x22b4f1);}function Wc(_0x349018,_0x272279){return Mc(_0x349018,_0x272279);}function zc(_0x5e86da,_0xcb2e61,_0x4176ce){const _0x43b80f=null!==_0xcb2e61?_0x17d071=>_0x17d071['attribs'][_0x5e86da]===_0xcb2e61:_0x44421d=>Boolean(_0x44421d['attribs'][_0x5e86da]);return Gc(_0x3a87d7=>fc(_0x3a87d7)&&_0x43b80f(_0x3a87d7),_0x4176ce);}function Yc(_0x1ebe60,_0x13dd36,_0x229a24){const _0x166a31=null!==_0x13dd36?_0x3acc5e=>_0x3acc5e['attribs'][_0x1ebe60]===_0x13dd36:_0x1178a9=>Boolean(_0x1178a9['attribs'][_0x1ebe60]);return Xc(_0x8006b8=>fc(_0x8006b8)&&_0x166a31(_0x8006b8),_0x229a24);}function Kc(_0xaea9e7){return Xc(_0x2ccaaa=>fc(_0x2ccaaa)&&function(_0x1282ae){const _0x558f08=_0x1282ae['toLowerCase']();return'script'===_0x558f08||'style'===_0x558f08||_0x558f08['includes']('-');}(_0x2ccaaa['name']),_0xaea9e7);}const Jc=['comment-start','comment-end','suggestion-start','suggestion-end'];function tl(_0x14bc4c){return fc(_0x14bc4c)&&Jc['includes'](_0x14bc4c['name']['toLowerCase']());}function el(_0x58d407){return function(_0x2c9c02,_0x46fd2c,_0x26f014,_0x12787c){const _0x270531=[],_0x22645b=[Array['isArray'](_0x46fd2c)?_0x46fd2c:[_0x46fd2c]],_0x1646c1=[0x0];for(;;){if(_0x1646c1[0x0]>=_0x22645b[0x0]['length']){if(0x1===_0x1646c1['length'])return _0x270531;_0x22645b['shift'](),_0x1646c1['shift']();continue;}const _0xf8d66c=_0x22645b[0x0][_0x1646c1[0x0]++];if(_0x2c9c02(_0xf8d66c)&&(_0x270531['push'](_0xf8d66c),--_0x12787c<=0x0))return _0x270531;_0x26f014&&Oc(_0xf8d66c)&&_0xf8d66c['children']['length']>0x0&&(_0x1646c1['unshift'](0x0),_0x22645b['unshift'](_0xf8d66c['children']));}}(_0x385258=>pc(_0x385258),_0x58d407,!0x0,0x1/0x0);}function il(_0x294f53,_0x4686b9){return _0x294f53&&fc(_0x294f53)?_0x294f53['attribs'][_0x4686b9]:null;}function sl(_0xcf1115,_0x206664,_0x47c20f){fc(_0xcf1115)&&(null===_0x47c20f?delete _0xcf1115['attribs'][_0x206664]:_0xcf1115['attribs'][_0x206664]=_0x47c20f);}function nl(_0x58c107,_0x1fdc2a,_0x590b80){const _0x9cb236=_0x1fdc2a['cloneNode'](!0x0);'beforebegin'===_0x590b80?Zc(_0x58c107,_0x9cb236):'afterbegin'===_0x590b80?Fc(_0x58c107,_0x9cb236):'beforeend'===_0x590b80?Bc(_0x58c107,_0x9cb236):'afterend'===_0x590b80&&Hc(_0x58c107,_0x9cb236);}function rl(_0x3df9a5){const _0x1b3115=[];let _0x2cd51b=_0x3df9a5;for(;_0x2cd51b;)_0x2cd51b=jc(_0x2cd51b),_0x2cd51b&&_0x1b3115['push'](_0x2cd51b);return _0x1b3115;}function ol(_0x2fbfb2){return _0x2fbfb2['replace'](/^\s+/gm,'')['replace'](/\s+$/gm,'')['replace'](/\n*/g,'')['replace'](/\s+/g,'\x20')['replace'](/>\s*</g,'><');}function al(_0x51e416){let _0x50bddd=0x0;for(;_0x51e416['parentNode'];)_0x51e416=_0x51e416['parentNode'],_0x50bddd++;return _0x50bddd;}function cl(_0x170bff){const _0x3c8166=[];let _0x277d3d=_0x170bff['nextSibling'];for(;_0x277d3d;)_0x3c8166['push'](_0x277d3d),_0x277d3d=_0x277d3d['nextSibling'];_0x3c8166['forEach'](_0x33d280=>{Uc(_0x33d280);});}function ll(_0x68bb04,_0x246e7b){return!!_0x68bb04['model']['document']['getRoot'](_0x246e7b)&&!_0x11c1de(_0x68bb04,_0x246e7b);}function hl(_0x49d4d4,_0x30c997){return'<p\x20data-id=\x22'+_0x30c997+'\x22>'+_0x49d4d4+'</p>';}function ul(_0x500f6b){return'p'===_0x500f6b['name']['toLowerCase']()&&Boolean(_0x500f6b['attribs']['data-id']);}function dl(_0x2c0b45){const _0x156dd5=qc(_0x2c0b45)['children']['filter'](fc);return 0x1===_0x156dd5['length']&&ul(_0x156dd5[0x0])?_0x156dd5[0x0]['children']['map'](_0x15bfd3=>Wc(_0x15bfd3))['join'](''):_0x2c0b45;}function fl(_0x33d279,_0x385895){const _0x25eb9f=function(_0x53c6d5){const _0x42bc83=_0x53c6d5['children']['filter'](fc);return 0x1===_0x42bc83['length']&&ul(_0x42bc83[0x0])?_0x42bc83[0x0]['children']:_0x53c6d5['children'];}(_0x385895),{blockElements:_0x50be51}=_0x33d279['editing']['view']['domConverter'],_0x4a6c7e=_0xda02b0=>_0xda02b0['some'](_0x354f73=>fc(_0x354f73)&&('p'!==_0x354f73['name']['toLowerCase']()&&_0x50be51['includes'](_0x354f73['name']['toLowerCase']())||_0x4a6c7e(_0x354f73['children'])));if(_0x4a6c7e(_0x25eb9f))return!0x1;const _0x22fdc4=_0x25eb9f['map'](_0x3f8474=>Wc(_0x3f8474))['join'](''),_0x54a07a=_0x33d279['data']['parse'](_0x22fdc4,'$root'),{schema:_0x38c4a9}=_0x33d279['model'];let _0x590bd7=0x0;for(const {item:_0x4200cc}of _0x33d279['model']['createRangeIn'](_0x54a07a))if(_0x4200cc['is']('element')&&_0x38c4a9['isBlock'](_0x4200cc)&&(++_0x590bd7>0x1||'paragraph'!==_0x4200cc['name']))return!0x1;return!0x0;}function ml(_0x4ceaf2,_0x1e45b6){const _0x69923=_0x1e45b6['filter'](_0x5c8ee8=>'new'!=_0x5c8ee8['type'])['map'](_0x40eeca=>zc('data-id',_0x40eeca['id'],_0x4ceaf2))['filter'](_0x541106=>null!==_0x541106),_0x2754ed=_0x1e45b6['filter'](_0x2fd19b=>'removed'!=_0x2fd19b['type'])['map'](_0x4a986f=>_0x4a986f['node']['cloneNode'](!0x0));let _0x422981=null;if(_0x69923['length']){_0x422981=_0x69923[0x0]['previousSibling'];for(let _0x2982d5=0x0;_0x2982d5<_0x69923['length'];_0x2982d5++)Uc(_0x69923[_0x2982d5]);}if(_0x2754ed['length']){_0x422981||(_0x1e45b6[0x0]['anchorId']?_0x422981=zc('data-id',_0x1e45b6[0x0]['anchorId'],_0x4ceaf2):(_0x422981=_0x2754ed['shift'](),Fc(_0x4ceaf2,_0x422981)));for(let _0x12e35d=0x0;_0x12e35d<_0x2754ed['length'];_0x12e35d++)Hc(_0x422981,_0x2754ed[_0x12e35d]),_0x422981=_0x2754ed[_0x12e35d];}}function pl(_0x528338,_0x4e6585){const _0x45c89e=new Set();for(const _0xeb0195 of _0x528338){if(!_0xeb0195['editor']||'destroyed'===_0xeb0195['editor']['state']||!ll(_0xeb0195['editor'],_0xeb0195['rootName']))continue;const _0x4e195c=_0x4e6585['get'](_0xeb0195['documentId']);let _0x432618;_0x4e195c?(_0x432618=_0x4e195c['cloneNode'](!0x0),ml(_0x432618,_0xeb0195['changes'])):_0x432618=new uc(_0xeb0195['changes']['filter'](_0x2cad55=>'removed'!=_0x2cad55['type'])['map'](_0x31a417=>_0x31a417['node']['cloneNode'](!0x0))),fl(_0xeb0195['editor'],_0x432618)||_0x45c89e['add'](_0xeb0195['index']);}return _0x45c89e;}function gl(_0x3d67e3,_0x1d5347,_0x5cd19d,_0x20de29){return ll(_0x3d67e3,_0x1d5347)?fl(_0x3d67e3,qc(_0x20de29))?{'before':dl(_0x5cd19d),'after':dl(_0x20de29)}:null:{'before':_0x5cd19d,'after':_0x20de29};}function Ol(_0x2d8576,_0x352de7){return vo(_0x2d8576,_0x352de7);}function wl(_0x3a09e5,_0x4d1221){return _0x3a09e5['map'](_0x5b2fe7=>null!==_0x5b2fe7&&'object'==typeof _0x5b2fe7?Ol(_0x5b2fe7,_0x4d1221):_0x5b2fe7);}const bl=[['BlockQuoteEditing','blockQuote'],['BoldEditing','bold'],['BookmarkEditing','bookmark'],['CodeEditing','code'],['HorizontalLineEditing','horizontalLine'],['HtmlEmbedEditing','htmlEmbed'],['ItalicEditing','italic'],['MathType','math'],['PageBreakEditing','pageBreak'],['Paragraph','paragraph'],['StandardEditingModeEditing','restrictedEditing'],['StrikethroughEditing','strikethrough'],['SubscriptEditing','subscript'],['SuperscriptEditing','superscript'],['TableOfContentsEditing','tableOfContents'],['Title','title'],['TodoListEditing','todoList'],['UnderlineEditing','underline']],yl='ai-selection',vl=['br'];var _l=class extends _0x4dd342{constructor(_0x56764b){super(_0x56764b),this['context']['config']['define']('ai.models.showModelSelector',!0x0);}_outputDataProcessor;_fakeSelections=[];_sessionIdByEditor=new WeakMap();_editorsToConfigs=new WeakMap();_lastContentFocusedEditor;static get['pluginName'](){return'AIEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}getLastContentFocusedEditor(){return this['_lastContentFocusedEditor'];}getSessionId(_0x31df17){let _0x5e8a36=this['_sessionIdByEditor']['get'](_0x31df17);return _0x5e8a36||(_0x5e8a36=_0x31df17['plugins']['has']('RealTimeCollaborationClient')&&_0x31df17['plugins']['get']('RealTimeCollaborationClient')['sessionId']||_0xea66bb(),this['_sessionIdByEditor']['set'](_0x31df17,_0x5e8a36)),_0x5e8a36;}async getDocumentData(_0x2c0696){const _0x3af6c1=ma(this['context']),_0x2f4430=[],_0x1f3bdf=new Set();for(const _0x39e23c of _0x3af6c1){if(_0x2c0696&&!_0x2c0696['has'](_0x39e23c['config']['get']('collaboration.channelId')))continue;const _0x4eeb6e=_0x39e23c['config']['get']('roots')||{},_0xd2e431=this['_getEditorSelectionSignature'](_0x39e23c),_0x306554=_0x39e23c['config']['get']('collaboration.channelId'),_0x12c48b=this['getSessionId'](_0x39e23c);for(const _0x5673a0 of _0x39e23c['model']['document']['getRoots']()){if('$graveyard'===_0x5673a0['rootName'])continue;const _0x45c2c2=await this['_getDocumentDataForEditorRoot'](_0x39e23c,_0x5673a0,_0x1f3bdf),_0x2fb14c=_0x4eeb6e[_0x5673a0['rootName']],_0x57fdec=_0x5673a0['getAttribute']('$description')??_0x2fb14c?.['description'];let _0x40248f=_0x5673a0['getAttribute']('$title')??_0x2fb14c?.['title'];_0x40248f||(_0x40248f=_0x5673a0['getAttribute']('$rootEditableOptions')?.['label']??_0x2fb14c?.['label']),_0x40248f||(_0x53dc7a('ai-document-root-missing-title',{'editor':_0x39e23c,'rootName':_0x5673a0['rootName']}),_0x40248f=_0x5673a0['rootName']),_0x2f4430['push']({'editor':_0x39e23c,'rootName':_0x5673a0['rootName'],'content':_0x45c2c2['content'],'version':_0x45c2c2['version'],'sessionId':_0x12c48b,'channelId':_0x306554,'selections':_0x45c2c2['selections'],'selectionSignature':_0xd2e431,'editorConfig':this['_getEditorConfig'](_0x39e23c),'name':_0x40248f,'description':_0x57fdec});}}return _0x2f4430;}getEditorsVersions(){const _0x316c2c=ma(this['context']),_0x25a6ee=new Map();for(const _0x490c69 of _0x316c2c){const _0x471623=_0x490c69['config']['get']('collaboration.channelId');_0x25a6ee['set'](_0x471623,_0x490c69['model']['document']['version']);}return _0x25a6ee;}getEditorsSelections(){const _0x178918=ma(this['context']),_0x5ebac8=new Map();for(const _0xd30c4c of _0x178918){const _0x5310b2=_0xd30c4c['config']['get']('collaboration.channelId'),_0x394274=this['_getEditorSelectionSignature'](_0xd30c4c);_0x5ebac8['set'](_0x5310b2,_0x394274);}return _0x5ebac8;}_getEditorSelectionSignature(_0x45a6d9){return this['_getMarkersInDocumentOrder'](_0x45a6d9)['map'](_0x363b78=>{const _0x3c63f1=_0x363b78['getRange']();return _0x3c63f1['root']['rootName']+':'+_0x3c63f1['start']['path']['join']('.')+'-'+_0x3c63f1['end']['path']['join']('.');})['join']('|');}async _getDocumentDataForEditorRoot(_0xdef346,_0x25c1e9,_0x31c917){const _0x218f61=_0xdef346['data']['toView'](_0x25c1e9,{'convertAiChatSelectionMarker':!0x0}),_0x1540ed=new _0x1e8b09(_0xdef346['editing']['view']['document']);this['_setDataIdsOnChildren'](_0x218f61,_0x1540ed,_0x31c917);let _0xefaf02=await this['_getDocumentDataStringFromView'](_0x218f61,_0xdef346);ll(_0xdef346,_0x25c1e9['rootName'])&&(_0xefaf02=hl(_0xefaf02,this['_nextDataId'](_0x31c917)));const _0x16cb95=this['_getMarkersInDocumentOrder'](_0xdef346,_0x25c1e9),_0x49389b=[];for(const _0x2bde2d of _0x16cb95){const _0x3a8b8f='<'+_0x2bde2d['name']+':start></'+_0x2bde2d['name']+':start>',_0x1a3430=_0xefaf02['indexOf'](_0x3a8b8f);_0xefaf02=_0xefaf02['substring'](0x0,_0x1a3430)+_0xefaf02['substring'](_0x1a3430+_0x3a8b8f['length']);const _0x30bbb2='<'+_0x2bde2d['name']+':end></'+_0x2bde2d['name']+':end>',_0x548772=_0xefaf02['indexOf'](_0x30bbb2);_0xefaf02=_0xefaf02['substring'](0x0,_0x548772)+_0xefaf02['substring'](_0x548772+_0x30bbb2['length']),_0x49389b['push']({'markerName':_0x2bde2d['name'],'start':_0x1a3430,'end':_0x548772,'htmlFragment':_0xefaf02['substring'](_0x1a3430,_0x548772)});}return{'content':_0xefaf02,'version':_0xdef346['model']['document']['version'],'selections':_0x49389b};}afterInit(){this['context']instanceof _0x95124b?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0xfcdcad,_0x4a96ad)=>{_0x4a96ad['on']('ready',()=>{this['_integrateEditor'](_0x4a96ad);});});}_setOutputDataProcessor(_0x20f666){this['_outputDataProcessor']=_0x20f666;}async _getDocumentDataStringFromView(_0x458d9a,_0x2cc75c){let _0x57bca6;if(this['_outputDataProcessor']){const _0xf1c6d9=_0x2cc75c['data']['processor']['domConverter']['viewToDom'](_0x458d9a),_0x11f10a=await this['_outputDataProcessor'](_0xf1c6d9);_0x57bca6=_0x2cc75c['data']['processor']['htmlWriter']['getHtml'](_0x11f10a);}else _0x57bca6=_0x2cc75c['data']['processor']['toData'](_0x458d9a);return _0x57bca6;}_integrateEditor(_0x433782){if(!_0x433782['config']['get']('collaboration.channelId'))throw new _0x4242d4('ai-missing-channel-id',_0x433782);_0x433782['ui']['focusTracker']['on']('change:isFocused',(_0x33879e,_0x17bccf,_0x3d32c4)=>{_0x3d32c4&&(this['_lastContentFocusedEditor']=_0x433782);}),_0x433782['on']('destroy',()=>{this['_lastContentFocusedEditor']===_0x433782&&(this['_lastContentFocusedEditor']=void 0x0);}),_0x433782['conversion']['for']('editingDowncast')['markerToHighlight']({'model':yl,'view':({markerName:_0x337f58})=>({'classes':['ck-ai-assistant-ui_theme','ck-fake-ai-selection','ck-fake-ai-selection-'+_0x337f58['split'](':')[0x1]],'priority':0xc})}),_0x433782['conversion']['for']('dataDowncast')['markerToElement']({'model':yl+':context','view':(_0x5abd7b,{writer:_0x3d0817,options:_0x2b3dfb})=>_0x2b3dfb['convertAiChatSelectionMarker']?_0x3d0817['createUIElement'](_0x5abd7b['markerName']+':'+(_0x5abd7b['isOpening']?'start':'end')):null});}showFakeVisualSelection(_0x17b587){const _0x3c9e50=this['_fakeSelections'][0x0]||null;this['_addFakeSelection'](_0x17b587);const _0x551f59=this['_fakeSelections'][0x0]||null;this['_refreshFakeSelection'](_0x3c9e50,_0x551f59);}hideFakeVisualSelection(_0x10313a){const _0xe63d64=this['_fakeSelections'][0x0]||null;this['_removeFakeSelectionById'](_0x10313a);const _0x66b4f=this['_fakeSelections'][0x0]||null;this['_refreshFakeSelection'](_0xe63d64,_0x66b4f);}async modelToDataWithIds(_0x318abe,_0x4a2728,_0x465d72){const _0xe68303=_0x4a2728['data']['toView'](_0x318abe),_0x58496f=new _0x1e8b09(_0x4a2728['editing']['view']['document']),_0x3a3cb4=new Set();this['_setDataIdsOnChildren'](_0xe68303,_0x58496f,_0x3a3cb4);const _0x10d1c9=await this['_getDocumentDataStringFromView'](_0xe68303,_0x4a2728);return _0x465d72&&ll(_0x4a2728,_0x465d72)?hl(_0x10d1c9,this['_nextDataId'](_0x3a3cb4)):_0x10d1c9;}_setDataIdsOnChildren(_0x4c97b1,_0x71324b,_0x279bd5=new Set()){let _0x50880f=!0x1;for(const _0x3bbf80 of _0x4c97b1['getChildren']()){if(!_0x3bbf80['is']('view:element')||vl['includes'](_0x3bbf80['name']))continue;const _0x552813=_0x3bbf80['is']('view:containerElement'),_0x263e24=_0x3bbf80['is']('view:emptyElement'),_0x5af975=_0x3bbf80['is']('view:rawElement'),_0x531318=this['_setDataIdsOnChildren'](_0x3bbf80,_0x71324b,_0x279bd5);_0x3bbf80['hasAttribute']('data-id')?(_0x50880f=!0x0,_0x279bd5['add'](_0x3bbf80['getAttribute']('data-id'))):(_0x552813||_0x263e24||_0x5af975||_0x531318)&&(_0x71324b['setAttribute']('data-id',this['_nextDataId'](_0x279bd5),_0x3bbf80),_0x50880f=!0x0);}return _0x50880f;}_nextDataId(_0x2b28a4){let _0xbbe26b;do{_0xbbe26b='';for(let _0x5b501a=0x0;_0x5b501a<0x4;_0x5b501a++)_0xbbe26b+=String['fromCharCode'](0x61+Math['floor'](0x1a*Math['random']()));}while(_0x2b28a4['has'](_0xbbe26b));return _0x2b28a4['add'](_0xbbe26b),_0xbbe26b;}getSelectionText(_0x7c66cb){const _0x124afd=(_0x7c66cb?_0x7c66cb['model']:pa(this['context'])['model'])['document']['selection'],_0x2a98c7=[],_0x1c50a2=Array['from'](_0x124afd['getRanges']());_0x1c50a2['sort']((_0x5de9b9,_0x488c62)=>_0x5de9b9['start']['isBefore'](_0x488c62['start'])?-0x1:0x1);for(const _0x2259e6 of _0x1c50a2)for(const _0xa26a46 of _0x2259e6['getItems']())_0xa26a46['is']('$textProxy')?_0x2a98c7['push'](_0xa26a46['data']):_0xa26a46['is']('element')&&_0x2a98c7['length']>0x0&&'\x20'!==_0x2a98c7[_0x2a98c7['length']-0x1]&&_0x2a98c7['push']('\x20');return _0x2a98c7['length']?'\x22'+_0x2a98c7['join']('')['trim']()+'\x22':ca(this['context']['locale'],'AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL');}_removeFakeSelectionById(_0x154d54){for(let _0x2403c3=0x0;_0x2403c3<this['_fakeSelections']['length'];_0x2403c3++)if(this['_fakeSelections'][_0x2403c3]['id']==_0x154d54)return void this['_fakeSelections']['splice'](_0x2403c3,0x1);}_addFakeSelection(_0x2fa906){this['_removeFakeSelectionById'](_0x2fa906['id']),_0x5e09c0(this['_fakeSelections'],_0x2fa906);}_refreshFakeSelection(_0x9a02c2,_0x2492ce){if(_0x9a02c2==_0x2492ce)return;const _0x1dc489=_0x9a02c2?_0x9a02c2['editor']:null,_0x3fde97=_0x2492ce?_0x2492ce['editor']:null,_0x88fe6=(_0x2b3d3f,_0x23d8df)=>{const _0x102f24=_0x23d8df['model']['markers']['getMarkersGroup'](yl);for(const _0x508a40 of _0x102f24)_0x2b3d3f['removeMarker'](_0x508a40);},_0x5285c0=(_0xa5b71c,_0x4cd669,_0x5cd424)=>{const _0x2f12b1=_0x4cd669['model'];for(let _0xe0e191=0x0;_0xe0e191<_0x5cd424['ranges']['length'];_0xe0e191++){let _0x21f426=_0x5cd424['ranges'][_0xe0e191];const _0x4f3878=yl+':'+_0x5cd424['id']+':'+_0xe0e191;if(_0x21f426['start']['isAtEnd']){const _0x569ace=_0x21f426['start']['getLastMatchingPosition'](({item:_0x4fbcc3})=>!_0x2f12b1['schema']['isContent'](_0x4fbcc3),{'boundaries':_0x21f426});_0x21f426=_0xa5b71c['createRange'](_0x569ace,_0x21f426['end']);}_0xa5b71c['addMarker'](_0x4f3878,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x21f426});}};_0x1dc489&&_0x3fde97&&_0x1dc489===_0x3fde97&&_0x2492ce?_0x1dc489['model']['change'](_0x2b3566=>{_0x88fe6(_0x2b3566,_0x1dc489),_0x5285c0(_0x2b3566,_0x3fde97,_0x2492ce);}):(_0x1dc489&&_0x1dc489['model']['change'](_0x56cd0b=>_0x88fe6(_0x56cd0b,_0x1dc489)),_0x3fde97&&_0x2492ce&&_0x3fde97['model']['change'](_0x15ed1b=>_0x5285c0(_0x15ed1b,_0x3fde97,_0x2492ce)));}_getMarkersInDocumentOrder(_0x320ba3,_0x226d5b){const _0x58f47d=Array['from'](_0x320ba3['model']['markers']['getMarkersGroup'](yl+':context'));return(_0x226d5b?_0x58f47d['filter'](_0x5241c0=>{const _0x1a2652=_0x5241c0['getRange']();return _0x1a2652&&_0x1a2652['root']['rootName']===_0x226d5b['rootName'];}):_0x58f47d)['sort']((_0x3fb1d2,_0xf500b7)=>_0x3fb1d2['getStart']()['isBefore'](_0xf500b7['getStart']())?-0x1:_0x3fb1d2['getStart']()['isAfter'](_0xf500b7['getStart']())?0x1:0x0);}_getEditorConfig(_0x567faa){let _0x3bf543=this['_editorsToConfigs']['get'](_0x567faa);return _0x3bf543||(_0x3bf543=function(_0xcca1c2){const _0x5c1363={};if(_0xcca1c2['plugins']['has']('AlignmentEditing')&&(_0x5c1363['alignment']=_0xcca1c2['config']['get']('alignment')),_0xcca1c2['plugins']['has']('CodeBlockEditing')&&(_0x5c1363['codeBlock']=_0xcca1c2['config']['get']('codeBlock')),_0xcca1c2['plugins']['has']('FontBackgroundColorEditing')&&(_0x5c1363['fontBackgroundColor']=Ol(_0xcca1c2['config']['get']('fontBackgroundColor'),['documentColors','columns','colorPicker'])),_0xcca1c2['plugins']['has']('FontColorEditing')&&(_0x5c1363['fontColor']=Ol(_0xcca1c2['config']['get']('fontColor'),['documentColors','columns','colorPicker'])),_0xcca1c2['plugins']['has']('FontFamilyEditing')&&(_0x5c1363['fontFamily']=_0xcca1c2['config']['get']('fontFamily'),_0x5c1363['fontFamily']&&_0x5c1363['fontFamily']['options']&&(_0x5c1363['fontFamily']['options']=wl(_0x5c1363['fontFamily']['options'],['model','upcastAlso']))),_0xcca1c2['plugins']['has']('FontSizeEditing')&&(_0x5c1363['fontSize']=_0xcca1c2['config']['get']('fontSize'),_0x5c1363['fontSize']&&_0x5c1363['fontSize']['options']&&(_0x5c1363['fontSize']['options']=wl(_0x5c1363['fontSize']['options'],['upcastAlso']))),_0xcca1c2['plugins']['has']('FootnotesEditing')){const _0x22da46=_0xcca1c2['config']['get']('footnotes')??{};_0x22da46['footnotesProperties']&&'object'==typeof _0x22da46['footnotesProperties']&&(_0x22da46['footnotesProperties']=Ol(_0x22da46['footnotesProperties'],['toolbar','listStyles'])),_0x5c1363['footnotes']=_0x22da46;}if(_0xcca1c2['plugins']['has']('HeadingEditing')&&(_0x5c1363['heading']=_0xcca1c2['config']['get']('heading'),_0x5c1363['heading']&&_0x5c1363['heading']['options']&&(_0x5c1363['heading']['options']=wl(_0x5c1363['heading']['options'],['model','icon','class','converterPriority','upcastAlso']))),_0xcca1c2['plugins']['has']('HighlightEditing')&&(_0x5c1363['highlight']=_0xcca1c2['config']['get']('highlight'),_0x5c1363['highlight']&&_0x5c1363['highlight']['options']&&(_0x5c1363['highlight']['options']=wl(_0x5c1363['highlight']['options'],['model','color']))),_0xcca1c2['plugins']['has']('ImageBlockEditing')||_0xcca1c2['plugins']['has']('ImageInlineEditing')){const _0x1feeff=Ol(_0xcca1c2['config']['get']('image'),['toolbar','upload','insert','resizeOptions']);_0xcca1c2['plugins']['has']('ImageResizeEditing')||delete _0x1feeff['resizeUnit'],_0xcca1c2['plugins']['has']('ImageStyleEditing')?_0x1feeff['styles']?.['options']&&(_0x1feeff['styles']['options']=wl(_0x1feeff['styles']['options'],['icon'])):delete _0x1feeff['styles'],_0x5c1363['image']=_0x1feeff;}if(_0xcca1c2['plugins']['has']('IndentBlock')&&(_0x5c1363['indentBlock']=_0xcca1c2['config']['get']('indentBlock')),_0xcca1c2['plugins']['has']('LineHeightEditing')&&(_0x5c1363['lineHeight']=_0xcca1c2['config']['get']('lineHeight'),_0x5c1363['lineHeight']&&(delete _0x5c1363['lineHeight']['supportAllValues'],_0x5c1363['lineHeight']['options']&&(_0x5c1363['lineHeight']['options']=wl(_0x5c1363['lineHeight']['options'],['model'])))),_0xcca1c2['plugins']['has']('LinkEditing')&&(_0x5c1363['link']=Ol(_0xcca1c2['config']['get']('link'),['toolbar'])),_0xcca1c2['plugins']['has']('ListEditing')){const _0xadf77e=_0xcca1c2['config']['get']('list')??{};delete _0xadf77e['enableListItemMarkerFormatting'],_0xcca1c2['plugins']['has']('ListPropertiesEditing')?_0xadf77e['properties']&&_0xadf77e['properties']['styles']&&'object'==typeof _0xadf77e['properties']['styles']&&(_0xadf77e['properties']['styles']=Ol(_0xadf77e['properties']['styles'],['listStyleTypes'])):delete _0xadf77e['properties'],_0x5c1363['list']=_0xadf77e;}if(_0xcca1c2['plugins']['has']('MediaEmbedEditing')&&(_0x5c1363['mediaEmbed']=_0xcca1c2['config']['get']('mediaEmbed'),_0x5c1363['mediaEmbed']&&(delete _0x5c1363['mediaEmbed']['toolbar'],_0xcca1c2['plugins']['has']('MediaEmbedResizeEditing')?_0x5c1363['mediaEmbed']['resizeOptions']&&(_0x5c1363['mediaEmbed']['resizeOptions']=_0x5c1363['mediaEmbed']['resizeOptions']['map'](_0x50a936=>Ol(_0x50a936,['icon','label']))):delete _0x5c1363['mediaEmbed']['resizeOptions'],_0xcca1c2['plugins']['has']('MediaEmbedStyleEditing')?_0x5c1363['mediaEmbed']['styles']&&_0x5c1363['mediaEmbed']['styles']['options']&&(_0x5c1363['mediaEmbed']['styles']['options']=wl(_0x5c1363['mediaEmbed']['styles']['options'],['icon','title'])):delete _0x5c1363['mediaEmbed']['styles'])),_0xcca1c2['plugins']['has']('MultiLevelListEditing')&&(_0x5c1363['listMultiLevel']=_0xcca1c2['config']['get']('listMultiLevel')??{}),_0xcca1c2['plugins']['has']('MentionEditing')){const _0x445937=Ol(_0xcca1c2['config']['get']('mention'),['commitKeys','dropdownLimit']);_0x445937['feeds']&&(_0x445937['feeds']=_0x445937['feeds']['map'](_0x43ef32=>Ol(_0x43ef32,['minimumCharacters','itemRenderer','dropdownLimit']))),_0x5c1363['mention']=_0x445937;}if(_0xcca1c2['plugins']['has']('MergeFieldsEditing')){const _0x38d66e=Ol(_0xcca1c2['config']['get']('mergeFields'),['previewModes','initialPreviewMode','previewHtmlValues','sanitizeHtml']);Array['isArray'](_0x38d66e['definitions'])&&(_0x38d66e['definitions']=_0x38d66e['definitions']['map'](_0x22dd1d=>'groupId'in _0x22dd1d?(Array['isArray'](_0x22dd1d['definitions'])&&(_0x22dd1d['definitions']=_0x22dd1d['definitions']['map'](_0x413170=>Ol(_0x413170,['defaultValue']))),_0x22dd1d):Ol(_0x22dd1d,['defaultValue']))),_0x5c1363['mergeFields']=_0x38d66e;}if(_0xcca1c2['plugins']['has']('StyleEditing')&&(_0x5c1363['style']=_0xcca1c2['config']['get']('style')),_0xcca1c2['plugins']['has']('TableEditing')){const _0x494194=Ol(_0xcca1c2['config']['get']('table'),['contentToolbar','tableToolbar','showHiddenBorders']);_0xcca1c2['plugins']['has']('TablePropertiesEditing')?_0x494194['tableProperties']&&'object'==typeof _0x494194['tableProperties']&&(_0x494194['tableProperties']=Ol(_0x494194['tableProperties'],['colorPicker','borderColors','backgroundColors'])):delete _0x494194['tableProperties'],_0xcca1c2['plugins']['has']('TableCellPropertiesEditing')?_0x494194['tableCellProperties']&&'object'==typeof _0x494194['tableCellProperties']&&(_0x494194['tableCellProperties']=Ol(_0x494194['tableCellProperties'],['colorPicker','borderColors','backgroundColors'])):delete _0x494194['tableCellProperties'],_0xcca1c2['plugins']['has']('TableLayoutEditing')?_0x494194['tableLayout']||(_0x494194['tableLayout']={}):delete _0x494194['tableLayout'],_0xcca1c2['plugins']['has']('TableCaptionEditing')?_0x494194['tableCaption']||(_0x494194['tableCaption']={}):delete _0x494194['tableCaption'],_0x5c1363['table']=_0x494194;}_0xcca1c2['plugins']['has']('TextPartLanguageEditing')&&(_0x5c1363['textPartLanguage']=_0xcca1c2['config']['get']('language.textPartLanguage'));for(const [_0x55149c,_0x4c8a6e]of bl)_0xcca1c2['plugins']['has'](_0x55149c)&&(_0x5c1363[_0x4c8a6e]={});return _0x5c1363;}(_0x567faa),this['_editorsToConfigs']['set'](_0x567faa,_0x3bf543)),_0x3bf543;}},El=class extends _0x4dd342{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}setPermissions(_0x28519b,_0x10f63d){let _0x3068c5;if(_0x10f63d||(_0x10f63d=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x10f63d?_0x3068c5=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x3068c5=this['context']['editors']['find'](_0x50c0ba=>_0x50c0ba['config']['get']('collaboration.channelId')==_0x10f63d)),!_0x3068c5)throw new _0x4242d4('permissions-set-permissions-invalid-channel-id',null);const _0x7649cb=_0x3068c5['plugins'],_0x242b81=_0x7649cb['has']('CommentsRepository')?_0x7649cb['get']('CommentsRepository'):void 0x0,_0x2e0e2d=_0x7649cb['has']('CommentsOnly')&&_0x7649cb['get']('CommentsOnly'),_0x581b33=_0x28519b['includes']('document:write'),_0x2449e5=_0x28519b['includes']('comment:modify_all'),_0x227704=_0x28519b['includes']('comment:admin'),_0x3ecbc3=_0x28519b['includes']('comment:write'),_0x237764=_0x3ecbc3||_0x227704,_0x4094e9=_0x237764||_0x2449e5,_0x5e07cb=_0x581b33||_0x237764;if(_0x2e0e2d&&(_0x2e0e2d['isEnabled']=!_0x581b33&&_0x4094e9),_0x3068c5 instanceof _0x95124b&&(_0x581b33||_0x4094e9&&_0x242b81?_0x3068c5['disableReadOnlyMode']('no-permissions'):_0x3068c5['enableReadOnlyMode']('no-permissions')),_0x242b81){_0x242b81['setPermissions']({'admin':_0x227704,'modifyAll':_0x2449e5,'write':_0x3ecbc3,'resolve':_0x5e07cb},_0x10f63d);const _0xaf8a86=_0x3068c5 instanceof _0x95124b&&_0x3068c5['commands']['get']('addCommentThread');_0xaf8a86&&(_0x237764?_0xaf8a86['clearForceDisabled']('noPermissions'):_0xaf8a86['forceDisabled']('noPermissions'));}}};function Tl(_0x3bc095,_0x43568a){const t=_0x3bc095['t'];switch(_0x43568a){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');case'Today':return t('Today');case'Yesterday':return t('Yesterday');case'Last':return t('Last');case'Monday':return t('Monday');case'Tuesday':return t('Tuesday');case'Wednesday':return t('Wednesday');case'Thursday':return t('Thursday');case'Friday':return t('Friday');case'Saturday':return t('Saturday');case'Sunday':return t('Sunday');default:return'';}}var Al=class extends _0x4dd342{['users'];_lastColor;['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[El];}constructor(_0x334149){super(_0x334149),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x2186b6(),this['_locale']=_0x334149['locale'],this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}init(){this['_addAnonymousUser']();}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser']({id:_0x3f0d05,name:_0x1420af,..._0x44089a}){if(!_0x3f0d05||'string'!=typeof _0x3f0d05)throw new _0x4242d4('users-add-invalid-id');if(this['users']['has'](_0x3f0d05))throw new _0x4242d4('users-add-duplicated-id',null,{'id':_0x3f0d05});const _0x5cb7d=this['context']['config']['get']('users.getInitialsCallback'),_0x37d1b0={..._0x44089a,'id':_0x3f0d05,'name':Il(this['_locale'],_0x1420af),'color':this['_getNextColor']()};_0x37d1b0['name']=Il(this['_locale'],_0x37d1b0['name']);const _0x4c4d42=new Sl(_0x37d1b0,_0x5cb7d);return this['users']['add'](_0x4c4d42),_0x4c4d42;}getUser(_0x4e4a7c){return this['users']['get'](_0x4e4a7c);}['useAnonymousUser'](){const _0xa485e9=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0xa485e9);}['defineMe'](_0xc33e96){if(this['_myId'])throw new _0x4242d4('users-me-already-defined',null);const _0x18e00f=this['getUser'](_0xc33e96);if(!_0x18e00f)throw new _0x4242d4('users-me-missing-user',null);this['_myId']=_0xc33e96,_0x18e00f['_isMe']=!0x0;}getOperationAuthor(){return this['me'];}_getNextColor(){const _0x39b7ba=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x39b7ba&&(this['_lastColor']=0x0),new kl(this['_lastColor']++);}['_addAnonymousUser'](){const _0x5a6278=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x5a6278,'name':Tl(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}},Sl=class{['id'];['color'];['name'];initials;avatar;['_isMe'];['_isAnonymous'];constructor(_0x5764d7,_0x1f3daa){this['id']=_0x5764d7['id'],this['color']=_0x5764d7['color'],this['name']=_0x5764d7['name'],this['initials']=_0x1f3daa?_0x1f3daa(this['name']):this['_computeInitials'](),this['avatar']=_0x5764d7['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}_computeInitials(){const _0x21b5d4=this['name']['split']('\x20')['filter'](_0x4922af=>/^[\p{Letter}]/u['test'](_0x4922af));return 0x1===_0x21b5d4['length']?this['_getInitial'](_0x21b5d4[0x0]):0x0===_0x21b5d4['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x21b5d4[0x0])+this['_getInitial'](_0x21b5d4[_0x21b5d4['length']-0x1]);}_getInitial(_0x48f06d){return String['fromCodePoint'](_0x48f06d['codePointAt'](0x0))['toUpperCase']();}};function Il(_0x402233,_0x2115ef=''){return''==(_0x2115ef=_0x2115ef['trim']())?Tl(_0x402233,'Anonymous'):_0x2115ef;}var kl=class{['_id'];constructor(_0x3393c0){this['_id']=_0x3393c0;}get['id'](){return this['_id'];}getBackgroundColorClass(){return'ck-user__bg-color--'+this['id'];}getSelectionClass(){return'ck-user__selection--'+this['id'];}getMarkerClass(){return'ck-user__marker--'+this['id'];}getColorVariable(){return'var(--ck-user-colors--'+this['id']+',\x20var(--ck-user-colors--0))';}getColorAlphaVariable(){return'var(--ck-user-colors--'+this['id']+'-alpha,\x20var(--ck-user-colors--0-alpha))';}},xl=class extends _0x2f6e1a{['name'];notificationView;constructor(_0x3e826f,_0x10f816,_0x330c24,_0xe4ffc7){super(_0x3e826f),this['name']=_0x10f816['name'],this['notificationView']=null;const _0x324f16=['ck','ck-user'],_0x1c8b08=['ck','ck-user__img'];_0x10f816['isAnonymous']&&_0x1c8b08['push']('ck-user__anonymous'),!_0x10f816['isAnonymous']&&_0x10f816['isMe']&&_0x324f16['push']('ck-user_me'),(_0x10f816['avatar']||_0xe4ffc7)&&_0x1c8b08['push']('ck-user__avatar');let _0x5ad16c=null;if(_0xe4ffc7&&(_0x5ad16c=new _0x5d1800(),_0x5ad16c['content']=_0xe4ffc7,_0x5ad16c['extendTemplate']({'attributes':{'class':['ck-user__avatar-icon']}})),_0x330c24){const _0x1ed4e1=new _0x5d1800();_0x1ed4e1['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x1ed4e1['content']=Lt,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x330c24},'children':[_0x1ed4e1]};}const _0x2dfba4=[{'tag':'div','attributes':{'class':_0x1c8b08,'style':{'background-image':_0x10f816['avatar']&&!_0xe4ffc7?'url(\x27'+_0x10f816['avatar']+'\x27)':''}},'children':_0x5ad16c?[_0x5ad16c]:[]},{'tag':'div','attributes':{'class':_0x10f816['avatar']||_0xe4ffc7?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x10f816['name']},'children':[{'text':_0x10f816['initials']}]}];this['notificationView']&&_0x2dfba4['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x324f16,'data-user-id':_0x10f816['id']},'children':_0x2dfba4});}},Cl=class extends _0x2f6e1a{['children'];['iconView'];['labelView'];constructor(_0x169c93){super(_0x169c93);const _0x4c0fbe=this['bindTemplate'];this['set']('icon',void 0x0),this['set']('label',void 0x0),this['set']('tooltip',void 0x0),this['set']('tooltipPosition','n'),this['set']('tooltipClass',void 0x0),this['set']('iconPosition','left'),this['set']('class',void 0x0),this['children']=this['createCollection'](),this['iconView']=this['_createIconView'](),this['labelView']=this['_createLabelView'](),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-pill',_0x4c0fbe['to']('class'),_0x4c0fbe['to']('iconPosition',_0x467e9d=>'right'===_0x467e9d?'ck-pill_icon-right':'')],'data-cke-tooltip-text':_0x4c0fbe['to']('tooltip'),'data-cke-tooltip-position':_0x4c0fbe['to']('tooltipPosition'),'data-cke-tooltip-class':_0x4c0fbe['to']('tooltipClass')},'children':this['children']});}['render'](){super['render'](),this['icon']&&this['children']['add'](this['iconView']),this['children']['add'](this['labelView']),this['on']('change:icon',(_0x31b8a8,_0x1fb007,_0x36e1e5,_0x2161dd)=>{_0x36e1e5&&!_0x2161dd?this['children']['add'](this['iconView'],0x0):!_0x36e1e5&&_0x2161dd&&this['children']['remove'](this['iconView']);});}_createIconView(){const _0x4ceef3=new _0x5d1800();return _0x4ceef3['extendTemplate']({'attributes':{'class':'ck-pill__icon'}}),_0x4ceef3['bind']('content')['to'](this,'icon'),_0x4ceef3;}_createLabelView(){const _0x4003ea=new _0x2f6e1a(this['locale']),_0x32d5a3=this['bindTemplate'];return _0x4003ea['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-pill__label']},'children':[{'text':_0x32d5a3['to']('label')}]}),_0x4003ea;}},Rl=class extends _0x2f6e1a{['id'];constructor(_0x4bf0f1,_0x2c2304){super(_0x4bf0f1),this['id']='ck-aria-description-'+_0xea66bb(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x2c2304}]});}},Pl=class extends _0x39ae99{['render'](){super['render'](),Ml(this);}},Nl=class extends _0x13f4fb{['render'](){super['render'](),Ml(this);}};function Ml(_0x54eb6c){_0x54eb6c['listenTo'](_0x54eb6c['element'],'mousedown',(_0x34be14,_0x278440)=>{_0x278440['stopPropagation'](),_0x278440['preventDefault']();}),_0x54eb6c['listenTo'](_0x54eb6c['element'],'mouseup',()=>{_0x54eb6c['element']['focus']();});}function Ll(_0x35936b){const _0x3edc10=_0x35936b['split'](':');return{'group':_0x3edc10[0x0],'type':_0x3edc10[0x1],'subType':_0x3edc10['length']>=0x5?_0x3edc10[0x2]:null,'id':_0x3edc10['length']<0x5?_0x3edc10[0x2]:_0x3edc10[0x3],'authorId':_0x3edc10['length']<0x5?_0x3edc10[0x3]:_0x3edc10[0x4],'markerCount':0x6==_0x3edc10['length']?_0x3edc10[0x5]:null};}function $l(_0x27d093,_0x4553c6){const _0x21bf34=_0x27d093['end']['nodeBefore'];if(_0x21bf34&&_0x21bf34['is']('element')&&_0x4553c6['schema']['isBlock'](_0x21bf34)&&!_0x4553c6['schema']['isObject'](_0x21bf34)){const _0x599ff1=_0x4553c6['createPositionAt'](_0x21bf34,'end');return _0x4553c6['createRange'](_0x27d093['start'],_0x599ff1);}return _0x27d093;}var Dl=class extends _0x11fe30{afterInit(){const _0x10e09a=this['editor'];_0x10e09a['plugins']['has']('AlignmentEditing')&&_0x10e09a['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}};const Ql=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var jl=class extends _0x11fe30{afterInit(){const _0x4efc4a=this['editor'],_0xcff968=_0x4efc4a['plugins']['get']('SuggestionsConversion');for(const _0x5d5f71 of Ql){if(!_0x4efc4a['plugins']['has'](_0x5d5f71))continue;const _0x37a4fb=_0x5d5f71['slice'](0x0,-0x7)['toLowerCase']();_0xcff968['registerInlineAttribute'](_0x37a4fb);}}},Ul=class extends _0x11fe30{afterInit(){const _0x1e9628=this['editor'],_0x12d920=_0x1e9628['plugins']['get']('SuggestionsConversion');_0x1e9628['plugins']['has']('BookmarkEditing')&&_0x12d920['registerBlockAttribute']('bookmarkId');}};const Vl=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var Bl=class extends _0x11fe30{afterInit(){const _0x263eb0=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0xd79807,commandName:_0x57427d}of Vl)this['editor']['plugins']['has'](_0xd79807)&&_0x263eb0['registerInlineAttribute'](_0x57427d);}},Hl=class extends _0x11fe30{afterInit(){const {editor:_0x32da4e}=this;if(!_0x32da4e['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x1d37c7=_0x32da4e['plugins']['get']('SuggestionsConversion');_0x1d37c7['registerBlockAttribute']('footnotesListStyle'),_0x1d37c7['registerBlockAttribute']('footnotesListStart');}},Fl=class extends _0x11fe30{afterInit(){const _0x27d961=this['editor'];if(!_0x27d961['plugins']['has']('GeneralHtmlSupport')||!_0x27d961['plugins']['has']('DataSchema'))return;const _0x62f26d=_0x27d961['plugins']['get']('SuggestionsConversion'),_0x1b9bbf=_0x27d961['plugins']['get']('GeneralHtmlSupport'),_0xa4899=_0x27d961['plugins']['get']('DataSchema');for(const _0x56b226 of _0xa4899['getDefinitionsForView'](/.*/,!0x1)){const _0x1d5b27=_0x1b9bbf['getGhsAttributeNameForElement'](_0x56b226['view']);!_0x56b226['isInline']||_0x56b226['isObject']||'appliesToBlock'in _0x56b226&&_0x56b226['appliesToBlock']?_0x62f26d['registerBlockAttribute'](_0x1d5b27):_0x62f26d['registerInlineAttribute'](_0x1d5b27);}}},Zl=class extends _0x11fe30{afterInit(){const _0x5ebbca=this['editor'];_0x5ebbca['plugins']['has']('HighlightEditing')&&_0x5ebbca['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}},Gl=class extends _0x11fe30{afterInit(){const _0x48b7a7=this['editor'];_0x48b7a7['plugins']['has']('HtmlEmbed')&&_0x48b7a7['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}},Xl=class extends _0x11fe30{afterInit(){const _0x5d6e27=this['editor'];if(!_0x5d6e27['plugins']['has']('ImageEditing'))return;const _0x4109eb=_0x5d6e27['plugins']['get']('SuggestionsConversion');_0x4109eb['registerBlockAttribute']('src'),_0x5d6e27['plugins']['has']('ImageResize')&&_0x4109eb['registerBlockAttribute']('resizedWidth'),_0x5d6e27['plugins']['has']('ImageTextAlternativeEditing')&&_0x4109eb['registerBlockAttribute']('alt'),_0x5d6e27['plugins']['has']('PictureEditing')&&_0x4109eb['registerBlockAttribute']('sources'),_0x5d6e27['plugins']['has']('ImageSizeAttributes')&&(_0x4109eb['registerBlockAttribute']('width'),_0x4109eb['registerBlockAttribute']('height'));}},ql=class extends _0x11fe30{afterInit(){const _0x3643af=this['editor'],_0x2003ab=_0x3643af['plugins']['get']('SuggestionsConversion');_0x3643af['plugins']['has']('IndentBlock')&&(_0x2003ab['registerBlockAttribute']('blockIndent'),_0x3643af['plugins']['has']('ListEditing')&&(_0x2003ab['registerBlockAttribute']('blockIndentList'),_0x2003ab['registerBlockAttribute']('blockIndentListItem')));}},Wl=class extends _0x11fe30{afterInit(){const _0x33456f=this['editor'];_0x33456f['plugins']['has']('LineHeight')&&_0x33456f['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}},zl=class extends _0x11fe30{afterInit(){const _0x425511=this['editor'];if(!_0x425511['plugins']['has']('LinkEditing'))return;const _0x1eb064=_0x425511['plugins']['get']('SuggestionsConversion'),_0x4aadf4=_0x425511['commands']['get']('link');_0x1eb064['registerInlineAttribute']('linkHref');for(const _0x244a67 of _0x4aadf4['manualDecorators'])_0x1eb064['registerInlineAttribute'](_0x244a67['id']);}},Yl=class extends _0x11fe30{afterInit(){const _0x5b8fc6=this['editor'];if(!_0x5b8fc6['plugins']['has']('ListEditing'))return;const _0x51c1c9=_0x5b8fc6['plugins']['get']('SuggestionsConversion'),_0x39855f=_0x5b8fc6['plugins']['has']('TodoListEditing');_0x51c1c9['registerBlockAttribute']('listItemId'),_0x51c1c9['registerBlockAttribute']('listType'),_0x51c1c9['registerBlockAttribute']('listIndent'),_0x39855f&&_0x51c1c9['registerBlockAttribute']('todoListChecked');}},Kl=class extends _0x11fe30{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2bc79d=this['editor']['config']['get']('list.properties'),_0x331e17=this['editor']['plugins']['get']('SuggestionsConversion');_0x2bc79d['styles']&&_0x331e17['registerBlockAttribute']('listStyle'),_0x2bc79d['reversed']&&_0x331e17['registerBlockAttribute']('listReversed'),_0x2bc79d['startIndex']&&_0x331e17['registerBlockAttribute']('listStart');}},Jl=class extends _0x11fe30{afterInit(){const _0x481686=this['editor'],_0x5ecc7e=_0x481686['plugins']['get']('SuggestionsConversion');_0x481686['plugins']['has']('MultiLevelList')&&_0x5ecc7e['registerBlockAttribute']('listMarkerStyle');}},th=class extends _0x11fe30{afterInit(){const _0x4569c3=this['editor'];if(!_0x4569c3['plugins']['has']('TableEditing'))return;const _0x3328bd=_0x4569c3['plugins']['get']('SuggestionsConversion');_0x3328bd['registerBlockAttribute']('headingRows'),_0x3328bd['registerBlockAttribute']('headingColumns');}},eh=class extends _0x11fe30{afterInit(){const {plugins:_0x3fb445}=this['editor'];if(!_0x3fb445['has']('TablePropertiesEditing'))return;const _0x2867d6=_0x3fb445['get']('SuggestionsConversion');for(const _0x2c89a9 of['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'])_0x2867d6['registerBlockAttribute'](_0x2c89a9);}},ih=class extends _0x11fe30{afterInit(){const _0xac283d=this['editor'],_0x576567=_0xac283d['plugins']['get']('SuggestionsConversion');_0xac283d['plugins']['has']('TableLayout')&&_0x576567['registerBlockAttribute']('tableType');}},sh=class extends _0x11fe30{afterInit(){const _0x467537=this['editor'],_0x100437=this['editor']['plugins']['get']('SuggestionsConversion');_0x467537['plugins']['has']('Uploadcare')&&_0x467537['plugins']['has']('UploadcareImageEdit')&&_0x100437['registerBlockAttribute']('uploadcareImageId');}},nh=class extends _0x11fe30{afterInit(){const _0x3d890d=this['editor'];if(!_0x3d890d['plugins']['has']('ShiftEnter'))return;const _0x27804d=_0x3d890d['plugins']['get']('SuggestionsConversion'),_0x42db6d=(_0x256d0b,_0x2a672b,_0x4e2b30,_0x43daca)=>{if(_0x43daca&&!_0x4e2b30['options']['showSuggestionHighlights'])return;if(!_0x4e2b30['consumable']['test'](_0x2a672b['markerRange'],_0x256d0b['name']))return;const _0x455eff=_0x3d890d['model'];for(const _0x2d07b9 of _0x2a672b['markerRange']['getItems']()){if(!_0x2d07b9['is']('element','softBreak'))continue;const _0xe30f05='deletion'==_0x2a672b['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x4f8a52,authorId:_0x288b97}=Ll(_0x2a672b['markerName']),_0x2d7dd9=_0x4e2b30['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xe30f05,'data-suggestion':_0x4f8a52,'data-author-id':_0x288b97}),_0x2b395a=_0x4e2b30['mapper']['toViewPosition'](_0x455eff['createPositionBefore'](_0x2d07b9));!_0x43daca&&_0x27804d['_activeMarkers']['includes'](_0x2a672b['markerName'])&&_0x4e2b30['writer']['addClass']('ck-suggestion-marker--active',_0x2d7dd9),_0x4e2b30['writer']['insert'](_0x2b395a,_0x2d7dd9),_0x4e2b30['mapper']['bindElementToMarker'](_0x2d7dd9,_0x2a672b['markerName']);}};_0x3d890d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x339cbd,_0x593086,_0xebf0bf)=>{_0x42db6d(_0x339cbd,_0x593086,_0xebf0bf,!0x1);},{'priority':'high'}),_0x3d890d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x198e7e,_0x2521ee,_0xb00cd8)=>{_0x42db6d(_0x198e7e,_0x2521ee,_0xb00cd8,!0x1);},{'priority':'high'}),_0x3d890d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x22f372,_0x2994ed,_0xde3ac)=>{_0x42db6d(_0x22f372,_0x2994ed,_0xde3ac,!0x0);},{'priority':'high'}),_0x3d890d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3cec9b,_0x5b53ad,_0x17ac3a)=>{_0x42db6d(_0x3cec9b,_0x5b53ad,_0x17ac3a,!0x0);},{'priority':'high'});}},rh=class extends _0x11fe30{afterInit(){const _0x8287ff=this['editor'];if(!_0x8287ff['plugins']['has']('MediaEmbedEditing'))return;const _0x3e4246=_0x8287ff['plugins']['get']('SuggestionsConversion');_0x8287ff['plugins']['has']('MediaEmbedResizeEditing')&&_0x3e4246['registerBlockAttribute']('resizedWidth'),_0x8287ff['plugins']['has']('MediaEmbedStyleEditing')&&_0x3e4246['registerBlockAttribute']('mediaStyle'),_0x8287ff['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xb4e77,{writer:_0x4cccb5,options:_0x81123e})=>{if(_0x81123e['showSuggestionHighlights'])return _0x4cccb5['createEmptyElement']('div');},'converterPriority':'high'}),_0x8287ff['data']['downcastDispatcher']['on']('attribute:url:media',(_0xf271d6,_0x45167c,_0x6fa6d4)=>{_0x6fa6d4['options']['showSuggestionHighlights']&&_0xf271d6['stop']();},{'priority':'high'});}},oh=class extends _0x11fe30{afterInit(){const _0x2131f2=this['editor'];if(!_0x2131f2['plugins']['has']('Table'))return;_0x2131f2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3bd06c,_0x501639,_0x12a77b)=>{((_0x552877,_0x459305,_0x646804)=>{if(!_0x646804['options']['showSuggestionHighlights'])return;const _0x5bfd23=_0x459305['item'];if(!_0x5bfd23||!_0x5bfd23['is']('element','tableCell'))return;const _0x3e927a=_0x646804['mapper']['toViewElement'](_0x5bfd23);if(_0x3e927a){const {id:_0x8d5df8,authorId:_0x58e986}=Ll(_0x459305['markerName']);_0x2c4a14(_0x3e927a,_0x646804['writer'],(_0x1524aa,_0x2bf154,_0x301e11)=>{_0x301e11['addClass'](_0x577a85(_0x2bf154['classes']),_0x1524aa),_0x301e11['setAttribute']('data-suggestion',_0x8d5df8,_0x1524aa),_0x301e11['setAttribute']('data-author-id',_0x58e986,_0x1524aa);});}})(0x0,_0x501639,_0x12a77b);},{'priority':'highest'});}},ah=class extends _0x11fe30{afterInit(){const _0xc2cb5d=this['editor'];_0xc2cb5d['plugins']['has']('HorizontalLineEditing')&&_0xc2cb5d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x22a1e8,{writer:_0x245d5e,options:_0x3ea7d2})=>{if(!_0x3ea7d2['showSuggestionHighlights'])return null;const _0x37c4da=_0x245d5e['createContainerElement']('div'),_0x309936=_0x245d5e['createEmptyElement']('hr');return _0x245d5e['addClass']('ck-horizontal-line',_0x37c4da),_0x245d5e['insert'](_0x245d5e['createPositionAt'](_0x37c4da,0x0),_0x309936),_0x37c4da;},'converterPriority':'high'});}},ch=class extends _0x11fe30{afterInit(){const {plugins:_0x1f7905,model:_0x3b0b1c}=this['editor'];if(!_0x1f7905['has']('TableCellPropertiesEditing'))return;const _0x49c2f8=_0x1f7905['get']('SuggestionsConversion');for(const _0x570e80 of['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'])_0x49c2f8['registerBlockAttribute'](_0x570e80);_0x3b0b1c['schema']['checkAttribute']('tableCell','tableCellType')&&_0x49c2f8['registerBlockAttribute']('tableCellType');}},lh=class extends _0x11fe30{afterInit(){const _0x4b3efb=this['editor'];_0x4b3efb['plugins']['has']('TableEditing')&&_0x4b3efb['config']['get']('table.enableFooters')&&_0x4b3efb['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('footerRows');}},hh=class extends _0x11fe30{_activeMarkers=[];_blockAttributeKeys=new Set(['$elementName']);_inlineAttributeKeys=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get requires(){return[Dl,jl,Ul,Bl,Hl,Fl,Zl,ah,Gl,Xl,ql,Wl,zl,Yl,Kl,rh,Jl,nh,oh,th,lh,ih,ch,eh,sh];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x42029d=this['editor'],_0xacedc3=(_0x24a582,_0x46a22e,_0x50ffdc)=>{const {id:_0x25a8ff,authorId:_0x41efed,type:_0x18a877,subType:_0x740ea7}=Ll(_0x24a582['markerName']),_0x253143=['ck-suggestion-marker',this['_getClassName'](_0x18a877,_0x740ea7)];let _0x2b634e=0xbb8;return _0x50ffdc||this['_activeMarkers']['includes'](_0x24a582['markerName'])&&(_0x253143['push']('ck-suggestion-marker--active'),_0x2b634e=0xbc2),'deletion'==_0x18a877&&(_0x2b634e+=0x5),{'classes':_0x253143,'attributes':{'data-suggestion':_0x25a8ff,'data-author-id':_0x41efed},'priority':_0x2b634e};};_0x42029d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4b6185,_0x2c0c41)=>_0xacedc3(_0x4b6185,0x0,!0x1)}),_0x42029d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x19aa08,_0x1065a8)=>_0xacedc3(_0x19aa08,0x0,!0x0)}),_0x42029d['conversion']['for']('dataDowncast')['add'](_0x35b7cc=>{_0x35b7cc['on']('addMarker:suggestion',(_0x257608,_0x3ffb91,_0x5de990)=>{if(!_0x5de990['options']['showSuggestionHighlights'])return;const _0x4a0cb8=_0x3ffb91['item'];if(!_0x4a0cb8)return;const _0x1416bf=_0x5de990['mapper']['toViewElement'](_0x4a0cb8);_0x42029d['model']['schema']['isObject'](_0x4a0cb8)&&_0x1416bf&&!_0x1416bf['getCustomProperty']('widget')&&_0x1416bf['is']('containerElement')&&_0x24589f(_0x1416bf,_0x5de990['writer']);},{'priority':'high'});});const _0x40512d=(_0x284506,_0x2da442,_0x210654,_0x5181f3,_0x4be2fe)=>{if(_0x5181f3&&!_0x210654['options']['showSuggestionHighlights'])return;if(!_0x2da442['item'])return;const {id:_0x163313,authorId:_0x7fb8fb,subType:_0x4df763}=Ll(_0x2da442['markerName']);if(_0x4be2fe){const _0x17ec58=_0x4df763['split']('|')[0x0];if(!this['isBlockAttribute'](_0x17ec58))return;}if(_0x2da442['item']['is']('selection'))return void _0x210654['consumable']['consume'](_0x2da442['item'],_0x284506['name']);const _0x39f91e=_0x210654['mapper']['toViewElement'](_0x2da442['item']);if(_0x2da442['item']['is']('element')&&_0x42029d['model']['schema']['isBlock'](_0x2da442['item'])&&!_0x39f91e['getCustomProperty']('addHighlight')){_0x210654['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x39f91e),_0x210654['writer']['setAttribute']('data-suggestion',_0x163313,_0x39f91e),_0x210654['writer']['setAttribute']('data-author-id',_0x7fb8fb,_0x39f91e),_0x210654['mapper']['bindElementToMarker'](_0x39f91e,_0x2da442['markerName']),_0x5181f3||(this['_activeMarkers']['includes'](_0x2da442['markerName'])?_0x210654['writer']['addClass']('ck-suggestion-marker--active',_0x39f91e):_0x210654['writer']['removeClass']('ck-suggestion-marker--active',_0x39f91e));for(const _0x1102e8 of _0x42029d['model']['createRangeIn'](_0x2da442['item'])['getItems']())_0x210654['consumable']['consume'](_0x1102e8,_0x284506['name']);_0x210654['consumable']['consume'](_0x2da442['item'],_0x284506['name']);}},_0x2eead2=(_0x49eab1,_0x1c35a5,_0x30081a,_0x5aafcd)=>{const _0x564f46=_0x30081a['mapper']['markerNameToElements'](_0x1c35a5['markerName']);if(_0x564f46){if(_0x5aafcd){const {subType:_0x38e76c}=Ll(_0x1c35a5['markerName']),_0x26a53c=_0x38e76c['split']('|')[0x0];if(!this['isBlockAttribute'](_0x26a53c))return;}for(const _0x54ade2 of _0x564f46)_0x54ade2['getCustomProperty']('addHighlight')||(_0x30081a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x54ade2),_0x30081a['writer']['removeAttribute']('data-suggestion',_0x54ade2),_0x30081a['writer']['removeAttribute']('data-author-id',_0x54ade2),_0x30081a['mapper']['unbindElementFromMarkerName'](_0x54ade2,_0x1c35a5['markerName']));}};_0x42029d['conversion']['for']('editingDowncast')['add'](_0x3149fc=>{_0x3149fc['on']('addMarker:suggestion:formatBlock',(_0x589544,_0x4ff72a,_0x5d28a4)=>{_0x40512d(_0x589544,_0x4ff72a,_0x5d28a4,!0x1,!0x1);},{'priority':'high'});}),_0x42029d['conversion']['for']('editingDowncast')['add'](_0x43321b=>{_0x43321b['on']('addMarker:suggestion:attribute',(_0x2d2d54,_0xb9dffe,_0x3343aa)=>{_0x40512d(_0x2d2d54,_0xb9dffe,_0x3343aa,!0x1,!0x0);},{'priority':'high'});}),_0x42029d['conversion']['for']('editingDowncast')['add'](_0x2baedd=>{_0x2baedd['on']('removeMarker:suggestion:formatBlock',(_0x5b1e38,_0x3c1a0e,_0x55efc)=>{_0x2eead2(0x0,_0x3c1a0e,_0x55efc,!0x1);},{'priority':'high'});}),_0x42029d['conversion']['for']('editingDowncast')['add'](_0x3ef660=>{_0x3ef660['on']('removeMarker:suggestion:attribute',(_0x40fcff,_0x4d3cf1,_0x5c8502)=>{_0x2eead2(0x0,_0x4d3cf1,_0x5c8502,!0x0);},{'priority':'high'});}),_0x42029d['conversion']['for']('dataDowncast')['add'](_0x5007ea=>{_0x5007ea['on']('addMarker:suggestion:formatBlock',(_0x195e91,_0xf1645d,_0x4efe9c)=>{_0x40512d(_0x195e91,_0xf1645d,_0x4efe9c,!0x0,!0x1);},{'priority':'highest'});}),_0x42029d['conversion']['for']('dataDowncast')['add'](_0x42ce84=>{_0x42ce84['on']('addMarker:suggestion:attribute',(_0x97527a,_0x58922e,_0x9ce0d4)=>{_0x40512d(_0x97527a,_0x58922e,_0x9ce0d4,!0x0,!0x0);},{'priority':'highest'});}),_0x42029d['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2736a5,_0x2951e4)=>_0x2951e4['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2736a5['substr'](0xb)}});const _0x38a829=(_0x570a80,_0x353b3b,_0x50d282,_0x2ba1b5,_0x28ee37)=>{if(_0x2ba1b5&&!_0x50d282['options']['showSuggestionHighlights'])return;if(!_0x50d282['consumable']['test'](_0x353b3b['markerRange'],_0x570a80['name']))return;const _0x231ea6=this['_activeMarkers'],_0x5ddbd6=_0x353b3b['markerRange']['getWalker'](),_0x7d89e9=_0x353b3b['markerRange']['start'],_0xfce082=_0x42029d['model']['schema'];let _0x4dd3f1=null,_0x3e8a5d=null,_0x4b3b1c=!0x1,_0x19d5a7=!0x1;for(const _0x30ac24 of _0x5ddbd6){const _0x537540=_0x30ac24['item'];_0x4b3b1c=_0x4b3b1c||_0xfce082['isContent'](_0x537540);const _0x3f3bbb=_0x50d282['mapper']['toViewElement'](_0x537540);if(_0x3f3bbb&&_0x3f3bbb['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x30ac24['type']&&(_0xfce082['isBlock'](_0x537540)&&!_0xfce082['isLimit'](_0x537540)&&(_0x537540['nextSibling']||_0x7d89e9['isAtEnd']?_0x4dd3f1&&_0x4dd3f1['parent']==_0x537540||(_0x4dd3f1=_0x537540,_0x3a3860(_0x30ac24['previousPosition']),_0x19d5a7=!0x0):_0x3e8a5d=_0x3e8a5d||_0x30ac24['previousPosition']));}function _0x3a3860(_0xa80f91){const {id:_0x614d2e,authorId:_0x4285bb}=Ll(_0x353b3b['markerName']),_0x39a9bc=_0x50d282['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x28ee37,'data-suggestion':_0x614d2e,'data-author-id':_0x4285bb}),_0xe3d269=_0x50d282['mapper']['toViewPosition'](_0xa80f91);!_0x2ba1b5&&_0x231ea6['includes'](_0x353b3b['markerName'])&&_0x50d282['writer']['addClass']('ck-suggestion-marker--active',_0x39a9bc),_0x50d282['writer']['insert'](_0xe3d269,_0x39a9bc),_0x50d282['mapper']['bindElementToMarker'](_0x39a9bc,_0x353b3b['markerName']);}_0x4b3b1c||_0x19d5a7||!_0x3e8a5d||_0x3a3860(_0x3e8a5d);};_0x42029d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4ef345,_0x41c84d,_0x3ea554)=>{_0x38a829(_0x4ef345,_0x41c84d,_0x3ea554,!0x1,'merge');},{'priority':'high'}),_0x42029d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x528bf4,_0x4ebfae,_0x33d7a3)=>{_0x38a829(_0x528bf4,_0x4ebfae,_0x33d7a3,!0x0,'merge');},{'priority':'high'}),_0x42029d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5d570e,_0x4e4450,_0x581287)=>{_0x38a829(_0x5d570e,_0x4e4450,_0x581287,!0x1,'split');},{'priority':'high'}),_0x42029d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x73638f,_0x24051b,_0x59e1f9)=>{_0x38a829(_0x73638f,_0x24051b,_0x59e1f9,!0x0,'split');},{'priority':'high'}),_0x42029d['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3a805c,_0x1cb34b,_0x4a16a2)=>{((_0x82e1e8,_0x2a5e68,_0x4d0602)=>{const _0x2068f8=_0x4d0602['mapper']['markerNameToElements'](_0x2a5e68['markerName']);if(_0x2068f8){for(const _0x2c0ef4 of _0x2068f8)(_0x2c0ef4['hasClass']('ck-suggestion-marker-split')||_0x2c0ef4['hasClass']('ck-suggestion-marker-merge'))&&(_0x4d0602['mapper']['unbindElementFromMarkerName'](_0x2c0ef4,_0x2a5e68['markerName']),_0x4d0602['writer']['remove'](_0x2c0ef4));}})(0x0,_0x1cb34b,_0x4a16a2);},{'priority':'high'});const _0x7cf20c=(_0x3e3950,_0x5bf3c8,_0x231c8d,_0x264575)=>{if(_0x264575&&!_0x231c8d['options']['showSuggestionHighlights'])return;const _0x2cedf9=_0x5bf3c8['markerRange']['start'],_0x244aa9=_0x5bf3c8['markerRange']['end'],_0x54238a=_0x42029d['model']['schema'];if(!_0x2cedf9['isTouching'](_0x244aa9)||!_0x2cedf9['nodeAfter'])return;const _0x42482f=_0x2cedf9['nodeAfter'];if(_0x54238a['isBlock'](_0x42482f)&&!_0x54238a['isLimit'](_0x42482f)&&_0x54238a['checkChild'](_0x42482f,'$text')){if(!_0x231c8d['consumable']['consume'](_0x5bf3c8['markerRange'],_0x3e3950['name']))return;const {id:_0x5ed2e,authorId:_0x56fc9c}=Ll(_0x5bf3c8['markerName']),_0x181056=_0x231c8d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x5ed2e,'data-author-id':_0x56fc9c}),_0x196d3f=_0x231c8d['mapper']['toViewPosition'](_0x244aa9);!_0x264575&&this['_activeMarkers']['includes'](_0x5bf3c8['markerName'])&&_0x231c8d['writer']['addClass']('ck-suggestion-marker--active',_0x181056),_0x231c8d['writer']['insert'](_0x196d3f,_0x181056),_0x231c8d['mapper']['bindElementToMarker'](_0x181056,_0x5bf3c8['markerName']);}};_0x42029d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x372360,_0x1ca92d,_0xe3dbd9)=>{_0x7cf20c(_0x372360,_0x1ca92d,_0xe3dbd9,!0x1);},{'priority':'high'}),_0x42029d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x556e56,_0x3e1d69,_0x40a9ce)=>{_0x7cf20c(_0x556e56,_0x3e1d69,_0x40a9ce,!0x0);},{'priority':'high'});}afterInit(){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x692b21,_0xaf4471,_0x3b71e9)=>{this['_activeMarkers']=_0x3b71e9['slice']();},{'priority':'highest'});}registerBlockAttribute(_0x1fef22){this['_blockAttributeKeys']['add'](_0x1fef22);}registerInlineAttribute(_0x425bef){this['_inlineAttributeKeys']['add'](_0x425bef);}isBlockAttribute(_0x162d4b){return this['_blockAttributeKeys']['has'](_0x162d4b);}isInlineAttribute(_0x22952a){return this['_inlineAttributeKeys']['has'](_0x22952a);}isRegisteredAttribute(_0x253a20){return this['isInlineAttribute'](_0x253a20)||this['isBlockAttribute'](_0x253a20);}_getClassName(_0x1abee6,_0xf4d49b){if('attribute'!=_0x1abee6)return'ck-suggestion-marker-'+_0x1abee6;const _0x16f199=_0xf4d49b['split']('|')[0x0];return this['isBlockAttribute'](_0x16f199)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}},uh=class extends Error{},dh=class extends uh{constructor(_0x22fe80){super('Invalid\x20DateTime:\x20'+_0x22fe80['toMessage']());}},fh=class extends uh{constructor(_0x1624b5){super('Invalid\x20Interval:\x20'+_0x1624b5['toMessage']());}},mh=class extends uh{constructor(_0x186fc1){super('Invalid\x20Duration:\x20'+_0x186fc1['toMessage']());}},ph=class extends uh{},gh=class extends uh{constructor(_0x4c622c){super('Invalid\x20unit\x20'+_0x4c622c);}},Oh=class extends uh{},wh=class extends uh{constructor(){super('Zone\x20is\x20an\x20abstract\x20class');}};const bh='numeric',yh='short',vh='long',_h={'year':bh,'month':bh,'day':bh},Eh={'year':bh,'month':yh,'day':bh},Th={'year':bh,'month':yh,'day':bh,'weekday':yh},Ah={'year':bh,'month':vh,'day':bh},Sh={'year':bh,'month':vh,'day':bh,'weekday':vh},Ih={'hour':bh,'minute':bh},kh={'hour':bh,'minute':bh,'second':bh},xh={'hour':bh,'minute':bh,'second':bh,'timeZoneName':yh},Ch={'hour':bh,'minute':bh,'second':bh,'timeZoneName':vh},Rh={'hour':bh,'minute':bh,'hourCycle':'h23'},Ph={'hour':bh,'minute':bh,'second':bh,'hourCycle':'h23'},Nh={'hour':bh,'minute':bh,'second':bh,'hourCycle':'h23','timeZoneName':yh},Mh={'hour':bh,'minute':bh,'second':bh,'hourCycle':'h23','timeZoneName':vh},Lh={'year':bh,'month':bh,'day':bh,'hour':bh,'minute':bh},$h={'year':bh,'month':bh,'day':bh,'hour':bh,'minute':bh,'second':bh},Dh={'year':bh,'month':yh,'day':bh,'hour':bh,'minute':bh},Qh={'year':bh,'month':yh,'day':bh,'hour':bh,'minute':bh,'second':bh},jh={'year':bh,'month':yh,'day':bh,'weekday':yh,'hour':bh,'minute':bh},Uh={'year':bh,'month':vh,'day':bh,'hour':bh,'minute':bh,'timeZoneName':yh},Vh={'year':bh,'month':vh,'day':bh,'hour':bh,'minute':bh,'second':bh,'timeZoneName':yh},Bh={'year':bh,'month':vh,'day':bh,'weekday':vh,'hour':bh,'minute':bh,'timeZoneName':vh},Hh={'year':bh,'month':vh,'day':bh,'weekday':vh,'hour':bh,'minute':bh,'second':bh,'timeZoneName':vh};var Fh=class{get type(){throw new wh();}get['name'](){throw new wh();}get['ianaName'](){return this['name'];}get['isUniversal'](){throw new wh();}offsetName(_0x54f2b6,_0x3a93a9){throw new wh();}formatOffset(_0x5c4dbe,_0x4bcb41){throw new wh();}offset(_0x206454){throw new wh();}['equals'](_0x239ed6){throw new wh();}get['isValid'](){throw new wh();}};let Zh=null;var Gh=class SystemZone extends Fh{static get instance(){return null===Zh&&(Zh=new SystemZone()),Zh;}get type(){return'system';}get['name'](){return new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];}get['isUniversal'](){return!0x1;}offsetName(_0x4e156f,{format:_0x4b4ca7,locale:_0x587975}){return dd(_0x4e156f,_0x4b4ca7,_0x587975);}formatOffset(_0x1ec858,_0x34ffb0){return gd(this['offset'](_0x1ec858),_0x34ffb0);}offset(_0x35d46d){return-new Date(_0x35d46d)['getTimezoneOffset']();}['equals'](_0x3637c7){return'system'===_0x3637c7['type'];}get['isValid'](){return!0x0;}};const Xh=new Map(),qh={'year':0x0,'month':0x1,'day':0x2,'era':0x3,'hour':0x4,'minute':0x5,'second':0x6},Wh=new Map();var zh=class IANAZone extends Fh{static create(_0x1eef74){let _0x20330b=Wh['get'](_0x1eef74);return void 0x0===_0x20330b&&Wh['set'](_0x1eef74,_0x20330b=new IANAZone(_0x1eef74)),_0x20330b;}static resetCache(){Wh['clear'](),Xh['clear']();}static['isValidSpecifier'](_0x54ae09){return this['isValidZone'](_0x54ae09);}static['isValidZone'](_0x5545b7){if(!_0x5545b7)return!0x1;try{return new Intl['DateTimeFormat']('en-US',{'timeZone':_0x5545b7})['format'](),!0x0;}catch(_0x45b799){return!0x1;}}constructor(_0x196548){super(),this['zoneName']=_0x196548,this['valid']=IANAZone['isValidZone'](_0x196548);}get type(){return'iana';}get['name'](){return this['zoneName'];}get['isUniversal'](){return!0x1;}offsetName(_0x1d1864,{format:_0x2e7e97,locale:_0x351215}){return dd(_0x1d1864,_0x2e7e97,_0x351215,this['name']);}formatOffset(_0x5d17f6,_0xb8a601){return gd(this['offset'](_0x5d17f6),_0xb8a601);}offset(_0x104016){if(!this['valid'])return NaN;const _0x405b71=new Date(_0x104016);if(isNaN(_0x405b71))return NaN;const _0x492258=function(_0x5b8ca1){let _0x3691cb=Xh['get'](_0x5b8ca1);return void 0x0===_0x3691cb&&(_0x3691cb=new Intl['DateTimeFormat']('en-US',{'hour12':!0x1,'timeZone':_0x5b8ca1,'year':'numeric','month':'2-digit','day':'2-digit','hour':'2-digit','minute':'2-digit','second':'2-digit','era':'short'}),Xh['set'](_0x5b8ca1,_0x3691cb)),_0x3691cb;}(this['name']);let [_0x34732b,_0x2781cf,_0x2d9052,_0x1800bf,_0x2f40d5,_0x22a280,_0x4498ea]=_0x492258['formatToParts']?function(_0x2b3979,_0x28554f){const _0xd5e7c7=_0x2b3979['formatToParts'](_0x28554f),_0x26a89c=[];for(let _0x63995e=0x0;_0x63995e<_0xd5e7c7['length'];_0x63995e++){const {type:_0x2570ca,value:_0x4f328d}=_0xd5e7c7[_0x63995e],_0x532d1d=qh[_0x2570ca];'era'===_0x2570ca?_0x26a89c[_0x532d1d]=_0x4f328d:Zu(_0x532d1d)||(_0x26a89c[_0x532d1d]=parseInt(_0x4f328d,0xa));}return _0x26a89c;}(_0x492258,_0x405b71):function(_0x49c2d2,_0x3fe8dc){const _0x17b505=_0x49c2d2['format'](_0x3fe8dc)['replace'](/\u200E/g,''),[,_0x1c6523,_0x51b915,_0x59b55f,_0x556dbe,_0x5860d2,_0x5f5eaf,_0x4077f9]=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/['exec'](_0x17b505);return[_0x59b55f,_0x1c6523,_0x51b915,_0x556dbe,_0x5860d2,_0x5f5eaf,_0x4077f9];}(_0x492258,_0x405b71);'BC'===_0x1800bf&&(_0x34732b=0x1-Math['abs'](_0x34732b));let _0x1a7bc7=+_0x405b71;const _0xbaef0=_0x1a7bc7%0x3e8;return _0x1a7bc7-=_0xbaef0>=0x0?_0xbaef0:0x3e8+_0xbaef0,(cd({'year':_0x34732b,'month':_0x2781cf,'day':_0x2d9052,'hour':0x18===_0x2f40d5?0x0:_0x2f40d5,'minute':_0x22a280,'second':_0x4498ea,'millisecond':0x0})-_0x1a7bc7)/0xea60;}['equals'](_0x7569d0){return'iana'===_0x7569d0['type']&&_0x7569d0['name']===this['name'];}get['isValid'](){return this['valid'];}};let Yh={};const Kh=new Map();function Jh(_0x4f8a03,_0x3b46a1={}){const _0x11a438=JSON['stringify']([_0x4f8a03,_0x3b46a1]);let _0x1498b5=Kh['get'](_0x11a438);return void 0x0===_0x1498b5&&(_0x1498b5=new Intl['DateTimeFormat'](_0x4f8a03,_0x3b46a1),Kh['set'](_0x11a438,_0x1498b5)),_0x1498b5;}const tu=new Map(),eu=new Map();let iu=null;const su=new Map();function nu(_0x1b4a78){let _0x4e8541=su['get'](_0x1b4a78);return void 0x0===_0x4e8541&&(_0x4e8541=new Intl['DateTimeFormat'](_0x1b4a78)['resolvedOptions'](),su['set'](_0x1b4a78,_0x4e8541)),_0x4e8541;}const ru=new Map();function ou(_0xc0fe38,_0x291939,_0x3e84d7,_0x4656af){const _0x2a57b4=_0xc0fe38['listingMode']();return'error'===_0x2a57b4?null:'en'===_0x2a57b4?_0x3e84d7(_0x291939):_0x4656af(_0x291939);}var au=class{constructor(_0x121c83,_0x369571,_0x474123){this['padTo']=_0x474123['padTo']||0x0,this['floor']=_0x474123['floor']||!0x1;const {padTo:_0x50aceb,floor:_0x239176,..._0x50175f}=_0x474123;if(!_0x369571||Object['keys'](_0x50175f)['length']>0x0){const _0x24df6e={'useGrouping':!0x1,..._0x474123};_0x474123['padTo']>0x0&&(_0x24df6e['minimumIntegerDigits']=_0x474123['padTo']),this['inf']=function(_0x26683c,_0x180fc7={}){const _0x35ec93=JSON['stringify']([_0x26683c,_0x180fc7]);let _0x2a3334=tu['get'](_0x35ec93);return void 0x0===_0x2a3334&&(_0x2a3334=new Intl['NumberFormat'](_0x26683c,_0x180fc7),tu['set'](_0x35ec93,_0x2a3334)),_0x2a3334;}(_0x121c83,_0x24df6e);}}format(_0x3300c0){if(this['inf']){const _0x34aab0=this['floor']?Math['floor'](_0x3300c0):_0x3300c0;return this['inf']['format'](_0x34aab0);}return td(this['floor']?Math['floor'](_0x3300c0):nd(_0x3300c0,0x3),this['padTo']);}},cu=class{constructor(_0x41f153,_0x3033ce,_0x3e1615){let _0x385746;if(this['opts']=_0x3e1615,this['originalZone']=void 0x0,this['opts']['timeZone'])this['dt']=_0x41f153;else{if('fixed'===_0x41f153['zone']['type']){const _0x2a698c=_0x41f153['offset']/0x3c*-0x1,_0x4d689a=_0x2a698c>=0x0?'Etc/GMT+'+_0x2a698c:'Etc/GMT'+_0x2a698c;0x0!==_0x41f153['offset']&&zh['create'](_0x4d689a)['valid']?(_0x385746=_0x4d689a,this['dt']=_0x41f153):(_0x385746='UTC',this['dt']=0x0===_0x41f153['offset']?_0x41f153:_0x41f153['setZone']('UTC')['plus']({'minutes':_0x41f153['offset']}),this['originalZone']=_0x41f153['zone']);}else'system'===_0x41f153['zone']['type']?this['dt']=_0x41f153:'iana'===_0x41f153['zone']['type']?(this['dt']=_0x41f153,_0x385746=_0x41f153['zone']['name']):(_0x385746='UTC',this['dt']=_0x41f153['setZone']('UTC')['plus']({'minutes':_0x41f153['offset']}),this['originalZone']=_0x41f153['zone']);}const _0x38317e={...this['opts']};_0x38317e['timeZone']=_0x38317e['timeZone']||_0x385746,this['dtf']=Jh(_0x3033ce,_0x38317e);}format(){return this['originalZone']?this['formatToParts']()['map'](({value:_0x3270db})=>_0x3270db)['join'](''):this['dtf']['format'](this['dt']['toJSDate']());}formatToParts(){const _0x91c300=this['dtf']['formatToParts'](this['dt']['toJSDate']());return this['originalZone']?_0x91c300['map'](_0x2f72a8=>{if('timeZoneName'===_0x2f72a8['type']){const _0x30ccb6=this['originalZone']['offsetName'](this['dt']['ts'],{'locale':this['dt']['locale'],'format':this['opts']['timeZoneName']});return{..._0x2f72a8,'value':_0x30ccb6};}return _0x2f72a8;}):_0x91c300;}resolvedOptions(){return this['dtf']['resolvedOptions']();}},lu=class{constructor(_0x25e7a5,_0x215933,_0x363df6){this['opts']={'style':'long',..._0x363df6},!_0x215933&&qu()&&(this['rtf']=function(_0x48a6b4,_0x25e3ea={}){const {base:_0x138dce,..._0x39a203}=_0x25e3ea,_0x562f24=JSON['stringify']([_0x48a6b4,_0x39a203]);let _0x3c59ba=eu['get'](_0x562f24);return void 0x0===_0x3c59ba&&(_0x3c59ba=new Intl['RelativeTimeFormat'](_0x48a6b4,_0x25e3ea),eu['set'](_0x562f24,_0x3c59ba)),_0x3c59ba;}(_0x25e7a5,_0x363df6));}format(_0x7c7a84,_0x44fac6){return this['rtf']?this['rtf']['format'](_0x7c7a84,_0x44fac6):function(_0x2e0a51,_0x8226dc,_0x858c9='always',_0x4479bf=!0x1){const _0x288e64={'years':['year','yr.'],'quarters':['quarter','qtr.'],'months':['month','mo.'],'weeks':['week','wk.'],'days':['day','day','days'],'hours':['hour','hr.'],'minutes':['minute','min.'],'seconds':['second','sec.']},_0x4909b9=-0x1===['hours','minutes','seconds']['indexOf'](_0x2e0a51);if('auto'===_0x858c9&&_0x4909b9){const _0x2702f2='days'===_0x2e0a51;switch(_0x8226dc){case 0x1:return _0x2702f2?'tomorrow':'next\x20'+_0x288e64[_0x2e0a51][0x0];case-0x1:return _0x2702f2?'yesterday':'last\x20'+_0x288e64[_0x2e0a51][0x0];case 0x0:return _0x2702f2?'today':'this\x20'+_0x288e64[_0x2e0a51][0x0];}}const _0x19e9a3=Object['is'](_0x8226dc,-0x0)||_0x8226dc<0x0,_0x59711a=Math['abs'](_0x8226dc),_0x59267f=0x1===_0x59711a,_0x314e18=_0x288e64[_0x2e0a51],_0x53bcde=_0x4479bf?_0x59267f?_0x314e18[0x1]:_0x314e18[0x2]||_0x314e18[0x1]:_0x59267f?_0x288e64[_0x2e0a51][0x0]:_0x2e0a51;return _0x19e9a3?_0x59711a+'\x20'+_0x53bcde+'\x20ago':'in\x20'+_0x59711a+'\x20'+_0x53bcde;}(_0x44fac6,_0x7c7a84,this['opts']['numeric'],'long'!==this['opts']['style']);}formatToParts(_0x4d28d6,_0xd1551c){return this['rtf']?this['rtf']['formatToParts'](_0x4d28d6,_0xd1551c):[];}};const hu={'firstDay':0x1,'minimalDays':0x4,'weekend':[0x6,0x7]};var uu=class Locale{static fromOpts(_0x32099c){return Locale['create'](_0x32099c['locale'],_0x32099c['numberingSystem'],_0x32099c['outputCalendar'],_0x32099c['weekSettings'],_0x32099c['defaultToEN']);}static create(_0x48c108,_0x5e2581,_0x3ee3a4,_0x424a81,_0x49351b=!0x1){const _0x18c8f4=_0x48c108||xu['defaultLocale'],_0x3d9ec0=_0x18c8f4||(_0x49351b?'en-US':iu||(iu=new Intl['DateTimeFormat']()['resolvedOptions']()['locale'],iu)),_0x3f58c0=_0x5e2581||xu['defaultNumberingSystem'],_0x10cbd9=_0x3ee3a4||xu['defaultOutputCalendar'],_0x38e5d5=Ku(_0x424a81)||xu['defaultWeekSettings'];return new Locale(_0x3d9ec0,_0x3f58c0,_0x10cbd9,_0x38e5d5,_0x18c8f4);}static resetCache(){iu=null,Kh['clear'](),tu['clear'](),eu['clear'](),su['clear'](),ru['clear']();}static fromObject({locale:_0x22ea68,numberingSystem:_0x12810b,outputCalendar:_0x3b94e8,weekSettings:_0x5a0504}={}){return Locale['create'](_0x22ea68,_0x12810b,_0x3b94e8,_0x5a0504);}constructor(_0x33dac2,_0x1d28f0,_0x5ba0ec,_0x4f1614,_0x42ce29){const [_0x3f95cd,_0x2d299f,_0x4153be]=function(_0x4858d6){const _0x3f9722=_0x4858d6['indexOf']('-x-');-0x1!==_0x3f9722&&(_0x4858d6=_0x4858d6['substring'](0x0,_0x3f9722));const _0x340bf1=_0x4858d6['indexOf']('-u-');if(-0x1===_0x340bf1)return[_0x4858d6];{let _0x3bd0af,_0x1f6173;try{_0x3bd0af=Jh(_0x4858d6)['resolvedOptions'](),_0x1f6173=_0x4858d6;}catch(_0x5f3b56){const _0x46faa9=_0x4858d6['substring'](0x0,_0x340bf1);_0x3bd0af=Jh(_0x46faa9)['resolvedOptions'](),_0x1f6173=_0x46faa9;}const {numberingSystem:_0x10e06d,calendar:_0xd99296}=_0x3bd0af;return[_0x1f6173,_0x10e06d,_0xd99296];}}(_0x33dac2);this['locale']=_0x3f95cd,this['numberingSystem']=_0x1d28f0||_0x2d299f||null,this['outputCalendar']=_0x5ba0ec||_0x4153be||null,this['weekSettings']=_0x4f1614,this['intl']=function(_0x3aff1f,_0x22cf08,_0x2ac195){return _0x2ac195||_0x22cf08?(_0x3aff1f['includes']('-u-')||(_0x3aff1f+='-u'),_0x2ac195&&(_0x3aff1f+='-ca-'+_0x2ac195),_0x22cf08&&(_0x3aff1f+='-nu-'+_0x22cf08),_0x3aff1f):_0x3aff1f;}(this['locale'],this['numberingSystem'],this['outputCalendar']),this['weekdaysCache']={'format':{},'standalone':{}},this['monthsCache']={'format':{},'standalone':{}},this['meridiemCache']=null,this['eraCache']={},this['specifiedLocale']=_0x42ce29,this['fastNumbersCached']=null;}get fastNumbers(){var _0x20c100;return null==this['fastNumbersCached']&&(this['fastNumbersCached']=(!(_0x20c100=this)['numberingSystem']||'latn'===_0x20c100['numberingSystem'])&&('latn'===_0x20c100['numberingSystem']||!_0x20c100['locale']||_0x20c100['locale']['startsWith']('en')||'latn'===nu(_0x20c100['locale'])['numberingSystem'])),this['fastNumbersCached'];}listingMode(){const _0x17bbe6=this['isEnglish'](),_0x473b58=!(null!==this['numberingSystem']&&'latn'!==this['numberingSystem']||null!==this['outputCalendar']&&'gregory'!==this['outputCalendar']);return _0x17bbe6&&_0x473b58?'en':'intl';}['clone'](_0x184739){return _0x184739&&0x0!==Object['getOwnPropertyNames'](_0x184739)['length']?Locale['create'](_0x184739['locale']||this['specifiedLocale'],_0x184739['numberingSystem']||this['numberingSystem'],_0x184739['outputCalendar']||this['outputCalendar'],Ku(_0x184739['weekSettings'])||this['weekSettings'],_0x184739['defaultToEN']||!0x1):this;}redefaultToEN(_0x1fe71c={}){return this['clone']({..._0x1fe71c,'defaultToEN':!0x0});}redefaultToSystem(_0x3c9965={}){return this['clone']({..._0x3c9965,'defaultToEN':!0x1});}months(_0x15fbb4,_0x3c77a0=!0x1){return ou(this,_0x15fbb4,vd,()=>{const _0x24beab=_0x3c77a0?{'month':_0x15fbb4,'day':'numeric'}:{'month':_0x15fbb4},_0x54cbee=_0x3c77a0?'format':'standalone';return this['monthsCache'][_0x54cbee][_0x15fbb4]||(this['monthsCache'][_0x54cbee][_0x15fbb4]=function(_0x4507ef){const _0x587f50=[];for(let _0x474edf=0x1;_0x474edf<=0xc;_0x474edf++){const _0x2b2270=Sm['utc'](0x7d9,_0x474edf,0x1);_0x587f50['push'](_0x4507ef(_0x2b2270));}return _0x587f50;}(_0x422742=>this['extract'](_0x422742,_0x24beab,'month'))),this['monthsCache'][_0x54cbee][_0x15fbb4];});}['weekdays'](_0x48b689,_0x51cc6e=!0x1){return ou(this,_0x48b689,Ad,()=>{const _0x522e9c=_0x51cc6e?{'weekday':_0x48b689,'year':'numeric','month':'long','day':'numeric'}:{'weekday':_0x48b689},_0x30b2b6=_0x51cc6e?'format':'standalone';return this['weekdaysCache'][_0x30b2b6][_0x48b689]||(this['weekdaysCache'][_0x30b2b6][_0x48b689]=function(_0x12b1e7){const _0x577f2c=[];for(let _0x336e99=0x1;_0x336e99<=0x7;_0x336e99++){const _0x4b05dd=Sm['utc'](0x7e0,0xb,0xd+_0x336e99);_0x577f2c['push'](_0x12b1e7(_0x4b05dd));}return _0x577f2c;}(_0xb372fa=>this['extract'](_0xb372fa,_0x522e9c,'weekday'))),this['weekdaysCache'][_0x30b2b6][_0x48b689];});}['meridiems'](){return ou(this,void 0x0,()=>Sd,()=>{if(!this['meridiemCache']){const _0x5857b2={'hour':'numeric','hourCycle':'h12'};this['meridiemCache']=[Sm['utc'](0x7e0,0xb,0xd,0x9),Sm['utc'](0x7e0,0xb,0xd,0x13)]['map'](_0x1957a7=>this['extract'](_0x1957a7,_0x5857b2,'dayperiod'));}return this['meridiemCache'];});}['eras'](_0xa03cd2){return ou(this,_0xa03cd2,Cd,()=>{const _0x5efb60={'era':_0xa03cd2};return this['eraCache'][_0xa03cd2]||(this['eraCache'][_0xa03cd2]=[Sm['utc'](-0x28,0x1,0x1),Sm['utc'](0x7e1,0x1,0x1)]['map'](_0x564277=>this['extract'](_0x564277,_0x5efb60,'era'))),this['eraCache'][_0xa03cd2];});}extract(_0x40d666,_0x5446a0,_0x5777d4){const _0x1d943f=this['dtFormatter'](_0x40d666,_0x5446a0)['formatToParts']()['find'](_0x43ebbc=>_0x43ebbc['type']['toLowerCase']()===_0x5777d4);return _0x1d943f?_0x1d943f['value']:null;}numberFormatter(_0x197e59={}){return new au(this['intl'],_0x197e59['forceSimple']||this['fastNumbers'],_0x197e59);}dtFormatter(_0x348802,_0x5c4e5a={}){return new cu(_0x348802,this['intl'],_0x5c4e5a);}relFormatter(_0x59d0b6={}){return new lu(this['intl'],this['isEnglish'](),_0x59d0b6);}listFormatter(_0x477341={}){return function(_0x18c1b0,_0x29f067={}){const _0x58a374=JSON['stringify']([_0x18c1b0,_0x29f067]);let _0x30c9fd=Yh[_0x58a374];return _0x30c9fd||(_0x30c9fd=new Intl['ListFormat'](_0x18c1b0,_0x29f067),Yh[_0x58a374]=_0x30c9fd),_0x30c9fd;}(this['intl'],_0x477341);}['isEnglish'](){return'en'===this['locale']||'en-us'===this['locale']['toLowerCase']()||nu(this['intl'])['locale']['startsWith']('en-us');}getWeekSettings(){return this['weekSettings']?this['weekSettings']:Wu()?function(_0x26b901){let _0x4bb277=ru['get'](_0x26b901);if(!_0x4bb277){const _0x16fae0=new Intl['Locale'](_0x26b901);_0x4bb277='getWeekInfo'in _0x16fae0?_0x16fae0['getWeekInfo']():_0x16fae0['weekInfo'],'minimalDays'in _0x4bb277||(_0x4bb277={...hu,..._0x4bb277}),ru['set'](_0x26b901,_0x4bb277);}return _0x4bb277;}(this['locale']):hu;}getStartOfWeek(){return this['getWeekSettings']()['firstDay'];}getMinDaysInFirstWeek(){return this['getWeekSettings']()['minimalDays'];}getWeekendDays(){return this['getWeekSettings']()['weekend'];}['equals'](_0x4244f1){return this['locale']===_0x4244f1['locale']&&this['numberingSystem']===_0x4244f1['numberingSystem']&&this['outputCalendar']===_0x4244f1['outputCalendar'];}toString(){return'Locale('+this['locale']+',\x20'+this['numberingSystem']+',\x20'+this['outputCalendar']+')';}};let du=null;var fu=class FixedOffsetZone extends Fh{static get utcInstance(){return null===du&&(du=new FixedOffsetZone(0x0)),du;}static instance(_0x1e860c){return 0x0===_0x1e860c?FixedOffsetZone['utcInstance']:new FixedOffsetZone(_0x1e860c);}static['parseSpecifier'](_0x35cf8c){if(_0x35cf8c){const _0x414eeb=_0x35cf8c['match'](/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(_0x414eeb)return new FixedOffsetZone(fd(_0x414eeb[0x1],_0x414eeb[0x2]));}return null;}constructor(_0x45b41d){super(),this['fixed']=_0x45b41d;}get type(){return'fixed';}get['name'](){return 0x0===this['fixed']?'UTC':'UTC'+gd(this['fixed'],'narrow');}get['ianaName'](){return 0x0===this['fixed']?'Etc/UTC':'Etc/GMT'+gd(-this['fixed'],'narrow');}offsetName(){return this['name'];}formatOffset(_0x130502,_0x590e3e){return gd(this['fixed'],_0x590e3e);}get['isUniversal'](){return!0x0;}offset(){return this['fixed'];}['equals'](_0x4b6c7b){return'fixed'===_0x4b6c7b['type']&&_0x4b6c7b['fixed']===this['fixed'];}get['isValid'](){return!0x0;}},mu=class extends Fh{constructor(_0x454159){super(),this['zoneName']=_0x454159;}get type(){return'invalid';}get['name'](){return this['zoneName'];}get['isUniversal'](){return!0x1;}offsetName(){return null;}formatOffset(){return'';}offset(){return NaN;}['equals'](){return!0x1;}get['isValid'](){return!0x1;}};function pu(_0x2be62f,_0x5e9848){if(Zu(_0x2be62f)||null===_0x2be62f)return _0x5e9848;if(_0x2be62f instanceof Fh)return _0x2be62f;if('string'==typeof _0x2be62f){const _0x5aad1f=_0x2be62f['toLowerCase']();return'default'===_0x5aad1f?_0x5e9848:'local'===_0x5aad1f||'system'===_0x5aad1f?Gh['instance']:'utc'===_0x5aad1f||'gmt'===_0x5aad1f?fu['utcInstance']:fu['parseSpecifier'](_0x5aad1f)||zh['create'](_0x2be62f);}return Gu(_0x2be62f)?fu['instance'](_0x2be62f):'object'==typeof _0x2be62f&&'offset'in _0x2be62f&&'function'==typeof _0x2be62f['offset']?_0x2be62f:new mu(_0x2be62f);}const gu={'arab':'[٠-٩]','arabext':'[۰-۹]','bali':'[᭐-᭙]','beng':'[০-৯]','deva':'[०-९]','fullwide':'[０-９]','gujr':'[૦-૯]','hanidec':'[〇|一|二|三|四|五|六|七|八|九]','khmr':'[០-៩]','knda':'[೦-೯]','laoo':'[໐-໙]','limb':'[᥆-᥏]','mlym':'[൦-൯]','mong':'[᠐-᠙]','mymr':'[၀-၉]','orya':'[୦-୯]','tamldec':'[௦-௯]','telu':'[౦-౯]','thai':'[๐-๙]','tibt':'[༠-༩]','latn':'\x5cd'},Ou={'arab':[0x660,0x669],'arabext':[0x6f0,0x6f9],'bali':[0x1b50,0x1b59],'beng':[0x9e6,0x9ef],'deva':[0x966,0x96f],'fullwide':[0xff10,0xff17],'gujr':[0xae6,0xaef],'khmr':[0x17e0,0x17e9],'knda':[0xce6,0xcef],'laoo':[0xed0,0xed9],'limb':[0x1946,0x194f],'mlym':[0xd66,0xd6f],'mong':[0x1810,0x1819],'mymr':[0x1040,0x1049],'orya':[0xb66,0xb6f],'tamldec':[0xbe6,0xbef],'telu':[0xc66,0xc6f],'thai':[0xe50,0xe59],'tibt':[0xf20,0xf29]},wu=gu['hanidec']['replace'](/[\[|\]]/g,'')['split'](''),bu=new Map();function yu({numberingSystem:_0x4eeaec},_0x1fa7ce=''){const _0xb6bddb=_0x4eeaec||'latn';let _0x4522f6=bu['get'](_0xb6bddb);void 0x0===_0x4522f6&&(_0x4522f6=new Map(),bu['set'](_0xb6bddb,_0x4522f6));let _0x54fcf0=_0x4522f6['get'](_0x1fa7ce);return void 0x0===_0x54fcf0&&(_0x54fcf0=new RegExp(''+gu[_0xb6bddb]+_0x1fa7ce),_0x4522f6['set'](_0x1fa7ce,_0x54fcf0)),_0x54fcf0;}let vu,_u=()=>Date['now'](),Eu='system',Tu=null,Au=null,Su=null,Iu=0x3c,ku=null;var xu=class{static get['now'](){return _u;}static set['now'](_0x528757){_u=_0x528757;}static set defaultZone(_0x5a9e10){Eu=_0x5a9e10;}static get defaultZone(){return pu(Eu,Gh['instance']);}static get defaultLocale(){return Tu;}static set defaultLocale(_0x33a188){Tu=_0x33a188;}static get defaultNumberingSystem(){return Au;}static set defaultNumberingSystem(_0x241234){Au=_0x241234;}static get defaultOutputCalendar(){return Su;}static set defaultOutputCalendar(_0x319448){Su=_0x319448;}static get defaultWeekSettings(){return ku;}static set defaultWeekSettings(_0x4e87d4){ku=Ku(_0x4e87d4);}static get twoDigitCutoffYear(){return Iu;}static set twoDigitCutoffYear(_0x1d8aaa){Iu=_0x1d8aaa%0x64;}static get throwOnInvalid(){return vu;}static set throwOnInvalid(t){vu=t;}static resetCaches(){uu['resetCache'](),zh['resetCache'](),Sm['resetCache'](),bu['clear']();}},Cu=class{constructor(_0x27523c,_0x5571cb){this['reason']=_0x27523c,this['explanation']=_0x5571cb;}toMessage(){return this['explanation']?this['reason']+':\x20'+this['explanation']:this['reason'];}};const Ru=[0x0,0x1f,0x3b,0x5a,0x78,0x97,0xb5,0xd4,0xf3,0x111,0x130,0x14e],Pu=[0x0,0x1f,0x3c,0x5b,0x79,0x98,0xb6,0xd5,0xf4,0x112,0x131,0x14f];function Nu(_0x4ed46e,_0x30d3c8){return new Cu('unit\x20out\x20of\x20range','you\x20specified\x20'+_0x30d3c8+'\x20(of\x20type\x20'+typeof _0x30d3c8+')\x20as\x20a\x20'+_0x4ed46e+',\x20which\x20is\x20invalid');}function Mu(_0xce3e65,_0x3ef5e1,_0x151639){const _0x46fa17=new Date(Date['UTC'](_0xce3e65,_0x3ef5e1-0x1,_0x151639));_0xce3e65<0x64&&_0xce3e65>=0x0&&_0x46fa17['setUTCFullYear'](_0x46fa17['getUTCFullYear']()-0x76c);const _0x1187d7=_0x46fa17['getUTCDay']();return 0x0===_0x1187d7?0x7:_0x1187d7;}function Lu(_0x5e85d9,_0x50626d,_0x3e4a98){return _0x3e4a98+(rd(_0x5e85d9)?Pu:Ru)[_0x50626d-0x1];}function $u(_0x4e847b,_0x21b4c9){const _0x1d7808=rd(_0x4e847b)?Pu:Ru,_0x109e3c=_0x1d7808['findIndex'](_0x45b62=>_0x45b62<_0x21b4c9);return{'month':_0x109e3c+0x1,'day':_0x21b4c9-_0x1d7808[_0x109e3c]};}function Du(_0x1bf996,_0x1758bc){return(_0x1bf996-_0x1758bc+0x7)%0x7+0x1;}function Qu(_0x190a5e,_0x581680=0x4,_0x497644=0x1){const {year:_0x27de6c,month:_0x405aa5,day:_0x14914d}=_0x190a5e,_0x2d1fe8=Lu(_0x27de6c,_0x405aa5,_0x14914d),_0x1aa701=Du(Mu(_0x27de6c,_0x405aa5,_0x14914d),_0x497644);let _0x45d98e,_0x440d98=Math['floor']((_0x2d1fe8-_0x1aa701+0xe-_0x581680)/0x7);return _0x440d98<0x1?(_0x45d98e=_0x27de6c-0x1,_0x440d98=hd(_0x45d98e,_0x581680,_0x497644)):_0x440d98>hd(_0x27de6c,_0x581680,_0x497644)?(_0x45d98e=_0x27de6c+0x1,_0x440d98=0x1):_0x45d98e=_0x27de6c,{'weekYear':_0x45d98e,'weekNumber':_0x440d98,'weekday':_0x1aa701,...Od(_0x190a5e)};}function ju(_0x1e5f18,_0x595d21=0x4,_0x1333c7=0x1){const {weekYear:_0x21ba1d,weekNumber:_0x25b430,weekday:_0x124b17}=_0x1e5f18,_0x2f01d7=Du(Mu(_0x21ba1d,0x1,_0x595d21),_0x1333c7),_0xc407e2=od(_0x21ba1d);let _0x27d53f,_0x1d4f4d=0x7*_0x25b430+_0x124b17-_0x2f01d7-0x7+_0x595d21;_0x1d4f4d<0x1?(_0x27d53f=_0x21ba1d-0x1,_0x1d4f4d+=od(_0x27d53f)):_0x1d4f4d>_0xc407e2?(_0x27d53f=_0x21ba1d+0x1,_0x1d4f4d-=od(_0x21ba1d)):_0x27d53f=_0x21ba1d;const {month:_0x314130,day:_0x4e5ae9}=$u(_0x27d53f,_0x1d4f4d);return{'year':_0x27d53f,'month':_0x314130,'day':_0x4e5ae9,...Od(_0x1e5f18)};}function Uu(_0x52c960){const {year:_0x4868ad,month:_0x5cfe04,day:_0x159697}=_0x52c960;return{'year':_0x4868ad,'ordinal':Lu(_0x4868ad,_0x5cfe04,_0x159697),...Od(_0x52c960)};}function Vu(_0x2b2fdc){const {year:_0x1fdc95,ordinal:_0x30407a}=_0x2b2fdc,{month:_0x8cc8d4,day:_0x1c1762}=$u(_0x1fdc95,_0x30407a);return{'year':_0x1fdc95,'month':_0x8cc8d4,'day':_0x1c1762,...Od(_0x2b2fdc)};}function Bu(_0x27b956,_0x5742a5){if(Zu(_0x27b956['localWeekday'])&&Zu(_0x27b956['localWeekNumber'])&&Zu(_0x27b956['localWeekYear']))return{'minDaysInFirstWeek':0x4,'startOfWeek':0x1};if(!Zu(_0x27b956['weekday'])||!Zu(_0x27b956['weekNumber'])||!Zu(_0x27b956['weekYear']))throw new ph('Cannot\x20mix\x20locale-based\x20week\x20fields\x20with\x20ISO-based\x20week\x20fields');return Zu(_0x27b956['localWeekday'])||(_0x27b956['weekday']=_0x27b956['localWeekday']),Zu(_0x27b956['localWeekNumber'])||(_0x27b956['weekNumber']=_0x27b956['localWeekNumber']),Zu(_0x27b956['localWeekYear'])||(_0x27b956['weekYear']=_0x27b956['localWeekYear']),delete _0x27b956['localWeekday'],delete _0x27b956['localWeekNumber'],delete _0x27b956['localWeekYear'],{'minDaysInFirstWeek':_0x5742a5['getMinDaysInFirstWeek'](),'startOfWeek':_0x5742a5['getStartOfWeek']()};}function Hu(_0x4d74f7){const _0x2a43a1=Xu(_0x4d74f7['year']),_0x41f1ba=Ju(_0x4d74f7['month'],0x1,0xc),_0x263f71=Ju(_0x4d74f7['day'],0x1,ad(_0x4d74f7['year'],_0x4d74f7['month']));return _0x2a43a1?_0x41f1ba?!_0x263f71&&Nu('day',_0x4d74f7['day']):Nu('month',_0x4d74f7['month']):Nu('year',_0x4d74f7['year']);}function Fu(_0x599686){const {hour:_0x1f6bc1,minute:_0xb0f955,second:_0x1c3d4b,millisecond:_0x557f8a}=_0x599686,_0x3d382d=Ju(_0x1f6bc1,0x0,0x17)||0x18===_0x1f6bc1&&0x0===_0xb0f955&&0x0===_0x1c3d4b&&0x0===_0x557f8a,_0x2ef28d=Ju(_0xb0f955,0x0,0x3b),_0x2bc221=Ju(_0x1c3d4b,0x0,0x3b),_0x50d83c=Ju(_0x557f8a,0x0,0x3e7);return _0x3d382d?_0x2ef28d?_0x2bc221?!_0x50d83c&&Nu('millisecond',_0x557f8a):Nu('second',_0x1c3d4b):Nu('minute',_0xb0f955):Nu('hour',_0x1f6bc1);}function Zu(_0xbaae40){return void 0x0===_0xbaae40;}function Gu(_0x173761){return'number'==typeof _0x173761;}function Xu(_0xe591e9){return'number'==typeof _0xe591e9&&_0xe591e9%0x1==0x0;}function qu(){try{return'undefined'!=typeof Intl&&!!Intl['RelativeTimeFormat'];}catch(_0x356ad4){return!0x1;}}function Wu(){try{return'undefined'!=typeof Intl&&!!Intl['Locale']&&('weekInfo'in Intl['Locale']['prototype']||'getWeekInfo'in Intl['Locale']['prototype']);}catch(_0x132ce1){return!0x1;}}function zu(_0x4c4e10,_0x373a0f,_0x330832){if(0x0!==_0x4c4e10['length'])return _0x4c4e10['reduce']((_0x6543b2,_0x1a7af7)=>{const _0x3c234f=[_0x373a0f(_0x1a7af7),_0x1a7af7];return _0x6543b2&&_0x330832(_0x6543b2[0x0],_0x3c234f[0x0])===_0x6543b2[0x0]?_0x6543b2:_0x3c234f;},null)[0x1];}function Yu(_0x4d06b5,_0x345218){return Object['prototype']['hasOwnProperty']['call'](_0x4d06b5,_0x345218);}function Ku(_0x346448){if(null==_0x346448)return null;if('object'!=typeof _0x346448)throw new Oh('Week\x20settings\x20must\x20be\x20an\x20object');if(!Ju(_0x346448['firstDay'],0x1,0x7)||!Ju(_0x346448['minimalDays'],0x1,0x7)||!Array['isArray'](_0x346448['weekend'])||_0x346448['weekend']['some'](_0x508b9a=>!Ju(_0x508b9a,0x1,0x7)))throw new Oh('Invalid\x20week\x20settings');return{'firstDay':_0x346448['firstDay'],'minimalDays':_0x346448['minimalDays'],'weekend':Array['from'](_0x346448['weekend'])};}function Ju(_0x54ddf0,_0x5d4e35,_0x3a652a){return Xu(_0x54ddf0)&&_0x54ddf0>=_0x5d4e35&&_0x54ddf0<=_0x3a652a;}function td(_0x55f5ef,_0x26784b=0x2){let _0x599410;return _0x599410=_0x55f5ef<0x0?'-'+(''+-_0x55f5ef)['padStart'](_0x26784b,'0'):(''+_0x55f5ef)['padStart'](_0x26784b,'0'),_0x599410;}function ed(_0x52a158){return Zu(_0x52a158)||null===_0x52a158||''===_0x52a158?void 0x0:parseInt(_0x52a158,0xa);}function id(_0x347ced){return Zu(_0x347ced)||null===_0x347ced||''===_0x347ced?void 0x0:parseFloat(_0x347ced);}function sd(_0x1cb29c){if(!Zu(_0x1cb29c)&&null!==_0x1cb29c&&''!==_0x1cb29c){const _0x3b93d5=0x3e8*parseFloat('0.'+_0x1cb29c);return Math['floor'](_0x3b93d5);}}function nd(_0x2560df,_0x1c805a,_0x61c563=!0x1){const _0x33e060=0xa**_0x1c805a;return(_0x61c563?Math['trunc']:Math['round'])(_0x2560df*_0x33e060)/_0x33e060;}function rd(_0xe3f395){return _0xe3f395%0x4==0x0&&(_0xe3f395%0x64!=0x0||_0xe3f395%0x190==0x0);}function od(_0x5710ae){return rd(_0x5710ae)?0x16e:0x16d;}function ad(_0x7ef62c,_0x1098dc){const _0xa5ac9e=function(_0x114fc6,_0x3e8e07){return _0x114fc6-_0x3e8e07*Math['floor'](_0x114fc6/_0x3e8e07);}(_0x1098dc-0x1,0xc)+0x1;return 0x2===_0xa5ac9e?rd(_0x7ef62c+(_0x1098dc-_0xa5ac9e)/0xc)?0x1d:0x1c:[0x1f,null,0x1f,0x1e,0x1f,0x1e,0x1f,0x1f,0x1e,0x1f,0x1e,0x1f][_0xa5ac9e-0x1];}function cd(_0x58e8c7){let _0x29c47c=Date['UTC'](_0x58e8c7['year'],_0x58e8c7['month']-0x1,_0x58e8c7['day'],_0x58e8c7['hour'],_0x58e8c7['minute'],_0x58e8c7['second'],_0x58e8c7['millisecond']);return _0x58e8c7['year']<0x64&&_0x58e8c7['year']>=0x0&&(_0x29c47c=new Date(_0x29c47c),_0x29c47c['setUTCFullYear'](_0x58e8c7['year'],_0x58e8c7['month']-0x1,_0x58e8c7['day'])),+_0x29c47c;}function ld(_0x4c9389,_0x5cbd39,_0x3a929c){return-Du(Mu(_0x4c9389,0x1,_0x5cbd39),_0x3a929c)+_0x5cbd39-0x1;}function hd(_0xf86498,_0x14d932=0x4,_0x1b864d=0x1){const _0xbc1531=ld(_0xf86498,_0x14d932,_0x1b864d),_0x2295ff=ld(_0xf86498+0x1,_0x14d932,_0x1b864d);return(od(_0xf86498)-_0xbc1531+_0x2295ff)/0x7;}function ud(_0x58c142){return _0x58c142>0x63?_0x58c142:_0x58c142>xu['twoDigitCutoffYear']?0x76c+_0x58c142:0x7d0+_0x58c142;}function dd(_0x2d8752,_0x58618b,_0x23b47c,_0x5c3055=null){const _0x3323da=new Date(_0x2d8752),_0x5bf009={'hourCycle':'h23','year':'numeric','month':'2-digit','day':'2-digit','hour':'2-digit','minute':'2-digit'};_0x5c3055&&(_0x5bf009['timeZone']=_0x5c3055);const _0x4849cf={'timeZoneName':_0x58618b,..._0x5bf009},_0x42278e=new Intl['DateTimeFormat'](_0x23b47c,_0x4849cf)['formatToParts'](_0x3323da)['find'](_0x4ec9f8=>'timezonename'===_0x4ec9f8['type']['toLowerCase']());return _0x42278e?_0x42278e['value']:null;}function fd(_0x32b9b0,_0x1a1f97){let _0x1dde12=parseInt(_0x32b9b0,0xa);Number['isNaN'](_0x1dde12)&&(_0x1dde12=0x0);const _0x441178=parseInt(_0x1a1f97,0xa)||0x0;return 0x3c*_0x1dde12+(_0x1dde12<0x0||Object['is'](_0x1dde12,-0x0)?-_0x441178:_0x441178);}function md(_0x5a9db6){const _0x213588=Number(_0x5a9db6);if('boolean'==typeof _0x5a9db6||''===_0x5a9db6||Number['isNaN'](_0x213588))throw new Oh('Invalid\x20unit\x20value\x20'+_0x5a9db6);return _0x213588;}function pd(_0x2f82bf,_0x48ff71){const _0x1d8fd8={};for(const _0x255820 in _0x2f82bf)if(Yu(_0x2f82bf,_0x255820)){const _0x1142be=_0x2f82bf[_0x255820];if(null==_0x1142be)continue;_0x1d8fd8[_0x48ff71(_0x255820)]=md(_0x1142be);}return _0x1d8fd8;}function gd(_0x32188a,_0x4bdb3b){const _0x481891=Math['trunc'](Math['abs'](_0x32188a/0x3c)),_0x1523e4=Math['trunc'](Math['abs'](_0x32188a%0x3c)),_0x232d0c=_0x32188a>=0x0?'+':'-';switch(_0x4bdb3b){case'short':return''+_0x232d0c+td(_0x481891,0x2)+':'+td(_0x1523e4,0x2);case'narrow':return''+_0x232d0c+_0x481891+(_0x1523e4>0x0?':'+_0x1523e4:'');case'techie':return''+_0x232d0c+td(_0x481891,0x2)+td(_0x1523e4,0x2);default:throw new RangeError('Value\x20format\x20'+_0x4bdb3b+'\x20is\x20out\x20of\x20range\x20for\x20property\x20format');}}function Od(_0x501b44){return function(_0x3ce8bc,_0x559790){return _0x559790['reduce']((_0x1a6257,_0x299ff4)=>(_0x1a6257[_0x299ff4]=_0x3ce8bc[_0x299ff4],_0x1a6257),{});}(_0x501b44,['hour','minute','second','millisecond']);}const wd=['January','February','March','April','May','June','July','August','September','October','November','December'],bd=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],yd=['J','F','M','A','M','J','J','A','S','O','N','D'];function vd(_0x1f8109){switch(_0x1f8109){case'narrow':return[...yd];case'short':return[...bd];case'long':return[...wd];case'numeric':return['1','2','3','4','5','6','7','8','9','10','11','12'];case'2-digit':return['01','02','03','04','05','06','07','08','09','10','11','12'];default:return null;}}const _d=['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'],Ed=['Mon','Tue','Wed','Thu','Fri','Sat','Sun'],Td=['M','T','W','T','F','S','S'];function Ad(_0x1cf547){switch(_0x1cf547){case'narrow':return[...Td];case'short':return[...Ed];case'long':return[..._d];case'numeric':return['1','2','3','4','5','6','7'];default:return null;}}const Sd=['AM','PM'],Id=['Before\x20Christ','Anno\x20Domini'],kd=['BC','AD'],xd=['B','A'];function Cd(_0x2aa076){switch(_0x2aa076){case'narrow':return[...xd];case'short':return[...kd];case'long':return[...Id];default:return null;}}function Rd(_0x14dca7,_0x1bf2a4){let _0x16b7c6='';for(const _0x5efd9d of _0x14dca7)_0x5efd9d['literal']?_0x16b7c6+=_0x5efd9d['val']:_0x16b7c6+=_0x1bf2a4(_0x5efd9d['val']);return _0x16b7c6;}const Pd={'D':_h,'DD':Eh,'DDD':Ah,'DDDD':Sh,'t':Ih,'tt':kh,'ttt':xh,'tttt':Ch,'T':Rh,'TT':Ph,'TTT':Nh,'TTTT':Mh,'f':Lh,'ff':Dh,'fff':Uh,'ffff':Bh,'F':$h,'FF':Qh,'FFF':Vh,'FFFF':Hh};var Nd=class Formatter{static create(_0xb4847e,_0x18407d={}){return new Formatter(_0xb4847e,_0x18407d);}static parseFormat(_0xe9a5b){let _0x37f1b0=null,_0x526cba='',_0x531666=!0x1;const _0x3344bf=[];for(let _0x27643d=0x0;_0x27643d<_0xe9a5b['length'];_0x27643d++){const _0x38239c=_0xe9a5b['charAt'](_0x27643d);'\x27'===_0x38239c?(_0x526cba['length']>0x0&&_0x3344bf['push']({'literal':_0x531666||/^\s+$/['test'](_0x526cba),'val':_0x526cba}),_0x37f1b0=null,_0x526cba='',_0x531666=!_0x531666):_0x531666||_0x38239c===_0x37f1b0?_0x526cba+=_0x38239c:(_0x526cba['length']>0x0&&_0x3344bf['push']({'literal':/^\s+$/['test'](_0x526cba),'val':_0x526cba}),_0x526cba=_0x38239c,_0x37f1b0=_0x38239c);}return _0x526cba['length']>0x0&&_0x3344bf['push']({'literal':_0x531666||/^\s+$/['test'](_0x526cba),'val':_0x526cba}),_0x3344bf;}static macroTokenToFormatOpts(_0x424605){return Pd[_0x424605];}constructor(_0x4f6249,_0x275546){this['opts']=_0x275546,this['loc']=_0x4f6249,this['systemLoc']=null;}formatWithSystemDefault(_0x3430f3,_0xe21786){return null===this['systemLoc']&&(this['systemLoc']=this['loc']['redefaultToSystem']()),this['systemLoc']['dtFormatter'](_0x3430f3,{...this['opts'],..._0xe21786})['format']();}dtFormatter(_0x4c4710,_0x74d573={}){return this['loc']['dtFormatter'](_0x4c4710,{...this['opts'],..._0x74d573});}formatDateTime(_0x1b3976,_0x24b4be){return this['dtFormatter'](_0x1b3976,_0x24b4be)['format']();}formatDateTimeParts(_0x1fa3da,_0x45e89b){return this['dtFormatter'](_0x1fa3da,_0x45e89b)['formatToParts']();}formatInterval(_0x37aeef,_0x2e41ab){return this['dtFormatter'](_0x37aeef['start'],_0x2e41ab)['dtf']['formatRange'](_0x37aeef['start']['toJSDate'](),_0x37aeef['end']['toJSDate']());}resolvedOptions(_0x5c529a,_0x1bcc9d){return this['dtFormatter'](_0x5c529a,_0x1bcc9d)['resolvedOptions']();}['num'](_0x5aa1b6,_0x1324d2=0x0){if(this['opts']['forceSimple'])return td(_0x5aa1b6,_0x1324d2);const _0x8e0dc2={...this['opts']};return _0x1324d2>0x0&&(_0x8e0dc2['padTo']=_0x1324d2),this['loc']['numberFormatter'](_0x8e0dc2)['format'](_0x5aa1b6);}formatDateTimeFromString(_0xf95656,_0x3f0fed){const _0x34a2a7='en'===this['loc']['listingMode'](),_0x46c783=this['loc']['outputCalendar']&&'gregory'!==this['loc']['outputCalendar'],_0x48a9de=(_0x462e97,_0x4aeb1d)=>this['loc']['extract'](_0xf95656,_0x462e97,_0x4aeb1d),_0x3f0ee3=_0x4de7f=>_0xf95656['isOffsetFixed']&&0x0===_0xf95656['offset']&&_0x4de7f['allowZ']?'Z':_0xf95656['isValid']?_0xf95656['zone']['formatOffset'](_0xf95656['ts'],_0x4de7f['format']):'',_0x385788=()=>_0x34a2a7?function(_0x4de206){return Sd[_0x4de206['hour']<0xc?0x0:0x1];}(_0xf95656):_0x48a9de({'hour':'numeric','hourCycle':'h12'},'dayperiod'),_0x662554=(_0x3781d1,_0x2596a5)=>_0x34a2a7?function(_0x55df35,_0x4d575c){return vd(_0x4d575c)[_0x55df35['month']-0x1];}(_0xf95656,_0x3781d1):_0x48a9de(_0x2596a5?{'month':_0x3781d1}:{'month':_0x3781d1,'day':'numeric'},'month'),_0x3f390d=(_0x3f1d5d,_0x5341d3)=>_0x34a2a7?function(_0x990559,_0x4aa9a1){return Ad(_0x4aa9a1)[_0x990559['weekday']-0x1];}(_0xf95656,_0x3f1d5d):_0x48a9de(_0x5341d3?{'weekday':_0x3f1d5d}:{'weekday':_0x3f1d5d,'month':'long','day':'numeric'},'weekday'),_0x429118=_0x35cc29=>{const _0x43c06f=Formatter['macroTokenToFormatOpts'](_0x35cc29);return _0x43c06f?this['formatWithSystemDefault'](_0xf95656,_0x43c06f):_0x35cc29;},_0x4610f4=_0x58e0e4=>_0x34a2a7?function(_0x1d7c3f,_0x50aa4a){return Cd(_0x50aa4a)[_0x1d7c3f['year']<0x0?0x0:0x1];}(_0xf95656,_0x58e0e4):_0x48a9de({'era':_0x58e0e4},'era');return Rd(Formatter['parseFormat'](_0x3f0fed),_0x218668=>{switch(_0x218668){case'S':return this['num'](_0xf95656['millisecond']);case'u':case'SSS':return this['num'](_0xf95656['millisecond'],0x3);case's':return this['num'](_0xf95656['second']);case'ss':return this['num'](_0xf95656['second'],0x2);case'uu':return this['num'](Math['floor'](_0xf95656['millisecond']/0xa),0x2);case'uuu':return this['num'](Math['floor'](_0xf95656['millisecond']/0x64));case'm':return this['num'](_0xf95656['minute']);case'mm':return this['num'](_0xf95656['minute'],0x2);case'h':return this['num'](_0xf95656['hour']%0xc==0x0?0xc:_0xf95656['hour']%0xc);case'hh':return this['num'](_0xf95656['hour']%0xc==0x0?0xc:_0xf95656['hour']%0xc,0x2);case'H':return this['num'](_0xf95656['hour']);case'HH':return this['num'](_0xf95656['hour'],0x2);case'Z':return _0x3f0ee3({'format':'narrow','allowZ':this['opts']['allowZ']});case'ZZ':return _0x3f0ee3({'format':'short','allowZ':this['opts']['allowZ']});case'ZZZ':return _0x3f0ee3({'format':'techie','allowZ':this['opts']['allowZ']});case'ZZZZ':return _0xf95656['zone']['offsetName'](_0xf95656['ts'],{'format':'short','locale':this['loc']['locale']});case'ZZZZZ':return _0xf95656['zone']['offsetName'](_0xf95656['ts'],{'format':'long','locale':this['loc']['locale']});case'z':return _0xf95656['zoneName'];case'a':return _0x385788();case'd':return _0x46c783?_0x48a9de({'day':'numeric'},'day'):this['num'](_0xf95656['day']);case'dd':return _0x46c783?_0x48a9de({'day':'2-digit'},'day'):this['num'](_0xf95656['day'],0x2);case'c':case'E':return this['num'](_0xf95656['weekday']);case'ccc':return _0x3f390d('short',!0x0);case'cccc':return _0x3f390d('long',!0x0);case'ccccc':return _0x3f390d('narrow',!0x0);case'EEE':return _0x3f390d('short',!0x1);case'EEEE':return _0x3f390d('long',!0x1);case'EEEEE':return _0x3f390d('narrow',!0x1);case'L':return _0x46c783?_0x48a9de({'month':'numeric','day':'numeric'},'month'):this['num'](_0xf95656['month']);case'LL':return _0x46c783?_0x48a9de({'month':'2-digit','day':'numeric'},'month'):this['num'](_0xf95656['month'],0x2);case'LLL':return _0x662554('short',!0x0);case'LLLL':return _0x662554('long',!0x0);case'LLLLL':return _0x662554('narrow',!0x0);case'M':return _0x46c783?_0x48a9de({'month':'numeric'},'month'):this['num'](_0xf95656['month']);case'MM':return _0x46c783?_0x48a9de({'month':'2-digit'},'month'):this['num'](_0xf95656['month'],0x2);case'MMM':return _0x662554('short',!0x1);case'MMMM':return _0x662554('long',!0x1);case'MMMMM':return _0x662554('narrow',!0x1);case'y':return _0x46c783?_0x48a9de({'year':'numeric'},'year'):this['num'](_0xf95656['year']);case'yy':return _0x46c783?_0x48a9de({'year':'2-digit'},'year'):this['num'](_0xf95656['year']['toString']()['slice'](-0x2),0x2);case'yyyy':return _0x46c783?_0x48a9de({'year':'numeric'},'year'):this['num'](_0xf95656['year'],0x4);case'yyyyyy':return _0x46c783?_0x48a9de({'year':'numeric'},'year'):this['num'](_0xf95656['year'],0x6);case'G':return _0x4610f4('short');case'GG':return _0x4610f4('long');case'GGGGG':return _0x4610f4('narrow');case'kk':return this['num'](_0xf95656['weekYear']['toString']()['slice'](-0x2),0x2);case'kkkk':return this['num'](_0xf95656['weekYear'],0x4);case'W':return this['num'](_0xf95656['weekNumber']);case'WW':return this['num'](_0xf95656['weekNumber'],0x2);case'n':return this['num'](_0xf95656['localWeekNumber']);case'nn':return this['num'](_0xf95656['localWeekNumber'],0x2);case'ii':return this['num'](_0xf95656['localWeekYear']['toString']()['slice'](-0x2),0x2);case'iiii':return this['num'](_0xf95656['localWeekYear'],0x4);case'o':return this['num'](_0xf95656['ordinal']);case'ooo':return this['num'](_0xf95656['ordinal'],0x3);case'q':return this['num'](_0xf95656['quarter']);case'qq':return this['num'](_0xf95656['quarter'],0x2);case'X':return this['num'](Math['floor'](_0xf95656['ts']/0x3e8));case'x':return this['num'](_0xf95656['ts']);default:return _0x429118(_0x218668);}});}formatDurationFromString(_0x3c361b,_0x16ddc1){const _0x2ca002=_0x230303=>{switch(_0x230303[0x0]){case'S':return'millisecond';case's':return'second';case'm':return'minute';case'h':return'hour';case'd':return'day';case'w':return'week';case'M':return'month';case'y':return'year';default:return null;}},_0x284d2b=Formatter['parseFormat'](_0x16ddc1),_0x52e464=_0x284d2b['reduce']((_0x3147af,{literal:_0x5d6534,val:_0x819d3a})=>_0x5d6534?_0x3147af:_0x3147af['concat'](_0x819d3a),[]);return Rd(_0x284d2b,(_0x4ab9eb=>_0x17823b=>{const _0x8879ac=_0x2ca002(_0x17823b);return _0x8879ac?this['num'](_0x4ab9eb['get'](_0x8879ac),_0x17823b['length']):_0x17823b;})(_0x3c361b['shiftTo'](..._0x52e464['map'](_0x2ca002)['filter'](t=>t))));}};const Md=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Ld(..._0x4eadc0){const _0x231ced=_0x4eadc0['reduce']((_0x502469,_0x3fd938)=>_0x502469+_0x3fd938['source'],'');return RegExp('^'+_0x231ced+'$');}function $d(..._0x3f0bb6){return _0x282404=>_0x3f0bb6['reduce'](([_0x167b27,_0x1ee590,_0x387439],_0x505728)=>{const [_0x4a716e,_0x595a82,_0x472ca3]=_0x505728(_0x282404,_0x387439);return[{..._0x167b27,..._0x4a716e},_0x595a82||_0x1ee590,_0x472ca3];},[{},null,0x1])['slice'](0x0,0x2);}function Dd(_0x33d9f5,..._0x2d53ec){if(null==_0x33d9f5)return[null,null];for(const [_0x29603c,_0x2f50aa]of _0x2d53ec){const _0x7da47d=_0x29603c['exec'](_0x33d9f5);if(_0x7da47d)return _0x2f50aa(_0x7da47d);}return[null,null];}function Qd(..._0x45a9c1){return(_0x3538c,_0x4e1618)=>{const _0x44475d={};let _0x4a7f99;for(_0x4a7f99=0x0;_0x4a7f99<_0x45a9c1['length'];_0x4a7f99++)_0x44475d[_0x45a9c1[_0x4a7f99]]=ed(_0x3538c[_0x4e1618+_0x4a7f99]);return[_0x44475d,null,_0x4e1618+_0x4a7f99];};}const jd=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Ud=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Vd=RegExp(''+Ud['source']+('(?:'+jd['source']+'?(?:\x5c[('+Md['source']+')\x5c])?)?')),Bd=RegExp('(?:T'+Vd['source']+')?'),Hd=Qd('weekYear','weekNumber','weekDay'),Fd=Qd('year','ordinal'),Zd=RegExp(Ud['source']+'\x20?(?:'+jd['source']+'|('+Md['source']+'))?'),Gd=RegExp('(?:\x20'+Zd['source']+')?');function Xd(_0x19e792,_0x3cc797,_0x5aee40){const _0x280c70=_0x19e792[_0x3cc797];return Zu(_0x280c70)?_0x5aee40:ed(_0x280c70);}function qd(_0x4e6bc2,_0x2bb488){return[{'hours':Xd(_0x4e6bc2,_0x2bb488,0x0),'minutes':Xd(_0x4e6bc2,_0x2bb488+0x1,0x0),'seconds':Xd(_0x4e6bc2,_0x2bb488+0x2,0x0),'milliseconds':sd(_0x4e6bc2[_0x2bb488+0x3])},null,_0x2bb488+0x4];}function Wd(_0x3fb285,_0x527fa2){const _0x48be62=!_0x3fb285[_0x527fa2]&&!_0x3fb285[_0x527fa2+0x1],_0x201d5e=fd(_0x3fb285[_0x527fa2+0x1],_0x3fb285[_0x527fa2+0x2]);return[{},_0x48be62?null:fu['instance'](_0x201d5e),_0x527fa2+0x3];}function zd(_0x3222e7,_0x242ac9){return[{},_0x3222e7[_0x242ac9]?zh['create'](_0x3222e7[_0x242ac9]):null,_0x242ac9+0x1];}const Yd=RegExp('^T?'+Ud['source']+'$'),Kd=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Jd(_0x316964){const [_0x5bff04,_0x402963,_0x2ba732,_0x114b8b,_0x5ba8e9,_0x4497cd,_0x4517a8,_0x419862,_0x21daa1]=_0x316964,_0x388500='-'===_0x5bff04[0x0],_0x3a4f60=_0x419862&&'-'===_0x419862[0x0],_0x59add2=(_0x10970a,_0x834921=!0x1)=>void 0x0!==_0x10970a&&(_0x834921||_0x10970a&&_0x388500)?-_0x10970a:_0x10970a;return[{'years':_0x59add2(id(_0x402963)),'months':_0x59add2(id(_0x2ba732)),'weeks':_0x59add2(id(_0x114b8b)),'days':_0x59add2(id(_0x5ba8e9)),'hours':_0x59add2(id(_0x4497cd)),'minutes':_0x59add2(id(_0x4517a8)),'seconds':_0x59add2(id(_0x419862),'-0'===_0x419862),'milliseconds':_0x59add2(sd(_0x21daa1),_0x3a4f60)}];}const tf={'GMT':0x0,'EDT':-0xf0,'EST':-0x12c,'CDT':-0x12c,'CST':-0x168,'MDT':-0x168,'MST':-0x1a4,'PDT':-0x1a4,'PST':-0x1e0};function ef(_0x44cf33,_0x1405bc,_0x2f9d90,_0x1003cf,_0x404bdf,_0x15091d,_0x566a60){const _0x1bce46={'year':0x2===_0x1405bc['length']?ud(ed(_0x1405bc)):ed(_0x1405bc),'month':bd['indexOf'](_0x2f9d90)+0x1,'day':ed(_0x1003cf),'hour':ed(_0x404bdf),'minute':ed(_0x15091d)};return _0x566a60&&(_0x1bce46['second']=ed(_0x566a60)),_0x44cf33&&(_0x1bce46['weekday']=_0x44cf33['length']>0x3?_d['indexOf'](_0x44cf33)+0x1:Ed['indexOf'](_0x44cf33)+0x1),_0x1bce46;}const sf=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function nf(_0x7f39da){const [,_0x2fdc8f,_0x19e42a,_0x4f7186,_0xb29484,_0x19e7bf,_0x42f691,_0xe1e22c,_0x22e540,_0x1ce756,_0x18d3db,_0x24afb6]=_0x7f39da,_0x31f0f3=ef(_0x2fdc8f,_0xb29484,_0x4f7186,_0x19e42a,_0x19e7bf,_0x42f691,_0xe1e22c);let _0x2c55d2;return _0x2c55d2=_0x22e540?tf[_0x22e540]:_0x1ce756?0x0:fd(_0x18d3db,_0x24afb6),[_0x31f0f3,new fu(_0x2c55d2)];}const rf=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,of=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,af=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function cf(_0x4c4da5){const [,_0x2804af,_0x588d50,_0x1c94bf,_0x592921,_0x27fc58,_0x5db283,_0x2cb3b3]=_0x4c4da5;return[ef(_0x2804af,_0x592921,_0x1c94bf,_0x588d50,_0x27fc58,_0x5db283,_0x2cb3b3),fu['utcInstance']];}function lf(_0x6c74f3){const [,_0x5b0f1a,_0x17321,_0x13e45e,_0x155cdb,_0x3995ad,_0x5de37b,_0x1d1bb0]=_0x6c74f3;return[ef(_0x5b0f1a,_0x1d1bb0,_0x17321,_0x13e45e,_0x155cdb,_0x3995ad,_0x5de37b),fu['utcInstance']];}const hf=Ld(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Bd),uf=Ld(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Bd),df=Ld(/(\d{4})-?(\d{3})/,Bd),ff=Ld(Vd),mf=$d(function(_0x1d2a6c,_0x22ee85){return[{'year':Xd(_0x1d2a6c,_0x22ee85),'month':Xd(_0x1d2a6c,_0x22ee85+0x1,0x1),'day':Xd(_0x1d2a6c,_0x22ee85+0x2,0x1)},null,_0x22ee85+0x3];},qd,Wd,zd),pf=$d(Hd,qd,Wd,zd),gf=$d(Fd,qd,Wd,zd),Of=$d(qd,Wd,zd),wf=$d(qd),bf=Ld(/(\d{4})-(\d\d)-(\d\d)/,Gd),yf=Ld(Zd),vf=$d(qd,Wd,zd),_f='Invalid\x20Duration',Ef={'weeks':{'days':0x7,'hours':0xa8,'minutes':0x2760,'seconds':0x93a80,'milliseconds':0x240c8400},'days':{'hours':0x18,'minutes':0x5a0,'seconds':0x15180,'milliseconds':0x5265c00},'hours':{'minutes':0x3c,'seconds':0xe10,'milliseconds':0x36ee80},'minutes':{'seconds':0x3c,'milliseconds':0xea60},'seconds':{'milliseconds':0x3e8}},Tf={'years':{'quarters':0x4,'months':0xc,'weeks':0x34,'days':0x16d,'hours':0x2238,'minutes':0x80520,'seconds':0x1e13380,'milliseconds':0x757b12c00},'quarters':{'months':0x3,'weeks':0xd,'days':0x5b,'hours':0x888,'minutes':0x1ffe0,'seconds':0x77f880,'milliseconds':0x1d4a2b400},'months':{'weeks':0x4,'days':0x1e,'hours':0x2d0,'minutes':0xa8c0,'seconds':0x278d00,'milliseconds':0x9a7ec800},...Ef},Af=365.2425,Sf=30.436875,If={'years':{'quarters':0x4,'months':0xc,'weeks':52.1775,'days':Af,'hours':8765.82,'minutes':525949.2,'seconds':525949.2*0x3c,'milliseconds':525949.2*0x3c*0x3e8},'quarters':{'months':0x3,'weeks':13.044375,'days':91.310625,'hours':2191.455,'minutes':131487.3,'seconds':525949.2*0x3c/0x4,'milliseconds':7889237999.999999},'months':{'weeks':4.3481250000000005,'days':Sf,'hours':730.485,'minutes':43829.1,'seconds':0x282072,'milliseconds':0x9cbebd50},...Ef},kf=['years','quarters','months','weeks','days','hours','minutes','seconds','milliseconds'],xf=kf['slice'](0x0)['reverse']();function Cf(_0x304807,_0x1fee63,_0xc309c0=!0x1){const _0x531210={'values':_0xc309c0?_0x1fee63['values']:{..._0x304807['values'],..._0x1fee63['values']||{}},'loc':_0x304807['loc']['clone'](_0x1fee63['loc']),'conversionAccuracy':_0x1fee63['conversionAccuracy']||_0x304807['conversionAccuracy'],'matrix':_0x1fee63['matrix']||_0x304807['matrix']};return new Nf(_0x531210);}function Rf(_0xede4fc,_0x2c22d5){let _0x358a60=_0x2c22d5['milliseconds']??0x0;for(const _0x4533fb of xf['slice'](0x1))_0x2c22d5[_0x4533fb]&&(_0x358a60+=_0x2c22d5[_0x4533fb]*_0xede4fc[_0x4533fb]['milliseconds']);return _0x358a60;}function Pf(_0x11cb1b,_0x4b4676){const _0x318aa6=Rf(_0x11cb1b,_0x4b4676)<0x0?-0x1:0x1;kf['reduceRight']((_0x1dcfc4,_0x3204ff)=>{if(Zu(_0x4b4676[_0x3204ff]))return _0x1dcfc4;if(_0x1dcfc4){const _0x113464=_0x4b4676[_0x1dcfc4]*_0x318aa6,_0x27f46c=_0x11cb1b[_0x3204ff][_0x1dcfc4],_0x11faa0=Math['floor'](_0x113464/_0x27f46c);_0x4b4676[_0x3204ff]+=_0x11faa0*_0x318aa6,_0x4b4676[_0x1dcfc4]-=_0x11faa0*_0x27f46c*_0x318aa6;}return _0x3204ff;},null),kf['reduce']((_0xbbe1c6,_0x51d55e)=>{if(Zu(_0x4b4676[_0x51d55e]))return _0xbbe1c6;if(_0xbbe1c6){const _0x4c0211=_0x4b4676[_0xbbe1c6]%0x1;_0x4b4676[_0xbbe1c6]-=_0x4c0211,_0x4b4676[_0x51d55e]+=_0x4c0211*_0x11cb1b[_0xbbe1c6][_0x51d55e];}return _0x51d55e;},null);}var Nf=class Duration{constructor(_0xff1bcb){const _0x2d2ca9='longterm'===_0xff1bcb['conversionAccuracy']||!0x1;let _0xd2df32=_0x2d2ca9?If:Tf;_0xff1bcb['matrix']&&(_0xd2df32=_0xff1bcb['matrix']),this['values']=_0xff1bcb['values'],this['loc']=_0xff1bcb['loc']||uu['create'](),this['conversionAccuracy']=_0x2d2ca9?'longterm':'casual',this['invalid']=_0xff1bcb['invalid']||null,this['matrix']=_0xd2df32,this['isLuxonDuration']=!0x0;}static['fromMillis'](_0x2b58b3,_0x1053bc){return Duration['fromObject']({'milliseconds':_0x2b58b3},_0x1053bc);}static fromObject(_0x4b7b07,_0x298fd2={}){if(null==_0x4b7b07||'object'!=typeof _0x4b7b07)throw new Oh('Duration.fromObject:\x20argument\x20expected\x20to\x20be\x20an\x20object,\x20got\x20'+(null===_0x4b7b07?'null':typeof _0x4b7b07));return new Duration({'values':pd(_0x4b7b07,Duration['normalizeUnit']),'loc':uu['fromObject'](_0x298fd2),'conversionAccuracy':_0x298fd2['conversionAccuracy'],'matrix':_0x298fd2['matrix']});}static fromDurationLike(_0x170016){if(Gu(_0x170016))return Duration['fromMillis'](_0x170016);if(Duration['isDuration'](_0x170016))return _0x170016;if('object'==typeof _0x170016)return Duration['fromObject'](_0x170016);throw new Oh('Unknown\x20duration\x20argument\x20'+_0x170016+'\x20of\x20type\x20'+typeof _0x170016);}static['fromISO'](_0x3df13a,_0x1f294e){const [_0x20d17b]=function(_0xa8c087){return Dd(_0xa8c087,[Kd,Jd]);}(_0x3df13a);return _0x20d17b?Duration['fromObject'](_0x20d17b,_0x1f294e):Duration['invalid']('unparsable','the\x20input\x20\x22'+_0x3df13a+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20ISO\x208601');}static['fromISOTime'](_0x5987ea,_0x5c6401){const [_0x19252d]=function(_0x2ce7bf){return Dd(_0x2ce7bf,[Yd,wf]);}(_0x5987ea);return _0x19252d?Duration['fromObject'](_0x19252d,_0x5c6401):Duration['invalid']('unparsable','the\x20input\x20\x22'+_0x5987ea+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20ISO\x208601');}static['invalid'](_0x983472,_0x584cdc=null){if(!_0x983472)throw new Oh('need\x20to\x20specify\x20a\x20reason\x20the\x20Duration\x20is\x20invalid');const _0x477641=_0x983472 instanceof Cu?_0x983472:new Cu(_0x983472,_0x584cdc);if(xu['throwOnInvalid'])throw new mh(_0x477641);return new Duration({'invalid':_0x477641});}static normalizeUnit(_0x439d62){const _0x1e31b5={'year':'years','years':'years','quarter':'quarters','quarters':'quarters','month':'months','months':'months','week':'weeks','weeks':'weeks','day':'days','days':'days','hour':'hours','hours':'hours','minute':'minutes','minutes':'minutes','second':'seconds','seconds':'seconds','millisecond':'milliseconds','milliseconds':'milliseconds'}[_0x439d62?_0x439d62['toLowerCase']():_0x439d62];if(!_0x1e31b5)throw new gh(_0x439d62);return _0x1e31b5;}static isDuration(_0x493b33){return _0x493b33&&_0x493b33['isLuxonDuration']||!0x1;}get['locale'](){return this['isValid']?this['loc']['locale']:null;}get numberingSystem(){return this['isValid']?this['loc']['numberingSystem']:null;}toFormat(_0x25a738,_0x40a2c3={}){const _0xba89ee={..._0x40a2c3,'floor':!0x1!==_0x40a2c3['round']&&!0x1!==_0x40a2c3['floor']};return this['isValid']?Nd['create'](this['loc'],_0xba89ee)['formatDurationFromString'](this,_0x25a738):_f;}toHuman(_0x52ff5c={}){if(!this['isValid'])return _f;const _0x1b24d0=kf['map'](_0x358a6d=>{const _0x3bc20c=this['values'][_0x358a6d];return Zu(_0x3bc20c)?null:this['loc']['numberFormatter']({'style':'unit','unitDisplay':'long',..._0x52ff5c,'unit':_0x358a6d['slice'](0x0,-0x1)})['format'](_0x3bc20c);})['filter'](_0x3b1269=>_0x3b1269);return this['loc']['listFormatter']({'type':'conjunction','style':_0x52ff5c['listStyle']||'narrow',..._0x52ff5c})['format'](_0x1b24d0);}toObject(){return this['isValid']?{...this['values']}:{};}toISO(){if(!this['isValid'])return null;let _0x3e0ce4='P';return 0x0!==this['years']&&(_0x3e0ce4+=this['years']+'Y'),0x0===this['months']&&0x0===this['quarters']||(_0x3e0ce4+=this['months']+0x3*this['quarters']+'M'),0x0!==this['weeks']&&(_0x3e0ce4+=this['weeks']+'W'),0x0!==this['days']&&(_0x3e0ce4+=this['days']+'D'),0x0===this['hours']&&0x0===this['minutes']&&0x0===this['seconds']&&0x0===this['milliseconds']||(_0x3e0ce4+='T'),0x0!==this['hours']&&(_0x3e0ce4+=this['hours']+'H'),0x0!==this['minutes']&&(_0x3e0ce4+=this['minutes']+'M'),0x0===this['seconds']&&0x0===this['milliseconds']||(_0x3e0ce4+=nd(this['seconds']+this['milliseconds']/0x3e8,0x3)+'S'),'P'===_0x3e0ce4&&(_0x3e0ce4+='T0S'),_0x3e0ce4;}toISOTime(_0x3df1cd={}){if(!this['isValid'])return null;const _0x42ea99=this['toMillis']();return _0x42ea99<0x0||_0x42ea99>=0x5265c00?null:(_0x3df1cd={'suppressMilliseconds':!0x1,'suppressSeconds':!0x1,'includePrefix':!0x1,'format':'extended',..._0x3df1cd,'includeOffset':!0x1},Sm['fromMillis'](_0x42ea99,{'zone':'UTC'})['toISOTime'](_0x3df1cd));}toJSON(){return this['toISO']();}toString(){return this['toISO']();}[Symbol['for']('nodejs.util.inspect.custom')](){return this['isValid']?'Duration\x20{\x20values:\x20'+JSON['stringify'](this['values'])+'\x20}':'Duration\x20{\x20Invalid,\x20reason:\x20'+this['invalidReason']+'\x20}';}toMillis(){return this['isValid']?Rf(this['matrix'],this['values']):NaN;}['valueOf'](){return this['toMillis']();}['plus'](_0x5136bc){if(!this['isValid'])return this;const _0x19524e=Duration['fromDurationLike'](_0x5136bc),_0x5c2bce={};for(const _0x1f2b02 of kf)(Yu(_0x19524e['values'],_0x1f2b02)||Yu(this['values'],_0x1f2b02))&&(_0x5c2bce[_0x1f2b02]=_0x19524e['get'](_0x1f2b02)+this['get'](_0x1f2b02));return Cf(this,{'values':_0x5c2bce},!0x0);}['minus'](_0x25afcd){if(!this['isValid'])return this;const _0x6ee49c=Duration['fromDurationLike'](_0x25afcd);return this['plus'](_0x6ee49c['negate']());}mapUnits(_0x4fd108){if(!this['isValid'])return this;const _0x388189={};for(const _0x5a38b2 of Object['keys'](this['values']))_0x388189[_0x5a38b2]=md(_0x4fd108(this['values'][_0x5a38b2],_0x5a38b2));return Cf(this,{'values':_0x388189},!0x0);}get(_0x2b5168){return this[Duration['normalizeUnit'](_0x2b5168)];}set(_0x4e3a83){if(!this['isValid'])return this;return Cf(this,{'values':{...this['values'],...pd(_0x4e3a83,Duration['normalizeUnit'])}});}['reconfigure']({locale:_0x4b1092,numberingSystem:_0x522752,conversionAccuracy:_0x13ffc0,matrix:_0x5b6626}={}){return Cf(this,{'loc':this['loc']['clone']({'locale':_0x4b1092,'numberingSystem':_0x522752}),'matrix':_0x5b6626,'conversionAccuracy':_0x13ffc0});}['as'](_0x3bf797){return this['isValid']?this['shiftTo'](_0x3bf797)['get'](_0x3bf797):NaN;}['normalize'](){if(!this['isValid'])return this;const _0x55d45d=this['toObject']();return Pf(this['matrix'],_0x55d45d),Cf(this,{'values':_0x55d45d},!0x0);}['rescale'](){if(!this['isValid'])return this;const _0x3f7e4e=function(_0x427296){const _0x48c123={};for(const [_0x38a532,_0x1b5c3a]of Object['entries'](_0x427296))0x0!==_0x1b5c3a&&(_0x48c123[_0x38a532]=_0x1b5c3a);return _0x48c123;}(this['normalize']()['shiftToAll']()['toObject']());return Cf(this,{'values':_0x3f7e4e},!0x0);}shiftTo(..._0x978c5a){if(!this['isValid'])return this;if(0x0===_0x978c5a['length'])return this;_0x978c5a=_0x978c5a['map'](_0x286970=>Duration['normalizeUnit'](_0x286970));const _0x51bc60={},_0x4e8f86={},_0x227e83=this['toObject']();let _0x440207;for(const _0x34cca2 of kf)if(_0x978c5a['indexOf'](_0x34cca2)>=0x0){_0x440207=_0x34cca2;let _0x38ef05=0x0;for(const _0x9a3a4f in _0x4e8f86)_0x38ef05+=this['matrix'][_0x9a3a4f][_0x34cca2]*_0x4e8f86[_0x9a3a4f],_0x4e8f86[_0x9a3a4f]=0x0;Gu(_0x227e83[_0x34cca2])&&(_0x38ef05+=_0x227e83[_0x34cca2]);const _0x52ebb3=Math['trunc'](_0x38ef05);_0x51bc60[_0x34cca2]=_0x52ebb3,_0x4e8f86[_0x34cca2]=(0x3e8*_0x38ef05-0x3e8*_0x52ebb3)/0x3e8;}else Gu(_0x227e83[_0x34cca2])&&(_0x4e8f86[_0x34cca2]=_0x227e83[_0x34cca2]);for(const _0x45bd64 in _0x4e8f86)0x0!==_0x4e8f86[_0x45bd64]&&(_0x51bc60[_0x440207]+=_0x45bd64===_0x440207?_0x4e8f86[_0x45bd64]:_0x4e8f86[_0x45bd64]/this['matrix'][_0x440207][_0x45bd64]);return Pf(this['matrix'],_0x51bc60),Cf(this,{'values':_0x51bc60},!0x0);}shiftToAll(){return this['isValid']?this['shiftTo']('years','months','weeks','days','hours','minutes','seconds','milliseconds'):this;}negate(){if(!this['isValid'])return this;const _0x39a1ce={};for(const _0x517e70 of Object['keys'](this['values']))_0x39a1ce[_0x517e70]=0x0===this['values'][_0x517e70]?0x0:-this['values'][_0x517e70];return Cf(this,{'values':_0x39a1ce},!0x0);}get['years'](){return this['isValid']?this['values']['years']||0x0:NaN;}get quarters(){return this['isValid']?this['values']['quarters']||0x0:NaN;}get months(){return this['isValid']?this['values']['months']||0x0:NaN;}get['weeks'](){return this['isValid']?this['values']['weeks']||0x0:NaN;}get['days'](){return this['isValid']?this['values']['days']||0x0:NaN;}get['hours'](){return this['isValid']?this['values']['hours']||0x0:NaN;}get minutes(){return this['isValid']?this['values']['minutes']||0x0:NaN;}get['seconds'](){return this['isValid']?this['values']['seconds']||0x0:NaN;}get['milliseconds'](){return this['isValid']?this['values']['milliseconds']||0x0:NaN;}get['isValid'](){return null===this['invalid'];}get['invalidReason'](){return this['invalid']?this['invalid']['reason']:null;}get invalidExplanation(){return this['invalid']?this['invalid']['explanation']:null;}['equals'](_0x12a253){if(!this['isValid']||!_0x12a253['isValid'])return!0x1;if(!this['loc']['equals'](_0x12a253['loc']))return!0x1;function _0x53a5cf(_0x53ed61,_0x296858){return void 0x0===_0x53ed61||0x0===_0x53ed61?void 0x0===_0x296858||0x0===_0x296858:_0x53ed61===_0x296858;}for(const _0x42a4f7 of kf)if(!_0x53a5cf(this['values'][_0x42a4f7],_0x12a253['values'][_0x42a4f7]))return!0x1;return!0x0;}};const Mf='Invalid\x20Interval';function Lf(_0x12ff1e,_0x3ef837){return _0x12ff1e&&_0x12ff1e['isValid']?_0x3ef837&&_0x3ef837['isValid']?_0x3ef837<_0x12ff1e?$f['invalid']('end\x20before\x20start','The\x20end\x20of\x20an\x20interval\x20must\x20be\x20after\x20its\x20start,\x20but\x20you\x20had\x20start='+_0x12ff1e['toISO']()+'\x20and\x20end='+_0x3ef837['toISO']()):null:$f['invalid']('missing\x20or\x20invalid\x20end'):$f['invalid']('missing\x20or\x20invalid\x20start');}var $f=class Interval{constructor(_0x9f819b){this['s']=_0x9f819b['start'],this['e']=_0x9f819b['end'],this['invalid']=_0x9f819b['invalid']||null,this['isLuxonInterval']=!0x0;}static['invalid'](_0x3128a9,_0x11505d=null){if(!_0x3128a9)throw new Oh('need\x20to\x20specify\x20a\x20reason\x20the\x20Interval\x20is\x20invalid');const _0x3be156=_0x3128a9 instanceof Cu?_0x3128a9:new Cu(_0x3128a9,_0x11505d);if(xu['throwOnInvalid'])throw new fh(_0x3be156);return new Interval({'invalid':_0x3be156});}static fromDateTimes(_0xfd5f50,_0x57434c){const _0x554d5f=Im(_0xfd5f50),_0x335368=Im(_0x57434c),_0x2f9aa4=Lf(_0x554d5f,_0x335368);return null==_0x2f9aa4?new Interval({'start':_0x554d5f,'end':_0x335368}):_0x2f9aa4;}static after(_0x2c80c0,_0x72b2a2){const _0x5d69dc=Nf['fromDurationLike'](_0x72b2a2),_0x49dfad=Im(_0x2c80c0);return Interval['fromDateTimes'](_0x49dfad,_0x49dfad['plus'](_0x5d69dc));}static['before'](_0x47ce4b,_0x2f05bb){const _0x4343c1=Nf['fromDurationLike'](_0x2f05bb),_0x453006=Im(_0x47ce4b);return Interval['fromDateTimes'](_0x453006['minus'](_0x4343c1),_0x453006);}static['fromISO'](_0x4eccc8,_0x285086){const [_0x4b5b58,_0xd091ba]=(_0x4eccc8||'')['split']('/',0x2);if(_0x4b5b58&&_0xd091ba){let _0x5bb77d,_0xe746e1,_0x1e35c7,_0x178d20;try{_0x5bb77d=Sm['fromISO'](_0x4b5b58,_0x285086),_0xe746e1=_0x5bb77d['isValid'];}catch(_0x4a7820){_0xe746e1=!0x1;}try{_0x1e35c7=Sm['fromISO'](_0xd091ba,_0x285086),_0x178d20=_0x1e35c7['isValid'];}catch(_0x3061df){_0x178d20=!0x1;}if(_0xe746e1&&_0x178d20)return Interval['fromDateTimes'](_0x5bb77d,_0x1e35c7);if(_0xe746e1){const _0x55f3d5=Nf['fromISO'](_0xd091ba,_0x285086);if(_0x55f3d5['isValid'])return Interval['after'](_0x5bb77d,_0x55f3d5);}else{if(_0x178d20){const _0x1ad1f6=Nf['fromISO'](_0x4b5b58,_0x285086);if(_0x1ad1f6['isValid'])return Interval['before'](_0x1e35c7,_0x1ad1f6);}}}return Interval['invalid']('unparsable','the\x20input\x20\x22'+_0x4eccc8+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20ISO\x208601');}static isInterval(_0x14e245){return _0x14e245&&_0x14e245['isLuxonInterval']||!0x1;}get start(){return this['isValid']?this['s']:null;}get['end'](){return this['isValid']?this['e']:null;}get lastDateTime(){return this['isValid']&&this['e']?this['e']['minus'](0x1):null;}get['isValid'](){return null===this['invalidReason'];}get['invalidReason'](){return this['invalid']?this['invalid']['reason']:null;}get invalidExplanation(){return this['invalid']?this['invalid']['explanation']:null;}length(_0x501b55='milliseconds'){return this['isValid']?this['toDuration'](_0x501b55)['get'](_0x501b55):NaN;}count(_0x4b3768='milliseconds',_0xbf2f61){if(!this['isValid'])return NaN;const _0x591d69=this['start']['startOf'](_0x4b3768,_0xbf2f61);let _0x3b198f;return _0x3b198f=_0xbf2f61?.['useLocaleWeeks']?this['end']['reconfigure']({'locale':_0x591d69['locale']}):this['end'],_0x3b198f=_0x3b198f['startOf'](_0x4b3768,_0xbf2f61),Math['floor'](_0x3b198f['diff'](_0x591d69,_0x4b3768)['get'](_0x4b3768))+(_0x3b198f['valueOf']()!==this['end']['valueOf']());}['hasSame'](_0x2add89){return!!this['isValid']&&(this['isEmpty']()||this['e']['minus'](0x1)['hasSame'](this['s'],_0x2add89));}isEmpty(){return this['s']['valueOf']()===this['e']['valueOf']();}isAfter(_0x3c03e3){return!!this['isValid']&&this['s']>_0x3c03e3;}['isBefore'](_0x1d71b2){return!!this['isValid']&&this['e']<=_0x1d71b2;}contains(_0x437e6b){return!!this['isValid']&&(this['s']<=_0x437e6b&&this['e']>_0x437e6b);}set({start:_0x2d87c1,end:_0x4f4c69}={}){return this['isValid']?Interval['fromDateTimes'](_0x2d87c1||this['s'],_0x4f4c69||this['e']):this;}splitAt(..._0x236f5a){if(!this['isValid'])return[];const _0x4b8421=_0x236f5a['map'](Im)['filter'](_0x147657=>this['contains'](_0x147657))['sort']((_0x37649d,_0x4c575b)=>_0x37649d['toMillis']()-_0x4c575b['toMillis']()),_0x364550=[];let {s:_0x52bcc1}=this,_0x1731e8=0x0;for(;_0x52bcc1<this['e'];){const _0x2ecd0c=_0x4b8421[_0x1731e8]||this['e'],_0x4d1584=+_0x2ecd0c>+this['e']?this['e']:_0x2ecd0c;_0x364550['push'](Interval['fromDateTimes'](_0x52bcc1,_0x4d1584)),_0x52bcc1=_0x4d1584,_0x1731e8+=0x1;}return _0x364550;}splitBy(_0x14596a){const _0x112d1e=Nf['fromDurationLike'](_0x14596a);if(!this['isValid']||!_0x112d1e['isValid']||0x0===_0x112d1e['as']('milliseconds'))return[];let _0x101315,{s:_0x56e9f2}=this,_0x1f7f63=0x1;const _0x19f419=[];for(;_0x56e9f2<this['e'];){const _0x1ff088=this['start']['plus'](_0x112d1e['mapUnits'](_0x338156=>_0x338156*_0x1f7f63));_0x101315=+_0x1ff088>+this['e']?this['e']:_0x1ff088,_0x19f419['push'](Interval['fromDateTimes'](_0x56e9f2,_0x101315)),_0x56e9f2=_0x101315,_0x1f7f63+=0x1;}return _0x19f419;}['divideEqually'](_0xbb00e0){return this['isValid']?this['splitBy'](this['length']()/_0xbb00e0)['slice'](0x0,_0xbb00e0):[];}['overlaps'](_0x1ab857){return this['e']>_0x1ab857['s']&&this['s']<_0x1ab857['e'];}abutsStart(_0x5465f0){return!!this['isValid']&&+this['e']===+_0x5465f0['s'];}abutsEnd(_0x463e23){return!!this['isValid']&&+_0x463e23['e']===+this['s'];}['engulfs'](_0x383845){return!!this['isValid']&&(this['s']<=_0x383845['s']&&this['e']>=_0x383845['e']);}['equals'](_0x56b5ba){return!(!this['isValid']||!_0x56b5ba['isValid'])&&(this['s']['equals'](_0x56b5ba['s'])&&this['e']['equals'](_0x56b5ba['e']));}intersection(_0x3bea1a){if(!this['isValid'])return this;const _0x2dee2b=this['s']>_0x3bea1a['s']?this['s']:_0x3bea1a['s'],_0x5c6335=this['e']<_0x3bea1a['e']?this['e']:_0x3bea1a['e'];return _0x2dee2b>=_0x5c6335?null:Interval['fromDateTimes'](_0x2dee2b,_0x5c6335);}['union'](_0x424eb5){if(!this['isValid'])return this;const _0xc8c3b6=this['s']<_0x424eb5['s']?this['s']:_0x424eb5['s'],_0x2edf7b=this['e']>_0x424eb5['e']?this['e']:_0x424eb5['e'];return Interval['fromDateTimes'](_0xc8c3b6,_0x2edf7b);}static['merge'](_0x5b1086){const [_0x40179f,_0x168582]=_0x5b1086['sort']((_0x44770a,_0x464624)=>_0x44770a['s']-_0x464624['s'])['reduce'](([_0x3dd4d9,_0x5016e4],_0x2cb925)=>_0x5016e4?_0x5016e4['overlaps'](_0x2cb925)||_0x5016e4['abutsStart'](_0x2cb925)?[_0x3dd4d9,_0x5016e4['union'](_0x2cb925)]:[_0x3dd4d9['concat']([_0x5016e4]),_0x2cb925]:[_0x3dd4d9,_0x2cb925],[[],null]);return _0x168582&&_0x40179f['push'](_0x168582),_0x40179f;}static['xor'](_0x12be69){let _0x409f0c=null,_0x38fdf9=0x0;const _0x1ad048=[],_0x3dac05=_0x12be69['map'](_0x502797=>[{'time':_0x502797['s'],'type':'s'},{'time':_0x502797['e'],'type':'e'}]),_0xa5c6b7=Array['prototype']['concat'](..._0x3dac05)['sort']((_0x16ba29,_0x3b8eb0)=>_0x16ba29['time']-_0x3b8eb0['time']);for(const _0x53b3bd of _0xa5c6b7)_0x38fdf9+='s'===_0x53b3bd['type']?0x1:-0x1,0x1===_0x38fdf9?_0x409f0c=_0x53b3bd['time']:(_0x409f0c&&+_0x409f0c!==+_0x53b3bd['time']&&_0x1ad048['push'](Interval['fromDateTimes'](_0x409f0c,_0x53b3bd['time'])),_0x409f0c=null);return Interval['merge'](_0x1ad048);}['difference'](..._0x1448f8){return Interval['xor']([this]['concat'](_0x1448f8))['map'](_0x1142a2=>this['intersection'](_0x1142a2))['filter'](_0x487caf=>_0x487caf&&!_0x487caf['isEmpty']());}toString(){return this['isValid']?'['+this['s']['toISO']()+'\x20–\x20'+this['e']['toISO']()+')':Mf;}[Symbol['for']('nodejs.util.inspect.custom')](){return this['isValid']?'Interval\x20{\x20start:\x20'+this['s']['toISO']()+',\x20end:\x20'+this['e']['toISO']()+'\x20}':'Interval\x20{\x20Invalid,\x20reason:\x20'+this['invalidReason']+'\x20}';}toLocaleString(_0x491639=_h,_0x4e7b07={}){return this['isValid']?Nd['create'](this['s']['loc']['clone'](_0x4e7b07),_0x491639)['formatInterval'](this):Mf;}toISO(_0x580cde){return this['isValid']?this['s']['toISO'](_0x580cde)+'/'+this['e']['toISO'](_0x580cde):Mf;}toISODate(){return this['isValid']?this['s']['toISODate']()+'/'+this['e']['toISODate']():Mf;}toISOTime(_0x16ce8e){return this['isValid']?this['s']['toISOTime'](_0x16ce8e)+'/'+this['e']['toISOTime'](_0x16ce8e):Mf;}toFormat(_0x47b339,{separator:_0x5c4e60='\x20–\x20'}={}){return this['isValid']?''+this['s']['toFormat'](_0x47b339)+_0x5c4e60+this['e']['toFormat'](_0x47b339):Mf;}toDuration(_0x1abf9c,_0x2b30e3){return this['isValid']?this['e']['diff'](this['s'],_0x1abf9c,_0x2b30e3):Nf['invalid'](this['invalidReason']);}mapEndpoints(_0x2de41f){return Interval['fromDateTimes'](_0x2de41f(this['s']),_0x2de41f(this['e']));}},Df=class{static['hasDST'](_0x287ac6=xu['defaultZone']){const _0x197c7c=Sm['now']()['setZone'](_0x287ac6)['set']({'month':0xc});return!_0x287ac6['isUniversal']&&_0x197c7c['offset']!==_0x197c7c['set']({'month':0x6})['offset'];}static['isValidIANAZone'](_0xa2f02a){return zh['isValidZone'](_0xa2f02a);}static['normalizeZone'](_0x37ed43){return pu(_0x37ed43,xu['defaultZone']);}static getStartOfWeek({locale:_0x26ef8d=null,locObj:_0x665de9=null}={}){return(_0x665de9||uu['create'](_0x26ef8d))['getStartOfWeek']();}static getMinimumDaysInFirstWeek({locale:_0x247d45=null,locObj:_0x42faa0=null}={}){return(_0x42faa0||uu['create'](_0x247d45))['getMinDaysInFirstWeek']();}static getWeekendWeekdays({locale:_0x5c3111=null,locObj:_0x2e2128=null}={}){return(_0x2e2128||uu['create'](_0x5c3111))['getWeekendDays']()['slice']();}static months(_0x2ddb23='long',{locale:_0x237a5a=null,numberingSystem:_0x323684=null,locObj:_0x201351=null,outputCalendar:_0x443ae0='gregory'}={}){return(_0x201351||uu['create'](_0x237a5a,_0x323684,_0x443ae0))['months'](_0x2ddb23);}static monthsFormat(_0x2d30ed='long',{locale:_0x1cef29=null,numberingSystem:_0x1ba1b1=null,locObj:_0xfd7099=null,outputCalendar:_0x1fdfa4='gregory'}={}){return(_0xfd7099||uu['create'](_0x1cef29,_0x1ba1b1,_0x1fdfa4))['months'](_0x2d30ed,!0x0);}static['weekdays'](_0x3ffa9c='long',{locale:_0x95695d=null,numberingSystem:_0x2ec9f3=null,locObj:_0x9c926c=null}={}){return(_0x9c926c||uu['create'](_0x95695d,_0x2ec9f3,null))['weekdays'](_0x3ffa9c);}static weekdaysFormat(_0x2f3723='long',{locale:_0x1e7e0a=null,numberingSystem:_0x1a0762=null,locObj:_0x498248=null}={}){return(_0x498248||uu['create'](_0x1e7e0a,_0x1a0762,null))['weekdays'](_0x2f3723,!0x0);}static['meridiems']({locale:_0x2a3af4=null}={}){return uu['create'](_0x2a3af4)['meridiems']();}static['eras'](_0x131be7='short',{locale:_0x48ca3a=null}={}){return uu['create'](_0x48ca3a,null,'gregory')['eras'](_0x131be7);}static features(){return{'relative':qu(),'localeWeek':Wu()};}};function Qf(_0x374c98,_0x2766d1){const _0xce81d7=_0x28af1c=>_0x28af1c['toUTC'](0x0,{'keepLocalTime':!0x0})['startOf']('day')['valueOf'](),_0x2621c3=_0xce81d7(_0x2766d1)-_0xce81d7(_0x374c98);return Math['floor'](Nf['fromMillis'](_0x2621c3)['as']('days'));}function jf(_0x837f09,_0x2d3ba4,_0x2e1d7a,_0x33de95){let [_0x45a9cb,_0x4752d7,_0x5301d5,_0x355557]=function(_0x3e5744,_0x183968,_0x5e2be2){const _0x35cad9=[['years',(_0x3a8180,_0x1fea52)=>_0x1fea52['year']-_0x3a8180['year']],['quarters',(_0x408663,_0x96a394)=>_0x96a394['quarter']-_0x408663['quarter']+0x4*(_0x96a394['year']-_0x408663['year'])],['months',(_0x3b6c90,_0x11865d)=>_0x11865d['month']-_0x3b6c90['month']+0xc*(_0x11865d['year']-_0x3b6c90['year'])],['weeks',(_0x51c326,_0x3f2126)=>{const _0x40f07b=Qf(_0x51c326,_0x3f2126);return(_0x40f07b-_0x40f07b%0x7)/0x7;}],['days',Qf]],_0x5e070a={},_0xf97fec=_0x3e5744;let _0x1c098e,_0x3e8362;for(const [_0x34cbf2,_0x26985b]of _0x35cad9)_0x5e2be2['indexOf'](_0x34cbf2)>=0x0&&(_0x1c098e=_0x34cbf2,_0x5e070a[_0x34cbf2]=_0x26985b(_0x3e5744,_0x183968),_0x3e8362=_0xf97fec['plus'](_0x5e070a),_0x3e8362>_0x183968?(_0x5e070a[_0x34cbf2]--,(_0x3e5744=_0xf97fec['plus'](_0x5e070a))>_0x183968&&(_0x3e8362=_0x3e5744,_0x5e070a[_0x34cbf2]--,_0x3e5744=_0xf97fec['plus'](_0x5e070a))):_0x3e5744=_0x3e8362);return[_0x3e5744,_0x5e070a,_0x3e8362,_0x1c098e];}(_0x837f09,_0x2d3ba4,_0x2e1d7a);const _0x45bf8c=_0x2d3ba4-_0x45a9cb,_0x3c8a7e=_0x2e1d7a['filter'](_0x2d5255=>['hours','minutes','seconds','milliseconds']['indexOf'](_0x2d5255)>=0x0);0x0===_0x3c8a7e['length']&&(_0x5301d5<_0x2d3ba4&&(_0x5301d5=_0x45a9cb['plus']({[_0x355557]:0x1})),_0x5301d5!==_0x45a9cb&&(_0x4752d7[_0x355557]=(_0x4752d7[_0x355557]||0x0)+_0x45bf8c/(_0x5301d5-_0x45a9cb)));const _0x540db9=Nf['fromObject'](_0x4752d7,_0x33de95);return _0x3c8a7e['length']>0x0?Nf['fromMillis'](_0x45bf8c,_0x33de95)['shiftTo'](..._0x3c8a7e)['plus'](_0x540db9):_0x540db9;}function Uf(_0x430dea,_0x12397c=_0x1bd424=>_0x1bd424){return{'regex':_0x430dea,'deser':([_0x5e2574])=>_0x12397c(function(_0x5da342){let _0x545e1d=parseInt(_0x5da342,0xa);if(isNaN(_0x545e1d)){_0x545e1d='';for(let _0x2e2c0=0x0;_0x2e2c0<_0x5da342['length'];_0x2e2c0++){const _0x300b31=_0x5da342['charCodeAt'](_0x2e2c0);if(-0x1!==_0x5da342[_0x2e2c0]['search'](gu['hanidec']))_0x545e1d+=wu['indexOf'](_0x5da342[_0x2e2c0]);else for(const _0x33da4c in Ou){const [_0x375372,_0x5c3572]=Ou[_0x33da4c];_0x300b31>=_0x375372&&_0x300b31<=_0x5c3572&&(_0x545e1d+=_0x300b31-_0x375372);}}return parseInt(_0x545e1d,0xa);}return _0x545e1d;}(_0x5e2574))};}const Vf='[\x20'+String['fromCharCode'](0xa0)+']',Bf=new RegExp(Vf,'g');function Hf(_0x1f1263){return _0x1f1263['replace'](/\./g,'\x5c.?')['replace'](Bf,Vf);}function Ff(_0x3dcf41){return _0x3dcf41['replace'](/\./g,'')['replace'](Bf,'\x20')['toLowerCase']();}function Zf(_0x397cfc,_0x204248){return null===_0x397cfc?null:{'regex':RegExp(_0x397cfc['map'](Hf)['join']('|')),'deser':([_0x1fe12c])=>_0x397cfc['findIndex'](_0x359358=>Ff(_0x1fe12c)===Ff(_0x359358))+_0x204248};}function Gf(_0x354e01,_0x5aea90){return{'regex':_0x354e01,'deser':([,_0x56ae09,_0x124b41])=>fd(_0x56ae09,_0x124b41),'groups':_0x5aea90};}function Xf(_0x47c03c){return{'regex':_0x47c03c,'deser':([_0x375bf4])=>_0x375bf4};}function qf(_0x11eac9){return _0x11eac9['replace'](/[\-\[\]{}()*+?.,\\\^$|#\s]/g,'\x5c$&');}const Wf={'year':{'2-digit':'yy','numeric':'yyyyy'},'month':{'numeric':'M','2-digit':'MM','short':'MMM','long':'MMMM'},'day':{'numeric':'d','2-digit':'dd'},'weekday':{'short':'EEE','long':'EEEE'},'dayperiod':'a','dayPeriod':'a','hour12':{'numeric':'h','2-digit':'hh'},'hour24':{'numeric':'H','2-digit':'HH'},'minute':{'numeric':'m','2-digit':'mm'},'second':{'numeric':'s','2-digit':'ss'},'timeZoneName':{'long':'ZZZZZ','short':'ZZZ'}};let zf=null;function Yf(_0xa6cbc4,_0x105d56){return Array['prototype']['concat'](..._0xa6cbc4['map'](t=>function(_0x3d7d70,_0x1c32de){if(_0x3d7d70['literal'])return _0x3d7d70;const _0xddfc27=tm(Nd['macroTokenToFormatOpts'](_0x3d7d70['val']),_0x1c32de);return null==_0xddfc27||_0xddfc27['includes'](void 0x0)?_0x3d7d70:_0xddfc27;}(t,_0x105d56)));}var Kf=class{constructor(_0xc40179,_0x184b84){if(this['locale']=_0xc40179,this['format']=_0x184b84,this['tokens']=Yf(Nd['parseFormat'](_0x184b84),_0xc40179),this['units']=this['tokens']['map'](t=>function(_0x4b59c3,_0x8a7f94){const _0x195806=yu(_0x8a7f94),_0x4ee0c6=yu(_0x8a7f94,'{2}'),_0x2bd393=yu(_0x8a7f94,'{3}'),_0x222215=yu(_0x8a7f94,'{4}'),_0x26a736=yu(_0x8a7f94,'{6}'),_0x2b4cce=yu(_0x8a7f94,'{1,2}'),_0x5ecb87=yu(_0x8a7f94,'{1,3}'),_0x18dc96=yu(_0x8a7f94,'{1,6}'),_0x21f3d3=yu(_0x8a7f94,'{1,9}'),_0x44c1f9=yu(_0x8a7f94,'{2,4}'),_0x9f946d=yu(_0x8a7f94,'{4,6}'),_0x48e72c=t=>({'regex':RegExp(qf(t['val'])),'deser':([_0x3c19b3])=>_0x3c19b3,'literal':!0x0}),_0x3e7049=(t=>{if(_0x4b59c3['literal'])return _0x48e72c(t);switch(t['val']){case'G':return Zf(_0x8a7f94['eras']('short'),0x0);case'GG':return Zf(_0x8a7f94['eras']('long'),0x0);case'y':return Uf(_0x18dc96);case'yy':case'kk':return Uf(_0x44c1f9,ud);case'yyyy':case'kkkk':return Uf(_0x222215);case'yyyyy':return Uf(_0x9f946d);case'yyyyyy':return Uf(_0x26a736);case'M':case'L':case'd':case'H':case'h':case'm':case'q':case's':case'W':return Uf(_0x2b4cce);case'MM':case'LL':case'dd':case'HH':case'hh':case'mm':case'qq':case'ss':case'WW':return Uf(_0x4ee0c6);case'MMM':return Zf(_0x8a7f94['months']('short',!0x0),0x1);case'MMMM':return Zf(_0x8a7f94['months']('long',!0x0),0x1);case'LLL':return Zf(_0x8a7f94['months']('short',!0x1),0x1);case'LLLL':return Zf(_0x8a7f94['months']('long',!0x1),0x1);case'o':case'S':return Uf(_0x5ecb87);case'ooo':case'SSS':return Uf(_0x2bd393);case'u':return Xf(_0x21f3d3);case'uu':return Xf(_0x2b4cce);case'uuu':case'E':case'c':return Uf(_0x195806);case'a':return Zf(_0x8a7f94['meridiems'](),0x0);case'EEE':return Zf(_0x8a7f94['weekdays']('short',!0x1),0x1);case'EEEE':return Zf(_0x8a7f94['weekdays']('long',!0x1),0x1);case'ccc':return Zf(_0x8a7f94['weekdays']('short',!0x0),0x1);case'cccc':return Zf(_0x8a7f94['weekdays']('long',!0x0),0x1);case'Z':case'ZZ':return Gf(new RegExp('([+-]'+_0x2b4cce['source']+')(?::('+_0x4ee0c6['source']+'))?'),0x2);case'ZZZ':return Gf(new RegExp('([+-]'+_0x2b4cce['source']+')('+_0x4ee0c6['source']+')?'),0x2);case'z':return Xf(/[a-z_+-/]{1,256}?/i);case'\x20':return Xf(/[^\S\n\r]/);default:return _0x48e72c(t);}})(_0x4b59c3)||{'invalidReason':'missing\x20Intl.DateTimeFormat.formatToParts\x20support'};return _0x3e7049['token']=_0x4b59c3,_0x3e7049;}(t,_0xc40179)),this['disqualifyingUnit']=this['units']['find'](t=>t['invalidReason']),!this['disqualifyingUnit']){const [_0x3446bf,_0x4e938a]=['^'+(_0x3ad4a2=this['units'])['map'](_0x5ec260=>_0x5ec260['regex'])['reduce']((_0x20ac61,_0x220e12)=>_0x20ac61+'('+_0x220e12['source']+')','')+'$',_0x3ad4a2];this['regex']=RegExp(_0x3446bf,'i'),this['handlers']=_0x4e938a;}var _0x3ad4a2;}['explainFromTokens'](_0x50769d){if(this['isValid']){const [_0x57041a,_0x417651]=function(_0x57dbf6,_0x174b70,_0x1aa7dc){const _0x18124c=_0x57dbf6['match'](_0x174b70);if(_0x18124c){const _0x32178e={};let _0x1afe54=0x1;for(const _0x58672a in _0x1aa7dc)if(Yu(_0x1aa7dc,_0x58672a)){const _0x371a70=_0x1aa7dc[_0x58672a],_0x310ac6=_0x371a70['groups']?_0x371a70['groups']+0x1:0x1;!_0x371a70['literal']&&_0x371a70['token']&&(_0x32178e[_0x371a70['token']['val'][0x0]]=_0x371a70['deser'](_0x18124c['slice'](_0x1afe54,_0x1afe54+_0x310ac6))),_0x1afe54+=_0x310ac6;}return[_0x18124c,_0x32178e];}return[_0x18124c,{}];}(_0x50769d,this['regex'],this['handlers']),[_0x17a029,_0xdd1627,_0x3de0d1]=_0x417651?function(_0x4601a9){let _0x3167cc,_0x2fd55f=null;return Zu(_0x4601a9['z'])||(_0x2fd55f=zh['create'](_0x4601a9['z'])),Zu(_0x4601a9['Z'])||(_0x2fd55f||(_0x2fd55f=new fu(_0x4601a9['Z'])),_0x3167cc=_0x4601a9['Z']),Zu(_0x4601a9['q'])||(_0x4601a9['M']=0x3*(_0x4601a9['q']-0x1)+0x1),Zu(_0x4601a9['h'])||(_0x4601a9['h']<0xc&&0x1===_0x4601a9['a']?_0x4601a9['h']+=0xc:0xc===_0x4601a9['h']&&0x0===_0x4601a9['a']&&(_0x4601a9['h']=0x0)),0x0===_0x4601a9['G']&&_0x4601a9['y']&&(_0x4601a9['y']=-_0x4601a9['y']),Zu(_0x4601a9['u'])||(_0x4601a9['S']=sd(_0x4601a9['u'])),[Object['keys'](_0x4601a9)['reduce']((_0x38447a,_0x35951b)=>{const _0x48764d=(_0x3f36e2=>{switch(_0x3f36e2){case'S':return'millisecond';case's':return'second';case'm':return'minute';case'h':case'H':return'hour';case'd':return'day';case'o':return'ordinal';case'L':case'M':return'month';case'y':return'year';case'E':case'c':return'weekday';case'W':return'weekNumber';case'k':return'weekYear';case'q':return'quarter';default:return null;}})(_0x35951b);return _0x48764d&&(_0x38447a[_0x48764d]=_0x4601a9[_0x35951b]),_0x38447a;},{}),_0x2fd55f,_0x3167cc];}(_0x417651):[null,null,void 0x0];if(Yu(_0x417651,'a')&&Yu(_0x417651,'H'))throw new ph('Can\x27t\x20include\x20meridiem\x20when\x20specifying\x2024-hour\x20format');return{'input':_0x50769d,'tokens':this['tokens'],'regex':this['regex'],'rawMatches':_0x57041a,'matches':_0x417651,'result':_0x17a029,'zone':_0xdd1627,'specificOffset':_0x3de0d1};}return{'input':_0x50769d,'tokens':this['tokens'],'invalidReason':this['invalidReason']};}get['isValid'](){return!this['disqualifyingUnit'];}get['invalidReason'](){return this['disqualifyingUnit']?this['disqualifyingUnit']['invalidReason']:null;}};function Jf(_0xbe152,_0x38ef59,_0x272f01){return new Kf(_0xbe152,_0x272f01)['explainFromTokens'](_0x38ef59);}function tm(_0x24fb5d,_0x55ceca){if(!_0x24fb5d)return null;const _0x43d6ef=Nd['create'](_0x55ceca,_0x24fb5d)['dtFormatter']((zf||(zf=Sm['fromMillis'](0x16a2e5618e3)),zf)),_0x102cfe=_0x43d6ef['formatToParts'](),_0x545cbd=_0x43d6ef['resolvedOptions']();return _0x102cfe['map'](_0x1777af=>function(_0x5630a4,_0x1f6b2e,_0x51e838){const {type:_0x4db86e,value:_0x31bbfd}=_0x5630a4;if('literal'===_0x4db86e){const _0x208723=/^\s+$/['test'](_0x31bbfd);return{'literal':!_0x208723,'val':_0x208723?'\x20':_0x31bbfd};}const _0x5ee570=_0x1f6b2e[_0x4db86e];let _0x225ead=_0x4db86e;'hour'===_0x4db86e&&(_0x225ead=null!=_0x1f6b2e['hour12']?_0x1f6b2e['hour12']?'hour12':'hour24':null!=_0x1f6b2e['hourCycle']?'h11'===_0x1f6b2e['hourCycle']||'h12'===_0x1f6b2e['hourCycle']?'hour12':'hour24':_0x51e838['hour12']?'hour12':'hour24');let _0x4815c9=Wf[_0x225ead];if('object'==typeof _0x4815c9&&(_0x4815c9=_0x4815c9[_0x5ee570]),_0x4815c9)return{'literal':!0x1,'val':_0x4815c9};}(_0x1777af,_0x24fb5d,_0x545cbd));}const em='Invalid\x20DateTime';function im(_0x767afb){return new Cu('unsupported\x20zone','the\x20zone\x20\x22'+_0x767afb['name']+'\x22\x20is\x20not\x20supported');}function sm(_0x282d45){return null===_0x282d45['weekData']&&(_0x282d45['weekData']=Qu(_0x282d45['c'])),_0x282d45['weekData'];}function nm(_0x1b4773){return null===_0x1b4773['localWeekData']&&(_0x1b4773['localWeekData']=Qu(_0x1b4773['c'],_0x1b4773['loc']['getMinDaysInFirstWeek'](),_0x1b4773['loc']['getStartOfWeek']())),_0x1b4773['localWeekData'];}function rm(_0x1658ad,_0xbc90af){const _0x379954={'ts':_0x1658ad['ts'],'zone':_0x1658ad['zone'],'c':_0x1658ad['c'],'o':_0x1658ad['o'],'loc':_0x1658ad['loc'],'invalid':_0x1658ad['invalid']};return new Sm({..._0x379954,..._0xbc90af,'old':_0x379954});}function om(_0x26baa1,_0x432cff,_0x9ec5c1){let _0x5de20f=_0x26baa1-0x3c*_0x432cff*0x3e8;const _0x130f87=_0x9ec5c1['offset'](_0x5de20f);if(_0x432cff===_0x130f87)return[_0x5de20f,_0x432cff];_0x5de20f-=0x3c*(_0x130f87-_0x432cff)*0x3e8;const _0x2b542b=_0x9ec5c1['offset'](_0x5de20f);return _0x130f87===_0x2b542b?[_0x5de20f,_0x130f87]:[_0x26baa1-0x3c*Math['min'](_0x130f87,_0x2b542b)*0x3e8,Math['max'](_0x130f87,_0x2b542b)];}function am(_0x26aa76,_0x248d85){const _0x25bfb1=new Date(_0x26aa76+=0x3c*_0x248d85*0x3e8);return{'year':_0x25bfb1['getUTCFullYear'](),'month':_0x25bfb1['getUTCMonth']()+0x1,'day':_0x25bfb1['getUTCDate'](),'hour':_0x25bfb1['getUTCHours'](),'minute':_0x25bfb1['getUTCMinutes'](),'second':_0x25bfb1['getUTCSeconds'](),'millisecond':_0x25bfb1['getUTCMilliseconds']()};}function cm(_0x5b7840,_0x1a77df,_0x535cd7){return om(cd(_0x5b7840),_0x1a77df,_0x535cd7);}function lm(_0x1cc483,_0x8dd2ea){const _0x178a8b=_0x1cc483['o'],_0x53c706=_0x1cc483['c']['year']+Math['trunc'](_0x8dd2ea['years']),_0x3722d2=_0x1cc483['c']['month']+Math['trunc'](_0x8dd2ea['months'])+0x3*Math['trunc'](_0x8dd2ea['quarters']),_0x18ae57={..._0x1cc483['c'],'year':_0x53c706,'month':_0x3722d2,'day':Math['min'](_0x1cc483['c']['day'],ad(_0x53c706,_0x3722d2))+Math['trunc'](_0x8dd2ea['days'])+0x7*Math['trunc'](_0x8dd2ea['weeks'])},_0x1c5188=Nf['fromObject']({'years':_0x8dd2ea['years']-Math['trunc'](_0x8dd2ea['years']),'quarters':_0x8dd2ea['quarters']-Math['trunc'](_0x8dd2ea['quarters']),'months':_0x8dd2ea['months']-Math['trunc'](_0x8dd2ea['months']),'weeks':_0x8dd2ea['weeks']-Math['trunc'](_0x8dd2ea['weeks']),'days':_0x8dd2ea['days']-Math['trunc'](_0x8dd2ea['days']),'hours':_0x8dd2ea['hours'],'minutes':_0x8dd2ea['minutes'],'seconds':_0x8dd2ea['seconds'],'milliseconds':_0x8dd2ea['milliseconds']})['as']('milliseconds');let [_0x55776a,_0x2f94fb]=om(cd(_0x18ae57),_0x178a8b,_0x1cc483['zone']);return 0x0!==_0x1c5188&&(_0x55776a+=_0x1c5188,_0x2f94fb=_0x1cc483['zone']['offset'](_0x55776a)),{'ts':_0x55776a,'o':_0x2f94fb};}function hm(_0x1a1278,_0x351b35,_0x3cbc9f,_0x15ac4f,_0x33af37,_0x3bb01b){const {setZone:_0x52d240,zone:_0x4d9446}=_0x3cbc9f;if(_0x1a1278&&0x0!==Object['keys'](_0x1a1278)['length']||_0x351b35){const _0x1ab529=_0x351b35||_0x4d9446,_0x434431=Sm['fromObject'](_0x1a1278,{..._0x3cbc9f,'zone':_0x1ab529,'specificOffset':_0x3bb01b});return _0x52d240?_0x434431:_0x434431['setZone'](_0x4d9446);}return Sm['invalid'](new Cu('unparsable','the\x20input\x20\x22'+_0x33af37+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20'+_0x15ac4f));}function um(_0x190001,_0x4d948f,_0x402ae8=!0x0){return _0x190001['isValid']?Nd['create'](uu['create']('en-US'),{'allowZ':_0x402ae8,'forceSimple':!0x0})['formatDateTimeFromString'](_0x190001,_0x4d948f):null;}function dm(_0x1afea5,_0x115c07){const _0x451409=_0x1afea5['c']['year']>0x270f||_0x1afea5['c']['year']<0x0;let _0x44e976='';return _0x451409&&_0x1afea5['c']['year']>=0x0&&(_0x44e976+='+'),_0x44e976+=td(_0x1afea5['c']['year'],_0x451409?0x6:0x4),_0x115c07?(_0x44e976+='-',_0x44e976+=td(_0x1afea5['c']['month']),_0x44e976+='-',_0x44e976+=td(_0x1afea5['c']['day'])):(_0x44e976+=td(_0x1afea5['c']['month']),_0x44e976+=td(_0x1afea5['c']['day'])),_0x44e976;}function fm(_0x70cd12,_0x210318,_0x13605c,_0x5f04f8,_0x3eb3c1,_0x36a750){let _0x22cbf3=td(_0x70cd12['c']['hour']);return _0x210318?(_0x22cbf3+=':',_0x22cbf3+=td(_0x70cd12['c']['minute']),0x0===_0x70cd12['c']['millisecond']&&0x0===_0x70cd12['c']['second']&&_0x13605c||(_0x22cbf3+=':')):_0x22cbf3+=td(_0x70cd12['c']['minute']),0x0===_0x70cd12['c']['millisecond']&&0x0===_0x70cd12['c']['second']&&_0x13605c||(_0x22cbf3+=td(_0x70cd12['c']['second']),0x0===_0x70cd12['c']['millisecond']&&_0x5f04f8||(_0x22cbf3+='.',_0x22cbf3+=td(_0x70cd12['c']['millisecond'],0x3))),_0x3eb3c1&&(_0x70cd12['isOffsetFixed']&&0x0===_0x70cd12['offset']&&!_0x36a750?_0x22cbf3+='Z':_0x70cd12['o']<0x0?(_0x22cbf3+='-',_0x22cbf3+=td(Math['trunc'](-_0x70cd12['o']/0x3c)),_0x22cbf3+=':',_0x22cbf3+=td(Math['trunc'](-_0x70cd12['o']%0x3c))):(_0x22cbf3+='+',_0x22cbf3+=td(Math['trunc'](_0x70cd12['o']/0x3c)),_0x22cbf3+=':',_0x22cbf3+=td(Math['trunc'](_0x70cd12['o']%0x3c)))),_0x36a750&&(_0x22cbf3+='['+_0x70cd12['zone']['ianaName']+']'),_0x22cbf3;}const mm={'month':0x1,'day':0x1,'hour':0x0,'minute':0x0,'second':0x0,'millisecond':0x0},pm={'weekNumber':0x1,'weekday':0x1,'hour':0x0,'minute':0x0,'second':0x0,'millisecond':0x0},gm={'ordinal':0x1,'hour':0x0,'minute':0x0,'second':0x0,'millisecond':0x0},Om=['year','month','day','hour','minute','second','millisecond'],wm=['weekYear','weekNumber','weekday','hour','minute','second','millisecond'],bm=['year','ordinal','hour','minute','second','millisecond'];function ym(_0x3d8a7a){switch(_0x3d8a7a['toLowerCase']()){case'localweekday':case'localweekdays':return'localWeekday';case'localweeknumber':case'localweeknumbers':return'localWeekNumber';case'localweekyear':case'localweekyears':return'localWeekYear';default:return function(_0x55466e){const _0x43576a={'year':'year','years':'year','month':'month','months':'month','day':'day','days':'day','hour':'hour','hours':'hour','minute':'minute','minutes':'minute','quarter':'quarter','quarters':'quarter','second':'second','seconds':'second','millisecond':'millisecond','milliseconds':'millisecond','weekday':'weekday','weekdays':'weekday','weeknumber':'weekNumber','weeksnumber':'weekNumber','weeknumbers':'weekNumber','weekyear':'weekYear','weekyears':'weekYear','ordinal':'ordinal'}[_0x55466e['toLowerCase']()];if(!_0x43576a)throw new gh(_0x55466e);return _0x43576a;}(_0x3d8a7a);}}function vm(_0x1881ed,_0x5c7df5){const _0x52d500=pu(_0x5c7df5['zone'],xu['defaultZone']);if(!_0x52d500['isValid'])return Sm['invalid'](im(_0x52d500));const _0x179aac=uu['fromObject'](_0x5c7df5);let _0x19f507,_0x445f02;if(Zu(_0x1881ed['year']))_0x19f507=xu['now']();else{for(const _0x23ece5 of Om)Zu(_0x1881ed[_0x23ece5])&&(_0x1881ed[_0x23ece5]=mm[_0x23ece5]);const _0xde5b4c=Hu(_0x1881ed)||Fu(_0x1881ed);if(_0xde5b4c)return Sm['invalid'](_0xde5b4c);const _0x1e16f7=function(_0x4c6388){if(void 0x0===Tm&&(Tm=xu['now']()),'iana'!==_0x4c6388['type'])return _0x4c6388['offset'](Tm);const _0x2cb0e7=_0x4c6388['name'];let _0x2b9cf2=Am['get'](_0x2cb0e7);return void 0x0===_0x2b9cf2&&(_0x2b9cf2=_0x4c6388['offset'](Tm),Am['set'](_0x2cb0e7,_0x2b9cf2)),_0x2b9cf2;}(_0x52d500);[_0x19f507,_0x445f02]=cm(_0x1881ed,_0x1e16f7,_0x52d500);}return new Sm({'ts':_0x19f507,'zone':_0x52d500,'loc':_0x179aac,'o':_0x445f02});}function _m(_0x445cdc,_0x5c9fdd,_0x68f662){const _0x49f9e4=!!Zu(_0x68f662['round'])||_0x68f662['round'],_0x3f8260=(_0x5042a9,_0x3bec3c)=>(_0x5042a9=nd(_0x5042a9,_0x49f9e4||_0x68f662['calendary']?0x0:0x2,!0x0),_0x5c9fdd['loc']['clone'](_0x68f662)['relFormatter'](_0x68f662)['format'](_0x5042a9,_0x3bec3c)),_0xca7b0d=_0x3f95f4=>_0x68f662['calendary']?_0x5c9fdd['hasSame'](_0x445cdc,_0x3f95f4)?0x0:_0x5c9fdd['startOf'](_0x3f95f4)['diff'](_0x445cdc['startOf'](_0x3f95f4),_0x3f95f4)['get'](_0x3f95f4):_0x5c9fdd['diff'](_0x445cdc,_0x3f95f4)['get'](_0x3f95f4);if(_0x68f662['unit'])return _0x3f8260(_0xca7b0d(_0x68f662['unit']),_0x68f662['unit']);for(const _0x319c46 of _0x68f662['units']){const _0x38f036=_0xca7b0d(_0x319c46);if(Math['abs'](_0x38f036)>=0x1)return _0x3f8260(_0x38f036,_0x319c46);}return _0x3f8260(_0x445cdc>_0x5c9fdd?-0x0:0x0,_0x68f662['units'][_0x68f662['units']['length']-0x1]);}function Em(_0x24fbd5){let _0x3232c6,_0x19869c={};return _0x24fbd5['length']>0x0&&'object'==typeof _0x24fbd5[_0x24fbd5['length']-0x1]?(_0x19869c=_0x24fbd5[_0x24fbd5['length']-0x1],_0x3232c6=Array['from'](_0x24fbd5)['slice'](0x0,_0x24fbd5['length']-0x1)):_0x3232c6=Array['from'](_0x24fbd5),[_0x19869c,_0x3232c6];}let Tm;const Am=new Map();var Sm=class DateTime{constructor(_0xda927c){const _0x41c45d=_0xda927c['zone']||xu['defaultZone'];let _0x1f9d84=_0xda927c['invalid']||(Number['isNaN'](_0xda927c['ts'])?new Cu('invalid\x20input'):null)||(_0x41c45d['isValid']?null:im(_0x41c45d));this['ts']=Zu(_0xda927c['ts'])?xu['now']():_0xda927c['ts'];let _0x4859af=null,_0x50fef0=null;if(!_0x1f9d84){if(_0xda927c['old']&&_0xda927c['old']['ts']===this['ts']&&_0xda927c['old']['zone']['equals'](_0x41c45d))[_0x4859af,_0x50fef0]=[_0xda927c['old']['c'],_0xda927c['old']['o']];else{const _0x16cba9=Gu(_0xda927c['o'])&&!_0xda927c['old']?_0xda927c['o']:_0x41c45d['offset'](this['ts']);_0x4859af=am(this['ts'],_0x16cba9),_0x1f9d84=Number['isNaN'](_0x4859af['year'])?new Cu('invalid\x20input'):null,_0x4859af=_0x1f9d84?null:_0x4859af,_0x50fef0=_0x1f9d84?null:_0x16cba9;}}this['_zone']=_0x41c45d,this['loc']=_0xda927c['loc']||uu['create'](),this['invalid']=_0x1f9d84,this['weekData']=null,this['localWeekData']=null,this['c']=_0x4859af,this['o']=_0x50fef0,this['isLuxonDateTime']=!0x0;}static['now'](){return new DateTime({});}static['local'](){const [_0x509bc6,_0x1b5a94]=Em(arguments),[_0xf1c610,_0x36fa53,_0x482165,_0x507533,_0x332f02,_0x46142f,_0x2a8fce]=_0x1b5a94;return vm({'year':_0xf1c610,'month':_0x36fa53,'day':_0x482165,'hour':_0x507533,'minute':_0x332f02,'second':_0x46142f,'millisecond':_0x2a8fce},_0x509bc6);}static utc(){const [_0x509246,_0x473f97]=Em(arguments),[_0x42f1d0,_0x24f8fa,_0x54ea46,_0x4284e1,_0x221c35,_0xe8b897,_0x3beef8]=_0x473f97;return _0x509246['zone']=fu['utcInstance'],vm({'year':_0x42f1d0,'month':_0x24f8fa,'day':_0x54ea46,'hour':_0x4284e1,'minute':_0x221c35,'second':_0xe8b897,'millisecond':_0x3beef8},_0x509246);}static fromJSDate(_0x445d44,_0x225c6d={}){const _0x1819f3=(_0x558cda=_0x445d44,'[object\x20Date]'===Object['prototype']['toString']['call'](_0x558cda)?_0x445d44['valueOf']():NaN);var _0x558cda;if(Number['isNaN'](_0x1819f3))return DateTime['invalid']('invalid\x20input');const _0x353562=pu(_0x225c6d['zone'],xu['defaultZone']);return _0x353562['isValid']?new DateTime({'ts':_0x1819f3,'zone':_0x353562,'loc':uu['fromObject'](_0x225c6d)}):DateTime['invalid'](im(_0x353562));}static['fromMillis'](_0x5ac420,_0x153335={}){if(Gu(_0x5ac420))return _0x5ac420<-0x1eb208c2dc0000||_0x5ac420>0x1eb208c2dc0000?DateTime['invalid']('Timestamp\x20out\x20of\x20range'):new DateTime({'ts':_0x5ac420,'zone':pu(_0x153335['zone'],xu['defaultZone']),'loc':uu['fromObject'](_0x153335)});throw new Oh('fromMillis\x20requires\x20a\x20numerical\x20input,\x20but\x20received\x20a\x20'+typeof _0x5ac420+'\x20with\x20value\x20'+_0x5ac420);}static['fromSeconds'](_0x249117,_0x1a0f32={}){if(Gu(_0x249117))return new DateTime({'ts':0x3e8*_0x249117,'zone':pu(_0x1a0f32['zone'],xu['defaultZone']),'loc':uu['fromObject'](_0x1a0f32)});throw new Oh('fromSeconds\x20requires\x20a\x20numerical\x20input');}static fromObject(_0x348daa,_0x419c79={}){_0x348daa=_0x348daa||{};const _0x2c2d02=pu(_0x419c79['zone'],xu['defaultZone']);if(!_0x2c2d02['isValid'])return DateTime['invalid'](im(_0x2c2d02));const _0x4526bc=uu['fromObject'](_0x419c79),_0xdb0453=pd(_0x348daa,ym),{minDaysInFirstWeek:_0xe9d3f4,startOfWeek:_0x1ca2d2}=Bu(_0xdb0453,_0x4526bc),_0x236397=xu['now'](),_0x172d96=Zu(_0x419c79['specificOffset'])?_0x2c2d02['offset'](_0x236397):_0x419c79['specificOffset'],_0xc1f90b=!Zu(_0xdb0453['ordinal']),_0x3cd42b=!Zu(_0xdb0453['year']),_0x43fb82=!Zu(_0xdb0453['month'])||!Zu(_0xdb0453['day']),_0x25620a=_0x3cd42b||_0x43fb82,_0x76e63b=_0xdb0453['weekYear']||_0xdb0453['weekNumber'];if((_0x25620a||_0xc1f90b)&&_0x76e63b)throw new ph('Can\x27t\x20mix\x20weekYear/weekNumber\x20units\x20with\x20year/month/day\x20or\x20ordinals');if(_0x43fb82&&_0xc1f90b)throw new ph('Can\x27t\x20mix\x20ordinal\x20dates\x20with\x20month/day');const _0x3da22a=_0x76e63b||_0xdb0453['weekday']&&!_0x25620a;let _0x166f0c,_0x4e35a4,_0x439a57=am(_0x236397,_0x172d96);_0x3da22a?(_0x166f0c=wm,_0x4e35a4=pm,_0x439a57=Qu(_0x439a57,_0xe9d3f4,_0x1ca2d2)):_0xc1f90b?(_0x166f0c=bm,_0x4e35a4=gm,_0x439a57=Uu(_0x439a57)):(_0x166f0c=Om,_0x4e35a4=mm);let _0x10024f=!0x1;for(const _0x2163a5 of _0x166f0c){Zu(_0xdb0453[_0x2163a5])?_0xdb0453[_0x2163a5]=_0x10024f?_0x4e35a4[_0x2163a5]:_0x439a57[_0x2163a5]:_0x10024f=!0x0;}const _0x467ab4=(_0x3da22a?function(_0xd42e29,_0x442758=0x4,_0x20d3e6=0x1){const _0x3c96b1=Xu(_0xd42e29['weekYear']),_0x1f595a=Ju(_0xd42e29['weekNumber'],0x1,hd(_0xd42e29['weekYear'],_0x442758,_0x20d3e6)),_0x408bff=Ju(_0xd42e29['weekday'],0x1,0x7);return _0x3c96b1?_0x1f595a?!_0x408bff&&Nu('weekday',_0xd42e29['weekday']):Nu('week',_0xd42e29['weekNumber']):Nu('weekYear',_0xd42e29['weekYear']);}(_0xdb0453,_0xe9d3f4,_0x1ca2d2):_0xc1f90b?function(_0x380d70){const _0xcff92=Xu(_0x380d70['year']),_0x9e5778=Ju(_0x380d70['ordinal'],0x1,od(_0x380d70['year']));return _0xcff92?!_0x9e5778&&Nu('ordinal',_0x380d70['ordinal']):Nu('year',_0x380d70['year']);}(_0xdb0453):Hu(_0xdb0453))||Fu(_0xdb0453);if(_0x467ab4)return DateTime['invalid'](_0x467ab4);const [_0x49c596,_0x21da00]=cm(_0x3da22a?ju(_0xdb0453,_0xe9d3f4,_0x1ca2d2):_0xc1f90b?Vu(_0xdb0453):_0xdb0453,_0x172d96,_0x2c2d02),_0x3a738b=new DateTime({'ts':_0x49c596,'zone':_0x2c2d02,'o':_0x21da00,'loc':_0x4526bc});return _0xdb0453['weekday']&&_0x25620a&&_0x348daa['weekday']!==_0x3a738b['weekday']?DateTime['invalid']('mismatched\x20weekday','you\x20can\x27t\x20specify\x20both\x20a\x20weekday\x20of\x20'+_0xdb0453['weekday']+'\x20and\x20a\x20date\x20of\x20'+_0x3a738b['toISO']()):_0x3a738b['isValid']?_0x3a738b:DateTime['invalid'](_0x3a738b['invalid']);}static['fromISO'](_0x19652f,_0x544f41={}){const [_0x350374,_0x38ae91]=function(_0x248152){return Dd(_0x248152,[hf,mf],[uf,pf],[df,gf],[ff,Of]);}(_0x19652f);return hm(_0x350374,_0x38ae91,_0x544f41,'ISO\x208601',_0x19652f);}static['fromRFC2822'](_0xe536bf,_0x27b5e3={}){const [_0x47296e,_0x155102]=function(_0x5ec5c6){return Dd(function(_0x10cba4){return _0x10cba4['replace'](/\([^()]*\)|[\n\t]/g,'\x20')['replace'](/(\s\s+)/g,'\x20')['trim']();}(_0x5ec5c6),[sf,nf]);}(_0xe536bf);return hm(_0x47296e,_0x155102,_0x27b5e3,'RFC\x202822',_0xe536bf);}static['fromHTTP'](_0x54abae,_0x568621={}){const [_0xea7b94,_0x5c70d2]=function(_0x4cc77){return Dd(_0x4cc77,[rf,cf],[of,cf],[af,lf]);}(_0x54abae);return hm(_0xea7b94,_0x5c70d2,_0x568621,'HTTP',_0x568621);}static fromFormat(_0x14c4fe,_0x33105c,_0x2bddd5={}){if(Zu(_0x14c4fe)||Zu(_0x33105c))throw new Oh('fromFormat\x20requires\x20an\x20input\x20string\x20and\x20a\x20format');const {locale:_0xe21d78=null,numberingSystem:_0x3ff84d=null}=_0x2bddd5,[_0x53e857,_0x201da1,_0x4b9cbe,_0x574310]=function(_0x4ece15,_0x28a151,_0x30186f){const {result:_0x30353f,zone:_0x4bb6a3,specificOffset:_0x33e684,invalidReason:_0x4095eb}=Jf(_0x4ece15,_0x28a151,_0x30186f);return[_0x30353f,_0x4bb6a3,_0x33e684,_0x4095eb];}(uu['fromOpts']({'locale':_0xe21d78,'numberingSystem':_0x3ff84d,'defaultToEN':!0x0}),_0x14c4fe,_0x33105c);return _0x574310?DateTime['invalid'](_0x574310):hm(_0x53e857,_0x201da1,_0x2bddd5,'format\x20'+_0x33105c,_0x14c4fe,_0x4b9cbe);}static fromString(_0x55de78,_0x5a4959,_0x5e9eee={}){return DateTime['fromFormat'](_0x55de78,_0x5a4959,_0x5e9eee);}static['fromSQL'](_0x382225,_0x4e2c2f={}){const [_0x24070b,_0x58cc4a]=function(_0x470c8b){return Dd(_0x470c8b,[bf,mf],[yf,vf]);}(_0x382225);return hm(_0x24070b,_0x58cc4a,_0x4e2c2f,'SQL',_0x382225);}static['invalid'](_0x137df1,_0x124510=null){if(!_0x137df1)throw new Oh('need\x20to\x20specify\x20a\x20reason\x20the\x20DateTime\x20is\x20invalid');const _0x582cb4=_0x137df1 instanceof Cu?_0x137df1:new Cu(_0x137df1,_0x124510);if(xu['throwOnInvalid'])throw new dh(_0x582cb4);return new DateTime({'invalid':_0x582cb4});}static isDateTime(_0x139d16){return _0x139d16&&_0x139d16['isLuxonDateTime']||!0x1;}static parseFormatForOpts(_0x3e4120,_0x32bbc1={}){const _0x171ce8=tm(_0x3e4120,uu['fromObject'](_0x32bbc1));return _0x171ce8?_0x171ce8['map'](t=>t?t['val']:null)['join'](''):null;}static expandFormat(_0x32913d,_0x4b0793={}){return Yf(Nd['parseFormat'](_0x32913d),uu['fromObject'](_0x4b0793))['map'](t=>t['val'])['join']('');}static resetCache(){Tm=void 0x0,Am['clear']();}get(_0xb9eaa3){return this[_0xb9eaa3];}get['isValid'](){return null===this['invalid'];}get['invalidReason'](){return this['invalid']?this['invalid']['reason']:null;}get invalidExplanation(){return this['invalid']?this['invalid']['explanation']:null;}get['locale'](){return this['isValid']?this['loc']['locale']:null;}get numberingSystem(){return this['isValid']?this['loc']['numberingSystem']:null;}get outputCalendar(){return this['isValid']?this['loc']['outputCalendar']:null;}get['zone'](){return this['_zone'];}get['zoneName'](){return this['isValid']?this['zone']['name']:null;}get['year'](){return this['isValid']?this['c']['year']:NaN;}get quarter(){return this['isValid']?Math['ceil'](this['c']['month']/0x3):NaN;}get month(){return this['isValid']?this['c']['month']:NaN;}get['day'](){return this['isValid']?this['c']['day']:NaN;}get['hour'](){return this['isValid']?this['c']['hour']:NaN;}get minute(){return this['isValid']?this['c']['minute']:NaN;}get['second'](){return this['isValid']?this['c']['second']:NaN;}get['millisecond'](){return this['isValid']?this['c']['millisecond']:NaN;}get['weekYear'](){return this['isValid']?sm(this)['weekYear']:NaN;}get['weekNumber'](){return this['isValid']?sm(this)['weekNumber']:NaN;}get['weekday'](){return this['isValid']?sm(this)['weekday']:NaN;}get['isWeekend'](){return this['isValid']&&this['loc']['getWeekendDays']()['includes'](this['weekday']);}get['localWeekday'](){return this['isValid']?nm(this)['weekday']:NaN;}get['localWeekNumber'](){return this['isValid']?nm(this)['weekNumber']:NaN;}get['localWeekYear'](){return this['isValid']?nm(this)['weekYear']:NaN;}get['ordinal'](){return this['isValid']?Uu(this['c'])['ordinal']:NaN;}get monthShort(){return this['isValid']?Df['months']('short',{'locObj':this['loc']})[this['month']-0x1]:null;}get monthLong(){return this['isValid']?Df['months']('long',{'locObj':this['loc']})[this['month']-0x1]:null;}get weekdayShort(){return this['isValid']?Df['weekdays']('short',{'locObj':this['loc']})[this['weekday']-0x1]:null;}get['weekdayLong'](){return this['isValid']?Df['weekdays']('long',{'locObj':this['loc']})[this['weekday']-0x1]:null;}get offset(){return this['isValid']?+this['o']:NaN;}get offsetNameShort(){return this['isValid']?this['zone']['offsetName'](this['ts'],{'format':'short','locale':this['locale']}):null;}get offsetNameLong(){return this['isValid']?this['zone']['offsetName'](this['ts'],{'format':'long','locale':this['locale']}):null;}get isOffsetFixed(){return this['isValid']?this['zone']['isUniversal']:null;}get['isInDST'](){return!this['isOffsetFixed']&&(this['offset']>this['set']({'month':0x1,'day':0x1})['offset']||this['offset']>this['set']({'month':0x5})['offset']);}getPossibleOffsets(){if(!this['isValid']||this['isOffsetFixed'])return[this];const _0x382a2d=0x5265c00,_0x86fbfd=0xea60,_0x386a5d=cd(this['c']),_0x2f50ac=this['zone']['offset'](_0x386a5d-_0x382a2d),_0x7785e6=this['zone']['offset'](_0x386a5d+_0x382a2d),_0x2c5cc8=this['zone']['offset'](_0x386a5d-_0x2f50ac*_0x86fbfd),_0xd1ac91=this['zone']['offset'](_0x386a5d-_0x7785e6*_0x86fbfd);if(_0x2c5cc8===_0xd1ac91)return[this];const _0x230f7b=_0x386a5d-_0x2c5cc8*_0x86fbfd,_0x760841=_0x386a5d-_0xd1ac91*_0x86fbfd,_0x2fb2ce=am(_0x230f7b,_0x2c5cc8),_0x4f982d=am(_0x760841,_0xd1ac91);return _0x2fb2ce['hour']===_0x4f982d['hour']&&_0x2fb2ce['minute']===_0x4f982d['minute']&&_0x2fb2ce['second']===_0x4f982d['second']&&_0x2fb2ce['millisecond']===_0x4f982d['millisecond']?[rm(this,{'ts':_0x230f7b}),rm(this,{'ts':_0x760841})]:[this];}get['isInLeapYear'](){return rd(this['year']);}get daysInMonth(){return ad(this['year'],this['month']);}get['daysInYear'](){return this['isValid']?od(this['year']):NaN;}get['weeksInWeekYear'](){return this['isValid']?hd(this['weekYear']):NaN;}get['weeksInLocalWeekYear'](){return this['isValid']?hd(this['localWeekYear'],this['loc']['getMinDaysInFirstWeek'](),this['loc']['getStartOfWeek']()):NaN;}resolvedLocaleOptions(_0x55d1df={}){const {locale:_0x477f48,numberingSystem:_0x34f7d9,calendar:_0x26d2b5}=Nd['create'](this['loc']['clone'](_0x55d1df),_0x55d1df)['resolvedOptions'](this);return{'locale':_0x477f48,'numberingSystem':_0x34f7d9,'outputCalendar':_0x26d2b5};}toUTC(_0x409eb3=0x0,_0x2b133b={}){return this['setZone'](fu['instance'](_0x409eb3),_0x2b133b);}toLocal(){return this['setZone'](xu['defaultZone']);}setZone(_0x5d031b,{keepLocalTime:_0x2677f4=!0x1,keepCalendarTime:_0x2828bf=!0x1}={}){if((_0x5d031b=pu(_0x5d031b,xu['defaultZone']))['equals'](this['zone']))return this;if(_0x5d031b['isValid']){let _0x59aa4c=this['ts'];if(_0x2677f4||_0x2828bf){const _0x3cfd70=_0x5d031b['offset'](this['ts']),_0x4010b5=this['toObject']();[_0x59aa4c]=cm(_0x4010b5,_0x3cfd70,_0x5d031b);}return rm(this,{'ts':_0x59aa4c,'zone':_0x5d031b});}return DateTime['invalid'](im(_0x5d031b));}['reconfigure']({locale:_0x1d3ed0,numberingSystem:_0x49ecde,outputCalendar:_0xd4515a}={}){return rm(this,{'loc':this['loc']['clone']({'locale':_0x1d3ed0,'numberingSystem':_0x49ecde,'outputCalendar':_0xd4515a})});}setLocale(_0x10524e){return this['reconfigure']({'locale':_0x10524e});}set(_0x505e93){if(!this['isValid'])return this;const _0x29bb1f=pd(_0x505e93,ym),{minDaysInFirstWeek:_0x3f4a5f,startOfWeek:_0x2fe837}=Bu(_0x29bb1f,this['loc']),_0x35e66b=!Zu(_0x29bb1f['weekYear'])||!Zu(_0x29bb1f['weekNumber'])||!Zu(_0x29bb1f['weekday']),_0x497d54=!Zu(_0x29bb1f['ordinal']),_0x39cc6b=!Zu(_0x29bb1f['year']),_0x82cdf7=!Zu(_0x29bb1f['month'])||!Zu(_0x29bb1f['day']),_0x1ec748=_0x39cc6b||_0x82cdf7,_0x5c355b=_0x29bb1f['weekYear']||_0x29bb1f['weekNumber'];if((_0x1ec748||_0x497d54)&&_0x5c355b)throw new ph('Can\x27t\x20mix\x20weekYear/weekNumber\x20units\x20with\x20year/month/day\x20or\x20ordinals');if(_0x82cdf7&&_0x497d54)throw new ph('Can\x27t\x20mix\x20ordinal\x20dates\x20with\x20month/day');let _0x34d42c;_0x35e66b?_0x34d42c=ju({...Qu(this['c'],_0x3f4a5f,_0x2fe837),..._0x29bb1f},_0x3f4a5f,_0x2fe837):Zu(_0x29bb1f['ordinal'])?(_0x34d42c={...this['toObject'](),..._0x29bb1f},Zu(_0x29bb1f['day'])&&(_0x34d42c['day']=Math['min'](ad(_0x34d42c['year'],_0x34d42c['month']),_0x34d42c['day']))):_0x34d42c=Vu({...Uu(this['c']),..._0x29bb1f});const [_0x20e8e8,_0x35018e]=cm(_0x34d42c,this['o'],this['zone']);return rm(this,{'ts':_0x20e8e8,'o':_0x35018e});}['plus'](_0x32b335){if(!this['isValid'])return this;return rm(this,lm(this,Nf['fromDurationLike'](_0x32b335)));}['minus'](_0x44878f){if(!this['isValid'])return this;return rm(this,lm(this,Nf['fromDurationLike'](_0x44878f)['negate']()));}startOf(_0xfe82c0,{useLocaleWeeks:_0x2913c6=!0x1}={}){if(!this['isValid'])return this;const _0x267017={},_0x494f36=Nf['normalizeUnit'](_0xfe82c0);switch(_0x494f36){case'years':_0x267017['month']=0x1;case'quarters':case'months':_0x267017['day']=0x1;case'weeks':case'days':_0x267017['hour']=0x0;case'hours':_0x267017['minute']=0x0;case'minutes':_0x267017['second']=0x0;case'seconds':_0x267017['millisecond']=0x0;}if('weeks'===_0x494f36){if(_0x2913c6){const _0x3f26cb=this['loc']['getStartOfWeek'](),{weekday:_0x1fdd1b}=this;_0x1fdd1b<_0x3f26cb&&(_0x267017['weekNumber']=this['weekNumber']-0x1),_0x267017['weekday']=_0x3f26cb;}else _0x267017['weekday']=0x1;}return'quarters'===_0x494f36&&(_0x267017['month']=0x3*(Math['ceil'](this['month']/0x3)-0x1)+0x1),this['set'](_0x267017);}['endOf'](_0x7e9a35,_0xc4e0f7){return this['isValid']?this['plus']({[_0x7e9a35]:0x1})['startOf'](_0x7e9a35,_0xc4e0f7)['minus'](0x1):this;}toFormat(_0x1d467c,_0x462bf9={}){return this['isValid']?Nd['create'](this['loc']['redefaultToEN'](_0x462bf9))['formatDateTimeFromString'](this,_0x1d467c):em;}toLocaleString(_0x1add4f=_h,_0x1c1474={}){return this['isValid']?Nd['create'](this['loc']['clone'](_0x1c1474),_0x1add4f)['formatDateTime'](this):em;}toLocaleParts(_0x15b6f3={}){return this['isValid']?Nd['create'](this['loc']['clone'](_0x15b6f3),_0x15b6f3)['formatDateTimeParts'](this):[];}toISO({format:_0x44cdf6='extended',suppressSeconds:_0x2dee83=!0x1,suppressMilliseconds:_0x1a89d6=!0x1,includeOffset:_0x144815=!0x0,extendedZone:_0x4ff151=!0x1}={}){if(!this['isValid'])return null;const _0x36b382='extended'===_0x44cdf6;let _0x18d41b=dm(this,_0x36b382);return _0x18d41b+='T',_0x18d41b+=fm(this,_0x36b382,_0x2dee83,_0x1a89d6,_0x144815,_0x4ff151),_0x18d41b;}toISODate({format:_0x428b0e='extended'}={}){return this['isValid']?dm(this,'extended'===_0x428b0e):null;}toISOWeekDate(){return um(this,'kkkk-\x27W\x27WW-c');}toISOTime({suppressMilliseconds:_0x3daa5a=!0x1,suppressSeconds:_0x50d771=!0x1,includeOffset:_0x25500e=!0x0,includePrefix:_0xc947e9=!0x1,extendedZone:_0x56dcdf=!0x1,format:_0x4ed786='extended'}={}){return this['isValid']?(_0xc947e9?'T':'')+fm(this,'extended'===_0x4ed786,_0x50d771,_0x3daa5a,_0x25500e,_0x56dcdf):null;}toRFC2822(){return um(this,'EEE,\x20dd\x20LLL\x20yyyy\x20HH:mm:ss\x20ZZZ',!0x1);}toHTTP(){return um(this['toUTC'](),'EEE,\x20dd\x20LLL\x20yyyy\x20HH:mm:ss\x20\x27GMT\x27');}toSQLDate(){return this['isValid']?dm(this,!0x0):null;}toSQLTime({includeOffset:_0x38f2ba=!0x0,includeZone:_0xd319fb=!0x1,includeOffsetSpace:_0x17785d=!0x0}={}){let _0x297592='HH:mm:ss.SSS';return(_0xd319fb||_0x38f2ba)&&(_0x17785d&&(_0x297592+='\x20'),_0xd319fb?_0x297592+='z':_0x38f2ba&&(_0x297592+='ZZ')),um(this,_0x297592,!0x0);}toSQL(_0x1fff83={}){return this['isValid']?this['toSQLDate']()+'\x20'+this['toSQLTime'](_0x1fff83):null;}toString(){return this['isValid']?this['toISO']():em;}[Symbol['for']('nodejs.util.inspect.custom')](){return this['isValid']?'DateTime\x20{\x20ts:\x20'+this['toISO']()+',\x20zone:\x20'+this['zone']['name']+',\x20locale:\x20'+this['locale']+'\x20}':'DateTime\x20{\x20Invalid,\x20reason:\x20'+this['invalidReason']+'\x20}';}['valueOf'](){return this['toMillis']();}toMillis(){return this['isValid']?this['ts']:NaN;}toSeconds(){return this['isValid']?this['ts']/0x3e8:NaN;}toUnixInteger(){return this['isValid']?Math['floor'](this['ts']/0x3e8):NaN;}toJSON(){return this['toISO']();}toBSON(){return this['toJSDate']();}toObject(_0x434d78={}){if(!this['isValid'])return{};const _0x55e108={...this['c']};return _0x434d78['includeConfig']&&(_0x55e108['outputCalendar']=this['outputCalendar'],_0x55e108['numberingSystem']=this['loc']['numberingSystem'],_0x55e108['locale']=this['loc']['locale']),_0x55e108;}toJSDate(){return new Date(this['isValid']?this['ts']:NaN);}['diff'](_0x52f676,_0x2ccc24='milliseconds',_0x100201={}){if(!this['isValid']||!_0x52f676['isValid'])return Nf['invalid']('created\x20by\x20diffing\x20an\x20invalid\x20DateTime');const _0x13a4d6={'locale':this['locale'],'numberingSystem':this['numberingSystem'],..._0x100201},_0x44049a=(_0x28939d=_0x2ccc24,Array['isArray'](_0x28939d)?_0x28939d:[_0x28939d])['map'](Nf['normalizeUnit']),_0x50e7c5=_0x52f676['valueOf']()>this['valueOf'](),_0x23330f=jf(_0x50e7c5?this:_0x52f676,_0x50e7c5?_0x52f676:this,_0x44049a,_0x13a4d6);var _0x28939d;return _0x50e7c5?_0x23330f['negate']():_0x23330f;}['diffNow'](_0x499651='milliseconds',_0x534fb6={}){return this['diff'](DateTime['now'](),_0x499651,_0x534fb6);}until(_0x51fe95){return this['isValid']?$f['fromDateTimes'](this,_0x51fe95):this;}['hasSame'](_0x13e5cb,_0x5337c7,_0x57d761){if(!this['isValid'])return!0x1;const _0x274f7f=_0x13e5cb['valueOf'](),_0x4669b0=this['setZone'](_0x13e5cb['zone'],{'keepLocalTime':!0x0});return _0x4669b0['startOf'](_0x5337c7,_0x57d761)<=_0x274f7f&&_0x274f7f<=_0x4669b0['endOf'](_0x5337c7,_0x57d761);}['equals'](_0x12c8b8){return this['isValid']&&_0x12c8b8['isValid']&&this['valueOf']()===_0x12c8b8['valueOf']()&&this['zone']['equals'](_0x12c8b8['zone'])&&this['loc']['equals'](_0x12c8b8['loc']);}toRelative(_0x3bbab2={}){if(!this['isValid'])return null;const _0x42661d=_0x3bbab2['base']||DateTime['fromObject']({},{'zone':this['zone']}),_0x522f08=_0x3bbab2['padding']?this<_0x42661d?-_0x3bbab2['padding']:_0x3bbab2['padding']:0x0;let _0x42253c=['years','months','days','hours','minutes','seconds'],_0x40e575=_0x3bbab2['unit'];return Array['isArray'](_0x3bbab2['unit'])&&(_0x42253c=_0x3bbab2['unit'],_0x40e575=void 0x0),_m(_0x42661d,this['plus'](_0x522f08),{..._0x3bbab2,'numeric':'always','units':_0x42253c,'unit':_0x40e575});}toRelativeCalendar(_0x3d9bb4={}){return this['isValid']?_m(_0x3d9bb4['base']||DateTime['fromObject']({},{'zone':this['zone']}),this,{..._0x3d9bb4,'numeric':'auto','units':['years','months','days'],'calendary':!0x0}):null;}static['min'](..._0x497719){if(!_0x497719['every'](DateTime['isDateTime']))throw new Oh('min\x20requires\x20all\x20arguments\x20be\x20DateTimes');return zu(_0x497719,_0x258beb=>_0x258beb['valueOf'](),Math['min']);}static['max'](..._0x2b8689){if(!_0x2b8689['every'](DateTime['isDateTime']))throw new Oh('max\x20requires\x20all\x20arguments\x20be\x20DateTimes');return zu(_0x2b8689,_0x39625e=>_0x39625e['valueOf'](),Math['max']);}static fromFormatExplain(_0x5a57d9,_0x2348a1,_0x50061d={}){const {locale:_0x39cab3=null,numberingSystem:_0x416f21=null}=_0x50061d;return Jf(uu['fromOpts']({'locale':_0x39cab3,'numberingSystem':_0x416f21,'defaultToEN':!0x0}),_0x5a57d9,_0x2348a1);}static fromStringExplain(_0x3942d9,_0x50a17e,_0x40f729={}){return DateTime['fromFormatExplain'](_0x3942d9,_0x50a17e,_0x40f729);}static buildFormatParser(_0x3e5a4c,_0x37bd6b={}){const {locale:_0x23fd06=null,numberingSystem:_0x3968b5=null}=_0x37bd6b;return new Kf(uu['fromOpts']({'locale':_0x23fd06,'numberingSystem':_0x3968b5,'defaultToEN':!0x0}),_0x3e5a4c);}static fromFormatParser(_0x221ffe,_0x41c248,_0x1156df={}){if(Zu(_0x221ffe)||Zu(_0x41c248))throw new Oh('fromFormatParser\x20requires\x20an\x20input\x20string\x20and\x20a\x20format\x20parser');const {locale:_0x23ec35=null,numberingSystem:_0x583aba=null}=_0x1156df,_0x524576=uu['fromOpts']({'locale':_0x23ec35,'numberingSystem':_0x583aba,'defaultToEN':!0x0});if(!_0x524576['equals'](_0x41c248['locale']))throw new Oh('fromFormatParser\x20called\x20with\x20a\x20locale\x20of\x20'+_0x524576+',\x20but\x20the\x20format\x20parser\x20was\x20created\x20for\x20'+_0x41c248['locale']);const {result:_0x181ff8,zone:_0x2695ce,specificOffset:_0x2f70f9,invalidReason:_0x263ea8}=_0x41c248['explainFromTokens'](_0x221ffe);return _0x263ea8?DateTime['invalid'](_0x263ea8):hm(_0x181ff8,_0x2695ce,_0x1156df,'format\x20'+_0x41c248['format'],_0x221ffe,_0x2f70f9);}static get['DATE_SHORT'](){return _h;}static get['DATE_MED'](){return Eh;}static get['DATE_MED_WITH_WEEKDAY'](){return Th;}static get['DATE_FULL'](){return Ah;}static get['DATE_HUGE'](){return Sh;}static get['TIME_SIMPLE'](){return Ih;}static get['TIME_WITH_SECONDS'](){return kh;}static get['TIME_WITH_SHORT_OFFSET'](){return xh;}static get['TIME_WITH_LONG_OFFSET'](){return Ch;}static get['TIME_24_SIMPLE'](){return Rh;}static get['TIME_24_WITH_SECONDS'](){return Ph;}static get['TIME_24_WITH_SHORT_OFFSET'](){return Nh;}static get['TIME_24_WITH_LONG_OFFSET'](){return Mh;}static get['DATETIME_SHORT'](){return Lh;}static get['DATETIME_SHORT_WITH_SECONDS'](){return $h;}static get['DATETIME_MED'](){return Dh;}static get['DATETIME_MED_WITH_SECONDS'](){return Qh;}static get['DATETIME_MED_WITH_WEEKDAY'](){return jh;}static get['DATETIME_FULL'](){return Uh;}static get['DATETIME_FULL_WITH_SECONDS'](){return Vh;}static get['DATETIME_HUGE'](){return Bh;}static get['DATETIME_HUGE_WITH_SECONDS'](){return Hh;}};function Im(_0x2c2432){if(Sm['isDateTime'](_0x2c2432))return _0x2c2432;if(_0x2c2432&&_0x2c2432['valueOf']&&Gu(_0x2c2432['valueOf']()))return Sm['fromJSDate'](_0x2c2432);if(_0x2c2432&&'object'==typeof _0x2c2432)return Sm['fromObject'](_0x2c2432);throw new Oh('Unknown\x20datetime\x20argument:\x20'+_0x2c2432+',\x20of\x20type\x20'+typeof _0x2c2432);}function km(_0x1df267={},_0x49db71){if(void 0x0!==_0x1df267['dateTimeFormat']&&'function'!=typeof _0x1df267['dateTimeFormat'])throw new _0x4242d4('invalid-date-time-format');return _0x3695e0=>{const _0x5e2bc6='string'==typeof _0x3695e0?Sm['fromISO'](_0x3695e0):Sm['fromJSDate'](_0x3695e0),_0xa69fbb=Sm['now'](),_0x52e51e=Math['floor'](_0xa69fbb['diff'](_0x5e2bc6,'days')['days']);return _0x1df267['dateTimeFormat']?_0x1df267['dateTimeFormat'](_0x5e2bc6['toJSDate'](),_0x49db71&&_0x49db71['t']?_0x49db71['t']:void 0x0):0x0===_0x52e51e?_0x49db71?Tl(_0x49db71,'Today')+'\x20'+_0x5e2bc6['toFormat']('hh:mma'):_0x5e2bc6['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x52e51e?_0x49db71?Tl(_0x49db71,'Yesterday')+'\x20'+_0x5e2bc6['toFormat']('hh:mma'):_0x5e2bc6['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x52e51e<0x7?_0x49db71?Tl(_0x49db71,'Last')+'\x20'+Tl(_0x49db71,_0x5e2bc6['toFormat']('EEEE'))+'\x20'+_0x5e2bc6['toFormat']('hh:mma'):_0x5e2bc6['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x5e2bc6['toFormat']('LL-dd-yyyy\x20hh:mma');};}function xm(_0x48b3b7,_0x36568d){const _0x266ad5=_0x48b3b7['mapper']['markerNameToElements'](_0x36568d['name']);if(!_0x266ad5)return null;const _0x1f24d2=_0x4b2d4c(_0x266ad5['values']());return _0x48b3b7['view']['domConverter']['mapViewToDom'](_0x1f24d2)||null;}function Cm(_0x53d33d,_0x231bc1){if(0x0===_0x231bc1['length'])return null;const _0x589a85=[],_0x488917=_0x53d33d['view']['domConverter'];for(const _0x303bf2 of _0x231bc1){const _0x3dcb81=_0x53d33d['mapper']['markerNameToElements'](_0x303bf2['name']);if(!_0x3dcb81)continue;const _0xe6ab0c=Array['from'](_0x3dcb81)['map'](_0x2a4c78=>_0x488917['mapViewToDom'](_0x2a4c78))['filter'](_0x17c49b=>!!_0x17c49b);_0x589a85['push'](..._0xe6ab0c);}if(0x0===_0x589a85['length'])return null;const _0x473a33=[];for(const _0x5b0de7 of _0x589a85){const _0xf811cb=_0x5b0de7['getClientRects']()['item'](0x0);_0xf811cb&&_0x473a33['push']({'x':_0xf811cb['x'],'y':_0xf811cb['y'],'domElement':_0x5b0de7});}return 0x0===_0x473a33['length']?null:(_0x473a33['sort']((_0x13caf3,_0x3e0d62)=>_0x13caf3['y']-_0x3e0d62['y']||_0x13caf3['x']-_0x3e0d62['x']),_0x473a33['map'](_0x3ca0bb=>_0x3ca0bb['domElement']));}function Rm(_0x5e3e2c,{limit:_0x59b12a,suffix:_0x5de342='...'}){const _0x4da69f=[];let _0x290124=0x0;const _0x9aed77=_0x5e3e2c['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x241610=0x0;_0x241610<_0x9aed77['length'];_0x241610++){let _0x48b442=_0x9aed77[_0x241610];const _0x311b8c=Pm(_0x48b442);if(_0x48b442['startsWith']('<')){if(_0x290124>=_0x59b12a){const _0x325283=_0x48b442['match'](/[a-zA-Z]+/);if(!_0x325283){_0x9aed77[_0x241610]='';continue;}const _0x524994=_0x325283[0x0];_0x48b442['startsWith']('</')?(_0x4da69f['length']&&(_0x48b442=''),_0x4da69f['pop']()):(_0x4da69f['push'](_0x524994),_0x48b442='');}}else{if(_0x290124>=_0x59b12a)_0x48b442='';else{if(_0x290124+_0x311b8c['length']>=_0x59b12a){let _0x544c00=_0x59b12a-_0x290124;if('\x20'===_0x311b8c[_0x544c00-0x1])_0x544c00--;else{const _0x5c924b=_0x311b8c['slice'](_0x544c00)['indexOf']('\x20');-0x1!==_0x5c924b?_0x544c00+=_0x5c924b:_0x544c00=_0x48b442['length'];}_0x48b442=_0x311b8c['slice'](0x0,_0x544c00)['join']('')+_0x5de342,_0x290124=_0x59b12a;}else _0x290124+=_0x311b8c['length'];}}_0x9aed77[_0x241610]=_0x48b442;}return _0x9aed77['join']('\x0a')['replace'](/\n/g,'');}function Pm(_0x2bdb47){const _0xa0ae97=[];for(let _0x55a212=0x0;_0x55a212<_0x2bdb47['length'];_0x55a212++){const _0xebf9e0=_0x2bdb47['substring'](_0x55a212)['match'](/^&[a-z0-9#]+;/);if(_0xebf9e0){const _0x4a3a0f=_0xebf9e0[0x0];_0xa0ae97['push'](_0x4a3a0f),_0x55a212+=_0x4a3a0f['length']-0x1;}else _0xa0ae97['push'](_0x2bdb47[_0x55a212]);}return _0xa0ae97;}var Nm=class extends _0x2f6e1a{submitView;['cancelView'];['focusTracker'];keystrokes;['focusCycler'];['focusables'];constructor(_0xc38d62){super(_0xc38d62);const _0x52c4fb=this['bindTemplate'];this['set']('message',Tl(_0xc38d62,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0xc38d62,Tl(_0xc38d62,'Yes'),_0x2659e3,'submit'),this['cancelView']=this['_createButtonView'](_0xc38d62,Tl(_0xc38d62,'No'),_0x2f7d46,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x1c95ab(),this['keystrokes']=new _0xa8275a(),this['focusCycler']=new _0x273f88({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-confirm-view'],'tabindex':-0x1,'role':'alertdialog'},'children':[{'tag':'div','attributes':{'class':'ck-confirm-view-inner','role':'presentation'},'children':[{'tag':'p','children':[{'text':_0x52c4fb['to']('message')}]},{'tag':'div','attributes':{'class':'ck-confirm-view-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['cancelView']['element']['focus']({'preventScroll':!0x0});}_createButtonView(_0x37ec1e,_0x57f881,_0xcb7658,_0x4cc7a6){const _0x3340f8=new _0x39ae99(_0x37ec1e);return _0x3340f8['label']=_0x57f881,_0x3340f8['icon']=_0xcb7658,_0x3340f8['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x4cc7a6}}),_0x3340f8['on']('execute',()=>this['fire'](_0x4cc7a6)),_0x3340f8;}_setupKeyboardNavigation(){this['focusables']['forEach'](_0x3059e9=>{this['keystrokes']['listenTo'](_0x3059e9['element']),this['focusTracker']['add'](_0x3059e9['element']);}),this['keystrokes']['set']('esc',(_0x3851f8,_0xca9b15)=>{this['fire']('cancel'),_0xca9b15();});}};function Mm(_0x118682){return class _0x2acd23 extends _0x118682{['showConfirm'](_0x4c25e5,_0x5b2b2d){return this['confirmView']=new Nm(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x4c25e5,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x5b2b2d['appendChild'](this['confirmView']['element']),_0x5b2b2d['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x3f4b4a,_0x246950,_0x2b361a)=>{_0x2b361a||_0x5b2b2d['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x20542d=>this['confirmView']['on']('submit',_0x20542d));}['cancelConfirm'](){this['isConfirm']&&this['confirmView']['fire']('cancel');}['_removeConfirm'](){this['element']&&this['confirmView']&&this['confirmView']['element']&&(this['element']['focus'](),this['confirmView']['element']['remove'](),this['deregisterChild'](this['confirmView']),this['isConfirm']=!0x1,this['fire']('removeConfirm'),this['confirmView']['destroy'](),this['confirmView']=void 0x0);}};}function Lm(_0xe8fc53){let _0x5bbd17=0x0,_0x5942c7=0x0;for(const _0x4f41e2 of Dm(_0xe8fc53))_0x5bbd17=(_0x5bbd17<<0x5)-_0x5bbd17+_0x4f41e2,_0x5bbd17&=_0x5bbd17,[_0x5bbd17,_0x5942c7]=[_0x5942c7,_0x5bbd17];return Um(_0x5bbd17)+Um(_0x5942c7);}function*$m(_0xded45f){null==_0xded45f||null==_0xded45f?yield 0x12b9b0a1:0x0===_0xded45f||!0x1===_0xded45f?yield 0x0:0x1===_0xded45f||0x1==_0xded45f?yield 0x1:Array['isArray'](_0xded45f)?yield*function*(_0x4076f1){for(const _0xb47ddc of _0x4076f1)yield*$m(_0xb47ddc);}(_0xded45f):'object'==typeof _0xded45f?yield*Dm(_0xded45f):'string'==typeof _0xded45f?yield*Qm(_0xded45f):'number'==typeof _0xded45f&&(yield _0xded45f);}function*Dm(_0x17cab9){if(yield jm('{'),_0x17cab9){const _0x41d8e2=Object['keys'](_0x17cab9)['sort']();for(const _0x5cea60 of _0x41d8e2){yield*Qm(_0x5cea60),yield jm(':');const _0x445530=_0x17cab9[_0x5cea60];yield*$m(_0x445530);}}yield jm('}');}function*Qm(_0x3bc975){yield jm('\x22');for(const _0x376a1e of _0x3bc975)yield jm(_0x376a1e);yield jm('\x22');}function jm(_0x5ad535){return _0x5ad535['charCodeAt'](0x0);}function Um(_0x5c31a8){return(_0x5c31a8*=Math['sign'](_0x5c31a8))['toString'](0x24);}function Vm(_0x6a9aef){if('addAttribute'!=_0x6a9aef['type']&&'removeAttribute'!=_0x6a9aef['type']&&'changeAttribute'!=_0x6a9aef['type'])return!0x1;try{return _0x6a9aef['_validate'](),!0x1;}catch{return!0x0;}}const Bm=['root','roots','initialData','context','toolbar','rootsAttributes'],Hm=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function Fm(_0xce39,_0x32cb90,_0xbdff07,_0x4bfe23=[]){const _0x1da97d='string'==typeof _0xce39?_0xbdff07['get'](_0xce39)['constructor']:_0xce39['prototype']['constructor'];if(_0x32cb90['has'](_0x1da97d))return _0x32cb90['get'](_0x1da97d);_0x32cb90['set'](_0x1da97d,!0x0);const _0x3710de=[...Hm,..._0x4bfe23]['map'](_0x35bbc1=>{if(_0xbdff07['has'](_0x35bbc1))return _0xbdff07['get'](_0x35bbc1)['constructor'];})['filter'](_0x1a104d=>_0x1a104d);if(_0x1da97d&&_0x3710de['includes'](_0x1da97d))return _0x32cb90['set'](_0x1da97d,!0x1),!0x1;if(!_0x1da97d['requires'])return _0x32cb90['set'](_0x1da97d,!0x0),!0x0;const _0x1a2237=_0x1da97d['requires']['every'](_0x372355=>Fm(_0x372355,_0x32cb90,_0xbdff07,_0x4bfe23));return _0x32cb90['set'](_0x1da97d,_0x1a2237),_0x1a2237;}function Zm(_0x11240d,_0x557d56){const _0x1166ba={};for(const _0x1af498 of _0x11240d['config']['names']())Bm['includes'](_0x1af498)||(_0x1166ba[_0x1af498]=_0x11240d['config']['get'](_0x1af498));const _0x11ed9b=_0x1166ba['plugins']||[],_0x2d9426=_0x11240d['constructor']['builtinPlugins']||[],_0x92e6a=_0x11ed9b['length']?_0x11ed9b:_0x2d9426,_0x4602f6=_0x1166ba['extraPlugins']||[];delete _0x1166ba['extraPlugins'];const _0x1508f0=_0x1166ba['removePlugins']||[];delete _0x1166ba['removePlugins'];const _0x3d49f3=_0x11240d['_context']['config']['get']('plugins')||[],_0x849db0=_0x92e6a['concat'](_0x4602f6)['concat'](_0x3d49f3)['map'](_0x171f93=>'string'==typeof _0x171f93?_0x2d9426['find'](_0x466996=>_0x466996['pluginName']==_0x171f93):_0x171f93)['filter'](_0x5f0b10=>!_0x1508f0['includes'](_0x5f0b10)&&!_0x1508f0['includes'](_0x5f0b10['pluginName'])),_0x4aceb6=Array['from'](new Set(_0x849db0)),_0x4bd7ca=new Map();return _0x1166ba['plugins']=_0x4aceb6['filter'](_0x314bd8=>Fm(_0x314bd8,_0x4bd7ca,_0x11240d['plugins'],_0x557d56)),_0x1166ba;}function Gm(_0x2f03e3,_0x17407a){const _0xd98fc4=[];_0x2f03e3['document']['selection']['on']('change:range',()=>{const _0x211d20=function(_0x50fa67,_0x5327ad){const _0x406d37=[];for(const _0x26c62f of _0x50fa67['markers']){const _0x30e31d=_0x26c62f['getRange']();(_0x30e31d['containsPosition'](_0x5327ad)||_0x30e31d['start']['isEqual'](_0x5327ad)||_0x30e31d['end']['isEqual'](_0x5327ad))&&_0x406d37['push'](_0x26c62f);}return _0x406d37;}(_0x2f03e3,_0x2f03e3['document']['selection']['focus']),_0x319a52=[],_0x447a0f=[],_0x2541be=[];for(const _0x191a5e of _0xd98fc4)_0x211d20['includes'](_0x191a5e)||_0x319a52['push'](_0x191a5e);for(const _0x21e39a of _0x211d20)_0xd98fc4['includes'](_0x21e39a)||_0x447a0f['push'](_0x21e39a),_0x2541be['push'](_0x21e39a);(_0x319a52['length']||_0x447a0f['length'])&&_0x17407a({'left':_0x319a52,'entered':_0x447a0f}),_0xd98fc4['length']=0x0,_0xd98fc4['push'](..._0x2541be);});}const Xm='Ctrl+Shift+E';function qm(_0x15e1fb,_0x23cf53){const _0x2fbbfd=_0x15e1fb['element'];_0x15e1fb['keystrokes']['listenTo'](_0x2fbbfd);for(const _0x34582a of _0x23cf53)Wm(_0x15e1fb,_0x34582a);_0x23cf53['on']('change',(_0x4d8b80,_0x399556)=>{for(const _0x10d642 of _0x399556['removed'])zm(_0x15e1fb,_0x10d642);for(const _0x54e70f of Array['from'](_0x399556['added'])['reverse']())Wm(_0x15e1fb,_0x54e70f);}),_0x15e1fb['keystrokes']['set']('enter',(_0x48255f,_0x2e2002)=>{_0x2fbbfd===_0x48255f['target']&&(_0x15e1fb['focusCycler']['focusFirst'](),_0x2e2002());},{'filter':_0xf5e254=>_0xf5e254['target']===_0x2fbbfd}),_0x15e1fb['keystrokes']['set']('esc',(_0xe437e6,_0x53e112)=>{_0x2fbbfd!==_0xe437e6['target']?_0x15e1fb['focus']():_0x15e1fb['fire']('escape'),_0x53e112();}),_0x15e1fb['keystrokes']['set']('arrowdown',(_0x5e0b5f,_0x432aec)=>{_0x2fbbfd===_0x5e0b5f['target']&&(_0x15e1fb['fire']('arrowdown'),_0x432aec());}),_0x15e1fb['keystrokes']['set']('arrowup',(_0xbbbf6b,_0x3ea0ba)=>{_0x2fbbfd===_0xbbbf6b['target']&&(_0x15e1fb['fire']('arrowup'),_0x3ea0ba());});}function Wm(_0x15af81,_0x3be211){_0x3be211['isRendered']&&(_0x15af81['focusTracker']['add'](_0x3be211['element']),_0x15af81['keystrokes']['listenTo'](_0x3be211['element']),_0x2ba396(_0x3be211)&&function(_0x2d8b0f,_0x28cfaa){const _0x145dde=_0x2d8b0f['actions'],_0x5a9040=_0x28cfaa['actions'];for(const _0x1a9613 of Object['keys'](_0x145dde))if(_0x1a9613 in _0x5a9040&&_0x145dde[_0x1a9613]!==_0x5a9040[_0x1a9613])return!0x1;return!0x0;}(_0x15af81['focusCycler'],_0x3be211['focusCycler'])&&_0x15af81['focusCycler']['chain'](_0x3be211['focusCycler']));}function zm(_0xd3715c,_0x554af2){_0xd3715c['focusTracker']['remove'](_0x554af2['element']),_0xd3715c['keystrokes']['stopListening'](_0x554af2['element']),_0x2ba396(_0x554af2)&&_0xd3715c['focusCycler']['unchain'](_0x554af2['focusCycler']);}var Ym=class{['diff'](_0x40f17b,_0x55a2bf,_0x5f2aa8={}){let _0x5d0bde;'function'==typeof _0x5f2aa8?(_0x5d0bde=_0x5f2aa8,_0x5f2aa8={}):'callback'in _0x5f2aa8&&(_0x5d0bde=_0x5f2aa8['callback']);const _0x3ace3d=this['castInput'](_0x40f17b,_0x5f2aa8),_0x58b5c0=this['castInput'](_0x55a2bf,_0x5f2aa8),_0x2205bf=this['removeEmpty'](this['tokenize'](_0x3ace3d,_0x5f2aa8)),_0x597f83=this['removeEmpty'](this['tokenize'](_0x58b5c0,_0x5f2aa8));return this['diffWithOptionsObj'](_0x2205bf,_0x597f83,_0x5f2aa8,_0x5d0bde);}diffWithOptionsObj(_0x5a82d2,_0x5dfafc,_0x18807f,_0x4ba38d){var _0x560045;const _0x3c4485=_0xe3a09f=>(_0xe3a09f=this['postProcess'](_0xe3a09f,_0x18807f),_0x4ba38d?void setTimeout(function(){_0x4ba38d(_0xe3a09f);},0x0):_0xe3a09f),_0x1e9270=_0x5dfafc['length'],_0x2df280=_0x5a82d2['length'];let _0x1b6adb=0x1,_0x24977e=_0x1e9270+_0x2df280;null!=_0x18807f['maxEditLength']&&(_0x24977e=Math['min'](_0x24977e,_0x18807f['maxEditLength']));const _0x1f30c6=null!==(_0x560045=_0x18807f['timeout'])&&void 0x0!==_0x560045?_0x560045:0x1/0x0,_0x5cbdc0=Date['now']()+_0x1f30c6,_0x302b84=[{'oldPos':-0x1,'lastComponent':void 0x0}];let _0x1d41e3=this['extractCommon'](_0x302b84[0x0],_0x5dfafc,_0x5a82d2,0x0,_0x18807f);if(_0x302b84[0x0]['oldPos']+0x1>=_0x2df280&&_0x1d41e3+0x1>=_0x1e9270)return _0x3c4485(this['buildValues'](_0x302b84[0x0]['lastComponent'],_0x5dfafc,_0x5a82d2));let _0x321d73=-0x1/0x0,_0x1c7088=0x1/0x0;const _0x1a5424=()=>{for(let _0xd8a483=Math['max'](_0x321d73,-_0x1b6adb);_0xd8a483<=Math['min'](_0x1c7088,_0x1b6adb);_0xd8a483+=0x2){let _0x5b7407;const _0x56a5d3=_0x302b84[_0xd8a483-0x1],_0x2dd360=_0x302b84[_0xd8a483+0x1];_0x56a5d3&&(_0x302b84[_0xd8a483-0x1]=void 0x0);let _0xc65d92=!0x1;if(_0x2dd360){const _0x39308e=_0x2dd360['oldPos']-_0xd8a483;_0xc65d92=_0x2dd360&&0x0<=_0x39308e&&_0x39308e<_0x1e9270;}const _0x26c9b5=_0x56a5d3&&_0x56a5d3['oldPos']+0x1<_0x2df280;if(_0xc65d92||_0x26c9b5){if(_0x5b7407=!_0x26c9b5||_0xc65d92&&_0x56a5d3['oldPos']<_0x2dd360['oldPos']?this['addToPath'](_0x2dd360,!0x0,!0x1,0x0,_0x18807f):this['addToPath'](_0x56a5d3,!0x1,!0x0,0x1,_0x18807f),_0x1d41e3=this['extractCommon'](_0x5b7407,_0x5dfafc,_0x5a82d2,_0xd8a483,_0x18807f),_0x5b7407['oldPos']+0x1>=_0x2df280&&_0x1d41e3+0x1>=_0x1e9270)return _0x3c4485(this['buildValues'](_0x5b7407['lastComponent'],_0x5dfafc,_0x5a82d2))||!0x0;_0x302b84[_0xd8a483]=_0x5b7407,_0x5b7407['oldPos']+0x1>=_0x2df280&&(_0x1c7088=Math['min'](_0x1c7088,_0xd8a483-0x1)),_0x1d41e3+0x1>=_0x1e9270&&(_0x321d73=Math['max'](_0x321d73,_0xd8a483+0x1));}else _0x302b84[_0xd8a483]=void 0x0;}_0x1b6adb++;};if(_0x4ba38d)!function _0x358554(){setTimeout(function(){if(_0x1b6adb>_0x24977e||Date['now']()>_0x5cbdc0)return _0x4ba38d(void 0x0);_0x1a5424()||_0x358554();},0x0);}();else for(;_0x1b6adb<=_0x24977e&&Date['now']()<=_0x5cbdc0;){const _0x13c4db=_0x1a5424();if(_0x13c4db)return _0x13c4db;}}addToPath(_0x3797ed,_0x27aec0,_0x1b0ec9,_0x3bf2ca,_0x5d57dd){const _0x105545=_0x3797ed['lastComponent'];return _0x105545&&!_0x5d57dd['oneChangePerToken']&&_0x105545['added']===_0x27aec0&&_0x105545['removed']===_0x1b0ec9?{'oldPos':_0x3797ed['oldPos']+_0x3bf2ca,'lastComponent':{'count':_0x105545['count']+0x1,'added':_0x27aec0,'removed':_0x1b0ec9,'previousComponent':_0x105545['previousComponent']}}:{'oldPos':_0x3797ed['oldPos']+_0x3bf2ca,'lastComponent':{'count':0x1,'added':_0x27aec0,'removed':_0x1b0ec9,'previousComponent':_0x105545}};}extractCommon(_0x57f977,_0x214d86,_0x1b9d49,_0x4765ed,_0x5efeb1){const _0x5b9e55=_0x214d86['length'],_0x1c6e5b=_0x1b9d49['length'];let _0xd3f7ff=_0x57f977['oldPos'],_0x597f76=_0xd3f7ff-_0x4765ed,_0x47cee0=0x0;for(;_0x597f76+0x1<_0x5b9e55&&_0xd3f7ff+0x1<_0x1c6e5b&&this['equals'](_0x1b9d49[_0xd3f7ff+0x1],_0x214d86[_0x597f76+0x1],_0x5efeb1);)_0x597f76++,_0xd3f7ff++,_0x47cee0++,_0x5efeb1['oneChangePerToken']&&(_0x57f977['lastComponent']={'count':0x1,'previousComponent':_0x57f977['lastComponent'],'added':!0x1,'removed':!0x1});return _0x47cee0&&!_0x5efeb1['oneChangePerToken']&&(_0x57f977['lastComponent']={'count':_0x47cee0,'previousComponent':_0x57f977['lastComponent'],'added':!0x1,'removed':!0x1}),_0x57f977['oldPos']=_0xd3f7ff,_0x597f76;}['equals'](_0x497b10,_0x1c6e76,_0xaa3256){return _0xaa3256['comparator']?_0xaa3256['comparator'](_0x497b10,_0x1c6e76):_0x497b10===_0x1c6e76||!!_0xaa3256['ignoreCase']&&_0x497b10['toLowerCase']()===_0x1c6e76['toLowerCase']();}removeEmpty(_0x4ba107){const _0x255fcf=[];for(let _0x48c989=0x0;_0x48c989<_0x4ba107['length'];_0x48c989++)_0x4ba107[_0x48c989]&&_0x255fcf['push'](_0x4ba107[_0x48c989]);return _0x255fcf;}castInput(_0x5594c1,_0x1d2898){return _0x5594c1;}tokenize(_0x3c8ad7,_0x4f6368){return Array['from'](_0x3c8ad7);}['join'](_0x29a0a5){return _0x29a0a5['join']('');}postProcess(_0xdead4c,_0x382f61){return _0xdead4c;}get useLongestToken(){return!0x1;}['buildValues'](_0x2c93cb,_0x3c1459,_0x11cea3){const _0x47cd9b=[];let _0x3d9bf6;for(;_0x2c93cb;)_0x47cd9b['push'](_0x2c93cb),_0x3d9bf6=_0x2c93cb['previousComponent'],delete _0x2c93cb['previousComponent'],_0x2c93cb=_0x3d9bf6;_0x47cd9b['reverse']();const _0x46ac9d=_0x47cd9b['length'];let _0x52050f=0x0,_0x563bee=0x0,_0x137e67=0x0;for(;_0x52050f<_0x46ac9d;_0x52050f++){const _0x1a653e=_0x47cd9b[_0x52050f];if(_0x1a653e['removed'])_0x1a653e['value']=this['join'](_0x11cea3['slice'](_0x137e67,_0x137e67+_0x1a653e['count'])),_0x137e67+=_0x1a653e['count'];else{if(!_0x1a653e['added']&&this['useLongestToken']){let _0x3a5c30=_0x3c1459['slice'](_0x563bee,_0x563bee+_0x1a653e['count']);_0x3a5c30=_0x3a5c30['map'](function(_0x360675,_0x4eb881){const _0x422f4d=_0x11cea3[_0x137e67+_0x4eb881];return _0x422f4d['length']>_0x360675['length']?_0x422f4d:_0x360675;}),_0x1a653e['value']=this['join'](_0x3a5c30);}else _0x1a653e['value']=this['join'](_0x3c1459['slice'](_0x563bee,_0x563bee+_0x1a653e['count']));_0x563bee+=_0x1a653e['count'],_0x1a653e['added']||(_0x137e67+=_0x1a653e['count']);}}return _0x47cd9b;}};new class extends Ym{}();function Km(_0x3037dd,_0x21276e){let _0x4c0ef0;for(_0x4c0ef0=0x0;_0x4c0ef0<_0x3037dd['length']&&_0x4c0ef0<_0x21276e['length'];_0x4c0ef0++)if(_0x3037dd[_0x4c0ef0]!=_0x21276e[_0x4c0ef0])return _0x3037dd['slice'](0x0,_0x4c0ef0);return _0x3037dd['slice'](0x0,_0x4c0ef0);}function Jm(_0x37d3b0,_0x356c64){let _0x5ea03d;if(!_0x37d3b0||!_0x356c64||_0x37d3b0[_0x37d3b0['length']-0x1]!=_0x356c64[_0x356c64['length']-0x1])return'';for(_0x5ea03d=0x0;_0x5ea03d<_0x37d3b0['length']&&_0x5ea03d<_0x356c64['length'];_0x5ea03d++)if(_0x37d3b0[_0x37d3b0['length']-(_0x5ea03d+0x1)]!=_0x356c64[_0x356c64['length']-(_0x5ea03d+0x1)])return _0x37d3b0['slice'](-_0x5ea03d);return _0x37d3b0['slice'](-_0x5ea03d);}function tp(_0xbaa767,_0xa24a68,_0xc827c9){if(_0xbaa767['slice'](0x0,_0xa24a68['length'])!=_0xa24a68)throw Error('string\x20'+JSON['stringify'](_0xbaa767)+'\x20doesn\x27t\x20start\x20with\x20prefix\x20'+JSON['stringify'](_0xa24a68)+';\x20this\x20is\x20a\x20bug');return _0xc827c9+_0xbaa767['slice'](_0xa24a68['length']);}function ep(_0x171ff1,_0x1038c4,_0x41cf79){if(!_0x1038c4)return _0x171ff1+_0x41cf79;if(_0x171ff1['slice'](-_0x1038c4['length'])!=_0x1038c4)throw Error('string\x20'+JSON['stringify'](_0x171ff1)+'\x20doesn\x27t\x20end\x20with\x20suffix\x20'+JSON['stringify'](_0x1038c4)+';\x20this\x20is\x20a\x20bug');return _0x171ff1['slice'](0x0,-_0x1038c4['length'])+_0x41cf79;}function ip(_0x1c1cff,_0x3a54f3){return tp(_0x1c1cff,_0x3a54f3,'');}function sp(_0x3521f6,_0x4dab8f){return ep(_0x3521f6,_0x4dab8f,'');}function np(_0x33843d,_0xab6fd0){return _0xab6fd0['slice'](0x0,function(_0x1f4cc4,_0x3275ec){let _0x34f9d3=0x0;_0x1f4cc4['length']>_0x3275ec['length']&&(_0x34f9d3=_0x1f4cc4['length']-_0x3275ec['length']);let _0x1f84de=_0x3275ec['length'];_0x1f4cc4['length']<_0x3275ec['length']&&(_0x1f84de=_0x1f4cc4['length']);const _0x5caf58=Array(_0x1f84de);let _0x3aad65=0x0;_0x5caf58[0x0]=0x0;for(let _0x295bbd=0x1;_0x295bbd<_0x1f84de;_0x295bbd++){for(_0x3275ec[_0x295bbd]==_0x3275ec[_0x3aad65]?_0x5caf58[_0x295bbd]=_0x5caf58[_0x3aad65]:_0x5caf58[_0x295bbd]=_0x3aad65;_0x3aad65>0x0&&_0x3275ec[_0x295bbd]!=_0x3275ec[_0x3aad65];)_0x3aad65=_0x5caf58[_0x3aad65];_0x3275ec[_0x295bbd]==_0x3275ec[_0x3aad65]&&_0x3aad65++;}_0x3aad65=0x0;for(let _0x5569c7=_0x34f9d3;_0x5569c7<_0x1f4cc4['length'];_0x5569c7++){for(;_0x3aad65>0x0&&_0x1f4cc4[_0x5569c7]!=_0x3275ec[_0x3aad65];)_0x3aad65=_0x5caf58[_0x3aad65];_0x1f4cc4[_0x5569c7]==_0x3275ec[_0x3aad65]&&_0x3aad65++;}return _0x3aad65;}(_0x33843d,_0xab6fd0));}function rp(_0x2e88f2){let _0x596545;for(_0x596545=_0x2e88f2['length']-0x1;_0x596545>=0x0&&_0x2e88f2[_0x596545]['match'](/\s/);_0x596545--);return _0x2e88f2['substring'](_0x596545+0x1);}function op(_0x50e40f){const _0x3b39ee=_0x50e40f['match'](/^\s*/);return _0x3b39ee?_0x3b39ee[0x0]:'';}const ap='a-zA-Z0-9_\x5cu{AD}\x5cu{C0}-\x5cu{D6}\x5cu{D8}-\x5cu{F6}\x5cu{F8}-\x5cu{2C6}\x5cu{2C8}-\x5cu{2D7}\x5cu{2DE}-\x5cu{2FF}\x5cu{1E00}-\x5cu{1EFF}',cp=new RegExp('['+ap+']+|\x5cs+|[^'+ap+']','ug');new class extends Ym{['equals'](_0x48f2fa,_0x434d04,_0x593c91){return _0x593c91['ignoreCase']&&(_0x48f2fa=_0x48f2fa['toLowerCase'](),_0x434d04=_0x434d04['toLowerCase']()),_0x48f2fa['trim']()===_0x434d04['trim']();}tokenize(_0x50701d,_0x34247f={}){let _0x75c086;if(_0x34247f['intlSegmenter']){const _0x3594e2=_0x34247f['intlSegmenter'];if('word'!=_0x3594e2['resolvedOptions']()['granularity'])throw new Error('The\x20segmenter\x20passed\x20must\x20have\x20a\x20granularity\x20of\x20\x22word\x22');_0x75c086=[];for(const _0x3c8c24 of Array['from'](_0x3594e2['segment'](_0x50701d))){const _0x2a64c4=_0x3c8c24['segment'];_0x75c086['length']&&/\s/['test'](_0x75c086[_0x75c086['length']-0x1])&&/\s/['test'](_0x2a64c4)?_0x75c086[_0x75c086['length']-0x1]+=_0x2a64c4:_0x75c086['push'](_0x2a64c4);}}else _0x75c086=_0x50701d['match'](cp)||[];const _0x5a4c32=[];let _0x294dd7=null;return _0x75c086['forEach'](_0x21ea5b=>{/\s/['test'](_0x21ea5b)?null==_0x294dd7?_0x5a4c32['push'](_0x21ea5b):_0x5a4c32['push'](_0x5a4c32['pop']()+_0x21ea5b):null!=_0x294dd7&&/\s/['test'](_0x294dd7)?_0x5a4c32[_0x5a4c32['length']-0x1]==_0x294dd7?_0x5a4c32['push'](_0x5a4c32['pop']()+_0x21ea5b):_0x5a4c32['push'](_0x294dd7+_0x21ea5b):_0x5a4c32['push'](_0x21ea5b),_0x294dd7=_0x21ea5b;}),_0x5a4c32;}['join'](_0x273bd2){return _0x273bd2['map']((_0x16d081,_0xca8307)=>0x0==_0xca8307?_0x16d081:_0x16d081['replace'](/^\s+/,''))['join']('');}postProcess(_0x4f8c5d,_0x19e1d4){if(!_0x4f8c5d||_0x19e1d4['oneChangePerToken'])return _0x4f8c5d;let _0x665138=null,_0x1aea2e=null,_0x29586d=null;return _0x4f8c5d['forEach'](_0x2867ad=>{_0x2867ad['added']?_0x1aea2e=_0x2867ad:_0x2867ad['removed']?_0x29586d=_0x2867ad:((_0x1aea2e||_0x29586d)&&lp(_0x665138,_0x29586d,_0x1aea2e,_0x2867ad),_0x665138=_0x2867ad,_0x1aea2e=null,_0x29586d=null);}),(_0x1aea2e||_0x29586d)&&lp(_0x665138,_0x29586d,_0x1aea2e,null),_0x4f8c5d;}}();function lp(_0x4fcb38,_0x4a1e22,_0x45e62b,_0x208794){if(_0x4a1e22&&_0x45e62b){const _0x3760aa=op(_0x4a1e22['value']),_0x55ef90=rp(_0x4a1e22['value']),_0xb925d7=op(_0x45e62b['value']),_0x4c1278=rp(_0x45e62b['value']);if(_0x4fcb38){const _0x16ef5b=Km(_0x3760aa,_0xb925d7);_0x4fcb38['value']=ep(_0x4fcb38['value'],_0xb925d7,_0x16ef5b),_0x4a1e22['value']=ip(_0x4a1e22['value'],_0x16ef5b),_0x45e62b['value']=ip(_0x45e62b['value'],_0x16ef5b);}if(_0x208794){const _0x23dadf=Jm(_0x55ef90,_0x4c1278);_0x208794['value']=tp(_0x208794['value'],_0x4c1278,_0x23dadf),_0x4a1e22['value']=sp(_0x4a1e22['value'],_0x23dadf),_0x45e62b['value']=sp(_0x45e62b['value'],_0x23dadf);}}else{if(_0x45e62b){if(_0x4fcb38){const _0x1e0d10=op(_0x45e62b['value']);_0x45e62b['value']=_0x45e62b['value']['substring'](_0x1e0d10['length']);}if(_0x208794){const _0x4c93e6=op(_0x208794['value']);_0x208794['value']=_0x208794['value']['substring'](_0x4c93e6['length']);}}else{if(_0x4fcb38&&_0x208794){const _0x218fe8=op(_0x208794['value']),_0x57afe6=op(_0x4a1e22['value']),_0x24ad1f=rp(_0x4a1e22['value']),_0x3ee6ad=Km(_0x218fe8,_0x57afe6);_0x4a1e22['value']=ip(_0x4a1e22['value'],_0x3ee6ad);const _0x411ad1=Jm(ip(_0x218fe8,_0x3ee6ad),_0x24ad1f);_0x4a1e22['value']=sp(_0x4a1e22['value'],_0x411ad1),_0x208794['value']=tp(_0x208794['value'],_0x218fe8,_0x411ad1),_0x4fcb38['value']=ep(_0x4fcb38['value'],_0x218fe8,_0x218fe8['slice'](0x0,_0x218fe8['length']-_0x411ad1['length']));}else{if(_0x208794){const _0x163faf=op(_0x208794['value']),_0x2dd6d4=np(rp(_0x4a1e22['value']),_0x163faf);_0x4a1e22['value']=sp(_0x4a1e22['value'],_0x2dd6d4);}else{if(_0x4fcb38){const _0x452f08=np(rp(_0x4fcb38['value']),op(_0x4a1e22['value']));_0x4a1e22['value']=ip(_0x4a1e22['value'],_0x452f08);}}}}}}new class extends Ym{tokenize(_0x2c69e8){const _0x1e21a8=new RegExp('(\x5cr?\x5cn)|['+ap+']+|[^\x5cS\x5cn\x5cr]+|[^'+ap+']','ug');return _0x2c69e8['match'](_0x1e21a8)||[];}}(),new class extends Ym{constructor(){super(...arguments),this['tokenize']=hp;}['equals'](_0x509786,_0x1e24fc,_0x4de582){return _0x4de582['ignoreWhitespace']?(_0x4de582['newlineIsToken']&&_0x509786['includes']('\x0a')||(_0x509786=_0x509786['trim']()),_0x4de582['newlineIsToken']&&_0x1e24fc['includes']('\x0a')||(_0x1e24fc=_0x1e24fc['trim']())):_0x4de582['ignoreNewlineAtEof']&&!_0x4de582['newlineIsToken']&&(_0x509786['endsWith']('\x0a')&&(_0x509786=_0x509786['slice'](0x0,-0x1)),_0x1e24fc['endsWith']('\x0a')&&(_0x1e24fc=_0x1e24fc['slice'](0x0,-0x1))),super['equals'](_0x509786,_0x1e24fc,_0x4de582);}}();function hp(_0x5473a9,_0x14dd8a){_0x14dd8a['stripTrailingCr']&&(_0x5473a9=_0x5473a9['replace'](/\r\n/g,'\x0a'));const _0x47c0b0=[],_0x498aba=_0x5473a9['split'](/(\n|\r\n)/);_0x498aba[_0x498aba['length']-0x1]||_0x498aba['pop']();for(let _0x5c6c9a=0x0;_0x5c6c9a<_0x498aba['length'];_0x5c6c9a++){const _0x5890f0=_0x498aba[_0x5c6c9a];_0x5c6c9a%0x2&&!_0x14dd8a['newlineIsToken']?_0x47c0b0[_0x47c0b0['length']-0x1]+=_0x5890f0:_0x47c0b0['push'](_0x5890f0);}return _0x47c0b0;}function up(_0x38b239){return'.'==_0x38b239||'!'==_0x38b239||'?'==_0x38b239;}new class extends Ym{tokenize(_0x1b844d){var _0x576a08;const _0x59235f=[];let _0x4ac0b6=0x0;for(let _0x5b6191=0x0;_0x5b6191<_0x1b844d['length'];_0x5b6191++){if(_0x5b6191==_0x1b844d['length']-0x1){_0x59235f['push'](_0x1b844d['slice'](_0x4ac0b6));break;}if(up(_0x1b844d[_0x5b6191])&&_0x1b844d[_0x5b6191+0x1]['match'](/\s/)){for(_0x59235f['push'](_0x1b844d['slice'](_0x4ac0b6,_0x5b6191+0x1)),_0x5b6191=_0x4ac0b6=_0x5b6191+0x1;null===(_0x576a08=_0x1b844d[_0x5b6191+0x1])||void 0x0===_0x576a08?void 0x0:_0x576a08['match'](/\s/);)_0x5b6191++;_0x59235f['push'](_0x1b844d['slice'](_0x4ac0b6,_0x5b6191+0x1)),_0x4ac0b6=_0x5b6191+0x1;}}return _0x59235f;}}(),new class extends Ym{tokenize(_0x2b522b){return _0x2b522b['split'](/([{}:;,]|\s+)/);}}(),new class extends Ym{constructor(){super(...arguments),this['tokenize']=hp;}get useLongestToken(){return!0x0;}castInput(_0x29cded,_0x16f9fc){const {undefinedReplacement:_0x383532,stringifyReplacer:_0x1c7a76=(_0x1ecae9,_0x3c4d60)=>void 0x0===_0x3c4d60?_0x383532:_0x3c4d60}=_0x16f9fc;return'string'==typeof _0x29cded?_0x29cded:JSON['stringify'](dp(_0x29cded,null,null,_0x1c7a76),null,'\x20\x20');}['equals'](_0x27231e,_0x1fc60d,_0x49d2c4){return super['equals'](_0x27231e['replace'](/,([\r\n])/g,'$1'),_0x1fc60d['replace'](/,([\r\n])/g,'$1'),_0x49d2c4);}}();function dp(_0x1cdabe,_0x49ad25,_0x1ed60b,_0x34be78,_0x1169b7){let _0x471a2e,_0x27234b;for(_0x49ad25=_0x49ad25||[],_0x1ed60b=_0x1ed60b||[],_0x34be78&&(_0x1cdabe=_0x34be78(void 0x0===_0x1169b7?'':_0x1169b7,_0x1cdabe)),_0x471a2e=0x0;_0x471a2e<_0x49ad25['length'];_0x471a2e+=0x1)if(_0x49ad25[_0x471a2e]===_0x1cdabe)return _0x1ed60b[_0x471a2e];if('[object\x20Array]'===Object['prototype']['toString']['call'](_0x1cdabe)){for(_0x49ad25['push'](_0x1cdabe),_0x27234b=new Array(_0x1cdabe['length']),_0x1ed60b['push'](_0x27234b),_0x471a2e=0x0;_0x471a2e<_0x1cdabe['length'];_0x471a2e+=0x1)_0x27234b[_0x471a2e]=dp(_0x1cdabe[_0x471a2e],_0x49ad25,_0x1ed60b,_0x34be78,String(_0x471a2e));return _0x49ad25['pop'](),_0x1ed60b['pop'](),_0x27234b;}if(_0x1cdabe&&_0x1cdabe['toJSON']&&(_0x1cdabe=_0x1cdabe['toJSON']()),'object'==typeof _0x1cdabe&&null!==_0x1cdabe){_0x49ad25['push'](_0x1cdabe),_0x27234b={},_0x1ed60b['push'](_0x27234b);const _0x2d4811=[];let _0x47d98c;for(_0x47d98c in _0x1cdabe)Object['prototype']['hasOwnProperty']['call'](_0x1cdabe,_0x47d98c)&&_0x2d4811['push'](_0x47d98c);for(_0x2d4811['sort'](),_0x471a2e=0x0;_0x471a2e<_0x2d4811['length'];_0x471a2e+=0x1)_0x47d98c=_0x2d4811[_0x471a2e],_0x27234b[_0x47d98c]=dp(_0x1cdabe[_0x47d98c],_0x49ad25,_0x1ed60b,_0x34be78,_0x47d98c);_0x49ad25['pop'](),_0x1ed60b['pop']();}else _0x27234b=_0x1cdabe;return _0x27234b;}const fp=new class extends Ym{tokenize(_0x2d3f9d){return _0x2d3f9d['slice']();}['join'](_0x142ed7){return _0x142ed7;}removeEmpty(_0x7c3c24){return _0x7c3c24;}}();function mp(_0x7499de,_0x474139,_0x317ab5){return fp['diff'](_0x7499de,_0x474139,_0x317ab5);}const pp='$elementId',gp='data-id';var Op=class extends _0x4dd342{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async init(){this['context']instanceof _0x95124b?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x5df2a4,_0x439578)=>{_0x439578['on']('ready',()=>{this['_integrateEditor'](_0x439578);});});}get editor(){if(this['context']instanceof _0x95124b)return this['context'];{const _0x326a0f=this['context']['editors']['first'];if(!_0x326a0f)throw new _0x4242d4('documentcompare-no-editor',this);return _0x326a0f;}}getDiff(_0x4eb699,_0x27f97d,_0x285845={'anchor':'main','markDeletions':!0x1}){const _0x267eee=_0x285845['targetEditor']||this['editor'],_0x22a9f9=_0x285845['anchor']??'main';let _0x29580,_0x22c13e;if('string'==typeof _0x22a9f9){const _0x378536=_0x267eee['model']['document']['getRoot'](_0x22a9f9);if(!_0x378536)throw new _0x4242d4('documentcompare-compare-no-root',this,{'anchor':_0x22a9f9});_0x29580=_0x378536,_0x22c13e=_0x267eee['model']['createPositionAt'](_0x378536,0x0);}else _0x29580=_0x22a9f9['clone'](),_0x22c13e=_0x22a9f9['clone']();const _0x9f7dd9=_0x267eee['data']['parse'](_0x4eb699,_0x29580),_0x1a8d1d=_0x267eee['data']['parse'](_0x27f97d,_0x29580);return new wp({'editor':_0x267eee,'before':_0x9f7dd9,'after':_0x1a8d1d,'options':{'anchor':_0x22c13e,'markDeletions':_0x285845['markDeletions']}});}isMarkedRemoveOperation(_0x24bdde){return'marker'==_0x24bdde['type']&&_0x24bdde['name']['startsWith']('$markedRemove');}applyOperations(_0x4ce4bb,_0xbfb06d){const _0x5c85a1=_0x4ce4bb['model'];for(const _0xf6e6f8 of _0xbfb06d)Vm(_0xf6e6f8)||(_0xf6e6f8 instanceof _0x3e83c0?_0x4ce4bb['_addOperationForAffectedMarkers']('move',_0x45ca57['_createFromPositionAndShift'](_0xf6e6f8['sourcePosition'],_0xf6e6f8['howMany'])):_0xf6e6f8 instanceof _0x4fb461?_0x4ce4bb['_addOperationForAffectedMarkers']('merge',_0xf6e6f8['deletionPosition']):_0xf6e6f8 instanceof _0x365d2c&&this['_fixMarkerOperationOldRange'](_0x5c85a1,_0xf6e6f8),_0xf6e6f8['baseVersion']=_0x5c85a1['document']['version'],_0x4ce4bb['batch']['addOperation'](_0xf6e6f8),_0x5c85a1['applyOperation'](_0xf6e6f8));}_fixMarkerOperationOldRange(_0x48b0d9,_0x3ba434){const _0x1bda92=_0x48b0d9['markers']['get'](_0x3ba434['name']);_0x1bda92&&(_0x3ba434['oldRange']=_0x1bda92['getRange']());}_integrateEditor(_0x3f703b){_0x3f703b['conversion']['for']('upcast')['add'](_0x16f984=>{_0x16f984['on']('element',(_0x15026a,_0x3b8627,_0x322b7b)=>{if(_0x3b8627['modelRange']&&_0x322b7b['consumable']['consume'](_0x3b8627['viewItem'],{'attributes':'data-id'}))for(const _0x5be64f of _0x3b8627['modelRange']['getItems']({'shallow':!0x0})){if(_0x5be64f['is']('$textProxy'))continue;const _0x4d1e25=_0x3b8627['viewItem']['getAttribute'](gp);_0x4d1e25&&_0x322b7b['writer']['setAttribute'](pp,_0x4d1e25,_0x5be64f);}},{'priority':'low'});}),_0x3f703b['model']['schema']['addAttributeCheck'](()=>!0x0,pp);}},wp=class{_editor;_diffItems=[];_markDeletions;['_anchor'];_operationsData=[];_path=[0x0];_parents=[];_splitPostponedData=new Map();constructor({editor:_0x3dc0ae,before:_0x6c828d,after:_0x122daa,options:_0x5ec60c}){this['_editor']=_0x3dc0ae,this['_markDeletions']=!!_0x5ec60c['markDeletions'],this['_anchor']=_0x5ec60c['anchor'];const _0x54985d=this['_tokenizeModel'](_0x6c828d),_0x361ca5=this['_tokenizeModel'](_0x122daa);this['_diffItems']=this['_diffModelTokens'](_0x54985d,_0x361ca5),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x6c828d['markers'],_0x122daa['markers']);}getOperationsData(){return this['_operationsData'];}getOperations(){const _0x35a560=this['_editor']['model']['document'],_0x473fc9=[];let _0x378e17=_0x35a560['version'];for(const _0x4dadf5 of this['_operationsData'])switch(_0x4dadf5['type']){case'attribute':{const _0x155975=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4dadf5['path']),_0x3be5bf=new _0x45ca57(_0x155975,_0x155975['getShiftedBy'](_0x4dadf5['howMany'])),_0x108b29=JSON['parse'](_0x4dadf5['oldValue']),_0x9e19df=JSON['parse'](_0x4dadf5['newValue']);_0x473fc9['push'](new _0x540370(_0x3be5bf,_0x4dadf5['key'],_0x108b29,_0x9e19df,_0x378e17++));break;}case'insert':{const _0x19c88f=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4dadf5['path']),_0x109038=this['_makeModelFromTokens'](_0x4dadf5['tokens']);_0x473fc9['push'](new _0x144d3a(_0x19c88f,_0x109038,_0x378e17++));break;}case'remove':{const _0x32dbac=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4dadf5['path']),_0x3bd81a=new _0x34c45c(_0x35a560['graveyard'],[0x0]);_0x473fc9['push'](new _0x3e83c0(_0x32dbac,_0x4dadf5['howMany'],_0x3bd81a,_0x378e17++));break;}case'rename':{const _0x4676b5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4dadf5['path']);_0x473fc9['push'](new _0x42303b(_0x4676b5,_0x4dadf5['oldName'],_0x4dadf5['newName'],_0x378e17++));break;}case'split':{const _0x5ec51a=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4dadf5['path']),_0x35b471=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4dadf5['path']['slice'](0x0,-0x1));_0x35b471['offset']++,_0x473fc9['push'](new _0x13be28(_0x5ec51a,Number['NEGATIVE_INFINITY'],_0x35b471,null,_0x378e17++));break;}case'merge':{const _0x1ab045=_0x4dadf5['path']['slice'](),_0xd5ac9c=_0x1ab045['slice'](0x0,-0x1);_0xd5ac9c[_0xd5ac9c['length']-0x1]++,_0xd5ac9c['push'](0x0);const _0x156f27=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xd5ac9c),_0x503df9=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x1ab045),_0x5dfd67=new _0x34c45c(_0x35a560['graveyard'],[0x0]);_0x473fc9['push'](new _0x4fb461(_0x156f27,Number['NEGATIVE_INFINITY'],_0x503df9,_0x5dfd67,_0x378e17++));break;}case'marker':case'markedRemove':{let _0x1c2e02=null;_0x4dadf5['range']&&(_0x1c2e02=new _0x45ca57(this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4dadf5['range']['start']),this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4dadf5['range']['end'])));const _0x129e56='marker'==_0x4dadf5['type']?_0x4dadf5['name']:'$markedRemove:'+_0xea66bb();_0x473fc9['push'](new _0x365d2c(_0x129e56,null,_0x1c2e02,_0x35a560['model']['markers'],!0x0,_0x378e17++));break;}case'unwrap':{const _0x24d9ba=_0x4dadf5['path']['slice']();_0x24d9ba['push'](0x0);const _0x1d8e4e=_0x4dadf5['path']['slice'](),_0x42a4a7=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x24d9ba),_0x57c01b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x1d8e4e),_0x2291de=new _0x34c45c(_0x35a560['graveyard'],[0x0]);_0x473fc9['push'](new _0x3e83c0(_0x42a4a7,_0x4dadf5['howMany'],_0x57c01b,_0x378e17++)),_0x473fc9['push'](new _0x3e83c0(_0x57c01b['getShiftedBy'](_0x4dadf5['howMany']),0x1,_0x2291de,_0x378e17++));break;}case'wrap':{const _0x4c7e01=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4dadf5['range']['start']),_0x4a399c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4dadf5['range']['end']),_0x52501e=_0x4dadf5['token']['element']['_clone'](!0x1);_0x52501e['_removeAttribute'](pp);const _0x4e5935=_0x4dadf5['range']['end']['slice']();_0x4e5935['push'](0x0);const _0x440118=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4e5935);_0x473fc9['push'](new _0x144d3a(_0x4a399c,_0x52501e,_0x378e17++)),_0x473fc9['push'](new _0x3e83c0(_0x4c7e01,_0x4a399c['offset']-_0x4c7e01['offset'],_0x440118,_0x378e17++));break;}}return _0x473fc9;}_tokenizeModel(_0x490d5d){const _0x41684d=[],_0xa1668d=new _0x1c17f6({'boundaries':_0x45ca57['_createIn'](_0x490d5d)});let _0x5af046='',_0x2ea917=null;const _0x598bf5=[''],_0xca1e1c=new Map();for(const _0xcdbf9e of _0xa1668d)if('elementStart'==_0xcdbf9e['type']||'elementEnd'==_0xcdbf9e['type']){let _0x14337=_0x598bf5[0x0];''!==_0x5af046&&(_0x41684d['push'](...this['_makeTokensFromTextByWords'](_0x5af046,_0x2ea917,_0x14337)),_0x5af046='');const _0x8d64f=_0xcdbf9e['item'];let _0x300e1a;_0x8d64f['getAttribute']('$elementId')?_0x300e1a=_0x8d64f['getAttribute'](pp):'elementStart'==_0xcdbf9e['type']?(_0x300e1a=yp(_0x8d64f),_0xca1e1c['set'](_0x8d64f,_0x300e1a)):_0x300e1a=_0xca1e1c['get'](_0x8d64f);const _0x1bbdda=this['_getElementCategory'](_0x8d64f);'solid'==_0x1bbdda&&('elementStart'==_0xcdbf9e['type']?(_0x14337=_0x300e1a,_0x598bf5['unshift'](_0x14337)):_0x598bf5['shift']());const _0xbbe3de={'type':'element','element':_0x8d64f,'elementId':_0x300e1a,'category':_0x1bbdda,'isStart':'elementStart'==_0xcdbf9e['type'],'limitId':_0x14337};_0x41684d['push'](_0xbbe3de);}else''==_0x5af046&&(_0x2ea917=_0xcdbf9e['previousPosition']['clone']()),_0x5af046+=_0xcdbf9e['item']['data'];return''!==_0x5af046&&_0x41684d['push'](...this['_makeTokensFromTextByWords'](_0x5af046,_0x2ea917,_0x598bf5[0x0])),_0x41684d;}_makeTokensFromTextByWords(_0x1f0523,_0x3afe17,_0x34c743){const _0x4bb06a=_0x1f0523['matchAll'](/(\s)/g),_0x3c8aa3=Array['from'](_0x4bb06a)['map'](_0x3b4b15=>_0x3b4b15['index']);_0x3c8aa3['push'](_0x1f0523['length']),0x0==_0x3c8aa3[0x0]&&_0x3c8aa3['shift']();const _0x2e08dc=[],_0x14aa37=_0x3afe17['parent'];let _0x12f4db=0x0,_0x31d4ab=_0x3afe17['offset'];for(let _0x4be9fd=0x0;_0x4be9fd<_0x3c8aa3['length'];_0x4be9fd++)_0x2e08dc['push']({'type':'text','data':_0x1f0523['slice'](_0x12f4db,_0x3c8aa3[_0x4be9fd]),'parent':_0x14aa37,'offset':_0x31d4ab,'limitId':_0x34c743}),_0x12f4db=_0x3c8aa3[_0x4be9fd],_0x31d4ab=_0x3afe17['offset']+_0x3c8aa3[_0x4be9fd];return _0x2e08dc;}_getElementCategory(_0x529a37){const _0x8a999d=this['_editor']['model']['schema'];return _0x8a999d['isLimit'](_0x529a37)||_0x8a999d['isContent'](_0x529a37)||_0x8a999d['isInline'](_0x529a37)?'solid':_0x8a999d['isBlock'](_0x529a37)?'block':function(_0x27c8ae,_0x4b8d25){const _0x5b9bdd=_0x27c8ae['parent'];if(!_0x5b9bdd||_0x5b9bdd['is']('documentFragment'))return!0x1;if(_0x4b8d25['checkChild'](_0x5b9bdd,'$text'))return!0x1;for(const _0x3123bf of _0x27c8ae['getChildren']())if(_0x3123bf['is']('$text'))return!0x0;return!0x1;}(_0x529a37,_0x8a999d)?'solid':'container';}['_diffModelTokens'](_0x3b9a7c,_0x285743){const _0x466b36=mp(_0x3b9a7c,_0x285743,{'comparator':bp});this['_handleUnclosedBlockOpeningTags'](_0x466b36);const _0x4367d0=_0x466b36['flatMap'](_0xabc8fa=>{const _0x3bc124=_0xabc8fa['added']?'added':_0xabc8fa['removed']?'removed':'unchanged';return _0xabc8fa['value']['map'](_0x329fc9=>({'token':_0x329fc9,'change':_0x3bc124}));});let _0x41f2ed=0x0;for(const _0x4f15f3 of _0x4367d0)'added'!=_0x4f15f3['change']&&('unchanged'==_0x4f15f3['change']&&(_0x4f15f3['before']=_0x3b9a7c[_0x41f2ed]),_0x41f2ed++);return _0x4367d0;}['_handleUnclosedBlockOpeningTags'](_0xd76f2b){for(let _0x35755a=0x0;_0x35755a<_0xd76f2b['length']-0x1;_0x35755a++)if(_0xd76f2b[_0x35755a]['removed']&&_0xd76f2b[_0x35755a+0x1]['added']){const _0x55178a=this['_findUnclosedBlockOpeningToken'](_0xd76f2b[_0x35755a]['value']);if(null!==_0x55178a){const _0x40145c=this['_findUnclosedBlockOpeningToken'](_0xd76f2b[_0x35755a+0x1]['value']),_0x304fc2=_0xd76f2b[_0x35755a]['value']['splice'](_0x55178a),_0x4d35a8=_0xd76f2b[_0x35755a+0x1]['value']['splice'](_0x40145c),_0x4cd8f8=[_0x4d35a8['shift']()];_0x304fc2['shift']();const _0x9ceccd={'value':_0x304fc2,'removed':!0x0},_0x292e5e={'value':_0x4d35a8,'added':!0x0},_0x1341a5={'value':_0x4cd8f8};_0xd76f2b['splice'](_0x35755a+0x2,0x0,_0x1341a5,_0x9ceccd,_0x292e5e);}}}['_findUnclosedBlockOpeningToken'](_0x23d3f1){let _0x42fac6=0x0,_0xdc33f=-0x1;for(let _0x5c558f=0x0;_0x5c558f<_0x23d3f1['length'];_0x5c558f++){const _0x560fe3=_0x23d3f1[_0x5c558f];'element'==_0x560fe3['type']&&'block'==_0x560fe3['category']&&(_0x42fac6+=_0x560fe3['isStart']?0x1:-0x1,_0x560fe3['isStart']&&(_0xdc33f=_0x5c558f));}return 0x0===_0x42fac6?null:_0xdc33f;}_calculateOperationsData(){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x45902c=0x0;_0x45902c<this['_diffItems']['length'];_0x45902c++){const _0x5b6abe=this['_diffItems'][_0x45902c]['change'],_0x5d73fa=[];_0x5d73fa['push'](this['_diffItems'][_0x45902c]);let _0x2833cf=_0x45902c+0x1;for(;this['_diffItems'][_0x2833cf]&&this['_diffItems'][_0x2833cf]['change']==_0x5b6abe;)_0x5d73fa['push'](this['_diffItems'][_0x2833cf]),_0x2833cf++,_0x45902c++;const _0x45aae2=_0x5d73fa['map'](_0x441737=>_0x441737['token']);if('unchanged'==_0x5b6abe)_0x5d73fa['map'](_0x4de4ae=>_0x4de4ae['before'])['forEach'](_0x194c37=>this['_traverseOverItem'](_0x194c37));else{if('removed'==_0x5b6abe){if(this['_markDeletions']){const _0x2fad83=this['_path']['slice']();_0x45aae2['forEach'](_0x180fc5=>this['_traverseOverItem'](_0x180fc5));const _0x30374e=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x2fad83,'end':_0x30374e}});}else this['_handleChanged'](_0x45aae2,!0x0,this['_path']['slice']());}else{const _0x198bc2=_0x45aae2['filter'](_0x4fe2b0=>'element'!=_0x4fe2b0['type']||'container'!=_0x4fe2b0['category']);this['_handleChanged'](_0x198bc2,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x31bda4=0x0;_0x31bda4<this['_diffItems']['length'];_0x31bda4++){const _0x142f5d=this['_diffItems'][_0x31bda4]['change'],_0x4dd8f5=[];_0x4dd8f5['push'](this['_diffItems'][_0x31bda4]);let _0x55b3ab=_0x31bda4+0x1;for(;this['_diffItems'][_0x55b3ab]&&this['_diffItems'][_0x55b3ab]['change']==_0x142f5d;)_0x4dd8f5['push'](this['_diffItems'][_0x55b3ab]),_0x55b3ab++,_0x31bda4++;const _0x91ef07=_0x4dd8f5['map'](_0x5d3178=>_0x5d3178['token']);if('unchanged'==_0x142f5d){const _0x10b381=_0x4dd8f5['map'](_0x2e5d8f=>_0x2e5d8f['before']);this['_handleUnchanged'](_0x10b381,_0x91ef07);}else('added'==_0x142f5d||this['_markDeletions'])&&_0x91ef07['forEach'](_0x17c6d8=>{'element'==_0x17c6d8['type']&&_0x17c6d8['isStart']&&this['_splitPostponedData']['has'](_0x17c6d8['element'])&&this['_handleSplitPostponedData'](_0x17c6d8['element'],this['_path']),this['_traverseOverItem'](_0x17c6d8);});}}_handleSplitPostponedData(_0x593bcc,_0x5acb5e){const _0x373177=this['_splitPostponedData']['get'](_0x593bcc);for(const _0x48e53c of _0x373177)'rename'==_0x48e53c['type']?this['_operationsData']['push']({'type':'rename','path':_0x5acb5e['slice'](),'oldName':_0x48e53c['oldValue'],'newName':_0x593bcc['name']}):this['_operationsData']['push']({'type':'attribute','path':_0x5acb5e['slice'](),'howMany':0x1,'key':_0x48e53c['key'],'oldValue':_0x48e53c['oldValue'],'newValue':JSON['stringify'](_0x593bcc['getAttribute'](_0x48e53c['key'])??null)});}_calculateMarkersOperationsData(_0x17269e,_0x3eb467){const _0x34619b={};for(const [_0x245411]of _0x17269e)_0x34619b[_0x245411]=null;for(const [_0x43ac65,_0x54ccaf]of _0x3eb467)_0x34619b[_0x43ac65]=_0x54ccaf;const _0x2682f6=Object['entries'](_0x34619b)['map'](([_0x58875a,_0x44be98])=>({'type':'marker','name':_0x58875a,'range':_0x44be98?{'start':_0x44be98['start']['path']['slice'](),'end':_0x44be98['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x2682f6);}['_handleUnwraps'](){const _0x549980=new Map(),_0xf880c6=[],_0x5f0d85=[0x0];let _0x4a8d50=this['_diffItems']['length']+0x1;for(let _0x1a5759=this['_diffItems']['length']-0x1;_0x1a5759>=0x0;_0x1a5759--){const {token:_0xd9809,before:_0x5566b0,change:_0x51ba63}=this['_diffItems'][_0x1a5759];if('removed'!=_0x51ba63&&(_0x4a8d50=_0x1a5759),'element'!=_0xd9809['type']||'container'!=_0xd9809['category']||'added'==_0x51ba63)continue;const _0x1c520e=_0x5566b0?_0x5566b0['element']:_0xd9809['element'];if(_0xd9809['isStart']){const _0x173f35=_0x549980['get'](_0x1c520e),_0x185d08=this['_diffItems'][_0x173f35];('removed'==_0x51ba63||'removed'==_0x185d08['change'])&&_0x4a8d50<_0x173f35&&(this['_operationsData']['push']({'type':'unwrap','path':_0x1c520e['getPath'](),'howMany':_0x1c520e['maxOffset']+_0x5f0d85[0x0]}),_0x5f0d85['shift'](),_0x5f0d85[0x0]+=_0x1c520e['maxOffset']-0x1,_0xf880c6['push'](_0x1a5759),_0xf880c6['push'](_0x173f35));}else _0x549980['set'](_0x1c520e,_0x1a5759),_0x5f0d85['unshift'](0x0);}_0xf880c6['sort']((_0x242161,_0x59d95e)=>_0x59d95e-_0x242161),_0xf880c6['forEach'](_0x199e2e=>{const _0x1f3192=this['_diffItems'][_0x199e2e];'removed'==_0x1f3192['change']?this['_diffItems']['splice'](_0x199e2e,0x1):(_0x1f3192['change']='added',delete _0x1f3192['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x1cd6e3=[];for(let _0x2918d7=0x0;_0x2918d7<this['_diffItems']['length'];_0x2918d7++){const {change:_0x41cf0d,token:_0xc1d70d}=this['_diffItems'][_0x2918d7];if('added'==_0x41cf0d&&'element'==_0xc1d70d['type']&&'container'==_0xc1d70d['category']){if(_0xc1d70d['isStart'])_0x1cd6e3['push'](this['_path']['slice']());else{if(!_0xc1d70d['isStart']){const _0x11653e=_0x1cd6e3['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x11653e,'end':this['_path']['slice']()},'token':_0xc1d70d}),this['_path'][this['_path']['length']-0x1]=_0x11653e[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x41cf0d||this['_markDeletions'])&&this['_traverseOverItem'](_0xc1d70d);}}['_handleUnchanged'](_0x2616ac,_0x17579e){for(let _0x2ec36f=0x0;_0x2ec36f<_0x2616ac['length'];_0x2ec36f++){const _0x2d8651=_0x2616ac[_0x2ec36f];if('element'==_0x2d8651['type']&&_0x2d8651['isStart']){const _0x31e38c=_0x17579e[_0x2ec36f];'block'==_0x2d8651['category']&&this['_handleElementRename'](_0x2d8651['element'],_0x31e38c['element'],this['_path']),this['_handleElementAttributeChanges'](_0x2d8651['element'],_0x31e38c['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x31e38c);}else{if('element'!=_0x2d8651['type']||_0x2d8651['isStart']){if('text'==_0x2d8651['type']){const _0x3b7e8b=this['_path']['slice'](),_0x193b1b=[],_0x4325b6=[];for(;_0x2616ac[_0x2ec36f]&&'text'==_0x2616ac[_0x2ec36f]['type'];)_0x193b1b['push'](_0x2616ac[_0x2ec36f]),_0x4325b6['push'](_0x17579e[_0x2ec36f]),this['_path'][this['_path']['length']-0x1]+=_0x2616ac[_0x2ec36f]['data']['length'],_0x2ec36f++;_0x2ec36f--,this['_handleTextAttributeChanges'](_0x193b1b,_0x4325b6,_0x3b7e8b);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x1b2961,_0x3ab465,_0xc827bb){const _0x4cc4ee=[],_0x427bcc=[],_0x1b061a=_0xc827bb['slice']();let _0x1159ba=this['_parents']['length']-0x1;for(let _0x4fc178=0x0;_0x4fc178<_0x1b2961['length'];_0x4fc178++){const _0x4f6b50=_0x1b2961[_0x4fc178],_0x1947cc=_0xc827bb['slice']();'element'!=_0x4f6b50['type']||_0x4f6b50['isStart']?'element'==_0x4f6b50['type']&&_0x4f6b50['isStart']?(_0xc827bb['push'](0x0),_0x1159ba++,_0x427bcc['push']({'before':_0x1947cc,'after':_0xc827bb['slice'](),'index':_0x4fc178})):_0xc827bb[_0xc827bb['length']-0x1]+=_0x4f6b50['data']['length']:(_0xc827bb['pop'](),_0xc827bb[_0xc827bb['length']-0x1]++,_0x1159ba--,_0x427bcc['length']?_0x427bcc['pop']():_0x4cc4ee['push']({'before':_0x1947cc,'after':_0xc827bb['slice'](),'index':_0x4fc178}));}if(_0x427bcc['length']!==_0x4cc4ee['length'])throw new _0x4242d4('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x1b2961,'isRemove':_0x3ab465});const _0x1d75cf=[{'after':_0x1b061a['slice'](),'index':-0x1},..._0x4cc4ee,..._0x427bcc,{'before':_0xc827bb['slice'](),'index':_0x1b2961['length']}];if(_0x3ab465){for(let _0xe8a163=_0x1d75cf['length']-0x1;_0xe8a163>=0x1;_0xe8a163--){const _0x29b494=_0x1d75cf[_0xe8a163-0x1]['after'],_0x49f62e=_0x1d75cf[_0xe8a163]['before'],_0x4a5a56=_0x49f62e[_0x49f62e['length']-0x1]-_0x29b494[_0x29b494['length']-0x1];_0x4a5a56&&(this['_operationsData']['push']({'type':'remove','path':_0x29b494,'howMany':_0x4a5a56}),_0x49f62e[_0x49f62e['length']-0x1]-=_0x4a5a56);}for(const {before:_0x2fce96}of _0x4cc4ee)this['_operationsData']['push']({'type':'merge','path':_0x2fce96});}else for(let _0x37731e=0x0;_0x37731e<_0x1d75cf['length']-0x1;_0x37731e++){const _0xe656eb=_0x1d75cf[_0x37731e]['after'],_0x54419c=_0x1d75cf[_0x37731e+0x1]['before'],_0x3507fe=_0x1d75cf[_0x37731e]['index']+0x1,_0x10433e=_0x1d75cf[_0x37731e+0x1]['index'];if(_0x3507fe!==_0x10433e&&this['_operationsData']['push']({'type':'insert','path':_0xe656eb,'tokens':_0x1b2961['slice'](_0x3507fe,_0x10433e)}),_0x37731e<_0x4cc4ee['length']){this['_operationsData']['push']({'type':'split','path':_0x54419c});const _0x38dfbb=_0x1b2961[_0x427bcc[_0x427bcc['length']-0x1-_0x37731e]['index']],_0x4afc1b=this['_parents'][_0x1159ba]['element'];_0x4afc1b['name']!=_0x38dfbb['element']['name']&&this['_addSplitPostponedData'](_0x38dfbb['element'],{'type':'rename','oldValue':_0x4afc1b['name']});const _0x1fed91=this['_getAttributeChanges'](_0x4afc1b['getAttributes'](),_0x38dfbb['element']['getAttributes']());for(const _0x2d8165 in _0x1fed91){const _0x10e287=_0x1fed91[_0x2d8165]['oldValue'];this['_addSplitPostponedData'](_0x38dfbb['element'],{'type':'attribute','key':_0x2d8165,'oldValue':_0x10e287});}}}}_addSplitPostponedData(_0x500e61,_0x589184){const _0x2440d0=this['_splitPostponedData']['get'](_0x500e61)||[];_0x2440d0['push'](_0x589184),this['_splitPostponedData']['set'](_0x500e61,_0x2440d0);}_traverseOverItem(_0x33026e){'element'==_0x33026e['type']&&_0x33026e['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x33026e)):'element'!=_0x33026e['type']||_0x33026e['isStart']?'text'==_0x33026e['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x33026e['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}_handleElementRename(_0x2075e0,_0x873e2d,_0x5365eb){_0x2075e0['name']!=_0x873e2d['name']&&this['_operationsData']['push']({'type':'rename','path':_0x5365eb['slice'](),'oldName':_0x2075e0['name'],'newName':_0x873e2d['name']});}_handleElementAttributeChanges(_0x28f362,_0x2669e7,_0x149ec3){const _0x4cff24=this['_getAttributeChanges'](_0x28f362['getAttributes'](),_0x2669e7['getAttributes']());for(const _0x1a1054 in _0x4cff24){const {oldValue:_0xce1d77,newValue:_0x340c9a}=_0x4cff24[_0x1a1054];this['_operationsData']['push']({'type':'attribute','path':_0x149ec3['slice'](),'howMany':0x1,'key':_0x1a1054,'oldValue':_0xce1d77,'newValue':_0x340c9a});}}_handleTextAttributeChanges(_0x787009,_0xccf1bd,_0x2cbd47){const _0x43db96=this['_operationsData'],_0x554a79=_0x787009[0x0]['parent'],_0x355f23=_0x787009[0x0]['offset'],_0x13bf16=_0xccf1bd[0x0]['parent'],_0x16eddb=_0xccf1bd[0x0]['offset'],_0x5a27b4=_0x787009['reduce']((_0x27d466,_0x4cf826)=>_0x27d466+_0x4cf826['data']['length'],0x0),_0x42ddb1=this['_getAttrsForOffsets'](_0x554a79,_0x355f23,_0x5a27b4),_0x1f42ae=this['_getAttrsForOffsets'](_0x13bf16,_0x16eddb,_0x5a27b4),_0x181d94={};for(let _0x40ab11=0x0;_0x40ab11<_0x5a27b4;_0x40ab11++){const _0x208f93=_0x42ddb1[_0x355f23+_0x40ab11],_0x587471=_0x1f42ae[_0x16eddb+_0x40ab11],_0x566f6c=this['_getAttributeChanges'](_0x208f93,_0x587471);for(const _0x9e2d70 in _0x181d94)_0x566f6c[_0x9e2d70]||_0x331a6e(_0x9e2d70);for(const _0x20d3cd in _0x566f6c){const {oldValue:_0x155e3d,newValue:_0x463672}=_0x566f6c[_0x20d3cd],_0x3b4da2=_0x181d94[_0x20d3cd];_0x3b4da2?_0x3b4da2['oldValue']==_0x155e3d&&_0x3b4da2['newValue']==_0x463672?_0x3b4da2['length']++:(_0x331a6e(_0x20d3cd),_0x181d94[_0x20d3cd]={'oldValue':_0x155e3d,'newValue':_0x463672,'start':_0x40ab11,'length':0x1}):_0x181d94[_0x20d3cd]={'oldValue':_0x155e3d,'newValue':_0x463672,'start':_0x40ab11,'length':0x1};}}for(const _0x5bde04 in _0x181d94)_0x331a6e(_0x5bde04);function _0x331a6e(_0x4288cc){const _0x4f6eae=_0x181d94[_0x4288cc],_0x194eed=_0x2cbd47['slice']();_0x194eed[_0x194eed['length']-0x1]+=_0x4f6eae['start'],_0x43db96['push']({'type':'attribute','path':_0x194eed,'howMany':_0x4f6eae['length'],'key':_0x4288cc,'oldValue':_0x4f6eae['oldValue'],'newValue':_0x4f6eae['newValue']}),delete _0x181d94[_0x4288cc];}}_getAttributeChanges(_0x566361,_0x3f22ed){const _0x2112ff={};for(const [_0x58a1ed,_0x32985b]of _0x566361)_0x2112ff[_0x58a1ed]={'oldValue':JSON['stringify'](_0x32985b),'newValue':'null'};for(const [_0x174e21,_0x587da8]of _0x3f22ed){const _0x336489=JSON['stringify'](_0x587da8);_0x2112ff[_0x174e21]?_0x2112ff[_0x174e21]['oldValue']==_0x336489?delete _0x2112ff[_0x174e21]:_0x2112ff[_0x174e21]['newValue']=_0x336489:_0x2112ff[_0x174e21]={'oldValue':'null','newValue':_0x336489};}return delete _0x2112ff[pp],_0x2112ff;}_getAttrsForOffsets(_0x204938,_0x11f19f,_0x76a44f){const _0x135cfb=new Array(_0x11f19f+_0x76a44f);let _0x3ad493=_0x204938['getChildAtOffset'](_0x11f19f),_0x2588fd=_0x3ad493['startOffset'];for(;_0x3ad493&&_0x2588fd<_0x11f19f+_0x76a44f;){const _0x31a189=Array['from'](_0x3ad493['getAttributes']());_0x135cfb['fill'](_0x31a189,_0x2588fd,_0x2588fd+_0x3ad493['offsetSize']),_0x2588fd+=_0x3ad493['offsetSize'],_0x3ad493=_0x3ad493['nextSibling'];}return _0x135cfb;}_getPositionFromAnchorAndPath(_0x39e103,_0x1e16fd){const _0x1f06d7=[..._0x39e103['path']['slice'](0x0,-0x1),_0x39e103['offset']+_0x1e16fd[0x0],..._0x1e16fd['slice'](0x1)];return new _0x34c45c(_0x39e103['root'],_0x1f06d7);}['_makeModelFromTokens'](_0x137336){const _0x2bd5f2=[];let _0xf6162=null;for(const _0x18bcf9 of _0x137336)if('element'!=_0x18bcf9['type']||_0x18bcf9['isStart']||_0xf6162!=_0x18bcf9['element']){if(!_0xf6162){if('text'==_0x18bcf9['type']){const _0x32b68f=_0x34c45c['_createAt'](_0x18bcf9['parent'],_0x18bcf9['offset']),_0x31eac9=_0x45ca57['_createFromPositionAndShift'](_0x32b68f,_0x18bcf9['data']['length']),_0xe1f7ef=Array['from'](_0x31eac9['getItems']())['map'](_0x259ff5=>new _0x3c0cd2(_0x259ff5['data'],_0x259ff5['getAttributes']()));_0x2bd5f2['push'](..._0xe1f7ef);}else{_0xf6162=_0x18bcf9['element'];const _0x285f83=_0x18bcf9['element']['_clone'](!0x0);_0x285f83['_removeAttribute'](pp);for(const _0xf4a31 of this['_editor']['model']['createRangeIn'](_0x285f83)['getItems']())_0xf4a31['is']('element')&&_0xf4a31['_removeAttribute'](pp);_0x2bd5f2['push'](_0x285f83);}}}else _0xf6162=null;return _0x2bd5f2;}};function bp(_0x3ff7e2,_0x48e801){return _0x3ff7e2['type']===_0x48e801['type']&&(_0x3ff7e2['limitId']===_0x48e801['limitId']&&('text'==_0x3ff7e2['type']?_0x3ff7e2['data']==_0x48e801['data']:function(_0x2ab9a7,_0x165b4f){if(_0x2ab9a7['isStart']!=_0x165b4f['isStart'])return!0x1;if(_0x2ab9a7['isStart']&&_0x2ab9a7['elementId']!=_0x165b4f['elementId'])return!0x1;if(_0x2ab9a7['category']!=_0x165b4f['category'])return!0x1;if('block'==_0x2ab9a7['category'])return!0x0;if('container'==_0x2ab9a7['category']&&_0x2ab9a7['elementId']!=_0x165b4f['elementId'])return!0x1;return _0x2ab9a7['element']['name']==_0x165b4f['element']['name'];}(_0x3ff7e2,_0x48e801)));}function yp(_0x5dbdf4){return Lm({'name':_0x5dbdf4['name'],...Object['fromEntries'](_0x5dbdf4['getAttributes']())});}const vp=/* #__PURE__ -- @preserve */
_0x356c1e();var _p=class extends vp{_generateUid;_uidCounter=0x0;_touchedNodesState={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null,'rescuedNewIds':new Set()};_existingDataIds=new Set();_referencedExistingIds=new Set();constructor(_0xcb27f4){super(),this['_generateUid']=_0xcb27f4||(()=>'e'+String(this['_uidCounter']++));}['merge'](_0x55cf35,_0x3ce000,_0x2b240d){this['_uidCounter']=0x0;const _0x1d1e4f=_0x55cf35['cloneNode'](!0x0);Ap(_0x3ce000,_0x1d1e4f);const _0x4b0978=_0x1d1e4f['childNodes'],_0x47f36d=Array['from'](_0x4b0978)['filter'](_0x38478c=>!(0x3===_0x38478c['nodeType']&&''===Wc(_0x38478c)['trim']())),_0x2db730=_0x47f36d['length'];this['_existingDataIds']=new Set(Yc('data-id',null,_0x3ce000)['map'](_0x5b5d0f=>il(_0x5b5d0f,'data-id'))['filter'](_0x55b7be=>!!_0x55b7be));for(const _0x1c4c18 of _0x47f36d)_0x1c4c18&&fc(_0x1c4c18)&&void 0x0===_0x1c4c18['attribs']['data-id']&&sl(_0x1c4c18,'data-id','new-element');if(Yc('data-id',null,_0x1d1e4f)['forEach'](_0x5834a4=>{const _0x15c95a=il(_0x5834a4,'data-id');'new-element'===_0x15c95a||this['_existingDataIds']['has'](_0x15c95a)||sl(_0x5834a4,'data-id','new-element');}),0x0===_0x3ce000['childNodes']['length']){const _0x50b6b7=[];return Yc('data-id','new-element',_0x1d1e4f)['forEach'](_0x13e933=>{const _0x5f4765=this['_generateUid']();sl(_0x13e933,'data-id',_0x5f4765),_0x50b6b7['push'](_0x5f4765);}),this['_removeSpecialComments'](_0x1d1e4f),{'parsedContent':_0x1d1e4f,'newNodeIds':_0x50b6b7,'modifiedNodeIds':[],'removedNodeIds':[]};}this['_touchedNodesState']['newIds']=[],this['_touchedNodesState']['modifiedIds']=[],this['_touchedNodesState']['removedIds']=[],this['_touchedNodesState']['invalidIds']=[],this['_touchedNodesState']['lastTouchedId']=null,this['_touchedNodesState']['rescuedNewIds']=new Set(),this['_referencedExistingIds']=new Set();let _0x3f80bb=-0x1,_0x2ec0fc=!0x1;for(let _0x421ffa=0x0;_0x421ffa<_0x2db730;_0x421ffa++){const _0x51a7d3=_0x47f36d[_0x421ffa],_0x3e5562=_0x47f36d[_0x421ffa+0x1];if(this['_isNewNode'](_0x51a7d3)){if(-0x1===_0x3f80bb&&(_0x3f80bb=_0x421ffa),this['_markWrappedElements'](_0x51a7d3),!this['_isNewNode'](_0x3e5562)){const [_0x239cb8,_0x2d2418]=this['_findReferenceNode'](_0x51a7d3,_0x2ec0fc,_0x3ce000);if(_0x239cb8){const _0x17db07=Array['from'](_0x47f36d)['slice'](_0x3f80bb,_0x421ffa+0x1);this['_insertNodes'](_0x239cb8,_0x17db07,_0x2d2418),_0x3f80bb=-0x1;}}}else{if(this['_isExistingContentComment'](_0x51a7d3))_0x2ec0fc=!0x0;else{if(this['_isExistingNode'](_0x51a7d3)){const _0x575b56=il(_0x51a7d3,'data-id');if(_0x575b56&&this['_existingDataIds']['has'](_0x575b56)){this['_referencedExistingIds']['add'](_0x575b56);const _0x31d052=zc('data-id',_0x575b56,_0x3ce000);this['_replaceNode'](_0x31d052,_0x51a7d3);}}else{if(Ep(_0x51a7d3)){const _0x576364=Tp(_0x51a7d3);zc('data-id',_0x576364,_0x1d1e4f)||this['_touchedNodesState']['removedIds']['push'](_0x576364);}}}}}for(const _0x37178b of this['_touchedNodesState']['removedIds']){const _0x4b39e0=zc('data-id',_0x37178b,_0x3ce000);_0x4b39e0&&(this['_rescueUnwrappedElements'](_0x4b39e0),this['_removeNode'](_0x4b39e0,_0x37178b,_0x2b240d));}if(Yc('data-id','new-element',_0x3ce000)['forEach'](_0x162f9c=>{const _0x38b2b8=this['_getUid'](_0x162f9c);sl(_0x162f9c,'data-id',_0x38b2b8),this['_touchedNodesState']['newIds']['push'](_0x38b2b8);}),this['_removeSpecialComments'](_0x3ce000),_0x2b240d&&_0x2b240d['cutAfterUnstable']){const _0x2c5386=this['_findLastConfirmationPoint'](_0x47f36d),_0x36d84d=this['_getLastStableElement'](_0x3ce000,_0x2c5386);this['_markUnstableElements'](_0x3ce000,_0x36d84d);}if(this['_processWrappedElements'](_0x3ce000,_0x2b240d),_0x2b240d&&_0x2b240d['cutAfterUnstable']&&this['_touchedNodesState']['lastTouchedId']){const _0x3dc6eb=Yc('data-id',this['_touchedNodesState']['lastTouchedId'],_0x3ce000);let _0x4acfce=_0x3dc6eb[_0x3dc6eb['length']-0x1];for(;_0x4acfce;)cl(_0x4acfce),_0x4acfce=_0x4acfce['parentNode'];}return{'parsedContent':_0x3ce000,'newNodeIds':this['_touchedNodesState']['newIds'],'modifiedNodeIds':this['_touchedNodesState']['modifiedIds'],'removedNodeIds':this['_touchedNodesState']['removedIds']};}_insertNodes(_0x3841f8,_0x552fdf,_0x2f6122){for(const _0x3e6231 of _0x552fdf){const _0x2ebd91=this['_getUid'](_0x3e6231);sl(_0x3e6231,'data-id',_0x2ebd91),this['_touchedNodesState']['newIds']['push'](_0x2ebd91),this['_touchedNodesState']['lastTouchedId']=_0x2ebd91;}const _0x357385='afterbegin'===_0x2f6122||'afterend'===_0x2f6122?_0x552fdf['reverse']():_0x552fdf;for(const _0x3c2659 of _0x357385)nl(_0x3841f8,_0x3c2659,_0x2f6122);}['_replaceNode'](_0x40e41b,_0x3c6cc9){if(!_0x40e41b)return;if(_0x5571a7=_0x3c6cc9,ol(Wc(_0x40e41b))===ol(Wc(_0x5571a7)))return;var _0x5571a7;const _0x485f36=il(_0x40e41b,'data-id');this['_touchedNodesState']['modifiedIds']['push'](_0x485f36),this['_touchedNodesState']['lastTouchedId']=_0x485f36,Vc(_0x40e41b,_0x3c6cc9['cloneNode'](!0x0));}['_removeNode'](_0x19980c,_0x443f11,_0x44d865){if(_0x44d865&&_0x44d865['replaceRemovedWith']){this['_touchedNodesState']['lastTouchedId']=_0x443f11;const _0xdb7f54=_0x44d865['replaceRemovedWith']['cloneNode'](!0x0);sl(_0xdb7f54,'data-id',_0x443f11),sl(_0xdb7f54,'data-removed','true'),Vc(_0x19980c,_0xdb7f54);}else Uc(_0x19980c);}['_findReferenceNode'](_0x3c2cfb,_0x466351,_0x36661a){const _0x5cc9ae=this['_findPrevElementWithDataId'](_0x3c2cfb,!0x1);if(_0x5cc9ae){const _0x301e21=Tp(_0x5cc9ae),_0x28239d=zc('data-id',_0x301e21,_0x36661a);if(_0x28239d)return[_0x28239d,'afterend'];this['_touchedNodesState']['invalidIds']['push'](_0x301e21);}const _0x332eb3=this['_findNextElementWithDataId'](_0x3c2cfb,!0x1);if(_0x332eb3){const _0x18556d=Tp(_0x332eb3),_0x2c72a0=zc('data-id',_0x18556d,_0x36661a);if(_0x2c72a0)return[_0x2c72a0,'beforebegin'];this['_touchedNodesState']['invalidIds']['push'](_0x18556d);}return _0x466351?_0x3c2cfb['nextSibling']?this['_findFallbackReferenceNode'](_0x3c2cfb,_0x36661a):[_0x36661a['childNodes'][_0x36661a['childNodes']['length']-0x1],'afterend']:[_0x36661a['childNodes'][0x0],'beforebegin'];}['_findFallbackReferenceNode'](_0x52d6a4,_0x1e8ce4){const _0x1d3ce9=[],_0x1e2975=this['_findPrevElementWithDataId'](_0x52d6a4,!0x0);if(_0x1e2975){const _0x47aa02=zc('data-id',Tp(_0x1e2975),_0x1e8ce4);_0x47aa02&&_0x1d3ce9['push']([_0x47aa02,'afterend']);}const _0x5857c7=this['_findNextElementWithDataId'](_0x52d6a4,!0x0);if(_0x5857c7){const _0x4222fc=zc('data-id',Tp(_0x5857c7),_0x1e8ce4);_0x4222fc&&_0x1d3ce9['push']([_0x4222fc,'beforebegin']);}return _0x1d3ce9['length']>0x1?al(_0x1d3ce9[0x0][0x0])<=al(_0x1d3ce9[0x1][0x0])?_0x1d3ce9[0x0]:_0x1d3ce9[0x1]:0x1===_0x1d3ce9['length']?_0x1d3ce9[0x0]:[_0x1e8ce4['lastChild'],'afterend'];}_findNextElementWithDataId(_0x5db517,_0x48e703){let _0x20d24c=_0x5db517['nextSibling'],_0x38c1c4=null,_0x3ce3b8=!0x1;for(;_0x20d24c;){if(pc(_0x20d24c)){if(Ep(_0x20d24c)&&(_0x38c1c4=_0x20d24c),this['_isExistingContentComment'](_0x20d24c)&&_0x48e703&&!_0x3ce3b8){_0x3ce3b8=!0x0,_0x20d24c=_0x20d24c['nextSibling'];continue;}break;}const _0x2ff346=il(_0x20d24c,'data-id');if(_0x2ff346&&'new-element'!==_0x2ff346&&this['_existingDataIds']['has'](_0x2ff346)){_0x38c1c4=_0x20d24c;break;}_0x20d24c=_0x20d24c['nextSibling'];}return _0x38c1c4;}_findPrevElementWithDataId(_0x1fc933,_0x437d0d){let _0x4b48bc=_0x1fc933['previousSibling'],_0x1f0805=null,_0x4b824f=!0x1;for(;_0x4b48bc;){if(pc(_0x4b48bc)){if(Ep(_0x4b48bc)&&(_0x1f0805=_0x4b48bc),this['_isExistingContentComment'](_0x4b48bc)&&_0x437d0d&&!_0x4b824f){_0x4b824f=!0x0,_0x4b48bc=_0x4b48bc['previousSibling'];continue;}break;}const _0x1c8431=il(_0x4b48bc,'data-id');if(_0x1c8431&&'new-element'!==_0x1c8431&&this['_existingDataIds']['has'](_0x1c8431)){_0x1f0805=_0x4b48bc;break;}_0x4b48bc=_0x4b48bc['previousSibling'];}return _0x1f0805;}_markWrappedElements(_0x2ef88b){fc(_0x2ef88b)&&Yc('data-id',null,_0x2ef88b)['forEach'](_0x5af528=>{this['_isExistingNode'](_0x5af528)&&(sl(_0x5af528,'data-wrapped-id',il(_0x5af528,'data-id')),sl(_0x5af528,'data-id',null));});}_processWrappedElements(_0x2a8bcd,_0x34c5b0){Yc('data-wrapped-id',null,_0x2a8bcd)['forEach'](_0x1da915=>{const _0x1f152b=il(_0x1da915,'data-wrapped-id');if(this['_hasUnstableParent'](_0x1da915))return;const _0x29c380=zc('data-id',_0x1f152b,_0x2a8bcd);sl(_0x1da915,'data-id',_0x1f152b),_0x29c380&&(this['_removeNode'](_0x29c380,_0x1f152b,_0x34c5b0),this['_touchedNodesState']['removedIds']['push'](_0x1f152b),this['_touchedNodesState']['lastTouchedId']=_0x1f152b);});}_hasUnstableParent(_0x10b82a){let _0x4444dd=_0x10b82a['parentNode'];for(;_0x4444dd;){if(il(_0x4444dd,'data-unstable'))return!0x0;_0x4444dd=_0x4444dd['parentNode'];}return!0x1;}_rescueUnwrappedElements(_0x23ca38){const _0x225eec=new Set(this['_touchedNodesState']['removedIds']),_0x1f9f41=new Set(this['_touchedNodesState']['newIds']);Yc('data-id',null,_0x23ca38)['forEach'](_0x1370b5=>{const _0x12c566=il(_0x1370b5,'data-id'),_0x4310e0=!!_0x12c566&&this['_referencedExistingIds']['has'](_0x12c566),_0x276ce7=!!_0x12c566&&_0x1f9f41['has'](_0x12c566);if(!_0x12c566||!_0x4310e0&&!_0x276ce7)return;if(_0x225eec['has'](_0x12c566))return;let _0x535d43=_0x1370b5['parentNode'],_0x478bd=!0x1;for(;_0x535d43;){if(_0x535d43===_0x23ca38){_0x478bd=!0x0;break;}const _0x2b08d6=il(_0x535d43,'data-id');if(_0x2b08d6&&(this['_referencedExistingIds']['has'](_0x2b08d6)||_0x1f9f41['has'](_0x2b08d6)))return;_0x535d43=_0x535d43['parentNode'];}if(_0x478bd){if(Zc(_0x23ca38,_0x1370b5),_0x4310e0){const _0xd934b4=this['_generateUid'](),_0x11868f=this['_touchedNodesState']['modifiedIds']['indexOf'](_0x12c566);-0x1!==_0x11868f&&this['_touchedNodesState']['modifiedIds']['splice'](_0x11868f,0x1),sl(_0x1370b5,'data-unwrapped-id',_0x12c566),sl(_0x1370b5,'data-id',_0xd934b4),this['_touchedNodesState']['newIds']['push'](_0xd934b4),this['_touchedNodesState']['rescuedNewIds']['add'](_0xd934b4),this['_touchedNodesState']['lastTouchedId']=_0xd934b4;}else this['_touchedNodesState']['rescuedNewIds']['add'](_0x12c566),this['_touchedNodesState']['lastTouchedId']=_0x12c566;}});}_getUid(_0x388cad){return this['_isExistingNode'](_0x388cad)?il(_0x388cad,'data-id'):this['_generateUid']();}_removeSpecialComments(_0x5bce68){el(_0x5bce68)['filter'](_0x506d11=>Ep(_0x506d11)||this['_isExistingContentComment'](_0x506d11))['forEach'](_0x236929=>{Uc(_0x236929);});}_findLastConfirmationPoint(_0x57b666){let _0x43b1dd=null,_0x5dc8dd=null,_0x219f04=null,_0x2f5c12=null;const _0x1d6f68=_0x2be915=>{_0x2be915&&(_0x43b1dd=_0x2be915),_0x219f04=null,_0x2f5c12=null;};for(let _0x3f0e65=0x0;_0x3f0e65<_0x57b666['length'];_0x3f0e65++){const _0x4985ed=_0x57b666[_0x3f0e65];if(this['_isExistingContentComment'](_0x4985ed)){_0x1d6f68(_0x5dc8dd);continue;}if(fc(_0x4985ed)){const _0x4b1b3f=il(_0x4985ed,'data-id'),_0x22c495=_0x3f0e65===_0x57b666['length']-0x1;if(_0x4b1b3f&&'new-element'!==_0x4b1b3f&&this['_touchedNodesState']['modifiedIds']['includes'](_0x4b1b3f)&&!_0x22c495){_0x1d6f68(_0x4b1b3f),_0x5dc8dd=_0x4b1b3f;continue;}}let _0x33e90c;const _0x5225ed=Tp(_0x4985ed);if(_0x5225ed&&this['_touchedNodesState']['rescuedNewIds']['has'](_0x5225ed))_0x5dc8dd=_0x5225ed;else{if(_0x5225ed&&this['_touchedNodesState']['newIds']['includes'](_0x5225ed))_0x33e90c='N';else{if(!Ep(_0x4985ed))continue;_0x33e90c='R';}_0x33e90c===_0x2f5c12||null===_0x2f5c12?_0x2f5c12=_0x33e90c:null!==_0x219f04?(_0x1d6f68(_0x5dc8dd),_0x2f5c12=_0x33e90c):(_0x219f04=_0x2f5c12,_0x2f5c12=_0x33e90c),_0x5dc8dd=_0x5225ed;}}const _0xa6f7a0=_0x57b666[_0x57b666['length']-0x1];return _0xa6f7a0&&!fc(_0xa6f7a0)&&!Ep(_0xa6f7a0)&&_0x5dc8dd&&_0x1d6f68(_0x5dc8dd),_0x43b1dd;}_getLastStableElement(_0xad36ee,_0x1eefa8){if(!_0x1eefa8)return null;const _0x39fc27=zc('data-id',_0x1eefa8,_0xad36ee);if(!_0x39fc27)return null;const _0x1104e4=[_0x39fc27,...rl(_0x39fc27)]['at'](-0x2);if(_0x1104e4===_0x39fc27)return _0x39fc27;let _0x3ddec2=_0x1104e4['previousSibling'];for(;_0x3ddec2&&!fc(_0x3ddec2);)_0x3ddec2=_0x3ddec2['previousSibling'];return _0x3ddec2;}_markUnstableElements(_0x562420,_0x32b250){const _0x252d3f=new Set([...this['_touchedNodesState']['newIds'],...this['_touchedNodesState']['modifiedIds'],...this['_touchedNodesState']['removedIds']]);let _0x520d91=_0x32b250?_0x32b250['nextSibling']:_0x562420['firstChild'];for(;_0x520d91;)fc(_0x520d91)&&(_0x252d3f['has'](il(_0x520d91,'data-id'))||Yc('data-id',null,_0x520d91)['some'](_0x5e1d81=>_0x252d3f['has'](il(_0x5e1d81,'data-id'))))&&sl(_0x520d91,'data-unstable','true'),_0x520d91=_0x520d91['nextSibling'];}['_isNewNode'](_0x3f794c){return Boolean('new-element'===il(_0x3f794c,'data-id'));}_isExistingNode(_0xe5fc83){return Boolean((il(_0xe5fc83,'data-id')||'')['length']>0x0&&'new-element'!==il(_0xe5fc83,'data-id'));}_isExistingContentComment(_0x488b41){return Boolean(pc(_0x488b41)&&Wc(_0x488b41)['match'](/\s*existing[\s*-](content|document)\s*/g));}};function Ep(_0x362ab0){return!!_0x362ab0&&Boolean(pc(_0x362ab0)&&Wc(_0x362ab0)['match'](/removed[\s*-]data-id="[^"]+"/));}function Tp(_0x247b7d){if(!_0x247b7d)return null;if(fc(_0x247b7d))return il(_0x247b7d,'data-id')??null;if(pc(_0x247b7d)){const _0x2f569b=Wc(_0x247b7d)['match'](/removed[\s*-]data-id="([^"]+)"/);if(_0x2f569b&&_0x2f569b[0x1])return _0x2f569b[0x1];}return null;}function Ap(_0xedf60c,_0x57bf6a){const _0x1a1785=new Map();for(const _0x5bb40d of Kc(_0xedf60c))tl(_0x5bb40d)||_0x1a1785['set'](il(_0x5bb40d,'data-id'),_0x5bb40d);const _0x1d5f6c=new Set();for(const _0xded56 of Kc(_0x57bf6a)){if(tl(_0xded56))continue;const _0x2f0821=il(_0xded56,'data-id'),_0x5e36ab=_0x2f0821?_0x1a1785['get'](_0x2f0821):void 0x0;_0x5e36ab?(Vc(_0xded56,wc(_0x5e36ab,!0x0)),_0x1d5f6c['add'](_0x2f0821)):Uc(_0xded56);}for(const _0x37f122 of el(_0x57bf6a))Ep(_0x37f122)&&_0x1a1785['has'](Tp(_0x37f122))&&Uc(_0x37f122);const _0x38027f=new Set(Yc('data-id',null,_0x57bf6a)['map'](_0x1aac5d=>il(_0x1aac5d,'data-id')));for(const [_0x580ef6,_0x45e7c9]of _0x1a1785){if(_0x1d5f6c['has'](_0x580ef6))continue;let _0x516a9a=_0x45e7c9['parent'],_0x12fea3=null;for(;_0x516a9a&&fc(_0x516a9a);){const _0x3ab53d=il(_0x516a9a,'data-id');if(_0x3ab53d&&_0x38027f['has'](_0x3ab53d)){_0x12fea3=_0x3ab53d;break;}_0x516a9a=_0x516a9a['parent'];}if(!_0x12fea3)continue;const _0x8a4fc2=zc('data-id',_0x12fea3,_0x57bf6a);_0x8a4fc2&&Bc(_0x8a4fc2,wc(_0x45e7c9,!0x0));}}const Sp='object'==typeof self?self:globalThis,Ip=(_0x26b9a4,_0x189c96)=>{switch(_0x26b9a4){case'Function':case'SharedWorker':case'Worker':case'eval':case'setInterval':case'setTimeout':throw new TypeError('unable\x20to\x20deserialize\x20'+_0x26b9a4);}return new Sp[_0x26b9a4](_0x189c96);},kp=_0x3009b3=>((_0x393025,_0x554f57)=>{const _0x24a148=(_0x22985b,_0x1a450d)=>(_0x393025['set'](_0x1a450d,_0x22985b),_0x22985b),_0x2d9357=_0x3b6cf5=>{if(_0x393025['has'](_0x3b6cf5))return _0x393025['get'](_0x3b6cf5);const [_0x443577,_0x15a086]=_0x554f57[_0x3b6cf5];switch(_0x443577){case 0x0:case-0x1:return _0x24a148(_0x15a086,_0x3b6cf5);case 0x1:{const _0x143157=_0x24a148([],_0x3b6cf5);for(const _0x49eb1b of _0x15a086)_0x143157['push'](_0x2d9357(_0x49eb1b));return _0x143157;}case 0x2:{const _0x5510b8=_0x24a148({},_0x3b6cf5);for(const [_0xf28979,_0x13d828]of _0x15a086)_0x5510b8[_0x2d9357(_0xf28979)]=_0x2d9357(_0x13d828);return _0x5510b8;}case 0x3:return _0x24a148(new Date(_0x15a086),_0x3b6cf5);case 0x4:{const {source:_0x56db27,flags:_0x80a8e}=_0x15a086;return _0x24a148(new RegExp(_0x56db27,_0x80a8e),_0x3b6cf5);}case 0x5:{const _0x17afd1=_0x24a148(new Map(),_0x3b6cf5);for(const [_0x114f13,_0x5acc21]of _0x15a086)_0x17afd1['set'](_0x2d9357(_0x114f13),_0x2d9357(_0x5acc21));return _0x17afd1;}case 0x6:{const _0x5b1f84=_0x24a148(new Set(),_0x3b6cf5);for(const _0x453237 of _0x15a086)_0x5b1f84['add'](_0x2d9357(_0x453237));return _0x5b1f84;}case 0x7:{const {name:_0x47f19d,message:_0x26245a}=_0x15a086;return _0x24a148(Ip(_0x47f19d,_0x26245a),_0x3b6cf5);}case 0x8:return _0x24a148(BigInt(_0x15a086),_0x3b6cf5);case'BigInt':return _0x24a148(Object(BigInt(_0x15a086)),_0x3b6cf5);case'ArrayBuffer':return _0x24a148(new Uint8Array(_0x15a086)['buffer'],_0x15a086);case'DataView':{const {buffer:_0x36393b}=new Uint8Array(_0x15a086);return _0x24a148(new DataView(_0x36393b),_0x15a086);}}return _0x24a148(Ip(_0x443577,_0x15a086),_0x3b6cf5);};return _0x2d9357;})(new Map(),_0x3009b3)(0x0),xp='',{toString:Cp}={},{keys:Rp}=Object,Pp=_0x480867=>{const _0x5962da=typeof _0x480867;if('object'!==_0x5962da||!_0x480867)return[0x0,_0x5962da];const _0x508903=Cp['call'](_0x480867)['slice'](0x8,-0x1);switch(_0x508903){case'Array':return[0x1,xp];case'Object':return[0x2,xp];case'Date':return[0x3,xp];case'RegExp':return[0x4,xp];case'Map':return[0x5,xp];case'Set':return[0x6,xp];case'DataView':return[0x1,_0x508903];}return _0x508903['includes']('Array')?[0x1,_0x508903]:_0x508903['includes']('Error')?[0x7,_0x508903]:[0x2,_0x508903];},Np=([_0x547d61,_0x327ae7])=>0x0===_0x547d61&&('function'===_0x327ae7||'symbol'===_0x327ae7),Mp=(_0x552e6d,{json:_0x42582f,lossy:_0x3200c6}={})=>{const _0x2d85f5=[];return((_0x374ed6,_0x121195,_0x50410b,_0x31eefd)=>{const _0x55e28b=(_0x59249a,_0x16ac0a)=>{const _0x4df856=_0x31eefd['push'](_0x59249a)-0x1;return _0x50410b['set'](_0x16ac0a,_0x4df856),_0x4df856;},_0x44ea86=_0x15b506=>{if(_0x50410b['has'](_0x15b506))return _0x50410b['get'](_0x15b506);let [_0x42be18,_0x538def]=Pp(_0x15b506);switch(_0x42be18){case 0x0:{let _0x1a0314=_0x15b506;switch(_0x538def){case'bigint':_0x42be18=0x8,_0x1a0314=_0x15b506['toString']();break;case'function':case'symbol':if(_0x374ed6)throw new TypeError('unable\x20to\x20serialize\x20'+_0x538def);_0x1a0314=null;break;case'undefined':return _0x55e28b([-0x1],_0x15b506);}return _0x55e28b([_0x42be18,_0x1a0314],_0x15b506);}case 0x1:{if(_0x538def){let _0x1b050a=_0x15b506;return'DataView'===_0x538def?_0x1b050a=new Uint8Array(_0x15b506['buffer']):'ArrayBuffer'===_0x538def&&(_0x1b050a=new Uint8Array(_0x15b506)),_0x55e28b([_0x538def,[..._0x1b050a]],_0x15b506);}const _0x30774e=[],_0x7015bc=_0x55e28b([_0x42be18,_0x30774e],_0x15b506);for(const _0x5be529 of _0x15b506)_0x30774e['push'](_0x44ea86(_0x5be529));return _0x7015bc;}case 0x2:{if(_0x538def)switch(_0x538def){case'BigInt':return _0x55e28b([_0x538def,_0x15b506['toString']()],_0x15b506);case'Boolean':case'Number':case'String':return _0x55e28b([_0x538def,_0x15b506['valueOf']()],_0x15b506);}if(_0x121195&&'toJSON'in _0x15b506)return _0x44ea86(_0x15b506['toJSON']());const _0x142cd4=[],_0x1556f7=_0x55e28b([_0x42be18,_0x142cd4],_0x15b506);for(const _0x383660 of Rp(_0x15b506))!_0x374ed6&&Np(Pp(_0x15b506[_0x383660]))||_0x142cd4['push']([_0x44ea86(_0x383660),_0x44ea86(_0x15b506[_0x383660])]);return _0x1556f7;}case 0x3:return _0x55e28b([_0x42be18,_0x15b506['toISOString']()],_0x15b506);case 0x4:{const {source:_0x47c19b,flags:_0x390b3e}=_0x15b506;return _0x55e28b([_0x42be18,{'source':_0x47c19b,'flags':_0x390b3e}],_0x15b506);}case 0x5:{const _0x7482c6=[],_0x23e923=_0x55e28b([_0x42be18,_0x7482c6],_0x15b506);for(const [_0x7fe332,_0x373554]of _0x15b506)(_0x374ed6||!Np(Pp(_0x7fe332))&&!Np(Pp(_0x373554)))&&_0x7482c6['push']([_0x44ea86(_0x7fe332),_0x44ea86(_0x373554)]);return _0x23e923;}case 0x6:{const _0x24d437=[],_0xc88870=_0x55e28b([_0x42be18,_0x24d437],_0x15b506);for(const _0x6d3a01 of _0x15b506)!_0x374ed6&&Np(Pp(_0x6d3a01))||_0x24d437['push'](_0x44ea86(_0x6d3a01));return _0xc88870;}}const {message:_0x1dc5f0}=_0x15b506;return _0x55e28b([_0x42be18,{'name':_0x538def,'message':_0x1dc5f0}],_0x15b506);};return _0x44ea86;})(!(_0x42582f||_0x3200c6),!!_0x42582f,new Map(),_0x2d85f5)(_0x552e6d),_0x2d85f5;};var Lp='function'==typeof structuredClone?(_0x4c8b89,_0x473f7e)=>_0x473f7e&&('json'in _0x473f7e||'lossy'in _0x473f7e)?kp(Mp(_0x4c8b89,_0x473f7e)):structuredClone(_0x4c8b89):(_0x333fba,_0x2c3196)=>kp(Mp(_0x333fba,_0x2c3196));const $p=Qp('end'),Dp=Qp('start');function Qp(_0x2277bb){return function(_0x253bfa){const _0x4a0a66=_0x253bfa&&_0x253bfa['position']&&_0x253bfa['position'][_0x2277bb]||{};if('number'==typeof _0x4a0a66['line']&&_0x4a0a66['line']>0x0&&'number'==typeof _0x4a0a66['column']&&_0x4a0a66['column']>0x0)return{'line':_0x4a0a66['line'],'column':_0x4a0a66['column'],'offset':'number'==typeof _0x4a0a66['offset']&&_0x4a0a66['offset']>-0x1?_0x4a0a66['offset']:void 0x0};};}const jp=['ariaDescribedBy','ariaLabel','ariaLabelledBy'],Up={'ancestors':{'tbody':['table'],'td':['table'],'th':['table'],'thead':['table'],'tfoot':['table'],'tr':['table']},'attributes':{'a':[...jp,'dataFootnoteBackref','dataFootnoteRef',['className','data-footnote-backref'],'href'],'blockquote':['cite'],'code':[['className',/^language-./]],'del':['cite'],'div':['itemScope','itemType'],'dl':[...jp],'h2':[['className','sr-only']],'img':[...jp,'longDesc','src'],'input':[['disabled',!0x0],['type','checkbox']],'ins':['cite'],'li':[['className','task-list-item']],'ol':[...jp,['className','contains-task-list']],'q':['cite'],'section':['dataFootnotes',['className','footnotes']],'source':['srcSet'],'summary':[...jp],'table':[...jp],'ul':[...jp,['className','contains-task-list']],'*':['abbr','accept','acceptCharset','accessKey','action','align','alt','axis','border','cellPadding','cellSpacing','char','charOff','charSet','checked','clear','colSpan','color','cols','compact','coords','dateTime','dir','encType','frame','hSpace','headers','height','hrefLang','htmlFor','id','isMap','itemProp','label','lang','maxLength','media','method','multiple','name','noHref','noShade','noWrap','open','prompt','readOnly','rev','rowSpan','rows','rules','scope','selected','shape','size','span','start','summary','tabIndex','title','useMap','vAlign','value','width']},'clobber':['ariaDescribedBy','ariaLabelledBy','id','name'],'clobberPrefix':'user-content-','protocols':{'cite':['http','https'],'href':['http','https','irc','ircs','mailto','xmpp'],'longDesc':['http','https'],'src':['http','https']},'required':{'input':{'disabled':!0x0,'type':'checkbox'}},'strip':['script'],'tagNames':['a','b','blockquote','br','code','dd','del','details','div','dl','dt','em','h1','h2','h3','h4','h5','h6','hr','i','img','input','ins','kbd','li','ol','p','picture','pre','q','rp','rt','ruby','s','samp','section','source','span','strike','strong','sub','summary','sup','table','tbody','td','tfoot','th','thead','tr','tt','ul','var']},Vp={}['hasOwnProperty'];function Bp(_0x19f5a0,_0x9d7217){if(_0x9d7217&&'object'==typeof _0x9d7217){const _0x387670=_0x9d7217;switch('string'==typeof _0x387670['type']?_0x387670['type']:''){case'comment':return function(_0x487840,_0x2c94a6){if(_0x487840['schema']['allowComments']){const _0x1ffbe6='string'==typeof _0x2c94a6['value']?_0x2c94a6['value']:'',_0x46a480=_0x1ffbe6['indexOf']('--\x3e'),_0xb1b25e={'type':'comment','value':_0x46a480<0x0?_0x1ffbe6:_0x1ffbe6['slice'](0x0,_0x46a480)};return Gp(_0xb1b25e,_0x2c94a6),_0xb1b25e;}}(_0x19f5a0,_0x387670);case'doctype':return function(_0x28caea,_0xf9705a){if(_0x28caea['schema']['allowDoctypes']){const _0x12d2ed={'type':'doctype'};return Gp(_0x12d2ed,_0xf9705a),_0x12d2ed;}}(_0x19f5a0,_0x387670);case'element':return function(_0x17e218,_0x7153ac){const _0x550f40='string'==typeof _0x7153ac['tagName']?_0x7153ac['tagName']:'';_0x17e218['stack']['push'](_0x550f40);const _0x3b69cc=Hp(_0x17e218,_0x7153ac['children']),_0x3f205b=function(_0x57de3c,_0x9e6d53){const _0x127fc6=_0x57de3c['stack'][_0x57de3c['stack']['length']-0x1],_0x4d45a9=_0x57de3c['schema']['attributes'],_0x34c38d=_0x57de3c['schema']['required'],_0x1f13fa=_0x4d45a9&&Vp['call'](_0x4d45a9,_0x127fc6)?_0x4d45a9[_0x127fc6]:void 0x0,_0x43e052=_0x4d45a9&&Vp['call'](_0x4d45a9,'*')?_0x4d45a9['*']:void 0x0,_0x5b5f43=_0x9e6d53&&'object'==typeof _0x9e6d53?_0x9e6d53:{},_0x3f9ede={};let _0x5e9daa;for(_0x5e9daa in _0x5b5f43)if(Vp['call'](_0x5b5f43,_0x5e9daa)){const _0x2e2b23=_0x5b5f43[_0x5e9daa];let _0x236163=Fp(_0x57de3c,Xp(_0x1f13fa,_0x5e9daa),_0x5e9daa,_0x2e2b23);null==_0x236163&&(_0x236163=Fp(_0x57de3c,Xp(_0x43e052,_0x5e9daa),_0x5e9daa,_0x2e2b23)),null!=_0x236163&&(_0x3f9ede[_0x5e9daa]=_0x236163);}if(_0x34c38d&&Vp['call'](_0x34c38d,_0x127fc6)){const _0x42aa2c=_0x34c38d[_0x127fc6];for(_0x5e9daa in _0x42aa2c)Vp['call'](_0x42aa2c,_0x5e9daa)&&!Vp['call'](_0x3f9ede,_0x5e9daa)&&(_0x3f9ede[_0x5e9daa]=_0x42aa2c[_0x5e9daa]);}return _0x3f9ede;}(_0x17e218,_0x7153ac['properties']);_0x17e218['stack']['pop']();let _0x3c2650=!0x1;if(_0x550f40&&'*'!==_0x550f40&&(!_0x17e218['schema']['tagNames']||_0x17e218['schema']['tagNames']['includes'](_0x550f40))&&(_0x3c2650=!0x0,_0x17e218['schema']['ancestors']&&Vp['call'](_0x17e218['schema']['ancestors'],_0x550f40))){const _0x258288=_0x17e218['schema']['ancestors'][_0x550f40];let _0x45ae56=-0x1;for(_0x3c2650=!0x1;++_0x45ae56<_0x258288['length'];)_0x17e218['stack']['includes'](_0x258288[_0x45ae56])&&(_0x3c2650=!0x0);}if(!_0x3c2650)return _0x17e218['schema']['strip']&&!_0x17e218['schema']['strip']['includes'](_0x550f40)?_0x3b69cc:void 0x0;const _0x5b2db4={'type':'element','tagName':_0x550f40,'properties':_0x3f205b,'children':_0x3b69cc};return Gp(_0x5b2db4,_0x7153ac),_0x5b2db4;}(_0x19f5a0,_0x387670);case'root':return function(_0x29e10e,_0x5eb5e4){const _0x4d3dfe={'type':'root','children':Hp(_0x29e10e,_0x5eb5e4['children'])};return Gp(_0x4d3dfe,_0x5eb5e4),_0x4d3dfe;}(_0x19f5a0,_0x387670);case'text':return function(_0xfd2018,_0x2e5a87){const _0x3d3130={'type':'text','value':'string'==typeof _0x2e5a87['value']?_0x2e5a87['value']:''};return Gp(_0x3d3130,_0x2e5a87),_0x3d3130;}(0x0,_0x387670);}}}function Hp(_0x322fa5,_0x14694a){const _0x5e33f8=[];if(Array['isArray'](_0x14694a)){const _0x1dbbcc=_0x14694a;let _0xbb97ce=-0x1;for(;++_0xbb97ce<_0x1dbbcc['length'];){const _0xc20c5c=Bp(_0x322fa5,_0x1dbbcc[_0xbb97ce]);_0xc20c5c&&(Array['isArray'](_0xc20c5c)?_0x5e33f8['push'](..._0xc20c5c):_0x5e33f8['push'](_0xc20c5c));}}return _0x5e33f8;}function Fp(_0x57b4fc,_0x4fb729,_0x4cb155,_0x5cacf5){return _0x4fb729?Array['isArray'](_0x5cacf5)?function(_0x19f280,_0xf5a2d3,_0x22f1be,_0x1f0aab){let _0x10f86f=-0x1;const _0x1f01ff=[];for(;++_0x10f86f<_0x1f0aab['length'];){const _0x1ab5b5=Zp(_0x19f280,_0xf5a2d3,_0x22f1be,_0x1f0aab[_0x10f86f]);'number'!=typeof _0x1ab5b5&&'string'!=typeof _0x1ab5b5||_0x1f01ff['push'](_0x1ab5b5);}return _0x1f01ff;}(_0x57b4fc,_0x4fb729,_0x4cb155,_0x5cacf5):Zp(_0x57b4fc,_0x4fb729,_0x4cb155,_0x5cacf5):void 0x0;}function Zp(_0x3b683a,_0x5afab5,_0x106780,_0x20378a){if(('boolean'==typeof _0x20378a||'number'==typeof _0x20378a||'string'==typeof _0x20378a)&&function(_0x24f2fc,_0x36a365,_0x30d971){const _0xdd855b=_0x24f2fc['schema']['protocols']&&Vp['call'](_0x24f2fc['schema']['protocols'],_0x36a365)?_0x24f2fc['schema']['protocols'][_0x36a365]:void 0x0;if(!_0xdd855b||0x0===_0xdd855b['length'])return!0x0;const _0x1ef597=String(_0x30d971),_0x18e788=_0x1ef597['indexOf'](':'),_0x3c52f7=_0x1ef597['indexOf']('?'),_0x439a56=_0x1ef597['indexOf']('#'),_0x31e84e=_0x1ef597['indexOf']('/');if(_0x18e788<0x0||_0x31e84e>-0x1&&_0x18e788>_0x31e84e||_0x3c52f7>-0x1&&_0x18e788>_0x3c52f7||_0x439a56>-0x1&&_0x18e788>_0x439a56)return!0x0;let _0x4e017b=-0x1;for(;++_0x4e017b<_0xdd855b['length'];){const _0x3bf0d6=_0xdd855b[_0x4e017b];if(_0x18e788===_0x3bf0d6['length']&&_0x1ef597['slice'](0x0,_0x3bf0d6['length'])===_0x3bf0d6)return!0x0;}return!0x1;}(_0x3b683a,_0x106780,_0x20378a)){if('object'==typeof _0x5afab5&&_0x5afab5['length']>0x1){let _0x5a3d6b=!0x1,_0x5a1efa=0x0;for(;++_0x5a1efa<_0x5afab5['length'];){const _0x2ee0bb=_0x5afab5[_0x5a1efa];if(_0x2ee0bb&&'object'==typeof _0x2ee0bb&&'flags'in _0x2ee0bb){if(_0x2ee0bb['test'](String(_0x20378a))){_0x5a3d6b=!0x0;break;}}else{if(_0x2ee0bb===_0x20378a){_0x5a3d6b=!0x0;break;}}}if(!_0x5a3d6b)return;}return _0x3b683a['schema']['clobber']&&_0x3b683a['schema']['clobberPrefix']&&_0x3b683a['schema']['clobber']['includes'](_0x106780)?_0x3b683a['schema']['clobberPrefix']+_0x20378a:_0x20378a;}}function Gp(_0x364d25,_0x2e19fc){const _0x567f0b=function(_0x17ed2c){const _0x27fbd9=Dp(_0x17ed2c),_0x125327=$p(_0x17ed2c);if(_0x27fbd9&&_0x125327)return{'start':_0x27fbd9,'end':_0x125327};}(_0x2e19fc);_0x2e19fc['data']&&(_0x364d25['data']=Lp(_0x2e19fc['data'])),_0x567f0b&&(_0x364d25['position']=_0x567f0b);}function Xp(_0x1cb732,_0x5c329a){let _0x495eaa,_0x1d60ae=-0x1;if(_0x1cb732)for(;++_0x1d60ae<_0x1cb732['length'];){const _0x418bf3=_0x1cb732[_0x1d60ae],_0x2175c3='string'==typeof _0x418bf3?_0x418bf3:_0x418bf3[0x0];if(_0x2175c3===_0x5c329a)return _0x418bf3;'data*'===_0x2175c3&&(_0x495eaa=_0x418bf3);}if(_0x5c329a['length']>0x4&&'data'===_0x5c329a['slice'](0x0,0x4)['toLowerCase']())return _0x495eaa;}function qp(_0x1da89e){return function(_0x429014){return function(_0x2b8036,_0x1a1f8e){let _0x572f72={'type':'root','children':[]};const _0x40fae5=Bp({'schema':_0x1a1f8e?{...Up,..._0x1a1f8e}:Up,'stack':[]},_0x2b8036);return _0x40fae5&&(Array['isArray'](_0x40fae5)?0x1===_0x40fae5['length']?_0x572f72=_0x40fae5[0x0]:_0x572f72['children']=_0x40fae5:_0x572f72=_0x40fae5),_0x572f72;}(_0x429014,_0x1da89e);};}const Wp=/* #__PURE__ -- @preserve */
_0x356c1e();var zp=class extends Wp{_m2html;constructor(){super();const _0x1bcca9=Object['entries'](_0x998154),_0x2ed326=_0x1bcca9['findIndex'](([_0x26d0ad])=>'rehypeDomRaw'===_0x26d0ad);if(-0x1===_0x2ed326)throw new _0x4242d4('ai-response-parser-unable-to-set-up-parser');_0x1bcca9['splice'](_0x2ed326+0x1,0x0,['rehypeSanitize',qp]),this['_m2html']=new _0x1f56cd({'plugins':Object['fromEntries'](_0x1bcca9)});}convertMarkdownToHTML(_0x1fbdf4){const _0x3b31b5=this['_m2html']['parse'](_0x1fbdf4);return this['parseAndNormalizeHTML'](_0x3b31b5);}['parseAndNormalizeHTML'](_0x6532b){return this['_parseHTML'](_0x6532b);}['_parseHTML'](_0x34556d){const _0x21a17a=qc('<dummy>'+_0x34556d['replace'](/<[^>]*?$/g,'')+'</dummy>');return Yp(_0x21a17a),_0x21a17a['children']=_0x21a17a['children'][0x0]['children'],_0x21a17a;}};function Yp(_0x5e1d2d){for(const _0x4cd582 of _0x5e1d2d['children'])fc(_0x4cd582)?'pre'!==_0x4cd582['name']&&Yp(_0x4cd582):mc(_0x4cd582)&&(_0x4cd582['data']=_0x4cd582['data']['replace'](/^\t+/gm,'\x20')['replace'](/\n*/g,'')['replace'](/[ \t\r\f\v]+/g,'\x20'));}function Kp({changeGroups:_0x4e1dcd,documentContextContent:_0xfd8861,showDiff:_0xc470a4,trimUnchanged:_0x2e4666=!0x0}){const _0xdf95db=pl(_0x4e1dcd,_0xfd8861);return _0x4e1dcd['map'](_0x1e84c3=>{if(!_0x1e84c3['editor']||'destroyed'===_0x1e84c3['editor']['state'])return null;const _0x9a9919=ll(_0x1e84c3['editor'],_0x1e84c3['rootName']),_0x1f93df=new uc([]),_0x1b1839=new uc([]),_0xc4003c=new Set();for(const _0x354d85 of _0x1e84c3['changes'])'new'==_0x354d85['type']&&Yc('data-id',null,_0x354d85['node'])['forEach'](_0x5b35a8=>{_0xc4003c['add'](il(_0x5b35a8,'data-id'));});for(const _0x5b55cc of _0x1e84c3['changes'])if('removed'!=_0x5b55cc['type']?_0x1b1839['children']['push'](_0x5b55cc['node']['cloneNode'](!0x0)):_0xc470a4||_0xc4003c['has'](_0x5b55cc['id'])||_0x1b1839['children']['push'](_0x5b55cc['node']['cloneNode'](!0x0)),'new'!=_0x5b55cc['type']&&(_0xc470a4||'removed'!=_0x5b55cc['type'])){const _0x28c83b=Gc(_0x368517=>il(_0x368517,'data-id')==_0x5b55cc['id'],_0xfd8861['get'](_0x1e84c3['documentId']),!0x0);_0x28c83b&&_0x1f93df['children']['push'](_0x28c83b['cloneNode'](!0x0));}if(_0x9a9919&&_0xdf95db['has'](_0x1e84c3['index']))return{'type':_0x1e84c3['changes'][0x0]['type'],'index':_0x1e84c3['index'],'state':_0x1e84c3['state'],'outdatedReason':_0x1e84c3['outdatedReason'],'content':new uc([]),'hasChanges':!0x1};let _0x5c0384,_0x23128d,_0x5d17a6;try{({content:_0x5c0384,hasChanges:_0x23128d}=Jp(_0x1e84c3['editor'],_0x1f93df,_0x1b1839,_0xc470a4,_0x2e4666));}catch{return{'type':_0x1e84c3['changes'][0x0]['type'],'index':_0x1e84c3['index'],'state':_0x1e84c3['state'],'outdatedReason':_0x1e84c3['outdatedReason'],'content':new uc([]),'hasChanges':!0x1};}if(_0x9a9919){_0x5d17a6=_0x1e84c3['editor']['ui']['getEditableElement'](_0x1e84c3['rootName'])?.['tagName']['toLowerCase']();const _0x2bb605=_0x5c0384['children']['filter'](fc);0x1===_0x2bb605['length']&&(_0x5c0384=new uc(_0x2bb605[0x0]['children']));}return{'type':_0x1e84c3['changes'][0x0]['type'],'index':_0x1e84c3['index'],'state':_0x1e84c3['state'],'outdatedReason':_0x1e84c3['outdatedReason'],'content':_0x5c0384,'hasChanges':_0x23128d,'wrapperTag':_0x5d17a6};})['filter'](_0x6131e=>null!==_0x6131e);}function Jp(_0x3a77e7,_0x591162,_0x43bbfb,_0x4d4494,_0x581a2c=!0x0){const _0x14e7f0=_0x3a77e7['plugins']['get']('DocumentCompare'),_0x30de85=Wc(_0x591162),_0x5c5a18=Wc(_0x43bbfb),_0x43967d=_0x3a77e7['data']['parse'](_0x30de85,'$root'),_0x288cef=_0x3a77e7['model']['createPositionAt'](_0x43967d,0x0),_0x6bc4e=_0x14e7f0['getDiff'](_0x30de85,_0x5c5a18,{'anchor':_0x288cef,'markDeletions':_0x4d4494,'targetEditor':_0x3a77e7})['getOperations']();if(0x0==_0x6bc4e['length'])return{'content':_0x591162['cloneNode'](!0x0),'hasChanges':!0x1};if(_0x4d4494?function(_0x5d5cb5,_0x2c7cb4,_0x2f3267){if(0x0==_0x5d5cb5['length'])return;const _0x1c5232=_0x2f3267['plugins']['get']('DocumentCompare'),_0x8fdac=_0x2f3267['plugins']['get']('SuggestionsConversion');_0x2f3267['model']['change'](_0x5eb88e=>{const _0x554cfc=new Set();for(let _0x33bfde=0x0;_0x33bfde<_0x5d5cb5['length'];_0x33bfde++){const _0x498409=_0x5d5cb5[_0x33bfde];if(_0x498409['baseVersion']=null,_0x498409['isDocumentOperation']=!0x1,!Vm(_0x498409)){if(_0x1c5232['isMarkedRemoveOperation'](_0x498409)){const _0x54182b=$l(_0x498409['newRange'],_0x2f3267['model']),_0x4fa68b='suggestion:deletion:'+_0xea66bb()+':$aiSuggestion';_0x2c7cb4['markers']['set'](_0x4fa68b,_0x54182b);}else switch(_0x498409['type']){case'rename':{if(_0x498409['oldName']==_0x498409['newName'])break;_0x5eb88e['batch']['addOperation'](_0x498409),_0x2f3267['model']['applyOperation'](_0x498409);const _0x539541='$elementName',_0x42a4b9=_0x498409['position'],_0x313366=_0x2f3267['model']['createRange'](_0x42a4b9,_0x2f3267['model']['createPositionAt'](_0x42a4b9['nodeAfter'],'end')),_0x7067b7='suggestion:attribute:'+_0x539541+':'+_0xea66bb()+':$aiSuggestion';_0x2c7cb4['markers']['set'](_0x7067b7,_0x313366);break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{if(_0x498409['oldValue']==_0x498409['newValue'])break;_0x5eb88e['batch']['addOperation'](_0x498409),_0x2f3267['model']['applyOperation'](_0x498409);const _0x127a22=_0x498409['key'];if(!_0x8fdac['isRegisteredAttribute'](_0x127a22))break;const _0x139c36=$l(_0x498409['range'],_0x2f3267['model']),_0x2c7738='suggestion:attribute:'+_0x127a22+':'+_0xea66bb()+':$aiSuggestion';_0x2c7cb4['markers']['set'](_0x2c7738,_0x139c36);break;}case'insert':{if(_0x5eb88e['batch']['addOperation'](_0x498409),_0x2f3267['model']['applyOperation'](_0x498409),tg(_0x2c7cb4,_0x498409),_0x5d5cb5[_0x33bfde+0x1]&&'move'==_0x5d5cb5[_0x33bfde+0x1]['type'])break;const _0x69fb11=_0x498409['position'],_0x44eb2d=_0x498409['howMany'],_0x17eee2=$l(_0x2f3267['model']['createRange'](_0x69fb11,_0x69fb11['getShiftedBy'](_0x44eb2d)),_0x2f3267['model']),_0x5a4b16='suggestion:insertion:'+_0xea66bb()+':$aiSuggestion';_0x2c7cb4['markers']['set'](_0x5a4b16,_0x17eee2);break;}case'split':{_0x5eb88e['batch']['addOperation'](_0x498409),_0x2f3267['model']['applyOperation'](_0x498409),tg(_0x2c7cb4,_0x498409);const _0x20e653=_0x498409['splitPosition'],_0xf98f63=_0x498409['moveTargetPosition'],_0x3207b3=_0x2f3267['model']['createRange'](_0x20e653,_0xf98f63),_0x535822='suggestion:insertion:'+_0xea66bb()+':$aiSuggestion';_0x2c7cb4['markers']['set'](_0x535822,_0x3207b3);break;}case'move':{_0x5eb88e['batch']['addOperation'](_0x498409),_0x2f3267['model']['applyOperation'](_0x498409),tg(_0x2c7cb4,_0x498409);const _0x15ceb5=_0x498409['getMovedRangeStart'](),_0x4591b3=_0x498409['howMany'];for(let _0x448a5d=0x0;_0x448a5d<_0x4591b3;_0x448a5d++){const _0xc365b2=_0x15ceb5['getShiftedBy'](_0x448a5d)['nodeAfter'];_0x554cfc['add'](_0xc365b2);}break;}case'remove':{const _0x51f87f=_0x498409['sourcePosition'],_0x1894f8=_0x498409['howMany'],_0x35ea13=new _0x44a63a(_0x51f87f,_0x1894f8);_0x5eb88e['batch']['addOperation'](_0x35ea13),_0x2f3267['model']['applyOperation'](_0x35ea13),tg(_0x2c7cb4,_0x498409);break;}}}}for(const _0x3028ab of _0x554cfc){const _0x2d883e=_0x2f3267['model']['createRangeOn'](_0x3028ab),_0x84c3c9='suggestion:formatBlock:$fakeWrap:'+_0xea66bb()+':$aiSuggestion';_0x2c7cb4['markers']['set'](_0x84c3c9,$l(_0x2d883e,_0x2f3267['model']));}});}(_0x6bc4e,_0x43967d,_0x3a77e7):_0x3a77e7['model']['change'](_0x523d06=>{for(const _0x3e6db8 of _0x6bc4e)if(!Vm(_0x3e6db8)){if('remove'==_0x3e6db8['type']){const _0x547137=_0x3e6db8['sourcePosition'],_0x19cf54=_0x3e6db8['howMany'],_0x4597e0=new _0x44a63a(_0x547137,_0x19cf54);_0x523d06['batch']['addOperation'](_0x4597e0),_0x3a77e7['model']['applyOperation'](_0x4597e0),tg(_0x43967d,_0x3e6db8);}else{if('marker'==_0x3e6db8['type']){const _0x152128=_0x3e6db8['name'],_0x420d6e=_0x3e6db8['newRange'];null!==_0x420d6e?_0x43967d['markers']['set'](_0x152128,_0x420d6e):_0x43967d['markers']['delete'](_0x152128);}else _0x3e6db8['baseVersion']=null,_0x3e6db8['isDocumentOperation']=!0x1,_0x523d06['batch']['addOperation'](_0x3e6db8),_0x3a77e7['model']['applyOperation'](_0x3e6db8),tg(_0x43967d,_0x3e6db8);}}}),_0x581a2c){const _0x4ec6b3=eg(_0x3a77e7,_0x6bc4e,_0x43967d);sg(_0x3a77e7['model'],_0x4ec6b3),function(_0x4834cb,_0x8b81bc){const _0x3a50c9=_0x8b81bc['getFirstRange']()['start'];let _0x3d8496=_0x8b81bc['getFirstRange']()['end'];const _0x54aaa7=_0x3a50c9['root'];(_0x3d8496['textNode']||_0x3d8496['nodeAfter']&&_0x3d8496['nodeAfter']['is']('$text'))&&(_0xe0e37a(_0x3d8496,'...'),og(_0x54aaa7,_0x3d8496,0x3),_0x3d8496=_0x3d8496['getShiftedBy'](0x3)),(_0x3a50c9['textNode']||_0x3a50c9['nodeBefore']&&_0x3a50c9['nodeBefore']['is']('$text'))&&(_0xe0e37a(_0x3a50c9,'...'),og(_0x54aaa7,_0x3a50c9,0x3),_0x3a50c9['parent']==_0x3d8496['parent']&&(_0x3d8496=_0x3d8496['getShiftedBy'](0x3)));const _0x9a6025=_0x4834cb['createRange'](_0x4834cb['createPositionAt'](_0x54aaa7,0x0),_0x3a50c9),_0x4949cd=_0x4834cb['createRange'](_0x3d8496,_0x4834cb['createPositionAt'](_0x54aaa7,'end')),_0x279834=[..._0x9a6025['getMinimalFlatRanges'](),..._0x4949cd['getMinimalFlatRanges']()];_0x279834['reverse']();for(const _0x4856c7 of _0x279834)_0x55cf62(_0x4856c7),rg(_0x54aaa7,_0x4856c7);}(_0x3a77e7['model'],_0x4ec6b3);}return{'content':qc(_0x3a77e7['data']['stringify'](_0x43967d,{'showSuggestionHighlights':!0x0})),'hasChanges':!0x0};}function tg(_0x12de7b,_0x3ff551){for(const [_0x2ef035,_0x45bb5b]of _0x12de7b['markers']){const _0x9cde15=_0x45ca57['_createFromRanges'](_0x45bb5b['getTransformedByOperation'](_0x3ff551));_0x9cde15['root']==_0x12de7b?_0x12de7b['markers']['set'](_0x2ef035,_0x9cde15):_0x12de7b['markers']['delete'](_0x2ef035);}}function eg(_0x4cf060,_0x93899b,_0x175793){const _0x43534f=_0x4cf060['plugins']['get']('DocumentCompare');let _0x37c444=_0x4cf060['model']['createPositionAt'](_0x175793,Number['POSITIVE_INFINITY']),_0x2a2e07=_0x4cf060['model']['createPositionAt'](_0x175793,0x0);for(const _0x4a65a6 of _0x93899b){let _0x32f678,_0x4a1947;if(_0x43534f['isMarkedRemoveOperation'](_0x4a65a6))_0x32f678=_0x4a65a6['newRange']['start'],_0x4a1947=_0x4a65a6['newRange']['end'];else switch(_0x37c444=ig(_0x37c444,_0x4a65a6),_0x2a2e07=ig(_0x2a2e07,_0x4a65a6),_0x4a65a6['type']){case'rename':_0x32f678=_0x4a65a6['position'],_0x4a1947=_0x32f678['getShiftedBy'](0x1);break;case'addAttribute':case'removeAttribute':case'changeAttribute':_0x32f678=_0x4a65a6['range']['start'],_0x4a1947=_0x4a65a6['range']['end'];break;case'insert':_0x32f678=_0x4a65a6['position'],_0x4a1947=_0x32f678['getShiftedBy'](_0x4a65a6['howMany']);break;case'split':_0x32f678=_0x4a65a6['splitPosition'],_0x4a1947=_0x4a65a6['moveTargetPosition'];break;case'merge':{const _0x15ced5=_0x4a65a6['targetPosition']['path']['slice'](0x0,-0x1);_0x32f678=_0x4cf060['model']['createPositionFromPath'](_0x175793,_0x15ced5),_0x4a1947=_0x32f678['getShiftedBy'](0x1);break;}case'move':case'remove':{const _0x4833a3=_0x4a65a6['howMany'],_0xaaa28f=_0x4a65a6['sourcePosition']['_getTransformedByInsertion'](_0x4a65a6['targetPosition'],_0x4833a3),_0x923fa1=_0x4a65a6['getMovedRangeStart']();'remove'==_0x4a65a6['type']?(_0x32f678=_0xaaa28f,_0x4a1947=_0xaaa28f):(_0x32f678=_0x923fa1,_0x4a1947=_0x923fa1['getShiftedBy'](_0x4833a3));break;}}_0x32f678&&_0x32f678['isBefore'](_0x37c444)&&(_0x37c444=_0x32f678['clone'](),_0x37c444['stickiness']='toNone'),_0x4a1947&&_0x4a1947['isAfter'](_0x2a2e07)&&(_0x2a2e07=_0x4a1947['clone'](),_0x2a2e07['stickiness']='toNone');}return _0x4cf060['model']['createSelection'](_0x4cf060['model']['createRange'](_0x37c444,_0x2a2e07));}function ig(_0x254f1a,_0x5617c1){return'move'!=_0x5617c1['type']&&'remove'!=_0x5617c1['type']||_0x5617c1['sourceRange']['containsPosition'](_0x254f1a)&&((_0x254f1a=_0x5617c1['sourcePosition']['clone']())['stickiness']='toNone'),_0x254f1a['getTransformedByOperation'](_0x5617c1);}function sg(_0x264ff5,_0x161396){ng(_0x264ff5,_0x161396,'forward');const _0x56d7f2=_0x161396['getFirstRange']();_0x161396['setTo']([]),_0x161396['setTo'](_0x56d7f2,{'backward':!0x0}),ng(_0x264ff5,_0x161396,'backward');}function ng(_0x49fe29,_0x5b674c,_0x506e1b){let _0x31a787=0x14;for(;_0x31a787;){_0x49fe29['modifySelection'](_0x5b674c,{'unit':'word','direction':_0x506e1b}),_0x31a787--;const _0x4faf76=_0x5b674c['focus']['forward'==_0x506e1b?'nodeBefore':'nodeAfter'];if(_0x4faf76&&_0x4faf76['is']('element')&&_0x49fe29['schema']['isBlock'](_0x4faf76)&&_0x49fe29['schema']['isObject'](_0x4faf76))break;}}function rg(_0x52bcd7,_0x4af1b9){for(const [_0x498827,_0x3e6913]of _0x52bcd7['markers']){const _0x30e131=_0x3e6913['_getTransformedByDeletion'](_0x4af1b9['start'],_0x4af1b9['end']['offset']-_0x4af1b9['start']['offset']);null!=_0x30e131?_0x52bcd7['markers']['set'](_0x498827,_0x30e131):_0x52bcd7['markers']['delete'](_0x498827);}}function og(_0x3bbc52,_0x5cc4ec,_0x21959b){for(let [_0x341245,_0x51f740]of _0x3bbc52['markers'])_0x51f740=_0x51f740['_getTransformedByInsertion'](_0x5cc4ec,_0x21959b,!0x1)[0x0],_0x3bbc52['markers']['set'](_0x341245,_0x51f740);}function ag(_0x2c56a5,_0x25459c){for(const _0x31056b of _0x2c56a5)'noop'!==_0x31056b['type']&&(_0x31056b['_aiSource']=_0x25459c);}var cg=class extends _0x4dd342{static get['pluginName'](){return'AIGateway';}static get requires(){return[Op,fa];}get['models'](){return this['context']['plugins']['get'](fa)['models'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['apply'](_0x45e58f,_0x50ef0a){const {applyMethod:_0x4d11ea,roots:_0x2d0f9f}=_0x50ef0a,_0x4e00aa='suggest'===_0x4d11ea;if(_0x45e58f['error']||!_0x45e58f['results']['length'])throw new _0x4242d4('ai-gateway-apply-invalid-status',this,{'status':_0x45e58f['status']});if(_0x2d0f9f){if(0x0===_0x2d0f9f['length'])throw new _0x4242d4('ai-gateway-apply-empty-roots',this);for(const {channelId:_0x374c65,rootName:_0x200796}of _0x2d0f9f)if(!_0x45e58f['results']['some'](_0x208124=>_0x208124['channelId']===_0x374c65&&_0x208124['rootName']===_0x200796))throw new _0x4242d4('ai-gateway-apply-root-not-found',this,{'channelId':_0x374c65,'rootName':_0x200796});}const _0x3e2729=_0x45e58f['results']['reduce']((_0x2152ef,_0x5e35a1)=>{if(_0x2d0f9f&&!_0x2d0f9f['some'](_0x3af19c=>_0x3af19c['channelId']===_0x5e35a1['channelId']&&_0x3af19c['rootName']===_0x5e35a1['rootName']))return _0x2152ef;if('completed'!==_0x5e35a1['status'])throw new _0x4242d4('ai-gateway-apply-invalid-status',this,{'status':_0x5e35a1['status'],'channelId':_0x5e35a1['channelId'],'rootName':_0x5e35a1['rootName']});if(_0x4e00aa&&!_0x5e35a1['editor']['plugins']['has']('TrackChanges'))throw new _0x4242d4('ai-no-track-changes',this,{'channelId':_0x5e35a1['channelId'],'rootName':_0x5e35a1['rootName']});let _0x1458d8=_0x2152ef['get'](_0x5e35a1['editor']);return _0x1458d8||(_0x1458d8=[],_0x2152ef['set'](_0x5e35a1['editor'],_0x1458d8)),_0x1458d8['push'](_0x5e35a1),_0x2152ef;},new Map()),_0x3a693b=this['context']['plugins']['get'](Op);for(const [_0xfcc1da,_0x885c00]of _0x3e2729){const _0x3cb07c=_0x885c00['map'](_0x107633=>{const _0x3b6e09=_0xfcc1da['model']['createPositionAt'](_0xfcc1da['model']['document']['getRoot'](_0x107633['rootName']),0x0),_0x2db78e=gl(_0xfcc1da,_0x107633['rootName'],_0x107633['contentRawOld'],_0x107633['contentRawNew']);if(!_0x2db78e)return _0x107633['droppedUnsupportedInlineChange']=!0x0,null;const _0x2039c4=_0x3a693b['getDiff'](_0x2db78e['before'],_0x2db78e['after'],{'anchor':_0x3b6e09,'markDeletions':_0x4e00aa,'targetEditor':_0xfcc1da}),_0x116edb=_0xfcc1da['model']['document']['history']['getOperations'](_0x107633['documentVersion']),_0x2dd5b4={'document':_0xfcc1da['model']['document'],'useRelations':!0x1,'padWithNoOps':!0x1},_0x36c5a8=_0x4e362f(_0x2039c4['getOperations'](),_0x116edb,_0x2dd5b4)['operationsA'];return ag(_0x36c5a8,_0x50ef0a['aiSource']??'api'),_0x36c5a8;});_0xfcc1da['model']['change'](_0x198816=>{for(const _0x3ac355 of _0x3cb07c)_0x3ac355&&(_0x4e00aa?_0xfcc1da['plugins']['get']('TrackChangesEditing')['_applyOperationsAsSuggestions'](_0x3ac355):_0x3a693b['applyOperations'](_0x198816,_0x3ac355));});}}mergeChangesIntoContent(_0x57ea8d,_0x2941e9,_0x140d24){const _0x3ae147=new zp(),_0x16e8e6=new _p();let _0x469c6d=_0x3ae147['parseAndNormalizeHTML'](_0x2941e9);for(const _0x4d8995 of _0x57ea8d)try{const _0x2441e4=_0x3ae147['parseAndNormalizeHTML'](_0x4d8995['content']);_0x469c6d=_0x16e8e6['merge'](_0x2441e4,_0x469c6d,{'cutAfterUnstable':!0x1,'replaceRemovedWith':void 0x0})['parsedContent'];}catch(_0x3d3d7f){throw new _0x4242d4('ai-gateway-merge-failed',this,{..._0x4d8995},_0x3d3d7f);}return Jp(_0x140d24,_0x3ae147['parseAndNormalizeHTML'](_0x2941e9),_0x469c6d,!0x1,!0x1)['content'];}};const lg=/* #__PURE__ -- @preserve */
_0x3e0c97(),hg=['capabilitiesUpdated'];var ug=class extends lg{['_isWebSearchEnabled'];['_isReasoningEnabled'];constructor(){super(),this['_isWebSearchEnabled']=!0x1,this['_isReasoningEnabled']=!0x1;}init(){this['reset']();}reset(){this['setWebSearch'](!0x1),this['setReasoning'](!0x1);}getCapabilitiesConfig(){return{'isWebSearchEnabled':this['_isWebSearchEnabled'],'isReasoningEnabled':this['_isReasoningEnabled']};}static getCapabilitiesRequestData(_0xa75c10){const _0x35ffeb={};if(!_0xa75c10)return _0x35ffeb;('isWebSearchEnabled'in _0xa75c10?_0xa75c10['isWebSearchEnabled']:_0xa75c10['webSearch'])&&(_0x35ffeb['webSearch']={});const _0x350ae6='isReasoningEnabled'in _0xa75c10?_0xa75c10['isReasoningEnabled']:_0xa75c10['reasoning'];return _0x350ae6&&(_0x35ffeb['reasoning']='string'==typeof _0x350ae6?{'level':_0x350ae6}:{}),_0x35ffeb;}toggleWebSearch(){this['setWebSearch'](!this['_isWebSearchEnabled']);}toggleReasoning(){this['setReasoning'](!this['_isReasoningEnabled']);}setWebSearch(_0x1a3e94){_0x1a3e94!==this['_isWebSearchEnabled']&&(this['_isWebSearchEnabled']=_0x1a3e94,this['fire']('capabilitiesUpdated',this['getCapabilitiesConfig']()));}setReasoning(_0x4dc460){_0x4dc460!==this['_isReasoningEnabled']&&(this['_isReasoningEnabled']=_0x4dc460,this['fire']('capabilitiesUpdated',this['getCapabilitiesConfig']()));}};function dg(_0x561397,_0x28a7fc,_0x2805d0,_0x4cc954){if(_0x561397 instanceof _0x4242d4)return _0x561397;const _0x40221f=_0x561397?.['data'];return new _0x4242d4(_0x28a7fc,_0x2805d0,void 0x0!==_0x40221f?{..._0x4cc954,'backendData':_0x40221f}:_0x4cc954,_0x561397);}var fg=class{_editor;_rootName;['_channelId'];['_sessionId'];_documentVersion;_contentRawOld;_contentRawNew;['_error'];_isAborted=!0x1;_droppedUnsupportedInlineChange=!0x1;constructor(_0x2c449b){this['_editor']=_0x2c449b['editor'],this['_rootName']=_0x2c449b['rootName'],this['_channelId']=_0x2c449b['channelId'],this['_sessionId']=_0x2c449b['sessionId'];}get status(){return this['_error']?'error':this['_isAborted']?'aborted':void 0x0!==this['_contentRawNew']?'completed':'initialized';}get editor(){return this['_editor'];}get rootName(){return this['_rootName'];}get['channelId'](){return this['_channelId'];}get['sessionId'](){return this['_sessionId'];}get documentVersion(){return this['_documentVersion'];}set documentVersion(_0x152d08){this['_documentVersion']=_0x152d08;}get contentRawOld(){return this['_contentRawOld'];}set contentRawOld(_0x54b601){this['_contentRawOld']=_0x54b601;}get contentRawNew(){return this['_contentRawNew'];}set contentRawNew(_0x3cd142){this['_contentRawNew']=_0x3cd142;}get contentOld(){return this['_dropDataIds'](this['_contentRawOld']||'');}get contentNew(){return this['_dropDataIds'](this['_contentRawNew']||'');}get['error'](){return this['_error'];}set['error'](_0x2b6d66){this['_error']=_0x2b6d66;}get droppedUnsupportedInlineChange(){return this['_droppedUnsupportedInlineChange'];}set droppedUnsupportedInlineChange(_0x3bc422){this['_droppedUnsupportedInlineChange']=_0x3bc422;}abort(){this['_isAborted']=!0x0;}_dropDataIds(_0x31afaf){return _0x31afaf['replace'](/ data-id="[a-z0-9]+"/g,'');}},mg=class extends fg{['_summary']='';get['summary'](){return this['_summary'];}set['summary'](_0x35e92d){this['_summary']=_0x35e92d;}},pg=class{_results;constructor(_0x32ba24=[]){this['_results']=_0x32ba24;}_status='initialized';['_error'];abort(){'error'!==this['_status']&&(this['_status']='aborted');}get status(){return this['_status'];}set status(_0x5d73df){this['_status']=_0x5d73df;}get['error'](){return this['_error'];}set['error'](_0x3df8aa){this['_status']='error',this['_error']=_0x3df8aa;}get results(){return this['_results'];}addResult(..._0x232ba3){this['_results']['push'](..._0x232ba3);}},gg=class extends _0x4dd342{static get['pluginName'](){return'AIDocumentProcessingGateway';}static get requires(){return[oa,_l,cg,fa];}get['models'](){return this['context']['plugins']['get'](fa)['models'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async processDocument(_0x311a72,_0x266860){if(!_0x311a72)throw new _0x4242d4('ai-documentprocessinggateway-missing-prompt',this);const _0x1a60bb=await this['context']['plugins']['get'](_l)['getDocumentData'](),_0x3e5fbd=_0x266860['roots'];if(0x0===(_0x3e5fbd??_0x1a60bb)['length'])throw new _0x4242d4('ai-documentprocessinggateway-empty-roots',this);if(_0x3e5fbd){for(const _0x207737 of _0x3e5fbd)if(!_0x1a60bb['some'](_0x3e57cd=>_0x3e57cd['rootName']===_0x207737['rootName']&&_0x3e57cd['channelId']===_0x207737['channelId']))throw new _0x4242d4('ai-documentprocessinggateway-root-not-found',this,{'channelId':_0x207737['channelId'],'rootName':_0x207737['rootName']});}const _0x30c98e=_0x3e5fbd?_0x1a60bb['filter'](_0x5b6c71=>_0x3e5fbd['some'](_0x224fb2=>_0x224fb2['rootName']===_0x5b6c71['rootName']&&_0x224fb2['channelId']===_0x5b6c71['channelId'])):_0x1a60bb,_0x21adce=[],_0x16e9f7=[];for(const _0x992539 of _0x30c98e){const _0x307c19={'editor':_0x992539['editor'],'rootName':_0x992539['rootName'],'sessionId':_0x992539['sessionId'],'channelId':_0x992539['channelId'],'contentRawOld':_0x992539['content'],'documentVersion':_0x992539['version']};_0x21adce['push'](_0x307c19),_0x16e9f7['push']({'type':'document','content':_0x307c19['contentRawOld']});}const _0x47dbd4=this['context']['plugins']['get']('AIConnector')['processDocument']({'content':_0x16e9f7,'prompt':_0x311a72,'model':_0x266860['model'],'capabilities':ug['getCapabilitiesRequestData'](_0x266860['capabilities']),'contexts':_0x266860['contexts']});let _0x4fd91e;if(_0x266860?.['signal']){_0x266860['signal']['aborted']&&_0x47dbd4['abortController']['abort']();const _0x196b1f=_0x266860['signal'],_0x75e531=()=>_0x47dbd4['abortController']['abort']();_0x196b1f['addEventListener']('abort',_0x75e531),_0x4fd91e=()=>_0x196b1f['removeEventListener']('abort',_0x75e531);}const _0x161d24=new pg();let _0x48b27f=[];try{if(_0x48b27f=(await _0x47dbd4['getResult']())['documents'],!(_0x48b27f&&_0x48b27f['length']>0x0))throw new _0x4242d4('ai-documentprocessinggateway-empty-reply',this);if(_0x48b27f['length']!==_0x16e9f7['length'])throw new _0x4242d4('ai-documentprocessinggateway-reply-count-mismatch',this,{'expected':_0x16e9f7['length'],'received':_0x48b27f['length']});const _0x2c80e=_0x48b27f['findIndex'](({document:_0x106f64})=>!_0x106f64['length']);if(-0x1!==_0x2c80e){const _0x4fccdf=_0x21adce[_0x2c80e];throw new _0x4242d4('ai-documentprocessinggateway-empty-root-content',this,{'channelId':_0x4fccdf['channelId'],'rootName':_0x4fccdf['rootName']});}_0x161d24['status']='completed';}catch(_0x1d1873){_0x1d1873 instanceof Error&&_0x1d1873['message']['includes']('ai-request-aborted')?_0x161d24['abort']():_0x161d24['error']=dg(_0x1d1873,'ai-documentprocessinggateway-run-failed',this);}finally{_0x4fd91e&&_0x4fd91e();}if('completed'===_0x161d24['status'])for(const [_0x1cfc8f,_0x38c93b]of _0x21adce['entries']()){const {channelId:_0x2bc00c,contentRawOld:_0xb148ac,documentVersion:_0x2bb5de,editor:_0x57e036,rootName:_0x502bb1,sessionId:_0x119ae6}=_0x38c93b,_0x39597c=new mg({'channelId':_0x2bc00c,'editor':_0x57e036,'rootName':_0x502bb1,'sessionId':_0x119ae6});_0x39597c['contentRawOld']=_0xb148ac,_0x39597c['documentVersion']=_0x2bb5de,_0x39597c['contentRawNew']=_0x48b27f[_0x1cfc8f]['document'],_0x39597c['summary']=_0x48b27f[_0x1cfc8f]['summary'],_0x161d24['addResult'](_0x39597c);}return _0x161d24;}applyResult(_0x571355,_0x45b447){this['context']['plugins']['get']('AIGateway')['apply'](_0x571355,_0x45b447);}};function Og(_0x13b022){return _0x13b022 instanceof Error&&('AbortError'===_0x13b022['name']||('AICoreError'===_0x13b022['name']?!0x0===_0x13b022['isAbort']:_0x13b022['message']['startsWith']('ai-request-aborted')));}var wg=class extends Error{['code'];severity;type;context;isAbort;constructor(_0x4de701){super(_0x4de701['code'],_0x4de701['cause']instanceof Error?{'cause':_0x4de701['cause']}:void 0x0),this['name']='AICoreError',this['code']=_0x4de701['code'],this['severity']=_0x4de701['severity']??'error',this['type']=_0x4de701['type']??'system',this['context']=_0x4de701['context'],this['isAbort']=_0x4de701['isAbort']??Og(_0x4de701['cause']);}},bg=class extends _0x4dd342{static get['pluginName'](){return'AIErrorSink';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}createReporter(_0x6afad1){return new yg(this,_0x6afad1);}},yg=class{['_sink'];_component;constructor(_0x10f8de,_0x36bfb5){this['_sink']=_0x10f8de,this['_component']=_0x36bfb5;}['logError'](_0x3962d0,_0x31cbc4={}){this['_emit'](_0x3962d0,_0x31cbc4),this['_defaultLog'](_0x3962d0);}reportError(_0x5bc651,_0x41f1ad={}){this['_emit'](_0x5bc651,_0x41f1ad);}_emit(_0x5a636d,_0x3d5af6){Og(_0x5a636d)||this['_sink']['fire']('error',{'error':_0x5a636d,'component':this['_component'],'context':_0x3d5af6['context']});}_defaultLog(_0x18f3f1){if(!Og(_0x18f3f1)){if(_0x18f3f1 instanceof wg){if('user'===_0x18f3f1['type']||'network'===_0x18f3f1['type'])return;if('warning'===_0x18f3f1['severity'])return void console['warn'](this['_component'],_0x18f3f1);}console['error'](this['_component'],_0x18f3f1);}}};const vg='ck-ai-button-primary',_g='ck-ai-button-secondary',Eg='ck-ai-button-tertiary';function Tg(_0x2800c4,_0x4928ec){const _0x846c9=new _0x39ae99(_0x2800c4),_0x5298d9=ca(_0x2800c4,'AI_TABS_LABEL_MINIMIZE'),_0xa0b948=ca(_0x2800c4,'AI_TABS_LABEL_MAXIMIZE');return _0x846c9['set']({'withText':!0x1,'icon':Rt,'tooltip':!0x0,'class':'ck-ai-tabs__resize\x20'+Eg}),_0x846c9['bind']('label')['to'](_0x4928ec,'isMaximized',_0x41e781=>_0x41e781?_0x5298d9:_0xa0b948),_0x846c9['bind']('icon')['to'](_0x4928ec,'isMaximized',_0x5f3cfa=>_0x5f3cfa?Pt:Rt),_0x846c9['bind']('isOn')['to'](_0x4928ec,'isMaximized'),_0x846c9['on']('execute',()=>{_0x4928ec['fire']('resizeTabs');}),_0x846c9;}function Ag(_0x5404a4){const _0x1c7bd7=new _0x49bad4(_0x5404a4);return _0x1c7bd7['attachToDom'](),_0x1c7bd7['bodyCollectionContainer']['classList']['add']('ck-ai-body'),_0x1c7bd7;}const Sg=/* #__PURE__ -- @preserve */
_0x356c1e();var Ig=class extends Sg{['id'];interactionId;type;content=new Map();['sources']=[];parsedContent=new Map();parsedMergedContent=new Map();['changeGroups']=[];areActionsDisabled=!0x1;_outdatedReasonByDocumentId;isFromHistory=!0x1;documentContextContent;_documentIdToSource=new Map();['aiResponseParser'];['aiResponseApplier'];['locale'];cachedSuggestionContentParts={'withDiff':[],'withoutDiff':[]};constructor({type:_0x9eee72,isDone:_0x656d77=!0x1,isComplete:_0x208a6b,interactionId:_0x47753c,areActionsDisabled:_0x5d440d,outdatedReasonByDocumentId:_0x58a1e5,isFromHistory:_0x232b0b=!0x1,documentContextContent:_0x33894c,locale:_0x8eeb96,id:_0x52e2d2,channelsToEditors:_0x25255d}){super(),this['id']=_0x52e2d2||_0xea66bb(),this['interactionId']=_0x47753c,this['type']=_0x9eee72,this['areActionsDisabled']=!!_0x5d440d,this['_outdatedReasonByDocumentId']=_0x58a1e5,this['isFromHistory']=_0x232b0b,this['locale']=_0x8eeb96,this['aiResponseParser']=new zp(),this['aiResponseApplier']=new _p(),this['documentContextContent']=new Map(_0x33894c?.['map'](_0xa9652f=>[_0xa9652f['id'],qc(_0xa9652f['content'])])||[]),this['_documentIdToSource']=new Map(_0x33894c?.['map'](_0x1acbac=>[_0x1acbac['id'],{'editor':_0x25255d['get'](_0x1acbac['channelId']),'rootName':_0x1acbac['rootName']}])||[]),this['set']('isDone',_0x656d77),this['set']('isComplete',_0x208a6b??_0x656d77),'text'===this['type']&&this['content']['set']('text','');}appendContent(_0x197481,_0x4406a2){const _0x58064e='text'===this['type']?'text':_0x4406a2;this['content']['has'](_0x58064e)||this['content']['set'](_0x58064e,''),this['content']['set'](_0x58064e,this['content']['get'](_0x58064e)+_0x197481),this['onContentChange'](_0x58064e);}['done'](_0x58201f=!0x0){this['isComplete']=_0x58201f,this['isDone']||(this['set']('isDone',!0x0),this['onContentChange']());}destroy(){this['stopListening']();}setChangeGroupState(_0x1acd2e,_0x16c1db,_0x30ccc5){this['changeGroups'][_0x1acd2e]['state']=_0x16c1db,this['changeGroups'][_0x1acd2e]['outdatedReason']=_0x30ccc5,this['fire']('replyChangeGroupStateUpdated',{'reply':this,'index':_0x1acd2e,'state':_0x16c1db,'outdatedReason':_0x30ccc5});}getContentParts({showDiff:_0x204df6,groupIndex:_0xaaac9}){const _0x935050=this['_getCachedContentParts'](_0x204df6,_0xaaac9);if(_0x935050)return _0x935050;let _0x1899f9;if(void 0x0===_0xaaac9)_0x1899f9=this['changeGroups'];else{const _0x188798=this['changeGroups']['find'](({index:_0x4acbec})=>_0x4acbec===_0xaaac9);if(!_0x188798)throw new _0x4242d4('ai-reply-get-content-parts-group-not-found',null,{'aiReply':this,'groupIndex':_0xaaac9});_0x1899f9=[_0x188798];}const _0x28c9e7=Kp({'showDiff':_0x204df6,'changeGroups':_0x1899f9,'documentContextContent':this['documentContextContent']});return this['_setCachedContentParts'](_0x204df6,_0x28c9e7),_0x28c9e7;}_getCachedContentParts(_0x3ac9c8,_0x120fde){const _0x5712b6=_0x3ac9c8?'withDiff':'withoutDiff';if(!this['cachedSuggestionContentParts'][_0x5712b6]['length'])return null;const _0xa7e635=this['cachedSuggestionContentParts'][_0x5712b6];if(void 0x0===_0x120fde)return _0xa7e635['length']>0x0&&_0xa7e635['length']!==this['changeGroups']['length']?(this['_setCachedContentParts'](_0x3ac9c8,null),null):so(_0xa7e635);{const _0x5c558e=_0xa7e635['find'](({index:_0x372e8c})=>_0x372e8c===_0x120fde);if(_0x5c558e)return[so(_0x5c558e)];}return null;}_setCachedContentParts(_0x55e6db,_0x21220f){const _0x18d703=_0x55e6db?'withDiff':'withoutDiff';_0x21220f?_0x21220f['forEach'](_0x58cba9=>{const _0xece812=this['cachedSuggestionContentParts'][_0x18d703],_0x18a6c0=_0xece812['find'](({index:_0x5225af})=>_0x5225af===_0x58cba9['index']);if(_0x18a6c0){const _0x181750=_0xece812['indexOf'](_0x18a6c0);_0xece812['splice'](_0x181750,0x1,_0x58cba9);}else _0xece812['push'](_0x58cba9);}):this['cachedSuggestionContentParts'][_0x18d703]['length']=0x0;}onContentChange(_0x32f64d){if('modification'===this['type']){if(_0x32f64d)this['parsedContent']['set'](_0x32f64d,this['aiResponseParser']['parseAndNormalizeHTML'](this['content']['get'](_0x32f64d)));else{for(const [_0x47cc6a,_0x40e6ee]of this['content'])this['parsedContent']['set'](_0x47cc6a,this['aiResponseParser']['parseAndNormalizeHTML'](_0x40e6ee));}const _0x31c168=this['changeGroups'];for(const _0x3e0f27 of this['content']['keys']())this['updateChangeGroups'](_0x3e0f27);const _0x3ead30=this['_getDifferentChangeGroups'](_0x31c168,this['changeGroups']);(_0x3ead30['length']||this['isDone'])&&(this['fire']('replyContentUpdated',this,_0x3ead30),this['cachedSuggestionContentParts']['withDiff']['length']=this['cachedSuggestionContentParts']['withoutDiff']['length']=0x0);}else this['parsedContent']['set']('text',this['aiResponseParser']['convertMarkdownToHTML'](this['content']['get']('text'))),this['fire']('replyContentUpdated',this);}_getDifferentChangeGroups(_0x5135c1,_0x10cb33){const _0x1e4c28=[];for(const _0x1e62ed of _0x10cb33){const _0x26ec16=_0x5135c1[_0x1e62ed['index']];_0x26ec16?_0x26ec16['changes']['length']!==_0x1e62ed['changes']['length']?_0x1e4c28['push'](_0x1e62ed):_0x26ec16['changes']['forEach']((_0x8d57c1,_0x3049f1)=>{const _0x52f0b9=_0x1e62ed['changes'][_0x3049f1];_0x8d57c1['id']!==_0x52f0b9['id']&&_0x1e4c28['push'](_0x1e62ed);}):_0x1e4c28['push'](_0x1e62ed);}return _0x1e4c28;}updateChangeGroups(_0x2b32e5){const _0x3cb19d=this['documentContextContent']['get'](_0x2b32e5),_0x4d7d67=this['parsedContent']['get'](_0x2b32e5);if(!_0x3cb19d||!_0x4d7d67)return;const _0x2c1531=new dc('p',{},[new dc('span',{'style':'color:\x20#808080;\x20font-style:\x20italic'},[new oc(ca(this['locale'],'AI_SUGGESTION_CONTENT_PART_REMOVED'))])]),_0x155740=this['aiResponseApplier']['merge'](_0x4d7d67,_0x3cb19d['cloneNode'](!0x0),{'cutAfterUnstable':!this['isDone']||!this['isComplete'],'replaceRemovedWith':_0x2c1531});this['parsedMergedContent']['set'](_0x2b32e5,_0x155740['parsedContent']);let _0xfc81ff=[];if(Xc(_0x349953=>{const _0x28747c=il(_0x349953,'data-id');if(!_0x28747c||!_0x440fac(_0x28747c))return!0x1;const _0x5ddd1e=[_0x349953,...rl(_0x349953)]['at'](-0x2);if(_0x349953!=_0x5ddd1e){const _0x338f6c=il(_0x5ddd1e,'data-id');_0x440fac(_0x338f6c)||(_0xfc81ff['push']({'node':_0x5ddd1e,'id':_0x338f6c,'type':'modified'}),_0x155740['modifiedNodeIds']['push'](_0x338f6c));}else _0x155740['modifiedNodeIds']['includes'](_0x28747c)?_0xfc81ff['push']({'node':_0x349953,'type':'modified','id':_0x28747c}):_0x155740['newNodeIds']['includes'](_0x28747c)?_0xfc81ff['push']({'node':_0x349953,'type':'new','id':_0x28747c,'anchorId':il(_0x349953['previousSibling'],'data-id')}):_0xfc81ff['push']({'node':_0x349953,'type':'removed','id':_0x28747c});return!0x0;},this['parsedMergedContent']['get'](_0x2b32e5)),_0xfc81ff=_0xfc81ff['filter'](({node:_0x389a1f})=>[...rl(_0x389a1f),_0x389a1f]['every'](_0x3b306d=>!il(_0x3b306d,'data-unstable'))),this['changeGroups']=this['changeGroups']['filter'](_0x52cee4=>_0x52cee4['documentId']!==_0x2b32e5),0x0==_0xfc81ff['length'])return;const _0x13d45b=[[_0xfc81ff[0x0]]];for(let _0x175889=0x1;_0x175889<_0xfc81ff['length'];_0x175889++){const _0x30c902=_0x13d45b[_0x13d45b['length']-0x1],_0x5f0319=_0x30c902[_0x30c902['length']-0x1];_0xfc81ff[_0x175889]['node']['previousSibling']==_0x5f0319['node']&&'modified'!=_0xfc81ff[_0x175889]['type']&&'modified'!=_0x5f0319['type']?_0x30c902['push'](_0xfc81ff[_0x175889]):_0x13d45b['push']([_0xfc81ff[_0x175889]]);}for(const _0x3b37df of _0x13d45b){const _0x487e7f=_0x3b37df[0x0],_0x2e4338=_0x3b37df[_0x3b37df['length']-0x1],_0x50749a=_0xbc58bd(_0x487e7f['node']['previousSibling']);_0x50749a&&_0x3b37df['unshift'](_0x50749a);const _0x5b6577=_0xbc58bd(_0x2e4338['node']['nextSibling']);_0x5b6577&&_0x3b37df['push'](_0x5b6577);}Yc('data-wrapped-id',null,this['parsedMergedContent']['get'](_0x2b32e5))['forEach'](_0x44e589=>{sl(_0x44e589,'data-wrapped-id',null);});const _0xe6ca0d=new Map();Yc('data-unwrapped-id',null,this['parsedMergedContent']['get'](_0x2b32e5))['forEach'](_0x1b5980=>{const _0x338e0c=il(_0x1b5980,'data-unwrapped-id'),_0x1ca4ad=il(_0x1b5980,'data-id');_0xe6ca0d['set'](_0x1ca4ad,_0x338e0c),sl(_0x1b5980,'data-id',_0x338e0c),sl(_0x1b5980,'data-unwrapped-id',null);});for(const _0xa06cf8 of _0xfc81ff){const _0x1ee9fd=_0xe6ca0d['get'](_0xa06cf8['id']);_0x1ee9fd&&(_0xa06cf8['id']=_0x1ee9fd);}this['changeGroups']['push'](..._0x13d45b['map']((_0x2a16d4,_0x291fb8)=>{const _0x64aaa9=this['_documentIdToSource']['get'](_0x2b32e5),_0x4be4fa=this['_outdatedReasonByDocumentId']?.['get'](_0x2b32e5),_0x259035=this['areActionsDisabled']||void 0x0!==_0x4be4fa;return{'changes':_0x2a16d4,'state':_0x259035?'outdated':'pending','outdatedReason':_0x259035?_0x4be4fa:void 0x0,'index':_0x291fb8,'editor':_0x64aaa9['editor'],'rootName':_0x64aaa9['rootName'],'documentId':_0x2b32e5};}));const _0xb151ca=Array['from'](this['documentContextContent']['keys']());function _0x440fac(_0x54dfb3){return _0x155740['modifiedNodeIds']['includes'](_0x54dfb3)||_0x155740['newNodeIds']['includes'](_0x54dfb3)||_0x155740['removedNodeIds']['includes'](_0x54dfb3);}function _0xbc58bd(_0x5114f5){if(_0x5114f5&&il(_0x5114f5,'data-id')&&!il(_0x5114f5,'data-unstable')){const _0x4743bc=il(_0x5114f5,'data-id');if(!_0x440fac(_0x4743bc))return{'node':_0x5114f5,'type':'context','id':_0x4743bc};}return null;}this['changeGroups']['sort']((_0x32c6bf,_0x32caaa)=>_0xb151ca['indexOf'](_0x32c6bf['documentId'])-_0xb151ca['indexOf'](_0x32caaa['documentId'])),this['changeGroups']['forEach']((_0x704882,_0x3fe4e6)=>{_0x704882['index']=_0x3fe4e6;});}};const kg=/* #__PURE__ -- @preserve */
_0x3e0c97(),xg=['interactionCreated','interactionStarted','interactionStopped','interactionFinished','interactionDestroyed','replyCreated','replyContentUpdated','replyChangeGroupStateUpdated','setConversationTitle','webSearchStarted','webSearchFinished','reasoningStarted','reasoningFinished','toolDataReceived','error'];var Cg=class extends kg{['id'];['replies']=[];currentReply;['messageId'];actionCallId;currentRequest;connector;isStopped=!0x1;isDestroyed=!0x1;['locale'];['_isReasoning']=!0x1;['_isWebSearching']=!0x1;_channelsToEditors;constructor({connector:_0x4d8651,locale:_0x33854f,channelsToEditors:_0xd076d7}){super(),this['id']=_0xea66bb(),this['connector']=_0x4d8651,this['isStopped']=!0x0,this['locale']=_0x33854f,this['_channelsToEditors']=_0xd076d7||new Map();}async start(){await this['_run']();}async['resume'](_0x3553ec){await this['_run'](_0x3553ec);}async['_run'](_0x53b3be){const _0x2a9416=[];let _0x2cadc6,_0x2e7285,_0x12aa25,_0x231cb7=!0x1;this['isStopped']=!0x1;try{this['currentRequest']=_0x53b3be||this['sendRequest'](),this['fire']('interactionStarted',this);const _0x13d23f=await this['currentRequest']['getStream']();for await(const _0x454782 of _0x13d23f){if(this['isStopped'])return;if('error'==_0x454782['event'])return void this['fire']('error',{'error':new _0x4242d4('ai-chat-interaction-error',this)});switch(_0x454782['event']){case'message-metadata':this['messageId']=_0x454782['data']['messageId'];break;case'action-metadata':this['actionCallId']=_0x454782['data']['callId'];break;case'conversation-title':this['setConversationTitle'](_0x454782['data']['conversationTitle'],!0x0);break;case'source':_0x2a9416['push'](_0x454782['data']['source']);break;case'web-search':this['_isWebSearching']||(this['_isWebSearching']=!0x0,this['fire']('webSearchStarted',this));break;case'reasoning':this['_isReasoning']||(this['_isReasoning']=!0x0,this['fire']('reasoningStarted',this));break;case'modification-delta':case'text-delta':this['resetReasoningState'](),this['resetWebSearchState'](),_0x2cadc6='modification-delta'==_0x454782['event']?'modification':'text',_0x2e7285='modification-delta'==_0x454782['event']?_0x454782['data']['id']:void 0x0,this['currentReply']&&this['currentReply']['type']!=_0x2cadc6&&(this['currentReply']['done'](),this['currentReply']=void 0x0),this['currentReply']||(this['currentReply']=this['createReply']({'type':_0x2cadc6,'interactionId':this['id'],'id':_0x2e7285,'channelsToEditors':this['_channelsToEditors'],...'modification-delta'==_0x454782['event']&&{'documentId':_0x454782['data']['documentId']}}),'modification'==_0x2cadc6&&(this['currentReply']['sources']=_0x2a9416['splice'](0x0))),this['currentReply']['appendContent'](_0x454782['data']['textDelta'],_0x454782['data']['documentId']);break;case'mcp-tool-result':_0x12aa25=JSON['parse'](_0x454782['data']['result']),this['_handleToolResultData']({'toolName':_0x454782['data']['toolName'],'data':_0x12aa25['data'],'attributes':_0x12aa25['attributes']});break;case'mcp-tool-notification':this['_handleToolNotificationData']({'toolName':_0x454782['data']['toolName'],'data':_0x454782['data']['data']});}}_0x231cb7=!0x0;}finally{this['isStopped']||(this['currentReply']&&_0x2a9416['length']>0x0&&(this['currentReply']['sources']=_0x2a9416['splice'](0x0)),this['_finalizeInteraction'](_0x231cb7),this['fire']('interactionFinished',this));}}stop(){this['isStopped']||(this['_finalizeInteraction'](),this['fire']('interactionStopped',this));}getReply(_0x4b46f6){return this['replies']['find'](_0x505cff=>_0x505cff['id']===_0x4b46f6);}destroy(){this['isDestroyed']||(this['stop'](),this['replies']['forEach'](_0x345dad=>_0x345dad['destroy']()),this['replies']=[],this['isDestroyed']=!0x0,this['fire']('interactionDestroyed',this),this['stopListening']());}createReply(_0x562f8b){const _0x3cafac=this['getDocumentContext'](),_0x45468a=new Ig({'locale':this['locale'],'documentContextContent':_0x3cafac?.['documents'],..._0x562f8b});return this['replies']['push'](_0x45468a),_0x45468a['delegate'](...xg)['to'](this),this['fire']('replyCreated',_0x45468a),_0x45468a;}setConversationTitle(_0x24a6b7,_0xd2e37a=!0x1){this['fire']('setConversationTitle',_0x24a6b7,_0xd2e37a);}resetWebSearchState(){this['_isWebSearching']&&(this['_isWebSearching']=!0x1,this['fire']('webSearchFinished',this));}resetReasoningState(){this['_isReasoning']&&(this['_isReasoning']=!0x1,this['fire']('reasoningFinished',this));}_handleToolResultData(_0x45f1b5){this['fire']('toolDataReceived',{'type':'result','toolName':_0x45f1b5['toolName'],'data':structuredClone(_0x45f1b5['data']||{}),'attributes':structuredClone(_0x45f1b5['attributes']||{})},this);}_handleToolNotificationData(_0x537692){this['fire']('toolDataReceived',{'type':'notification','toolName':_0x537692['toolName'],'data':structuredClone(_0x537692['data'])},this);}_finalizeInteraction(_0x34e0b0=!0x1){this['isStopped']=!0x0,this['currentRequest']&&this['currentRequest']['abortController']['abort'](),this['currentReply']&&this['currentReply']['done'](_0x34e0b0),this['currentRequest']=this['currentReply']=void 0x0;}};const Rg='defaultContextIds',Pg=/* #__PURE__  -- @preserve */
_0x356c1e();var Ng=class AIContext extends Pg{['_refs'];constructor(_0x498f31=[]){super(),this['_refs']=[..._0x498f31];}get['refs'](){return[...this['_refs']];}get isEmpty(){return 0x0===this['_refs']['length'];}cloneWith(..._0x208c45){return new AIContext([...this['_refs'],..._0x208c45]);}addDefaultContext(_0x34d84c){this['_refs']=[...this['_refs'],..._0x34d84c];}toRequestParts(_0x4ea407=[]){return[...this['_refs']['map'](ra),..._0x4ea407];}toMessageAttributes(_0x12699a){return this['isEmpty']?_0x12699a:{..._0x12699a,[Rg]:[...new Set(this['_refs']['map'](_0x5ea695=>_0x5ea695['id']))]};}static getDefaultContextIds(_0x12b890){const _0x54a862=_0x12b890&&_0x12b890[Rg];return new Set(Array['isArray'](_0x54a862)?_0x54a862:[]);}};const Mg=new Map([['usage-limits-exceeded','ai-usage-limits-exceeded'],['rate-limits-exceeded','ai-rate-limits-exceeded'],['invalid-content-type','ai-invalid-content-type'],['invalid-request-data','ai-chat-invalid-request'],['model-already-set','ai-chat-model-already-set'],['model-not-found','ai-chat-model-not-found'],['unsafe-content-detected','ai-chat-unsafe-content-detected'],['unsupported-content-type','ai-chat-unsupported-content-type'],['content-too-large','ai-chat-content-too-large'],['unsupported-file-type','ai-chat-context-unsupported-file-type'],['file-too-large','ai-chat-context-file-too-large'],['file-too-many-pages','ai-chat-context-file-too-many-pages'],['form-data-size-limits-exceeded','ai-chat-context-form-data-size-limits-exceeded']]),Lg=['contextItemAdded','contextItemRemoved','contextItemLoadingEnded','contextSent','error','addContextOptionsChanged','sourceResourcesLoaded','resourceStateChanged','uploadProgressChanged'];var $g=class AIChatContext extends Ng{_connector;['_config'];['_ownerId'];constructor({connector:_0x3863c2,config:_0x50cb61,ownerId:_0x138d90}){super(),this['_connector']=_0x3863c2,this['_config']=_0x50cb61,this['_ownerId']=_0x138d90;}init(){this['_pendingContextItems']=new Map(),this['_conversationContextItems']=new Map(),this['_ongoingUploads']=new Map(),this['_ongoingUploadOperations']=new Map(),this['_setAddContextOptionsDefaultState']();}getPendingContextItems(){return new Map(this['_pendingContextItems']);}async populateFromMessage(_0x4af983,_0x19b876,_0x25cd57=new Set()){const _0x16ba6f=new Map(),{contextItem:_0x4a15d7,unmatchedDocumentIds:_0x466b01}=await this['_populateDocumentContextItem'](_0x4af983,_0x19b876);_0x4a15d7&&_0x16ba6f['set'](_0x4a15d7['id'],_0x4a15d7);for(const _0x131cc8 of _0x4af983){if('document'===_0x131cc8['type'])continue;const _0x3da9e1=await this['_createContextItemFromContent'](_0x131cc8,_0x25cd57);'context'!==_0x3da9e1['type']&&this['_addToConversationContextItem'](_0x3da9e1),_0x16ba6f['set'](_0x3da9e1['id'],_0x3da9e1);}return{'contextItems':_0x16ba6f,'hasUnmatched':_0x466b01['size']>0x0,'unmatchedDocumentIds':_0x466b01};}async _populateDocumentContextItem(_0x58955c,_0x1e85f7){const _0x160ab9=_0x58955c['filter'](_0x19f779=>'document'===_0x19f779['type']);if(0x0===_0x160ab9['length'])return{'unmatchedDocumentIds':new Set()};const _0x344912=_0x160ab9['map'](_0x206e0d=>_0x206e0d['id']),_0x4f7ccc=await this['_connector']['fetchDocuments'](this['_ownerId'],_0x344912)['getDocuments'](),_0x3c8c3e=new Map(_0x4f7ccc['map'](_0x2730ec=>[_0x2730ec['id'],_0x2730ec])),_0x5c5294=[],_0x431190=new Set();for(const _0x2a01b2 of _0x160ab9){const _0x4a7d02=_0x3c8c3e['get'](_0x2a01b2['id']);_0x4a7d02&&(this['_matchDocumentToRoot'](_0x4a7d02,_0x1e85f7)||_0x431190['add'](_0x4a7d02['id']),_0x5c5294['push']({'id':_0x4a7d02['id'],'content':_0x4a7d02['content'],'version':_0x4a7d02['attributes']?.['version']??0x0,'sessionId':_0x4a7d02['attributes']?.['sessionId']??null,'selection':[],'selectionSignature':'','channelId':_0x4a7d02['attributes']?.['channelId']??_0x1e85f7[0x0]?.['config']['get']('collaboration.channelId')??'','rootName':_0x4a7d02['attributes']?.['rootName']??_0x1e85f7[0x0]?.['model']['document']['getRoots']()[0x0]['rootName']??'','editorConfig':_0x2a01b2['editorConfig']}));}const _0x4848b3={'id':'current-document','uiId':'current-document','label':'Current\x20document','type':'document','hidden':this['_conversationContextItems']['has']('current-document'),'documents':_0x5c5294};return this['_addToConversationContextItem'](_0x4848b3),this['toggleAddCurrentDocumentOptionVisibility'](),{'contextItem':_0x4848b3,'unmatchedDocumentIds':_0x431190};}_matchDocumentToRoot(_0x148a34,_0x480b1e){const _0x5e76da=_0x148a34['attributes']?.['channelId'],_0xa8b3df=_0x148a34['attributes']?.['rootName'];if(_0x5e76da&&_0xa8b3df){for(const _0x33877e of _0x480b1e)if(_0x33877e['config']['get']('collaboration.channelId')===_0x5e76da){for(const _0x5e360e of _0x33877e['model']['document']['getRoots']())if('$graveyard'!==_0x5e360e['rootName']&&_0x5e360e['rootName']===_0xa8b3df)return{'editor':_0x33877e,'rootName':_0x5e360e['rootName']};}}}async _createContextItemFromContent(_0x5e9628,_0x2f200c=new Set()){return'mcp-tool-context'===_0x5e9628['type']?{'id':_0x5e9628['id'],'uiId':_0x5e9628['id'],'label':_0x5e9628['data']?.['label']||_0x5e9628['id'],'type':'mcp-tool-context','mcpServerName':_0x5e9628['mcpServerName'],'toolName':_0x5e9628['toolName'],'data':_0x5e9628['data']||{}}:{'id':_0x5e9628['id'],'uiId':_0x5e9628['id'],'label':_0x5e9628['attributes']?.['label']||_0x5e9628['name']||_0x5e9628['url']||_0x5e9628['id'],'type':_0x5e9628['type'],..._0x5e9628?.['attributes']?.['resourceId']?{'resourceId':_0x5e9628['attributes']?.['resourceId']}:{},...'context'===_0x5e9628['type']&&_0x2f200c['has'](_0x5e9628['id'])?{'hidden':!0x0}:{}};}getSentContextItems(){return new Map(this['_conversationContextItems']);}removeFromContext(_0x5b1047){this['_pendingContextItems']['get'](_0x5b1047)?.['isReadOnly']||this['_removeContextItem'](_0x5b1047);}clearPendingContextItems(){if(0x0===this['_pendingContextItems']['size'])return;for(const _0x3cb68e of this['_pendingContextItems']['values']())'context'!==_0x3cb68e['type']&&this['_removeContextItem'](_0x3cb68e['uiId']);const _0x58f57b=this['_conversationContextItems']['get']('current-document')||this['_pendingContextItems']['get']('current-document');_0x58f57b&&this['_addContextItem']({..._0x58f57b,'isReadOnly':!0x0,'hidden':!0x0});}addToConversationContext(_0x2c82f0){for(const _0x1716b2 of _0x2c82f0['values']())'context'!==_0x1716b2['type']&&this['_addToConversationContextItem'](_0x1716b2);this['clearPendingContextItems'](),this['fire']('contextSent',{'contextItems':Array['from'](this['getSentContextItems']()['values']())});}isCurrentDocumentInContext(){return this['_pendingContextItems']['has']('current-document');}isSelectionInContext(){return this['_pendingContextItems']['has']('selection');}isCurrentDocumentInConversation(){return this['_conversationContextItems']['has']('current-document');}static mapContextItemsToRequestData(_0x2d4076){return Array['from'](_0x2d4076['values']())['flatMap'](_0x37db7c=>this['_mapContextItemToRequestData'](_0x37db7c));}async addFilesToContext(_0x496ac8,_0x31226b,_0x5ec726='file'){const _0x51294f='files-'+_0xea66bb();this['_startUploadOperation'](_0x51294f);try{await Promise['all'](_0x496ac8['map'](async _0x2457e0=>{const _0x30de2a='file-'+_0xea66bb(),_0x22a28f=Ro(_0x2457e0['name']),_0x3de7f0='file'===_0x5ec726&&_0x2457e0['type']['startsWith']('image/')?'image':_0x5ec726;try{this['_addContextItem']({'type':_0x3de7f0,'label':_0x31226b?.['label']||_0x22a28f,'uiId':_0x30de2a,'resourceId':_0x31226b?.['resourceId']},!0x0);const _0x134f62=this['_connector']['uploadFile'](this['_ownerId'],_0x2457e0,_0x31226b);this['_ongoingUploads']['set'](_0x30de2a,_0x134f62['abortController']);const {id:_0xda693f}=await _0x134f62['getId']();this['_ongoingUploads']['delete'](_0x30de2a),this['_finishContextItemLoading']({'type':_0x3de7f0,'id':_0xda693f,'label':_0x31226b?.['label']||_0x22a28f,'uiId':_0x30de2a,'resourceId':_0x31226b?.['resourceId']},!0x1);}catch(_0x579c3b){if(this['_ongoingUploads']['delete'](_0x30de2a),!Og(_0x579c3b)){const _0x1a0e41=new wg({'code':Mg['get'](_0x579c3b['code'])||'ai-chat-file-upload-failed','cause':_0x579c3b,'context':{'fileName':_0x22a28f}});this['fire']('error',{'error':_0x1a0e41});}this['_removeContextItem'](_0x30de2a);}}));}finally{this['_finishUploadOperation'](_0x51294f);}}addCurrentDocumentToContext(_0x3e2c3d){if(this['isCurrentDocumentInContext']()||!this['_addContextOptionsState']['document']['enabled'])return;const _0x1bc133={'type':'document','uiId':'current-document','label':_0x3e2c3d,'isReadOnly':this['_conversationContextItems']['has']('current-document'),'hidden':this['_conversationContextItems']['has']('current-document')};this['_addContextItem'](_0x1bc133);}getCurrentDocumentContext(){return this['_pendingContextItems']['get']('current-document');}async updateCurrentDocuments(_0x30e96f,_0x574dc9){const _0x474be1=this['getCurrentDocumentContext']();if(!_0x474be1)return;_0x30e96f['length']>0x1&&_0x30e96f['some'](_0x17923d=>!_0x17923d['description'])&&_0x53dc7a('ai-chat-documents-missing-description');try{const _0x263c7a=(_0x474be1['documents']||[])['filter'](_0x327fd7=>_0x574dc9['has'](_0x327fd7['channelId']));if(!_0x30e96f['length'])return void(_0x474be1['documents']=_0x263c7a);const _0x124db5=await this['_connector']['uploadDocuments'](this['_ownerId'],_0x30e96f)['getIds']();if(_0x124db5['length']!==_0x30e96f['length']||_0x124db5['some'](_0x2dad40=>!_0x2dad40?.['id'])){const _0x51807c=new _0x4242d4('ai-chat-document-upload-reply-mismatch',null);return void this['fire']('error',{'error':_0x51807c});}const _0x4a27d2=_0x30e96f['map']((_0x3e052f,_0x3b702b)=>{return{'id':_0x124db5[_0x3b702b]['id'],'content':_0x3e052f['content'],'version':_0x3e052f['version'],'sessionId':_0x3e052f['sessionId'],'selection':(_0x2388ba=_0x3e052f['selections'],_0x2388ba?_0x2388ba['map'](_0x409cc7=>({'start':_0x409cc7['start'],'end':_0x409cc7['end']})):[]),'selectionSignature':_0x3e052f['selectionSignature'],'channelId':_0x3e052f['channelId'],'rootName':_0x3e052f['rootName'],'editorConfig':_0x3e052f['editorConfig']};var _0x2388ba;});_0x474be1['documents']=[..._0x263c7a,..._0x4a27d2];}catch(_0x21d130){throw new wg({'code':'ai-chat-document-upload-failed','type':'network','cause':_0x21d130});}}addSelectionToContext(_0x1375c8){this['_addContextItem']({'type':'selection','label':_0x1375c8,'uiId':'selection','content':_0x1375c8});}removeSelectionFromContext(){this['_removeContextItem']('selection');}async addUrlToContext(_0x4da62b,_0xaf8648){const _0x9f1ac7='url-'+_0xea66bb();this['_startUploadOperation'](_0x9f1ac7);const _0x381867='url-'+_0xea66bb();try{this['_addContextItem']({'type':'web-resource','label':_0xaf8648?.['label']||_0x4da62b,'uiId':_0x381867,'resourceId':_0xaf8648?.['resourceId']},!0x0);const _0xb804e6=this['_connector']['uploadUrl'](this['_ownerId'],_0x4da62b,_0xaf8648);this['_ongoingUploads']['set'](_0x381867,_0xb804e6['abortController']);const {id:_0x47350c}=await _0xb804e6['getId']();this['_ongoingUploads']['delete'](_0x381867),this['_finishContextItemLoading']({'type':'web-resource','id':_0x47350c,'label':_0xaf8648?.['label']||_0x4da62b,'uiId':_0x381867,'resourceId':_0xaf8648?.['resourceId']},!0x1);}catch(_0x3e3aa4){this['_ongoingUploads']['delete'](_0x381867),Og(_0x3e3aa4)||this['fire']('error',{'error':new _0x4242d4('ai-chat-url-upload-failed',this,{'url':_0x4da62b,'originalError':_0x3e3aa4}),'url':_0x4da62b}),this['_removeContextItem'](_0x381867);}finally{this['_finishUploadOperation'](_0x9f1ac7);}}addToolItemToContext(_0x4f90dd){_0x4f90dd['id']=_0x4f90dd['id']??_0xea66bb()['substring'](0x0,0x15),this['_pendingContextItems']['set'](_0x4f90dd['uiId'],_0x4f90dd),this['fire']('contextItemAdded',{'contextItem':_0x4f90dd,'isLoading':!0x1});}async['loadSourceResources'](_0x57439f,_0x5f4f82,_0x370b59){const _0x136d7d=this['_addContextOptionsState']['sources']['find'](_0x74a0a3=>_0x74a0a3['id']===_0x57439f);if(!_0x136d7d)return this['fire']('error',{'error':new _0x4242d4('ai-chat-source-not-found',this,{'sourceId':_0x57439f}),'sourceId':_0x57439f}),[];try{const _0x1e140f=(await _0x136d7d['getResources'](_0x5f4f82))['map'](_0x25550b=>{const _0x3ec080=this['_isResourceInContext'](_0x25550b['id']);return{..._0x25550b,'isInContext':_0x3ec080};});return _0x136d7d['resources']=_0x1e140f,this['fire']('sourceResourcesLoaded',{'sourceId':_0x57439f,'source':_0x136d7d,'resources':_0x1e140f,'uid':_0x370b59}),_0x1e140f;}catch(_0x40edc6){return this['fire']('error',{'error':new _0x4242d4('ai-chat-source-resources-load-failed',this,{'sourceId':_0x57439f,'originalError':_0x40edc6}),'sourceId':_0x57439f,'sourceLabel':_0x136d7d['label']}),[];}}async addResourceToContext(_0x309080,_0x1b7d59){if(this['_isResourceInContext'](_0x1b7d59['id']))return;if('context'===_0x1b7d59['type'])return void this['_addContextItem']({'type':'context','id':_0x1b7d59['id'],'label':_0x1b7d59['label'],'uiId':'context-'+_0xea66bb(),'resourceId':_0x1b7d59['id']});let _0x3e82b8=_0x1b7d59['data'];if(!_0x3e82b8&&_0x309080['getData'])try{_0x3e82b8=await _0x309080['getData'](_0x1b7d59['id']);}catch(_0x2b5620){return void this['fire']('error',{'error':new _0x4242d4('ai-chat-resource-load-failed',this,{'resourceId':_0x1b7d59['id'],'sourceId':_0x309080['id'],'originalError':_0x2b5620}),'resourceId':_0x1b7d59['id'],'sourceId':_0x309080['id']});}if(_0x3e82b8)switch(_0x1b7d59['type']){case'web-resource':if('string'!=typeof _0x3e82b8)return void this['fire']('error',{'error':new _0x4242d4('ai-chat-context-invalid-data',this,{'resourceId':_0x1b7d59['id'],'sourceId':_0x309080['id'],'expectedType':'string','actualType':typeof _0x3e82b8}),'resourceId':_0x1b7d59['id'],'sourceId':_0x309080['id']});await this['addUrlToContext'](_0x3e82b8,{'label':_0x1b7d59['label'],'resourceId':_0x1b7d59['id']});break;case'file':if(!(_0x3e82b8 instanceof File))return void this['fire']('error',{'error':new _0x4242d4('ai-chat-context-invalid-data',this,{'resourceId':_0x1b7d59['id'],'sourceId':_0x309080['id'],'expectedType':'File','actualType':typeof _0x3e82b8}),'resourceId':_0x1b7d59['id'],'sourceId':_0x309080['id']});await this['addFilesToContext']([_0x3e82b8],{'label':_0x1b7d59['label'],'resourceId':_0x1b7d59['id']});break;case'text':if('object'!=typeof _0x3e82b8||!('content'in _0x3e82b8)||!('type'in _0x3e82b8))return void this['fire']('error',{'error':new _0x4242d4('ai-chat-context-invalid-data',this,{'resourceId':_0x1b7d59['id'],'sourceId':_0x309080['id'],'expectedType':'object\x20with\x20content\x20and\x20type\x20properties','actualType':typeof _0x3e82b8}),'resourceId':_0x1b7d59['id'],'sourceId':_0x309080['id']});_0x3e82b8=AIChatContext['_convertTextResourceToFile'](_0x3e82b8,_0x1b7d59['label']),await this['addFilesToContext']([_0x3e82b8],{'label':_0x1b7d59['label'],'resourceId':_0x1b7d59['id']},'text');break;case'mcp-tool-context':break;default:this['fire']('error',{'error':new _0x4242d4('ai-chat-context-unsupported-type',this,{'resourceId':_0x1b7d59['id'],'sourceId':_0x309080['id'],'resourceType':_0x1b7d59['type']}),'resourceId':_0x1b7d59['id'],'sourceId':_0x309080['id']});}else this['fire']('error',{'error':new _0x4242d4('ai-chat-resource-no-data',this,{'resourceId':_0x1b7d59['id'],'sourceId':_0x309080['id']}),'resourceId':_0x1b7d59['id'],'sourceId':_0x309080['id']});}addContextSource(_0x4eacb4){this['_addContextOptionsState']['sources']['some'](_0x194f73=>_0x194f73['id']===_0x4eacb4['id'])||(this['_addContextOptionsState']['sources']['push']({..._0x4eacb4,'resources':[]}),this['fire']('addContextOptionsChanged',{'options':this['_addContextOptionsState']}));}toggleAddCurrentDocumentOptionVisibility(_0x58f7e7){if(void 0x0!==_0x58f7e7)this['_addContextOptionsState']['document']['isHidden']=!_0x58f7e7;else{const _0x1705a1=this['isCurrentDocumentInContext']()||this['isCurrentDocumentInConversation']();this['_addContextOptionsState']['document']['isHidden']=_0x1705a1;}this['fire']('addContextOptionsChanged',{'options':this['_addContextOptionsState']});}static _convertTextResourceToFile(_0x383493,_0x19d7cc){switch(_0x383493['type']){case'markdown':return new File([_0x383493['content']],_0x19d7cc,{'type':'text/markdown'});case'html':return new File([_0x383493['content']],_0x19d7cc,{'type':'text/html'});default:return new File([_0x383493['content']],_0x19d7cc,{'type':'text/plain'});}}static _mapContextItemToRequestData(_0x4a8a5d){switch(_0x4a8a5d['type']){case'file':case'image':case'text':return[{'type':'file','id':_0x4a8a5d['id']}];case'web-resource':return[{'type':'web-resource','id':_0x4a8a5d['id']}];case'context':return[{'type':'context','id':_0x4a8a5d['id']}];case'document':return _0x4a8a5d['documents']?.['length']?_0x4a8a5d['documents']['map'](({id:_0x579aaf,editorConfig:_0x357684,selection:_0x563b65})=>({'type':'document','id':_0x579aaf,..._0x357684&&{'editorConfig':_0x357684},..._0x563b65?.['length']&&{'selection':_0x563b65}})):[];case'mcp-tool-context':{const _0x5dcd17=_0x4a8a5d;return[{'type':'mcp-tool-context','mcpServerName':_0x5dcd17['mcpServerName'],'toolName':_0x5dcd17['toolName'],'data':{..._0x5dcd17['data'],'label':_0x5dcd17['label']||_0x5dcd17['data']?.['label']||_0x5dcd17['id']},'id':_0x5dcd17['id']}];}default:return[];}}_addContextItem(_0x15faf1,_0x1b2d32=!0x1){if(this['_pendingContextItems']['set'](_0x15faf1['uiId'],_0x15faf1),_0x15faf1['hidden']||this['fire']('contextItemAdded',{'contextItem':_0x15faf1,'isLoading':_0x1b2d32}),'current-document'===_0x15faf1['uiId']&&this['toggleAddCurrentDocumentOptionVisibility'](),_0x15faf1['resourceId']){const _0x33982e=this['_findSourceIdsByResourceId'](_0x15faf1['resourceId']);_0x33982e&&_0x33982e['forEach'](_0x4a363c=>{this['_updateResourceInContextState'](_0x4a363c,_0x15faf1['resourceId'],!0x0);});}}_removeContextItem(_0x53c8c1){const _0x1dd811=this['_pendingContextItems']['get'](_0x53c8c1),_0x6a5768=this['_ongoingUploads']['get'](_0x53c8c1);if(_0x6a5768&&(_0x6a5768['abort'](),this['_ongoingUploads']['delete'](_0x53c8c1)),_0x1dd811?.['resourceId']){const _0x4e1982=this['_findSourceIdsByResourceId'](_0x1dd811['resourceId']);_0x4e1982&&_0x4e1982['forEach'](_0x1065c4=>{this['_updateResourceInContextState'](_0x1065c4,_0x1dd811['resourceId'],!0x1);});}this['_pendingContextItems']['delete'](_0x53c8c1),this['fire']('contextItemRemoved',{'uiId':_0x53c8c1,'type':_0x1dd811?.['type']}),'current-document'===_0x53c8c1&&this['toggleAddCurrentDocumentOptionVisibility']();}_finishContextItemLoading(_0x1f6491,_0x10d465){if(this['_pendingContextItems']['has'](_0x1f6491['uiId'])&&(this['_pendingContextItems']['set'](_0x1f6491['uiId'],_0x1f6491),this['fire']('contextItemLoadingEnded',{'contextItem':_0x1f6491,'isLoading':_0x10d465}),_0x1f6491['resourceId'])){const _0x26573e=this['_findSourceIdsByResourceId'](_0x1f6491['resourceId']);_0x26573e&&_0x26573e['forEach'](_0x5b92e1=>{this['_updateResourceInContextState'](_0x5b92e1,_0x1f6491['resourceId'],!0x0);});}}_addToConversationContextItem(_0x549d21){this['_conversationContextItems']['set'](_0x549d21['uiId'],_0x549d21);}_setAddContextOptionsDefaultState(){this['_addContextOptionsState']={'document':{'enabled':!0x1!==this['_config']?.['document']?.['enabled'],'isHidden':!0x1},'urls':{'enabled':!0x1!==this['_config']?.['urls']?.['enabled']},'files':{'enabled':!0x1!==this['_config']?.['files']?.['enabled']},'sources':this['_getCustomSourcesInitialState'](),'customItems':this['_config']?.['customItems']?.['map'](_0x3b09dc=>({..._0x3b09dc,'enabled':!0x0}))??[]},this['fire']('addContextOptionsChanged',{'options':this['_addContextOptionsState']});}_getCustomSourcesInitialState(){return this['_config']?.['sources']?.['map'](_0x450179=>({..._0x450179,'resources':[]}))??[];}_isResourceInContext(_0x396e84){for(const _0x5bbc36 of this['_pendingContextItems']['values']())if(_0x5bbc36['resourceId']===_0x396e84)return!0x0;for(const _0x1f1022 of this['_conversationContextItems']['values']())if(_0x1f1022['resourceId']===_0x396e84)return!0x0;return!0x1;}['_findSourceIdsByResourceId'](_0x2deda6){const _0x1ab3a6=[];for(const _0x5cb1e7 of this['_addContextOptionsState']['sources'])_0x5cb1e7['resources']['find'](_0x58ca37=>_0x58ca37['id']===_0x2deda6)&&_0x1ab3a6['push'](_0x5cb1e7['id']);return 0x0===_0x1ab3a6['length']?null:_0x1ab3a6;}_updateResourceInContextState(_0x41053d,_0x30eb62,_0x23d80e){const _0x20f6be=this['_addContextOptionsState']['sources']['find'](_0x4ee5d0=>_0x4ee5d0['id']===_0x41053d);if(!_0x20f6be)return;const _0x2006f2=_0x20f6be['resources']['find'](_0x5c561e=>_0x5c561e['id']===_0x30eb62);_0x2006f2&&(_0x2006f2['isInContext']=_0x23d80e,this['fire']('resourceStateChanged',{'sourceId':_0x41053d,'resourceId':_0x30eb62,'isInContext':_0x23d80e}));}_startUploadOperation(_0x656e19){this['_ongoingUploadOperations']['set'](_0x656e19,!0x0),this['_ongoingUploadOperations']['size']&&this['fire']('uploadProgressChanged',{'isUploadInProgress':!0x0});}_finishUploadOperation(_0x23d47b){this['_ongoingUploadOperations']['delete'](_0x23d47b),0x0===this['_ongoingUploadOperations']['size']&&this['fire']('uploadProgressChanged',{'isUploadInProgress':!0x1});}},Dg=class extends Cg{['userMessage'];conversationId;contextItems=new Map();capabilities;['model'];attributes;context;constructor(_0x37af73){super(_0x37af73),this['conversationId']=_0x37af73['conversationId'],this['contextItems']=_0x37af73['contextItems'],this['capabilities']=_0x37af73['capabilities'],this['userMessage']=_0x37af73['userMessage'],this['model']=_0x37af73['model'],this['attributes']=_0x37af73['attributes'],this['context']=_0x37af73['context']??new Ng();}sendRequest(){const _0x217d63=$g['mapContextItemsToRequestData'](this['contextItems']),_0x4ac83f=this['context']['toRequestParts'](_0x217d63);return this['connector']['queryAssistant']({'message':this['userMessage'],'conversationId':this['conversationId'],'parts':_0x4ac83f,'capabilities':ug['getCapabilitiesRequestData'](this['capabilities']),'model':this['model'],'attributes':this['context']['toMessageAttributes'](this['attributes'])});}getDocumentContext(){return this['contextItems']['get']('current-document');}};const Qg=/* #__PURE__  -- @preserve */
_0x3e0c97();var jg=class extends Qg{['id'];isStarted=!0x1;isFromHistory;interactions=[];currentInteraction;selectedModel;connector;options;_abortReject;_channelsToEditors;_getSessionId;constructor(_0x2e7d47){super(),this['options']=_0x2e7d47,this['connector']=_0x2e7d47['connector'],this['chatModels']=_0x2e7d47['chatModels'],this['id']=_0x2e7d47['conversationId'],this['isFromHistory']=_0x2e7d47['isFromHistory'],this['_channelsToEditors']=_0x2e7d47['channelsToEditors'],this['_getSessionId']=_0x2e7d47['getSessionId'];}async init(_0x5d2492){try{this['chatContext']=new $g({'connector':this['connector'],'config':_0x5d2492,'ownerId':this['id']}),this['chatContext']['delegate'](...Lg)['to'](this),this['chatContext']['init'](),this['options']['contextLibrary']?.['resolveContext']({'feature':'chat','extraContexts':this['options']['extraContexts'],'context':this['chatContext']}),this['chatCapabilities']=new ug(),this['chatCapabilities']['delegate'](...hg)['to'](this),this['chatCapabilities']['init']();const _0x56db00=await this['chatModels']['getAvailableModels']();this['fire']('conversationInitialized',{'availableModels':_0x56db00});const _0x426b92=await this['chatModels']['resolveModel'](this['options']['selectedModelId']);_0x426b92&&await this['setModel'](_0x426b92);}catch(_0x2b4890){const _0x44bf9a=new wg({'code':'ai-chat-conversation-init-failed','cause':_0x2b4890,'type':'network'});this['fire']('error',{'error':_0x44bf9a});}}async start(){if(this['isStarted'])throw new _0x4242d4('ai-chat-conversation-already-started',null,{'conversation':this});if(!this['selectedModel'])throw new _0x4242d4('ai-chat-conversation-start-no-model-selected',null,{'conversation':this});try{const {id:_0x5b9fc5}=await this['connector']['startConversation'](this['id'],this['options']['group'])['getConversation']();this['id']=_0x5b9fc5,this['isStarted']=!0x0,this['fire']('conversationStarted',{'conversationId':this['id'],'selectedModel':this['selectedModel']});}catch(_0x1b03bf){const _0x5ee0f3=new wg({'code':'ai-chat-conversation-start-failed','cause':_0x1b03bf,'type':'network','context':{'conversationId':this['id']}});throw this['fire']('error',{'error':_0x5ee0f3}),_0x5ee0f3;}}async['load'](_0x1abd1c){try{const _0x329dad=await this['connector']['fetchConversation'](_0x1abd1c)['getConversation'](),_0x3aba74=await this['connector']['fetchConversationMessages'](_0x1abd1c)['getMessages'](),_0x5b3d33=_0x3aba74[0x0]['model'];this['isStarted']=!0x0,this['id']=_0x329dad['id'],'title'in _0x329dad?this['fire']('setConversationTitle',_0x329dad['title'],!this['isFromHistory']):this['fire']('setConversationTitle','',!this['isFromHistory']),this['selectedModel']=await this['chatModels']['getModel'](_0x5b3d33)??void 0x0,this['fire']('modelSelected',{'selectedModel':this['selectedModel'],'isDisabled':!0x0});const {streamingMessageId:_0x21caae}=await this['_processMessagesToInteractions'](_0x3aba74,_0x5b3d33);return _0x21caae&&this['currentInteraction']?this['_resumeStream'](_0x21caae):this['currentInteraction']=void 0x0,this;}catch(_0xa7695a){const _0x260dce=new wg({'code':'ai-chat-conversation-init-from-id-failed','cause':_0xa7695a,'type':'network','context':{'conversationId':_0x1abd1c}});throw this['fire']('error',{'error':_0x260dce}),_0x260dce;}}async _processMessagesToInteractions(_0x333685,_0x1c8e36){let _0x5cf178,_0xffa66c,_0x3d326a=new Set();for(const _0x52847a of _0x333685)if('user'===_0x52847a['role']){const {contextItems:_0x48fcf6,unmatchedDocumentIds:_0x54b486}=await this['_extractContextItems'](_0x52847a);_0x3d326a=_0x54b486;const _0x35818e={'isReasoningEnabled':Object['hasOwn'](_0x52847a['capabilities'],'reasoning'),'isWebSearchEnabled':Object['hasOwn'](_0x52847a['capabilities'],'webSearch')};_0x5cf178=this['createInteraction']({'userMessage':_0x52847a['prompt'],'contextItems':_0x48fcf6,'capabilities':_0x35818e,'modelId':_0x1c8e36,'attributes':_0x52847a['attributes'],'channelsToEditors':this['_channelsToEditors']}),this['currentInteraction']=_0x5cf178,_0xffa66c=void 0x0,this['chatContext']['addToConversationContext'](this['currentInteraction']['contextItems']);}else{if('assistant'===_0x52847a['role']&&_0x5cf178){if('streaming'===_0x52847a['status']){_0xffa66c=_0x52847a['id'];continue;}if('error'===_0x52847a['status'])continue;const _0x1fa6b5=[];for(const _0x297d8d of _0x52847a['content'])switch(_0x297d8d['type']){case'text':case'modification':{const _0x1d6b57=_0x5cf178['getDocumentContext'](),_0x194518=this['_getOutdatedReasonsByDocumentId'](_0x1d6b57,_0x3d326a),_0x469cc0=_0x1d6b57?.['documents']??[],_0x48b32a=_0x469cc0['length']>0x0&&_0x469cc0['every'](_0x518d51=>_0x194518['has'](_0x518d51['id']));_0x5cf178['currentReply']?.['type']!==_0x297d8d['type']&&(_0x5cf178['currentReply']=_0x5cf178['createReply']({'type':_0x297d8d['type'],'isDone':!0x0,'interactionId':_0x5cf178['id'],'areActionsDisabled':_0x48b32a,'outdatedReasonByDocumentId':_0x194518,'isFromHistory':!0x0,'channelsToEditors':this['_channelsToEditors']}),_0x1fa6b5['length']>0x0&&(_0x5cf178['currentReply']['sources']=_0x1fa6b5['splice'](0x0))),_0x5cf178['currentReply']['appendContent'](_0x297d8d['content'],_0x297d8d['documentId']);break;}case'url':_0x1fa6b5['push'](_0x297d8d);break;case'mcp-tool-result':{const {data:_0x55639b,attributes:_0x3d9dcf}=JSON['parse'](_0x297d8d['content']);_0x5cf178['_handleToolResultData']({'toolName':_0x297d8d['toolName'],'data':_0x55639b,'attributes':_0x3d9dcf});break;}}'cancelled'===_0x52847a['status']&&this['fire']('error',{'interactionId':_0x5cf178['id'],'error':new _0x4242d4('ai-request-aborted',this)});}}return{'streamingMessageId':_0xffa66c};}async _resumeStream(_0x4f366c){if(this['currentInteraction'])try{const _0x512dea=this['connector']['resumeStream'](this['id'],_0x4f366c);await this['currentInteraction']['resume'](_0x512dea);}catch(_0x2f3460){_0x2f3460 instanceof _0x4242d4&&this['fire']('error',{'interactionId':this['currentInteraction']?.['id'],'error':_0x2f3460});}finally{this['currentInteraction']?.['stop'](),this['currentInteraction']=void 0x0;}}async _extractContextItems(_0x42e936){return _0x42e936['content']?this['chatContext']['populateFromMessage'](_0x42e936['content'],Array['from'](this['_channelsToEditors']['values']()),Ng['getDefaultContextIds'](_0x42e936['attributes'])):{'contextItems':new Map(),'unmatchedDocumentIds':new Set()};}async handleUserInteraction({userMessage:_0x496ebb,attributes:_0xaa1a6b}){if(!this['isStarted'])throw new _0x4242d4('ai-chat-handle-user-conversation-not-initialized',null,{'conversation':this});if(this['currentInteraction'])throw new _0x4242d4('ai-chat-handle-user-interaction-already-in-progress',null,{'conversation':this});try{const _0x1e19a6=new Map(this['getPendingContextItems']()),_0x538cf5=this['chatCapabilities']['getCapabilitiesConfig'](),_0x42daa1=this['selectedModel']['id'];this['currentInteraction']=this['createInteraction']({'userMessage':_0x496ebb,'contextItems':_0x1e19a6,'capabilities':_0x538cf5,'modelId':_0x42daa1,'attributes':_0xaa1a6b,'channelsToEditors':this['_channelsToEditors']}),await this['updateCurrentDocumentsInContext'](),await this['currentInteraction']['start'](),this['chatContext']['addToConversationContext'](this['currentInteraction']['contextItems']);}catch(_0x2a77c7){if(_0x2a77c7 instanceof _0x4242d4)this['fire']('error',{'interactionId':this['currentInteraction']?this['currentInteraction']['id']:void 0x0,'error':_0x2a77c7});else{const _0x5ac4b5=Mg['get'](_0x2a77c7['code'])||'ai-chat-handle-user-interaction-start-failed';this['fire']('error',{'interactionId':this['currentInteraction']?this['currentInteraction']['id']:void 0x0,'error':new _0x4242d4(_0x5ac4b5,null,{'error':_0x2a77c7})});}}finally{this['stopProcessing']();}}stopProcessing(){this['_abortReject']&&(this['_abortReject'](),this['_abortReject']=void 0x0),this['currentInteraction']&&(this['currentInteraction']['stop'](),this['currentInteraction']=void 0x0);}createInteraction({userMessage:_0x3e81a4,contextItems:_0x587676,capabilities:_0x461e44,modelId:_0x98efe9,attributes:_0x380aea,channelsToEditors:_0x3767d8}){const _0x1d24b4=new Dg({'userMessage':_0x3e81a4,'contextItems':_0x587676,'capabilities':_0x461e44,'conversationId':this['id'],'connector':this['connector'],'locale':this['options']['locale'],'model':_0x98efe9,'attributes':_0x380aea,'channelsToEditors':_0x3767d8,'context':this['chatContext']['isEmpty']?void 0x0:new Ng(this['chatContext']['refs'])});return _0x1d24b4['delegate'](...xg)['to'](this),this['interactions']['push'](_0x1d24b4),this['fire']('interactionCreated',_0x1d24b4),_0x1d24b4;}getInteraction(_0x3e63ac){return this['interactions']['find'](_0x286510=>_0x286510['id']===_0x3e63ac);}removeInteraction(_0x40755c){const _0x5b32b0=this['getInteraction'](_0x40755c);_0x5b32b0&&(_0x5b32b0['destroy'](),this['interactions']['splice'](this['interactions']['indexOf'](_0x5b32b0),0x1));}get lastInteraction(){return this['interactions'][this['interactions']['length']-0x1];}cancelLastInteractionStream(){const _0x4e5d12=this['lastInteraction'];_0x4e5d12?.['conversationId']&&_0x4e5d12['messageId']&&this['connector']['cancelStream'](_0x4e5d12['conversationId'],_0x4e5d12['messageId'])['execute']()['catch'](()=>{});}addCurrentDocumentToContext(_0x3b01fe){this['chatContext']['addCurrentDocumentToContext'](_0x3b01fe);}async updateCurrentDocumentsInContext(){if(!this['isCurrentDocumentInContext']())return;const {changedIds:_0x3f7740,unchangedIds:_0x3e722b}=this['_compareEditorStateWithDocumentContext'](),_0xb3369c=new Promise((_0x4968ea,_0x3cb130)=>{this['_abortReject']=()=>_0x3cb130(new _0x4242d4('ai-request-aborted',this));}),_0xf83fb1=await Promise['race']([this['options']['aiEditing']['getDocumentData'](_0x3f7740),_0xb3369c]);await Promise['race']([this['chatContext']['updateCurrentDocuments'](_0xf83fb1,_0x3e722b),_0xb3369c]);}_compareEditorStateWithDocumentContext(){const _0x141409=new Set(),_0x4f3ac9=new Set(),_0x5b448c=this['options']['aiEditing']['getEditorsVersions'](),_0x6f015b=this['options']['aiEditing']['getEditorsSelections'](),_0x57e87b=this['chatContext']['getCurrentDocumentContext']()['documents']||[],_0x4a479c=new Map(_0x57e87b['map'](({channelId:_0x33e596,version:_0x5b090c})=>[_0x33e596,_0x5b090c])),_0x2a3156=new Map(_0x57e87b['map'](({channelId:_0x1f7f50,selectionSignature:_0x551b22})=>[_0x1f7f50,_0x551b22]));for(const [_0x15682b,_0xc562e5]of _0x5b448c){const _0x4bf8f8=_0x6f015b['get'](_0x15682b);_0x4a479c['get'](_0x15682b)!=_0xc562e5||_0x2a3156['get'](_0x15682b)!=_0x4bf8f8?_0x141409['add'](_0x15682b):_0x4a479c['has'](_0x15682b)&&_0x4f3ac9['add'](_0x15682b);}return{'changedIds':_0x141409,'unchangedIds':_0x4f3ac9};}toggleAddCurrentDocumentOptionVisibility(_0xeb426c){this['chatContext']['toggleAddCurrentDocumentOptionVisibility'](_0xeb426c);}_getOutdatedReasonsByDocumentId(_0x3bd2c2,_0x102daa){const _0x149f0f=new Map();if(!_0x3bd2c2||!_0x3bd2c2['documents'])return _0x149f0f;for(const _0x18bf27 of _0x3bd2c2['documents']){const _0x13cb21=this['_channelsToEditors']['get'](_0x18bf27['channelId']);_0x13cb21&&'destroyed'!==_0x13cb21['state']?_0x18bf27['sessionId']!==this['_getSessionId'](_0x13cb21)?_0x149f0f['set'](_0x18bf27['id'],'session-changed'):_0x102daa['has'](_0x18bf27['id'])&&_0x149f0f['set'](_0x18bf27['id'],'content-removed'):_0x149f0f['set'](_0x18bf27['id'],'editor-removed');}return _0x149f0f;}addSelectionToContext(_0x874bd1){this['chatContext']['addSelectionToContext'](_0x874bd1);}removeSelectionFromContext(){this['chatContext']['removeSelectionFromContext']();}addFilesToContext(_0xfa3f93){this['chatContext']['addFilesToContext'](_0xfa3f93);}addUrlToContext(_0x1879e1){this['chatContext']['addUrlToContext'](_0x1879e1);}addToolItemToContext(_0x4c75a1){this['chatContext']['addToolItemToContext'](_0x4c75a1);}addResourceToContext(_0x15b9d8,_0x1b4a27){this['chatContext']['addResourceToContext'](_0x15b9d8,_0x1b4a27);}['loadSourceResources'](_0x5026fa,_0x533fef,_0x5cc4b9){return this['chatContext']['loadSourceResources'](_0x5026fa,_0x533fef,_0x5cc4b9);}removeFromContext(_0xcac058){this['chatContext']['removeFromContext'](_0xcac058);}setWebSearch(_0x306680){this['chatCapabilities']['setWebSearch'](_0x306680);}toggleWebSearch(){this['chatCapabilities']['toggleWebSearch']();}setReasoning(_0x4c97cd){this['chatCapabilities']['setReasoning'](_0x4c97cd);}toggleReasoning(){this['chatCapabilities']['toggleReasoning']();}isCurrentDocumentInContext(){return this['chatContext']['isCurrentDocumentInContext']();}isCurrentDocumentInConversation(){return this['chatContext']['isCurrentDocumentInConversation']();}isSelectionInContext(){return this['chatContext']['isSelectionInContext']();}getPendingContextItems(){return this['chatContext']['getPendingContextItems']();}addDefaultContext(_0x432dbf){_0x432dbf['length']&&this['chatContext']['addDefaultContext'](_0x432dbf);}async setModel(_0x31c6d6){_0x31c6d6?!0x1===await this['chatModels']['isAvailable'](_0x31c6d6)&&(_0x53dc7a('ai-chat-conversation-set-model-not-available',{'conversation':this,'model':_0x31c6d6}),_0x31c6d6=(await this['chatModels']['getAvailableModels']())[0x0]):(_0x53dc7a('ai-chat-conversation-set-model-null',{'conversation':this}),_0x31c6d6=(await this['chatModels']['getAvailableModels']())[0x0]),_0x31c6d6['id']!==this['selectedModel']?.['id']&&(this['selectedModel']=_0x31c6d6,this['chatCapabilities']['reset'](),this['fire']('modelSelected',{'selectedModel':_0x31c6d6}));}};function Ug({documentSuggestions:_0x2a66e1,transform:_0x303abd,documentCompare:_0x180744,documentCompareOptions:_0x315ebe}){const _0x5dde12=new Map();for(const [_0xca0078,{groups:_0x1d002e,documentContext:_0x3af345,documentContent:_0x4777,editor:_0x130aa1}]of _0x2a66e1){const _0x485cc6=_0x3af345['content'],_0x587f2d=_0x3af345['version'],_0x5c74a0=_0x4777['cloneNode'](!0x0);for(const {changes:_0x31a84e}of _0x1d002e)ml(_0x5c74a0,_0x31a84e);const _0x2a5d03=Wc(_0x5c74a0),_0xd6e3d8=gl(_0x130aa1,_0x3af345['rootName'],_0x485cc6,_0x2a5d03);if(!_0xd6e3d8)continue;const _0x5e1f3e=_0x180744['getDiff'](_0xd6e3d8['before'],_0xd6e3d8['after'],{'targetEditor':_0x130aa1,'anchor':_0x3af345['rootName'],..._0x315ebe})['getOperations']();if(_0x303abd){const _0xbb947a=_0x130aa1['model']['document']['history']['getOperations'](_0x587f2d),_0x1d03cd={'document':_0x130aa1['model']['document'],'useRelations':!0x1,'padWithNoOps':!0x1};_0x5dde12['set'](_0xca0078,_0x4e362f(_0x5e1f3e,_0xbb947a,_0x1d03cd)['operationsA']);}else _0x5dde12['set'](_0xca0078,_0x5e1f3e);}return _0x5dde12;}function Vg({groups:_0x3497bf,documentContextContent:_0x260e6b,documents:_0x40e37d}){const _0x3ef680=new Map();for(const _0x355464 of _0x3497bf){const {documentId:_0x139ae3}=_0x355464,_0x57dcf8=_0x3ef680['get'](_0x139ae3);if(_0x57dcf8)_0x57dcf8['groups']['push'](_0x355464),_0x57dcf8['indexes']['push'](_0x355464['index']);else{const _0x4896d8=_0x40e37d['find'](_0x118041=>_0x118041['id']===_0x139ae3),_0x4885f7=_0x260e6b['get'](_0x139ae3);if(!_0x4896d8||!_0x4885f7)continue;_0x3ef680['set'](_0x139ae3,{'groups':[_0x355464],'documentContext':_0x4896d8,'documentContent':_0x4885f7,'editor':_0x355464['editor'],'indexes':[_0x355464['index']]});}}return _0x3ef680;}function Bg(_0x32c185,_0x34c4df){const _0x1b46e2=_0x32c185['files']['length']>0x0&&_0x32c185['files']['every'](_0x14fa03=>_0x14fa03['type']['startsWith']('image/')),_0x834f4e=_0x32c185['plainText']['trim']()['length']>0x0;if(_0x32c185['files']['length']>0x0&&_0x34c4df['filesEnabled']&&(!_0x1b46e2||!_0x834f4e)){const _0x5be96d=_0x32c185['files']['filter'](_0xf99169=>_0xf99169['name']);return _0x5be96d['length']>0x0?{'type':'file','files':_0x5be96d}:null;}if(_0x34c4df['urlsEnabled']){const _0x2a409c=function(_0xd867a3){const _0x1b6d66=_0xd867a3['trim']();if(/\s/['test'](_0x1b6d66))return null;try{const _0x27fb05=new URL(_0x1b6d66);return'http:'!==_0x27fb05['protocol']&&'https:'!==_0x27fb05['protocol']?null:_0x27fb05['toString']();}catch{return null;}}(_0x32c185['plainText']);if(_0x2a409c)return{'type':'url','url':_0x2a409c};}const _0x44c3b2=_0x32c185['forceTextAttachment']?0x1:_0x34c4df['longTextThreshold']??0x1/0x0;if(_0x32c185['plainText']['length']>=Math['max'](_0x44c3b2,0x1)&&_0x34c4df['filesEnabled']){const _0x56d67a=_0x34c4df['pastedTextLabel']+'.txt';return{'type':'text','files':[new File([_0x32c185['plainText']],_0x56d67a,{'type':'text/plain'})]};}return null;}var Hg=class extends _0x4dd342{activeConversation;_aiEditing;_aiConnector;_aiChatUi;['_aiModels'];_aiContextLibrary;_contextLibrarySource=null;_hasAIChatBalloon=!0x1;_activeBalloon;_reporter;_batchToChanges=new Map();_currentPreviewedChangeGroup=null;_bodyCollection;_channelsToEditors=new Map();static get requires(){return[oa,bg,Op,fa];}static get['pluginName'](){return'AIChatController';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){this['set']('isConversationReady',!0x1),this['_bodyCollection']=Ag(this['context']['locale']),this['_aiConnector']=this['context']['plugins']['get']('AIConnector'),this['_aiChatUi']=this['context']['plugins']['get']('AIChatUI'),this['_aiEditing']=this['context']['plugins']['get']('AIEditing'),this['_reporter']=this['context']['plugins']['get'](bg)['createReporter']('aichat'),this['_aiModels']=this['context']['plugins']['get'](fa)['models'],this['_aiContextLibrary']=this['context']['plugins']['get'](fa)['contextLibrary'];const _0x20d9c7=this['context']['plugins']['get']('AITabs');this['listenTo'](this['_aiChatUi'],'startConversation',()=>{this['_startConversationSafely']();}),this['listenTo'](this['_aiChatUi'],'sendUserMessage',(_0x3373cf,_0x3d2a47)=>{this['sendMessage']({'message':_0x3d2a47});}),this['listenTo'](this['_aiChatUi'],'abortPromptStream',()=>{this['activeConversation']?.['stopProcessing']();}),this['listenTo'](_0x20d9c7['view'],'change:activeTab',(_0x58f8c3,_0x352391,_0x51b2da)=>{'chat'!==_0x51b2da&&this['removeSelectionFromChatContext']();}),this['listenTo'](this['_aiChatUi'],'addDocumentToContext',()=>{this['addCurrentDocumentToChatContext']();}),this['listenTo'](this['_aiChatUi'],'addFileToContext',(_0x47c350,_0x8b8c95)=>{this['activeConversation']?.['addFilesToContext'](Array['from'](_0x8b8c95));}),this['listenTo'](this['_aiChatUi'],'addUrlToContext',(_0x567046,_0x84dfc6)=>{this['activeConversation']?.['addUrlToContext'](_0x84dfc6);}),this['listenTo'](this['_aiChatUi'],'promptInputPaste',(_0x2b3055,_0x4fea00)=>{const _0x2e0a1b=this['activeConversation'];if(!_0x2e0a1b)return;_0x4fea00['hasDirectory']&&(_0x4fea00['preventDefault'](),this['_aiChatUi']['addFeedItemError']({'errorMessage':ca(this['context']['locale'],'AI_CHAT_CONTEXT_FOLDER_NOT_SUPPORTED'),'id':'folder-error-'+_0xea66bb()}));const _0xc7208a=Bg(_0x4fea00,{'pastedTextLabel':ca(this['context']['locale'],'AI_CHAT_CONTEXT_PASTED_TEXT_NAME'),'longTextThreshold':this['context']['config']['get']('ai.chat.context.paste.textThreshold'),'filesEnabled':!0x1!==this['context']['config']['get']('ai.chat.context.files.enabled'),'urlsEnabled':!0x1!==this['context']['config']['get']('ai.chat.context.urls.enabled')});_0xc7208a&&(_0x4fea00['preventDefault'](),'url'===_0xc7208a['type']?_0x2e0a1b['addUrlToContext'](_0xc7208a['url']):_0x2e0a1b['chatContext']['addFilesToContext'](_0xc7208a['files'],void 0x0,_0xc7208a['type']));}),this['listenTo'](this['_aiChatUi'],'executeCustomItemCallback',(_0x5af7c0,_0x28eede)=>{_0x28eede['callback'](this['context']);}),this['listenTo'](this['_aiChatUi'],'addResourceToContext',(_0x1698ed,_0x1f147b)=>{this['activeConversation']?.['addResourceToContext'](_0x1f147b['source'],_0x1f147b['resource']);}),this['listenTo'](this['_aiChatUi'],'removeContextItem',(_0x5a647a,_0x1356e8)=>{this['_removeFromContext'](_0x1356e8);}),this['listenTo'](this['_aiChatUi'],'loadSourceResources',(_0x4b6e74,_0x350fdf)=>{this['activeConversation']?.['loadSourceResources'](_0x350fdf['sourceId'],_0x350fdf['query'],_0x350fdf['uid']);}),this['listenTo'](this['_aiChatUi'],'toggleWebSearch',()=>{this['_toggleWebSearch']();}),this['listenTo'](this['_aiChatUi'],'toggleReasoning',()=>{this['_toggleReasoning']();}),this['listenTo'](this['_aiChatUi'],'selectModel',(_0x3af770,_0x727d59)=>{this['activeConversation']?.['setModel'](_0x727d59);}),this['listenTo'](this['_aiChatUi'],'like',(_0x4c27ef,{replyId:_0x52a619})=>{console['log']('Liked\x20response',_0x52a619);}),this['listenTo'](this['_aiChatUi'],'dislike',(_0x1b0fd0,{replyId:_0x5083f6})=>{console['log']('Disliked\x20response',_0x5083f6);}),this['listenTo'](this['_aiChatUi'],'insertSuggestion',(_0x572b3a,_0x7df01a)=>{this['_insertSuggestion'](_0x7df01a);}),this['listenTo'](this['_aiChatUi'],'showChangeInText',(_0x5ee237,{replyId:_0x25f79b,partIndex:_0x478fb1})=>{this['_aiChatBalloonShowDiff']=this['_aiChatUi']['showDiff'],this['_openBalloonFor'](_0x25f79b,_0x478fb1);}),this['listenTo'](this['_aiChatUi'],'mouseOverSuggestion',(_0x159de1,{replyId:_0x5bd9ff,partIndex:_0x28596d})=>{const _0xcbff19=this['_getDocumentRangeForReplyChanges'](_0x5bd9ff,_0x28596d);if(!_0xcbff19)return;const {reply:_0x2af5e5}=this['getInteractionAndReplyById'](_0x5bd9ff);'$graveyard'!=_0xcbff19['range']['root']['rootName']&&this['_aiEditing']['showFakeVisualSelection']({'editor':_0x2af5e5['changeGroups'][_0x28596d]['editor'],'ranges':[_0xcbff19['range']],'id':'change-area','priority':0xa});}),this['listenTo'](this['_aiChatUi'],'mouseLeaveSuggestion',()=>{this['_aiEditing']['hideFakeVisualSelection']('change-area');}),this['listenTo'](this['_aiChatUi'],'applySuggestion',(_0x58feee,_0xaa2b7a)=>{this['_aiEditing']['hideFakeVisualSelection']('change-area'),this['_applySuggestion'](_0xaa2b7a);}),this['listenTo'](this['_aiChatUi'],'toggleSuggestionDisplayMode',async(_0x3d0be5,{replyId:_0x18462c,showDiff:_0x3fe922})=>{const {interaction:_0x51ab26,reply:_0x4690da}=this['getInteractionAndReplyById'](_0x18462c),_0x3d73ac=_0x4690da['getContentParts']({'showDiff':_0x3fe922});await this['_aiChatUi']['updateFeedItemAIReplySuggestionContent']({'id':_0x51ab26['id']+':'+_0x4690da['id'],'parts':_0x3d73ac});}),this['listenTo'](this['_aiChatUi'],'rejectSuggestion',(_0x568f17,{replyId:_0x3f3871,partIndex:_0x748ac9})=>{this['_rejectSuggestion']({'replyId':_0x3f3871,'partIndex':_0x748ac9}),this['_aiEditing']['hideFakeVisualSelection']('change-area');}),this['set']('_aiChatBalloonShowDiff',!0x1),this['on']('interactionCreated',(_0x3690d8,_0x412d0d)=>{this['_aiChatUi']['addFeedItemUserMessage'](_0x412d0d);}),this['on']('replyCreated',(_0x474d04,_0x2287dd)=>{this['_addFeedItemReply'](_0x2287dd);});}afterInit(){this['context']instanceof _0x95124b?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x53f0e7,_0x4a484d)=>{_0x4a484d['on']('ready',()=>{this['_integrateEditor'](_0x4a484d);});}),this['context']['config']['get']('ai.chat.context')?.['contextLibrary']?.['enabled']&&this['_setUpContextLibrarySource'](),this['_initConversation']();}async _initConversation(){const _0x29512c=this['context']['config']['get']('ai.chat.initialConversation');let _0x57aecb=_0x29512c;('lastCreated'!=_0x29512c||(_0x57aecb=await this['_getLastCreatedConversationId'](),_0x57aecb))&&('new'==_0x57aecb?await this['_startConversationSafely']():await this['loadConversation'](_0x57aecb));}async destroy(){return this['_stopLastInteraction'](),this['_bodyCollection']['detachFromDom'](),super['destroy']();}async loadConversation(_0x4ea89e){this['_closeActiveBalloon'](),this['context']['plugins']['get'](ea)['view']['activateTab']('chat'),this['_aiChatUi']['setFeedItemRenderingStrategy']('static'),this['_aiChatUi']['toggleLoadingSkeleton'](!0x0),this['_detachFromActiveConversation'](),this['_stopLastInteraction'](),this['_aiChatUi']['toggleConversationLoading'](!0x0);try{this['_aiChatUi']['emptyConversationTitle'](),await this['_aiConnector']['fetchConversation'](_0x4ea89e)['getConversation'](),await this['_startConversationSafely']({'id':_0x4ea89e}),await this['activeConversation']['load'](_0x4ea89e),this['activeConversation']['isCurrentDocumentInConversation']()&&this['addCurrentDocumentToChatContext'](),this['set']('isConversationReady',!0x0),this['activeConversation']?.['currentInteraction']?this['_aiChatUi']['enableControls']():this['_aiChatUi']['toggleConversationLoading'](!0x1);}catch(_0x507d99){this['_aiChatUi']['resetConversationTitle'](),this['_aiChatUi']['addFeedItemError']({'errorMessage':ca(this['context']['locale'],'AI_CHAT_UNABLE_TO_LOAD_CONVERSATION'),'id':_0x4ea89e}),this['_reporter']['logError'](new _0x4242d4('ai-chat-conversation-not-found',this,void 0x0,_0x507d99),{'context':{'operation':'load-conversation'}}),await this['_stopLastInteraction'](),this['_aiChatUi']['disableControls'](),this['set']('isConversationReady',!0x1),this['_aiChatUi']['resetChatBusyStateToIdle'](),this['activeConversation']?.['cancelLastInteractionStream']();}finally{this['_aiChatUi']['startAutoScroll']({'smooth':!0x1}),this['_aiChatUi']['setFeedItemRenderingStrategy']('streaming'),this['_aiChatUi']['toggleLoadingSkeleton'](!0x1);}}registerToolDataCallback(_0x44a4e3){let _0x498c48=null,_0x196bd0=null;this['on']('toolDataReceived',(_0xd705b1,_0x599a53,_0x32627d)=>{_0x32627d['id']!==_0x498c48&&(_0x498c48=_0x32627d['id'],_0x196bd0=this['_getAIChatFeedAPI'](_0x32627d)),_0x44a4e3(_0x599a53,_0x196bd0);});}addCurrentDocumentToChatContext(){ma(this['context'])['length']&&this['activeConversation']?.['addCurrentDocumentToContext'](ca(this['context']['locale'],'AI_CHAT_CONTEXT_CURRENT_DOCUMENT'));}async addSelectionToChatContext(_0x38d224){const _0x358f7f=this['_aiEditing']['getSelectionText'](_0x38d224);this['activeConversation']?.['addSelectionToContext'](_0x358f7f),this['addCurrentDocumentToChatContext']();}removeSelectionFromChatContext(){this['activeConversation']?.['removeSelectionFromContext']();}focusPromptInput(){this['_aiChatUi']['focusPromptInput']();}async startConversation(_0x2720e0){await this['_startConversationSafely']({'modelId':_0x2720e0?.['modelId'],'contexts':_0x2720e0?.['contexts']});}async['sendMessage']({message:_0x387d88,attributes:_0x5e9dcb}){if(!this['activeConversation'])throw new _0x4242d4('ai-chat-controller-no-active-conversation');this['activeConversation']['id']&&this['activeConversation']['isStarted']&&(this['_aiChatUi']['startInteraction'](),await this['activeConversation']['handleUserInteraction']({'userMessage':_0x387d88,'attributes':_0x5e9dcb}));}getGroupId(){const _0x4e6d2b=this['context']['config']['get']('collaboration.channelId');if(!_0x4e6d2b)throw new _0x4242d4('ai-missing-channel-id',this);return _0x4e6d2b;}_handleRemovedConversation(_0xfe2e54){this['activeConversation']['id']===_0xfe2e54&&this['_startConversationSafely']();}['_isGroupReadOnly'](_0x36db74){return!(!_0x36db74['editor']||'destroyed'===_0x36db74['editor']['state']||!_0x36db74['editor']['isReadOnly']);}_isGroupWriteable(_0x2c9b52){return!(!_0x2c9b52['editor']||'destroyed'===_0x2c9b52['editor']['state']||_0x2c9b52['editor']['isReadOnly']);}_computeSuggestionGating(_0x55918f){const _0x210cc0=new Map();for(const _0x111517 of _0x55918f['changeGroups'])_0x210cc0['set'](_0x111517['index'],this['_isGroupReadOnly'](_0x111517));const _0x40203a=new Set(_0x55918f['getContentParts']({'showDiff':this['_aiChatUi']['showDiff']})['filter'](_0x3a0268=>_0x3a0268['hasChanges'])['map'](_0x210a7f=>_0x210a7f['index']));return{'readOnlyByIndex':_0x210cc0,'isAcceptAllEnabled':_0x55918f['changeGroups']['some'](_0xe6e6d2=>'pending'===_0xe6e6d2['state']&&this['_isGroupWriteable'](_0xe6e6d2)&&_0x40203a['has'](_0xe6e6d2['index']))};}_refreshSuggestionGating(){if(this['activeConversation']){for(const _0x169b59 of this['activeConversation']['interactions'])for(const _0x409d5a of _0x169b59['replies'])'modification'===_0x409d5a['type']&&this['_aiChatUi']['hasFeedItem'](_0x409d5a['id'])&&this['_aiChatUi']['setSuggestionGating'](_0x409d5a['id'],this['_computeSuggestionGating'](_0x409d5a));}if(this['_activeBalloon']&&this['_currentPreviewedChangeGroup']){const {reply:_0x45d90c}=this['getInteractionAndReplyById'](this['_currentPreviewedChangeGroup']['replyId']),_0x4500d7=_0x45d90c['changeGroups']['find'](_0x24b72f=>_0x24b72f['index']===this['_currentPreviewedChangeGroup']['partIndex']);_0x4500d7&&this['_activeBalloon']['setTargetReadOnly'](this['_isGroupReadOnly'](_0x4500d7));}}_prepareDocumentSuggestions(_0x349e32){const {reply:_0x52a5d3,interaction:_0xe41a38}=this['getInteractionAndReplyById'](_0x349e32['replyId']),_0x492f01=void 0x0!==_0x349e32['partIndex']?[_0x52a5d3['changeGroups'][_0x349e32['partIndex']]]:_0x52a5d3['changeGroups']['filter'](_0x4137ee=>'pending'===_0x4137ee['state']&&!this['_isGroupReadOnly'](_0x4137ee)),_0xb19a9c=_0x492f01['map'](_0x138f0f=>_0x52a5d3['changeGroups']['indexOf'](_0x138f0f)),_0x2fc85c=pl(_0x52a5d3['changeGroups'],_0x52a5d3['documentContextContent']);return _0xb19a9c['forEach'](_0x1074ec=>{if(_0x2fc85c['has'](_0x1074ec))return;const _0x5ccf93=this['_getDocumentRangeForReplyChanges'](_0x349e32['replyId'],_0x1074ec);_0x5ccf93&&'$graveyard'!=_0x5ccf93['range']['root']['rootName']?(_0x52a5d3['setChangeGroupState'](_0x1074ec,'accepted'),void 0x0!==_0x349e32['partIndex']&&this['_scrollToSuggestionRange'](_0x5ccf93['range'],!0x1,_0x5ccf93['targetEditor'])):_0x52a5d3['setChangeGroupState'](_0x1074ec,'outdated',this['_getOutdatedReason'](_0x52a5d3['changeGroups'][_0x1074ec]));}),Vg({'groups':_0x492f01['filter'](_0x5b90bc=>'accepted'===_0x5b90bc['state']),'documentContextContent':_0x52a5d3['documentContextContent'],'documents':_0xe41a38['getDocumentContext']()?.['documents']??[]});}_insertSuggestion(_0x1a48c7){const _0x73b374=this['context']['plugins']['get'](Op),{reply:_0x4d2428,interaction:_0x271a07}=this['getInteractionAndReplyById'](_0x1a48c7['replyId']),_0x39e2ce=this['_prepareDocumentSuggestions'](_0x1a48c7),_0x1dbb82=Ug({'documentSuggestions':_0x39e2ce,'transform':!0x0,'documentCompare':_0x73b374,'documentCompareOptions':{'markDeletions':!0x0}});for(const [_0x2db68b,_0x4abb4e]of _0x1dbb82){const {editor:_0x56c899,indexes:_0x5b452f}=_0x39e2ce['get'](_0x2db68b);if(!_0x56c899['plugins']['has']('TrackChanges')){_0x53dc7a('ai-no-track-changes',{'editor':_0x56c899});continue;}let _0x151398;ag(_0x4abb4e,'chat'),_0x56c899['model']['change'](_0x12dfb9=>{_0x151398=_0x12dfb9['batch'],_0x56c899['plugins']['get']('TrackChangesEditing')['_applyOperationsAsSuggestions'](_0x4abb4e),this['_aiEditing']['hideFakeVisualSelection']('change-area');}),this['_batchToChanges']['set'](_0x151398,{'interactionId':_0x271a07['id'],'replyId':_0x4d2428['id'],'indexes':_0x5b452f});}this['_updateRatings'](_0x4d2428);}_applySuggestion(_0x57be6b){const _0x28652c=this['context']['plugins']['get'](Op),{reply:_0x2b7fd0,interaction:_0x1acd4c}=this['getInteractionAndReplyById'](_0x57be6b['replyId']),_0x118798=this['_prepareDocumentSuggestions'](_0x57be6b),_0x489f92=Ug({'documentSuggestions':_0x118798,'transform':!0x0,'documentCompare':_0x28652c,'documentCompareOptions':{'markDeletions':!0x1}});for(const [_0x4f482a,_0x14c05b]of _0x489f92){const {editor:_0x676973,indexes:_0x41a3d7}=_0x118798['get'](_0x4f482a);let _0x258fc9;ag(_0x14c05b,'chat');try{_0x676973['model']['change'](_0x25500d=>{_0x258fc9=_0x25500d['batch'],_0x28652c['applyOperations'](_0x25500d,_0x14c05b);}),this['_batchToChanges']['set'](_0x258fc9,{'interactionId':_0x1acd4c['id'],'replyId':_0x2b7fd0['id'],'indexes':_0x41a3d7});}catch(_0x9abb0d){throw this['_reporter']['logError'](new wg({'code':'ai-applying-suggestion-failed','type':'runtime','cause':_0x9abb0d})),_0x9abb0d;}}this['_updateRatings'](_0x2b7fd0);}_rejectSuggestion(_0x2c981c){const {reply:_0x50b34f}=this['getInteractionAndReplyById'](_0x2c981c['replyId']);_0x50b34f['setChangeGroupState'](_0x2c981c['partIndex'],'rejected');}['_openBalloonFor'](_0x1dc65d,_0x169108){if(!this['_hasAIChatBalloon'])return;const {reply:_0x56616e}=this['getInteractionAndReplyById'](_0x1dc65d),_0x1832e8=_0x56616e['getContentParts']({'showDiff':this['_aiChatBalloonShowDiff']});if(!_0x1832e8['length'])return;let _0xd5528c,_0x30b1db;if(void 0x0!==_0x169108?(_0x30b1db=_0x1832e8['find'](_0x1c9fdd=>_0x1c9fdd['index']==_0x169108),_0xd5528c=_0x30b1db?.['index']):(_0x30b1db=_0x1832e8[0x0],_0xd5528c=_0x30b1db['index']),!_0x30b1db)return void _0x56616e['setChangeGroupState'](_0x169108??0x0,'outdated','editor-removed');if(this['_currentPreviewedChangeGroup']?.['replyId']==_0x1dc65d&&this['_currentPreviewedChangeGroup']?.['partIndex']==_0xd5528c)return;const _0x47745a=this['_getUserPresentableContentPartDocumentRange'](_0x1dc65d,_0x56616e,_0x30b1db),_0x17aee5=_0x56616e['changeGroups']['find'](_0x11d013=>_0x11d013['index']==_0xd5528c),_0x5bbcb9=_0x17aee5['editor'],_0x1da91e=_0x5bbcb9['plugins']['get']('AIChatBalloon');if(this['_activeBalloon']&&this['_activeBalloon']!==_0x1da91e&&this['_activeBalloon']['close'](),!_0x47745a)return _0x1da91e['close'](),void(this['_activeBalloon']=void 0x0);this['_activeBalloon']=_0x1da91e,this['_currentPreviewedChangeGroup']={'replyId':_0x1dc65d,'partIndex':_0xd5528c},this['_scrollToSuggestionRange'](_0x47745a,!0x0,_0x5bbcb9);const _0x4db137=this['_getPresentableSiblingContentPartIndex'](_0x1dc65d,_0xd5528c,'next');_0x1da91e['clearContent'](),_0x1da91e['updateContent']({'part':_0x30b1db,'renderingStrategy':'static'}),_0x1da91e['open']({'index':_0xd5528c,'title':ca(this['context']['locale'],'AI_BALLOON_HEADER_TITLE',(_0xd5528c+0x1)['toString']()),'showRotator':null!==_0x4db137,'ranges':[_0x47745a],'areActionsDisabled':_0x56616e['areActionsDisabled'],'targetEditor':_0x5bbcb9,'isTargetReadOnly':this['_isGroupReadOnly'](_0x17aee5)}),_0x1da91e['setState']('pending'),this['_aiChatUi']['scrollFeedToSuggestion'](_0x1dc65d,_0xd5528c),this['_aiChatUi']['setFeedItemAIReplySuggestionPartActive']({'id':_0x1dc65d,'index':_0xd5528c,'isActive':!0x0});}_closeActiveBalloon(){this['_activeBalloon']?.['close'](),this['_activeBalloon']=void 0x0,this['_currentPreviewedChangeGroup']=null;}_getPresentableSiblingContentPartIndex(_0x35eea4,_0x410b91,_0x413984){const {reply:_0x5c52ec}=this['getInteractionAndReplyById'](_0x35eea4),_0x4a18f2=_0x5c52ec['getContentParts']({'showDiff':this['_aiChatBalloonShowDiff']});if(0x1==_0x4a18f2['length'])return null;const _0x19f3a7='next'==_0x413984?0x1:-0x1;function _0x3b03e6(_0x4d5709){const _0x3097c1=(_0x4d5709+_0x19f3a7+_0x4a18f2['length'])%_0x4a18f2['length'];return{'siblingIndex':_0x3097c1,'siblingPart':_0x4a18f2[_0x3097c1]};}const _0x4d1c54=_0x4a18f2['findIndex'](_0x3b985b=>_0x3b985b['index']==_0x410b91);let {siblingIndex:_0xfe2377,siblingPart:_0x135a4d}=_0x3b03e6(_0x4d1c54);for(;!this['_getUserPresentableContentPartDocumentRange'](_0x35eea4,_0x5c52ec,_0x135a4d);)if({siblingIndex:_0xfe2377,siblingPart:_0x135a4d}=_0x3b03e6(_0xfe2377),_0xfe2377===_0x4d1c54)return null;return _0x135a4d['index'];}_getOutdatedReason(_0x50c5a0){return _0x50c5a0?.['editor']&&'destroyed'!==_0x50c5a0['editor']['state']?'content-removed':'editor-removed';}_getUserPresentableContentPartDocumentRange(_0x3ac2f4,_0x4ba79c,_0x2c652f){const _0x48c626=_0x4ba79c['changeGroups'];if(!_0x2c652f['hasChanges'])return null;const _0x12e109=_0x48c626['find'](_0x14cb1e=>_0x14cb1e['index']==_0x2c652f['index']);if('pending'!==_0x12e109?.['state'])return null;if(!_0x12e109?.['editor']||'destroyed'===_0x12e109['editor']['state'])return _0x4ba79c['setChangeGroupState'](_0x2c652f['index'],'outdated',this['_getOutdatedReason'](_0x12e109)),null;const _0x516a80=this['_getDocumentRangeForReplyChanges'](_0x3ac2f4,_0x2c652f['index']);if(!_0x516a80)return _0x4ba79c['setChangeGroupState'](_0x2c652f['index'],'outdated',this['_getOutdatedReason'](_0x12e109)),null;const {range:_0x95caa6,currentIndex:_0x5f57f1}=_0x516a80;return'$graveyard'==_0x95caa6['root']['rootName']?(_0x4ba79c['setChangeGroupState'](_0x5f57f1,'outdated',this['_getOutdatedReason'](_0x12e109)),null):_0x516a80['range'];}_getDocumentRangeForReplyChanges(_0x144c8e,_0x52b8e3){const {reply:_0x270173,interaction:_0x4c3efe}=this['getInteractionAndReplyById'](_0x144c8e),_0x51cf5d=_0x270173['changeGroups']['filter'](_0x227197=>'pending'==_0x227197['state']),_0x9c4385=_0x51cf5d['map'](_0x5a10f4=>_0x270173['changeGroups']['indexOf'](_0x5a10f4));void 0x0===_0x52b8e3&&(_0x52b8e3=_0x9c4385[0x0]);const _0x46c88b=_0x9c4385['indexOf'](_0x52b8e3);if(-0x1==_0x46c88b)return null;const _0x259e8d=_0x51cf5d[_0x46c88b],_0x30dfb9=_0x259e8d['editor'];if(!_0x30dfb9||'destroyed'===_0x30dfb9['state'])return null;const _0x20bada=ll(_0x30dfb9,_0x259e8d['rootName']),_0x58b28=_0x270173['documentContextContent']['get'](_0x259e8d['documentId']),_0x55c729=new uc([]),_0x1617c2=new uc([]);for(const _0x36dc82 of _0x259e8d['changes'])if('removed'!=_0x36dc82['type']&&_0x1617c2['children']['push'](_0x36dc82['node']['cloneNode'](!0x0)),'new'!=_0x36dc82['type']){const _0x460acb=Gc(_0x3f6066=>il(_0x3f6066,'data-id')==_0x36dc82['id'],_0x58b28,!0x0);_0x55c729['children']['push'](_0x460acb['cloneNode'](!0x0));}if(0x0==_0x55c729['children']['length']){if(_0x259e8d['changes'][0x0]['anchorId']){const _0x24258f=zc('data-id',_0x259e8d['changes'][0x0]['anchorId'],_0x58b28);_0x55c729['children']['unshift'](_0x24258f['cloneNode'](!0x0)),_0x1617c2['children']['unshift'](_0x24258f['cloneNode'](!0x0)),_0x24258f['nextSibling']&&(_0x55c729['children']['push'](_0x24258f['nextSibling']['cloneNode'](!0x0)),_0x1617c2['children']['push'](_0x24258f['nextSibling']['cloneNode'](!0x0)));}else{const _0x20b5d0=_0x58b28['children'][0x0];if(!_0x20b5d0)return null;_0x55c729['children']['push'](_0x20b5d0['cloneNode'](!0x0)),_0x1617c2['children']['push'](_0x20b5d0['cloneNode'](!0x0));}}if(_0x20bada&&pl(_0x270173['changeGroups'],_0x270173['documentContextContent'])['has'](_0x259e8d['index']))return null;const _0x845467=_0x4c3efe['getDocumentContext'](),_0x542bfe=_0x845467['documents']['find'](_0x4f3c05=>_0x4f3c05['id']==_0x259e8d['documentId'])['content'],_0xb330a5=_0x30dfb9['model']['document']['getRoot'](_0x259e8d['rootName']),_0x2e67f0=_0x30dfb9['data']['parse'](_0x542bfe,_0xb330a5),_0x19c968=_0x20bada?dl(Wc(_0x55c729)):Wc(_0x55c729),_0x4361c6=_0x30dfb9['data']['parse'](_0x19c968,_0xb330a5),_0x2ef06c=_0x30dfb9['data']['parse'](_0x19c968,_0xb330a5),_0x86a0eb=_0x30dfb9['model']['createPositionAt'](_0x4361c6,0x0),_0x47e163=_0x20bada?dl(Wc(_0x1617c2)):Wc(_0x1617c2),_0x1f1763={'targetEditor':_0x30dfb9,'anchor':_0x86a0eb,'markDeletions':!0x1};let _0x35cc59;try{_0x35cc59=_0x30dfb9['plugins']['get'](Op)['getDiff'](_0x19c968,_0x47e163,_0x1f1763)['getOperations']();}catch(_0x19642d){return this['_reporter']['reportError'](new wg({'code':'ai-chat-suggestion-diff-failed','type':'runtime','severity':'warning','cause':_0x19642d,'context':{'replyId':_0x144c8e,'partIndex':_0x52b8e3}})),null;}if(!_0x35cc59['length'])return null;_0x30dfb9['model']['change'](_0x3ea6b3=>{for(const _0x5b3f2a of _0x35cc59)if(!Vm(_0x5b3f2a)){if('remove'==_0x5b3f2a['type']){const _0x1263b1=_0x5b3f2a['sourcePosition'],_0x13bb8c=_0x5b3f2a['howMany'],_0x2fe74f=new _0x44a63a(_0x1263b1,_0x13bb8c);_0x3ea6b3['batch']['addOperation'](_0x2fe74f),_0x30dfb9['model']['applyOperation'](_0x2fe74f);}else'marker'!==_0x5b3f2a['type']&&(_0x5b3f2a['baseVersion']=null,_0x5b3f2a['isDocumentOperation']=!0x1,_0x3ea6b3['batch']['addOperation'](_0x5b3f2a),_0x30dfb9['model']['applyOperation'](_0x5b3f2a));}});const _0x4c327c=eg(_0x30dfb9,_0x35cc59,_0x4361c6);sg(_0x30dfb9['model'],_0x4c327c);const _0x2e953e=_0x4c327c['getFirstRange']()['start']['path']['slice'](),_0x2eba5a=_0x4c327c['getFirstRange']()['end']['path']['slice'](),_0x45afce=[];let _0x52f55f=_0x4361c6,_0x2a5747=_0x2ef06c;for(let _0x4c6a2d=0x0;_0x4c6a2d<_0x2eba5a['length'];_0x4c6a2d++){const _0x28e4e9=_0x52f55f['maxOffset']-_0x2eba5a[_0x4c6a2d];_0x45afce[_0x4c6a2d]=_0x2a5747['maxOffset']-_0x28e4e9,_0x52f55f=_0x52f55f['getChildAtOffset'](_0x2eba5a[_0x4c6a2d]),_0x2a5747=_0x2a5747['getChildAtOffset'](_0x45afce[_0x4c6a2d]);}const _0x31e073=_0x30dfb9['model']['createRange'](_0x30dfb9['model']['createPositionFromPath'](_0x2ef06c,_0x2e953e),_0x30dfb9['model']['createPositionFromPath'](_0x2ef06c,_0x45afce)),_0x37e5d7=_0x31e073['start']['path']['slice'](),_0x2d0fe3=_0x31e073['end']['path']['slice']();if(!_0x20bada){const _0x2fcfc5=_0x2ef06c['getChild'](0x0)['getAttribute'](pp),_0x4e9354=Array['from'](_0x2e67f0['getChildren']())['find'](_0x5ca4d4=>_0x5ca4d4['getAttribute'](pp)==_0x2fcfc5)['getPath']();_0x37e5d7[0x0]=_0x4e9354[0x0]+_0x37e5d7[0x0],_0x2d0fe3[0x0]=_0x4e9354[0x0]+_0x2d0fe3[0x0];}let _0x4fc0c1=_0x30dfb9['model']['createRange'](_0x30dfb9['model']['createPositionFromPath'](_0x30dfb9['model']['document']['getRoot'](_0x259e8d['rootName']),_0x37e5d7),_0x30dfb9['model']['createPositionFromPath'](_0x30dfb9['model']['document']['getRoot'](_0x259e8d['rootName']),_0x2d0fe3));const _0x1ac8c3=_0x845467['documents']['find'](_0xcdc5c2=>_0xcdc5c2['id']==_0x259e8d['documentId'])['version'],_0x446f14=_0x30dfb9['model']['document']['history']['getOperations'](_0x1ac8c3);for(const _0x4fc4e5 of _0x446f14)_0x4fc0c1=_0x45ca57['_createFromRanges'](_0x4fc0c1['getTransformedByOperation'](_0x4fc4e5));return{'range':_0x4fc0c1,'currentIndex':_0x52b8e3,'targetEditor':_0x30dfb9};}_integrateEditorBalloon(_0x465960){if(!_0x465960['plugins']['has']('AIChatBalloon'))return;const _0x538581=_0x465960['plugins']['get']('AIChatBalloon');this['_hasAIChatBalloon']=!0x0,_0x538581['bind']('showDiff')['to'](this,'_aiChatBalloonShowDiff'),this['listenTo'](_0x538581,'toggleSuggestionDisplayMode',()=>{const {replyId:_0x4b6387,partIndex:_0x469539}=this['_currentPreviewedChangeGroup'];this['_aiChatBalloonShowDiff']=!this['_aiChatBalloonShowDiff'];const {reply:_0x4f54cb}=this['getInteractionAndReplyById'](_0x4b6387),_0x1e4f1e=_0x4f54cb['getContentParts']({'showDiff':this['_aiChatBalloonShowDiff'],'groupIndex':_0x469539});_0x538581['updateContent']({'part':_0x1e4f1e[0x0],'renderingStrategy':'static','keepErrors':!0x0});}),this['listenTo'](_0x538581,'applySuggestion',()=>{const {replyId:_0x42abdf,partIndex:_0x1b64ba}=this['_currentPreviewedChangeGroup'];this['_applySuggestion']({'replyId':_0x42abdf,'partIndex':_0x1b64ba}),_0x538581['setState']('accepted');}),this['listenTo'](_0x538581,'insertSuggestion',()=>{const {replyId:_0x179ef5,partIndex:_0x6ee665}=this['_currentPreviewedChangeGroup'];this['_insertSuggestion']({'replyId':_0x179ef5,'partIndex':_0x6ee665}),_0x538581['setState']('accepted');}),this['listenTo'](_0x538581,'rejectSuggestion',()=>{const {replyId:_0x86d404,partIndex:_0x1fb3ed}=this['_currentPreviewedChangeGroup'];this['_rejectSuggestion']({'replyId':_0x86d404,'partIndex':_0x1fb3ed}),_0x538581['setState']('rejected');}),this['listenTo'](_0x538581,'showNext',()=>{const {replyId:_0x22e1dc,partIndex:_0x29b282}=this['_currentPreviewedChangeGroup'],_0x5c98e1=this['_getPresentableSiblingContentPartIndex'](_0x22e1dc,_0x29b282,'next');null!==_0x5c98e1&&this['_openBalloonFor'](_0x22e1dc,_0x5c98e1);}),this['listenTo'](_0x538581,'showPrevious',()=>{const {replyId:_0x5519d1,partIndex:_0x3dc1b9}=this['_currentPreviewedChangeGroup'],_0x36c8e1=this['_getPresentableSiblingContentPartIndex'](_0x5519d1,_0x3dc1b9,'previous');null!==_0x36c8e1&&this['_openBalloonFor'](_0x5519d1,_0x36c8e1);}),this['listenTo'](_0x538581,'dialogClosed',(_0x540d4f,{id:_0xe8e9b0})=>{if('aiChatBalloon'!==_0xe8e9b0)return;const {replyId:_0x55374c,partIndex:_0x52de1e}=this['_currentPreviewedChangeGroup'];this['_currentPreviewedChangeGroup']=null,this['_aiChatUi']['setFeedItemAIReplySuggestionPartActive']({'id':_0x55374c,'index':_0x52de1e,'isActive':!0x1}),this['_activeBalloon']===_0x538581&&(this['_activeBalloon']=void 0x0);});}_integrateEditor(_0x299eb8){if(this['_channelsToEditors']['set'](_0x299eb8['config']['get']('collaboration.channelId'),_0x299eb8),this['_integrateEditorBalloon'](_0x299eb8),this['addCurrentDocumentToChatContext'](),this['listenTo'](_0x299eb8,'change:isReadOnly',()=>this['_refreshSuggestionGating']()),_0x299eb8['once']('destroy',()=>{this['_checkRemoveCurrentDocumentFromChatContext']();}),_0x299eb8['plugins']['has']('Undo')){const _0xeeba72=_0x299eb8['commands']['get']('undo'),_0x5aca0f=_0x299eb8['commands']['get']('redo');this['listenTo'](_0xeeba72,'revert',(_0x1f49eb,_0x57f443,_0x53fcb6)=>{const _0x38ee53=this['_batchToChanges']['get'](_0x57f443);if(!_0x38ee53)return;const _0x9740c0=this['activeConversation']['getInteraction'](_0x38ee53['interactionId']),_0x395b96=_0x9740c0?.['getReply'](_0x38ee53['replyId']);this['_batchToChanges']['delete'](_0x57f443),_0x9740c0&&_0x395b96&&(_0x38ee53['indexes']['forEach'](_0x4c184e=>_0x395b96['setChangeGroupState'](_0x4c184e,'pending')),this['_batchToChanges']['set'](_0x53fcb6,_0x38ee53));}),this['listenTo'](_0x5aca0f,'revert',(_0x569fae,_0x5c6998,_0x53bcb5)=>{const _0x839df1=this['_batchToChanges']['get'](_0x5c6998);if(!_0x839df1)return;const _0x50a3ef=this['activeConversation']['getInteraction'](_0x839df1['interactionId']),_0x1e3ce1=_0x50a3ef?.['getReply'](_0x839df1['replyId']);this['_batchToChanges']['delete'](_0x5c6998),_0x50a3ef&&_0x1e3ce1&&(_0x839df1['indexes']['forEach'](_0x34d359=>_0x1e3ce1['setChangeGroupState'](_0x34d359,'accepted')),this['_batchToChanges']['set'](_0x53bcb5,_0x839df1));});}const _0x393821=_0x299eb8['config']['get']('ai.chat.context');_0x393821['alwaysAddSelection']&&_0x393821['document']['enabled']&&this['listenTo'](_0x299eb8['model']['document']['selection'],'change:range',(_0x10add5,_0x53cb50)=>{_0x53cb50['directChange']&&'chat'===_0x299eb8['plugins']['get']('AITabs')['view']['activeTab']&&(_0x299eb8['model']['hasContent'](_0x299eb8['model']['document']['selection'])?this['addSelectionToChatContext'](_0x299eb8):this['removeSelectionFromChatContext']());});}async _getLastCreatedConversationId(){const _0x3d7a57=this['_aiConnector']['fetchConversations'](this['getGroupId'](),{'limit':0x1,'sortBy':'createdAt'});try{const _0x2d3bf5=await _0x3d7a57['getConversations']();return _0x2d3bf5['length']?_0x2d3bf5[0x0]['id']:'new';}catch(_0xff9791){return this['_aiChatUi']['addFeedItemError']({'errorMessage':ca(this['context']['locale'],'AI_CHAT_UNABLE_TO_LOAD_CONVERSATION'),'id':_0xea66bb()}),this['_reporter']['logError'](new _0x4242d4('ai-chat-conversation-init-failed',this,{'error':_0xff9791})),this['_aiChatUi']['toggleLoadingSkeleton'](!0x1),this['_aiChatUi']['disableControls'](),null;}}async _startConversationSafely(_0x98623e={}){this['set']('isConversationReady',!0x1);try{await this['_handleStartConversation'](_0x98623e),_0x98623e['id']||this['set']('isConversationReady',!0x0);}catch(_0x521b74){this['_aiChatUi']['addFeedItemError']({'errorMessage':ca(this['context']['locale'],'AI_CHAT_UNABLE_TO_START_CONVERSATION'),'id':_0x98623e['id']||_0xea66bb()}),this['_reporter']['logError'](_0x521b74),this['activeConversation']=void 0x0,this['_aiChatUi']['disableControls']();}}_detachFromActiveConversation(){this['_aiChatUi']['setIsUploadInProgress'](!0x1),this['activeConversation']&&this['stopListening'](this['activeConversation']);}async _handleStartConversation({id:_0x58c5f9,modelId:_0x502cfa,contexts:_0x5eab05}={}){this['_detachFromActiveConversation'](),this['_closeActiveBalloon']();let _0x289744=_0x502cfa;_0x289744||(_0x58c5f9||!this['activeConversation']?_0x289744=this['context']['config']['get']('ai.models.defaultModelId'):this['_aiChatUi']['isModelAvailable']&&(_0x289744=this['activeConversation']['selectedModel']?.['id'])),this['_stopLastInteraction']();const _0x2f0b79=this['getGroupId'](),_0xd5a974=_0x58c5f9||_0xea66bb(),_0x5aaa4f=await this['_aiModels']['getAvailableModels']();let _0x14f4ba;this['activeConversation']=new jg({'connector':this['_aiConnector'],'chatModels':this['_aiModels'],'selectedModelId':_0x289744,'conversationId':_0xd5a974,'group':_0x2f0b79,'locale':this['context']['locale'],'isFromHistory':!!_0x58c5f9,'channelsToEditors':this['_channelsToEditors'],'contextLibrary':this['_aiContextLibrary'],'extraContexts':_0x5eab05,'getSessionId':_0x32ad1c=>this['_aiEditing']['getSessionId'](_0x32ad1c),'aiEditing':this['_aiEditing']}),this['activeConversation']['delegate']('toolDataReceived','interactionCreated','interactionStarted','replyCreated')['to'](this),this['listenTo'](this['activeConversation'],'conversationInitialized',()=>{this['_aiChatUi']['createConversation']({'availableModels':_0x5aaa4f}),this['_aiChatUi']['resetMessageInput'](),this['_aiChatUi']['clearPendingContextUI'](),this['_aiChatUi']['clearConversationContextUI'](),_0x58c5f9||(this['_aiChatUi']['resetConversationTitle'](),this['addCurrentDocumentToChatContext']());}),this['listenTo'](this['activeConversation'],'uploadProgressChanged',(_0x596ddc,_0x45e603)=>{this['_aiChatUi']['setIsUploadInProgress'](_0x45e603['isUploadInProgress']);}),this['listenTo'](this['activeConversation'],'webSearchStarted',()=>{const _0x29ca9b=this['_aiChatUi']['prepareLoadingMessage']({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this['_aiChatUi']['setLoadingMessage'](_0x29ca9b);}),this['listenTo'](this['activeConversation'],'reasoningStarted',()=>{const _0x2137cd=this['_aiChatUi']['prepareLoadingMessage']({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this['_aiChatUi']['setLoadingMessage'](_0x2137cd);}),this['listenTo'](this['activeConversation'],'webSearchFinished',(_0x1964a1,_0xde9aef)=>{this['_aiChatUi']['addFeedInteractionHeader'](_0xde9aef,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this['listenTo'](this['activeConversation'],'reasoningFinished',(_0x142a22,_0x4f4b8d)=>{this['_aiChatUi']['addFeedInteractionHeader'](_0x4f4b8d,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this['listenTo'](this['activeConversation'],'interactionStarted',()=>{this['_aiChatUi']['startInteraction']();}),this['listenTo'](this['activeConversation'],'interactionFinished',async()=>{this['_updateReplyContentThrottled']['flush'](),await this['_aiChatUi']['finishInteraction']();}),this['listenTo'](this['activeConversation'],'interactionDestroyed',(_0x1c4f31,_0xb641ba)=>{this['_aiChatUi']['removeFeedInteraction'](_0xb641ba['id']);}),this['listenTo'](this['activeConversation'],'setConversationTitle',(_0x480522,_0x118c65,_0x1f422e)=>{this['_updateConversationTitle'](_0x118c65,_0x1f422e);}),this['listenTo'](this['activeConversation'],'replyContentUpdated',async(_0x391643,_0x441dd9)=>{void 0x0!==_0x14f4ba&&_0x14f4ba!==_0x441dd9['id']&&this['_updateReplyContentThrottled']['flush'](),_0x14f4ba=_0x441dd9['id'],_0x441dd9['isFromHistory']?await this['_updateReplyContent']({'reply':_0x441dd9}):await this['_updateReplyContentThrottled']({'reply':_0x441dd9});}),this['listenTo'](this['activeConversation'],'replyChangeGroupStateUpdated',(_0x4d2330,{reply:_0x2dfb5c,index:_0x4fb3b4,state:_0x87fa0e,outdatedReason:_0x89831})=>{this['_aiChatUi']['updateFeedItemAIReplySuggestionPartState']({'id':_0x2dfb5c['id'],'index':_0x4fb3b4,'state':_0x87fa0e,'outdatedReason':_0x89831}),this['_aiChatUi']['hasFeedItem'](_0x2dfb5c['id'])&&this['_aiChatUi']['setSuggestionGating'](_0x2dfb5c['id'],this['_computeSuggestionGating'](_0x2dfb5c)),this['_currentPreviewedChangeGroup']?.['replyId']['includes'](_0x2dfb5c['id'])&&this['_currentPreviewedChangeGroup']?.['partIndex']==_0x4fb3b4&&this['_activeBalloon']?.['setState'](_0x87fa0e,_0x89831);}),this['listenTo'](this['activeConversation'],'contextItemAdded',(_0x4ff7d3,_0x53530e)=>{if(this['_aiChatUi']['addContextItem'](_0x53530e['contextItem'],_0x53530e['isLoading']),'selection'===_0x53530e['contextItem']['type']){const _0x45bd1d=pa(this['context']),_0x1dc5f2=[..._0x45bd1d['model']['document']['selection']['getRanges']()];this['_aiEditing']['showFakeVisualSelection']({'editor':_0x45bd1d,'ranges':_0x1dc5f2,'id':'context','priority':0x1});}}),this['listenTo'](this['activeConversation'],'contextItemRemoved',(_0x586132,_0xb3facb)=>{this['_aiChatUi']['removeContextItem'](_0xb3facb['uiId']),'current-document'==_0xb3facb['uiId']&&this['removeSelectionFromChatContext'](),'selection'===_0xb3facb['type']&&this['_aiEditing']['hideFakeVisualSelection']('context');}),this['listenTo'](this['activeConversation'],'contextItemLoadingEnded',(_0x58a093,_0x1468fc)=>{this['_aiChatUi']['setContextItemLoading'](_0x1468fc['contextItem']['uiId'],_0x1468fc['isLoading']);}),this['listenTo'](this['activeConversation'],'contextSent',(_0x63be75,_0x49d5dc)=>{this['_aiChatUi']['setConversationContext'](_0x49d5dc['contextItems']);}),this['listenTo'](this['activeConversation'],'addContextOptionsChanged',(_0x5a0b9a,_0x16c0a3)=>{this['_aiChatUi']['setAddContextOptions'](_0x16c0a3['options']);}),this['listenTo'](this['activeConversation'],'sourceResourcesLoaded',(_0x388ab3,_0x2280b9)=>{this['_aiChatUi']['populateSourceResourceBalloon'](_0x2280b9['sourceId'],_0x2280b9['source'],_0x2280b9['resources'],_0x2280b9['uid']);}),this['listenTo'](this['activeConversation'],'resourceStateChanged',(_0x32032b,_0x52a847)=>{this['_aiChatUi']['updateResourceState'](_0x52a847['sourceId'],_0x52a847['resourceId'],_0x52a847['isInContext']);}),this['listenTo'](this['activeConversation'],'capabilitiesUpdated',(_0x2475d7,_0x426f7a)=>{this['_aiChatUi']['updateCapabilities'](_0x426f7a);}),this['listenTo'](this['activeConversation'],'modelSelected',(_0x3d2ffd,_0x3cb900)=>{this['_aiChatUi']['setSelectedModel'](_0x3cb900['selectedModel']??null,_0x3cb900['isDisabled']);}),this['listenTo'](this['activeConversation'],'error',async(_0x6c364,{error:_0xb368bc,interactionId:_0x4ba2fd,fileName:_0x22b134,url:_0xd8a1f5,sourceId:_0x5447be,sourceLabel:_0x483d3d})=>{let _0x5feb95;const _0x13dc09=_0x4ba2fd?_0x4ba2fd+':'+_0xea66bb():_0xea66bb();this['_reporter']['reportError'](_0xb368bc),this['_aiChatUi']['startAutoScroll'](),_0xb368bc['message']['startsWith']('ai-request-aborted')?(this['_cancelProcessing'](),this['activeConversation']?.['cancelLastInteractionStream'](),_0x5feb95=this['_aiChatUi']['addFeedItemStaticMessage']({'staticMessage':ca(this['context']['locale'],'AI_CHAT_ABORTED_MESSAGE'),'id':_0x13dc09})):_0xb368bc['message']['startsWith']('ai-chat-conversation-init-failed')||_0xb368bc['message']['startsWith']('ai-chat-conversation-start-failed')?_0x5feb95=this['_aiChatUi']['addFeedItemError']({'errorMessage':ca(this['context']['locale'],'AI_CHAT_UNABLE_TO_START_CONVERSATION'),'id':_0x13dc09}):_0xb368bc['message']['startsWith']('ai-chat-file-upload-failed')?_0x5feb95=this['_aiChatUi']['addFeedItemError']({'errorMessage':ca(this['context']['locale'],'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE',_0x22b134),'id':_0x13dc09}):_0xb368bc['message']['startsWith']('ai-chat-url-upload-failed')?_0x5feb95=this['_aiChatUi']['addFeedItemError']({'errorMessage':ca(this['context']['locale'],'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL',_0xd8a1f5),'id':_0x13dc09}):_0xb368bc['message']['startsWith']('ai-chat-context-invalid-data')?_0x5feb95=this['_aiChatUi']['addFeedItemError']({'errorMessage':ca(this['context']['locale'],'AI_CHAT_CONTEXT_INVALID_DATA'),'id':_0x13dc09}):_0xb368bc['message']['startsWith']('ai-chat-context-unsupported-type')?_0x5feb95=this['_aiChatUi']['addFeedItemError']({'errorMessage':ca(this['context']['locale'],'AI_CHAT_CONTEXT_UNSUPPORTED_TYPE'),'id':_0x13dc09}):_0xb368bc['message']['startsWith']('ai-chat-source-resources-load-failed')?(_0x5447be&&this['_aiChatUi']['closeSourceResourceBalloon'](_0x5447be),_0x5feb95=this['_aiChatUi']['addFeedItemError']({'errorMessage':ca(this['context']['locale'],'AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES',_0x483d3d||'source'),'id':_0x13dc09})):_0xb368bc['message']['startsWith']('ai-chat-resource-load-failed')?_0x5feb95=this['_aiChatUi']['addFeedItemError']({'errorMessage':ca(this['context']['locale'],'AI_CHAT_RESOURCE_LOAD_FAILED'),'id':_0x13dc09}):_0xb368bc['message']['startsWith']('ai-chat-invalid-request')?_0x5feb95=this['_aiChatUi']['addFeedItemError']({'errorMessage':ca(this['context']['locale'],'AI_CHAT_INVALID_REQUEST'),'id':_0x13dc09}):_0xb368bc['message']['startsWith']('ai-chat-context-unsupported-file-type')?_0x5feb95=this['_aiChatUi']['addFeedItemError']({'errorMessage':ca(this['context']['locale'],'AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE'),'id':_0x13dc09}):_0xb368bc['message']['startsWith']('ai-chat-context-file-too-large')?_0x5feb95=this['_aiChatUi']['addFeedItemError']({'errorMessage':ca(this['context']['locale'],'AI_CHAT_CONTEXT_FILE_TOO_LARGE'),'id':_0x13dc09}):_0xb368bc['message']['startsWith']('ai-chat-context-file-too-many-pages')?_0x5feb95=this['_aiChatUi']['addFeedItemError']({'errorMessage':ca(this['context']['locale'],'AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES'),'id':_0x13dc09}):_0xb368bc['message']['startsWith']('ai-chat-context-form-data-size-limits-exceeded')?_0x5feb95=this['_aiChatUi']['addFeedItemError']({'errorMessage':ca(this['context']['locale'],'AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED'),'id':_0x13dc09}):(this['_cancelProcessing'](),_0x5feb95=this['_aiChatUi']['addFeedItemError']({'errorMessage':ca(this['context']['locale'],'AI_CHAT_GENERIC_ERROR'),'id':_0x13dc09}));try{await Promise['race']([_0x5feb95,this['_aiChatUi']['idleUiPromise']]);}finally{this['_aiChatUi']['isBusy']||this['_aiChatUi']['stopAutoScroll']();}}),await this['activeConversation']['init'](this['_buildConversationContextConfig']()),_0x58c5f9||(await this['activeConversation']['start'](),this['_aiChatUi']['enableControls']());}_buildConversationContextConfig(){const _0xc445f4=this['context']['config']['get']('ai.chat.context');return this['_contextLibrarySource']?{..._0xc445f4,'sources':[..._0xc445f4?.['sources']??[],this['_contextLibrarySource']]}:_0xc445f4;}async _setUpContextLibrarySource(){const _0x1a80ee=await this['_createContextLibrarySource']();_0x1a80ee&&(this['_contextLibrarySource']=_0x1a80ee,this['activeConversation']&&this['activeConversation']['chatContext']['addContextSource'](_0x1a80ee));}async _createContextLibrarySource(){let _0xcbc08e;try{_0xcbc08e=await this['_aiContextLibrary']['getAvailableContexts']();}catch{return null;}if(!_0xcbc08e['length'])return null;const _0x281741=_0xcbc08e['map'](_0x1470c3=>({'id':_0x1470c3['id'],'type':'context','label':_0x1470c3['name']||_0x1470c3['id']}));return{'id':'ck-ai-context-library','label':ca(this['context']['locale'],'AI_CHAT_CONTEXT_LIBRARY_LABEL'),'useDefaultFiltering':!0x0,'getResources':()=>Promise['resolve'](_0x281741)};}_removeFromContext(_0x3282e0){this['activeConversation']?.['removeFromContext'](_0x3282e0);}_toggleWebSearch(){this['activeConversation']?.['toggleWebSearch']();}_toggleReasoning(){this['activeConversation']?.['toggleReasoning']();}getInteractionAndReplyById(_0x1fcdf7){const [_0x4bff34,_0x5f0082]=_0x1fcdf7['split'](':'),_0x5685d3=this['activeConversation']['getInteraction'](_0x4bff34);return{'interaction':_0x5685d3,'reply':_0x5685d3['getReply'](_0x5f0082)};}_scrollToSuggestionRange(_0x131f7c,_0x38d403=!0x1,_0x3f4685){const _0x380838={'target':_0x3f4685['editing']['view']['domConverter']['viewRangeToDom'](_0x3f4685['editing']['mapper']['toViewRange'](_0x131f7c)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x38d403};_0x38d403&&(_0x380838['alignToTop']=!0x0),_0xc72d5d(_0x380838);}_updateConversationTitle(_0x10c2a2,_0x47a47f=!0x1){this['_aiChatUi']['setConversationTitle'](_0x10c2a2||ca(this['context']['locale'],'AI_CHAT_UNTITLED_CONVERSATION'),_0x47a47f);}_addFeedItemReply(_0x1ff904){'text'===_0x1ff904['type']?this['_aiChatUi']['addFeedItemAIReply'](_0x1ff904):this['_aiChatUi']['addFeedItemAISuggestion'](_0x1ff904);}async _updateReplyContent({reply:_0x587100,renderingStrategy:_0x3eebc5}){const {id:_0x44a0b8,interactionId:_0x4f4225,isDone:_0x406df0,type:_0x2053ba,parsedContent:_0x4228cd}=_0x587100,_0x1c3315=_0x4f4225+':'+_0x44a0b8;if('modification'===_0x2053ba){const _0x1aee16=_0x587100['getContentParts']({'showDiff':this['_aiChatUi']['showDiff']});await this['_aiChatUi']['updateFeedItemAIReplySuggestionContent']({'id':_0x1c3315,'parts':_0x1aee16,'isDone':_0x406df0,'skipLoadingEffects':_0x587100['isFromHistory']}),this['_aiChatUi']['hasFeedItem'](_0x587100['id'])&&this['_aiChatUi']['setSuggestionGating'](_0x587100['id'],this['_computeSuggestionGating'](_0x587100));}else'text'===_0x2053ba&&await this['_aiChatUi']['updateFeedItemAIReplyContent']({'id':_0x1c3315,'parsedContent':_0x4228cd['get']('text'),'renderingStrategy':_0x3eebc5,'isDone':_0x406df0});_0x406df0&&_0x587100['sources']['length']>0x0&&this['_aiChatUi']['updateFeedItemAIReplySources'](_0x1c3315,_0x587100['sources']);}_updateReplyContentThrottled=_r(this['_updateReplyContent']['bind'](this),0xc8);_stopLastInteraction(){this['activeConversation']?.['stopProcessing'](),this['_aiChatUi']['stopInteraction'](this['activeConversation']?.['lastInteraction']),this['_updateReplyContentThrottled']['cancel']();}async _flushLastInteractionUI(){const _0x1c4bfb=this['activeConversation']?.['lastInteraction'];if(_0x1c4bfb){for await(const _0x113f75 of _0x1c4bfb['replies'])this['_aiChatUi']['hasFeedItem'](_0x113f75['id'])||this['_addFeedItemReply'](_0x113f75),await this['_updateReplyContent']({'reply':_0x113f75,'renderingStrategy':'static'});}}async['_cancelProcessing'](){this['_stopLastInteraction'](),await this['_flushLastInteractionUI'](),this['removeSelectionFromChatContext']();}_updateRatings(_0x3a89a2){const _0x2d6b04={'positiveCount':_0x3a89a2['changeGroups']['filter'](_0x1ccad8=>'accepted'===_0x1ccad8['state'])['length'],'totalCount':_0x3a89a2['changeGroups']['length'],'modificationId':_0x3a89a2['id']},_0x218db4=this['activeConversation']['getInteraction'](_0x3a89a2['interactionId'])['messageId'];_0x218db4&&this['_aiConnector']['upsertAIChatRating'](this['activeConversation']['id'],_0x218db4,_0x2d6b04);}_getAIChatFeedAPI(_0x55d2ea){const _0x3383b8=this['_aiChatUi'],_0x18ccb9=()=>{_0x55d2ea['resetWebSearchState'](),_0x55d2ea['resetReasoningState'](),_0x3383b8['clearLoadingMessage']();},_0x41e528=()=>{_0x55d2ea['currentReply']&&(_0x55d2ea['currentReply']['done'](),_0x55d2ea['currentReply']=void 0x0);};return{'insertTextReply':(_0x5493d5,_0x3fd80c)=>{_0x41e528(),_0x18ccb9();const _0x3f0882=_0x55d2ea['currentReply']=_0x55d2ea['createReply']({'type':'text','interactionId':_0x55d2ea['id'],'id':_0x3fd80c||_0xea66bb(),'channelsToEditors':this['_channelsToEditors']});return _0x3f0882['appendContent'](_0x5493d5),_0x41e528(),_0x3f0882;},'insertCustomElement':async(_0x48bc93,_0x2f275c)=>(_0x41e528(),_0x18ccb9(),_0x3383b8['addFeedItemCustomElement'](_0x48bc93,_0x2f275c||_0xea66bb())),'setLoadingMessage':_0x194853=>{_0x3383b8['setLoadingMessage'](_0x194853);},'clearLoadingMessage':()=>{_0x3383b8['clearLoadingMessage']();}};}_checkRemoveCurrentDocumentFromChatContext(){ma(this['context'])['find'](_0x7d7cea=>'destroyed'!==_0x7d7cea['state'])||(this['activeConversation']?.['removeFromContext']('current-document'),this['activeConversation']?.['toggleAddCurrentDocumentOptionVisibility'](!0x1));}};const Fg=['showChangeInText','insertSuggestion','applySuggestion','rejectSuggestion','mouseOverSuggestion','mouseLeaveSuggestion','toggleSuggestionDisplayMode','like','dislike'],Zg=[...Fg,'startConversation','sendUserMessage','promptInputPaste','abortPromptStream','addDocumentToContext','addFileToContext','addUrlToContext','executeCustomItemCallback','addResourceToContext','removeContextItem','loadSourceResources','toggleWebSearch','toggleReasoning','selectModel'];var Gg,Xg='undefined'==typeof document?void 0x0:document,qg=!!Xg&&'content'in Xg['createElement']('template'),Wg=!!Xg&&Xg['createRange']&&'createContextualFragment'in Xg['createRange']();function zg(_0x3cead7){return _0x3cead7=_0x3cead7['trim'](),qg?function(_0x992d34){var _0x858bb6=Xg['createElement']('template');return _0x858bb6['innerHTML']=_0x992d34,_0x858bb6['content']['childNodes'][0x0];}(_0x3cead7):Wg?function(_0xa7eaea){return Gg||(Gg=Xg['createRange']())['selectNode'](Xg['body']),Gg['createContextualFragment'](_0xa7eaea)['childNodes'][0x0];}(_0x3cead7):function(_0x5286eb){var _0x2a2698=Xg['createElement']('body');return _0x2a2698['innerHTML']=_0x5286eb,_0x2a2698['childNodes'][0x0];}(_0x3cead7);}function Yg(_0x2a750d,_0x1a6ab2){var _0x274cbb,_0x2cc7f5,_0x2d96fe=_0x2a750d['nodeName'],_0x40d895=_0x1a6ab2['nodeName'];return _0x2d96fe===_0x40d895||(_0x274cbb=_0x2d96fe['charCodeAt'](0x0),_0x2cc7f5=_0x40d895['charCodeAt'](0x0),_0x274cbb<=0x5a&&_0x2cc7f5>=0x61?_0x2d96fe===_0x40d895['toUpperCase']():_0x2cc7f5<=0x5a&&_0x274cbb>=0x61&&_0x40d895===_0x2d96fe['toUpperCase']());}function Kg(_0x132f34,_0x183d15,_0x48265c){_0x132f34[_0x48265c]!==_0x183d15[_0x48265c]&&(_0x132f34[_0x48265c]=_0x183d15[_0x48265c],_0x132f34[_0x48265c]?_0x132f34['setAttribute'](_0x48265c,''):_0x132f34['removeAttribute'](_0x48265c));}var Jg={'OPTION':function(_0xb14d3b,_0x59c812){var _0x16a7d6=_0xb14d3b['parentNode'];if(_0x16a7d6){var _0x30f35a=_0x16a7d6['nodeName']['toUpperCase']();'OPTGROUP'===_0x30f35a&&(_0x30f35a=(_0x16a7d6=_0x16a7d6['parentNode'])&&_0x16a7d6['nodeName']['toUpperCase']()),'SELECT'!==_0x30f35a||_0x16a7d6['hasAttribute']('multiple')||(_0xb14d3b['hasAttribute']('selected')&&!_0x59c812['selected']&&(_0xb14d3b['setAttribute']('selected','selected'),_0xb14d3b['removeAttribute']('selected')),_0x16a7d6['selectedIndex']=-0x1);}Kg(_0xb14d3b,_0x59c812,'selected');},'INPUT':function(_0x1e9e26,_0x444b2a){Kg(_0x1e9e26,_0x444b2a,'checked'),Kg(_0x1e9e26,_0x444b2a,'disabled'),_0x1e9e26['value']!==_0x444b2a['value']&&(_0x1e9e26['value']=_0x444b2a['value']),_0x444b2a['hasAttribute']('value')||_0x1e9e26['removeAttribute']('value');},'TEXTAREA':function(_0x2e1463,_0x1afc1a){var _0x101cad=_0x1afc1a['value'];_0x2e1463['value']!==_0x101cad&&(_0x2e1463['value']=_0x101cad);var _0x3b4955=_0x2e1463['firstChild'];if(_0x3b4955){var _0x349583=_0x3b4955['nodeValue'];if(_0x349583==_0x101cad||!_0x101cad&&_0x349583==_0x2e1463['placeholder'])return;_0x3b4955['nodeValue']=_0x101cad;}},'SELECT':function(_0x408e25,_0x3c4a59){if(!_0x3c4a59['hasAttribute']('multiple')){for(var _0x24d22c,_0x43d561,_0x2e46eb=-0x1,_0x1c0dbf=0x0,_0x57d547=_0x408e25['firstChild'];_0x57d547;)if('OPTGROUP'===(_0x43d561=_0x57d547['nodeName']&&_0x57d547['nodeName']['toUpperCase']()))(_0x57d547=(_0x24d22c=_0x57d547)['firstChild'])||(_0x57d547=_0x24d22c['nextSibling'],_0x24d22c=null);else{if('OPTION'===_0x43d561){if(_0x57d547['hasAttribute']('selected')){_0x2e46eb=_0x1c0dbf;break;}_0x1c0dbf++;}!(_0x57d547=_0x57d547['nextSibling'])&&_0x24d22c&&(_0x57d547=_0x24d22c['nextSibling'],_0x24d22c=null);}_0x408e25['selectedIndex']=_0x2e46eb;}}};function tO(){}function eO(_0x262dbd){if(_0x262dbd)return _0x262dbd['getAttribute']&&_0x262dbd['getAttribute']('id')||_0x262dbd['id'];}var iO=function(_0xd933d5){return function(_0x25aa70,_0x1ad36e,_0x153ebc){if(_0x153ebc||(_0x153ebc={}),'string'==typeof _0x1ad36e){if('#document'===_0x25aa70['nodeName']||'HTML'===_0x25aa70['nodeName']||'BODY'===_0x25aa70['nodeName']){var _0x32ac3b=_0x1ad36e;(_0x1ad36e=Xg['createElement']('html'))['innerHTML']=_0x32ac3b;}else _0x1ad36e=zg(_0x1ad36e);}else 0xb===_0x1ad36e['nodeType']&&(_0x1ad36e=_0x1ad36e['firstElementChild']);var _0x91bda6=_0x153ebc['getNodeKey']||eO,_0x422c07=_0x153ebc['onBeforeNodeAdded']||tO,_0x2774a6=_0x153ebc['onNodeAdded']||tO,_0x5840ce=_0x153ebc['onBeforeElUpdated']||tO,_0x213f91=_0x153ebc['onElUpdated']||tO,_0x1adade=_0x153ebc['onBeforeNodeDiscarded']||tO,_0x2fc05c=_0x153ebc['onNodeDiscarded']||tO,_0xcc7ddc=_0x153ebc['onBeforeElChildrenUpdated']||tO,_0x123d5f=_0x153ebc['skipFromChildren']||tO,_0x1594e0=_0x153ebc['addChild']||function(_0x3b4f10,_0x1bc15c){return _0x3b4f10['appendChild'](_0x1bc15c);},_0x3919ec=!0x0===_0x153ebc['childrenOnly'],_0x2763bc=Object['create'](null),_0x4115e8=[];function _0xa525f0(_0x404688){_0x4115e8['push'](_0x404688);}function _0x443a29(_0x5025f4,_0x39007c){if(0x1===_0x5025f4['nodeType'])for(var _0xd22895=_0x5025f4['firstChild'];_0xd22895;){var _0x13af8c=void 0x0;_0x39007c&&(_0x13af8c=_0x91bda6(_0xd22895))?_0xa525f0(_0x13af8c):(_0x2fc05c(_0xd22895),_0xd22895['firstChild']&&_0x443a29(_0xd22895,_0x39007c)),_0xd22895=_0xd22895['nextSibling'];}}function _0x3c80d2(_0x1c86c1,_0xfdf847,_0x5864c0){!0x1!==_0x1adade(_0x1c86c1)&&(_0xfdf847&&_0xfdf847['removeChild'](_0x1c86c1),_0x2fc05c(_0x1c86c1),_0x443a29(_0x1c86c1,_0x5864c0));}function _0x3276aa(_0x4d0da8){if(0x1===_0x4d0da8['nodeType']||0xb===_0x4d0da8['nodeType'])for(var _0x47102b=_0x4d0da8['firstChild'];_0x47102b;){var _0x41689a=_0x91bda6(_0x47102b);_0x41689a&&(_0x2763bc[_0x41689a]=_0x47102b),_0x3276aa(_0x47102b),_0x47102b=_0x47102b['nextSibling'];}}function _0x519d66(_0xd5a89f){_0x2774a6(_0xd5a89f);for(var _0x2ecf6d=_0xd5a89f['firstChild'];_0x2ecf6d;){var _0x3d52d3=_0x2ecf6d['nextSibling'],_0x59a4f1=_0x91bda6(_0x2ecf6d);if(_0x59a4f1){var _0x806d7f=_0x2763bc[_0x59a4f1];_0x806d7f&&Yg(_0x2ecf6d,_0x806d7f)?(_0x2ecf6d['parentNode']['replaceChild'](_0x806d7f,_0x2ecf6d),_0xf0f0fe(_0x806d7f,_0x2ecf6d)):_0x519d66(_0x2ecf6d);}else _0x519d66(_0x2ecf6d);_0x2ecf6d=_0x3d52d3;}}function _0xf0f0fe(_0x2a8f62,_0x336b0c,_0xc556bf){var _0x370027=_0x91bda6(_0x336b0c);if(_0x370027&&delete _0x2763bc[_0x370027],!_0xc556bf){var _0x4e3588=_0x5840ce(_0x2a8f62,_0x336b0c);if(!0x1===_0x4e3588)return;if(_0x4e3588 instanceof HTMLElement&&_0x3276aa(_0x2a8f62=_0x4e3588),_0xd933d5(_0x2a8f62,_0x336b0c),_0x213f91(_0x2a8f62),!0x1===_0xcc7ddc(_0x2a8f62,_0x336b0c))return;}'TEXTAREA'!==_0x2a8f62['nodeName']?function(_0x2d4453,_0x48db2f){var _0x52346e,_0x25cabd,_0x446f97,_0xd37593,_0x455cf0,_0x1271bb=_0x123d5f(_0x2d4453,_0x48db2f),_0x433891=_0x48db2f['firstChild'],_0x7bb7d=_0x2d4453['firstChild'];t:for(;_0x433891;){for(_0xd37593=_0x433891['nextSibling'],_0x52346e=_0x91bda6(_0x433891);!_0x1271bb&&_0x7bb7d;){if(_0x446f97=_0x7bb7d['nextSibling'],_0x433891['isSameNode']&&_0x433891['isSameNode'](_0x7bb7d)){_0x433891=_0xd37593,_0x7bb7d=_0x446f97;continue t;}_0x25cabd=_0x91bda6(_0x7bb7d);var _0x1311e6=_0x7bb7d['nodeType'],_0x2b70b1=void 0x0;if(_0x1311e6===_0x433891['nodeType']&&(0x1===_0x1311e6?(_0x52346e?_0x52346e!==_0x25cabd&&((_0x455cf0=_0x2763bc[_0x52346e])?_0x446f97===_0x455cf0?_0x2b70b1=!0x1:(_0x2d4453['insertBefore'](_0x455cf0,_0x7bb7d),_0x25cabd?_0xa525f0(_0x25cabd):_0x3c80d2(_0x7bb7d,_0x2d4453,!0x0),_0x25cabd=_0x91bda6(_0x7bb7d=_0x455cf0)):_0x2b70b1=!0x1):_0x25cabd&&(_0x2b70b1=!0x1),(_0x2b70b1=!0x1!==_0x2b70b1&&Yg(_0x7bb7d,_0x433891))&&_0xf0f0fe(_0x7bb7d,_0x433891)):0x3!==_0x1311e6&&0x8!=_0x1311e6||(_0x2b70b1=!0x0,_0x7bb7d['nodeValue']!==_0x433891['nodeValue']&&(_0x7bb7d['nodeValue']=_0x433891['nodeValue']))),_0x2b70b1){_0x433891=_0xd37593,_0x7bb7d=_0x446f97;continue t;}_0x25cabd?_0xa525f0(_0x25cabd):_0x3c80d2(_0x7bb7d,_0x2d4453,!0x0),_0x7bb7d=_0x446f97;}if(_0x52346e&&(_0x455cf0=_0x2763bc[_0x52346e])&&Yg(_0x455cf0,_0x433891))_0x1271bb||_0x1594e0(_0x2d4453,_0x455cf0),_0xf0f0fe(_0x455cf0,_0x433891);else{var _0xb2ce3f=_0x422c07(_0x433891);!0x1!==_0xb2ce3f&&(_0xb2ce3f&&(_0x433891=_0xb2ce3f),_0x433891['actualize']&&(_0x433891=_0x433891['actualize'](_0x2d4453['ownerDocument']||Xg)),_0x1594e0(_0x2d4453,_0x433891),_0x519d66(_0x433891));}_0x433891=_0xd37593,_0x7bb7d=_0x446f97;}!function(_0x23e815,_0x52a483,_0x383399){for(;_0x52a483;){var _0x41521b=_0x52a483['nextSibling'];(_0x383399=_0x91bda6(_0x52a483))?_0xa525f0(_0x383399):_0x3c80d2(_0x52a483,_0x23e815,!0x0),_0x52a483=_0x41521b;}}(_0x2d4453,_0x7bb7d,_0x25cabd);var _0x4e3db9=Jg[_0x2d4453['nodeName']];_0x4e3db9&&_0x4e3db9(_0x2d4453,_0x48db2f);}(_0x2a8f62,_0x336b0c):Jg['TEXTAREA'](_0x2a8f62,_0x336b0c);}_0x3276aa(_0x25aa70);var _0x548843=_0x25aa70,_0x3fc2e6=_0x548843['nodeType'],_0x4965de=_0x1ad36e['nodeType'];if(!_0x3919ec){if(0x1===_0x3fc2e6)0x1===_0x4965de?Yg(_0x25aa70,_0x1ad36e)||(_0x2fc05c(_0x25aa70),_0x548843=function(_0x4dd566,_0x235ab6){for(var _0x17760c=_0x4dd566['firstChild'];_0x17760c;){var _0x2a53e7=_0x17760c['nextSibling'];_0x235ab6['appendChild'](_0x17760c),_0x17760c=_0x2a53e7;}return _0x235ab6;}(_0x25aa70,function(_0x5e15e6,_0x51158d){return _0x51158d&&'http://www.w3.org/1999/xhtml'!==_0x51158d?Xg['createElementNS'](_0x51158d,_0x5e15e6):Xg['createElement'](_0x5e15e6);}(_0x1ad36e['nodeName'],_0x1ad36e['namespaceURI']))):_0x548843=_0x1ad36e;else{if(0x3===_0x3fc2e6||0x8===_0x3fc2e6){if(_0x4965de===_0x3fc2e6)return _0x548843['nodeValue']!==_0x1ad36e['nodeValue']&&(_0x548843['nodeValue']=_0x1ad36e['nodeValue']),_0x548843;_0x548843=_0x1ad36e;}}}if(_0x548843===_0x1ad36e)_0x2fc05c(_0x25aa70);else{if(_0x1ad36e['isSameNode']&&_0x1ad36e['isSameNode'](_0x548843))return;if(_0xf0f0fe(_0x548843,_0x1ad36e,_0x3919ec),_0x4115e8)for(var _0x47c7d7=0x0,_0x27053b=_0x4115e8['length'];_0x47c7d7<_0x27053b;_0x47c7d7++){var _0x45c04d=_0x2763bc[_0x4115e8[_0x47c7d7]];_0x45c04d&&_0x3c80d2(_0x45c04d,_0x45c04d['parentNode'],!0x1);}}return!_0x3919ec&&_0x548843!==_0x25aa70&&_0x25aa70['parentNode']&&(_0x548843['actualize']&&(_0x548843=_0x548843['actualize'](_0x25aa70['ownerDocument']||Xg)),_0x25aa70['parentNode']['replaceChild'](_0x548843,_0x25aa70)),_0x548843;};}(function(_0x11e174,_0x579b08){var _0x349adf,_0x37018b,_0x11e3fa,_0x5ae38a,_0x5a8ec9=_0x579b08['attributes'];if(0xb!==_0x579b08['nodeType']&&0xb!==_0x11e174['nodeType']){for(var _0x3f8d97=_0x5a8ec9['length']-0x1;_0x3f8d97>=0x0;_0x3f8d97--)_0x37018b=(_0x349adf=_0x5a8ec9[_0x3f8d97])['name'],_0x11e3fa=_0x349adf['namespaceURI'],_0x5ae38a=_0x349adf['value'],_0x11e3fa?(_0x37018b=_0x349adf['localName']||_0x37018b,_0x11e174['getAttributeNS'](_0x11e3fa,_0x37018b)!==_0x5ae38a&&('xmlns'===_0x349adf['prefix']&&(_0x37018b=_0x349adf['name']),_0x11e174['setAttributeNS'](_0x11e3fa,_0x37018b,_0x5ae38a))):_0x11e174['getAttribute'](_0x37018b)!==_0x5ae38a&&_0x11e174['setAttribute'](_0x37018b,_0x5ae38a);for(var _0x21cf15=_0x11e174['attributes'],_0x252565=_0x21cf15['length']-0x1;_0x252565>=0x0;_0x252565--)_0x37018b=(_0x349adf=_0x21cf15[_0x252565])['name'],(_0x11e3fa=_0x349adf['namespaceURI'])?(_0x37018b=_0x349adf['localName']||_0x37018b,_0x579b08['hasAttributeNS'](_0x11e3fa,_0x37018b)||_0x11e174['removeAttributeNS'](_0x11e3fa,_0x37018b)):_0x579b08['hasAttribute'](_0x37018b)||_0x11e174['removeAttribute'](_0x37018b);}});function sO(_0x1eb4f7){const _0x4b1913=new AbortController();return{'promise':new Promise((_0x18a315,_0x445c45)=>{const _0x1e4c51=setTimeout(_0x18a315,_0x1eb4f7);_0x4b1913['signal']['addEventListener']('abort',()=>{clearTimeout(_0x1e4c51),_0x445c45();});}),'abortController':_0x4b1913};}var nO=class{options;isStreaming=!0x1;document=null;nodesList=[];currentIndex=0x0;timeoutAbortController=null;lastUpdateTime=0x0;constructor(_0x4566f8){this['options']={'delay':_0x4566f8?.['delay']??0xa,'textNodeStyle':_0x4566f8?.['textNodeStyle']??'animation:\x20ck-html-streamer-fade-in\x20.3s'};}async stream({document:_0x169851,targetElement:_0x6b828c,abortSignal:_0x241ce6}){this['isStreaming']&&this['stop'](),_0x241ce6?.['addEventListener']('abort',this['stop']['bind'](this)),this['document']=wc(_0x169851,!0x0),this['nodesList']=this['getParsedDocumentNodeList'](),this['isStreaming']=!0x0,this['currentIndex']>this['nodesList']['length']&&(this['currentIndex']=this['nodesList']['length']);for(let _0x568ec7=0x0;_0x568ec7<this['currentIndex'];_0x568ec7++)this['nodesList'][_0x568ec7]['shouldBeStreamed']=!0x0;do{const _0x143a4f=Date['now'](),_0x1f4bb3=this['nodesList'][this['currentIndex']],_0xc9c684=_0x143a4f-this['lastUpdateTime'];if(_0x1f4bb3){_0x1f4bb3['shouldBeStreamed']=!0x0;let _0x31774e=_0x1f4bb3['parent'];for(;_0x31774e;)_0x31774e['shouldBeStreamed']=!0x0,_0x31774e=_0x31774e['parent'];}if(_0xc9c684<this['options']['delay'])try{const {promise:_0x18a459,abortController:_0x8e7f1b}=sO(this['options']['delay']-_0xc9c684);this['timeoutAbortController']=_0x8e7f1b,await _0x18a459;}catch(_0x527464){return;}iO(_0x6b828c,'<'+_0x6b828c['tagName']+'>'+this['renderNode'](this['document'])+'</'+_0x6b828c['tagName']+'>',{'childrenOnly':!0x0}),this['currentIndex']++,this['lastUpdateTime']=Date['now']();}while(this['currentIndex']<this['nodesList']['length']);this['currentIndex']=this['nodesList']['length'],this['isStreaming']=!0x1;}reset(){this['isStreaming']=!0x1,this['document']=null,this['nodesList']=[],this['currentIndex']=0x0,this['timeoutAbortController']=null;}cleanUpAnimations({targetElement:_0x5e0c49}){Array['from'](_0x5e0c49['querySelectorAll']('span[data-ck-html-streamer-word-chunk]'))['reverse']()['forEach'](_0x53c01c=>{_0x53c01c['replaceWith'](_0x53c01c['childNodes'][0x0]);});}stop(){this['isStreaming']=!0x1,this['timeoutAbortController']&&(this['timeoutAbortController']['abort'](),this['timeoutAbortController']=null);}['renderNode'](_0x226845){let _0x5f2fa9='';if(function(_0x5823c5){return gc(_0x5823c5);}(_0x226845)){for(const _0x230d1d of _0x226845['children'])_0x5f2fa9+=this['renderNode'](_0x230d1d);}else{if(aO(_0x226845)){if(!_0x226845['shouldBeStreamed'])return'';const _0x49c89c=_0x226845,_0xd6373=Object['entries'](_0x49c89c['attribs'])['map'](([_0x140c37,_0x429c63])=>_0x140c37+'=\x22'+_0x429c63+'\x22')['join']('\x20');_0x5f2fa9+='<'+_0x49c89c['tagName']+(_0xd6373?'\x20'+_0xd6373:'')+'>';for(const _0x22d2cd of Oc(_0x400155=_0x49c89c)?_0x400155['children']:[])_0x5f2fa9+=this['renderNode'](_0x22d2cd);_0x5f2fa9+='</'+_0x49c89c['tagName']+'>';}else{if(!oO(_0x226845))return'';if(!_0x226845['shouldBeStreamed'])return'';!function(_0x291918){return!(!_0x291918['parent']||!aO(_0x291918['parent']))&&(!!rO['includes'](_0x291918['parent']['tagName'])&&!Qc(_0x291918)['match'](/^\s*[<>]\s*$/));}(_0x226845)?_0x5f2fa9+=Mc(_0x226845):_0x5f2fa9+=Mc(new dc('span',{'data-ck-html-streamer-word-chunk':'','style':this['options']['textNodeStyle']},[_0x226845]));}}var _0x400155;return _0x5f2fa9;}getParsedDocumentNodeList(){const _0x275ce5=[];return function(_0x1777cb,_0x14b645){const _0xae21ba=_0x684b61=>{if(_0x14b645(_0x684b61),_0x684b61 instanceof lc)for(let _0x3c5fce=0x0;_0x3c5fce<_0x684b61['children']['length'];_0x3c5fce++){const _0x1a25f8=_0x684b61['children'][_0x3c5fce];_0xae21ba(_0x1a25f8);}};for(let _0x527ad5=0x0;_0x527ad5<_0x1777cb['children']['length'];_0x527ad5++)_0xae21ba(_0x1777cb['children'][_0x527ad5]);}(this['document'],_0x405bb0=>{if(oO(_0x405bb0)){const _0x338d1b=this['splitTextNodeIntoWordNodes'](_0x405bb0);_0x338d1b['length']&&_0x275ce5['push'](..._0x338d1b);}_0x405bb0['isWordSplitSource']||_0x405bb0['isWordSplitResult']||_0x275ce5['push'](_0x405bb0);}),_0x275ce5;}splitTextNodeIntoWordNodes(_0xf8cc73){if(_0xf8cc73['isWordSplitSource']||_0xf8cc73['isWordSplitResult'])return[];const _0x322ce0=Qc(_0xf8cc73)['match'](/(?:\s*\S+\s*)/g),_0x38bec0=[];if(_0x322ce0&&_0x322ce0['length']>0x1){for(const _0x3f3d97 of _0x322ce0){const _0x132db6=new oc(_0x3f3d97);_0x132db6['isWordSplitResult']=!0x0,Zc(_0xf8cc73,_0x132db6),_0x38bec0['push'](_0x132db6);}_0xf8cc73['isWordSplitSource']=!0x0,Uc(_0xf8cc73);}return _0x38bec0;}};const rO=['p','li','td','th','span','h1','h2','h3','h4','h5','h6','b','strong','i','em','mark','del','ins','sup','sub','a','code','div'];function oO(_0x350fce){return mc(_0x350fce);}function aO(_0xa3f519){return fc(_0xa3f519);}function cO(_0xa3d7fb,_0x3c0d34){_0xa3d7fb['cleanUpAnimations']({'targetElement':_0x3c0d34}),_0x3c0d34['querySelectorAll']('[data-id]')['forEach'](_0x4b43b5=>{_0x4b43b5['removeAttribute']('data-id');});}var lO=class extends _0x2f6e1a{options;content='';htmlStreamer;['children'];constructor(_0xc859e){super();const _0x387722=this['bindTemplate'];this['set']('isDone',!0x1),this['set']('isVisible',!0x0),this['htmlStreamer']=new nO(),this['options']=_0xc859e,this['children']=this['createCollection'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__item',_0x387722['if']('isDone','ck-ai-chat__feed__item_done'),_0x387722['if']('isVisible','ck-hidden',_0x380a9f=>!_0x380a9f),'ck-ai-chat__feed__text-item'],'data-cke-ai-id':this['options']['id']},'children':this['children']});}['markAsDone'](){cO(this['htmlStreamer'],this['element']),this['isDone']=!0x0;}async streamIntoElement(_0x36926d,_0x250f10,_0x162f42){await this['htmlStreamer']['stream']({'document':_0x36926d,'targetElement':_0x250f10,'abortSignal':_0x162f42});}},hO=class extends _0x2f6e1a{['showChangesToggleView'];constructor(_0x540d1c,_0x228afc){super(_0x540d1c),this['set']('isShowChangesToggleVisible',!0x0),this['showChangesToggleView']=new uO(_0x540d1c),this['showChangesToggleView']['set']({'class':'ck-ai-suggestion__header__show-changes-toggle\x20ck-ai-chat-controls-button\x20'+Eg,'label':ca(_0x540d1c,'AI_SUGGESTION_BUTTON_SHOW_CHANGES'),'withText':!0x0}),this['showChangesToggleView']['isOn']=_0x228afc['showDiff'],this['showChangesToggleView']['bind']('isVisible')['to'](this,'isShowChangesToggleVisible'),this['showChangesToggleView']['bind']('icon')['to'](this['showChangesToggleView'],'isOn',_0x231f76=>_0x231f76?_0x1eed91:_0x4e4bad),this['showChangesToggleView']['on']('execute',()=>{this['showChangesToggleView']['isOn']=!this['showChangesToggleView']['isOn'],this['fire']('toggleShowChanges',{'isOn':this['showChangesToggleView']['isOn']});});const _0x2e35eb=new _0x5d1800();_0x2e35eb['content']=_0x5669ab,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__header',!0x1===_0x228afc['showHeader']?'ck-hidden':null]['filter'](Boolean)},'children':[_0x2e35eb,{'tag':'span','children':[ca(_0x540d1c,'AI_SUGGESTION_HEADER_TITLE')]},this['showChangesToggleView']]});}},uO=class extends _0x39ae99{['render'](){super['render'](),this['children']['remove'](this['iconView']),this['children']['add'](this['iconView']);}};const dO={'accepted':_0x2659e3,'rejected':_0x2f7d46,'outdated':Kt};var fO=class extends _0x2f6e1a{statePillView;constructor(_0x58ae7b){super(_0x58ae7b);const _0x275707=this['bindTemplate'];this['set']('state','accepted'),this['set']('outdatedReason',void 0x0),this['set']('isVisible',!0x0),this['statePillView']=new Cl(_0x58ae7b),this['statePillView']['bind']('label')['to'](this,'state',_0x28a87e=>function(_0xf3e8dd,_0x2e0cb3){return ca(_0xf3e8dd,'AI_SUGGESTION_CONTENT_PART_STATE_'+_0x2e0cb3['toUpperCase']());}(_0x58ae7b,_0x28a87e)),this['statePillView']['bind']('icon')['to'](this,'state',_0x5f5a96=>dO[_0x5f5a96]),this['statePillView']['bind']('class')['to'](this,'state',_0x1cd791=>'ck-pill_'+_0x1cd791),this['statePillView']['bind']('tooltip')['to'](this,'state',this,'outdatedReason',(_0x40b9c4,_0xcc047)=>function(_0x3224c8,_0x3c63bb,_0x5a3162){if('outdated'!==_0x3c63bb)return;return ca(_0x3224c8,_0x5a3162?mO[_0x5a3162]:'AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED_TOOLTIP');}(_0x58ae7b,_0x40b9c4,_0xcc047)),this['statePillView']['tooltipPosition']='s',this['statePillView']['tooltipClass']='ck-tooltip_multi-line',this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__content-part-state',_0x275707['if']('isVisible','ck-hidden',_0xb7f971=>!_0xb7f971)]},'children':[this['statePillView']]});}setState(_0x2b9635,_0x23e516){this['state']=_0x2b9635,this['outdatedReason']='outdated'===_0x2b9635?_0x23e516:void 0x0;}};const mO={'content-removed':'AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED_CONTENT_REMOVED_TOOLTIP','editor-removed':'AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED_EDITOR_REMOVED_TOOLTIP','session-changed':'AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED_SESSION_CHANGED_TOOLTIP'};var pO=class extends _0x416164{_applyButton;_suggestButton;constructor(_0x21b3ea,_0x226ae4,_0x3d43e5){super(_0x21b3ea);const _0x5771fa=Boolean(_0x3d43e5);this['set']('isEnabled',!_0x5771fa),this['set']('isVisible',!0x0),this['set']('isTrackChangesOn',!0x1),this['set']('isTargetReadOnly',!0x1),this['class']='ck-ai-suggestion-content-part-toolbar';const _0x3e31e6=[];if(!_0x5771fa){_0x226ae4['includes']('applySuggestion')&&(this['_applyButton']=new _0x39ae99(_0x21b3ea),this['_applyButton']['set']({'label':ca(_0x21b3ea,'AI_SUGGESTION_CONTENT_PART_APPLY'),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x2aa27e}),this['_applyButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isTargetReadOnly',(_0x2c2485,_0x11fb52)=>_0x2c2485&&!_0x11fb52),this['_applyButton']['bind']('isVisible')['to'](this,'isTrackChangesOn',_0x4f0ff0=>!_0x4f0ff0),this['_applyButton']['on']('execute',()=>{this['fire']('applySuggestion');}),_0x3e31e6['push'](this['_applyButton'])),_0x226ae4['includes']('insertSuggestion')&&(this['_suggestButton']=new _0x39ae99(_0x21b3ea),this['_suggestButton']['set']({'label':ca(_0x21b3ea,'AI_SUGGESTION_CONTENT_PART_ADD_SUGGESTION'),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x126a59}),this['_suggestButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isTargetReadOnly',(_0x324ecd,_0x2b209f)=>_0x324ecd&&!_0x2b209f),this['_suggestButton']['on']('execute',()=>{this['fire']('insertSuggestion');}),_0x3e31e6['push'](this['_suggestButton']));const _0x6f241f=new _0x39ae99(_0x21b3ea);_0x6f241f['set']({'label':ca(_0x21b3ea,'AI_SUGGESTION_CONTENT_PART_REJECT'),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x5d4dea}),_0x6f241f['bind']('isEnabled')['to'](this),_0x6f241f['on']('execute',()=>{this['fire']('rejectSuggestion');}),_0x3e31e6['push'](_0x6f241f);}this['items']['addMany'](_0x3e31e6);const _0x43fe4e=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':[_0x43fe4e['if']('isVisible','ck-hidden',_0x4e2a93=>!_0x4e2a93)]}});}setButtonsVisibility({showApplyButton:_0x3a5675,showSuggestButton:_0x5f3565}){this['_applyButton']&&(this['_applyButton']['isVisible']=_0x3a5675),this['_suggestButton']&&(this['_suggestButton']['isVisible']=_0x5f3565);}},gO=class extends _0x2f6e1a{toolbarView;stateView;titleLabelView;['children'];constructor(_0x512535,{part:_0xce8f06,uiIndex:_0x6f2c4c,availableActions:_0x38d994,areActionsDisabled:_0x3304b0}){super(_0x512535),this['set']('isEnabled',!0x0),this['set']('state','pending'),this['set']('isTrackChangesOn',!0x1),this['set']('isTargetReadOnly',!0x1),this['toolbarView']=new pO(_0x512535,_0x38d994,_0x3304b0),this['toolbarView']['on']('rejectSuggestion',()=>{this['fire']('rejectSuggestion',{'index':_0xce8f06['index']});}),this['toolbarView']['on']('insertSuggestion',()=>{this['fire']('insertSuggestion',{'index':_0xce8f06['index']});}),this['toolbarView']['on']('applySuggestion',()=>{this['fire']('applySuggestion',{'index':_0xce8f06['index']});}),this['toolbarView']['bind']('isEnabled','isTrackChangesOn','isTargetReadOnly')['to'](this),this['stateView']=new fO(_0x512535),this['titleLabelView']=new OO(_0x512535,_0x6f2c4c),this['children']=this['createCollection'](),this['children']['addMany']([this['titleLabelView'],this['toolbarView']]),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-ai-suggestion__body__content-part__title']},'children':this['children']}),this['on']('change:state',(_0x36d440,_0x3ebce4,_0x14771f,_0x5bf5ec)=>{'pending'===_0x5bf5ec?this['children']['remove'](this['toolbarView']):this['children']['remove'](this['stateView']),'pending'===_0x14771f?this['children']['add'](this['toolbarView']):(this['stateView']['setState'](_0x14771f,this['outdatedReason']),this['children']['add'](this['stateView']));});}},OO=class extends _0x2f6e1a{constructor(_0x6b9ff4,_0x404886){super(_0x6b9ff4),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-suggestion__body__content-part__title__label']},'children':[ca(_0x6b9ff4,'AI_SUGGESTION_CONTENT_PART_TITLE',_0x404886['toString']())]});}},wO=class extends _0x2f6e1a{htmlStreamer;constructor(_0x4a220a){super(_0x4a220a),this['htmlStreamer']=new nO(),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-content','ck-reset_all-excluded','ck-ai-suggestion-streamable-content']}});}async update({part:_0x530f02,renderingStrategy:_0x2092f6,abortSignal:_0x13b03a}){this['_ensureHostElementTag'](_0x530f02['wrapperTag']||'div');const _0x2bdf7d=wc(_0x530f02['content'],!0x0);for(const _0x3fc607 of Kc(_0x2bdf7d))Uc(_0x3fc607);'streaming'===_0x2092f6?await this['htmlStreamer']['stream']({'document':_0x2bdf7d,'targetElement':this['element'],'abortSignal':_0x13b03a}):iO(this['element'],'<'+this['element']['tagName']+'>'+Wc(_0x2bdf7d)+'</'+this['element']['tagName']+'>',{'childrenOnly':!0x0});}['clear'](){this['htmlStreamer']['reset'](),this['element']['innerHTML']='',this['element']['scrollTop']=0x0;}cleanUpStreamingArtifacts(){cO(this['htmlStreamer'],this['element']);}_ensureHostElementTag(_0x588ecb){if(!this['element']||this['element']['tagName']['toLowerCase']()===_0x588ecb)return;const _0x645415=new _0xf3a581({'tag':_0x588ecb,'attributes':{'class':this['element']['className']}})['render']();this['element']['replaceWith'](_0x645415),this['element']=_0x645415;}},bO=class extends _0x2f6e1a{['_children'];['_headerView'];_streamableContentView;constructor(_0x30f667,{part:_0x2b426f,uiIndex:_0x2adde2,areActionsDisabled:_0x9973dc,availableActions:_0x599040}){super(_0x30f667);const _0x31d80d=this['bindTemplate'];this['set']('state',_0x2b426f['state']),this['set']('outdatedReason',_0x2b426f['outdatedReason']),this['set']('isDone',!0x1),this['set']('isVisible',!0x1),this['set']('isActive',!0x1),this['set']('isEnabled',!0x1),this['set']('isTrackChangesOn',!0x1),this['set']('isTargetReadOnly',!0x1);const _0xf4e78a=()=>{this['isEnabled']=this['isDone']&&'pending'==this['state']&&!_0x9973dc;};this['on']('change:state',_0xf4e78a),this['on']('change:isDone',_0xf4e78a),_0xf4e78a(),this['_children']=this['createCollection'](),this['_headerView']=new gO(_0x30f667,{'part':_0x2b426f,'uiIndex':_0x2adde2,'availableActions':_0x599040,'areActionsDisabled':_0x9973dc}),this['_headerView']['bind']('isEnabled','outdatedReason','state','isTrackChangesOn','isTargetReadOnly')['to'](this),this['_headerView']['delegate'](...Fg)['to'](this),this['_streamableContentView']=new wO(_0x30f667),this['_children']['addMany']([this['_headerView'],this['_streamableContentView']]),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__body__content-part',_0x31d80d['to']('state',_0x1f7a5c=>'ck-ai-suggestion__body__content-part_'+_0x1f7a5c),_0x31d80d['if']('isEnabled','ck-ai-suggestion__body__content-part_enabled'),_0x31d80d['if']('isActive','ck-ai-suggestion__body__content-part_active'),_0x31d80d['if']('isVisible','ck-hidden',_0x2f6214=>!_0x2f6214)]},'children':this['_children'],'on':{'mouseenter':_0x31d80d['to'](()=>{this['isEnabled']&&this['fire']('mouseOverSuggestion',{'index':_0x2b426f['index']});}),'mouseleave':_0x31d80d['to'](()=>{this['isEnabled']&&this['fire']('mouseLeaveSuggestion',{'index':_0x2b426f['index']});}),'click':_0x31d80d['to'](_0x1c3cca=>{const _0x40c8b5=_0x1c3cca['target'];this['isEnabled']&&!this['_headerView']['toolbarView']['element']['contains'](_0x40c8b5)&&this['fire']('showChangeInText',{'index':_0x2b426f['index']});})}});}async updateContent({part:_0x2838f1,showUnchangedParts:_0x3d6877=!0x1,abortSignal:_0x3d0166}){this['partDefinition']=_0x2838f1,this['isVisible']=this['partDefinition']['hasChanges']||_0x3d6877,this['isVisible']&&await this['_streamableContentView']['update']({'part':_0x2838f1,'renderingStrategy':'static','abortSignal':_0x3d0166});}['markAsDone'](){this['isDone']=!0x0;}},yO=class extends _0x2f6e1a{constructor(_0x229b6a,_0x5cc794){super(_0x229b6a),this['set']('isVisible',!0x0),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-skeleton',this['bindTemplate']['if']('isVisible','ck-hidden',_0x552437=>!_0x552437)]},'children':this['_createSkeletonItems'](_0x5cc794)});}_createSkeletonItems(_0x3f5c6c){const _0x121fc2=['ck','ck-ai-skeleton__item'];return _0x3f5c6c['map'](_0x356360=>{let _0x21a500='';switch(_0x356360['attributes']['align']){case'right':_0x21a500='margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;';break;case'center':_0x21a500='margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;';break;case'left':_0x21a500='margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;';}return{'tag':_0x356360['tag'],'attributes':{'class':[..._0x121fc2,_0x356360['attributes']['class']?_0x356360['attributes']['class']:''],'style':'width:\x20'+_0x356360['attributes']['width']+';\x20height:\x20'+_0x356360['attributes']['height']+';'+_0x21a500}};});}};const vO={'aiSuggestionBody':[{'tag':'div','attributes':{'width':'50%','height':'24px','align':'left'}},{'tag':'div','attributes':{'width':'85%','height':'24px','align':'left'}},{'tag':'div','attributes':{'width':'100%','height':'24px','align':'left'}},{'tag':'div','attributes':{'width':'75%','height':'24px','align':'left'}},{'tag':'div','attributes':{'width':'100%','height':'24px','align':'left'}}],'aiFeed':[{'tag':'div','attributes':{'width':'100%','height':'72px','align':'right'}},{'tag':'div','attributes':{'width':'250px','height':'40px','align':'right'}},{'tag':'div','attributes':{'width':'100%','height':'88px','align':'right'}},{'tag':'div','attributes':{'width':'150px','height':'40px','align':'right'}},{'tag':'div','attributes':{'width':'100%','height':'140px','align':'right'}},{'tag':'div','attributes':{'width':'250px','height':'40px','align':'right'}},{'tag':'div','attributes':{'width':'100%','height':'88px','align':'right'}}],'aiHistory':_O(0x5,'100%','44px','right'),'aiChatResources':_O(0x8,'100%','24px','right'),'aiReviewChecks':[{'tag':'div','attributes':{'width':'128px','height':'24px','align':'left'}},{'tag':'div','attributes':{'width':'100%','height':'24px','align':'left'}},{'tag':'div','attributes':{'width':'128px','height':'24px','align':'left'}}]};function _O(_0x381747,_0x299cb3,_0x50e1da,_0x4a9c67){return new Array(_0x381747)['fill'](null)['map'](()=>({'tag':'div','attributes':{'width':_0x299cb3,'height':_0x50e1da,'align':_0x4a9c67}}));}const EO=/* #__PURE__ -- @preserve */
_0x3e0c97();var TO=class extends EO{['queue']=[];['isProcessing']=!0x1;_abortController;async['enqueue'](_0x4ac9b9){const _0xb963c6=this['createTask'](_0x4ac9b9);return this['queue']['push'](_0xb963c6),this['_processQueue'](),_0xb963c6['completePromise'];}abort(){this['isProcessing']&&(this['_abortController']['abort'](),this['_abortController']=void 0x0,this['queue']=[],this['fire']('_queueEmpty'),this['isProcessing']=!0x1);}get queueEmptyPromise(){return this['queue']['length']||this['isProcessing']?new Promise(_0x1addb3=>{this['once']('_queueEmpty',()=>{_0x1addb3();});}):Promise['resolve']();}async['_processQueue'](){if(!this['isProcessing']){this['_abortController']=new AbortController(),this['isProcessing']=!0x0;try{for(;this['queue']['length']&&this['isProcessing'];){const _0x3ecc97=this['queue']['shift']();try{await _0x3ecc97['callback'](this['_abortController']['signal']),_0x3ecc97['resolve']();}catch(_0x486cd1){_0x3ecc97['reject'](_0x486cd1);}}}finally{this['isProcessing']=!0x1,this['_abortController']=void 0x0;}this['fire']('_queueEmpty');}}createTask(_0x335b3a){let _0x391d88,_0x2005a9;const _0x3bfb2e=new Promise((_0x2f99f6,_0x48f828)=>{_0x391d88=_0x2f99f6,_0x2005a9=_0x48f828;});return{'callback':_0x335b3a,'resolve':_0x391d88,'reject':_0x2005a9,'completePromise':_0x3bfb2e};}},AO=class extends lO{constructor(_0x482bf1){super(_0x482bf1),this['extendTemplate']({'attributes':{'class':['ck-ai-notification','warning'===_0x482bf1['level']?'ck-ai-notification_warning':'ck-ai-notification_error']}});}['render'](){super['render'](),this['setContent'](this['options']['initialContent']),this['markAsDone']();}setContent(_0x4f86da){this['element']['innerHTML']=_0x4f86da;}};const SO=['applySuggestion','insertSuggestion'];var IO=class extends _0x2f6e1a{_applyChangesButton;_insertSuggestionsButton;['children'];constructor(_0x5626b6,_0xfee167=[...SO],_0x1a96a4){super(_0x5626b6);const _0x3fd4a3=this['bindTemplate'],_0x514bde=Boolean(_0x1a96a4);this['set']('isEnabled',!_0x514bde),this['set']('isVisible',!0x1),this['set']('isTrackChangesOn',!0x1),this['children']=this['createCollection'](),_0x514bde||(this['_applyChangesButton']=new _0x39ae99(_0x5626b6),this['_applyChangesButton']['set']({'label':ca(_0x5626b6,'AI_CHAT_SUGGESTION_ACTION_APPLY_ALL'),'withText':!0x0,'type':'button','isVisible':_0xfee167['includes']('applySuggestion'),'class':vg}),this['_insertSuggestionsButton']=new _0x39ae99(_0x5626b6),this['_insertSuggestionsButton']['set']({'label':ca(_0x5626b6,'AI_CHAT_SUGGESTION_ACTION_SUGGEST_ALL'),'withText':!0x0,'type':'button','isVisible':_0xfee167['includes']('insertSuggestion'),'class':_g}),this['_insertSuggestionsButton']['on']('execute',()=>{this['fire']('insertSuggestion');}),this['_applyChangesButton']['on']('execute',()=>{this['fire']('applySuggestion');}),[this['_applyChangesButton'],this['_insertSuggestionsButton']]['forEach'](_0x2c42f6=>{_0x2c42f6['bind']('isEnabled')['to'](this);}),this['children']['addMany']([this['_applyChangesButton'],this['_insertSuggestionsButton']])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__ai-suggestion__actions',_0x3fd4a3['if']('isVisible','ck-hidden',_0x1c7931=>!_0x1c7931)]},'children':this['children']}),this['on']('change:isTrackChangesOn',()=>{this['_applyChangesButton']&&(this['_applyChangesButton']['isVisible']=!this['isTrackChangesOn']);});}updateVisibility(_0x599e94){this['isVisible']=_0x599e94;}_switchButtonLabelsPlurality(_0xe10e28){this['_applyChangesButton']&&this['_insertSuggestionsButton']&&(_0xe10e28?(this['_applyChangesButton']['label']=ca(this['locale'],'AI_CHAT_SUGGESTION_ACTION_APPLY_ALL'),this['_insertSuggestionsButton']['label']=ca(this['locale'],'AI_CHAT_SUGGESTION_ACTION_SUGGEST_ALL')):(this['_applyChangesButton']['label']=ca(this['locale'],'AI_CHAT_SUGGESTION_ACTION_APPLY'),this['_insertSuggestionsButton']['label']=ca(this['locale'],'AI_CHAT_SUGGESTION_ACTION_SUGGEST')));}},kO=class extends _0x2f6e1a{['children'];['balloonPanelView'];bodyCollection;constructor(_0x241888,_0x5736cd){super(_0x241888),this['bodyCollection']=_0x5736cd,this['children']=this['createCollection'](),this['set']('isVisible',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-web-sources',this['bindTemplate']['if']('isVisible','ck-hidden',_0x31abb9=>!_0x31abb9)]},'children':this['children']});const _0x3251fb=new _0x2f6e1a(this['locale']),_0x5b8d38=new _0x5d1800();_0x5b8d38['content']=_0x39260c,_0x3251fb['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-web-sources__header']},'children':[_0x5b8d38,{'tag':'span','children':[{'text':ca(this['locale'],'AI_CHAT_SOURCES_HEADER')}]}]}),this['children']['add'](_0x3251fb),this['_setupBalloonPanel'](_0x241888);}['addSource'](_0x50d68f){this['children']['add'](new xO(this['locale'],_0x50d68f,this['balloonPanelView']));}_setupBalloonPanel(_0x14d57a){this['balloonPanelView']=new _0x42b496(_0x14d57a),this['balloonPanelView']['extendTemplate']({'attributes':{'class':['ck-ai-web-source__tooltip-balloon']}}),this['bodyCollection']['add'](this['balloonPanelView']);}},xO=class extends _0x39ae99{['balloonPanelView'];['source'];constructor(_0x3d8c36,_0x37e2fe,_0xa89f79){super(_0x3d8c36),this['source']=_0x37e2fe,this['balloonPanelView']=_0xa89f79,this['set']({'label':_0x37e2fe['title'],'class':['ck\x20ck-ai-web-source'],'withText':!0x0});const _0x4a9277=this['bindTemplate'];if(this['extendTemplate']({'on':{'click':_0x4a9277['to'](()=>{window['open'](_0x37e2fe['url'],'_blank');}),'mouseenter':_0x4a9277['to'](()=>{this['_showTooltip']();}),'mouseleave':_0x4a9277['to'](()=>{this['_hideTooltip']();})}}),_0x37e2fe['favicon']){const _0x129f4e=new _0x2f6e1a(_0x3d8c36);_0x129f4e['setTemplate']({'tag':'img','attributes':{'src':_0x37e2fe['favicon']||_0x39260c,'alt':_0x37e2fe['title'],'class':['ck-ai-web-source__image']}}),this['children']['add'](_0x129f4e);}else this['set']('icon',_0x39260c);}_createTooltipContentView(_0x38a54d,_0x12e53f){const _0x208b19=new _0x2f6e1a(_0x38a54d),_0x283962=[];let _0x509602;_0x12e53f?.['favicon']?(_0x509602=new _0x2f6e1a(_0x38a54d),_0x509602['setTemplate']({'tag':'img','attributes':{'src':_0x12e53f['favicon'],'alt':_0x12e53f['title'],'class':['ck-ai-web-source__tooltip-image']}})):(_0x509602=new _0x5d1800(),_0x509602['content']=_0x39260c,_0x509602['extendTemplate']({'attributes':{'alt':_0x12e53f['title'],'class':['ck-ai-web-source__tooltip-image']}})),_0x283962['push'](_0x509602);const _0x197336=new _0x2f6e1a(_0x38a54d);_0x197336['setTemplate']({'tag':'a','attributes':{'class':['ck-ai-web-source__tooltip-url'],'href':_0x12e53f['url']},'children':[{'text':new URL(_0x12e53f['url'])?.['hostname']}]}),_0x283962['push'](_0x197336);const _0x140cc3=new _0x2f6e1a(_0x38a54d);_0x140cc3['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-web-source__tooltip-row']},'children':_0x283962});const _0x3a6d84=new _0x2f6e1a(_0x38a54d);return _0x3a6d84['setTemplate']({'tag':'span','attributes':{'class':['ck-ai-web-source__tooltip-row','ck-ai-web-source__tooltip-title']},'children':[{'text':_0x12e53f['title']['length']>0x190?_0x12e53f['title']['substring'](0x0,0x190)+'...':_0x12e53f['title']}]}),_0x208b19['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-web-source__tooltip']},'children':[_0x140cc3,_0x3a6d84]}),_0x208b19;}_showTooltip(){this['_updateTooltipContent'](),this['balloonPanelView']['pin']({'target':this['element'],'positions':[_0x42b496['defaultPositions']['northArrowSouth'],_0x42b496['defaultPositions']['northArrowSouthWest'],_0x42b496['defaultPositions']['northArrowSouthEast']],'limiter':document['querySelector']('.ck-ai-chat')}),this['balloonPanelView']['show']();}_hideTooltip(){this['balloonPanelView']['hide']();}_updateTooltipContent(){this['balloonPanelView']['content']['get'](0x0)?.['destroy'](),this['balloonPanelView']['content']['clear']();const _0x35557a=this['_createTooltipContentView'](this['locale'],this['source']);this['balloonPanelView']['content']['add'](_0x35557a);}},CO=class extends _0x2f6e1a{_actionsView;['_readOnlyByIndex']=new Map();['_sourcesView'];['_children'];_skeletonView;_showSkeletonDebounced=vr(()=>{this['_skeletonView']['isVisible']=!0x0,this['_skeletonShownAt']=Date['now']();},0x3e8);_skeletonShownAt=null;_areActionsDisabled;_showUnchangedParts;_updateContentPartsPromiseQueue;_emptyPartsWarningView;_availableActions;_cachedContentParts=[];constructor(_0x26a05f,_0x595646){super(_0x26a05f);const {areActionsDisabled:_0x3eb183,showUnchangedParts:_0x2b121f,availableActions:_0x53748e}=_0x595646;this['_areActionsDisabled']=_0x3eb183,this['_showUnchangedParts']=_0x2b121f,this['_availableActions']=_0x53748e,this['set']('isTrackChangesOn',!0x1),this['set']('isAcceptAllEnabled',!0x1),this['_children']=this['createCollection'](),this['_skeletonView']=new yO(_0x26a05f,vO['aiSuggestionBody']),this['_skeletonView']['isVisible']=!0x0,this['_skeletonShownAt']=Date['now'](),this['_children']['add'](this['_skeletonView']),this['_updateContentPartsPromiseQueue']=new TO(),this['_emptyPartsWarningView']=new AO({'id':'empty-parts-warning','initialContent':ca(_0x26a05f,'AI_SUGGESTION_EMPTY_PART_WARNING'),'level':'warning'}),this['_emptyPartsWarningView']['isVisible']=!0x1,this['_actionsView']=new IO(_0x26a05f,_0x595646['availableActions'],this['_areActionsDisabled']),this['_actionsView']['bind']('isTrackChangesOn')['to'](this),this['_sourcesView']=new kO(this['locale'],_0x595646['bodyCollection']),_0x595646['areActionsDisabled']?this['_actionsView']['isEnabled']=!0x1:this['_actionsView']['bind']('isEnabled')['to'](this,'isAcceptAllEnabled'),this['_actionsView']['delegate'](...Fg)['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__body']},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__body__content-parts']},'children':this['_children']},this['_emptyPartsWarningView'],this['_actionsView'],this['_sourcesView']]});}destroy(){this['_updateContentPartsPromiseQueue']['abort'](),this['_showSkeletonDebounced']['cancel'](),super['destroy']();}get partsCount(){return this['_contentPartViews']['length'];}get _contentPartViews(){return Array['from'](this['_children'])['filter'](_0x252026=>_0x252026 instanceof bO);}async updateContentParts({parts:_0x3b0081,abortSignal:_0x21bb28,skipLoadingEffects:_0x198251}){this['_cachedContentParts']['length']?_0x3b0081['forEach'](_0x43919b=>{const _0x17da0f=this['_cachedContentParts']['findIndex'](_0x22e236=>_0x22e236['index']==_0x43919b['index']);-0x1===_0x17da0f?this['_cachedContentParts']['push'](_0x43919b):this['_cachedContentParts'][_0x17da0f]=_0x43919b;}):this['_cachedContentParts']=_0x3b0081;const _0x1fbfd6=this['_showUnchangedParts']?_0x3b0081:_0x3b0081['filter'](_0x471be7=>_0x471be7['hasChanges']);this['_actionsView']['_switchButtonLabelsPlurality'](_0x1fbfd6['length']>0x1),_0x198251&&(this['_showSkeletonDebounced']['cancel'](),this['_skeletonView']['isVisible']=!0x1);for(const _0x516ba2 of _0x3b0081)this['_updateContentPartsPromiseQueue']['enqueue'](async _0x5e1d4d=>{let _0x229a57=this['getPartView'](_0x516ba2['index']);if(_0x229a57||_0x516ba2['hasChanges']||this['_showUnchangedParts']){if(!_0x229a57){if(_0x229a57=new bO(this['locale'],{'part':_0x516ba2,'uiIndex':this['_contentPartViews']['length']+0x1,'areActionsDisabled':this['_areActionsDisabled'],'availableActions':this['_availableActions']}),_0x229a57['delegate'](...Fg)['to'](this),_0x229a57['bind']('isTrackChangesOn')['to'](this),!_0x198251&&(this['_showSkeletonDebounced']['cancel'](),await this['_awaitMinimumSkeletonDisplayTime'](_0x5e1d4d),_0x5e1d4d['aborted']))return;_0x229a57['isTargetReadOnly']=this['_readOnlyByIndex']['get'](_0x516ba2['index'])??!0x1,this['_skeletonView']['isVisible']=!0x1,this['_children']['add'](_0x229a57,this['_children']['length']-0x1),_0x198251||this['_showSkeletonDebounced']();}await _0x229a57['updateContent']({'part':_0x516ba2,'showUnchangedParts':this['_showUnchangedParts'],'abortSignal':_0x5e1d4d}),_0x229a57['markAsDone']();}});return _0x21bb28?.['addEventListener']('abort',()=>{this['_updateContentPartsPromiseQueue']['abort'](),this['_showSkeletonDebounced']['cancel'](),this['_skeletonView']['isVisible']=!0x1;}),this['_updateContentPartsPromiseQueue']['queueEmptyPromise'];}updatePartState(_0xaf0636,_0xc3f8b1,_0xd6bc28){const _0x241a4c=this['getPartView'](_0xaf0636);_0x241a4c&&(_0x241a4c['outdatedReason']=_0xd6bc28,_0x241a4c['state']=_0xc3f8b1);}setGating({readOnlyByIndex:_0x12a28d,isAcceptAllEnabled:_0x3733ab}){this['_readOnlyByIndex']=_0x12a28d,this['isAcceptAllEnabled']=_0x3733ab;for(const _0x23bd14 of this['_contentPartViews'])_0x23bd14['isTargetReadOnly']=_0x12a28d['get'](_0x23bd14['partDefinition']['index'])??!0x1;}setPartActive(_0x3436fa,_0x15e190){if(!0x1===_0x3436fa){for(const _0x532902 of this['_contentPartViews'])_0x532902['isActive']=!0x1;}else{const _0x297f9c=this['getPartView'](_0x3436fa);_0x297f9c&&(_0x297f9c['isActive']=_0x15e190);}}updateSources(_0x108905){_0x108905['forEach'](_0x89c7e=>this['_sourcesView']['addSource'](_0x89c7e)),this['_sourcesView']['isVisible']=!0x0;}getPartView(_0x5d3ee2){return this['_contentPartViews']['find'](_0x1293ae=>_0x1293ae['partDefinition']['index']==_0x5d3ee2)??null;}['markAsDone'](){if(!this['_showUnchangedParts']){const _0x357cf0=!this['_cachedContentParts']['find'](({hasChanges:_0x56a52c})=>_0x56a52c),_0xa127c2=!!this['_cachedContentParts']['find'](({hasChanges:_0x3c1bbc})=>!_0x3c1bbc);this['_emptyPartsWarningView']['isVisible']=0x0==this['_contentPartViews']['length']||_0xa127c2,_0x357cf0?this['_emptyPartsWarningView']['setContent'](ca(this['locale'],'AI_SUGGESTION_NO_PARTS_WARNING')):this['_emptyPartsWarningView']['setContent'](ca(this['locale'],'AI_SUGGESTION_EMPTY_PART_WARNING'));}this['_contentPartViews']['forEach'](_0x22348c=>_0x22348c['markAsDone']()),this['_skeletonView']['isVisible']=!0x1,this['_showSkeletonDebounced']['cancel'](),this['_actionsView']['updateVisibility'](this['hasNonEmptyParts']&&!this['_areActionsDisabled']);}async _awaitMinimumSkeletonDisplayTime(_0xdfbcf1){if(!this['_skeletonView']['isVisible']||null===this['_skeletonShownAt'])return;const _0x4a0b72=0x3e8-(Date['now']()-this['_skeletonShownAt']);if(this['_skeletonShownAt']=null,_0x4a0b72>0x0){const {promise:_0x4b1f2f,abortController:_0x6b14a4}=sO(_0x4a0b72);_0xdfbcf1?.['addEventListener']('abort',()=>_0x6b14a4['abort']()),await _0x4b1f2f['catch'](()=>{});}}get hasNonEmptyParts(){return this['_contentPartViews']['filter'](_0x17a201=>_0x17a201['partDefinition']['hasChanges'])['length']>0x0;}},RO=class extends _0x2f6e1a{['bodyView'];['children'];['headerView'];constructor(_0x254a46,_0x18df41,_0x244696){super(_0x254a46);const {showDiff:_0x46690f,areActionsDisabled:_0x27acf8,showUnchangedParts:_0x80ed45,availableActions:_0x5deb9c}=_0x18df41;this['set']('isTrackChangesOn',!0x1),this['set']('areChangesVisible',!0x1),this['children']=this['createCollection'](),this['headerView']=new hO(_0x254a46,{'showDiff':_0x46690f}),this['headerView']['on']('toggleShowChanges',(_0x594d68,_0x21de43)=>{this['areChangesVisible']=_0x21de43['isOn'],this['fire']('toggleSuggestionDisplayMode',{'showDiff':_0x21de43['isOn']});}),this['children']['add'](this['headerView']),this['bodyView']=new CO(_0x254a46,{'areActionsDisabled':_0x27acf8,'showUnchangedParts':!!_0x80ed45,'availableActions':_0x5deb9c,'bodyCollection':_0x244696}),this['bodyView']['delegate'](...Fg)['to'](this),this['bodyView']['bind']('isTrackChangesOn')['to'](this),this['children']['add'](this['bodyView']),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__container','ck-rounded-corners']},'children':this['children']});}async updateContent(_0x2ef990){await this['bodyView']['updateContentParts'](_0x2ef990);}updateSources(_0x5dfc0b){this['bodyView']['updateSources'](_0x5dfc0b);}['markAsDone'](){this['bodyView']['markAsDone'](),this['headerView']&&(this['headerView']['isShowChangesToggleVisible']=this['bodyView']['hasNonEmptyParts']);}},PO=class extends lO{containerView;constructor(_0x5bb111,_0x233a76,_0x25f83c){super(_0x233a76),this['set']('isTrackChangesOn',!0x1),this['containerView']=new RO(_0x5bb111,{'showDiff':_0x233a76['showDiff'],'areActionsDisabled':_0x233a76['areActionsDisabled'],'availableActions':_0x233a76['availableActions']},_0x25f83c),this['containerView']['on']('toggleSuggestionDisplayMode',(_0x120fa9,_0x403734)=>{this['fire']('toggleSuggestionDisplayMode',{'replyId':this['options']['id'],'showDiff':_0x403734['showDiff']});}),this['containerView']['bind']('isTrackChangesOn')['to'](this),this['containerView']['on']('like',()=>{this['fire']('like',{'replyId':this['options']['id']});}),this['containerView']['on']('dislike',()=>{this['fire']('dislike',{'replyId':this['options']['id']});}),this['containerView']['on']('showChangeInText',(_0x27c7a6,{index:_0x87769d})=>{this['fire']('showChangeInText',{'replyId':this['options']['id'],'partIndex':_0x87769d});}),this['containerView']['on']('applySuggestion',(_0x2db1bd,{index:_0x5b4da5}={})=>{this['fire']('applySuggestion',{'replyId':this['options']['id'],'partIndex':_0x5b4da5});}),this['containerView']['on']('insertSuggestion',(_0x4a8152,{index:_0x5113e2}={})=>{this['fire']('insertSuggestion',{'replyId':this['options']['id'],'partIndex':_0x5113e2});}),this['containerView']['on']('rejectSuggestion',(_0x3283c7,{index:_0x122148})=>{this['fire']('rejectSuggestion',{'replyId':this['options']['id'],'partIndex':_0x122148});}),this['containerView']['on']('mouseOverSuggestion',(_0x2622dd,{index:_0x5b90d2})=>{this['fire']('mouseOverSuggestion',{'replyId':this['options']['id'],'partIndex':_0x5b90d2});}),this['containerView']['on']('mouseLeaveSuggestion',(_0x195af9,{index:_0x23e654})=>{this['fire']('mouseLeaveSuggestion',{'replyId':this['options']['id'],'partIndex':_0x23e654});}),this['children']['addMany']([this['containerView']]),this['extendTemplate']({'attributes':{'class':['ck-ai-chat__feed__ai-suggestion']}});}async updateContent(_0x102ccc){await this['containerView']['updateContent'](_0x102ccc);}updatePartState(_0x51354b,_0x6b276a,_0x4fdc52){this['containerView']['bodyView']['updatePartState'](_0x51354b,_0x6b276a,_0x4fdc52);}setPartActive(_0x1cf2ad,_0x455acf){!0x1===_0x1cf2ad?this['containerView']['bodyView']['setPartActive'](!0x1):this['containerView']['bodyView']['setPartActive'](_0x1cf2ad,_0x455acf);}updateSources(_0x92bbb){this['containerView']['updateSources'](_0x92bbb);}getPartView(_0x85afe8){return this['containerView']['bodyView']['getPartView'](_0x85afe8);}setGating(_0x4414ab){this['containerView']['bodyView']['setGating'](_0x4414ab);}['markAsDone'](){super['markAsDone'](),this['containerView']['markAsDone']();}},NO=class extends lO{replyContainer;_bodyCollection;constructor(_0x2732e5,_0x1aff78,_0x558d55){super(_0x1aff78),this['_bodyCollection']=_0x558d55,this['locale']=_0x2732e5,this['extendTemplate']({'attributes':{'class':['ck-ai-chat__feed__ai-reply']}}),this['replyContainer']=new _0x2f6e1a(),this['replyContainer']['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-ai-chat__feed__ai-reply-container','ck-ai-chat-content']}}),this['children']['add'](this['replyContainer']);}async['render'](){super['render'](),this['options']['initialContent']&&(await this['updateContent']({'parsedContent':qc(this['options']['initialContent']),'renderingStrategy':'static'}),this['markAsDone']());}async updateContent({parsedContent:_0x180834,renderingStrategy:_0x5f063b,abortSignal:_0x75701}){'streaming'===_0x5f063b?await this['streamIntoElement'](_0x180834,this['replyContainer']['element'],_0x75701):this['replyContainer']['element']['innerHTML']=Mc(_0x180834);}updateSources(_0x71efa2){const _0x3ca1ce=new kO(this['locale'],this['_bodyCollection']);_0x3ca1ce['children']['addMany'](_0x71efa2['map'](_0x23f992=>new xO(this['locale'],_0x23f992,_0x3ca1ce['balloonPanelView']))),_0x3ca1ce['isVisible']=!0x0,this['children']['add'](_0x3ca1ce);}},MO=class extends _0x4d4034{constructor(_0x4d9b6b=void 0x0){super();const _0x517ac4=_0x4d9b6b?'ck-ai-spinner_'+_0x4d9b6b:'';this['extendTemplate']({'tag':'span','attributes':{'class':['ck-ai-spinner',_0x517ac4]}});}};const LO={'file':it,'image':pt,'document':_0x5669ab,'web-resource':vt,'text':it,'selection':te,'mcp-tool-context':_0x5669ab,'context':_0x5669ab},$O='ck-ai-chat-context-chip',DO='ck-ai-chat-context-chip_wide',QO='ck-ai-chat-context-chip_document',jO='ck-ai-chat-context-chip__label',UO='ck-ai-chat-context-chip__type-icon',VO='ck-ai-chat-context-controls__chip-tooltip',BO='n';var HO=class extends _0x39ae99{constructor(_0x488126,_0x3659ce,_0x163ae2,_0x12533a,_0x4a2781=!0x1){super(_0x488126),this['_isAnimationOnEnterEnabled']=_0x12533a,this['_initializeProperties'](_0x3659ce,_0x163ae2,_0x4a2781),this['_setupTemplate']();}['render'](){super['render'](),this['_isAnimationOnEnterEnabled']&&this['element']&&(this['element']['classList']['add']('ck-ai-chat-context-chip_new-chip'),this['_handleAnimationEndOnce'](this['element'],()=>{this['element']&&this['element']['classList']['remove']('ck-ai-chat-context-chip_new-chip');}));}disableAnimationOnEnter(){this['_isAnimationOnEnterEnabled']=!0x1,this['element']&&this['element']['classList']['remove']('ck-ai-chat-context-chip_new-chip');}_initializeProperties(_0x373d80,_0x15b8dd,_0x4b5922){this['set']('label',_0x373d80['label']),this['set']('tooltip',!0x0),this['set']('itemType',_0x373d80['type']),this['set']('id',_0x373d80['uiId']),this['set']('readonly',_0x15b8dd),this['set']('isLoading',_0x4b5922);}_setupTemplate(){const _0x5e077f=this['_createIconView'](),_0x1bc629=this['_createRemoveButton'](),_0x205d44=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':this['_createTemplateAttributes'](_0x205d44),'children':this['_createTemplateChildren'](_0x5e077f,_0x1bc629,_0x205d44)});}_createTemplateAttributes(_0x2861d6){return{'class':[$O,_0x2861d6['if']('itemType',QO,_0x3c04e2=>'document'==_0x3c04e2),_0x2861d6['if']('itemType',DO,_0x173074=>'selection'==_0x173074)],'data-cke-tooltip-text':_0x2861d6['to']('label',FO),'data-cke-tooltip-position':BO,'data-cke-tooltip-class':VO};}_createTemplateChildren(_0x23bc1f,_0x1f7e6c,_0x820e49){const _0x4c079c=this['_createLabelElement'](_0x820e49),_0x20eebb=this['_createLoaderIcon']();return this['readonly']?[_0x23bc1f,_0x4c079c]:[_0x23bc1f,_0x20eebb,_0x4c079c,_0x1f7e6c];}_createLabelElement(_0x28eb22){return{'tag':'span','attributes':{'class':jO},'children':[{'text':_0x28eb22['to']('label')}]};}_createRemoveButton(){const _0x1a3127=new _0x39ae99(this['locale']);return _0x1a3127['set']({'label':ca(this['locale'],'AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT'),'icon':_0x2f7d46}),this['_setupRemoveButtonEvent'](_0x1a3127),_0x1a3127;}_setupRemoveButtonEvent(_0x20f315){_0x20f315['on']('execute',()=>{this['fire']('removeContextItemChip',this['id']);});}_createIconView(){const _0x30ed13=this['bindTemplate'],_0x2e5c2c=new _0x5d1800();return _0x2e5c2c['content']=LO[this['itemType']],_0x2e5c2c['extendTemplate']({'attributes':{'class':[UO,_0x30ed13['if']('isLoading','ck-hidden',_0x41c3f2=>_0x41c3f2)]}}),_0x2e5c2c;}_handleAnimationEndOnce(_0x5f43d4,_0x10a563){if(!_0x5f43d4)return;const _0x5bcaec=()=>{_0x10a563(),_0x5f43d4['removeEventListener']('animationend',_0x5bcaec),_0x5f43d4['removeEventListener']('webkitAnimationEnd',_0x5bcaec);};_0x5f43d4['addEventListener']('animationend',_0x5bcaec),_0x5f43d4['addEventListener']('webkitAnimationEnd',_0x5bcaec);}_createLoaderIcon(){const _0x415271=new MO('small');return _0x415271['bind']('isVisible')['to'](this,'isLoading',_0xf464b8=>_0xf464b8),_0x415271;}};function FO(_0x54e09e){if(!_0x54e09e)return _0x54e09e;if(_0x54e09e['length']<=0x78)return _0x54e09e;const _0x37043a=_0x54e09e['slice'](0x0,0x78),_0x12d20d=_0x37043a['lastIndexOf']('\x20');return(_0x12d20d>0x0?_0x37043a['slice'](0x0,_0x12d20d):_0x37043a)+'…';}const ZO={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},GO='300px';var XO=class{['_locale'];['_config'];['_visibleChips'];['_overflowChips'];_showMoreButtonView=null;['_showMoreBalloonPanelView']=null;_containerElement=null;_bodyCollection;_parentView=null;_intersectionObserver=null;_pendingCalculation=!0x1;constructor(_0x5bb560,_0xbd5302,_0x33f6f7,_0x474065,_0x543309){this['_locale']=_0x5bb560,this['_visibleChips']=_0xbd5302,this['_config']={...ZO,..._0x33f6f7,'cssClasses':{'controlsButton':'','calculationContainer':'ck-calculation-container',..._0x33f6f7['cssClasses']}},this['_overflowChips']=new _0x2186b6(),this['_bodyCollection']=_0x474065,this['_parentView']=_0x543309||null;}setContainerElement(_0xc5a12e){this['_intersectionObserver']&&(this['_intersectionObserver']['disconnect'](),this['_intersectionObserver']=null),this['_containerElement']=_0xc5a12e,this['_setupVisibilityObserver']();}get showMoreButtonView(){return this['_showMoreButtonView'];}get['overflowChips'](){return this['_overflowChips'];}['reorganizeChips'](){requestAnimationFrame(()=>{this['_checkAndHandleOverflow']();});}['showBalloonPanel'](){this['_showMoreButtonView']&&this['_showMoreBalloonPanelView']&&(this['_updateBalloonContent'](),this['_showMoreButtonView']['isOn']=!0x0,this['_showMoreBalloonPanelView']['show'](),this['_showMoreBalloonPanelView']['pin']({'target':this['_showMoreButtonView']['element'],'limiter':document['querySelector']('.ck-ai-chat')}));}['hideBalloonPanel'](){this['_showMoreButtonView']&&this['_showMoreBalloonPanelView']&&(this['_showMoreButtonView']['isOn']=!0x1,this['_showMoreBalloonPanelView']['hide']());}['clear'](){this['_overflowChips']['clear'](),this['hideBalloonPanel'](),this['_updateShowMoreButtonVisibility'](),this['_showMoreButtonView']&&(this['_showMoreButtonView']['label']=''),this['_showMoreBalloonPanelView']&&this['_showMoreBalloonPanelView']['content']['clear']();}destroy(){this['_intersectionObserver']&&(this['_intersectionObserver']['disconnect'](),this['_intersectionObserver']=null),this['_showMoreButtonView']&&(this['_showMoreButtonView']['destroy'](),this['_showMoreButtonView']=null),this['_showMoreBalloonPanelView']&&(this['_showMoreBalloonPanelView']['destroy'](),this['_showMoreBalloonPanelView']=null);}['_checkAndHandleOverflow'](){if(!this['_containerElement'])return;if(!this['_isContainerVisible']())return void(this['_pendingCalculation']=!0x0);this['_pendingCalculation']=!0x1;const _0x227eb6=[...this['_visibleChips'],...this['_overflowChips']],_0x394935=this['_createCalculationContainer'](),_0x346b5f=this['_calculateOverflowInContainer'](_0x394935,_0x227eb6),_0x135b99=_0x394935['_ancestorsToRestore'];_0x135b99&&this['_restoreAncestorVisibility'](_0x135b99),_0x394935['remove'](),this['_applyOverflowResults'](_0x227eb6,_0x346b5f);}_createShowMoreButton(){this['_showMoreButtonView']=this['_createShowMoreButtonView'](),this['_showMoreBalloonPanelView']=this['_createShowMoreBalloonPanelView'](),this['_showMoreButtonView']['render'](),this['_containerElement']['appendChild'](this['_showMoreButtonView']['element']),this['_showMoreButtonView']['on']('execute',()=>{this['_handleShowMoreButtonClick']();}),_0xca2f72({'emitter':this['_showMoreBalloonPanelView'],'contextElements':[this['_showMoreBalloonPanelView']['element'],this['_showMoreButtonView']['element']],'callback':()=>this['hideBalloonPanel'](),'activator':()=>this['_showMoreButtonView']['isOn']});}_createShowMoreButtonView(){const _0x89b740=new _0x39ae99(this['_locale']);_0x89b740['set']({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x10b5f7=[this['_config']['cssClasses']['showMoreButton']];return this['_config']['cssClasses']['controlsButton']&&_0x10b5f7['push'](this['_config']['cssClasses']['controlsButton']),_0x89b740['extendTemplate']({'attributes':{'class':_0x10b5f7}}),_0x89b740;}_createShowMoreBalloonPanelView(){const _0x3ebafa=new _0x42b496(this['_locale']);return _0x3ebafa['extendTemplate']({'attributes':{'class':this['_config']['cssClasses']['showMoreBalloon']}}),this['_bodyCollection']['add'](_0x3ebafa),_0x3ebafa;}_updateBalloonContent(){if(this['_showMoreBalloonPanelView']&&(this['_showMoreBalloonPanelView']['content']['clear'](),this['_overflowChips']['length']>0x0)){this['_overflowChips']['forEach'](_0x593906=>{_0x593906['disableAnimationOnEnter']();});const _0x751541=new _0x2f6e1a(this['_locale']);_0x751541['setTemplate']({'tag':'div','attributes':{'class':this['_config']['cssClasses']['overflowContainer']},'children':this['_overflowChips']}),this['_showMoreBalloonPanelView']['content']['add'](_0x751541);}}_handleShowMoreButtonClick(){this['_showMoreButtonView']['isOn']?this['hideBalloonPanel']():this['showBalloonPanel']();}_updateShowMoreButtonVisibility(){const _0x124fd2=this['_overflowChips']['length']>0x0;this['_showMoreButtonView']?.['element']&&(this['_showMoreButtonView']['element']['style']['display']=_0x124fd2?'':'none');}['_repinBalloonPanel'](){this['_showMoreButtonView']?.['isOn']&&this['_showMoreBalloonPanelView']?.['isVisible']&&this['_showMoreButtonView']['element']&&this['_showMoreBalloonPanelView']['pin']({'target':this['_showMoreButtonView']['element'],'limiter':document['querySelector']('.ck-ai-chat')});}_findTargetContainer(_0x3837bd){const _0x389503=this['_containerElement']?.['tagName']['toLowerCase']()||'div',_0x549095=this['_containerElement']?.['classList'];if(_0x549095){const _0x515c95=_0x549095[0x0]||'',_0x4a2970=_0x3837bd['querySelector']('.'+_0x515c95),_0x152d0c=_0x3837bd['querySelector'](_0x389503);return _0x4a2970||_0x152d0c||_0x3837bd;}return _0x3837bd['querySelector'](_0x389503)||_0x3837bd;}_calculateContainerWidth(){const _0x169deb=this['_parentView']?.['element']||this['_containerElement'];if(!_0x169deb)return GO;const _0x30431c=window['getComputedStyle'](_0x169deb)['width'];if('auto'===_0x30431c||'0px'===_0x30431c||!_0x30431c){const _0x70a02e=_0x169deb['parentElement'];if(_0x70a02e){const _0xa7dcf8=window['getComputedStyle'](_0x70a02e);return'auto'!==_0xa7dcf8['width']?_0xa7dcf8['width']:GO;}return GO;}return _0x30431c;}_applyCalculationStyles(_0x472498,_0x50b6cf){this['_config']['cssClasses']['calculationContainer']&&_0x472498['classList']['add'](this['_config']['cssClasses']['calculationContainer']),_0x472498['style']['width']=_0x50b6cf,_0x472498['style']['position']='absolute',_0x472498['style']['top']='-9999px',_0x472498['style']['left']='-9999px',_0x472498['style']['opacity']='0',_0x472498['style']['pointerEvents']='none',_0x472498['style']['zIndex']='-1',_0x472498['style']['visibility']='visible\x20!important',_0x472498['style']['display']='block\x20!important',_0x472498['style']['boxSizing']='border-box';}_restoreAncestorVisibility(_0x5a5f21){_0x5a5f21['forEach'](({element:_0x5c4f12,originalDisplay:_0x3763c0,originalVisibility:_0x2b9fa7})=>{_0x5c4f12['style']['display']=_0x3763c0,_0x5c4f12['style']['visibility']=_0x2b9fa7;});}_makeAncestorsVisible(_0xc82323){const _0x49e382=[];let _0x764cab=_0xc82323;for(;_0x764cab&&_0x764cab!==document['body'];){const _0x6a80a3=window['getComputedStyle'](_0x764cab);'none'!==_0x6a80a3['display']&&'hidden'!==_0x6a80a3['visibility']||(_0x49e382['push']({'element':_0x764cab,'originalDisplay':_0x764cab['style']['display'],'originalVisibility':_0x764cab['style']['visibility']}),_0x764cab['style']['display']='block',_0x764cab['style']['visibility']='visible'),_0x764cab=_0x764cab['parentElement'];}return _0x49e382;}_createContainerElements(){let _0x45f27f,_0x5dad74;return this['_parentView']?.['element']?(_0x45f27f=this['_parentView']['element']['cloneNode'](!0x0),_0x5dad74=this['_findTargetContainer'](_0x45f27f)):(_0x45f27f=document['createElement']('div'),_0x5dad74=_0x45f27f),{'calculationContainer':_0x45f27f,'targetContainer':_0x5dad74};}_createCalculationContainer(){const {calculationContainer:_0x4d2932,targetContainer:_0x48e8db}=this['_createContainerElements'](),_0x1a291e=this['_calculateContainerWidth']();this['_applyCalculationStyles'](_0x4d2932,_0x1a291e);const _0x3e8ce9=(this['_parentView']?.['element']||this['_containerElement'])?.['parentElement'];_0x3e8ce9?_0x3e8ce9['appendChild'](_0x4d2932):document['body']['appendChild'](_0x4d2932),_0x4d2932['_targetContainer']=_0x48e8db;const _0x13c2c4=this['_makeAncestorsVisible'](_0x3e8ce9||null);return _0x4d2932['offsetWidth'],_0x4d2932['_ancestorsToRestore']=_0x13c2c4,_0x4d2932;}_calculateOverflowInContainer(_0x22878e,_0xbd6125){const _0x55a759=_0x22878e['_targetContainer']||_0x22878e,_0x6aed31=[],{rowCount:_0x158fb3}=this['_renderChipsAndCountRows'](_0x55a759,_0xbd6125);if(_0x158fb3<=this['_config']['maxVisibleRows'])return _0x6aed31;const _0x53dd89=_0xbd6125['slice']();for(;_0x53dd89['length']>0x0;){if(this['_testButtonFit'](_0x22878e,_0x55a759,_0x53dd89)){const _0x12a2a5=_0xbd6125['filter'](_0x5d6ad0=>!_0x53dd89['includes'](_0x5d6ad0));_0x6aed31['push'](..._0x12a2a5);break;}if(!_0x53dd89['pop']())break;}return _0x6aed31;}_renderChipsAndCountRows(_0x3fd4c6,_0x10bf39){_0x3fd4c6['innerHTML']='',_0x10bf39['forEach'](_0x3a3c0f=>{if(_0x3a3c0f['element']){const _0x4bc9f8=_0x3a3c0f['element']['cloneNode'](!0x0);_0x3fd4c6['appendChild'](_0x4bc9f8);}}),_0x3fd4c6['offsetWidth'];const _0x216667=_0x3fd4c6['children'],_0x135397=[];return Array['from'](_0x216667)['forEach'](_0x236e35=>{const _0x5c97d6=_0x236e35['getBoundingClientRect']()['top'];_0x135397['some'](_0x1e21b5=>Math['abs'](_0x1e21b5-_0x5c97d6)<this['_config']['rowDetectionTolerance'])||_0x135397['push'](_0x5c97d6);}),{'rowCount':_0x135397['length']};}_createMockButton(){const _0x900f5d=document['createElement']('button');return _0x900f5d['className']=this['_config']['cssClasses']['showMoreButton'],this['_config']['cssClasses']['controlsButton']&&_0x900f5d['classList']['add'](this['_config']['cssClasses']['controlsButton']),_0x900f5d['textContent']='+\x201',_0x900f5d;}_testButtonFit(_0x407490,_0x43c78c,_0x9e7fca){this['_renderChipsAndCountRows'](_0x43c78c,_0x9e7fca);const _0x1d373d=this['_createMockButton']();_0x407490['appendChild'](_0x1d373d),_0x407490['offsetWidth'];const _0x5a2491=[..._0x43c78c['children'],_0x1d373d],_0x17cabb=[];_0x5a2491['forEach'](_0x1f70a1=>{const _0x25102d=_0x1f70a1['getBoundingClientRect']()['top'];_0x17cabb['some'](_0x4bb5ca=>Math['abs'](_0x4bb5ca-_0x25102d)<this['_config']['rowDetectionTolerance'])||_0x17cabb['push'](_0x25102d);});const _0x278431=_0x17cabb['length'];return _0x1d373d['remove'](),_0x278431<=this['_config']['maxVisibleRows'];}_distributeChips(_0x2519a3,_0x1c2ea8){this['_visibleChips']['clear'](),this['_overflowChips']['clear'](),_0x2519a3['forEach'](_0x3e26cc=>{_0x1c2ea8['includes'](_0x3e26cc)?this['_overflowChips']['add'](_0x3e26cc):this['_visibleChips']['add'](_0x3e26cc);});}_updateOverflowUI(_0xbe627a){if(_0xbe627a>0x0&&!this['_showMoreButtonView']&&this['_createShowMoreButton'](),_0xbe627a>0x0&&this['_showMoreButtonView']){const _0x1fe6e5=''+this['_config']['showMoreLabelPrefix']+(_0xbe627a<0x63?_0xbe627a:'99');this['_showMoreButtonView']['label']=_0x1fe6e5;}this['_updateBalloonContent'](),this['_updateShowMoreButtonVisibility'](),this['_repinBalloonPanel']();}_applyOverflowResults(_0x3246fe,_0x29a01f){this['_distributeChips'](_0x3246fe,_0x29a01f),this['_updateOverflowUI'](_0x29a01f['length']);}_setupVisibilityObserver(){this['_containerElement']&&'undefined'!=typeof IntersectionObserver&&(this['_intersectionObserver']=new IntersectionObserver(_0x1f8c81=>{_0x1f8c81[0x0]['isIntersecting']&&this['_pendingCalculation']&&requestAnimationFrame(()=>{this['_checkAndHandleOverflow']();});},{'threshold':0.01,'rootMargin':'50px'}),this['_intersectionObserver']['observe'](this['_containerElement']));}_isContainerVisible(){if(!this['_containerElement'])return!0x1;if(!this['_containerElement']['isConnected'])return!0x1;const _0x4d7ee0=this['_containerElement']['getBoundingClientRect']();if(0x0===_0x4d7ee0['width']||0x0===_0x4d7ee0['height'])return!0x1;const _0x7bd983=window['innerHeight']||document['documentElement']['clientHeight'],_0x4b1b72=window['innerWidth']||document['documentElement']['clientWidth'];return _0x4d7ee0['bottom']>=-0xc8&&_0x4d7ee0['top']<=_0x7bd983+0xc8&&_0x4d7ee0['right']>=-0xc8&&_0x4d7ee0['left']<=_0x4b1b72+0xc8;}};const qO='ck-ai-chat__feed__context-chips',WO='ck-ai-chat-context-chips-wrapper',zO='ck-ai-chat-context-chips-wrapper-balloon',YO='ck-ai-chat-controls-button',KO='ck-ai-chat-controls_context_show-more-button',JO='ck-ai-chat-context-controls__show-more-balloon-panel';var tw=class extends _0x2f6e1a{_contextChips=this['createCollection']();['_overflowManager'];_bodyCollection;constructor(_0x44b298,_0x54225e,_0x2fb041){super(_0x44b298),this['_bodyCollection']=_0x2fb041,this['_createContextChips'](_0x54225e);const _0x3b75dc={'cssClasses':{'showMoreButton':KO+'\x20'+Eg,'showMoreBalloon':JO,'overflowContainer':zO,'controlsButton':YO}};this['_overflowManager']=new XO(_0x44b298,this['_contextChips'],_0x3b75dc,this['_bodyCollection'],this),this['setTemplate']({'tag':'div','attributes':{'class':[qO,'ck','ck-reset_all']},'children':[{'tag':'div','attributes':{'class':WO},'children':this['_contextChips']}]});}['render'](){super['render']();const _0x279ea2=this['element']['querySelector']('.'+WO);_0x279ea2&&(this['_overflowManager']['setContainerElement'](_0x279ea2),this['_overflowManager']['reorganizeChips']());}destroy(){super['destroy'](),this['_overflowManager']['destroy']();}_createContextChips(_0x54c576){for(const _0xb006a of _0x54c576){const _0x4b59a9=new HO(this['locale'],_0xb006a,!0x0,!0x1);this['_contextChips']['add'](_0x4b59a9);}}},ew=class extends lO{_contextChipsView=null;['_locale'];_bodyCollection;_messageContentView;constructor(_0x48d264,_0x50b9a5,_0xa22524){super(_0x50b9a5),this['_locale']=_0x48d264,this['_bodyCollection']=_0xa22524,this['_createContextChipsView'](),this['_createMessageContentView'](),this['extendTemplate']({'attributes':{'class':['ck-ai-chat__feed__user-message']}});}_createContextChipsView(){this['options']['contextItems']&&this['options']['contextItems']['length']>0x0&&(this['_contextChipsView']=new tw(this['_locale'],this['options']['contextItems']['filter'](_0x10b860=>!_0x10b860['hidden']),this['_bodyCollection']),this['_contextChipsView']['extendTemplate']({'attributes':{'class':'ck-ai-chat__feed__context-chips'}}),this['children']['add'](this['_contextChipsView']));}_createMessageContentView(){this['_messageContentView']=new _0x2f6e1a(this['_locale']),this['_messageContentView']['setTemplate']({'tag':'div','attributes':{'class':['ck-reset_all-excluded','ck-ai-chat__feed__message-content','ck-ai-chat-content']}}),this['children']['add'](this['_messageContentView']);}['render'](){super['render'](),this['_messageContentView']['element']['innerHTML']=this['options']['initialContent'],this['markAsDone']();}},iw=class extends lO{capabilities;constructor(_0x3ca66f,_0x4b4b3d){super(_0x4b4b3d);const {isWebSearchEnabled:_0x18f649,isReasoningEnabled:_0x374e75}=_0x4b4b3d['capabilities'],_0x6997d3=[];let _0x194994='';_0x18f649&&_0x374e75?(_0x194994=ca(_0x3ca66f,'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING'),_0x6997d3['push'](sw(_0x39260c)),_0x6997d3['push'](sw(_0x50ce8f))):_0x18f649?(_0x194994=ca(_0x3ca66f,'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH'),_0x6997d3['push'](sw(_0x39260c))):_0x374e75&&(_0x194994=ca(_0x3ca66f,'AI_CHAT_FEED_REPLY_ITEM_USED_REASONING'),_0x6997d3['push'](sw(_0x50ce8f))),this['extendTemplate']({'attributes':{'class':['ck-ai-chat__feed__interaction-header',_0x194994?'':'ck-hidden']}});const _0x2dc8ab=new _0x2f6e1a();_0x2dc8ab['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__interaction-header__capabilities']},'children':[..._0x6997d3,{'tag':'span','attributes':{'class':['ck-ai-chat__feed__interaction-header__capabilities__text']},'children':[_0x194994]}]}),this['children']['add'](_0x2dc8ab),this['capabilities']=_0x4b4b3d['capabilities'];}};function sw(_0x26390e){const _0x179a89=new _0x5d1800();return _0x179a89['content']=_0x26390e,_0x179a89;}const nw=['wheel','touchstart','pointerdown','keydown'],rw=['ArrowUp','ArrowDown','PageUp','PageDown','Home','End','\x20'];var ow=class{element;animationFrameId;['isRunning'];abortController;['isUserPaused'];['scrollBehavior'];constructor(_0x579127){this['element']=_0x579127,this['animationFrameId']=null,this['isRunning']=!0x1,this['abortController']=new AbortController(),this['isUserPaused']=!0x1,this['scrollBehavior']='smooth';for(const _0x6087bc of nw){const _0x2d74c0='keydown'!==_0x6087bc;this['element']['addEventListener'](_0x6087bc,this['_onUserEvent']['bind'](this),{'passive':_0x2d74c0,'signal':this['abortController']['signal']});}}start({smooth:_0x4d9b6c=!0x0}={}){this['isRunning']||(this['isRunning']=!0x0,this['isUserPaused']=!0x1,this['scrollBehavior']=_0x4d9b6c?'smooth':'auto',this['animationFrameId']=requestAnimationFrame(this['_rafUpdate']['bind'](this)));}stop(){requestAnimationFrame(()=>{this['_stop']();});}destroy(){this['_stop'](),this['abortController']['abort']();}_stop(){null!==this['animationFrameId']&&(cancelAnimationFrame(this['animationFrameId']),this['animationFrameId']=null),this['isRunning']&&(this['isRunning']=!0x1),this['isUserPaused']=!0x1;}_onUserEvent(_0x258f0d){if(this['isRunning']){if('keydown'===_0x258f0d['type']){const _0x1e53fd=_0x258f0d['key'];if(!rw['includes'](_0x1e53fd))return;}_0x258f0d instanceof WheelEvent?_0x258f0d['deltaY']<0x0?this['isUserPaused']=!0x0:this['isUserPaused']=!this['_isAtBottom']():this['isUserPaused']=!0x0;}}_isAtBottom(){const {scrollTop:_0x1d5f74,scrollHeight:_0x4b8296,clientHeight:_0x152346}=this['element'];return _0x4b8296-_0x1d5f74-_0x152346<=0x5;}_rafUpdate(){this['isRunning']&&(this['isUserPaused']||this['element']['scrollTo']({'top':this['element']['scrollHeight'],'behavior':this['scrollBehavior']}),this['animationFrameId']=requestAnimationFrame(this['_rafUpdate']['bind'](this)));}},aw=class extends lO{constructor(_0x1b1381){super(_0x1b1381),this['extendTemplate']({'attributes':{'class':['ck-ai-chat__feed__custom-element']}});}async['render'](){super['render'](),'string'==typeof this['options']['content']?this['element']['innerHTML']=this['options']['content']:this['element']['appendChild'](this['options']['content']);}},cw=class extends _0x2f6e1a{['children'];['scrollManager'];_bodyCollection;constructor(_0x57a14f,_0x4741ca){super(_0x57a14f),this['_bodyCollection']=_0x4741ca,this['set']('loadingMessage',''),this['set']('isLoadingSkeletonVisible',!0x1),this['set']('isTrackChangesOn',!0x1),this['children']=this['createCollection'](),this['children']['delegate'](...Zg)['to'](this),this['_setupTemplate']();}['render'](){super['render'](),this['scrollManager']=new ow(this['element']);}destroy(){super['destroy'](),this['scrollManager']['destroy']();}['clear'](){this['children']['clear']();}addItem(_0x1ba5b,_0x22c2d9){let _0x4d54b3;return'ai-reply'===_0x1ba5b?_0x4d54b3=new NO(this['locale'],_0x22c2d9,this['_bodyCollection']):'ai-suggestion-reply'===_0x1ba5b?(_0x4d54b3=new PO(this['locale'],_0x22c2d9,this['_bodyCollection']),_0x4d54b3['bind']('isTrackChangesOn')['to'](this)):_0x4d54b3='user-message'===_0x1ba5b?new ew(this['locale'],_0x22c2d9,this['_bodyCollection']):'interaction-header'===_0x1ba5b?new iw(this['locale'],_0x22c2d9):'custom-element'===_0x1ba5b?new aw(_0x22c2d9):new AO(_0x22c2d9),this['children']['add'](_0x4d54b3),_0x4d54b3;}async updateReplyItem({id:_0x4595e8,parsedContent:_0x81d8a,renderingStrategy:_0xb3617,abortSignal:_0xfa6e6}){const _0x2b182d=this['getItemById'](_0x4595e8);if(!(_0x2b182d instanceof NO))throw new _0x4242d4('ai-chat-feed-view-item-not-a-reply-item',null,{'itemView':_0x2b182d,'id':_0x4595e8,'parsedContent':_0x81d8a});await _0x2b182d['updateContent']({'parsedContent':_0x81d8a,'renderingStrategy':_0xb3617,'abortSignal':_0xfa6e6});}async updateWebSources(_0x3a6b11,_0xc6a131){const _0x1f3755=this['getItemById'](_0x3a6b11);if(_0x1f3755 instanceof PO)_0x1f3755['updateSources'](_0xc6a131);else{if(!(_0x1f3755 instanceof NO))throw new _0x4242d4('ai-chat-feed-view-item-not-a-suggestion-or-reply-item',null,{'itemView':_0x1f3755,'id':_0x3a6b11,'sources':_0xc6a131});_0x1f3755['updateSources'](_0xc6a131);}}async updateSuggestionItem({id:_0x5d4f62,parts:_0x41951c,abortSignal:_0x65951f,skipLoadingEffects:_0x29233e}){const _0xe05506=this['getItemById'](_0x5d4f62);if(!(_0xe05506 instanceof PO))throw new _0x4242d4('ai-chat-feed-view-item-not-a-suggestion-item',null,{'itemView':_0xe05506,'id':_0x5d4f62,'parts':_0x41951c});await _0xe05506['updateContent']({'parts':_0x41951c,'abortSignal':_0x65951f,'skipLoadingEffects':_0x29233e});}updateSuggestionPartState({id:_0xddee1a,index:_0x4b2106,state:_0x11cd0c,outdatedReason:_0x2429f4}){const _0x1ac293=this['getItemById'](_0xddee1a);if(!(_0x1ac293 instanceof PO))throw new _0x4242d4('ai-chat-feed-view-item-not-a-suggestion-item',this,{'id':_0xddee1a});_0x1ac293['updatePartState'](_0x4b2106,_0x11cd0c,_0x2429f4);}updateSuggestionGating(_0x583a84,_0x52d437){const _0x217a80=this['getItemById'](_0x583a84);if(!(_0x217a80 instanceof PO))throw new _0x4242d4('ai-chat-feed-view-item-not-a-suggestion-item',this,{'id':_0x583a84});_0x217a80['setGating'](_0x52d437);}setSuggestionPartActive({id:_0x3b709e,index:_0x35c422,isActive:_0x1c9bc4}){const _0x29fb15=this['getItemById'](_0x3b709e);if(!(_0x29fb15 instanceof PO))throw new _0x4242d4('ai-chat-feed-view-item-not-a-suggestion-item',this,{'id':_0x3b709e});this['children']['filter'](_0x35486b=>_0x35486b instanceof PO)['forEach'](_0x160e4e=>{_0x160e4e['setPartActive'](!0x1);}),_0x29fb15['setPartActive'](_0x35c422,_0x1c9bc4);}markItemAsDone(_0x56dd11){this['getItemById'](_0x56dd11)['markAsDone']();}getItemIds(){return this['children']['map'](_0xdf11c5=>_0xdf11c5['options']['id']);}removeItem(_0x3dc312){this['children']['remove'](this['getItemById'](_0x3dc312));}hasItem(_0x276c37){return!!this['children']['find'](_0x13f1e9=>_0x13f1e9['options']['id']['includes'](_0x276c37));}scrollToSuggestion(_0x41fd88,_0x108916){const _0x596dd5=this['getItemById'](_0x41fd88);if(!(_0x596dd5 instanceof PO))return void _0x53dc7a('ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item',{'replyId':_0x41fd88,'partIndex':_0x108916});const _0x1167dc=_0x596dd5['getPartView'](_0x108916);_0x1167dc?ti(_0x1167dc['element'],0x14,this['element']['parentElement'],!0x0,!0x0):_0x53dc7a('ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found',{'replyId':_0x41fd88,'partIndex':_0x108916});}_setupTemplate(){this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed']},'children':this['_createTemplateChildren']()});}_createTemplateChildren(){const _0x4bf6da=this['_createSkeletonLoader']();return[this['_createFeedItems'](),_0x4bf6da,this['_createFeedLoader']()];}_createSkeletonLoader(){const _0x3683bf=new yO(this['locale'],vO['aiFeed']);return _0x3683bf['bind']('isVisible')['to'](this,'isLoadingSkeletonVisible'),_0x3683bf;}_createFeedItems(){const _0x2652b0=new _0x2f6e1a(this['locale']);return _0x2652b0['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__items',this['bindTemplate']['if']('isLoadingSkeletonVisible','ck-hidden')]},'children':this['children']}),_0x2652b0;}_createFeedLoader(){const _0x1299c0=new _0x2f6e1a(this['locale']);return _0x1299c0['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__loader',this['bindTemplate']['if']('loadingMessage','ck-hidden',_0x2f1f47=>!_0x2f1f47)]},'children':this['_createLoaderChildren']()}),_0x1299c0;}_createLoaderChildren(){const _0x12b708=new MO();return _0x12b708['isVisible']=!0x0,[_0x12b708,{'tag':'span','attributes':{'class':['ck','ck-ai-chat__loader-text']},'children':[{'text':this['bindTemplate']['to']('loadingMessage')}]}];}getItemById(_0x385165){const _0x23d86f=this['children']['find'](_0x287596=>_0x287596['options']['id']['includes'](_0x385165));if(!_0x23d86f)throw new _0x4242d4('ai-chat-feed-view-item-not-found',this,{'id':_0x385165});return _0x23d86f;}setLoadingMessage(_0x3208c2){this['set']('loadingMessage',_0x3208c2);}toggleLoadingSkeleton(_0x289cdf){this['set']('isLoadingSkeletonVisible',_0x289cdf);}startAutoScroll(_0x184c47={}){this['scrollManager']['start'](_0x184c47);}stopAutoScroll(){this['scrollManager']['stop']();}},lw=class extends _0x19f1e8{filter(){let _0x3bee3a=0x0;for(const _0x1c2058 of this['items'])_0x3bee3a+=_0x1c2058['items']['length'];return{'resultsCount':_0x3bee3a,'totalItemsCount':_0x3bee3a};}};function hw(_0x11f96f){const _0x3a0636=[];let _0x385803=!0x1;for(const _0x389726 of Array['from'](_0x11f96f['items'])){if('file'!==_0x389726['kind'])continue;if(_0x389726['webkitGetAsEntry']()?.['isDirectory']){_0x385803=!0x0;continue;}const _0xf98f22=_0x389726['getAsFile']();_0xf98f22&&_0x3a0636['push'](_0xf98f22);}return{'files':_0x3a0636,'hasDirectory':_0x385803};}const uw='ck-ai-chat__prompt-input_highlighted';var dw=class AIChatPromptInputView extends _0x301197{submitButtonView;static ['MIN_ROWS']=0x1;static ['MAX_ROWS']=0xc;_addContextButtonView;['_queryViewResizeObserver'];constructor(_0x4dfcd2,_0x330e2c){super(_0x4dfcd2,{'queryView':{'label':'','creator':_0x165b0b,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new lw(_0x4dfcd2),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this['set']('isEmpty',!0x0),this['set']('isUploadInProgress',!0x1),this['_addContextButtonView']=_0x330e2c,this['_queryViewResizeObserver']=null,this['queryView']['fieldView']['minRows']=AIChatPromptInputView['MIN_ROWS'],this['queryView']['fieldView']['maxRows']=AIChatPromptInputView['MAX_ROWS'],this['queryView']['fieldWrapperChildren']['add'](this['_addContextButtonView']),this['_setUpAddContextButtonPositioning'](),this['extendTemplate']({'attributes':{'class':['ck','ck-ai-chat__prompt-input']}}),this['submitButtonView']=this['_createSubmitButton'](),this['submitButtonView']['bind']('isEnabled')['to'](this,'isEmpty',this,'isUploadInProgress',(_0x46293d,_0x10f80a)=>!_0x46293d&&!_0x10f80a),this['focusableChildren']['add'](this['submitButtonView']);}['render'](){super['render'](),this['queryView']['fieldWrapperChildren']['add'](this['submitButtonView']),this['keystrokes']['set']('enter',(_0x1432a4,_0x24043b)=>{this['isUploadInProgress']||this['isEmpty']||_0x1432a4['target']==this['queryView']['fieldView']['element']&&(this['submit'](),_0x24043b());}),this['queryView']['fieldView']['on']('update',()=>{this['isEmpty']=''===this['queryView']['fieldView']['element']['value']?.['trim']();}),this['queryView']['fieldView']['element']['addEventListener']('paste',_0x5e2029=>this['_handlePaste'](_0x5e2029)),this['element']['addEventListener']('drop',_0x5cac95=>this['_handleDrop'](_0x5cac95));}_handlePaste(_0x344961){const _0x4a21a8=_0x344961['clipboardData'];if(!_0x4a21a8)return;const {files:_0x5a1251,hasDirectory:_0x130388}=hw(_0x4a21a8),_0x3796a8={'files':_0x5a1251,'plainText':_0x4a21a8['getData']('text/plain'),'hasDirectory':_0x130388,'forceTextAttachment':!0x1,'preventDefault':()=>_0x344961['preventDefault']()};this['fire']('promptInputPaste',_0x3796a8);}['_handleDrop'](_0x56cf9a){const _0x4d2914=_0x56cf9a['dataTransfer'];if(!_0x4d2914)return;const _0x175ce8={'files':[],'plainText':_0x4d2914['getData']('text/uri-list')||_0x4d2914['getData']('text/plain'),'hasDirectory':!0x1,'forceTextAttachment':!0x1,'preventDefault':()=>_0x56cf9a['preventDefault']()};this['fire']('promptInputPaste',_0x175ce8);}destroy(){super['destroy'](),this['_queryViewResizeObserver']&&this['_queryViewResizeObserver']['destroy']();}submit(){const _0x52b802=this['queryView']['fieldView']['element']['value']?.['trim']();if(!_0x52b802)return this['queryView']['errorText']=ca(this['locale'],'AI_CHAT_PROMPT_EMPTY_ERROR'),void(this['queryView']['fieldView']['hasError']=!0x0);this['queryView']['fieldView']['hasError']=!0x1;const _0x1a3682=Ro(_0x52b802);this['fire']('sendUserMessage',_0x1a3682),this['queryView']['fieldView']['reset']();}setPlaceholderText(_0x2b4825){this['queryView']['fieldView']['set']('placeholder',_0x2b4825);}['focus'](_0x387904=!0x1){super['focus'](),_0x387904&&(this['element']['classList']['contains'](uw)||(this['element']['classList']['add'](uw),setTimeout(()=>{this['element']['classList']['remove'](uw);},0x320)));}_createSubmitButton(){const _0x56ee10=new _0x39ae99(this['locale']);return _0x56ee10['set']({'icon':_0x308d5f,'label':ca(this['locale'],'AI_CHAT_LABEL_SUBMIT'),'isVisible':!0x0,'tooltip':!0x0,'class':'ck-ai-chat__prompt-submit-button\x20'+vg,'isEnabled':!0x1}),_0x56ee10['on']('execute',()=>{this['submit']();}),_0x56ee10;}setIsUploadInProgress(_0x36f1ca){this['isUploadInProgress']=_0x36f1ca;}_setUpAddContextButtonPositioning(){const _0x3d190c=this['locale'],_0x58578a=()=>{_0x250afe['window']['requestAnimationFrame'](()=>{if(_0x3179f9(this['element'])){const _0x22e19d=new _0x517140(this['queryView']['fieldView']['element']),_0x2f65cf=new _0x517140(this['_addContextButtonView']['element']),_0x1ccc1c=_0x22e19d['width'],_0x3f397e='rtl'===_0x3d190c['uiLanguageDirection']?'right':'left';_0x22e19d['excludeScrollbarsAndBorders']();const _0x49d64d=_0x1ccc1c-_0x22e19d['width']+0x1;this['_addContextButtonView']['element']['style'][_0x3f397e]='calc('+(_0x1ccc1c-_0x2f65cf['width']-_0x49d64d)+'px\x20-\x20var(--ck-spacing-tiny))';}});};this['queryView']['fieldView']['on']('update',_0x58578a),this['on']('render',()=>{_0x58578a(),this['_queryViewResizeObserver']=new _0x55dcdb(this['queryView']['fieldView']['element'],()=>{_0x58578a();});});}},fw=class extends _0x2f6e1a{constructor(_0x5accdd){super(_0x5accdd),this['set']('isEnabled',!0x0);const _0xd95177=new _0x5d1800();_0xd95177['content']=it,this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-controls__drop-overlay']},'children':[_0xd95177,{'tag':'span','attributes':{'class':['ck-ai-chat-controls__drop-overlay__label']},'children':[{'text':ca(_0x5accdd,'AI_CHAT_DROP_ZONE_HINT')}]}]});}attach(_0x3f995f){let _0x4a90ff=0x0;const _0x455e72=()=>{_0x3f995f['classList']['toggle']('ck-ai-chat-controls_drag-over',this['isEnabled']&&_0x4a90ff>0x0);};this['on']('change:isEnabled',(_0x3dd296,_0x4eaa77,_0x14f80b)=>{_0x14f80b&&_0x4a90ff>0x0&&this['fire']('dragEnter'),_0x455e72();}),_0x3f995f['addEventListener']('dragenter',_0x124fbb=>{_0x124fbb['dataTransfer']&&(_0x4a90ff++,0x1===_0x4a90ff&&this['isEnabled']&&this['fire']('dragEnter'),_0x455e72());}),_0x3f995f['addEventListener']('dragover',_0x1387cf=>{_0x1387cf['dataTransfer']&&_0x1387cf['preventDefault']();}),_0x3f995f['addEventListener']('dragleave',()=>{--_0x4a90ff<0x0&&(_0x4a90ff=0x0),_0x455e72();}),_0x3f995f['addEventListener']('drop',_0x10e69a=>{_0x10e69a['preventDefault'](),_0x4a90ff=0x0,_0x455e72(),this['isEnabled']&&this['_handleDrop'](_0x10e69a);});}['_handleDrop'](_0x322bcf){const _0x57b06a=_0x322bcf['dataTransfer'];if(!_0x57b06a)return;const {files:_0x4753a9,hasDirectory:_0xef4675}=hw(_0x57b06a),_0x2a30ba={'files':_0x4753a9,'plainText':_0x57b06a['getData']('text/uri-list')||_0x57b06a['getData']('text/plain'),'hasDirectory':_0xef4675,'forceTextAttachment':!0x0,'preventDefault':()=>{}};this['fire']('promptInputPaste',_0x2a30ba);}},mw=class extends _0x2f6e1a{['dropdownView'];['nameView'];_items;['_config'];constructor(_0x27a2e8,_0x511c5a){super(_0x27a2e8),this['_config']=_0x511c5a,this['set']('modelDisplayMode','selector'),this['set']('activeModelId',null),this['set']('activeModelName',null),this['set']('isEnabled',!0x0),this['dropdownView']=this['_createDropdown'](),this['_items']=new _0x2186b6(),_0x55b796(this['dropdownView'],this['_items']),this['nameView']=new pw(_0x27a2e8,_0x511c5a['nameClass']),this['nameView']['bind']('text')['to'](this,'activeModelName',_0x550ba1=>_0x550ba1??''),this['nameView']['bind']('isVisible')['to'](this,'modelDisplayMode',_0x8bf39c=>'name'===_0x8bf39c),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-model-selector']},'children':[this['dropdownView'],this['nameView']]});}setModels(_0x278df0,_0xaf1c9c){var _0x5b9fc0;this['set']('modelDisplayMode',(_0x5b9fc0=_0x278df0['length'],_0xaf1c9c?0x1===_0x5b9fc0?'name':'selector':'hidden')),this['_items']['clear'](),0x1===_0x278df0['length']&&this['set']('activeModelName',_0x278df0[0x0]['name']||_0x278df0[0x0]['id']);for(const _0x3edf73 of _0x278df0){const _0x4d9004=new ts({'label':_0x3edf73['name'],'withText':!0x0,'role':'menuitemradio','id':_0x3edf73['id'],'model':_0x3edf73});_0x4d9004['bind']('isOn')['to'](this,'activeModelId',_0x5b9658=>_0x5b9658===_0x3edf73['id']),this['_items']['add']({'type':'button','model':_0x4d9004,'labelView':new gw(this['locale'],_0x3edf73,{'nameClass':this['_config']['itemClasses']['name'],'descriptionClass':this['_config']['itemClasses']['description'],'capabilitiesClass':this['_config']['itemClasses']['capabilities'],'extraContent':this['_config']['showCapabilities']?Ow(this['locale'],_0x3edf73):void 0x0})});}}setSelectedModel(_0x4eeb84){this['set']('activeModelId',_0x4eeb84?_0x4eeb84['id']:null),this['set']('activeModelName',_0x4eeb84?_0x4eeb84['name']||_0x4eeb84['id']:null);}_createDropdown(){const _0x48ba78=_0x46490d(this['locale']);return _0x48ba78['set']({'panelPosition':this['_config']['panelPosition'],'class':this['_config']['dropdownClass']}),_0x48ba78['buttonView']['set']({'withText':!0x0,'tooltipPosition':this['_config']['tooltipPosition'],'class':Eg}),_0x48ba78['buttonView']['bind']('label')['to'](this,'activeModelName',_0x4e581c=>_0x4e581c??this['_config']['defaultLabel']??''),_0x48ba78['buttonView']['bind']('tooltip')['to'](this,'activeModelName',this,'isEnabled',(_0x306c71,_0x3e7c12)=>!_0x3e7c12&&this['_config']['disabledTooltip']?this['_config']['disabledTooltip']:_0x306c71??this['_config']['defaultLabel']??''),_0x48ba78['buttonView']['bind']('isVisible')['to'](this,'modelDisplayMode',_0x6cbf4b=>'selector'===_0x6cbf4b),_0x48ba78['bind']('isEnabled')['to'](this,'isEnabled'),this['listenTo'](_0x48ba78,'execute',_0x3c5495=>{this['fire']('selectModel',_0x3c5495['source']['model']);}),_0x48ba78;}},pw=class extends _0x2f6e1a{constructor(_0x4b73cd,_0x3f5d21){super(_0x4b73cd),this['set']('text',void 0x0),this['set']('isVisible',!0x0);const _0x90134e=this['bindTemplate'];this['setTemplate']({'tag':'span','attributes':{'class':['ck',_0x3f5d21,_0x90134e['if']('isVisible','ck-hidden',_0x3622f5=>!_0x3622f5)]},'children':[{'text':_0x90134e['to']('text')}]});}},gw=class extends _0x532ad8{constructor(_0x47b386,_0x2cc4da,_0x1a5fa6){super();const _0x35e6a9=this['bindTemplate'],_0x414c9a=[{'tag':'div','attributes':{'class':[_0x1a5fa6['nameClass']]},'children':[{'tag':'span','children':[{'text':_0x35e6a9['to']('text')}]}]},{'tag':'div','attributes':{'class':[_0x1a5fa6['descriptionClass']]},'children':[{'tag':'span','children':[_0x2cc4da['description']||'']}]}];_0x1a5fa6['extraContent']?.['length']&&_0x1a5fa6['capabilitiesClass']&&_0x414c9a['push']({'tag':'div','attributes':{'class':[_0x1a5fa6['capabilitiesClass']]},'children':_0x1a5fa6['extraContent']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x35e6a9['to']('style'),'id':_0x35e6a9['to']('id')},'children':_0x414c9a});}};function Ow(_0x546e79,_0x42e530){return[...ww(_0x546e79,_0x39260c,'AI_CHAT_SEARCH_WEB',_0x42e530['capabilities']['webSearch']?.['enabled']??!0x1),...ww(_0x546e79,_0x50ce8f,'AI_CHAT_REASONING',_0x42e530['capabilities']['reasoning']?.['enabled']??!0x1)];}function ww(_0x4ad30d,_0x790af5,_0x14b5a5,_0x41729f){const _0x130922=new _0x5d1800();_0x130922['content']=_0x790af5;const _0x2f466b=new _0x2f6e1a(_0x4ad30d);_0x2f466b['setTemplate']({'tag':'span','children':[{'text':ca(_0x4ad30d,_0x14b5a5)+':\x20'}]});const _0x3d29d6=new _0x2f6e1a(_0x4ad30d);return _0x3d29d6['setTemplate']({'tag':'span','children':[{'text':ca(_0x4ad30d,_0x41729f?'AI_CHAT_CAPABILITIES_YES':'AI_CHAT_CAPABILITIES_NO')}]}),[_0x130922,_0x2f466b,_0x3d29d6];}const bw='ck-ai-chat__prompt-capabilities',yw='ck-ai-chat-controls-button',vw='ck-ai-chat-controls-button--commands',_w='ck-ai-chat-controls__model-selection',Ew='ck-ai-chat-controls__model-selection__item-name',Tw='ck-ai-chat-controls__model-selection__item-description',Aw='ck-ai-chat-controls__model-selection__item-capabilities',Sw='n';var Iw=class extends _0x2f6e1a{_webSearchButton;_reasoningButton;_commandsButton;_modelSelector;constructor(_0x8541d1){super(_0x8541d1),this['set']('webSearchActive',!0x1),this['set']('reasoningActive',!0x1),this['set']('modelSelectorEnabled',!0x0),this['_modelSelector']=function(_0x565451){return new mw(_0x565451,{'panelPosition':'ne','dropdownClass':[_w],'nameClass':'ck-ai-chat-controls__model-name','itemClasses':{'name':Ew,'description':Tw,'capabilities':Aw},'defaultLabel':ca(_0x565451,'AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP'),'disabledTooltip':ca(_0x565451,'AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP'),'tooltipPosition':Sw,'showCapabilities':!0x0});}(_0x8541d1),this['_modelSelector']['bind']('isEnabled')['to'](this,'modelSelectorEnabled',_0x35da60=>_0x35da60),this['_modelSelector']['delegate']('selectModel')['to'](this),this['_webSearchButton']=this['_createWebSearchButton'](),this['_reasoningButton']=this['_createReasoningButton'](),this['_commandsButton']=this['_createCommandsButton'](),this['_webSearchButton']['bind']('isOn')['to'](this,'webSearchActive',_0x499ac1=>_0x499ac1),this['_webSearchButton']['bind']('tooltip')['to'](this,'webSearchActive',_0xa30b43=>ca(this['locale'],_0xa30b43?'AI_CHAT_DISABLE_WEB_SEARCH':'AI_CHAT_ENABLE_WEB_SEARCH')),this['_reasoningButton']['bind']('isOn')['to'](this,'reasoningActive',_0x30f45f=>_0x30f45f),this['_reasoningButton']['bind']('tooltip')['to'](this,'reasoningActive',_0x1df96e=>ca(this['locale'],_0x1df96e?'AI_CHAT_DISABLE_REASONING':'AI_CHAT_ENABLE_REASONING')),this['setTemplate']({'tag':'div','attributes':{'class':[bw]},'children':[this['_modelSelector'],this['_webSearchButton'],this['_reasoningButton'],this['_commandsButton']]});}setWebSearch(_0x2f23af){this['set']('webSearchActive',_0x2f23af);}setReasoning(_0x70e307){this['set']('reasoningActive',_0x70e307);}setModelList(_0x524a9b,_0x5284e5){this['_modelSelector']['setModels'](_0x524a9b,!_0x5284e5);}setModel(_0x367f89){if(!_0x367f89)return;this['_modelSelector']['setSelectedModel'](_0x367f89);const _0x11ed77=_0x367f89['capabilities']['webSearch']?.['enabled']??!0x1;this['set']('webSearchActive',!0x1),this['_webSearchButton']['set']('isOn',!0x1),this['_webSearchButton']['set']('isEnabled',_0x11ed77),this['_webSearchButton']['set']('isVisible',_0x11ed77);const _0xd8860b=_0x367f89['capabilities']['reasoning']?.['enabled']??!0x1;this['set']('reasoningActive',!0x1),this['_reasoningButton']['set']('isOn',!0x1),this['_reasoningButton']['set']('isEnabled',_0xd8860b),this['_reasoningButton']['set']('isVisible',_0xd8860b);}enableModelSelector(){this['set']('modelSelectorEnabled',!0x0);}disableModelSelector(_0x586915){this['set']('modelSelectorEnabled',!0x1),_0x586915&&(this['_modelSelector']['modelDisplayMode']='hidden');}_createWebSearchButton(){const _0x5dc6fe=new _0x39ae99();return _0x5dc6fe['set']({'label':ca(this['locale'],'AI_CHAT_SEARCH_WEB'),'icon':_0x39260c,'class':yw+'\x20'+Eg,'isToggleable':!0x0,'tooltipPosition':Sw}),_0x5dc6fe['on']('execute',()=>{this['fire']('toggleWebSearch');}),_0x5dc6fe;}_createReasoningButton(){const _0x3894cb=new _0x39ae99();return _0x3894cb['set']({'label':ca(this['locale'],'AI_CHAT_REASONING'),'icon':_0x50ce8f,'class':yw+'\x20'+Eg,'isToggleable':!0x0,'tooltipPosition':Sw}),_0x3894cb['on']('execute',()=>{this['fire']('toggleReasoning');}),_0x3894cb;}_createCommandsButton(){const _0x44cabd=new _0x39ae99();return _0x44cabd['set']({'label':ca(this['locale'],'AI_CHAT_COMMANDS'),'icon':_0x433965,'withText':!0x0,'class':yw+'\x20'+Eg,'isToggleable':!0x0,'tooltip':ca(this['locale'],'AI_CHAT_COMMANDS'),'tooltipPosition':Sw}),_0x44cabd['extendTemplate']({'attributes':{'class':[vw]}}),_0x44cabd['on']('execute',()=>{console['log']('Commands\x20are\x20not\x20implemented\x20yet.'),alert('Commands\x20are\x20not\x20implemented\x20yet.');}),_0x44cabd;}};const kw='ck-ai-chat-context-controls__url-form',xw='ck-ai-chat-context-controls__url-input-section';var Cw=class extends _0x2f6e1a{['focusTracker'];keystrokes;['_focusables'];['focusCycler'];urlInputField;backButton;confirmButton;constructor(_0x338694){super(_0x338694),this['focusTracker']=new _0x1c95ab(),this['keystrokes']=new _0xa8275a(),this['backButton']=this['_createBackButton'](),this['urlInputField']=this['_createUrlInputField'](),this['confirmButton']=this['_createConfirmButton'](),this['_focusables']=this['createCollection']([this['backButton'],this['urlInputField'],this['confirmButton']]),this['focusCycler']=new _0x273f88({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['set']('withBackButton',!0x0),this['_setupTemplate'](),this['_setupEventHandlers'](),this['_setupKeystrokes']();}['render'](){super['render'](),this['_focusables']['forEach'](_0x2f32fe=>{this['focusTracker']['add'](_0x2f32fe['element']),this['keystrokes']['listenTo'](_0x2f32fe['element']);}),_0x5840c3({'view':this}),this['focus']();}destroy(){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['focus'](){this['urlInputField']['focus']();}getValue(){return this['urlInputField']['fieldView']['element']?.['value']?.['trim']()||'';}['clear'](){this['urlInputField']['fieldView']['element']['value']='',this['urlInputField']['errorText']=null,this['confirmButton']['isEnabled']=!0x1;}setError(_0x5ad80c){this['urlInputField']['errorText']=_0x5ad80c,this['_updateConfirmButtonState'](),this['fire']('refreshBalloon');}['clearError'](){this['urlInputField']['errorText']=null,this['_updateConfirmButtonState']();}_createBackButton(){const _0x561d57=new _0x39ae99(this['locale']);return _0x561d57['set']({'icon':qt,'tooltip':ca(this['locale'],'AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT'),'tooltipPosition':'n','class':['ck-button-icon\x20ck-button-back']}),this['on']('change:withBackButton',(_0x1b376c,_0x38c5c1,_0x310852)=>{_0x561d57['set']({'class':['ck-button-icon\x20ck-button-back'+(_0x310852?'':'\x20ck-hidden')]});}),_0x561d57;}_createUrlInputField(){const _0x13dbf3=new _0x51334f(this['locale'],_0x565b0b);return _0x13dbf3['set']({'label':ca(this['locale'],'AI_CHAT_CONTEXT_URL_LABEL'),'class':'ck-labeled-field-view_empty'}),_0x13dbf3['fieldView']['set']({'placeholder':ca(this['locale'],'AI_CHAT_CONTEXT_URL_PLACEHOLDER')}),_0x13dbf3;}_createConfirmButton(){const _0x2a98e0=new _0x39ae99(this['locale']);return _0x2a98e0['set']({'icon':_0x2659e3,'tooltip':ca(this['locale'],'AI_CHAT_CONTEXT_URL_ADD_URL'),'tooltipPosition':'n','class':'ck-button-icon','type':'submit','isEnabled':!0x1}),_0x2a98e0;}_setupTemplate(){const _0x4fb873=new _0x226af1(this['locale'],{'label':ca(this['locale'],'AI_CHAT_CONTEXT_URL_ADD_URL'),'class':'ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url'});_0x4fb873['children']['add'](this['backButton'],0x0),this['setTemplate']({'tag':'form','attributes':{'class':kw,'tabindex':'-1'},'children':[_0x4fb873,{'tag':'div','attributes':{'class':xw},'children':[this['urlInputField'],this['confirmButton']]}]});}_setupEventHandlers(){this['backButton']['on']('execute',()=>{this['clear'](),this['fire']('cancel');}),this['urlInputField']['fieldView']['on']('input',()=>{this['clearError'](),this['_updateConfirmButtonState'](),this['fire']('refreshBalloon');}),this['on']('submit',_0x2419f7=>{_0x2419f7['stop'](),this['_handleSubmit']();});}_setupKeystrokes(){this['keystrokes']['set']('esc',(_0x297eb9,_0x5e67b1)=>{this['clear'](),this['fire']('cancel'),_0x5e67b1();});}_handleSubmit(){const _0x59da4a=this['getValue']()['trim']();_0x59da4a?this['_isValidUrl'](_0x59da4a)?(this['clearError'](),this['fire']('submitUrl',_0x59da4a)):this['setError'](ca(this['locale'],'AI_CHAT_CONTEXT_URL_INVALID_ERROR')):this['setError'](ca(this['locale'],'AI_CHAT_CONTEXT_URL_EMPTY_ERROR'));}_updateConfirmButtonState(){const _0x49208d=this['getValue']()['trim'](),_0x2bab17=!!this['urlInputField']['errorText'];this['confirmButton']['isEnabled']=_0x49208d['length']>0x0&&!_0x2bab17;}['_isValidUrl'](_0xaa2e0){try{return!!new URL(_0xaa2e0);}catch{return!0x1;}}};const Rw='ck-ai-chat-resources__item',Pw='ck-ai-chat-resources__item--in-context',Nw='ck-ai-chat-resources__item-title',Mw='ck-ai-chat-resources__item__icon';var Lw=class extends _0x585012{['resource'];_titleView;['_iconView'];constructor(_0x136227,_0x353527){super(_0x136227),this['resource']=_0x353527,this['set']('isInContext',!!_0x353527['isInContext']),this['_titleView']=this['_createTitleView'](),this['_iconView']=this['_createIconView'](),this['_setupTemplate']();}['render'](){super['render']();}getResourceIcon(_0x5aa585){if(_0x5aa585['isInContext'])return _0x2659e3;switch(_0x5aa585['type']){case'document':return _0x5669ab;case'web-resource':return vt;case'file':case'text':return it;default:return _0x3e88f4;}}highlightText(_0x27eb58){if(!_0x27eb58||''===_0x27eb58['trim']())return void this['_titleView']['highlightText'](null);const _0x53bb81=new RegExp(Po(_0x27eb58),'gi');this['_titleView']['highlightText'](_0x53bb81);}updateResourceState(_0x370230){this['resource']['isInContext']=_0x370230,this['isInContext']=_0x370230,this['_updateIcon']();}_createTitleView(){const _0x317730=new _0x5ad9a9();return _0x317730['text']=this['resource']['label'],_0x317730['extendTemplate']({'tag':'span','attributes':{'class':[Nw]}}),_0x317730;}_createIconView(){const _0x3f595c=new _0x5d1800();return _0x3f595c['content']=this['getResourceIcon'](this['resource']),_0x3f595c;}_setupTemplate(){const _0x17d93d=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':[Rw,_0x17d93d['if']('isVisible','ck-hidden',_0x52ada6=>!_0x52ada6),_0x17d93d['if']('isInContext',Pw)]},'children':[{'tag':'div','attributes':{'class':[Mw]},'children':[this['_iconView']]},this['_titleView']],'on':{'click':_0x17d93d['to']('execute')}});}_updateIcon(){this['_iconView']['content']=this['getResourceIcon'](this['resource']);}};const $w='ck-ai-chat-resources__list';var Dw=class extends _0x19f1e8{['_source'];constructor(_0x48fdd3,_0x19c94e){super(_0x48fdd3),this['_source']=_0x19c94e,this['extendTemplate']({'attributes':{'class':[$w]}});}setResources(_0x356226,_0x395cdc){this['items']['clear']();let _0x8983ac=_0x356226;if(this['_source']['useDefaultFiltering']&&_0x395cdc&&''!==_0x395cdc['trim']()){const _0x8e862a=new RegExp(_0x395cdc['replace'](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),'gi');_0x8983ac=_0x356226['filter'](_0x102fb7=>_0x8e862a['test'](_0x102fb7['label']));}for(const _0x3b3341 of _0x8983ac){const _0x4fd460=new Lw(this['locale'],_0x3b3341);_0x4fd460['on']('execute',()=>{this['_handleResourceSelection'](this['_source'],_0x3b3341);}),this['items']['add'](_0x4fd460);}this['_source']['useDefaultFiltering']&&this['highlightText'](_0x395cdc);}highlightText(_0x13d4b4){this['_source']['useDefaultFiltering']&&this['items']['forEach'](_0xb82718=>{_0xb82718['highlightText'](_0x13d4b4);});}updateResourceState(_0x178ce6,_0x53021a){for(const _0x2d1930 of this['items']){const _0x184846=_0x2d1930;_0x184846['resource']['id']===_0x178ce6&&_0x184846['updateResourceState'](_0x53021a);}}_handleResourceSelection(_0x1f7c13,_0x108e4f){this['fire']('addResourceToContext',{'source':_0x1f7c13,'resource':_0x108e4f});}},Qw=class extends _0x51334f{['iconView'];resetButtonView;['_viewConfig'];constructor(_0x37ad3){const t=_0x37ad3['t'],_0x30cd85={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x565b0b,'label':ca(_0x37ad3,'AI_CHAT_SEARCH_RESOURCES')};super(_0x37ad3,_0x30cd85['creator']),this['label']=_0x30cd85['label'],this['_viewConfig']=_0x30cd85,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x37ad3,t),this['_setupEventListeners']();}reset(){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0xc2c0b0){this['fire']('search',_0xc2c0b0);}getQuery(){return this['fieldView']['element']?.['value']||'';}_setupSearchIcon(){this['iconView']=new _0x5d1800(),this['iconView']['content']=xt,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}_setupResetButton(_0x574d0d,t){this['resetButtonView']=new _0x39ae99(_0x574d0d),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x2f7d46,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x8eb0a3=>!_0x8eb0a3),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}_setupEventListeners(){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}},jw=class extends _0x2f6e1a{['_searchView'];_searchSection;_searchInputVisibleFrom;_resourcesListView;_skeletonLoader;['_source'];['children'];_latestLoadResourcesUid=null;constructor(_0x3fe064,_0x3061db){super(_0x3fe064),this['_source']=_0x3061db['source'],this['_searchInputVisibleFrom']=_0x3061db['searchInputVisibleFrom']??0x7,this['set']('isLoading',!0x0),this['_searchView']=this['_createSearchView'](),this['_searchSection']=this['_createSearchSection'](),this['_resourcesListView']=this['_createResourcesListView'](),this['_skeletonLoader']=this['_createSkeletonView'](),this['children']=new _0x18940b([this['_skeletonLoader'],this['_resourcesListView']]),this['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-chat-resources'},'children':this['children']});}_createSearchView(){return new Qw(this['locale']);}_createSearchSection(){const _0x2a861d=new _0x2f6e1a(this['locale']);return _0x2a861d['setTemplate']({'tag':'div','attributes':{'class':'ck\x20ck-search'},'children':[this['_searchView']]}),this['_searchView']['on']('search',(_0x2f0614,_0xb3370)=>{this['loadResources'](_0xb3370),this['_source']['useDefaultFiltering']&&this['_resourcesListView']['highlightText'](_0xb3370);}),_0x2a861d;}_createResourcesListView(){const _0x1cb9ee=new Dw(this['locale'],this['_source']);return _0x1cb9ee['delegate']('addResourceToContext')['to'](this),_0x1cb9ee['extendTemplate']({'attributes':{'class':this['bindTemplate']['if']('isLoading','ck-hidden')}}),_0x1cb9ee;}_createSkeletonView(){const _0x427b3e=new yO(this['locale'],vO['aiChatResources']);return _0x427b3e['bind']('isVisible')['to'](this,'isLoading'),_0x427b3e;}['render'](){super['render'](),this['loadResources']('');}['loadResources'](_0x299550){const _0x1fc826=_0xea66bb();this['_latestLoadResourcesUid']=_0x1fc826,this['fire']('loadSourceResources',{'sourceId':this['_source']['id'],'query':_0x299550,'uid':_0x1fc826}),this['isLoading']=!0x0;}setResources(_0x6005f8,_0x422019){if(_0x422019&&_0x422019!==this['_latestLoadResourcesUid'])return;const _0x57df49=this['_source']['useDefaultFiltering']?this['_searchView']['getQuery']():'';this['_resourcesListView']['setResources'](_0x6005f8,_0x57df49),_0x6005f8['length']>=this['_searchInputVisibleFrom']&&!this['children']['has'](this['_searchSection'])&&this['children']['add'](this['_searchSection'],0x0),requestAnimationFrame(()=>{this['isLoading']=!0x1;});}updateResourceState(_0xd72a76,_0x4ecb85){this['_resourcesListView']['updateResourceState'](_0xd72a76,_0x4ecb85);}};const Uw='ck-ai-chat-context-controls__source-balloon-panel',Vw='ck-button-icon\x20ck-button-back',Bw='ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source';var Hw=class{['_sourceResourceBalloons']=new Map();_bodyCollection;['_locale'];['_config'];constructor(_0x316e5b,_0x5e00c3,_0x163a64){this['_locale']=_0x316e5b,this['_bodyCollection']=_0x5e00c3,this['_config']=_0x163a64;}['showSourceResourcesBalloon']({source:_0x2a6261,withBackButton:_0x3c2d6e}){let _0x27486c=this['_sourceResourceBalloons']['get'](_0x2a6261['id']);_0x27486c||(_0x27486c=this['_createSourceResourceBalloonPanel'](),this['_sourceResourceBalloons']['set'](_0x2a6261['id'],_0x27486c),this['_setupSingleResourceBalloonClickOutsideHandler'](_0x27486c)),this['_addSourceResourceContent']({'balloonPanel':_0x27486c,'source':_0x2a6261,'withBackButton':_0x3c2d6e}),_0x27486c['show']();const _0x88f8f4=this['_config']['getTargetElement']();_0x88f8f4&&_0x27486c['pin']({'target':_0x88f8f4,'limiter':this['_config']['getLimiterElement']()});}populateSourceResourceBalloon(_0x4c31dc,_0x3c1d0b,_0x1d3175){const _0x276e79=this['_sourceResourceBalloons']['get'](_0x4c31dc);if(!_0x276e79)return;const _0x509d84=this['_getResourcesViewFromBalloon'](_0x276e79);_0x509d84&&(_0x509d84['setResources'](_0x3c1d0b,_0x1d3175),_0x509d84['once']('change:isLoading',()=>{_0x276e79['pin']({'target':this['_config']['getTargetElement'](),'limiter':this['_config']['getLimiterElement']()});}));}['closeSourceResourceBalloon'](_0x5a7d21){const _0x11f96e=this['_sourceResourceBalloons']['get'](_0x5a7d21);_0x11f96e&&requestAnimationFrame(()=>{_0x11f96e['hide'](),this['_sourceResourceBalloons']['delete'](_0x5a7d21),this['_config']['onBalloonClosed']();});}['closeAll'](){for(const _0x30846b of Array['from'](this['_sourceResourceBalloons']['keys']()))this['closeSourceResourceBalloon'](_0x30846b);}['isAnyResourceBalloonVisible'](){for(const _0x509790 of this['_sourceResourceBalloons']['values']())if(_0x509790['isVisible'])return!0x0;return!0x1;}updateResourceState(_0xedbbaa,_0x546ade,_0x292af6){const _0x5533ed=this['_sourceResourceBalloons']['get'](_0xedbbaa);if(!_0x5533ed||!_0x5533ed['isVisible'])return;const _0x4ac68b=this['_config']['getTargetElement']();if(!_0x4ac68b)return;_0x5533ed['pin']({'target':_0x4ac68b,'limiter':this['_config']['getLimiterElement']()});const _0x5e1111=this['_getResourcesViewFromBalloon'](_0x5533ed);_0x5e1111&&_0x5e1111['updateResourceState'](_0x546ade,_0x292af6);}destroy(){for(const _0x559ac3 of this['_sourceResourceBalloons']['values']())_0x559ac3['destroy']();this['_sourceResourceBalloons']['clear']();}_createSourceResourceBalloonPanel(){const _0x4e2c39=new _0x42b496(this['_locale']);return _0x4e2c39['extendTemplate']({'attributes':{'class':Uw}}),this['_bodyCollection']['add'](_0x4e2c39),_0x4e2c39;}_addSourceResourceContent({balloonPanel:_0x527680,source:_0x2e026a,withBackButton:_0x58490f}){_0x527680['content']['clear']();const _0x1742d2=this['_createBalloonHeader']({'balloonPanel':_0x527680,'source':_0x2e026a,'withBackButton':_0x58490f});_0x527680['content']['add'](_0x1742d2);const _0x46e739=this['_createBalloonResourcesView'](_0x2e026a);_0x527680['content']['add'](_0x46e739);}_createBalloonHeader({balloonPanel:_0x55c696,source:_0xf7c377,withBackButton:_0x3abd7a}){const _0x5dc896=new _0x226af1(this['_locale'],{'label':_0xf7c377['label'],'class':Bw});return _0x3abd7a&&_0x5dc896['children']['add'](this['_createBackButton'](_0x55c696),0x0),_0x5dc896;}_createBackButton(_0x54f022){const _0x37edb3=new _0x39ae99(this['_locale']);return _0x37edb3['set']({'icon':qt,'tooltip':ca(this['_locale'],'AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT'),'tooltipPosition':'n','class':Vw}),_0x37edb3['on']('execute',()=>{_0x54f022['hide'](),this['_config']['onBackToContext']();}),_0x37edb3;}_createBalloonResourcesView(_0x313b7c){const _0x241199=new jw(this['_locale'],{'source':_0x313b7c,'searchInputVisibleFrom':this['_config']['searchInputVisibleFrom']});return _0x241199['on']('loadSourceResources',(_0x410aa3,_0x2683f2)=>{this['_config']['onLoadSourceResources'](_0x2683f2);}),_0x241199['on']('addResourceToContext',(_0x9c2591,_0x5e7ad0)=>{this['_config']['onResourceSelected'](_0x5e7ad0['source'],_0x5e7ad0['resource']),this['closeSourceResourceBalloon'](_0x313b7c['id']);}),_0x241199;}_getResourcesViewFromBalloon(_0x41a497){const _0x29eafa=_0x41a497['content']['get'](0x1);return _0x29eafa instanceof jw?_0x29eafa:null;}_setupSingleResourceBalloonClickOutsideHandler(_0x571722){_0xca2f72({'emitter':_0x571722,'contextElements':[_0x571722['element']],'callback':()=>{_0x571722['hide'](),this['_config']['onBalloonClosed']();},'activator':()=>_0x571722['isVisible']});}};const Fw=['addDocumentToContext','addFileToContext','addUrlToContext','addResourceToContext','removeContextItem','loadSourceResources','executeCustomItemCallback'],Zw='ck-ai-chat-context-controls',Gw='ck-ai-chat-context-controls__pending-contexts',Xw='ck-ai-chat-context-controls__add-context-balloon-panel',qw='ck-ai-chat-context-controls__add-context-button',Ww='ck-ai-chat-context-controls__url-balloon-panel',zw='ck-ai-chat-context-controls__balloon-button',Yw='ck-ai-chat-context-controls__balloon-button-source',Kw='ck-ai-chat-controls-button',Jw='ck-ai-chat-context-chips-wrapper-balloon',tb='ck-ai-chat-controls_context_show-more-button',eb='ck-ai-chat-context-controls__show-more-balloon-panel',ib='ck-ai-chat',sb=[_0x42b496['defaultPositions']['northArrowSouthWest'],_0x42b496['defaultPositions']['northArrowSouth'],_0x42b496['defaultPositions']['northArrowSouthEast'],_0x42b496['defaultPositions']['southArrowNorthWest'],_0x42b496['defaultPositions']['southArrowNorth'],_0x42b496['defaultPositions']['southArrowNorthEast']];var nb=class extends _0x2f6e1a{addContextButtonView;_currentContextsChips=this['createCollection']();_conversationContextsChips=this['createCollection']();['_overflowManager'];_addContextBalloonPanelView;['_urlBalloonPanelView'];_urlInputView;['_resourcesBalloonView'];_addContextBalloonConfig;_hasExactlyOneSource=!0x1;bodyCollection;constructor(_0x1d4f2d,_0x26a216){super(_0x1d4f2d),this['bodyCollection']=_0x26a216['bodyCollection'],this['_currentContextsChips']=this['createCollection'](),this['_conversationContextsChips']=this['createCollection'](),this['addContextButtonView']=this['_createAddContextButtonView'](_0x1d4f2d),this['_addContextBalloonPanelView']=this['_createAddContextBalloonPanelView'](_0x1d4f2d),this['_urlBalloonPanelView']=this['_createUrlBalloonPanelView'](_0x1d4f2d),this['_resourcesBalloonView']=this['_createResourcesBalloonView'](_0x1d4f2d,_0x26a216);const _0x3c9e86={'cssClasses':{'showMoreButton':tb+'\x20'+Eg,'showMoreBalloon':eb,'overflowContainer':Jw,'controlsButton':Kw}};this['_overflowManager']=new XO(_0x1d4f2d,this['_currentContextsChips'],_0x3c9e86,this['bodyCollection'],this),this['_addContextBalloonConfig']={'buttonView':this['addContextButtonView'],'balloonView':this['_addContextBalloonPanelView'],'hideMethod':this['hideAddContextBalloonPanel']['bind'](this),'showMethod':this['showAddContextBalloonPanel']['bind'](this)},this['_setupTemplate'](),this['_bindEventHandlers']();}['render'](){super['render'](),this['_setupAllBalloonClickOutsideHandlers'](),this['_overflowManager']['setContainerElement'](this['element']),this['_overflowManager']['reorganizeChips']();}destroy(){super['destroy'](),this['_overflowManager']['destroy'](),this['_resourcesBalloonView']['destroy']();}addContextItem(_0x4612f1,_0x718cde){const _0x2dacc0=this['_createContextButton'](_0x4612f1,'current',!0x0,_0x718cde);this['_addContextToCollection'](_0x2dacc0,this['_currentContextsChips']),this['_overflowManager']['reorganizeChips']();}removeContextItem(_0x1c4598){this['_removeContextFromCollection'](_0x1c4598,this['_currentContextsChips']),this['_removeContextFromCollection'](_0x1c4598,this['_overflowManager']['overflowChips']),this['_overflowManager']['reorganizeChips']();}setContextItemLoading(_0x160328,_0x3d19cb){let _0x1e02cb=this['_currentContextsChips']['find'](_0x323d87=>_0x323d87['id']===_0x160328);_0x1e02cb||(_0x1e02cb=this['_overflowManager']['overflowChips']['find'](_0x5613b3=>_0x5613b3['id']===_0x160328)),_0x1e02cb&&(_0x1e02cb['isLoading']=_0x3d19cb);}setConversationContext(_0x16a889){this['_conversationContextsChips']['clear']();for(const _0x1658d2 of _0x16a889){const _0x143579=this['_createContextButton'](_0x1658d2,'conversation',!0x1,!0x1);this['_addContextToCollection'](_0x143579,this['_conversationContextsChips']);}}clearCurrentContextItems(){this['_currentContextsChips']['clear'](),this['_overflowManager']['clear']();}clearConversationContextItems(){this['_conversationContextsChips']['clear']();}updateResourceState(_0x46c909,_0x24cb63,_0x2a9fac){this['_resourcesBalloonView']['updateResourceState'](_0x46c909,_0x24cb63,_0x2a9fac);}hideAddContextBalloonPanel(){this['_toggleAddContextBalloon'](!0x1);}showAddContextBalloonPanel(){this['_toggleAddContextBalloon'](!0x0);}['hideUrlBalloonPanel'](){this['_urlBalloonPanelView']['hide'](),this['addContextButtonView']['isOn']=!0x1,this['_urlInputView']&&this['_urlInputView']['clear']();}['showUrlBalloonPanel'](){this['_urlBalloonPanelView']['show'](),this['addContextButtonView']['isOn']=!0x0;}['hideAllBalloons'](){this['hideAddContextBalloonPanel'](),this['hideUrlBalloonPanel'](),this['_resourcesBalloonView']['closeAll']();}['_showSourceResourcesBalloon']({source:_0x250494,withBackButton:_0x2ac055}){this['_resourcesBalloonView']['showSourceResourcesBalloon']({'source':_0x250494,'withBackButton':_0x2ac055}),this['addContextButtonView']['isOn']=!0x0;}populateSourceResourceBalloon(_0x1b56b0,_0x13ea3a,_0x5b7aba,_0x2b57b8){this['_resourcesBalloonView']['populateSourceResourceBalloon'](_0x1b56b0,_0x5b7aba,_0x2b57b8);}['closeSourceResourceBalloon'](_0x3afb47){this['_resourcesBalloonView']['closeSourceResourceBalloon'](_0x3afb47),this['addContextButtonView']['isOn']=!0x1;}setAddContextOptions(_0x428171){this['_setBalloonPanelContent'](this['_addContextBalloonPanelView'],this['locale'],_0x428171),this['_setAddContextButtonEnabled'](_0x428171);}_setAddContextButtonEnabled(_0x51ec66){const _0x13df61=!_0x51ec66['document']['isHidden']&&_0x51ec66['document']['enabled'],_0x52f79b=_0x51ec66['urls']['enabled'],_0x4f18fa=_0x51ec66['files']['enabled'],_0x4b86c9=_0x51ec66['sources']['length']>0x0,_0x54a4dd=_0x51ec66['customItems']&&_0x51ec66['customItems']['length']>0x0;this['addContextButtonView']['isEnabled']=_0x13df61||_0x52f79b||_0x4f18fa||_0x4b86c9||_0x54a4dd;}_setupTemplate(){this['setTemplate']({'tag':'div','attributes':{'class':[Zw,'ck-reset_all-excluded']},'children':[{'tag':'div','attributes':{'class':Gw},'children':this['_currentContextsChips']}]});}_bindEventHandlers(){this['addContextButtonView']['on']('execute',()=>{this['_handleAddContextButtonClick']();});}_createAddContextButtonView(_0x590a02){const _0x2fb608=new _0x39ae99(_0x590a02);return _0x2fb608['set']({'label':ca(_0x590a02,'AI_CHAT_CONTEXT_ADD_CONTEXT'),'class':Kw+'\x20'+qw+'\x20'+Eg,'icon':Vt,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x2fb608;}_createAddContextBalloonPanelView(_0x2b4292){return this['_createBaseBalloonPanel'](_0x2b4292,Xw);}_createUrlBalloonPanelView(_0x39ec84){const _0x53bc5f=this['_createBaseBalloonPanel'](_0x39ec84,Ww);return this['_addUrlContent'](_0x53bc5f,_0x39ec84),_0x53bc5f;}_createResourcesBalloonView(_0x47c596,_0x4307bd){const _0x10480a={'searchInputVisibleFrom':_0x4307bd['searchInputVisibleFrom'],'onBackToContext':()=>{this['showAddContextBalloonPanel'](),this['_addContextBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':sb});},'onResourceSelected':(_0x549edd,_0x4607f4)=>{this['fire']('addResourceToContext',{'source':_0x549edd,'resource':_0x4607f4});},'onLoadSourceResources':_0x3c267b=>{this['fire']('loadSourceResources',_0x3c267b);},'onBalloonClosed':()=>{this['addContextButtonView']['isOn']=!0x1;},'getLimiterElement':()=>this['_getLimiterElement'](),'getTargetElement':()=>this['addContextButtonView']['element']};return new Hw(_0x47c596,_0x4307bd['bodyCollection'],_0x10480a);}_getLimiterElement(){return this['element']?.['closest']('.'+ib)||document['body'];}_createBaseBalloonPanel(_0x3729c3,_0x3f2c4c){const _0x1b5250=new _0x42b496(_0x3729c3);return _0x1b5250['extendTemplate']({'attributes':{'class':_0x3f2c4c}}),this['bodyCollection']['add'](_0x1b5250),_0x1b5250;}_setBalloonPanelContent(_0x3c5500,_0x193d75,_0x35da8e){if(_0x3c5500['content']['clear'](),!_0x35da8e['document']['isHidden']&&_0x35da8e['document']['enabled']){const _0xc7328e=this['_createBalloonButton'](_0x193d75,{'label':ca(_0x193d75,'AI_CHAT_CONTEXT_CURRENT_DOCUMENT'),'icon':_0x5669ab});_0xc7328e['on']('execute',()=>{this['fire']('addDocumentToContext'),this['hideAddContextBalloonPanel']();}),_0x3c5500['content']['add'](_0xc7328e);}if(_0x35da8e['urls']['enabled']){const _0xbba38d=this['_createBalloonButton'](_0x193d75,{'label':ca(_0x193d75,'AI_CHAT_CONTEXT_URL_LABEL'),'icon':vt});_0xbba38d['on']('execute',()=>{this['hideAddContextBalloonPanel'](),this['showUrlBalloonPanel'](),this['_urlBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':sb}),this['_urlInputView']['focus']();}),_0x3c5500['content']['add'](_0xbba38d);}if(_0x35da8e['files']['enabled']){const _0x4d7aad=new _0x19f49a(_0x193d75);_0x4d7aad['set']({'label':ca(_0x193d75,'AI_CHAT_CONTEXT_FILE_LABEL'),'icon':_0x18d0ff,'withText':!0x0,'tooltip':!0x0,'class':zw,'allowMultipleFiles':!0x0}),_0x4d7aad['on']('execute',()=>{this['hideAddContextBalloonPanel']();}),_0x4d7aad['on']('done',(_0x129af6,_0x5218fa)=>{this['fire']('addFileToContext',_0x5218fa);}),_0x4d7aad['tooltip']=!0x0,_0x3c5500['content']['add'](_0x4d7aad);}for(const _0x88f7e of _0x35da8e['sources']){const _0x2b7a59=this['_createBalloonButton'](_0x193d75,{'label':_0x88f7e['label'],'icon':_0x88f7e['icon']||_0x3e88f4,'type':'source'});_0x3c5500['content']['add'](_0x2b7a59),_0x2b7a59['on']('execute',()=>{this['hideAddContextBalloonPanel'](),this['_showSourceResourcesBalloon']({'source':_0x88f7e,'withBackButton':!this['_hasExactlyOneSource']});});}for(const _0x39373e of _0x35da8e['customItems']||[]){const _0x35c59d=this['_createBalloonButton'](_0x193d75,{'label':_0x39373e['label'],'icon':_0x39373e['icon']||_0x3e88f4,'type':'customItem'});_0x3c5500['content']['add'](_0x35c59d),_0x35c59d['on']('execute',()=>{this['hideAddContextBalloonPanel'](),this['fire']('executeCustomItemCallback',_0x39373e);});}this['_hasExactlyOneSource']=0x1===_0x3c5500['content']['length'],this['_urlInputView']['withBackButton']=!this['_hasExactlyOneSource'];}_addUrlContent(_0x3e7ae6,_0x1f191c){this['_urlInputView']=new Cw(_0x1f191c),this['_urlInputView']['on']('submitUrl',(_0x51f4d9,_0x3e2a14)=>{this['_handleUrlSubmit'](_0x3e2a14);}),this['_urlInputView']['on']('cancel',()=>{this['hideUrlBalloonPanel'](),this['_hasExactlyOneSource']||(this['showAddContextBalloonPanel'](),this['_addContextBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':sb}));}),this['_urlInputView']['on']('refreshBalloon',()=>{this['_urlBalloonPanelView']['isVisible']&&this['_urlBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':sb});}),_0x3e7ae6['content']['add'](this['_urlInputView']);}_createBalloonButton(_0x1c8ce7,_0xbc0b2b){const _0x1a295a='source'===_0xbc0b2b['type']?new rb(_0x1c8ce7):new _0x39ae99(_0x1c8ce7);return _0x1a295a['set']({'label':_0xbc0b2b['label'],'icon':_0xbc0b2b['icon'],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':zw}),_0x1a295a;}_setupAllBalloonClickOutsideHandlers(){this['_setupAddContextBalloonClickOutsideHandler'](),this['_setupUrlBalloonClickOutsideHandler']();}_setupUrlBalloonClickOutsideHandler(){_0xca2f72({'emitter':this['_urlBalloonPanelView'],'contextElements':[this['_urlBalloonPanelView']['element']],'callback':()=>{this['hideUrlBalloonPanel']();},'activator':()=>this['_urlBalloonPanelView']['isVisible']});}_toggleAddContextBalloon(_0x3a6e06){const _0x1df5ca=this['_addContextBalloonConfig'];_0x1df5ca['buttonView']['isOn']=_0x3a6e06,_0x3a6e06?_0x1df5ca['balloonView']['show']():_0x1df5ca['balloonView']['hide']();}_setupAddContextBalloonClickOutsideHandler(){const {balloonView:_0x21d4dc,buttonView:_0x17d714,hideMethod:_0x104d4e}=this['_addContextBalloonConfig'];_0xca2f72({'emitter':_0x21d4dc,'contextElements':[_0x21d4dc['element'],_0x17d714['element']],'callback':()=>{_0x104d4e();},'activator':()=>_0x17d714['isOn']&&!this['_urlBalloonPanelView']['isVisible']&&!this['_resourcesBalloonView']['isAnyResourceBalloonVisible']()});}_createContextButton(_0x2d7ccd,_0x42e45b,_0x38f8e=!0x1,_0x2365a2=!0x1){const _0x25ce84='conversation'===_0x42e45b||!0x0===_0x2d7ccd['isReadOnly'],_0x541fb8=new HO(this['locale'],_0x2d7ccd,_0x25ce84,_0x38f8e,_0x2365a2);return _0x25ce84||_0x541fb8['on']('removeContextItemChip',()=>{this['fire']('removeContextItem',_0x541fb8['id']);}),_0x541fb8;}_addContextToCollection(_0x454728,_0x49df03){_0x49df03['add'](_0x454728,0x0);}_removeContextFromCollection(_0x4ef4b7,_0xf372b8){const _0x39e298=_0xf372b8['find'](_0x12e293=>_0x12e293['id']===_0x4ef4b7);_0x39e298&&_0xf372b8['remove'](_0x39e298);}_handleAddContextButtonClick(){this['addContextButtonView']['isOn']?this['hideAddContextBalloonPanel']():(this['showAddContextBalloonPanel'](),this['_addContextBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':sb}),this['_hasExactlyOneSource']&&this['_addContextBalloonPanelView']['content']['get'](0x0)?.['fire']('execute'));}_handleUrlSubmit(_0x3a7e88){this['_urlInputView']['clear'](),this['hideUrlBalloonPanel'](),this['fire']('addUrlToContext',_0x3a7e88);}},rb=class extends _0x39ae99{['arrowView'];constructor(_0x2e04b1){super(_0x2e04b1),this['set']({'withText':!0x0,'role':'menuitem'}),this['arrowView']=this['_createArrowView'](),this['extendTemplate']({'attributes':{'class':[Yw]}});}['render'](){super['render'](),this['children']['add'](this['arrowView']);}_createArrowView(){const _0x365f5e=new _0x5d1800();return _0x365f5e['content']=_0x188278,_0x365f5e['extendTemplate']({'attributes':{'class':Yw+'__arrow'}}),_0x365f5e;}},ob=class extends _0x2f6e1a{_cancelButtonView;['_loaderView'];constructor(_0xe5cd17){super(_0xe5cd17),this['_cancelButtonView']=this['_createCancelButtonView'](),this['_loaderView']=this['_createLoaderView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat-controls-loader-wrapper','ck-reset_all']},'children':[this['_loaderView'],this['_cancelButtonView']]});}_createCancelButtonView(){const _0x2feb18=new _0x39ae99(this['locale']);return _0x2feb18['set']({'label':ca(this['locale'],'AI_CHAT_STOP_GENERATING'),'withText':!0x0,'class':_g+'\x20ck-ai-button-stop-generating','icon':_0x127d5d}),_0x2feb18['on']('execute',()=>{this['fire']('abortPromptStream');}),_0x2feb18;}_createLoaderView(){const _0x1c27d=new _0x2f6e1a(this['locale']);return _0x1c27d['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-controls-loader']},'children':[{'tag':'div','attributes':{'class':['ck-ai-chat-controls-loader-icon']},'children':[{'tag':'div','attributes':{'class':['ck-ai-chat-controls-loader-icon-dot']}},{'tag':'div','attributes':{'class':['ck-ai-chat-controls-loader-icon-dot']}},{'tag':'div','attributes':{'class':['ck-ai-chat-controls-loader-icon-dot']}}]},{'text':ca(this['locale'],'AI_CHAT_IS_WRITING')}]}),_0x1c27d;}},ab=class extends _0x2f6e1a{_contextPanelView;_promptInputView;['_dropZoneView'];_promptCapabilitiesView;['_loaderView'];['_modelUnavailableMessageView'];_shouldRestorePromptInputFocus;['_filesEnabled'];constructor(_0x5cdc2f,_0x2d68f5){super(_0x5cdc2f),this['_filesEnabled']=_0x2d68f5['filesEnabled'],this['_contextPanelView']=this['_createContextPanelView'](_0x5cdc2f,{'bodyCollection':_0x2d68f5['bodyCollection'],'searchInputVisibleFrom':_0x2d68f5['contextResourcesSearchInputVisibleFrom']}),this['_promptInputView']=this['_createPromptInputView'](_0x5cdc2f),this['_promptCapabilitiesView']=this['_createPromptCapabilitiesView'](_0x5cdc2f),this['_loaderView']=this['_createLoaderView'](_0x5cdc2f),this['_modelUnavailableMessageView']=this['_createModelUnavailableMessageView'](_0x5cdc2f),this['_dropZoneView']=new fw(_0x5cdc2f),this['_shouldRestorePromptInputFocus']=!0x1,this['_promptInputView']['delegate']('sendUserMessage','promptInputPaste')['to'](this),this['_dropZoneView']['delegate']('promptInputPaste')['to'](this),this['_dropZoneView']['on']('dragEnter',()=>this['_contextPanelView']['hideAllBalloons']()),this['_dropZoneView']['bind']('isEnabled')['to'](this,'isLoading',_0x335f7c=>!_0x335f7c),this['_loaderView']['delegate']('abortPromptStream')['to'](this),this['_promptCapabilitiesView']['delegate']('toggleWebSearch')['to'](this),this['_promptCapabilitiesView']['delegate']('toggleReasoning')['to'](this),this['_promptCapabilitiesView']['delegate']('selectModel')['to'](this),this['_contextPanelView']['delegate'](...Fw)['to'](this),this['set']('isModelAvailable',!0x0),this['set']('isDisabled',!0x1);const _0x68f603=this['bindTemplate'];this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-ai-chat-controls',_0x68f603['if']('isDisabled','ck-ai-chat-controls-disabled')]},'children':[{'tag':'div','attributes':{'class':[_0x68f603['if']('isLoading','ck-hidden',_0xb8a979=>_0xb8a979||!this['isModelAvailable']),_0x68f603['if']('isModelAvailable','ck-hidden',_0x241dfa=>!_0x241dfa||this['isLoading'])]},'children':[this['_contextPanelView'],this['_promptInputView'],this['_promptCapabilitiesView']]},{'tag':'div','attributes':{'class':[_0x68f603['if']('isLoading','ck-hidden',_0x1266f4=>!_0x1266f4)]},'children':[this['_loaderView']]},{'tag':'div','attributes':{'class':[_0x68f603['if']('isModelAvailable','ck-hidden',_0x398f4e=>_0x398f4e)]},'children':[this['_modelUnavailableMessageView']]},this['_dropZoneView']]}),_0xca2f72({'emitter':this['_promptInputView'],'activator':()=>this['isLoading'],'contextElements':()=>[this['element']],'callback':()=>{this['_shouldRestorePromptInputFocus']=!0x1;}}),this['on']('change:isLoading',this['_handlePromptInputFocus'],{'priority':'low'});}['render'](){super['render'](),this['_filesEnabled']&&this['_dropZoneView']['attach'](this['element']);}_createContextPanelView(_0x420d2b,_0x4dadf2){return new nb(_0x420d2b,_0x4dadf2);}_createPromptInputView(_0x1d0573){return new dw(_0x1d0573,this['_contextPanelView']['addContextButtonView']);}_createPromptCapabilitiesView(_0x37bdd4){return new Iw(_0x37bdd4);}_createLoaderView(_0x4569ca){return new ob(_0x4569ca);}_createModelUnavailableMessageView(_0x4fd942){const _0x1c1ac7=new cb(_0x4fd942);return _0x1c1ac7['delegate']('startConversation')['to'](this),_0x1c1ac7;}_handlePromptInputFocus(_0x410e3f,_0x3881bd,_0x8003c8){_0x8003c8?this['_shouldRestorePromptInputFocus']=!0x0:this['_shouldRestorePromptInputFocus']&&this['_promptInputView']['focus']();}addContextItem(_0x2f9690,_0x5203ba){this['_contextPanelView']['addContextItem'](_0x2f9690,_0x5203ba);}removeContextItem(_0x1ff34e){this['_contextPanelView']['removeContextItem'](_0x1ff34e);}setContextItemLoading(_0x26d473,_0x27c284){this['_contextPanelView']['setContextItemLoading'](_0x26d473,_0x27c284);}setIsUploadInProgress(_0x11af94){this['_promptInputView']['setIsUploadInProgress'](_0x11af94);}setConversationContext(_0x3f4ed0){this['_contextPanelView']['setConversationContext'](_0x3f4ed0);}clearPendingContextUI(){this['_contextPanelView']['clearCurrentContextItems']();}clearConversationContextUI(){this['_contextPanelView']['clearConversationContextItems']();}updateResourceState(_0x518835,_0x4ff815,_0x45a037){this['_contextPanelView']['updateResourceState'](_0x518835,_0x4ff815,_0x45a037);}setWebSearch(_0x1eba60){this['_promptCapabilitiesView']['setWebSearch'](_0x1eba60);}setReasoning(_0xa82fec){this['_promptCapabilitiesView']['setReasoning'](_0xa82fec);}resetMessageInput(){this['_promptInputView']['reset']();}setAddContextOptions(_0x568a44){this['_contextPanelView']['setAddContextOptions'](_0x568a44);}setInputPlaceholder(_0x327982){this['_promptInputView']['setPlaceholderText'](_0x327982);}setModelList(_0x549f8a,_0x59c268){this['_promptCapabilitiesView']['setModelList'](_0x549f8a,_0x59c268);}setModel(_0x1fb5ca){_0x1fb5ca?(this['isModelAvailable']=!0x0,this['_promptCapabilitiesView']['setModel'](_0x1fb5ca)):this['isModelAvailable']=!0x1;}enableModelSelector(){this['_promptCapabilitiesView']['enableModelSelector']();}disableModelSelector(_0x7e97f9){this['_promptCapabilitiesView']['disableModelSelector'](_0x7e97f9);}populateSourceResourceBalloon(_0x3d4e76,_0x48ac22,_0x10f3bb,_0x36da19){this['_contextPanelView']['populateSourceResourceBalloon'](_0x3d4e76,_0x48ac22,_0x10f3bb,_0x36da19);}['closeSourceResourceBalloon'](_0x58fef3){this['_contextPanelView']['closeSourceResourceBalloon'](_0x58fef3);}focusPromptInput(_0x145072=!0x1){this['_promptInputView']['focus'](_0x145072);}setPromptInputValue(_0x24b229){this['_promptInputView']['queryView']['fieldView']['reset'](),this['_promptInputView']['queryView']['fieldView']['value']=_0x24b229;}},cb=class extends _0x2f6e1a{constructor(_0x68a1f8){super(_0x68a1f8);const _0x3d5ea2=new _0x39ae99(_0x68a1f8);_0x3d5ea2['set']({'label':ca(this['locale'],'AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON'),'withText':!0x0,'class':['ck-ai-chat-controls__start-new-chat-button'],'tooltip':''}),_0x3d5ea2['delegate']('execute')['to'](this,'startConversation'),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat-controls-model-unavailable-message']},'children':[{'tag':'p','children':[{'text':ca(this['locale'],'AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT')+'\x20'},_0x3d5ea2]}]});}},lb=class extends _0x226af1{resizeButton;constructor(_0x18e67a,_0x122e32){super(_0x18e67a,{'label':_0x122e32['label'],'class':'ck-ai-header\x20'+_0x122e32['class'],'icon':_0x122e32['icon']}),this['set']('isMaximized',!0x1),_0x122e32['content']&&this['children']['add'](_0x122e32['content']),_0x122e32['showResizeButton']&&(this['resizeButton']=Tg(_0x18e67a,this),this['children']['add'](this['resizeButton']));}},hb=class extends _0x2f6e1a{constructor(_0x1ce992){super(_0x1ce992),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-disclaimer']},'children':[{'tag':'p','attributes':{'class':['ck','ck-ai-disclaimer__content']},'children':[{'text':ca(_0x1ce992,'AI_DISCLAIMER_TEXT')}]}]});}};function ub(_0x2a3ee3,_0x491d8f){const _0x583bc6=new _0x39ae99(_0x2a3ee3);return _0x583bc6['set']({'label':ca(_0x2a3ee3,'AI_CHAT_LABEL_NEW_CHAT'),'withText':!0x0,'icon':Gt,'class':'ck-ai-chat__start-conversation\x20'+_g}),_0x583bc6['on']('execute',()=>{_0x491d8f['fire']('startConversation');}),_0x583bc6;}var db=class extends _0x2f6e1a{chatHeader;chatFeed;chatControls;chatDisclaimer;_bodyCollection;constructor(_0x39cce0,_0x24b895){super(_0x39cce0),this['_bodyCollection']=Ag(_0x39cce0);const _0x349de9=ub(_0x39cce0,this);this['chatHeader']=new lb(_0x39cce0,{'label':ca(_0x39cce0,'AI_CHAT_HEADING'),'icon':_0x264984,'class':'ck-ai-header_chat','content':_0x349de9,'showResizeButton':_0x24b895['showResizeButton']}),this['chatHeader']['delegate']('resizeTabs')['to'](this),this['chatFeed']=new cw(_0x39cce0,this['_bodyCollection']),this['chatFeed']['delegate'](...Zg)['to'](this),this['chatControls']=new ab(_0x39cce0,{'bodyCollection':this['_bodyCollection'],'contextResourcesSearchInputVisibleFrom':_0x24b895['contextResourcesSearchInputVisibleFrom'],'filesEnabled':_0x24b895['filesEnabled']}),this['chatControls']['delegate'](...Zg)['to'](this),this['chatDisclaimer']=new hb(_0x39cce0),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-ai-chat','ck-rounded-corners'],'dir':_0x39cce0['uiLanguageDirection']},'children':[this['chatHeader'],this['chatFeed'],this['chatControls'],this['chatDisclaimer']]});}populateSourceResourceBalloon(_0x2012ef,_0x1229ec,_0xf75e02,_0x1833a8){this['chatControls']['populateSourceResourceBalloon'](_0x2012ef,_0x1229ec,_0xf75e02,_0x1833a8);}['closeSourceResourceBalloon'](_0x511cf9){this['chatControls']['closeSourceResourceBalloon'](_0x511cf9);}destroy(){this['_bodyCollection']['detachFromDom'](),super['destroy']();}},fb=class extends _0x4dd342{static get requires(){return[ea];}['_view'];static get['pluginName'](){return'AIChatUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}feedItemRenderingStrategy='streaming';['showDiff']=!0x0;['_promiseQueue'];_interactionPromiseResolver;_titleAnimationInterval=void 0x0;['_isTrackChangesCommandValueBound']=!0x1;get['idleUiPromise'](){return this['_promiseQueue']['queueEmptyPromise'];}constructor(_0x542132){super(_0x542132);const _0x43da09=this['context']['plugins']['get']('AITabs');this['set']('isBusy',!0x1),this['set']('isChatStreaming',!0x1),this['_promiseQueue']=new TO(),this['_view']=new db(this['context']['locale'],{'showResizeButton':_0x43da09['showResizeButton'],'contextResourcesSearchInputVisibleFrom':this['context']['config']['get']('ai.chat.context.searchInputVisibleFrom'),'filesEnabled':!0x1!==this['context']['config']['get']('ai.chat.context.files.enabled')}),this['_view']['delegate']('resizeTabs')['to'](_0x43da09),this['_view']['delegate'](...Zg)['to'](this),this['_view']['on']('toggleSuggestionDisplayMode',(_0xf246a2,{showDiff:_0x3f3859})=>{this['showDiff']=_0x3f3859;}),this['disableControls'](),_0x43da09['view']['addTab']({'id':'chat','buttonLabel':ca(this['context']['locale'],'AI_CHAT_HEADING'),'buttonIcon':_0x264984,'order':0x0,'content':this['_view']}),this['_view']['chatHeader']['bind']('isMaximized')['to'](_0x43da09['view'],'isMaximized',_0x3c177d=>_0x3c177d),this['_view']['chatControls']['bind']('isLoading')['to'](this,'isChatStreaming',_0x5af8a4=>_0x5af8a4),this['_view']['chatControls']['setInputPlaceholder'](this['_getInputPlaceholder']()),this['bind']('isModelAvailable')['to'](this['_view']['chatControls'],'isModelAvailable');}destroy(){super['destroy'](),this['_titleAnimationInterval']&&clearInterval(this['_titleAnimationInterval']);}createConversation({availableModels:_0xf04234}){const _0x367e03=this['context']['config']['get']('ai.chat.welcomeMessage')??ca(this['context']['locale'],'AI_CHAT_WELCOME_MESSAGE');this['_view']['chatFeed']['clear'](),this['_view']['chatControls']['enableModelSelector'](),this['_view']['chatControls']['setModelList'](_0xf04234,!this['context']['config']['get']('ai.models.showModelSelector')),this['addFeedItemStaticMessage']({'id':'conversation-start','staticMessage':_0x367e03}),this['fire']('conversationCreated');}async addFeedItemStaticMessage({id:_0x72c93e,staticMessage:_0x4f8e2c}){return this['_promiseQueue']['enqueue'](async()=>{this['_view']['chatFeed']['addItem']('ai-reply',{'id':_0x72c93e,'initialContent':'<p>'+_0x4f8e2c+'</p>'});});}async addFeedItemUserMessage(_0x3c3388){const _0x3a24e2=_0x3c3388['attributes']?.['displayedPrompt']||_0x3c3388['userMessage'];return this['_promiseQueue']['enqueue'](async()=>{this['_view']['chatFeed']['addItem']('user-message',{'contextItems':Array['from'](_0x3c3388['contextItems']['values']()),'initialContent':'<p>'+_0x3a24e2+'</p>','id':_0x3c3388['id']});});}async addFeedItemError({errorMessage:_0x25a102,id:_0x1d29b5}){return this['_promiseQueue']['enqueue'](async()=>{this['_view']['chatFeed']['addItem']('error-message',{'initialContent':'<p>'+_0x25a102+'</p>','id':_0x1d29b5});});}async addFeedItemAIReply(_0x57dfb5){return this['_promiseQueue']['enqueue'](async()=>{this['_view']['chatFeed']['addItem']('ai-reply',{'id':_0x57dfb5['interactionId']+':'+_0x57dfb5['id']}),this['clearLoadingMessage']();});}async addFeedItemAISuggestion(_0x228271){const _0x57d9e0=ma(this['context']),_0x1cdd99=_0x57d9e0['map'](_0x1e86d2=>_0x1e86d2['config']['get']('ai.availableReplyActions')||[...SO]);let _0xbc6c36=_0x1cdd99['reduce']((_0x5563bd,_0x46a422)=>_0x5563bd['filter'](_0x1bd6da=>_0x46a422['includes'](_0x1bd6da)),_0x1cdd99[0x0]||[...SO]);const _0x991c76=_0x57d9e0['every'](_0x454598=>_0x454598['plugins']['has']('TrackChanges')),_0xf64024=_0x57d9e0['map'](_0x38e2b6=>_0x38e2b6['commands']['get']('trackChanges'));return _0x991c76?this['_isTrackChangesCommandValueBound']||(this['_isTrackChangesCommandValueBound']=!0x0,this['_view']['chatFeed']['bind']('isTrackChangesOn')['toMany'](_0xf64024,'value',(..._0x2fc030)=>_0x2fc030['some'](_0x4637ee=>_0x4637ee))):_0xbc6c36=_0xbc6c36['filter'](_0x3b7b43=>'insertSuggestion'!=_0x3b7b43),this['_promiseQueue']['enqueue'](async()=>{this['_view']['chatFeed']['addItem']('ai-suggestion-reply',{'id':_0x228271['interactionId']+':'+_0x228271['id'],'areActionsDisabled':_0x228271['areActionsDisabled'],'showDiff':this['showDiff'],'availableActions':_0xbc6c36}),this['clearLoadingMessage']();});}async addFeedInteractionHeader(_0x350562,_0x123446){return this['_promiseQueue']['enqueue'](async()=>{const _0x4eec5c=this['_view']['chatFeed']['children']['last'];if(_0x4eec5c instanceof iw)return this['_view']['chatFeed']['children']['remove'](_0x4eec5c),void this['_view']['chatFeed']['addItem']('interaction-header',{'id':_0x350562['id'],'capabilities':{'isWebSearchEnabled':_0x4eec5c['capabilities']['isWebSearchEnabled']||_0x123446['isWebSearchEnabled'],'isReasoningEnabled':_0x4eec5c['capabilities']['isReasoningEnabled']||_0x123446['isReasoningEnabled']}});this['_view']['chatFeed']['addItem']('interaction-header',{'id':_0x350562['id'],'capabilities':_0x123446});});}async addFeedItemCustomElement(_0x40eebf,_0xd45031){let _0x1179b8;return await this['_promiseQueue']['enqueue'](async()=>{_0x1179b8=this['_view']['chatFeed']['addItem']('custom-element',{'content':_0x40eebf,'id':_0xd45031});}),_0x1179b8;}removeFeedItem(_0x4d6edb){this['_view']['chatFeed']['removeItem'](_0x4d6edb);}hasFeedItem(_0x20bcaa){return this['_view']['chatFeed']['hasItem'](_0x20bcaa);}updateFeedInteractionHeader(_0x488a71){const _0x13a2c0=this['_view']['chatFeed']['children']['find'](_0x2e45bf=>_0x2e45bf['options']['id']==_0x488a71['id']&&_0x2e45bf instanceof iw);_0x13a2c0&&_0x13a2c0['set']('isVisible',_0x488a71['isVisible']);}async updateFeedItemAIReplyContent(_0xebf069){const _0x4a6caa=_0xebf069['renderingStrategy']||this['feedItemRenderingStrategy'];return this['_promiseQueue']['enqueue'](async _0x2e7f1d=>{await this['_view']['chatFeed']['updateReplyItem']({..._0xebf069,'abortSignal':_0x2e7f1d,'renderingStrategy':_0x4a6caa}),_0xebf069['isDone']&&this['markFeedItemAsDone'](_0xebf069['id']);});}updateFeedItemAIReplySources(_0x19d822,_0x433e4c){this['_view']['chatFeed']['updateWebSources'](_0x19d822,_0x433e4c);}async updateFeedItemAIReplySuggestionContent(_0x2f83f3){return this['_promiseQueue']['enqueue'](async _0x1d9738=>{await this['_view']['chatFeed']['updateSuggestionItem']({..._0x2f83f3,'abortSignal':_0x1d9738}),_0x2f83f3['isDone']&&this['markFeedItemAsDone'](_0x2f83f3['id']);});}updateFeedItemAIReplySuggestionPartState(_0x1b488d){this['_view']['chatFeed']['updateSuggestionPartState'](_0x1b488d);}setSuggestionGating(_0x123640,_0x283170){this['_view']['chatFeed']['updateSuggestionGating'](_0x123640,_0x283170);}setFeedItemAIReplySuggestionPartActive(_0x9addb3){this['_view']['chatFeed']['setSuggestionPartActive'](_0x9addb3);}markFeedItemAsDone(_0x18926c){this['_view']['chatFeed']['markItemAsDone'](_0x18926c);}removeFeedInteraction(_0x2cfb2b){this['_view']['chatFeed']['getItemIds']()['filter'](_0x1b9628=>_0x1b9628['startsWith'](_0x2cfb2b))['forEach'](_0xa2523e=>this['_view']['chatFeed']['removeItem'](_0xa2523e));}startInteraction(){const _0xa6249c=this['prepareLoadingMessage']({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this['setLoadingMessage'](_0xa6249c),this['_view']['chatControls']['disableModelSelector'](!this['context']['config']['get']('ai.models.showModelSelector')),this['isBusy']=!0x0,this['isChatStreaming']=!0x0,this['_view']['chatFeed']['startAutoScroll']();}stopInteraction(_0x1aa9bd){this['_promiseQueue']['abort'](),_0x1aa9bd&&this['_view']['chatFeed']['getItemIds']()['filter'](_0x38bca5=>_0x38bca5['startsWith'](_0x1aa9bd['id']))['forEach'](_0x447d40=>this['markFeedItemAsDone'](_0x447d40)),this['resetChatBusyStateToIdle']();}resetChatBusyStateToIdle(){this['isBusy']=!0x1,this['isChatStreaming']=!0x1,this['clearLoadingMessage'](),this['_view']['chatFeed']['stopAutoScroll']();}async finishInteraction(){return this['_promiseQueue']['queueEmptyPromise']['then'](()=>{this['resetChatBusyStateToIdle']();});}addContextItem(_0x570f26,_0xcb72e8){this['_view']['chatControls']['addContextItem'](_0x570f26,_0xcb72e8);}removeContextItem(_0x57cd51){this['_view']['chatControls']['removeContextItem'](_0x57cd51);}setContextItemLoading(_0x4950af,_0x5d22fd){this['_view']['chatControls']['setContextItemLoading'](_0x4950af,_0x5d22fd);}setIsUploadInProgress(_0x59bdeb){this['_view']['chatControls']['setIsUploadInProgress'](_0x59bdeb);}setConversationContext(_0x4d7fd6){this['_view']['chatControls']['setConversationContext'](_0x4d7fd6);}clearPendingContextUI(){this['_view']['chatControls']['clearPendingContextUI']();}clearConversationContextUI(){this['_view']['chatControls']['clearConversationContextUI']();}updateResourceState(_0x28fe13,_0x4582d5,_0x5ba14e){this['_view']['chatControls']['updateResourceState'](_0x28fe13,_0x4582d5,_0x5ba14e);}resetMessageInput(){this['_view']['chatControls']['resetMessageInput'](),this['_view']['chatControls']['setInputPlaceholder'](this['_getInputPlaceholder']());}setAddContextOptions(_0x469b5e){this['_view']['chatControls']['setAddContextOptions'](_0x469b5e);}updateCapabilities(_0x4722d5){this['_view']['chatControls']['setWebSearch'](_0x4722d5['isWebSearchEnabled']),this['_view']['chatControls']['setReasoning'](_0x4722d5['isReasoningEnabled']),this['_view']['chatControls']['setInputPlaceholder'](this['_getInputPlaceholder'](_0x4722d5));}setSelectedModel(_0x5f2c90,_0x423ecc){this['_view']['chatControls']['setModel'](_0x5f2c90),_0x423ecc&&this['_view']['chatControls']['disableModelSelector'](!0x1);}setFeedItemRenderingStrategy(_0x36a279){this['feedItemRenderingStrategy']=_0x36a279;}toggleLoadingSkeleton(_0x45818f){this['_view']['chatFeed']['toggleLoadingSkeleton'](_0x45818f);}resetConversationTitle(){this['setConversationTitle'](ca(this['context']['locale'],'AI_CHAT_HEADING'));}emptyConversationTitle(){this['setConversationTitle']('');}setConversationTitle(_0x366363,_0x36177d=!0x1){if(clearInterval(this['_titleAnimationInterval']),_0x36177d&&!_0x3beb43()&&_0x366363['length'])return this['_view']['chatHeader']['label']='',void this['_animateConversationTitle'](_0x366363);this['_view']['chatHeader']['label']=_0x366363;}setLoadingMessage(_0x3ffd31){this['_view']['chatFeed']['setLoadingMessage'](_0x3ffd31);}['clearLoadingMessage'](){this['_view']['chatFeed']['setLoadingMessage']('');}_animateConversationTitle(_0x20c022){let _0x2ba5c6=0x0;this['_titleAnimationInterval']=setInterval(()=>{this['_view']['chatHeader']['label']=this['_view']['chatHeader']['label']+_0x20c022[_0x2ba5c6],_0x2ba5c6++,_0x2ba5c6===_0x20c022['length']&&clearInterval(this['_titleAnimationInterval']);},0x1e);}['prepareLoadingMessage'](_0x5d9f50){return _0x5d9f50['isWebSearchEnabled']&&_0x5d9f50['isReasoningEnabled']?ca(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING'):_0x5d9f50['isWebSearchEnabled']?ca(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH'):_0x5d9f50['isReasoningEnabled']?ca(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_REASONING'):ca(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_REGULAR');}_getInputPlaceholder(_0x5edbc4){return _0x5edbc4?_0x5edbc4['isWebSearchEnabled']&&_0x5edbc4['isReasoningEnabled']?ca(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING'):_0x5edbc4['isWebSearchEnabled']?ca(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH'):_0x5edbc4['isReasoningEnabled']?ca(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING'):ca(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR'):ca(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR');}populateSourceResourceBalloon(_0x404d59,_0x3cd18,_0x505b22,_0x32951d){this['_view']['populateSourceResourceBalloon'](_0x404d59,_0x3cd18,_0x505b22,_0x32951d);}['closeSourceResourceBalloon'](_0x544743){this['_view']['closeSourceResourceBalloon'](_0x544743);}setPromptInputValue(_0x8b09e2){this['_view']['chatControls']['setPromptInputValue'](_0x8b09e2);}focusPromptInput(_0x4a225e=!0x1){this['_view']['chatControls']['focusPromptInput'](_0x4a225e);}scrollFeedToSuggestion(_0xa061fb,_0x53c02a){this['_view']['chatFeed']['scrollToSuggestion'](_0xa061fb,_0x53c02a);}startAutoScroll(_0x552cfa={}){this['_view']['chatFeed']['startAutoScroll'](_0x552cfa);}stopAutoScroll(){this['_view']['chatFeed']['stopAutoScroll']();}disableControls(){this['_view']['chatControls']['isDisabled']=!0x0;}enableControls(){this['_view']['chatControls']['isDisabled']=!0x1;}toggleConversationLoading(_0x71b9c1){_0x71b9c1?(this['isBusy']=_0x71b9c1,this['disableControls']()):(this['enableControls'](),this['resetChatBusyStateToIdle']());}},mb=class extends _0x19f1e8{sections;constructor(_0x5a97cd,_0x1e7e1a){super(_0x5a97cd),this['sections']=_0x1e7e1a,this['items']['addMany'](this['sections']),this['extendTemplate']({'attributes':{'class':['ck-ai-chat-history__sections']}});}filter(_0x501f73){let _0x24e781=0x0,_0x1cddfe=0x0;for(const _0x1dac51 of this['sections']){const {resultsCount:_0x3ced1d,totalItemsCount:_0x29e4ca}=_0x1dac51['filter'](_0x501f73);_0x24e781+=_0x3ced1d,_0x1cddfe+=_0x29e4ca;}return{'resultsCount':_0x24e781,'totalItemsCount':_0x1cddfe};}},pb=class extends _0x585012{title;itemsViews;_itemsListView;constructor(_0x108f56,{title:_0x2e5b56,items:_0x16568a}){super(_0x108f56);const _0xc25de9=this['bindTemplate'];this['set']('isVisible',!0x0),this['title']=_0x2e5b56,this['itemsViews']=_0x16568a;const _0x60e3c3=new _0x2f6e1a(_0x108f56);_0x60e3c3['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-history__section-title']},'children':[this['title']]}),this['_itemsListView']=new _0x19f1e8(_0x108f56),this['_itemsListView']['items']['addMany'](this['itemsViews']),this['setTemplate']({'tag':'li','attributes':{'class':['ck-ai-chat-history__section',_0xc25de9['if']('isVisible','ck-hidden',_0x90c58c=>!_0x90c58c)]},'children':[_0x60e3c3,this['_itemsListView']]});}filter(_0x1b1800){const _0x452261=this['itemsViews']['length'];let _0x1fd478=0x0;for(const _0x5aee5b of this['itemsViews'])_0x1b1800?(_0x5aee5b['isVisible']=!!_0x5aee5b['isMatching'](_0x1b1800),_0x5aee5b['highlightText'](_0x1b1800)):(_0x5aee5b['isVisible']=!0x0,_0x5aee5b['highlightText'](null)),_0x5aee5b['isVisible']&&_0x1fd478++;return this['isVisible']=_0x1fd478>0x0,{'resultsCount':_0x1fd478,'totalItemsCount':_0x452261};}getItem(_0x4049f6){return this['itemsViews']['find'](_0x162147=>_0x162147['id']===_0x4049f6);}removeItem(_0x47a6c9){const _0xfed4d0=this['itemsViews']['indexOf'](_0x47a6c9);-0x1!==_0xfed4d0&&(this['itemsViews']['splice'](_0xfed4d0,0x1),this['_itemsListView']['items']['remove'](_0x47a6c9));}};const gb=/* #__PURE__ -- @preserve */
Mm(_0x585012);var Ob=class AIChatHistoryListItemView extends gb{['id'];static ['LOADING_LABELS']={'remove':'AI_CHAT_HISTORY_LOADING_REMOVING','rename':'AI_CHAT_HISTORY_LOADING_RENAMING','pin':'AI_CHAT_HISTORY_LOADING_PINNING','unpin':'AI_CHAT_HISTORY_LOADING_UNPINNING'};actions;mainContent;_titleView;constructor(_0x55b107,_0x261a24){super(_0x55b107);const _0x1371c1=this['bindTemplate'];this['set']('isEdit',!0x1),this['set']('isVisible',!0x0),this['set']('pinned',!!_0x261a24['pinned']),this['set']('loadingState',null),this['set']('title',_0x261a24['title']),this['id']=_0x261a24['id'];const {createdAt:_0x2b5659,active:_0x1d71b6=!0x1}=_0x261a24;this['_titleView']=new _0x5ad9a9(),this['_titleView']['bind']('text')['to'](this,'title'),this['_titleView']['extendTemplate']({'attributes':{'class':['ck-ai-chat-history__item-title']}});const _0x59f5ce=this['_createCheckView'](),_0x59babd=this['_createPinButtonView'](_0x55b107),_0x550ab1=this['_createMenuDropdownView'](),_0xa4a294=this['_createEditInputView'](_0x55b107),_0x2f6f0b=this['_createAcceptEditButtonView'](_0x55b107,_0xa4a294),_0x17230c=this['_createCancelEditButtonView'](_0x55b107);this['actions']=this['createCollection'](),this['mainContent']=this['createCollection'](),this['mainContent']['add'](this['_titleView']),this['actions']['add'](_0x59babd),this['actions']['add'](_0x550ab1),this['on']('change:isEdit',(_0x4cc529,_0x587869,_0x78f71a)=>{this['actions']['clear'](),this['mainContent']['clear'](),_0x78f71a?(this['actions']['add'](_0x2f6f0b),this['actions']['add'](_0x17230c),this['mainContent']['add'](_0xa4a294),_0xa4a294['element']['value']=this['title']||'',_0xa4a294['element']['focus']()):(this['actions']['add'](_0x59babd),this['actions']['add'](_0x550ab1),this['mainContent']['add'](this['_titleView']));}),this['setTemplate']({'tag':'li','attributes':{'class':['ck-ai-chat-history__item',_0x1d71b6?'ck-ai-chat-history__item--active':'',_0x1371c1['if']('isVisible','ck-hidden',_0x24c80c=>!_0x24c80c),_0x1371c1['if']('isEdit','ck-ai-chat-history__item--edit')],'role':'listitem'},'children':[{'tag':'span','attributes':{'class':['ck-ai-chat-history__item-check-container']},'children':[{'tag':'div','attributes':{'class':['ck-ai-chat-history__item-check',_0x1371c1['if']('loadingState','ck-hidden',_0x486ef0=>!!_0x486ef0)]},'children':_0x1d71b6?[_0x59f5ce]:[]},{'tag':'div','attributes':{'class':['ck-ai-loader',_0x1371c1['if']('loadingState','ck-hidden',_0x51912b=>!_0x51912b)]},'children':[this['_createSpinnerView']()]}]},{'tag':'div','attributes':{'class':['ck-ai-chat-history__item-row']},'children':[{'tag':'div','attributes':{'class':['ck-ai-chat-history__item-content']},'on':{'click':this['bindTemplate']['to']('click')},'children':[{'tag':'div','attributes':{'class':['ck-ai-chat-history__item-main-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai-chat-history__item-title-container',_0x1371c1['if']('loadingState','ck-hidden',_0x576d0c=>!!_0x576d0c)]},'children':this['mainContent']},{'tag':'div','attributes':{'class':['ck-ai-loader__text',_0x1371c1['if']('loadingState','ck-hidden',_0x4be546=>!_0x4be546)]},'children':[{'text':_0x1371c1['to']('loadingState',_0x388502=>_0x388502?ca(this['locale'],AIChatHistoryListItemView['LOADING_LABELS'][_0x388502]):'')}]}]},{'tag':'span','attributes':{'class':['ck-ai-chat-history__item-date']},'children':[_0x2b5659]}]},{'tag':'div','attributes':{'class':['ck-ai-chat-history__item-actions']},'children':this['actions']}]}]}),this['on']('click',()=>{this['isEdit']||this['fire']('selectConversation',{'id':this['id']});});}updateTitle(_0xf5b8b4){this['set']('title',_0xf5b8b4);}updateLoadingState(_0x49066f,_0x59f28f){this['set']('loadingState',_0x59f28f?_0x49066f:null);}_createCheckView(){const _0x4eec1a=new _0x5d1800();return _0x4eec1a['set']({'content':_0x2659e3}),_0x4eec1a;}_createPinButtonView(_0x2b2a1c){const _0x2f5c6d=new _0x39ae99(_0x2b2a1c);return _0x2f5c6d['set']({'label':ca(_0x2b2a1c,'AI_CHAT_HISTORY_PIN_BUTTON'),'icon':Ft,'withText':!0x1,'tooltip':!0x0}),_0x2f5c6d['bind']('isOn')['to'](this,'pinned'),_0x2f5c6d['on']('execute',()=>{const _0x548dd4=!this['pinned'];this['fire']('setConversationPinned',{'id':this['id'],'pinned':_0x548dd4});}),_0x2f5c6d;}_createMenuDropdownView(){const _0x2005c5=_0x46490d(this['locale']),_0x9438d8=_0x2005c5['panelView']['children'];_0x2005c5['buttonView']['set']({'label':ca(this['locale'],'AI_CHAT_HISTORY_SHOW_MORE_ITEMS'),'icon':_0x44cb48}),_0x2005c5['panelPosition']='sw';const _0x3a5165=new _0x39ae99(this['locale']);_0x3a5165['label']=ca(this['locale'],'AI_CHAT_HISTORY_EDIT_NAME'),_0x3a5165['withText']=!0x0,_0x3a5165['on']('execute',()=>{this['isEdit']=!0x0;});const _0x35c246=new _0x39ae99(this['locale']);_0x35c246['label']=ca(this['locale'],'AI_CHAT_HISTORY_REMOVE'),_0x35c246['withText']=!0x0,_0x35c246['on']('execute',()=>{this['showConfirm'](ca(this['locale'],'AI_CHAT_HISTORY_REMOVE_CONFIRM'),this['element'])['then'](()=>{this['fire']('removeConversation',{'id':this['id']});});});const _0x2024a4=new _0x19f1e8(this['locale']),_0x20d406=new _0x585012(this['locale']);_0x20d406['children']['add'](_0x3a5165);const _0x45b4f0=new _0x585012(this['locale']);return _0x45b4f0['children']['add'](_0x35c246),_0x2024a4['items']['addMany']([_0x20d406,_0x45b4f0]),_0x9438d8['add'](_0x2024a4),_0x2005c5;}_createEditInputView(_0x21c2e8){const _0x20e848=new _0x37a56e(_0x21c2e8),_0x28b2e6=_0x20e848['bindTemplate'];return _0x20e848['extendTemplate']({'on':{'keydown':_0x28b2e6['to'](_0x266ae5=>{'Enter'==_0x266ae5['key']&&this['_commitEditInputValue'](_0x20e848);})}}),_0x20e848;}_createAcceptEditButtonView(_0x55d8a0,_0x4e19d0){const _0x13ed4d=new _0x39ae99(_0x55d8a0);return _0x13ed4d['set']({'icon':_0x2659e3,'withText':!0x1,'tooltip':ca(_0x55d8a0,'AI_CHAT_HISTORY_ACCEPT')}),_0x13ed4d['extendTemplate']({'attributes':{'class':['ck-confirm-view-submit']}}),_0x13ed4d['on']('execute',()=>{this['_commitEditInputValue'](_0x4e19d0);}),_0x13ed4d;}_commitEditInputValue(_0x4ff695){const _0x142c6d=_0x4ff695['element']['value']||'';this['isEdit']=!0x1,this['fire']('editConversationTitle',{'id':this['id'],'title':_0x142c6d});}_createCancelEditButtonView(_0x222ff3){const _0x58d486=new _0x39ae99(_0x222ff3);return _0x58d486['set']({'icon':_0x2f7d46,'withText':!0x1,'tooltip':ca(_0x222ff3,'AI_CHAT_HISTORY_CANCEL')}),_0x58d486['extendTemplate']({'attributes':{'class':['ck-confirm-view-cancel']}}),_0x58d486['on']('execute',()=>{this['isEdit']=!0x1,this['fire']('edit:cancel');}),_0x58d486;}_createSpinnerView(){const _0x2f25bd=new MO('tiny');return _0x2f25bd['isVisible']=!0x0,_0x2f25bd;}isMatching(_0x3c2758){return'string'==typeof this['title']&&this['title']['match'](_0x3c2758)?{'title':!0x0}:null;}highlightText(_0x3c8398){this['_titleView']['highlightText'](_0x3c8398);}},wb=class extends _0x2f6e1a{['headerView'];['searchView'];['mainErrorView'];skeletonView;emptyView;sectionsView;constructor(_0x2a793b,_0x5f3773){super(_0x2a793b),this['set']('hasItems',!0x1),this['set']('isLoading',!0x0),this['set']('errorMessage',''),this['set']('isSearchViewVisible',!0x1),this['set']('isEmptyViewVisible',!0x1),this['set']('isMainErrorViewVisible',!0x1);const _0x355a68=ub(_0x2a793b,this);this['headerView']=new lb(_0x2a793b,{'label':ca(_0x2a793b,'AI_CHAT_HISTORY_HEADING'),'icon':_0x2bb729,'class':'ck-ai-header_history','content':_0x355a68,'showResizeButton':_0x5f3773}),this['headerView']['delegate']('resizeTabs')['to'](this),this['sectionsView']=new mb(_0x2a793b,[]),this['sectionsView']['delegate'](...bb)['to'](this),this['mainErrorView']=this['_createErrorView'](),this['skeletonView']=this['_createSkeletonView'](),this['emptyView']=this['_createEmptyStateView'](),this['searchView']=this['_createSearchView'](),this['mainErrorView']['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isMainErrorViewVisible','ck-hidden',_0x566226=>!_0x566226)]}}),this['on']('change:isLoading',()=>this['_updateViewVisibility']()),this['on']('change:hasItems',()=>this['_updateViewVisibility']()),this['on']('change:errorMessage',()=>this['_updateViewVisibility']()),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-ai-chat-history','ck-rounded-corners'],'dir':'ltr'},'children':[this['headerView'],{'tag':'div','attributes':{'class':['ck-ai-chat-history__content']},'children':[this['skeletonView'],this['mainErrorView'],this['emptyView'],this['searchView']]}]});}_updateViewVisibility(){this['isSearchViewVisible']=!this['isLoading']&&this['hasItems'],this['isEmptyViewVisible']=!this['isLoading']&&!this['hasItems']&&!this['errorMessage'],this['isMainErrorViewVisible']=!this['isSearchViewVisible']&&!!this['errorMessage'];}_createSearchView(){const _0x2268dc=new _0x30d1f3(this['locale'],{'filteredView':this['sectionsView'],'queryView':{'label':ca(this['locale'],'AI_CHAT_HISTORY_SEARCH_LABEL')},'infoView':{'text':{'notFound':{'primary':_0x3e4f53=>ca(this['locale'],'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY',_0x3e4f53),'secondary':ca(this['locale'],'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY')}}}}),_0x3d6904=this['_createErrorView']();return _0x3d6904['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('errorMessage','ck-hidden',_0x5173bb=>!_0x5173bb)]}}),_0x2268dc['on']('render',()=>{_0x2268dc['children']['add'](_0x3d6904,0x1);}),_0x2268dc['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isSearchViewVisible','ck-hidden',_0x34ed90=>!_0x34ed90)]}}),_0x2268dc;}_createSkeletonView(){const _0x582f86=new yO(this['locale'],vO['aiHistory']);return _0x582f86['bind']('isVisible')['to'](this,'isLoading'),_0x582f86;}_createErrorView(){const _0x4b4f37=new _0x2f6e1a(this['locale']),_0x5a9f62=new _0x39ae99(this['locale']);_0x5a9f62['set']({'withText':!0x1,'icon':_0x2f7d46,'class':'ck-ai-notification_error__dismiss-button'}),_0x5a9f62['bind']('isVisible')['to'](this,'hasItems',_0x58a846=>!!_0x58a846),_0x5a9f62['on']('execute',()=>{this['errorMessage']='';});const _0x24fb4e=this['bindTemplate'];return _0x4b4f37['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-notification','ck-ai-notification_error']},'children':[{'tag':'p','children':[{'text':_0x24fb4e['to']('errorMessage')}]},_0x5a9f62]}),_0x4b4f37;}_createEmptyStateView(){const _0x4c9a80=new _0x2f6e1a(this['locale']);return _0x4c9a80['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-history__empty',this['bindTemplate']['if']('isEmptyViewVisible','ck-hidden',_0x3ebf7b=>!_0x3ebf7b)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-chat-history__empty-message']},'children':[ca(this['locale'],'AI_CHAT_HISTORY_EMPTY_MESSAGE')]}]}),_0x4c9a80;}_createListItemViews(_0x57d90f,_0xa88fe){const _0x5ecdaa=[];for(const _0x27b10b of _0x57d90f){const _0x2e3b87=new Ob(_0xa88fe,_0x27b10b);_0x2e3b87['delegate'](...bb)['to'](this),_0x5ecdaa['push'](_0x2e3b87);}return _0x5ecdaa;}updateHistoryItemsWithCategories(_0x23d467){const _0x3bdb21=this['locale']||'en',_0x35dc9b=[];for(const _0x545f99 of _0x23d467){const _0x357ae7=this['_createListItemViews'](_0x545f99['items'],_0x3bdb21);_0x35dc9b['push'](new pb(_0x3bdb21,{'title':_0x545f99['title'],'items':_0x357ae7}));}this['sectionsView']['sections']=_0x35dc9b,this['sectionsView']['items']['clear'](),this['sectionsView']['items']['addMany'](_0x35dc9b),this['hasItems']=_0x23d467['some'](_0x2d57c4=>_0x2d57c4['items']['length']>0x0),this['_refreshSearch']();}removeHistoryItem(_0x58fb40){for(const _0x5ec754 of this['sectionsView']['sections']){const _0x4f834f=_0x5ec754['getItem'](_0x58fb40);if(_0x4f834f){if(_0x5ec754['removeItem'](_0x4f834f),0x0===_0x5ec754['itemsViews']['length']){const _0x5afdf9=this['sectionsView']['sections']['indexOf'](_0x5ec754);-0x1!==_0x5afdf9&&(this['sectionsView']['sections']['splice'](_0x5afdf9,0x1),this['sectionsView']['items']['remove'](_0x5ec754));}this['hasItems']=this['sectionsView']['sections']['length']>0x0,this['_refreshSearch']();break;}}}updateItemTitle(_0x59d9a2,_0x39f3b2){for(const _0x394be4 of this['sectionsView']['sections']){const _0x4cf3df=_0x394be4['getItem'](_0x59d9a2);if(_0x4cf3df){_0x4cf3df['updateTitle'](_0x39f3b2);break;}}}updateItemLoadingState(_0x22e601,_0x4e0201,_0x2d0017){for(const _0xc8689a of this['sectionsView']['sections']){const _0x429b86=_0xc8689a['getItem'](_0x22e601);if(_0x429b86){_0x429b86['updateLoadingState'](_0x4e0201,_0x2d0017);break;}}}['_refreshSearch'](){if(this['hasItems']){const _0x6000d7=this['searchView']['queryView']['fieldView']?.['element']?.['value']||'';this['searchView']['search'](_0x6000d7);}}};const bb=['showConversationHistory','removeConversation','editConversationTitle','setConversationPinned','selectConversation','startConversation'];var yb=class extends _0x4dd342{static get requires(){return[ea];}_historyView;static get['pluginName'](){return'AIChatHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2632d7){super(_0x2632d7);const _0x1c475e=this['context']['plugins']['get']('AITabs');this['_historyView']=new wb(this['context']['locale'],_0x1c475e['showResizeButton']),this['_historyView']['delegate']('resizeTabs')['to'](_0x1c475e),this['_historyView']['delegate'](...bb)['to'](this),this['_historyView']['headerView']['bind']('isMaximized')['to'](_0x1c475e['view'],'isMaximized',_0x506257=>_0x506257),_0x1c475e['view']['addTab']({'id':'history','buttonLabel':ca(this['context']['locale'],'AI_CHAT_HISTORY_HEADING'),'buttonIcon':_0x2bb729,'order':0x0,'content':this['_historyView']});}removeHistoryItem(_0x4a8ad2){this['_historyView']['removeHistoryItem'](_0x4a8ad2);}updateItems(_0x41a720){this['_historyView']['updateHistoryItemsWithCategories'](_0x41a720);}updateItemTitle(_0x580424,_0x49c5b3){this['_historyView']['updateItemTitle'](_0x580424,_0x49c5b3);}updateItemLoadingState(_0x54d4ce,_0x5c4c3b,_0x50bd7e){this['_historyView']['updateItemLoadingState'](_0x54d4ce,_0x5c4c3b,_0x50bd7e);}setLoadingSkeleton(_0x528ec5){this['_historyView']['isLoading']=_0x528ec5;}['showError'](_0x17a1f8){this['_historyView']['errorMessage']=_0x17a1f8;}['hideError'](){this['_historyView']['errorMessage']='';}};const vb=/* #__PURE__ -- @preserve */
_0x356c1e();var _b=class extends vb{['id'];createdAt;constructor({id:_0xa4b476,title:_0x38a614,createdAt:_0x4634fe,updatedAt:_0x19ad1f,pinned:_0x2ea13b}){super(),this['id']=_0xa4b476,this['createdAt']=new Date(_0x4634fe),this['set']('title',_0x38a614),this['set']('updatedAt',_0x19ad1f?new Date(_0x19ad1f):null),this['set']('pinned',_0x2ea13b||!0x1);}updateTitle(_0x5e268f){this['set']('title',_0x5e268f),this['updatedAt']=new Date();}updatePinned(_0x27c8fc){this['set']('pinned',_0x27c8fc),this['updatedAt']=new Date();}};const Eb=/* #__PURE__ -- @preserve */
_0x3e0c97();var Tb=class extends Eb{items=[];connector;['group'];constructor({connector:_0x27321f,group:_0x14f9c8}){super(),this['connector']=_0x27321f,this['group']=_0x14f9c8;}async init(){try{const _0x3065af=await this['connector']['fetchConversations'](this['group'])['getConversations']();this['loadItems'](_0x3065af);}catch(_0x100658){this['fire']('error',{'error':_0x100658,'operation':'init'});}}addItem(_0x2067d5){this['items']['push'](_0x2067d5);}async removeItem(_0x132c00){const _0x2d70b7=this['items']['findIndex'](_0x3c193b=>_0x3c193b['id']===_0x132c00);if(-0x1===_0x2d70b7)return!0x1;try{return await this['connector']['deleteConversation'](_0x132c00)['execute'](),this['items']['splice'](_0x2d70b7,0x1),this['fire']('itemRemoved',{'itemId':_0x132c00}),!0x0;}catch(_0xfafb91){return this['fire']('error',{'error':_0xfafb91,'operation':'removeItem','itemId':_0x132c00}),!0x1;}}getItem(_0x12940a){return this['items']['find'](_0x36d54c=>_0x36d54c['id']===_0x12940a);}async updateItemTitle(_0x4f2b84,_0x123182){const _0x44d0c7=this['getItem'](_0x4f2b84);if(!_0x44d0c7)return!0x1;try{return await this['connector']['updateConversation'](_0x4f2b84,{'title':_0x123182})['getResult'](),_0x44d0c7['updateTitle'](_0x123182),this['fire']('itemUpdated',{'itemId':_0x4f2b84,'updates':{'title':_0x123182}}),!0x0;}catch(_0x503e37){return this['fire']('error',{'error':_0x503e37,'operation':'updateItemTitle','itemId':_0x4f2b84}),!0x1;}}async updateItemPinned(_0xfaad55,_0x3ad7e6){const _0x35d8bc=this['getItem'](_0xfaad55);if(!_0x35d8bc)return!0x1;try{return await this['connector']['updateConversation'](_0xfaad55,{'pinned':_0x3ad7e6})['getResult'](),_0x35d8bc['updatePinned'](_0x3ad7e6),this['fire']('itemUpdated',{'itemId':_0xfaad55,'updates':{'pinned':_0x3ad7e6}}),!0x0;}catch(_0x1e8504){return this['fire']('error',{'error':_0x1e8504,'operation':'updateItemPinned','itemId':_0xfaad55}),!0x1;}}loadItems(_0x478de3){try{this['items']=[],_0x478de3['map'](_0x2927e1=>{this['addItem'](new _b(_0x2927e1));}),this['fire']('itemsLoaded',{'items':[...this['items']]});}catch(_0x2af4e3){this['fire']('error',{'error':_0x2af4e3,'operation':'loadItems'});}}getItems(_0x53e207={}){const _0x246f92=void 0x0!==_0x53e207['pinned']&&_0x53e207['pinned'],_0xc80982=_0x53e207['from']?new Date(_0x53e207['from']['getFullYear'](),_0x53e207['from']['getMonth'](),_0x53e207['from']['getDate']()):null,_0x396608=_0x53e207['to']?new Date(_0x53e207['to']['getFullYear'](),_0x53e207['to']['getMonth'](),_0x53e207['to']['getDate']()):null;return this['items']['filter'](_0x56ad86=>{if(_0x56ad86['pinned']!==_0x246f92)return!0x1;if(_0x396608){const _0x3f9060=new Date(_0x56ad86['createdAt']['getFullYear'](),_0x56ad86['createdAt']['getMonth'](),_0x56ad86['createdAt']['getDate']());return _0xc80982?_0xc80982['getTime']()===_0x396608['getTime']()?_0x3f9060['getTime']()===_0xc80982['getTime']():_0x3f9060<_0x396608&&_0x3f9060>=_0xc80982:_0x3f9060<_0x396608;}return!0x0;});}},Ab=class extends _0x4dd342{_aiConnector;_reporter;_aiChatHistoryUi;_aiChatController;static get requires(){return[oa,bg,Hg,yb,ea];}static get['pluginName'](){return'AIChatHistoryController';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){this['_aiConnector']=this['context']['plugins']['get'](oa),this['_aiChatHistoryUi']=this['context']['plugins']['get'](yb),this['_aiChatController']=this['context']['plugins']['get'](Hg),this['_reporter']=this['context']['plugins']['get'](bg)['createReporter']('aichathistory');const _0x1df16b=this['context']['plugins']['get'](ea);try{const _0x22effc=this['_aiChatController']['getGroupId']();this['history']=new Tb({'connector':this['_aiConnector'],'group':_0x22effc}),this['listenTo'](this['_aiChatHistoryUi'],'removeConversation',(_0x4e8f47,_0x374a1f)=>{this['_setItemLoading'](_0x374a1f['id'],'remove'),this['_handleRemove'](_0x374a1f['id']);}),this['listenTo'](this['_aiChatHistoryUi'],'editConversationTitle',(_0x4499d2,_0x27ab02)=>{this['_setItemLoading'](_0x27ab02['id'],'rename'),this['_handleEditTitle'](_0x27ab02['id'],_0x27ab02['title']);}),this['listenTo'](this['history'],'itemUpdated',(_0x4cbcf9,_0x30c06f)=>{void 0x0!==_0x30c06f['updates']['title']&&this['_aiChatHistoryUi']['updateItemTitle'](_0x30c06f['itemId'],_0x30c06f['updates']['title']),void 0x0!==_0x30c06f['updates']['pinned']&&this['_updateHistoryItemsUI'](),this['_clearItemLoading'](_0x30c06f['itemId']);}),this['listenTo'](this['history'],'itemRemoved',(_0x5a3a91,_0x24f1b5)=>{this['_aiChatController']['_handleRemovedConversation'](_0x24f1b5['itemId']),this['_aiChatHistoryUi']['removeHistoryItem'](_0x24f1b5['itemId']),this['_clearItemLoading'](_0x24f1b5['itemId']);}),this['listenTo'](this['history'],'itemsLoaded',()=>{this['_updateHistoryItemsUI']();}),this['listenTo'](this['history'],'error',(_0x2f8578,_0x298036)=>{this['_handleHistoryErrorUI'](_0x298036['error'],_0x298036['operation'],_0x298036['itemId']);}),this['listenTo'](this['_aiChatHistoryUi'],'selectConversation',(_0x48d519,_0x1b6b0d)=>{this['_handleSelectConversation'](_0x1b6b0d['id']);}),this['listenTo'](this['_aiChatHistoryUi'],'setConversationPinned',(_0x3b877e,_0x295d2e)=>{const _0x42fbb2=_0x295d2e['pinned']?'pin':'unpin';this['_setItemLoading'](_0x295d2e['id'],_0x42fbb2),this['_handleTogglePin'](_0x295d2e['id'],_0x295d2e['pinned']);}),this['listenTo'](this['_aiChatHistoryUi'],'startConversation',()=>{this['_aiChatController']['startConversation'](),_0x1df16b['view']['activateTab']('chat');}),this['listenTo'](this['_aiChatController'],'change:activeConversation',()=>{this['_updateHistoryItemsUI']();}),_0x1df16b['view']['on']('activateTab:history',()=>{this['_showConversationHistory']();});}catch(_0x443fdd){this['_handleHistoryErrorUI'](_0x443fdd,'init');}}async _handleEditTitle(_0x333fec,_0x294b17){await this['history']['updateItemTitle'](_0x333fec,_0x294b17);}async['_handleTogglePin'](_0x5d0c7f,_0x3070de){await this['history']['updateItemPinned'](_0x5d0c7f,_0x3070de);}async['_handleRemove'](_0x2e2393){await this['history']['removeItem'](_0x2e2393);}async _handleSelectConversation(_0x5e57cf){await this['_aiChatController']['loadConversation'](_0x5e57cf);}async _showConversationHistory(){this['_aiChatHistoryUi']['showError'](''),this['_aiChatHistoryUi']['setLoadingSkeleton'](!0x0),await this['history']['init'](),this['_aiChatHistoryUi']['setLoadingSkeleton'](!0x1);}_updateHistoryItemsUI(){const _0x2141b6=this['_aiChatController']['activeConversation']?.['id'],_0x534edf=this['_getCategorizedItems']()['map'](_0x33fc68=>({'title':_0x33fc68['title'],'items':_0x33fc68['items']['map'](_0x255738=>({'id':_0x255738['id'],'title':_0x255738['title']||ca(this['context']['locale'],'AI_CHAT_UNTITLED_CONVERSATION'),'createdAt':new Date(_0x255738['createdAt'])['toLocaleDateString'](),'active':_0x255738['id']===_0x2141b6,'pinned':_0x255738['pinned']}))}));this['_aiChatHistoryUi']['updateItems'](_0x534edf);}_setItemLoading(_0x25a503,_0x4a256b){this['_aiChatHistoryUi']['updateItemLoadingState'](_0x25a503,_0x4a256b,!0x0);}_clearItemLoading(_0x2f7e28){this['_aiChatHistoryUi']['updateItemLoadingState'](_0x2f7e28,null,!0x1);}_handleHistoryErrorUI(_0x56ebb4,_0x200bd1,_0x4d59d2){const _0x28bf11=this['_generateErrorMessage'](_0x200bd1,_0x4d59d2);this['_aiChatHistoryUi']['showError'](_0x28bf11),this['_reporter']['reportError'](_0x56ebb4,{'context':{'operation':_0x200bd1}}),_0x4d59d2&&this['_clearItemLoading'](_0x4d59d2),this['_aiChatHistoryUi']['setLoadingSkeleton'](!0x1);}_generateErrorMessage(_0xd7bf66,_0x4fbe05){const _0x553fa8=_0x4fbe05?this['history']['getItem'](_0x4fbe05):null,_0x50be8f=_0x553fa8?.['title']||ca(this['context']['locale'],'AI_CHAT_UNTITLED_CONVERSATION');switch(_0xd7bf66){case'updateItemTitle':return ca(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_UPDATE_TITLE',_0x50be8f);case'updateItemPinned':{const _0x22e510=ca(this['context']['locale'],_0x553fa8?.['pinned']?'AI_CHAT_HISTORY_UNPIN_ACTION':'AI_CHAT_HISTORY_PIN_ACTION');return ca(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_UPDATE_PINNED',[_0x22e510,_0x50be8f]);}case'removeItem':return ca(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_REMOVE_ITEM',_0x50be8f);case'init':case'loadItems':return ca(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_LOAD_ITEMS');default:return ca(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_GENERIC');}}_getCategorizedItems(){const _0xd3535c=new Date(),_0x2862ce=new Date(_0xd3535c['getFullYear'](),_0xd3535c['getMonth'](),_0xd3535c['getDate']()),_0x577290=new Date(_0x2862ce);_0x577290['setDate'](_0x577290['getDate']()-0x1);const _0x239217=new Date(_0x2862ce);_0x239217['setDate'](_0x239217['getDate']()-0xe);const _0x2ca314=this['history']['getItems']({'pinned':!0x0}),_0x47843a=this['history']['getItems']({'from':_0x2862ce,'to':_0x2862ce}),_0x7fae61=this['history']['getItems']({'from':_0x577290,'to':_0x577290}),_0x2357da=this['history']['getItems']({'from':_0x239217,'to':_0x577290}),_0x7b66b6=this['history']['getItems']({'to':_0x239217}),_0xa501b9=[];return _0x2ca314['length']>0x0&&_0xa501b9['push']({'title':ca(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_PINNED'),'items':_0x2ca314}),_0x47843a['length']>0x0&&_0xa501b9['push']({'title':ca(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_TODAY'),'items':_0x47843a}),_0x7fae61['length']>0x0&&_0xa501b9['push']({'title':ca(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_YESTERDAY'),'items':_0x7fae61}),_0x2357da['length']>0x0&&_0xa501b9['push']({'title':ca(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS'),'items':_0x2357da}),_0x7b66b6['length']>0x0&&_0xa501b9['push']({'title':ca(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_LATER'),'items':_0x7b66b6}),_0xa501b9;}},Sb=class extends _0x4dd342{static get requires(){return[Ab,yb];}static get['pluginName'](){return'AIChatHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}},Ib=class extends _0x4dd342{static get requires(){return[Hg,_l,fb,Sb,gg];}static get['pluginName'](){return'AIChat';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5937de){super(_0x5937de),this['context']['config']['define']('ai.chat.context',{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'contextLibrary':{'enabled':!0x1},'sources':[],'alwaysAddSelection':!0x1,'paste':{'textThreshold':0x5dc}}),this['context']['config']['define']('ai.chat.initialConversation','new');}},kb=class extends _0x39ae99{['id'];constructor(_0x1bab1b,_0xf626d8){super(_0x1bab1b);const {id:_0x2499a8,type:_0x244e53,icon:_0x462a75}=_0xf626d8;this['id']=_0x2499a8,this['set']({'label':_0xf626d8['label'],'withText':!0x0,'class':'ck-ai-chat-shortcut'}),this['extendTemplate']({'attributes':{'data-cke-ai-shortcut-id':_0xf626d8['id']}}),_0x462a75?this['icon']=_0x462a75:'chat'===_0x244e53?this['icon']=_0x264984:'review'===_0x244e53?this['icon']=_0x5318d1:'translate'===_0x244e53&&(this['icon']=_0x76454d);}},xb=class extends _0x2f6e1a{listView;constructor(_0x4fcb31,_0x213efc){super(_0x4fcb31),this['set']('isEnabled',!0x0);const _0x1adb27=_0x213efc['map'](_0x762dde=>{const _0x216c72=new _0x585012(this['locale']),_0x17aaa5=new kb(this['locale'],_0x762dde);return _0x17aaa5['bind']('isEnabled')['to'](this),_0x216c72['children']['add'](_0x17aaa5),_0x17aaa5['delegate']('execute')['to'](this),_0x216c72;});this['listView']=new _0x19f1e8(this['locale']),this['listView']['items']['addMany'](_0x1adb27),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat-shortcuts']},'children':[this['listView']]});}};const Cb='chat-shortcuts';var Rb=class extends _0x4dd342{_shortcuts;_shortcutsView;_aiChatUI;_listenedConversation;static get requires(){return[fb,fa];}static get['pluginName'](){return'AIChatShortcuts';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){this['_aiChatUI']=this['context']['plugins']['get'](fb),this['_shortcuts']=this['context']['config']['get']('ai.chat.shortcuts')??[];const _0x5cbf74=this['context']['plugins']['get']('AIChatController');this['_shortcuts']['length']&&(this['_validateShortcuts'](),this['_aiChatUI']['on']('conversationCreated',()=>{const _0x40f0c7=_0x5cbf74['activeConversation'];_0x40f0c7['isFromHistory']||this['_injectShortcuts'](_0x40f0c7);}),this['listenTo'](_0x5cbf74,'interactionStarted',()=>{this['_removeShortcuts']();}));}_validateShortcuts(){const _0x349f92=['chat','review','translate'];this['_shortcuts']['forEach'](_0x57585e=>{let _0x3d76fe=!0x0;if(_0x57585e['id']&&_0x57585e['label']&&_0x349f92['includes'](_0x57585e['type'])?'chat'===_0x57585e['type']&&(_0x3d76fe='string'==typeof _0x57585e['prompt']):_0x3d76fe=!0x1,!_0x3d76fe)throw new _0x4242d4('ai-chat-shortcuts-invalid-config',this['context'],{'shortcut':_0x57585e});});}_injectShortcuts(_0x247334){this['_removeShortcuts'](),this['_shortcutsView']=new xb(this['context']['locale'],this['_shortcuts']),this['_shortcutsView']['render'](),this['_aiChatUI']['addFeedItemCustomElement'](this['_shortcutsView']['element'],Cb),this['_shortcutsView']['on']('execute',_0x421411=>{const _0x4eca50=_0x421411['source']['id'];this['_executeShortcut'](_0x4eca50);}),this['_listenedConversation']=_0x247334,this['listenTo'](_0x247334,'uploadProgressChanged',(_0x53fa59,_0x3d63cd)=>{this['_shortcutsView']['isEnabled']=!_0x3d63cd['isUploadInProgress'];});}_removeShortcuts(){const _0x3c88b3=this['context']['plugins']['get'](fb);_0x3c88b3['hasFeedItem'](Cb)&&_0x3c88b3['removeFeedItem'](Cb),this['_listenedConversation']&&(this['stopListening'](this['_listenedConversation'],'uploadProgressChanged'),this['_listenedConversation']=void 0x0),this['_shortcutsView']?.['destroy']();}_executeShortcut(_0x3adbbd){const _0x3b3716=this['_shortcuts']['find'](_0x198ad3=>_0x198ad3['id']===_0x3adbbd),_0x390ed0=_0x3b3716['type'];'chat'===_0x390ed0?this['_runChatShortcut'](_0x3b3716):'review'===_0x390ed0?_0x3b3716['commandId']?this['_runReviewShortcut'](_0x3b3716):this['_switchTab']('reviewMode'):'translate'===_0x390ed0&&(_0x3b3716['language']?this['_runTranslateShortcut'](_0x3b3716):this['_switchTab']('translate'));}_switchTab(_0x2c20b3){if(!this['context']['plugins']['has']('AITabs'))throw new _0x4242d4('ai-chat-shortcuts-ai-tabs-not-found',this['context'],{'tabName':_0x2c20b3});this['context']['plugins']['get']('AITabs')['view']['activateTab'](_0x2c20b3);}async _runChatShortcut({id:_0x3a04af,prompt:_0x54fa53,draftMode:_0x26f2f1,useWebSearch:_0x10a404=!0x1,useReasoning:_0x22f427=!0x1,model:_0x3a8fbd}){const _0x399bd2=this['context']['plugins']['get']('AIChatController'),_0x1f3692=_0x399bd2['activeConversation'],_0x1fe039=this['context']['plugins']['get'](fa),_0x367274=await _0x1fe039['models']['resolveModel'](_0x3a8fbd);_0x367274&&await _0x1f3692['setModel'](_0x367274),_0x1f3692['setWebSearch'](_0x10a404),_0x1f3692['setReasoning'](_0x22f427);const _0x5cc886=_0x1fe039['contextLibrary']['resolveContext']({'feature':'chat','ids':[_0x3a04af],'idScopedOnly':!0x0,'context':new Ng()});_0x1f3692['addDefaultContext'](_0x5cc886['refs']),_0x399bd2['addCurrentDocumentToChatContext'](),_0x26f2f1?(this['_aiChatUI']['setPromptInputValue'](_0x54fa53),this['_aiChatUI']['focusPromptInput'](!0x0)):_0x399bd2['sendMessage']({'message':_0x54fa53});}_runReviewShortcut({commandId:_0xf796dd,model:_0x55b0b9,prompt:_0x102b3a,params:_0x42f2a5}){if(!this['context']['plugins']['has']('AIReviewModeUI'))throw new _0x4242d4('ai-chat-shortcuts-review-mode-not-found',this['context']);this['_switchTab']('reviewMode');const _0x48ae63={'id':_0xf796dd,'isCustom':'custom'===_0xf796dd};_0x55b0b9&&_0x102b3a&&(_0x48ae63['args']={'model':_0x55b0b9,'prompt':_0x102b3a}),_0x42f2a5&&(_0x48ae63['params']=_0x42f2a5),this['context']['plugins']['get']('AIReviewModeUI')['fire']('runReviewCheck',_0x48ae63);}_runTranslateShortcut({language:_0x3b733b}){if(!this['context']['plugins']['has']('AITranslateUI'))throw new _0x4242d4('ai-chat-shortcuts-translate-not-found',this['context']);this['_switchTab']('translate'),this['context']['plugins']['get']('AITranslateUI')['fire']('runReviewCheck',{'id':_0x3b733b,'args':{'language':_0x3b733b}});}},Pb=class extends _0x44d8e7{constructor(_0x4b6da1){super(_0x4b6da1);const _0x3819b2=_0x4b6da1['plugins']['get']('AITabs')['view'];this['bind']('value')['to'](_0x3819b2,'isVisible'),this['isEnabled']=!0x0;}execute(){const _0x1425b2=this['editor']['plugins']['get']('AITabs')['view'];_0x1425b2['isVisible']=!_0x1425b2['isVisible'];}},Nb=class extends _0x11fe30{static get requires(){return[ea];}static get['pluginName'](){return'AIToggleButtonUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x3d684a=this['editor'];_0x3d684a['commands']['add']('toggleAi',new Pb(_0x3d684a)),_0x3d684a['ui']['componentFactory']['add']('toggleAi',()=>{const _0x3f7a8a=this['_createAIUIButton'](_0x39ae99);return _0x3f7a8a['set']({'tooltip':!0x0,'class':'ck-ai-toggle-button'}),_0x3f7a8a;}),_0x3d684a['ui']['componentFactory']['add']('menuBar:toggleAi',()=>{const _0x56e4ec=this['_createAIUIButton'](_0x589436);return _0x56e4ec['set']({'role':'menuitemcheckbox'}),_0x56e4ec;});}_createAIUIButton(_0x4e4440){const _0x1924df=this['editor'],_0xc04954=_0x1924df['commands']['get']('toggleAi'),_0x11894c=new _0x4e4440(_0x1924df['locale']);return _0x11894c['set']({'label':ca(_0x1924df['locale'],'AI_TOGGLE_BUTTON_LABEL'),'icon':_0x427617,'isToggleable':!0x0}),_0x11894c['bind']('isEnabled')['to'](_0xc04954),_0x11894c['bind']('isOn')['to'](_0xc04954,'value',_0x5ea4ea=>!!_0x5ea4ea),this['listenTo'](_0x11894c,'execute',()=>{_0xc04954['execute']();}),_0x11894c;}};const Mb=['applySuggestion','insertSuggestion','showNext','showPrevious'];var Lb=class extends _0x2f6e1a{['_errorView'];constructor(_0xefe537){super(_0xefe537),this['set']('_errorMessage',''),this['set']('_isErrorVisible',!0x1);}['showBlockingError'](_0x498bf6){this['showError'](_0x498bf6);}['showError'](_0x2d7d8a){this['_errorView']||(this['_errorView']=this['_createErrorView']()),this['_errorMessage']=_0x2d7d8a,this['_isErrorVisible']=!0x0;}['hideError'](){this['_isErrorVisible']=!0x1;}_createErrorView(){const _0x4f8595=new _0x2f6e1a(this['locale']),_0x463db5=new _0x2f6e1a(this['locale']);return _0x463db5['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-suggestion__error-text']},'children':[{'text':this['bindTemplate']['to']('_errorMessage')}]}),_0x4f8595['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__error','ck-ai-balloon-error',this['bindTemplate']['if']('_isErrorVisible','ck-hidden',_0x44db68=>!_0x44db68)]},'children':[_0x463db5]}),_0x4f8595;}};const $b=0xa;var Db=class extends _0x4dd342{static get requires(){return[_l];}static get['pluginName'](){return'AIBalloon';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['isOpen']=!0x1;_currentConfig;_editor;_isUpdatingMarkers=!0x1;['open'](_0x5dc515){const {id:_0x35765b}=this['_currentConfig']??{};this['_currentConfig']=_0x5dc515,this['_editor']=_0x5dc515['targetEditor'];const {id:_0x5622ee}=this['_currentConfig'];this['isOpen']&&_0x35765b===_0x5622ee?this['_updateDialog']():this['_showDialog']();}['close'](){const _0x1a06e1=this['_editor'];if(!_0x1a06e1)return;const _0x14976c=_0x1a06e1['plugins']['get']('Dialog');_0x14976c['isOpen']&&this['_currentConfig']&&_0x14976c['id']===this['_currentConfig']['id']&&_0x14976c['hide']();}_updateDialog(){const _0x54b5db=this['_editor']['plugins']['get']('Dialog'),{icon:_0x2340ce,title:_0x3ea0c}=this['_currentConfig'];_0x54b5db['view']?.['headerView']&&(_0x54b5db['view']['headerView']['label']=_0x3ea0c,_0x54b5db['view']['headerView']['iconView']&&_0x2340ce&&(_0x54b5db['view']['headerView']['iconView']['content']=_0x2340ce)),this['_isUpdatingMarkers']=!0x0,this['_showFakeVisualSelection'](),this['_isUpdatingMarkers']=!0x1,_0x54b5db['view']?.['updatePosition']();}_showFakeVisualSelection(){this['context']['plugins']['get'](_l)['showFakeVisualSelection']({'editor':this['_editor'],'ranges':this['_currentConfig']['ranges'],'id':'balloon','priority':0x64}),window['getSelection']()?.['removeAllRanges']();}_hideFakeVisualSelection(){this['context']['plugins']['get'](_l)['hideFakeVisualSelection']('balloon');}['_showDialog'](){const _0x3ee0c9=this['_editor']['plugins']['get']('Dialog'),{id:_0x3dd373,title:_0x302593,icon:_0x52b824,class:_0x11e3fd,mainView:_0x142613}=this['_currentConfig'];_0x142613['delegate'](...Mb)['to'](this),_0x3ee0c9['show']({'title':_0x302593,'icon':_0x52b824,'hasCloseButton':!0x0,'id':_0x3dd373,'position':this['_calculateDialogPosition']['bind'](this),'getRootName':this['_getCurrentDomRootName']['bind'](this),'className':'ck-ai-balloon\x20'+(_0x11e3fd||''),'content':_0x142613,'onShow':_0x1d9408=>{this['_showFakeVisualSelection'](),this['_setupFakeVisualSelectionMarkerRemovalListener'](),_0x1d9408['view']?.['updatePosition']();const _0xb6ba61=this['_getSelectionElements']();_0xb6ba61&&_0xb6ba61[0x0]&&_0xc72d5d({'target':_0xb6ba61[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this['isOpen']=!0x0,_0x1d9408['once']('hide',()=>{this['fire']('beforeDialogClosed',{'id':_0x3dd373});},{'priority':'high'});},'onHide':()=>{this['_hideFakeVisualSelection'](),this['_cleanupFakeVisualSelectionMarkerRemovalListener'](),this['fire']('dialogClosed',{'id':_0x3dd373}),this['isOpen']=!0x1;}});}_calculateDialogPosition(_0x3e8b5c,_0x1def86,_0x3ed957){const _0x2c8b67=_0x1def86||_0x3ed957;if(!_0x2c8b67)return null;const _0x6a3b0e=this['_getSelectionElements']();if(!_0x6a3b0e||0x0===_0x6a3b0e['length'])return{'left':Math['round'](_0x2c8b67['left']+_0x2c8b67['width']/0x2-_0x3e8b5c['width']/0x2),'top':Math['round'](_0x2c8b67['top']+_0x2c8b67['height']/0x2-_0x3e8b5c['height']/0x2)};const _0xb82ef=Math['round'](_0x2c8b67['left']+_0x2c8b67['width']/0x2-_0x3e8b5c['width']/0x2),_0x5a5ac4=_0x6a3b0e['map'](_0x360c25=>new _0x517140(_0x360c25)),_0x4ed07c=_0x3e8b5c['height'];return{'left':_0xb82ef,'top':this['_calculateOptimalTopPosition'](_0x5a5ac4,_0x4ed07c,_0x2c8b67)};}_calculateOptimalTopPosition(_0x46db60,_0x1f2ce7,_0x15b31d){const _0x4eb284=new _0x517140(_0x250afe['window']),_0xad939=_0x46db60['map'](_0xd2bf18=>_0xd2bf18['getVisible']())['filter'](_0x189ba6=>_0x189ba6),_0x360799=_0x517140['getBoundingRect'](_0xad939);if(!_0x360799)return Math['round'](_0x15b31d['top']+_0x15b31d['height']/0x2);const _0x4b3cc8=_0x4eb284['getIntersection'](_0x360799);if(!_0x4b3cc8)return Math['round'](_0x15b31d['top']+_0x15b31d['height']/0x2);const _0x128c95=_0x15b31d['getVisible'](),_0x4179bb=_0x128c95&&_0x360799['height']>_0x128c95['height'],_0x18f3f8=_0x4b3cc8['top'],_0x171bca=_0x4b3cc8['bottom'];if(_0x4179bb){const _0x11c637=_0x4eb284['top']+_0x4eb284['height']/0x2-_0x1f2ce7/0x2,_0x1970fd=_0x18f3f8-$b-_0x4eb284['top'],_0x410572=_0x4eb284['bottom']-_0x171bca-$b;return _0x1970fd>=_0x1f2ce7?Math['max']($b,_0x18f3f8-_0x1f2ce7-$b):_0x410572>=_0x1f2ce7?_0x171bca+$b:Math['max']($b,_0x11c637);}const _0x22b1a1=_0x18f3f8-_0x1f2ce7,_0x59be82=_0x4eb284['bottom']-_0x171bca-$b,_0x23011a=_0x18f3f8-$b-_0x4eb284['top'];let _0x10912d;return _0x10912d=_0x59be82>=_0x1f2ce7?_0x171bca+$b:_0x23011a>=_0x1f2ce7?_0x22b1a1-$b:_0x18f3f8+_0x360799['height']/0x2-_0x1f2ce7/0x2,_0x10912d;}_setupFakeVisualSelectionMarkerRemovalListener(){const _0x377ca8=this['_editor'];this['listenTo'](_0x377ca8['model']['document'],'change',()=>{if(!this['_isUpdatingMarkers']){for(const {name:_0x569d98,data:{newRange:_0xcb1d5c}}of _0x377ca8['model']['document']['differ']['getChangedMarkers']())if(_0x569d98['startsWith']('ai-selection:')&&(_0xcb1d5c&&(_0xcb1d5c['start']['isEqual'](_0xcb1d5c['end'])||'$graveyard'==_0xcb1d5c['root']['rootName'])||null==_0xcb1d5c)){const _0xfe52be=ca(this['context']['locale'],'AI_BALLOON_SELECTION_REMOVED_ERROR');this['_currentConfig']['mainView']['showBlockingError'](_0xfe52be),this['fire']('selectionRemoved');}}});}_cleanupFakeVisualSelectionMarkerRemovalListener(){const _0x3be1ef=this['_editor'];this['_currentConfig']['mainView']['hideError'](),this['stopListening'](_0x3be1ef['model']['document']);}_getSelectionElements(){const _0x1c7029=this['_editor'];return Cm(_0x1c7029['editing'],[..._0x1c7029['model']['markers']['getMarkersGroup']('ai-selection'),..._0x1c7029['model']['markers']['getMarkersGroup']('ai-balloon-selection')]);}_getCurrentDomRootName(){const _0x489dae=this['_currentConfig']?.['ranges']?.[0x0]?.['root'];return _0x489dae&&_0x489dae['rootName']?_0x489dae['rootName']:null;}},Qb=class extends _0x416164{copyButton;likeButton;dislikeButton;showChangesButton;['_config'];constructor(_0x5042bb,_0x3accd4={}){super(_0x5042bb),this['set']('isEnabled',!0x0),this['set']('isShowChangesOn',!0x1),this['_config']={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x3accd4};const _0x5085ec=!(this['_config']['showCopy']||this['_config']['showChanges']||this['_config']['showLike']||this['_config']['showDislike']||this['_config']['customView']?.['length']);this['class']=_0x5085ec?'ck-ai-mini-toolbar\x20ck-hidden':'ck-ai-mini-toolbar',this['_config']['showCopy']&&(this['_setupCopyButton'](),this['items']['add'](this['copyButton'])),this['_config']['showChanges']&&(this['_setupShowChangesButton'](),this['items']['add'](this['showChangesButton'])),this['_setupRatingButtons'](),this['_config']['showLike']&&this['items']['add'](this['likeButton']),this['_config']['showDislike']&&this['items']['add'](this['dislikeButton']),this['_config']['customView']&&this['items']['addMany'](this['_config']['customView']);}toggleShowChangesEnabled(_0x467644){this['showChangesButton']['isEnabled']=_0x467644;}_setupRatingButtons(){this['likeButton']=new _0x39ae99(this['locale']),this['likeButton']['set']({'icon':_0x37a2a7,'label':ca(this['locale'],'AI_MINI_TOOLBAR_LIKE'),'class':Eg,'tooltip':!0x0}),this['likeButton']['bind']('isEnabled')['to'](this),this['likeButton']['on']('execute',()=>{this['fire']('like');}),this['dislikeButton']=new _0x39ae99(this['locale']),this['dislikeButton']['set']({'icon':_0x4ec95c,'label':ca(this['locale'],'AI_MINI_TOOLBAR_DISLIKE'),'class':Eg,'tooltip':!0x0}),this['dislikeButton']['bind']('isEnabled')['to'](this),this['dislikeButton']['on']('execute',()=>{this['fire']('dislike');});}_setupCopyButton(){this['copyButton']=new _0x39ae99(this['locale']),this['copyButton']['set']({'icon':_0x4c78d4,'label':ca(this['locale'],'AI_MINI_TOOLBAR_COPY'),'class':'ck-ai-mini-toolbar-copy-button\x20'+Eg,'tooltip':!0x0}),this['copyButton']['bind']('isEnabled')['to'](this);const _0x211bf4=new _0x5d1800();_0x211bf4['set']({'content':_0x2659e3}),_0x211bf4['extendTemplate']({'attributes':{'class':['ck-ai-mini-toolbar-copy-button__check-mark']}}),this['copyButton']['on']('execute',()=>{this['copyButton']['class']='ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied\x20'+Eg,setTimeout(()=>{this['copyButton']['class']='ck-ai-mini-toolbar-copy-button\x20'+Eg;},0x7d0);}),this['copyButton']['children']['add'](_0x211bf4);}_setupShowChangesButton(){this['showChangesButton']=new _0x39ae99(this['locale']),this['showChangesButton']['set']({'icon':_0x4e4bad,'label':ca(this['locale'],'AI_SUGGESTION_BUTTON_SHOW_CHANGES'),'withText':'full'==this['_config']['showChanges'],'tooltip':'full'!=this['_config']['showChanges'],'class':Eg}),this['showChangesButton']['bind']('isOn')['to'](this,'isShowChangesOn'),this['showChangesButton']['bind']('isEnabled')['to'](this),this['showChangesButton']['bind']('icon')['to'](this,'isShowChangesOn',_0x283b3d=>_0x283b3d?_0x1eed91:_0x4e4bad),this['showChangesButton']['on']('execute',()=>{this['fire']('toggleShowChanges');});}},jb=class extends Lb{['children'];nextButtonView;previousButtonView;['focusCycler'];['_focusables'];['_focusTracker'];_keystrokes;['_config'];_streamableContentView;_toolbarContainerView;_partToolbarView;_stateView;['_miniToolbarView'];constructor(_0x363d53,_0x2cb008){super(_0x363d53);const _0x4cd627=this['bindTemplate'];this['set']('showDiff',!0x1),this['set']('_state','pending'),this['set']('_outdatedReason',void 0x0),this['set']('isTargetReadOnly',!0x1),this['set']('areActionsDisabled',!0x1),this['_focusTracker']=new _0x1c95ab(),this['_keystrokes']=new _0xa8275a(),this['_focusables']=this['createCollection'](),this['focusCycler']=new _0x273f88({'focusables':this['_focusables'],'focusTracker':this['_focusTracker'],'keystrokeHandler':this['_keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['_config']=_0x2cb008,this['nextButtonView']=this['_createNextButtonView'](),this['previousButtonView']=this['_createPreviousButtonView'](),this['_streamableContentView']=new wO(_0x363d53),this['_partToolbarView']=new pO(_0x363d53,_0x2cb008['availableActions']),this['_partToolbarView']['delegate']('applySuggestion','insertSuggestion','rejectSuggestion')['to'](this),this['_partToolbarView']['bind']('isTargetReadOnly')['to'](this),this['_partToolbarView']['bind']('isEnabled')['to'](this,'areActionsDisabled',this,'_isErrorVisible',(_0x449674,_0x44fb7f)=>!_0x449674&&!_0x44fb7f),this['_togglePartToolbarButtonsVisibility'](_0x2cb008),this['_stateView']=new fO(_0x363d53),this['_stateView']['isVisible']=!0x1,this['_miniToolbarView']=new Qb(_0x363d53,{'showChanges':'full'}),this['_miniToolbarView']['bind']('isShowChangesOn')['to'](this,'showDiff'),this['_miniToolbarView']['on']('toggleShowChanges',()=>{this['fire']('toggleSuggestionDisplayMode');}),this['_toolbarContainerView']=new Ub(_0x363d53,[this['_partToolbarView'],this['_stateView'],this['_miniToolbarView']]),this['children']=this['createCollection']([this['_streamableContentView'],this['_toolbarContainerView']]),this['on']('change:_state',(_0x4dbf53,_0x393893,_0x10a8c0,_0x53aa93)=>{let _0x58af05,_0x1436b7;'pending'===_0x53aa93?(_0x58af05=this['_partToolbarView'],_0x1436b7=this['_stateView']):(_0x58af05=this['_stateView'],_0x1436b7=this['_partToolbarView']),this['_stateView']['setState'](_0x10a8c0,this['_outdatedReason']),_0x58af05['isVisible']=!0x1,_0x1436b7['isVisible']=!0x0;}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat-balloon-main',_0x4cd627['to']('_state',_0x2caaf7=>'ck-ai-chat-balloon-main_state_'+_0x2caaf7)]},'children':this['children']}),this['on']('change:isTrackChangesOn',()=>{this['_togglePartToolbarButtonsVisibility'](_0x2cb008);});}['render'](){super['render'](),this['nextButtonView']['render'](),this['previousButtonView']['render'](),this['_focusTracker']['add'](this['element']),this['_focusTracker']['add'](this['nextButtonView']),this['_focusTracker']['add'](this['previousButtonView']),this['_focusTracker']['add'](this['_miniToolbarView']),this['_focusTracker']['add'](this['_partToolbarView']),this['_keystrokes']['listenTo'](this['element']),this['_keystrokes']['listenTo'](this['nextButtonView']['element']),this['_keystrokes']['listenTo'](this['previousButtonView']['element']),this['_focusables']['addMany']([this['nextButtonView'],this['previousButtonView'],this['_partToolbarView'],this['_miniToolbarView']]);}destroy(){super['destroy'](),this['previousButtonView']['destroy'](),this['nextButtonView']['destroy']();}['focus'](){this['focusCycler']['focusFirst']();}focusLast(){this['focusCycler']['focusLast']();}async updateContent(_0x45718b){_0x45718b?.['keepErrors']||this['hideError'](),await this['_streamableContentView']['update'](_0x45718b);}clearContent(){this['_streamableContentView']['clear']();}setState(_0x129ef5,_0x123764){this['_outdatedReason']=_0x123764,this['_state']=_0x129ef5;}['showError'](_0x1672df){super['showError'](_0x1672df),this['children']['has'](this['_errorView'])||this['children']['add'](this['_errorView'],0x0);}toggleRotatorButtonsVisibility(_0x527f14){this['nextButtonView']['isVisible']=this['previousButtonView']['isVisible']=_0x527f14;}_togglePartToolbarButtonsVisibility({showApplyButton:_0x200377,showSuggestButton:_0x1750d3}){_0x200377=_0x200377&&!this['isTrackChangesOn']&&this['_config']['availableActions']['includes']('applySuggestion'),_0x1750d3=_0x1750d3&&this['_config']['availableActions']['includes']('insertSuggestion'),this['_partToolbarView']['setButtonsVisibility']({'showApplyButton':_0x200377,'showSuggestButton':_0x1750d3});}_createNextButtonView(){const _0x3aed2a=new _0x39ae99(this['locale']);return _0x3aed2a['set']({'icon':_0x4cb2ca,'label':ca(this['locale'],'AI_BALLOON_NEXT_LABEL'),'isVisible':!0x0}),_0x3aed2a['on']('execute',()=>{this['fire']('showNext');}),_0x3aed2a;}_createPreviousButtonView(){const _0x500eee=new _0x39ae99(this['locale']);return _0x500eee['set']({'icon':_0x313b4b,'label':ca(this['locale'],'AI_BALLOON_PREVIOUS_LABEL'),'isVisible':!0x0}),_0x500eee['on']('execute',()=>{this['fire']('showPrevious');}),_0x500eee;}},Ub=class extends _0x2f6e1a{constructor(_0x589031,_0x14bea7){super(_0x589031),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-balloon__toolbar-container']},'children':_0x14bea7});}},Vb=class extends _0x11fe30{static get requires(){return[_0x3e3ae5,Db];}static get['pluginName'](){return'AIChatBalloon';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}_chatBalloonView;constructor(_0x4b417a){super(_0x4b417a),this['set']('showDiff',!0x1);}['open'](_0x162c1d){const _0x148c35=this['editor'];this['_chatBalloonView']||(this['_chatBalloonView']=this['_createChatBalloonView']()),_0x148c35['plugins']['get']('AIBalloon')['open']({..._0x162c1d,'id':'aiChatBalloon','class':'ck-ai-chat-balloon','mainView':this['_chatBalloonView']}),this['_toggleRotatorButtonsInDialogHeader'](_0x162c1d['showRotator']),this['_chatBalloonView']['areActionsDisabled']=_0x162c1d['areActionsDisabled'],this['_chatBalloonView']['isTargetReadOnly']=_0x162c1d['isTargetReadOnly'],this['_restoreDefaultViewFocus']();}['close'](){this['editor']['plugins']['get']('AIBalloon')['close']();}updateContent(_0x3000da){return this['_chatBalloonView']||(this['_chatBalloonView']=this['_createChatBalloonView']()),this['_chatBalloonView']['updateContent'](_0x3000da);}clearContent(){this['_chatBalloonView']&&this['_chatBalloonView']['clearContent']();}setState(_0xda9f97,_0x1b6ce5){this['_chatBalloonView']&&this['_chatBalloonView']['setState'](_0xda9f97,_0x1b6ce5);}setTargetReadOnly(_0x1a9669){this['_chatBalloonView']&&(this['_chatBalloonView']['isTargetReadOnly']=_0x1a9669);}_createChatBalloonView(){const _0x2908ba=this['editor'],_0x26c702=_0x2908ba['plugins']['get']('AIBalloon'),_0x32bea1=_0x2908ba['commands']['get']('trackChanges');let _0x1e825e=_0x2908ba['config']['get']('ai.availableReplyActions')||[...SO];_0x2908ba['plugins']['has']('TrackChanges')||(_0x1e825e=_0x1e825e['filter'](_0x543057=>'insertSuggestion'!=_0x543057));const _0x42ae8b=new jb(_0x2908ba['locale'],{'availableActions':_0x1e825e,'showApplyButton':!0x0,'showSuggestButton':!!_0x32bea1});return _0x42ae8b['bind']('showDiff')['to'](this),_0x42ae8b['delegate'](...Fg)['to'](this),_0x42ae8b['delegate']('showPrevious','showNext')['to'](this),_0x26c702['delegate']('dialogClosed')['to'](this),_0x42ae8b['on']('applySuggestion',this['_restoreDefaultViewFocus']['bind'](this)),_0x42ae8b['on']('insertSuggestion',this['_restoreDefaultViewFocus']['bind'](this)),_0x42ae8b['on']('rejectSuggestion',this['_restoreDefaultViewFocus']['bind'](this)),_0x32bea1&&_0x42ae8b['bind']('isTrackChangesOn')['to'](_0x32bea1,'value'),_0x42ae8b['render'](),_0x42ae8b;}_toggleRotatorButtonsInDialogHeader(_0x57649a){const _0x57d1eb=this['editor'],_0x36cc7f=_0x57d1eb['plugins']['get']('Dialog')['view']['headerView']['children'];this['_chatBalloonView']['toggleRotatorButtonsVisibility'](_0x57649a),_0x36cc7f['has'](this['_chatBalloonView']['previousButtonView'])||(_0x36cc7f['addMany']([this['_chatBalloonView']['previousButtonView'],this['_chatBalloonView']['nextButtonView']],0x0),_0x57d1eb['plugins']['get']('AIBalloon')['once']('beforeDialogClosed',()=>{_0x36cc7f['remove'](this['_chatBalloonView']['previousButtonView']),_0x36cc7f['remove'](this['_chatBalloonView']['nextButtonView']);}));}_restoreDefaultViewFocus(){this['_chatBalloonView']['focus']();}},Bb=class extends _0x11fe30{static get requires(){return[Nb,Vb,hh];}static get['pluginName'](){return'AIEditorIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};function Hb(_0x386678){const {editor:_0x1b4953,action:_0x1e9977,withText:_0x3ebf6b=!0x1,withIcon:_0x5a35c8=!0x0,isInDropdown:_0x28490f=!0x0,shouldPreventFocus:_0x1654ef=!0x1,actionButtons:_0x290e13}=_0x386678;return()=>{const _0x47c504=_0x1b4953['locale'],_0x485e3f=new _0x39ae99(_0x47c504),_0x115b05=_0x485e3f['bindTemplate'];_0x28490f&&_0x485e3f['extendTemplate']({'on':{'mouseenter':_0x115b05['to'](()=>{_0x1654ef&&_0x1654ef()||_0x485e3f['focus']();})}}),_0x290e13['push']({'buttonView':_0x485e3f,'action':_0x1e9977});const _0x3698d5=_0x1e9977['icon']??_0x1e9977['parent']?.['icon'];return _0x485e3f['set']({'label':_0x1e9977['label'],'withText':_0x3ebf6b,'role':'menuitem','icon':_0x5a35c8?_0x3698d5??_0x386c36:void 0x0,'tooltip':!_0x3ebf6b,'class':'ck-ai-quick-actions-button','isEnabled':_0x1e9977['isEnabled']}),_0x485e3f['on']('execute',()=>{_0x1b4953['editing']['view']['focus'](),_0x1b4953['commands']['execute']('aiQuickAction',_0x1e9977);}),_0x485e3f;};}var Fb=class extends _0x5ca120{['arrowView'];constructor(_0x517a92,_0x8561bb){super(_0x517a92,_0x8561bb);const _0x2ddf69=this['bindTemplate'];this['set']({'withText':!0x0,'role':'menuitem'}),this['arrowView']=this['_createArrowView'](),this['extendTemplate']({'attributes':{'class':['ck-dropdown-menu-list__nested-menu__button'],'aria-haspopup':!0x0,'aria-expanded':this['bindTemplate']['to']('isOn',_0x14d910=>String(_0x14d910)),'data-cke-tooltip-disabled':_0x2ddf69['to']('isOn')},'on':{'mouseenter':_0x2ddf69['to']('mouseenter')}});}['render'](){super['render'](),this['children']['add'](this['arrowView']);}_createArrowView(){const _0xe37662=new _0x5d1800();return _0xe37662['content']=_0x188278,_0xe37662['extendTemplate']({'attributes':{'class':'ck-dropdown-menu-list__nested-menu__button__arrow'}}),_0xe37662;}},Zb=class extends _0x19f1e8{_allListItems;_allSearchableItems;constructor(_0x55e741,_0x183ecf,_0x5c5546){super(_0x55e741),this['_allListItems']=_0x183ecf,this['_allSearchableItems']=_0x5c5546;}filter(_0xa51e80){if(!_0xa51e80)return this['items']['clear'](),this['items']['addMany'](this['_allListItems']),this['_clearHighlight'](),{'resultsCount':this['_allListItems']['length'],'totalItemsCount':this['_allListItems']['length']};const _0xed487d=_0xa51e80['source']['toLowerCase']()['trim'](),_0x14a8e0=this['_allSearchableItems']['filter'](_0x308247=>(_0x308247['groupLabel']?_0x308247['label']+'\x20('+_0x308247['groupLabel']+')':_0x308247['label'])['toLowerCase']()['includes'](_0xed487d));return this['items']['clear'](),this['items']['addMany'](_0x14a8e0['sort']((_0x4f3a7f,_0x2eab50)=>{const _0x57bfed=_0x4f3a7f['groupLabel'],_0x27fcc8=_0x2eab50['groupLabel'];return _0x57bfed||_0x27fcc8?_0x57bfed?0x1:-0x1:0x0;})['map'](_0x1ee880=>_0x1ee880['item'])),this['_highlightQuery'](_0xed487d,_0x14a8e0),{'resultsCount':_0x14a8e0['length'],'totalItemsCount':this['_allSearchableItems']['length']};}_highlightQuery(_0x44d948,_0x2fb3bc){if(!_0x44d948)return;const _0xaba23a=new RegExp(Po(_0x44d948),'gi');_0x2fb3bc['forEach'](_0xc8a2ab=>{_0xc8a2ab['highlightViews']&&_0xc8a2ab['highlightViews']['forEach'](_0x194fda=>{'function'==typeof _0x194fda['highlightText']&&_0x194fda['highlightText'](_0xaba23a);});});}_clearHighlight(){this['_allSearchableItems']['forEach'](_0x830366=>{_0x830366['highlightViews']&&_0x830366['highlightViews']['forEach'](_0x369a54=>{'function'==typeof _0x369a54['highlightText']&&_0x369a54['highlightText'](null);});});}};const Gb='menu',Xb='menuitem';var qb=class extends _0x2f6e1a{_bodyCollection;optionsListView;_searchTextView=null;_allSearchableItems=[];['children'];['focusTracker'];keystrokes;['_focusables'];['focusCycler'];_openNestedPanels=new Set();['_hasSearch'];_actionButtons;constructor(_0x2ebff2,_0x5f3544,_0x393cfd,_0x43f3cf,_0x1c221f=!0x1,_0x44b3ee=[]){const _0x54c69f=_0x2ebff2['locale'];super(_0x54c69f),this['_bodyCollection']=_0x43f3cf,this['_hasSearch']=_0x1c221f,this['_actionButtons']=_0x44b3ee;const _0x41670e=this['_createListItems'](_0x2ebff2,_0x5f3544,_0x393cfd);this['optionsListView']=new Zb(_0x54c69f,_0x41670e,this['_allSearchableItems']),this['optionsListView']['role']=Gb,this['optionsListView']['items']['addMany'](_0x41670e),this['focusTracker']=new _0x1c95ab(),this['keystrokes']=new _0xa8275a(),_0x1c221f&&(this['_searchTextView']=this['_createSearchTextView']()),this['_focusables']=_0x41670e,this['focusCycler']=new _0x273f88({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes']}),_0x1c221f&&this['_searchTextView']&&this['focusCycler']['chain'](this['_searchTextView']['focusCycler']);const _0x3a7e8a=_0x1c221f&&this['_searchTextView']?[this['_searchTextView']]:[this['optionsListView']];this['children']=new _0x18940b(_0x3a7e8a),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-ai-quick-actions','ck-rounded-corners'],'dir':_0x54c69f['uiLanguageDirection']},'children':this['children']});}_createSearchTextView(){return new _0x30d1f3(this['locale'],{'filteredView':this['optionsListView'],'queryView':{'label':ca(this['locale'],'AI_QUICK_ACTIONS_SEARCH')},'class':'ck-ai-quick-actions-search','infoView':{'text':{'notFound':{'primary':ca(this['locale'],'AI_QUICK_ACTIONS_SEARCH_NOT_FOUND')}}}});}['_isSearchFocused'](){if(!this['_hasSearch']||!this['_searchTextView']||!this['_searchTextView']['queryView']['fieldView']['element'])return!0x1;const _0x20d588=this['_searchTextView']['queryView']['fieldView']['element']['ownerDocument']?.['activeElement'];return this['_searchTextView']['queryView']['fieldView']['element']['contains'](_0x20d588);}_createListItems(_0x792081,_0x4feb5c,_0x534364){const _0x114a40=new _0x18940b();return _0x4feb5c['forEach'](_0x23fe94=>{if('actions'in _0x23fe94){const {listItem:_0x518b97}=this['_createActionGroupButton'](_0x792081,_0x23fe94,_0x534364);_0x114a40['add'](_0x518b97),_0x23fe94['actions']['forEach'](_0x303488=>{const {listItem:_0x2bcc96,highlightViews:_0x8c2ffd}=this['_createSearchResultActionButton'](_0x792081,_0x303488,_0x23fe94['label'],_0x23fe94['icon']);this['_allSearchableItems']['push']({'item':_0x2bcc96,'label':_0x303488['label'],'groupLabel':_0x23fe94['label'],'highlightViews':_0x8c2ffd});});}else{const {listItem:_0x7c87fa}=this['_createActionButton'](_0x792081,_0x23fe94);_0x114a40['add'](_0x7c87fa);const _0x41a5b6=_0x7c87fa['children']['first'];if(_0x41a5b6){const {listItem:_0x14fc50,highlightViews:_0x339fb5}=this['_createSearchResultActionButton'](_0x792081,_0x23fe94);this['_allSearchableItems']['push']({'item':_0x14fc50,'label':_0x41a5b6['label']||'','highlightViews':_0x339fb5});}}}),_0x114a40;}_createActionButton(_0x329c68,_0x517c9f,_0x1c40aa,_0x33bce1){const _0x93a99e=new _0x585012(this['locale']);if(_0x1c40aa&&_0x33bce1){const _0x23120c=new _0x39ae99(this['locale']),_0x1c9e88=_0x23120c['bindTemplate'],_0x11d629=new _0x5ad9a9();_0x11d629['text']=_0x517c9f['label'];const _0x5917c7=new _0x5ad9a9();_0x5917c7['text']=_0x1c40aa;const _0x14d76b=new _0x5d1800();_0x14d76b['content']=_0x33bce1,_0x14d76b['extendTemplate']({'attributes':{'class':'ck-ai-quick-actions-button__group-icon'}});const _0x428a2d=new _0x2f6e1a(this['locale']);_0x428a2d['setTemplate']({'tag':'span','attributes':{'class':'ck-ai-quick-actions-button_with-group__open-paren'},'children':[{'text':'\x20('}]});const _0x2e389e=new _0x2f6e1a(this['locale']);return _0x2e389e['setTemplate']({'tag':'span','attributes':{'class':'ck-ai-quick-actions-button_with-group__close-paren'},'children':[{'text':')'}]}),_0x23120c['set']({'label':_0x517c9f['label']+'\x20('+_0x1c40aa+')','withText':!0x0,'role':'menuitem','class':'ck-ai-quick-actions-button\x20ck-ai-quick-actions-button_with-group','tooltip':!0x1,'isEnabled':_0x517c9f['isEnabled']}),_0x23120c['setTemplate']({'tag':'button','attributes':{'class':['ck','ck-button','ck-button_with-text','ck-ai-quick-actions-button','ck-ai-quick-actions-button_with-group',_0x1c9e88['if']('isEnabled','ck-disabled',_0x54c2e2=>!_0x54c2e2)],'type':'button','role':'menuitem','tabindex':'-1'},'children':[_0x11d629,_0x428a2d,_0x14d76b,_0x5917c7,_0x2e389e],'on':{'mouseenter':_0x1c9e88['to'](()=>{this['_isSearchFocused']()||_0x23120c['focus']();}),'click':_0x1c9e88['to'](()=>{_0x23120c['fire']('execute');})}}),_0x23120c['on']('execute',()=>{_0x23120c['isEnabled']&&(_0x329c68['editing']['view']['focus'](),_0x329c68['commands']['execute']('aiQuickAction',_0x517c9f));}),_0x93a99e['children']['add'](_0x23120c),this['_actionButtons']['push']({'buttonView':_0x23120c,'action':_0x517c9f}),{'listItem':_0x93a99e,'highlightViews':[_0x11d629,_0x5917c7]};}{const _0x5c95ef=new _0x1b9124(),_0x3ac30f=new _0x39ae99(this['locale'],_0x5c95ef),_0xec6dcb=_0x3ac30f['bindTemplate'],_0x4e6016=_0x517c9f['icon']??_0x517c9f['parent']?.['icon'],_0x50bd59=void 0x0!==_0x517c9f['icon'];return _0x3ac30f['set']({'label':_0x517c9f['label'],'withText':!0x0,'role':'menuitem','icon':_0x50bd59?_0x4e6016??_0x386c36:void 0x0,'tooltip':!0x1,'class':'ck-ai-quick-actions-button','isEnabled':_0x517c9f['isEnabled']}),_0x3ac30f['extendTemplate']({'on':{'mouseenter':_0xec6dcb['to'](()=>{this['_isSearchFocused']()||_0x3ac30f['focus']();})}}),_0x3ac30f['on']('execute',()=>{_0x329c68['editing']['view']['focus'](),_0x329c68['commands']['execute']('aiQuickAction',_0x517c9f);}),_0x93a99e['children']['add'](_0x3ac30f),this['_actionButtons']['push']({'buttonView':_0x3ac30f,'action':_0x517c9f}),{'listItem':_0x93a99e,'highlightViews':[_0x5c95ef]};}}_createSearchResultActionButton(_0x59fc50,_0x489478,_0x406d3a,_0x36f4d3){return _0x406d3a&&_0x36f4d3?this['_createSearchResultGroupedActionButton'](_0x59fc50,_0x489478,_0x406d3a,_0x36f4d3):this['_createSearchResultIndividualActionButton'](_0x59fc50,_0x489478);}_createSearchResultGroupedActionButton(_0x620f8b,_0x255351,_0x2e6d9b,_0x45a054){const _0x5ec068=new _0x585012(this['locale']),_0x1eb51b=new _0x39ae99(this['locale']),_0x50a2d3=_0x1eb51b['bindTemplate'],{view:_0x665c8,highlightView:_0x138a3c}=this['_createSearchResultGroupRow'](_0x2e6d9b,_0x45a054),{view:_0x52c87e,highlightView:_0x2a778a}=this['_createSearchResultActionRow'](_0x255351['label']),_0x42cd4d=this['_createSearchResultContentView'](_0x665c8,_0x52c87e);return _0x1eb51b['set']({'label':_0x255351['label'],'withText':!0x0,'role':'menuitem','class':'ck-ai-quick-actions-button\x20ck-ai-quick-actions-search-result-button\x20ck-ai-quick-actions-search-result-button_with-group','tooltip':!0x1,'isEnabled':_0x255351['isEnabled']}),_0x1eb51b['setTemplate']({'tag':'button','attributes':{'class':['ck','ck-button','ck-button_with-text','ck-ai-quick-actions-button','ck-ai-quick-actions-search-result-button','ck-ai-quick-actions-search-result-button_with-group',_0x50a2d3['if']('isEnabled','ck-disabled',_0x3489b2=>!_0x3489b2)],'type':'button','role':'menuitem','tabindex':'-1'},'children':[_0x42cd4d],'on':{'mouseenter':_0x50a2d3['to'](()=>{this['_isSearchFocused']()||_0x1eb51b['focus']();}),'click':_0x50a2d3['to'](()=>{this['_handleSearchResultButtonClick'](_0x1eb51b);})}}),this['_setupActionButtonExecution'](_0x1eb51b,_0x620f8b,_0x255351),_0x5ec068['children']['add'](_0x1eb51b),this['_actionButtons']['push']({'buttonView':_0x1eb51b,'action':_0x255351}),{'listItem':_0x5ec068,'highlightViews':[_0x138a3c,_0x2a778a]};}_createSearchResultIndividualActionButton(_0x1f59fd,_0xb83ea6){const _0x2793e3=new _0x585012(this['locale']),_0x290932=new _0x1b9124(),_0x3b32cc=new _0x39ae99(this['locale'],_0x290932),_0x2ae6ce=_0x3b32cc['bindTemplate'];return _0x3b32cc['set']({'label':_0xb83ea6['label'],'withText':!0x0,'role':'menuitem','icon':void 0x0,'tooltip':!0x1,'class':'ck-ai-quick-actions-button\x20ck-ai-quick-actions-search-result-button','isEnabled':_0xb83ea6['isEnabled']}),_0x3b32cc['extendTemplate']({'on':{'mouseenter':_0x2ae6ce['to'](()=>{this['_isSearchFocused']()||_0x3b32cc['focus']();})}}),this['_setupActionButtonExecution'](_0x3b32cc,_0x1f59fd,_0xb83ea6),_0x2793e3['children']['add'](_0x3b32cc),this['_actionButtons']['push']({'buttonView':_0x3b32cc,'action':_0xb83ea6}),{'listItem':_0x2793e3,'highlightViews':[_0x290932]};}_createSearchResultGroupRow(_0x40988f,_0x199e70){const _0x1e54ce=new _0x2f6e1a(this['locale']),_0x184db9=new _0x5d1800();_0x184db9['content']=_0x199e70,_0x184db9['extendTemplate']({'attributes':{'class':'ck-ai-quick-actions-button__group-icon'}});const _0x4c87fc=new _0x5ad9a9();return _0x4c87fc['text']=_0x40988f,_0x1e54ce['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-quick-actions-search-result__group-row'},'children':[_0x184db9,_0x4c87fc]}),{'view':_0x1e54ce,'highlightView':_0x4c87fc};}_createSearchResultActionRow(_0x4e6e60){const _0x4b5cac=new _0x2f6e1a(this['locale']),_0x3a81e0=new _0x5ad9a9();return _0x3a81e0['text']=_0x4e6e60,_0x4b5cac['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-quick-actions-search-result__action-row'},'children':[_0x3a81e0]}),{'view':_0x4b5cac,'highlightView':_0x3a81e0};}_createSearchResultContentView(_0x1dca80,_0x8566e4){const _0x3f01a1=new _0x2f6e1a(this['locale']);return _0x3f01a1['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-quick-actions-search-result__content'},'children':[_0x1dca80,_0x8566e4]}),_0x3f01a1;}_setupActionButtonExecution(_0x475fb4,_0x5850f1,_0x5ba758){_0x475fb4['on']('execute',()=>{_0x475fb4['isEnabled']&&(_0x5850f1['editing']['view']['focus'](),_0x5850f1['commands']['execute']('aiQuickAction',_0x5ba758));});}_createActionGroupButton(_0x4da482,_0x2a32a7,_0x29447c){const _0x5bc9ac=new _0x585012(this['locale']),_0x11ff74=new _0x1b9124(),_0x2be8b4=new Fb(this['locale'],_0x11ff74),_0x414a49=_0x2be8b4['bindTemplate'],_0x21a82d=this['_getPanelKeystroke'](_0x29447c),_0x171973=this['_createGroupActionsList'](_0x4da482,_0x2a32a7['actions'],_0x29447c);_0x2be8b4['set']({'label':_0x2a32a7['label'],'withText':!0x0,'role':Xb,'icon':_0x2a32a7['icon']??_0x386c36,'isEnabled':_0x2a32a7['actions']['some'](_0x186cfe=>_0x186cfe['isEnabled'])}),_0x2be8b4['extendTemplate']({'on':{'mouseenter':_0x414a49['to'](()=>{this['_isSearchFocused']()||_0x2be8b4['focus']();})}});const _0x2f33f7=new _0x42b496(this['locale']);return _0x2f33f7['extendTemplate']({'attributes':{'class':['ck','ck-reset_all','ck-ai-quick-actions-group-panel','ck-dropdown-menu__nested-menu__panel']},'on':{'keydown':_0x414a49['to'](_0x5ed34e=>{this['_handlePanelKeydown'](_0x5ed34e,_0x21a82d,_0x2be8b4,_0x2f33f7);})}}),_0x2be8b4['bind']('isOn')['to'](_0x2f33f7,'isVisible'),this['_bodyCollection']['add'](_0x2f33f7),_0x2f33f7['content']['add'](_0x171973),this['_setupGroupMenuBehavior'](_0x2be8b4,_0x2f33f7),_0x5bc9ac['children']['add'](_0x2be8b4),this['_actionButtons']['push']({'buttonView':_0x2be8b4,'action':_0x2a32a7}),{'listItem':_0x5bc9ac,'highlightView':_0x11ff74};}_createGroupActionsList(_0x4da4c3,_0x34e80c,_0x3ca9f3){const _0x2e8f53=new _0x19f1e8(this['locale']);return _0x2e8f53['extendTemplate']({'attributes':{'class':['ck','ck-reset_all','ck-ai-quick-actions-group-list','ck-dropdown-menu-list']}}),_0x34e80c['forEach'](_0x1149c7=>{const _0x470bc4=new _0x585012(this['locale']),_0x1a444c=Hb({'editor':_0x4da4c3,'action':_0x1149c7,'withText':!0x0,'withIcon':!0x1,'isInDropdown':!0x0,'shouldPreventFocus':()=>this['_isSearchFocused'](),'actionButtons':this['_actionButtons']})();_0x470bc4['children']['add'](_0x1a444c),_0x3ca9f3['focusTracker']['add'](_0x1a444c),_0x2e8f53['items']['add'](_0x470bc4);}),_0x2e8f53;}_setupGroupMenuBehavior(_0x395def,_0x46dfa3){const _0x4e7736=_0x395def['bindTemplate'],_0x4bc49a=this['_getButtonKeystroke'](_0x395def);_0x395def['extendTemplate']({'attributes':{'class':['ck-ai-quick-actions-group-button']},'on':{'mouseenter':_0x4e7736['to'](()=>{this['_showNestedPanel'](_0x46dfa3,_0x395def);}),'mouseleave':_0x4e7736['to'](_0x29363f=>{const _0x36331c=_0x29363f['relatedTarget'];this['_isMovingToNestedMenu'](_0x36331c,_0x46dfa3)||this['_hideNestedPanel'](_0x46dfa3);}),'keydown':_0x4e7736['to'](_0x5f4f30=>{_0x5f4f30['key']==_0x4bc49a&&(this['_showNestedPanel'](_0x46dfa3,_0x395def),_0x46dfa3['content']['get'](0x0)['focus']());})}}),_0x46dfa3['on']('render',()=>{_0x46dfa3['element']?.['addEventListener']('mouseleave',_0x46dfe7=>{const _0x1ae624=_0x46dfe7['relatedTarget'];_0x395def['element']?.['contains'](_0x1ae624)||this['_isMovingToNestedMenu'](_0x1ae624,_0x46dfa3)||this['_hideNestedPanel'](_0x46dfa3);});});}_showNestedPanel(_0x4feea7,_0x54f184){this['_openNestedPanels']['forEach'](_0x4b3506=>{_0x4b3506!==_0x4feea7&&_0x4b3506['isVisible']&&_0x4b3506['hide']();}),_0x4feea7['show'](),_0x4feea7['pin']({'positions':[_0x3d0bfc['eastSouth']],'target':_0x54f184['element'],'fitInViewport':!0x0}),this['_openNestedPanels']['add'](_0x4feea7);}_hideNestedPanel(_0x427d7f){_0x427d7f['hide'](),this['_openNestedPanels']['delete'](_0x427d7f);}_hideAllNestedPanels(){this['_openNestedPanels']['forEach'](_0x2fad92=>_0x2fad92['hide']()),this['_openNestedPanels']['clear']();}_isMovingToNestedMenu(_0x5ee908,_0x272de1){if(!_0x5ee908)return!0x1;if(_0x272de1['element']?.['contains'](_0x5ee908))return!0x0;const _0x5fe19=_0x5ee908;return _0x5fe19['closest']&&(null!==_0x5fe19['closest']('.ck-ai-quick-actions-group-panel')||null!==_0x5fe19['closest']('.ck-ai-quick-actions-group-list')||null!==_0x5fe19['closest']('.ck-ai-quick-actions-group-button'));}resetSearch(){this['_searchTextView']&&this['_searchTextView']['reset']();}destroy(){this['_hideAllNestedPanels'](),this['_bodyCollection']['detachFromDom'](),super['destroy']();}['focus'](){this['_searchTextView']?this['_searchTextView']['focus']():this['optionsListView']['focus']();}_getPanelKeystroke(_0x20f85a){return'rtl'===_0x20f85a['locale']['uiLanguageDirection']?'ArrowRight':'ArrowLeft';}_getButtonKeystroke(_0x34f649){return'rtl'===_0x34f649['locale']['uiLanguageDirection']?'ArrowLeft':'ArrowRight';}['_handlePanelKeydown'](_0x3fe1fd,_0x16c1c2,_0x56e392,_0x133edf){_0x3fe1fd['key']==_0x16c1c2&&(_0x56e392['focus'](),this['_hideNestedPanel'](_0x133edf));}_handleSearchResultButtonClick(_0x384ab0){_0x384ab0['fire']('execute');}};function Wb(_0x29de76){const {editor:_0x59633a,content:_0x31a2a2,buttonDefinition:_0x24f46f,bodyCollection:_0x41e89e,hasSearch:_0x4dfb8f=!0x1,actionButtons:_0x57b44c}=_0x29de76;return()=>{const _0x43515b=_0x59633a['locale'],_0x4b6e46=_0x59633a['commands']['get']('aiQuickAction'),_0x1432f0=_0x46490d(_0x43515b);_0x1432f0['bind']('isEnabled')['to'](_0x4b6e46),_0x1432f0['buttonView']['set']({'icon':_0x24f46f['icon']??_0x386c36,'label':_0x24f46f['label'],'tooltip':!0x0}),_0x1432f0['set']({'class':'ck-ai-quick-actions-dropdown'});const _0x21941d=new qb(_0x59633a,_0x31a2a2,_0x1432f0,_0x41e89e,_0x4dfb8f,_0x57b44c);return _0x1432f0['panelView']['children']['add'](_0x21941d),_0x4dfb8f&&_0x1432f0['on']('change:isOpen',(_0x527da0,_0x59956f,_0x29c0aa)=>{if(_0x29c0aa){if(_0x59633a['plugins']['has']('AIEditing')){const _0x29581f=_0x59633a['plugins']['get'](_l),_0x383a1d=_0x59633a['model']['document']['selection'],_0x2ce974=Array['from'](_0x383a1d['getRanges']());_0x2ce974['length']>0x0&&_0x29581f['showFakeVisualSelection']({'editor':_0x59633a,'ranges':_0x2ce974,'id':'quick-action','priority':0x14});}}else _0x59633a['plugins']['has']('AIEditing')&&_0x59633a['plugins']['get'](_l)['hideFakeVisualSelection']('quick-action'),_0x21941d['resetSearch']();}),_0x1432f0;};}const zb='<task>Explain\x20the\x20selected\x20part\x20of\x20the\x20document\x20in\x20plain,\x20simple\x20language.</task><rules>1.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is:-\x20If\x20it\x20looks\x20like\x20a\x20definition\x20explain\x20the\x20concept\x20in\x20simple\x20terms.-\x20If\x20it\x20looks\x20like\x20a\x20description\x20clarify\x20what\x20it\x20is\x20describing\x20and\x20why\x20it\x20matters.-\x20If\x20it\x20contains\x20technical\x20terms\x20or\x20jargon\x20break\x20them\x20down\x20into\x20everyday\x20language.-\x20If\x20it\x20looks\x20instructional\x20restate\x20as\x20clear\x20steps\x20someone\x20can\x20follow.-\x20If\x20it\x20provides\x20examples\x20explain\x20what\x20the\x20example\x20shows\x20and\x20why\x20it\x27s\x20relevant.-\x20If\x20it\x20presents\x20an\x20argument\x20or\x20claim\x20restate\x20the\x20claim\x20neutrally\x20and\x20explain\x20its\x20purpose.-\x20If\x20it\x20is\x20narrative/story-like\x20explain\x20what\x20event\x20or\x20situation\x20is\x20being\x20described.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20explain\x20what\x20the\x20data\x20indicates.-\x20If\x20it\x20is\x20a\x20quotation\x20explain\x20the\x20meaning\x20of\x20the\x20quote\x20in\x20context.-\x20If\x20it\x20compares/contrasts\x20things\x20explain\x20the\x20key\x20differences\x20or\x20similarities\x20simply.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20give\x20a\x20clear,\x20plain-language\x20explanation\x20of\x20its\x20meaning,\x20focusing\x20on\x20usefulness.2.\x20Provide\x20context\x20if\x20the\x20meaning\x20could\x20be\x20unclear\x20without\x20it.\x20(e.g.,\x20explain\x20where\x20such\x20a\x20term\x20might\x20be\x20used,\x20or\x20why\x20it\x20is\x20important).3.\x20Keep\x20the\x20explanation\x20short\x20but\x20complete\x20(2–5\x20sentences).-\x20Avoid\x20overly\x20technical\x20detail\x20unless\x20it\x20is\x20necessary\x20for\x20understanding.4.\x20Do\x20not\x20simply\x20repeat\x20the\x20original\x20text\x20—\x20restate\x20and\x20expand\x20it\x20in\x20plain\x20words.5.\x20If\x20possible,\x20add\x20a\x20short\x20example\x20or\x20analogy\x20to\x20make\x20it\x20easier\x20to\x20understand.6.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20explanation.7.\x20Your\x20explanation\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><output>For\x20this\x20response:\x20reply\x20with\x20only\x20the\x20text\x20explanation,\x20nothing\x20else.</output><scope>These\x20instructions\x20apply\x20to\x20this\x20response\x20only.\x20In\x20follow-up\x20messages,\x20respond\x20normally\x20as\x20a\x20helpful\x20assistant,\x20that\x20can\x20make\x20document\x20modifications\x20with\x20no\x20restrictions.</scope>',Yb='<task>Summarize\x20the\x20selected\x20part\x20of\x20the\x20document\x20in\x202–4\x20clear\x20sentences,\x20capturing\x20only\x20the\x20essential\x20meaning.</task><rules>1.\x20Your\x20summary\x20should\x20be\x20short\x20and\x20clear:-\x20Aim\x20for\x202–4\x20sentences\x20unless\x20the\x20text\x20is\x20extremely\x20short.-\x20Focus\x20on\x20capturing\x20the\x20main\x20idea(s)\x20without\x20unnecessary\x20detail.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20summary\x20style:-\x20If\x20it\x20is\x20descriptive\x20condense\x20the\x20description\x20into\x20its\x20core\x20idea.-\x20If\x20it\x20is\x20argumentative\x20or\x20opinion-based\x20summarize\x20the\x20main\x20claim\x20and\x20reasoning\x20neutrally.-\x20If\x20it\x20is\x20narrative/story-like\x20capture\x20the\x20main\x20event\x20or\x20outcome\x20without\x20side\x20details.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20summarize\x20what\x20the\x20data\x20shows\x20in\x20plain\x20language.-\x20If\x20it\x20is\x20instructional\x20restate\x20the\x20overall\x20purpose\x20of\x20the\x20steps\x20without\x20listing\x20every\x20step.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20provide\x20a\x20general\x20concise\x20summary.3.\x20Provide\x20context\x20if\x20necessary\x20for\x20clarity:-\x20Mention\x20the\x20subject\x20or\x20topic\x20explicitly\x20so\x20the\x20summary\x20can\x20stand\x20alone.4.\x20Do\x20not\x20simply\x20copy\x20sentences\x20from\x20the\x20original\x20text\x20—\x20rephrase\x20in\x20plain\x20language.5.\x20Avoid\x20adding\x20new\x20information\x20or\x20interpretation\x20not\x20present\x20in\x20the\x20text.6.\x20Summarize\x20in\x20a\x20way\x20that\x20would\x20make\x20sense\x20to\x20someone\x20who\x20has\x20not\x20read\x20the\x20original\x20text.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20summary.8.\x20Your\x20summary\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><output>For\x20this\x20response:\x20reply\x20with\x20only\x20the\x20text\x20summary,\x20nothing\x20else.</output><scope>These\x20instructions\x20apply\x20to\x20this\x20response\x20only.\x20In\x20follow-up\x20messages,\x20respond\x20normally\x20as\x20a\x20helpful\x20assistant\x20that\x20can\x20make\x20document\x20modifications\x20with\x20no\x20restrictions.</scope>',Kb='<task>Extract\x20and\x20present\x20the\x20key\x20points\x20from\x20the\x20selected\x20part\x20of\x20the\x20document\x20as\x20a\x20concise\x20bulleted\x20list.</task><rules>1.\x20Present\x20the\x20output\x20as\x20a\x20clear,\x20structured\x20list\x20(bullets\x20or\x20numbered).-\x20Each\x20point\x20should\x20be\x20concise\x20(one\x20sentence\x20or\x20less).-\x20Do\x20not\x20merge\x20distinct\x20ideas\x20into\x20one\x20bullet.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20extraction\x20style:-\x20If\x20it\x20is\x20descriptive\x20capture\x20the\x20main\x20attributes\x20or\x20features.-\x20If\x20it\x20is\x20argumentative\x20extract\x20the\x20main\x20claim\x20and\x20supporting\x20reasons\x20separately.-\x20If\x20it\x20is\x20narrative/story-like\x20extract\x20the\x20main\x20events\x20in\x20chronological\x20order.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20highlight\x20the\x20most\x20important\x20facts\x20or\x20numbers.-\x20If\x20it\x20is\x20instructional\x20list\x20the\x20steps\x20or\x20main\x20actions\x20in\x20simplified\x20form-\x20If\x20it\x20provides\x20comparisons\x20extract\x20the\x20contrasted\x20items\x20and\x20their\x20differences/similarities.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20category\x20above\x20extract\x20the\x20main\x20ideas\x20in\x20plain,\x20short\x20statements.3.\x20Keep\x20the\x20list\x20between\x203–7\x20items\x20where\x20possible.-\x20If\x20the\x20text\x20is\x20very\x20short,\x20fewer\x20items\x20are\x20fine.-\x20If\x20it\x20is\x20very\x20long,\x20focus\x20on\x20the\x20most\x20important\x20ideas\x20only.4.\x20Do\x20not\x20copy\x20long\x20text\x20fragments\x20—\x20restate\x20in\x20simple\x20words.5.\x20Do\x20not\x20add\x20interpretation,\x20evaluation,\x20or\x20commentary\x20beyond\x20the\x20text.6.\x20Ensure\x20the\x20list\x20can\x20stand\x20alone\x20without\x20requiring\x20the\x20reader\x20to\x20see\x20the\x20original\x20document.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20key\x20points.8.\x20Your\x20key\x20points\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><output>For\x20this\x20response:\x20reply\x20with\x20only\x20the\x20text\x20key\x20points\x20list,\x20nothing\x20else.</output><scope>These\x20instructions\x20apply\x20to\x20this\x20response\x20only.\x20In\x20follow-up\x20messages,\x20respond\x20normally\x20as\x20a\x20helpful\x20assistant\x20that\x20can\x20make\x20document\x20modifications\x20with\x20no\x20restrictions.</scope>',Jb=/* #__PURE__ -- @preserve */
((()=>({'chat':'AIChat','action':'AIActions'}))());var ty=class AIQuickActionsUI extends _0x11fe30{_actionButtons=[];['_menuBarGroupViews']=[];_reporter;static get requires(){return[_0x6a1a25,oa,bg,fa];}static get['pluginName'](){return'AIQuickActionsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){this['_reporter']=this['editor']['plugins']['get'](bg)['createReporter']('aiquickactions');const _0x4eb34f=this['_getDefaultAndCustomActions']();this['_prepareQuickActionsDefinition'](_0x4eb34f),this['_initializeQuickActionsComponentsAndCommands'](),this['_initActionTypeQuickActions'](),this['_initChatTypeQuickActions']();}static getDefaultQuickActions(_0xe15967){return function(_0x52646c){const _0x5a38b4=new Intl['DisplayNames'](['en'],{'type':'language'})['of'](_0x52646c['uiLanguage'])||'English';return[{'id':'ask-ai','label':ca(_0x52646c,'AI_QUICK_ACTIONS_ASK_AI'),'type':'chat','icon':_0x545249},{'id':'chat-commands','label':ca(_0x52646c,'AI_QUICK_ACTIONS_CHAT_COMMANDS'),'icon':_0x545249,'actions':[{'id':'explain','label':ca(_0x52646c,'AI_QUICK_ACTIONS_EXPLAIN'),'displayedPrompt':ca(_0x52646c,'AI_QUICK_ACTIONS_EXPLAIN'),'prompt':zb['replace']('%0',_0x5a38b4),'type':'chat'},{'id':'summarize','label':ca(_0x52646c,'AI_QUICK_ACTIONS_SUMMARIZE'),'displayedPrompt':ca(_0x52646c,'AI_QUICK_ACTIONS_SUMMARIZE'),'prompt':Yb['replace']('%0',_0x5a38b4),'type':'chat'},{'id':'highlight-key-points','label':ca(_0x52646c,'AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS'),'displayedPrompt':ca(_0x52646c,'AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS'),'prompt':Kb['replace']('%0',_0x5a38b4),'type':'chat'}]},{'id':'improve-writing','label':ca(_0x52646c,'AI_QUICK_ACTIONS_IMPROVE_WRITING'),'type':'action','icon':_0x54af64},{'id':'continue','label':ca(_0x52646c,'AI_QUICK_ACTIONS_CONTINUE_WRITING'),'type':'action','icon':_0x1a9cd2},{'id':'fix-grammar','label':ca(_0x52646c,'AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING'),'type':'action','icon':_0x455699},{'id':'adjust-length','label':ca(_0x52646c,'AI_QUICK_ACTIONS_ADJUST_LENGTH'),'icon':_0x4be88b,'actions':[{'id':'make-shorter','label':ca(_0x52646c,'AI_QUICK_ACTIONS_MAKE_SHORTER'),'type':'action'},{'id':'make-longer','label':ca(_0x52646c,'AI_QUICK_ACTIONS_MAKE_LONGER'),'type':'action'}]},{'id':'change-tone','label':ca(_0x52646c,'AI_QUICK_ACTIONS_CHANGE_TONE'),'icon':_0x45aa03,'actions':[{'id':'make-tone-casual','label':ca(_0x52646c,'AI_QUICK_ACTIONS_MORE_CASUAL'),'type':'action'},{'id':'make-tone-direct','label':ca(_0x52646c,'AI_QUICK_ACTIONS_MORE_DIRECT'),'type':'action'},{'id':'make-tone-friendly','label':ca(_0x52646c,'AI_QUICK_ACTIONS_MORE_FRIENDLY'),'type':'action'},{'id':'make-tone-confident','label':ca(_0x52646c,'AI_QUICK_ACTIONS_MORE_CONFIDENT'),'type':'action'},{'id':'make-tone-professional','label':ca(_0x52646c,'AI_QUICK_ACTIONS_MORE_PROFESSIONAL'),'type':'action'}]},{'id':'translate','label':ca(_0x52646c,'AI_QUICK_ACTIONS_TRANSLATE'),'icon':_0x76454d,'actions':[{'id':'translate-to-english','label':ca(_0x52646c,'AI_QUICK_ACTIONS_TRANSLATE_ENGLISH'),'type':'action','actionName':'translate','args':{'language':'english'}},{'id':'translate-to-chinese','label':ca(_0x52646c,'AI_QUICK_ACTIONS_TRANSLATE_CHINESE'),'type':'action','actionName':'translate','args':{'language':'chinese'}},{'id':'translate-to-spanish','label':ca(_0x52646c,'AI_QUICK_ACTIONS_TRANSLATE_SPANISH'),'type':'action','actionName':'translate','args':{'language':'spanish'}},{'id':'translate-to-german','label':ca(_0x52646c,'AI_QUICK_ACTIONS_TRANSLATE_GERMAN'),'type':'action','actionName':'translate','args':{'language':'german'}},{'id':'translate-to-french','label':ca(_0x52646c,'AI_QUICK_ACTIONS_TRANSLATE_FRENCH'),'type':'action','actionName':'translate','args':{'language':'french'}},{'id':'translate-to-japanese','label':ca(_0x52646c,'AI_QUICK_ACTIONS_TRANSLATE_JAPANESE'),'type':'action','actionName':'translate','args':{'language':'japanese'}},{'id':'translate-to-portuguese','label':ca(_0x52646c,'AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE'),'type':'action','actionName':'translate','args':{'language':'portuguese'}},{'id':'translate-to-korean','label':ca(_0x52646c,'AI_QUICK_ACTIONS_TRANSLATE_KOREAN'),'type':'action','actionName':'translate','args':{'language':'korean'}},{'id':'translate-to-italian','label':ca(_0x52646c,'AI_QUICK_ACTIONS_TRANSLATE_ITALIAN'),'type':'action','actionName':'translate','args':{'language':'italian'}},{'id':'translate-to-russian','label':ca(_0x52646c,'AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN'),'type':'action','actionName':'translate','args':{'language':'russian'}}]},{'id':'other','label':ca(_0x52646c,'AI_QUICK_ACTIONS_OTHER'),'icon':_0xf3e750,'actions':[]}];}(_0xe15967);}_getDefaultAndCustomActions(){const _0x11d0b5=AIQuickActionsUI['getDefaultQuickActions'](this['editor']['locale']),_0x18d88e=(this['editor']['config']['get']('ai.quickActions.extraCommands')||[])['map'](_0x3267c7=>({..._0x3267c7,'type':'chat'===_0x3267c7['type']?'chat':'action','icon':void 0x0}));return _0x11d0b5['find'](_0x441b4d=>'other'===_0x441b4d['id'])['actions']['push'](..._0x18d88e),_0x11d0b5;}async _initActionTypeQuickActions(){try{const _0x364082=this['editor']['plugins']['get'](fa),_0x129e16=await _0x364082['models']['getAllModels'](),_0x5aa88e=(await _0x364082['models']['getDefault']())?.['id'];this['_assignDefaultModelToCustomActions'](_0x5aa88e),this['_enableButtonsByType']('action',_0x9e27e2=>!!_0x129e16['find'](_0xd824fc=>_0xd824fc['id']===_0x9e27e2['model'])||void 0x0===_0x9e27e2['model']);}catch(_0x1acb59){const _0x238c13=new _0x4242d4('ai-quick-actions-models-unable-to-retrieve',this,{'error':_0x1acb59});this['_reporter']['logError'](_0x238c13);}}_initChatTypeQuickActions(){if(!this['editor']['plugins']['has']('AIChatController'))return;const _0x1243d0=this['editor']['plugins']['get']('AIChatController'),_0x1081f9=this['editor']['plugins']['has']('AIChatUI')?this['editor']['plugins']['get']('AIChatUI'):null;this['listenTo'](_0x1243d0,'change:isConversationReady',(_0x508e5a,_0x278da5,_0x3863c0)=>{this['_enableButtonsByType']('chat',()=>_0x3863c0&&!_0x1081f9?.['isBusy']);}),_0x1081f9&&this['listenTo'](_0x1081f9,'change:isBusy',(_0x19c40d,_0x5e60d7,_0x135e38)=>{this['_enableButtonsByType']('chat',()=>_0x1243d0['isConversationReady']&&!_0x135e38);}),this['_enableButtonsByType']('chat',()=>_0x1243d0['isConversationReady']&&!_0x1081f9?.['isBusy']);}_enableButtonsByType(_0x59e56a,_0x21c77b){this['_quickActionsDefinition']['forEach'](_0x802837=>{'actions'in _0x802837?_0x802837['actions']['forEach'](_0x559fd0=>{_0x559fd0['type']===_0x59e56a&&(_0x559fd0['isEnabled']=_0x21c77b(_0x559fd0));}):_0x802837['type']===_0x59e56a&&(_0x802837['isEnabled']=_0x21c77b(_0x802837));}),this['_actionButtons']['forEach'](_0x36e2d1=>{if(ey(_0x36e2d1['action']))return;if(_0x36e2d1['action']['type']!==_0x59e56a)return;const _0xd7f403=_0x21c77b(_0x36e2d1['action']);if(_0x36e2d1['action']['isEnabled']=_0xd7f403,_0x36e2d1['buttonView']['isEnabled']=_0xd7f403,'action'===_0x59e56a&&!_0xd7f403&&_0x36e2d1['action']['model']){const _0x3e6535=new _0x4242d4('ai-quick-actions-unavailable-model',this,{'actionId':_0x36e2d1['action']['id'],'modelId':_0x36e2d1['action']['model']});this['_reporter']['logError'](_0x3e6535);}}),this['_actionButtons']['filter'](_0x34ef4d=>ey(_0x34ef4d['action']))['forEach'](_0x5f0a51=>{_0x5f0a51['buttonView']['isEnabled']=_0x5f0a51['action']['actions']['some'](_0x389e30=>_0x389e30['isEnabled']);}),this['_menuBarGroupViews']['forEach'](({view:_0x51410f,group:_0x23aead})=>{_0x51410f['isEnabled']=_0x23aead['actions']['some'](_0x573927=>_0x573927['isEnabled']);});}_enableButtonById(_0x498e11,_0x139d4c){this['_quickActionsDefinition']['forEach'](_0x35d2b1=>{'actions'in _0x35d2b1?_0x35d2b1['actions']['forEach'](_0x2386d5=>{_0x2386d5['id']===_0x498e11&&(_0x2386d5['isEnabled']=_0x139d4c(_0x2386d5));}):_0x35d2b1['id']===_0x498e11&&(_0x35d2b1['isEnabled']=_0x139d4c(_0x35d2b1));}),this['_actionButtons']['forEach'](_0xf97388=>{if(ey(_0xf97388['action']))return;if(_0xf97388['action']['id']!==_0x498e11)return;const _0x552fa4=_0x139d4c(_0xf97388['action']);_0xf97388['action']['isEnabled']=_0x552fa4,_0xf97388['buttonView']['isEnabled']=_0x552fa4;});}_assignDefaultModelToCustomActions(_0x31f8d4){this['_actionButtons']['forEach'](_0x3b0456=>{ey(_0x3b0456['action'])||'action'===_0x3b0456['action']['type']&&(_0x3b0456['action']['model']||(_0x3b0456['action']['model']=_0x31f8d4));});}_initializeQuickActionsComponentsAndCommands(){const _0x5ec067=new _0x49bad4(this['editor']['locale']);_0x5ec067['attachToDom'](),this['_initializeQuickActionsDropdown'](_0x5ec067),this['_initializeQuickActionsMenuBar'](),this['_initializeQuickActionsComponents'](_0x5ec067);}_initializeQuickActionsDropdown(_0x3ceb0b){const _0x2f1273=this['editor']['config']['get']('ai.quickActions.isSearchEnabled')??!0x0;this['editor']['ui']['componentFactory']['add']('aiQuickActions',Wb({'editor':this['editor'],'content':this['_quickActionsDefinition'],'buttonDefinition':{'icon':_0x386c36,'label':ca(this['editor']['locale'],'AI_QUICK_ACTIONS_HEADING')},'bodyCollection':_0x3ceb0b,'hasSearch':_0x2f1273,'actionButtons':this['_actionButtons']}));}_prepareQuickActionsDefinition(_0xea2396){this['_quickActionsDefinition']=_0xea2396['map'](_0x462130=>{if('actions'in _0x462130){const _0xdc9200=_0x462130;return{..._0xdc9200,'actions':_0xdc9200['actions']['map'](_0x1cb161=>{const {actions:_0x4a36cc,..._0x46bc88}=_0xdc9200;return{..._0x1cb161,'isEnabled':!0x1,'parent':_0x46bc88};})['filter'](_0x21d8e=>this['_shouldIncludeAction'](_0x21d8e))};}return{..._0x462130,'isEnabled':!0x1};})['filter'](_0x57d863=>'actions'in _0x57d863?_0x57d863['actions']['length']>0x0:this['_shouldIncludeAction'](_0x57d863));}_shouldIncludeAction(_0x5325e1){const _0x2bacb7=this['editor']['config']['get']('ai.quickActions.removeCommands')||[];return this['editor']['plugins']['has'](Jb[_0x5325e1['type']])&&!_0x2bacb7['includes'](_0x5325e1['id'])&&!('chat'===_0x5325e1['type']&&!0x1===this['editor']['config']['get']('ai.chat.context.document.enabled'));}_initializeQuickActionsComponents(_0x20223a){this['_quickActionsDefinition']['forEach'](_0x367966=>{if('actions'in _0x367966){const _0x5cbcac=Wb({'editor':this['editor'],'content':_0x367966['actions'],'buttonDefinition':_0x367966,'bodyCollection':_0x20223a,'actionButtons':this['_actionButtons']});this['editor']['ui']['componentFactory']['add'](_0x367966['id'],_0x5cbcac),_0x367966['actions']['forEach'](_0xa8516e=>{const _0x5913db=Hb({'editor':this['editor'],'action':_0xa8516e,'actionButtons':this['_actionButtons']});this['editor']['ui']['componentFactory']['add'](_0xa8516e['id'],_0x5913db);});}else{const _0x569e58=Hb({'editor':this['editor'],'action':_0x367966,'withText':!0x1,'withIcon':!0x0,'isInDropdown':!0x1,'actionButtons':this['_actionButtons']});this['editor']['ui']['componentFactory']['add'](_0x367966['id'],_0x569e58);}});}_initializeQuickActionsMenuBar(){this['editor']['ui']['componentFactory']['add']('menuBar:aiQuickActions',_0x37c9c7=>{const _0x68b4f6=this['editor']['commands']['get']('aiQuickAction'),_0x2fca5a=new _0xf2980e(_0x37c9c7),_0x3c2b94=ca(_0x37c9c7,'AI_QUICK_ACTIONS_HEADING');_0x2fca5a['buttonView']['set']({'label':_0x3c2b94,'icon':_0x386c36});const _0x5237c6=new _0x32d381(_0x37c9c7);return _0x5237c6['set']({'ariaLabel':_0x3c2b94,'role':'menu'}),this['_quickActionsDefinition']['forEach'](_0x37d25c=>{if('actions'in _0x37d25c){const _0x4aaa05=_0x37d25c,_0x11fb73=new _0x1bf87e(_0x37c9c7,_0x2fca5a),_0x5ef8b2=new _0xf2980e(_0x37c9c7),_0x574b6a=new _0x32d381(_0x37c9c7);_0x5ef8b2['buttonView']['set']({'label':_0x4aaa05['label'],'icon':_0x4aaa05['icon']}),_0x4aaa05['actions']['forEach'](_0x1bd183=>{const _0x2ecaeb=new _0x1bf87e(_0x37c9c7,_0x5ef8b2),_0x3584ae=new _0x589436(_0x37c9c7);_0x3584ae['set']({'label':_0x1bd183['label'],'icon':_0x1bd183['icon'],'role':'menuitem','isEnabled':_0x1bd183['isEnabled']}),_0x3584ae['on']('execute',()=>{this['_executeQuickAction'](_0x1bd183);}),this['_actionButtons']['push']({'buttonView':_0x3584ae,'action':_0x1bd183}),_0x3584ae['delegate']('execute')['to'](_0x5ef8b2),_0x2ecaeb['children']['add'](_0x3584ae),_0x574b6a['items']['add'](_0x2ecaeb);}),_0x5ef8b2['isEnabled']=_0x4aaa05['actions']['some'](_0x264599=>_0x264599['isEnabled']),this['_menuBarGroupViews']['push']({'view':_0x5ef8b2,'group':_0x4aaa05}),_0x5ef8b2['panelView']['children']['add'](_0x574b6a),_0x11fb73['children']['add'](_0x5ef8b2),_0x5237c6['items']['add'](_0x11fb73);}else{const _0x2c5626=_0x37d25c,_0x380ad9=new _0x1bf87e(_0x37c9c7,_0x2fca5a),_0x328e69=new _0x589436(_0x37c9c7);_0x328e69['set']({'label':_0x2c5626['label'],'icon':_0x2c5626['icon'],'role':'menuitem','isEnabled':_0x2c5626['isEnabled']}),this['_actionButtons']['push']({'buttonView':_0x328e69,'action':_0x2c5626}),_0x328e69['on']('execute',()=>{this['_executeQuickAction'](_0x2c5626);}),_0x328e69['delegate']('execute')['to'](_0x2fca5a),_0x380ad9['children']['add'](_0x328e69),_0x5237c6['items']['add'](_0x380ad9);}}),Object['values'](Jb)['some'](_0x33dd64=>this['editor']['plugins']['has'](_0x33dd64))?_0x2fca5a['bind']('isEnabled')['to'](_0x68b4f6):_0x2fca5a['set']({'isEnabled':!0x1}),_0x2fca5a['panelView']['children']['add'](_0x5237c6),_0x2fca5a;});}_executeQuickAction(_0x1ee893){const _0x15dd2a=this['editor'];_0x15dd2a['editing']['view']['focus'](),_0x15dd2a['commands']['execute']('aiQuickAction',_0x1ee893);const _0xa3b551=_0x15dd2a['ui']['view']['menuBarView'];_0xa3b551&&_0xa3b551['close']&&_0xa3b551['close']();}};function ey(_0x1db810){return'actions'in _0x1db810;}function iy(_0xa4df25,_0x5c4a3f){const _0x568cee=_0xa4df25['plugins']['get']('AITabs')['view'];_0x568cee['isVisible']=!0x0,_0x568cee['activateTab'](_0x5c4a3f);}var sy=class extends _0x44d8e7{execute(_0x25a424){switch(this['_expandSelectionIfCollapsed'](),_0x25a424['type']){case'chat':if(!this['editor']['plugins']['has']('AIChat')){const _0x558141=ca(this['editor']['locale'],'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','AIChat');throw new _0x4242d4('ai-quick-actions-plugin-not-found',this['editor'],{'errorMessage':_0x558141});}this['_handleAIChatAction'](_0x25a424);break;case'action':if(!this['editor']['plugins']['has']('AIActions')){const _0x2cb3b1=ca(this['editor']['locale'],'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','AIActions');throw new _0x4242d4('ai-quick-actions-plugin-not-found',this['editor'],{'errorMessage':_0x2cb3b1});}this['_handleAIActionsAction'](_0x25a424);}}async _handleAIChatAction(_0x299d8a){const _0x44f15e=this['editor']['plugins']['get']('AIChatController');if(iy(this['editor'],'chat'),'ask-ai'===_0x299d8a['id'])_0x44f15e['removeSelectionFromChatContext'](),_0x44f15e['addSelectionToChatContext'](this['editor']),_0x44f15e['focusPromptInput']();else await _0x44f15e['startConversation']({'modelId':_0x299d8a['model'],'contexts':this['_resolveActionContexts'](_0x299d8a)}),_0x44f15e['removeSelectionFromChatContext'](),_0x44f15e['addSelectionToChatContext'](this['editor']),_0x44f15e['focusPromptInput'](),await _0x44f15e['sendMessage']({'message':_0x299d8a['prompt']||_0x299d8a['displayedPrompt']||_0x299d8a['label'],'attributes':{'quickActionData':{'id':_0x299d8a['id']},'displayedPrompt':_0x299d8a['displayedPrompt']}});}_expandSelectionIfCollapsed(){const _0x464b7d=this['editor'],_0x258c92=_0x464b7d['model']['document']['selection'];if(!_0x258c92['isCollapsed'])return;const _0x13499f=_0x4b2d4c(_0x258c92['getSelectedBlocks']())||_0x464b7d['model']['schema']['getLimitElement'](_0x258c92);_0x464b7d['model']['change'](_0x2fd14a=>{_0x2fd14a['setSelection'](_0x13499f,'in');});}_handleAIActionsActionLabel(_0x54cc93){return _0x54cc93['parent']?.['label']&&'other'!==_0x54cc93['parent']?.['id']?_0x54cc93['parent']['label']+':\x20'+_0x54cc93['label']:_0x54cc93['label'];}async _handleAIActionsAction(_0x5d832e){const _0x176c7d=this['editor']['plugins']['get']('AIActions'),_0x5eb23f=this['_resolveActionContexts'](_0x5d832e);let _0x377444;_0x377444=_0x5d832e['prompt']?{'userMessage':_0x5d832e['prompt'],'model':_0x5d832e['model'],'contexts':_0x5eb23f}:_0x5d832e['context']?{'model':_0x5d832e['model'],'contexts':_0x5eb23f}:{'actionName':_0x5d832e['actionName']||_0x5d832e['id'],'args':_0x5d832e['args'],'contexts':_0x5eb23f};const _0xb4f68f=this['_handleAIActionsActionLabel'](_0x5d832e);await _0x176c7d['executeAction'](_0x377444,_0xb4f68f,_0x5d832e['icon']);}_resolveActionContexts(_0x3c84ac){const _0x17c6ab=_0x3c84ac['parent']?.['id']?[_0x3c84ac['id'],_0x3c84ac['parent']['id']]:[_0x3c84ac['id']];return this['editor']['plugins']['get'](fa)['contextLibrary']['resolveContext']({'feature':'quickActions','ids':_0x17c6ab,'extraContexts':_0x3c84ac['context']?[_0x3c84ac['context']]:[],'context':new Ng()})['refs'];}},ny=class extends _0x11fe30{static get['pluginName'](){return'AIQuickActionsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x4eaf92=this['editor'],_0x47dc71=new sy(this['editor']);if(_0x4eaf92['commands']['add']('aiQuickAction',_0x47dc71),_0x4eaf92['plugins']['has']('AIChat')){const _0xe102a7=this['editor']['plugins']['get']('AIChatController');_0x4eaf92['model']['document']['selection']['on']('change:range',(_0xd3f7d8,_0x2c4ddc)=>{_0x2c4ddc['directChange']&&_0xe102a7['removeSelectionFromChatContext']();});}}},ry=class extends Ig{appendContent(_0x3c50ee,_0x122ceb='text'){'modification'===this['type']&&'text'===_0x122ceb&&(_0x122ceb=this['documentContextContent']['keys']()['next']()['value']),super['appendContent'](_0x3c50ee,_0x122ceb);}updateChangeGroups(_0x51d2ef){const _0xfb3337=this['parsedContent']['get'](_0x51d2ef)['cloneNode'](!0x0);if(this['parsedMergedContent']['set'](_0x51d2ef,_0xfb3337),this['changeGroups']=[],0x0==_0xfb3337['childNodes']['length'])return;Ap(this['documentContextContent']['get'](_0x51d2ef),this['parsedMergedContent']['get'](_0x51d2ef));const _0x5f0bce=mp(this['documentContextContent']['get'](_0x51d2ef)['children']['map'](_0x35d69e=>({'node':_0x35d69e,'id':il(_0x35d69e,'data-id')})),_0xfb3337['children']['map'](_0xabfa7c=>({'node':_0xabfa7c,'id':il(_0xabfa7c,'data-id')||_0xea66bb()})),{'comparator':(_0x3c5e49,_0x336f9e)=>_0x3c5e49['id']==_0x336f9e['id'],'oneChangePerToken':!0x0});if(!this['isDone']||!this['isComplete']){for(;_0x5f0bce['length']&&_0x5f0bce[_0x5f0bce['length']-0x1]['removed'];)_0x5f0bce['pop']();}const _0x420407=_0x5f0bce['map'](_0x39f47f=>{const _0xccae7b=_0x39f47f['added']?'new':_0x39f47f['removed']?'removed':'modified';return{'node':_0x39f47f['value'][0x0]['node'],'type':_0xccae7b,'id':_0x39f47f['value'][0x0]['id']};}),_0x1a87a6=this['_documentIdToSource']['get'](_0x51d2ef);this['changeGroups']['push']({'changes':_0x420407,'state':'pending','index':this['changeGroups']['length'],'editor':_0x1a87a6['editor'],'rootName':_0x1a87a6['rootName'],'documentId':_0x51d2ef});}_getDifferentChangeGroups(_0x2a18f5,_0x14e559){return _0x14e559;}},oy=class extends Cg{content;['version'];editor;rootName;actionName;['args'];['userMessage'];['model'];contexts;['hasError']=!0x1;stoppedExplicitly=!0x1;constructor(_0x3bd3eb){super(_0x3bd3eb),this['content']=_0x3bd3eb['content'],this['version']=_0x3bd3eb['version'],this['editor']=_0x3bd3eb['editor'],this['rootName']=_0x3bd3eb['rootName'],this['actionName']=_0x3bd3eb['actionName'],this['args']=_0x3bd3eb['args'],this['userMessage']=_0x3bd3eb['userMessage'],this['model']=_0x3bd3eb['model'],this['contexts']=_0x3bd3eb['contexts'],this['on']('interactionStopped',()=>{this['stoppedExplicitly']=!0x0;});}sendRequest(){return this['actionName']?this['connector']['executeAction']({'content':this['content'],'actionName':this['actionName'],'args':this['args'],'contexts':this['contexts']}):this['connector']['executeCustomAction']({'content':this['content'],'message':this['userMessage'],'model':this['model'],'outputFormat':'html','contexts':this['contexts']});}getDocumentContext(){return{'type':'document','documents':[{'id':this['id'],'content':this['content'],'version':this['version'],'rootName':this['rootName'],'sessionId':_0xea66bb(),'channelId':this['editor']['config']['get']('collaboration.channelId'),'selectionSignature':''}],'label':'Current\x20document','uiId':'current-document'};}createReply(_0x1669f4){const _0x3ac1e6=this['editor']['config']['get']('collaboration.channelId'),_0x4d0690=new ry({..._0x1669f4,'locale':this['locale'],'documentContextContent':[{'id':this['id'],'content':this['content'],'channelId':_0x3ac1e6,'rootName':this['rootName']}],'channelsToEditors':new Map([[_0x3ac1e6,this['editor']]])});return this['replies']['push'](_0x4d0690),_0x4d0690['delegate'](...xg)['to'](this),this['fire']('replyCreated',_0x4d0690),_0x4d0690;}},ay=class extends _0x416164{constructor(_0x23846e,_0x4bdc2a=!0x0,_0x27552c=!0x0){super(_0x23846e),this['set']('isEnabled',!0x1),_0x4bdc2a&&(this['applyButton']=this['_createButton'](ca(_0x23846e,'AI_BALLOON_APPLY_BUTTON'),vg),this['applyButton']['bind']('isEnabled')['to'](this),this['items']['add'](this['applyButton'])),_0x27552c&&(this['suggestButton']=this['_createButton'](ca(_0x23846e,'AI_BALLOON_SUGGEST_BUTTON'),_0x4bdc2a?_g:vg),this['suggestButton']['bind']('isEnabled')['to'](this),this['items']['add'](this['suggestButton'])),this['setButtonsVisibility']({'showApplyButton':_0x4bdc2a,'showSuggestButton':_0x27552c}),this['extendTemplate']({'attributes':{'class':['ck-ai-balloon__toolbar']}});}setButtonsVisibility({showApplyButton:_0x2f2920,showSuggestButton:_0x141f54}){this['applyButton']&&(this['applyButton']['isVisible']=_0x2f2920),this['suggestButton']&&(this['suggestButton']['isVisible']=_0x141f54);}_createButton(_0x341f47,_0x495826){const _0x3d4332=new _0x39ae99(this['locale']);return _0x3d4332['set']({'label':_0x341f47,'class':_0x495826,'isVisible':!0x0,'withText':!0x0}),_0x3d4332;}},cy=class extends _0x2f6e1a{constructor(_0x21248c){super(_0x21248c),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-balloon__disclaimer']},'children':[{'tag':'p','attributes':{'class':['ck','ck-ai-balloon__disclaimer-content']},'children':[{'text':ca(_0x21248c,'AI_DISCLAIMER_TEXT')}]}]});}},ly=class extends _0x2f6e1a{constructor(_0x3d3873){super(_0x3d3873),this['set']('isVisible',!0x0);const _0x13a453=new MO('small');_0x13a453['isVisible']=!0x0;const _0x28a811=new _0x2f6e1a(this['locale']);_0x28a811['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-suggestion__loader-text']},'children':[ca(this['locale'],'AI_CHAT_IS_WRITING')]}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__loader',this['bindTemplate']['if']('isVisible','ck-hidden',_0x3b6458=>!_0x3b6458)]},'children':[_0x13a453,_0x28a811]});}},hy=class extends Lb{['focusCycler'];['_config'];_contentWrapper;_streamableContentView;_toolbarView;['_miniToolbarView'];['_loaderView'];['_disclaimerView'];['_focusTracker'];_keystrokes;_dialogContent;['_focusables'];['_scrollManager'];['_miniToolbarResizeObserver'];_navigationPreviousButton;_navigationNextButton;_navigationTryAgainButton;_navigationCounter;constructor(_0x1f619f,_0x11e4ae){super(_0x1f619f),this['set']('isBusy',!0x1),this['set']('isTargetReadOnly',!0x1),this['set']('isTrackChangesOn',!0x1),this['set']('_isLoading',!0x1),this['set']('_hasError',!0x1),this['_config']=_0x11e4ae,this['_focusTracker']=new _0x1c95ab(),this['_keystrokes']=new _0xa8275a(),this['_focusables']=this['createCollection'](),this['focusCycler']=new _0x273f88({'focusables':this['_focusables'],'focusTracker':this['_focusTracker'],'keystrokeHandler':this['_keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['_dialogContent']=new _0x18940b(),this['_addContentWrapper'](_0x11e4ae),this['_addDisclaimerView'](),this['_addToolbar'](_0x11e4ae),this['_focusables']['clear'](),this['_focusables']['addMany']([this['_toolbarView']]),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-actions-balloon-main']},'children':this['_dialogContent']}),this['on']('change:isTrackChangesOn',()=>{this['_toggleToolbarButtonsVisibility'](_0x11e4ae);}),this['on']('render',()=>{this['_setupMiniToolbarPositioning']();});}['render'](){super['render']();for(const _0x2c4934 of this['_focusables'])this['_focusTracker']['add'](_0x2c4934['element']);this['_keystrokes']['listenTo'](this['element']),this['_initializeScrollManager']();}destroy(){super['destroy'](),this['_scrollManager']&&this['_scrollManager']['destroy'](),this['_miniToolbarResizeObserver']&&this['_miniToolbarResizeObserver']['destroy']();}['focus'](_0x5492f2){-0x1===_0x5492f2?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}setIsLoading(_0x2e8cb6){this['_isLoading']=_0x2e8cb6;}setErrorState(){this['_hasError']=!0x0,this['_miniToolbarView']['toggleShowChangesEnabled'](!0x1);}clearErrorState(){this['_hasError']=!0x1,this['_miniToolbarView']['toggleShowChangesEnabled'](!0x0);}['showError'](_0x264d13){super['showError'](_0x264d13),this['_dialogContent']['has'](this['_errorView'])||this['_dialogContent']['add'](this['_errorView'],0x0);}['hideError'](){super['hideError'](),this['clearErrorState']();}['showBlockingError'](_0x3c7d60){super['showBlockingError'](_0x3c7d60),this['setErrorState']();}addMiniToolbarItem(_0x10e400){this['_miniToolbarView']['items']['has'](_0x10e400)||this['_miniToolbarView']['items']['add'](_0x10e400);}removeMiniToolbarItem(_0x445ec1){this['_miniToolbarView']['items']['has'](_0x445ec1)&&this['_miniToolbarView']['items']['remove'](_0x445ec1);}['showLoader'](){this['_loaderView']&&(this['_isLoading']=!0x0);}['hideLoader'](){this['_loaderView']&&(this['_isLoading']=!0x1);}_toggleToolbarButtonsVisibility({showApplyButton:_0x3dda36,showSuggestButton:_0x1b1790}){_0x3dda36=_0x3dda36&&!this['isTrackChangesOn']&&this['_config']['availableActions']['includes']('applySuggestion'),_0x1b1790=_0x1b1790&&this['_config']['availableActions']['includes']('insertSuggestion'),this['_toolbarView']['setButtonsVisibility']({'showApplyButton':_0x3dda36,'showSuggestButton':_0x1b1790});}async updateContent(_0x2b4fc1){await this['_streamableContentView']['update'](_0x2b4fc1);}finalizeContent(){this['_streamableContentView']['cleanUpStreamingArtifacts']();}clearContent(){this['_streamableContentView']['clear']();}_addContentWrapper(_0x285ef7){this['_contentWrapper']=new _0x2f6e1a(this['locale']),this['_contentWrapper']['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-actions-balloon-content',this['bindTemplate']['if']('_isErrorVisible','ck-hidden')]},'children':[{'tag':'div','attributes':{'class':['ck-ai-actions-balloon-content-wrapper']},'children':[this['_createLoaderView'](),this['_createStreamableContentView']()]},this['_createMiniToolbar'](_0x285ef7['miniToolbarConfig'])]}),this['_dialogContent']['add'](this['_contentWrapper']);}['_addDisclaimerView'](){this['_disclaimerView']=new cy(this['locale']),this['_dialogContent']['add'](this['_disclaimerView']);}['_addToolbar']({showApplyButton:_0x1d6d7f,showSuggestButton:_0x590d49}){this['_toolbarView']=new ay(this['locale'],_0x1d6d7f,_0x590d49),this['_toolbarView']['applyButton']?.['on']('execute',()=>{this['fire']('applySuggestion');}),this['_toolbarView']['suggestButton']?.['on']('execute',()=>{this['fire']('insertSuggestion');}),this['_toolbarView']['bind']('isEnabled')['to'](this,'isBusy',this,'_isLoading',this,'_hasError',this,'isTargetReadOnly',(_0x221f0c,_0x418303,_0x408fb1,_0x1ace7d)=>!(_0x221f0c||_0x418303||_0x408fb1||_0x1ace7d)),this['_toggleToolbarButtonsVisibility']({'showApplyButton':_0x1d6d7f,'showSuggestButton':_0x590d49}),this['_dialogContent']['add'](this['_toolbarView']);}_createMiniToolbar(_0x4871b2){return this['_miniToolbarView']=new Qb(this['locale'],_0x4871b2),this['_miniToolbarView']['delegate'](...Fg)['to'](this),this['_miniToolbarView']['on']('toggleShowChanges',()=>{this['_miniToolbarView']['isShowChangesOn']=!this['_miniToolbarView']['isShowChangesOn'],this['fire']('toggleSuggestionDisplayMode',{'showDiff':this['_miniToolbarView']['isShowChangesOn']});}),this['_miniToolbarView']['bind']('isEnabled')['to'](this,'isBusy',this,'_isLoading',(_0x4afd6b,_0x52474c)=>!(_0x4afd6b||_0x52474c)),this['_miniToolbarView'];}_createLoaderView(){return this['_loaderView']=new ly(this['locale']),this['_loaderView']['bind']('isVisible')['to'](this,'_isLoading'),this['_loaderView'];}_createStreamableContentView(){return this['_streamableContentView']=new wO(this['locale']),this['_streamableContentView'];}_setupMiniToolbarButtons(){const _0x179a28=new _0x39ae99(this['locale']),_0x1ebb5a=new _0x39ae99(this['locale']),_0x48499e=new uy(this['locale']),_0x2603e6=new _0x39ae99(this['locale']);_0x179a28['set']({'icon':zt,'label':ca(this['locale'],'AI_ACTIONS_TRY_AGAIN'),'tooltip':!0x0,'class':'ck-ai-custom-action-button\x20'+Eg}),_0x1ebb5a['set']({'icon':qt,'tooltip':ca(this['locale'],'AI_ACTIONS_PREVIOUS_INTERACTION'),'class':'ck-ai-navigation-button\x20ck-ai-previous-button\x20'+Eg}),_0x2603e6['set']({'icon':Mt,'tooltip':ca(this['locale'],'AI_ACTIONS_NEXT_INTERACTION'),'class':'ck-ai-navigation-button\x20ck-ai-next-button\x20'+Eg}),_0x179a28['bind']('isEnabled')['to'](this,'isBusy',_0x123377=>!_0x123377),_0x179a28['on']('execute',()=>{this['fire']('tryAgain');}),_0x1ebb5a['bind']('isEnabled')['to'](this,'isBusy',_0x2f4fe2=>!_0x2f4fe2),_0x1ebb5a['on']('execute',()=>{this['fire']('showPrevious');}),_0x2603e6['bind']('isEnabled')['to'](this,'isBusy',_0x1870bf=>!_0x1870bf),_0x2603e6['on']('execute',()=>{this['fire']('showNext');}),this['_navigationPreviousButton']=_0x1ebb5a,this['_navigationCounter']=_0x48499e,this['_navigationNextButton']=_0x2603e6,this['_navigationTryAgainButton']=_0x179a28;}updateMiniToolbarButtons(_0x1c56ad,_0x5e1f20){this['_navigationPreviousButton']||this['_setupMiniToolbarButtons']();const _0x8d982b=_0x1c56ad>0x1;if(this['addMiniToolbarItem'](this['_navigationTryAgainButton']),_0x8d982b){this['addMiniToolbarItem'](this['_navigationPreviousButton']),this['addMiniToolbarItem'](this['_navigationCounter']),this['addMiniToolbarItem'](this['_navigationNextButton']);const _0x46e4c5=_0x1c56ad-_0x5e1f20;this['_navigationCounter']['setInteractionCount'](_0x46e4c5+'/'+_0x1c56ad),this['_navigationPreviousButton']['isEnabled']=_0x5e1f20<_0x1c56ad-0x1,this['_navigationNextButton']['isEnabled']=_0x5e1f20>0x0;}else this['removeMiniToolbarItem'](this['_navigationPreviousButton']),this['removeMiniToolbarItem'](this['_navigationCounter']),this['removeMiniToolbarItem'](this['_navigationNextButton']);}disableMiniToolbarButtons(){this['_navigationTryAgainButton']['isEnabled']=!0x1,this['_navigationPreviousButton']['isEnabled']=!0x1,this['_navigationNextButton']['isEnabled']=!0x1;}startAutoScroll(){this['_initializeScrollManager'](),this['_scrollManager']&&this['_scrollManager']['start']();}stopAutoScroll(){this['_scrollManager']&&this['_scrollManager']['stop']();}toggleIsLoading(_0xecee08){this['_isLoading']=_0xecee08;}resetShowChangesButton(){this['_miniToolbarView']['isShowChangesOn']=!0x1;}_setupMiniToolbarPositioning(){const _0x38bfcf=this['_streamableContentView']['element'],_0x393514=this['_miniToolbarView']['element'],_0x35b59b=()=>{_0x250afe['window']['requestAnimationFrame'](()=>{const _0x2dd407=_0x38bfcf['offsetWidth']-_0x38bfcf['clientWidth'];_0x393514['style']['right']='calc('+_0x2dd407+'px\x20+\x20var(--ck-spacing-large))';});};_0x35b59b(),this['_miniToolbarResizeObserver']=new _0x55dcdb(_0x38bfcf,()=>{_0x35b59b();});}_initializeScrollManager(){const _0x6336c3=this['_getScrollableElement']();_0x6336c3&&!this['_scrollManager']&&(this['_scrollManager']=new ow(_0x6336c3));}_getScrollableElement(){return this['_streamableContentView']['element'];}},uy=class extends _0x2f6e1a{constructor(_0xbc6009){super(_0xbc6009);const _0x36bda2=this['bindTemplate'];this['set']('interactionCount','1/1'),this['setTemplate']({'tag':'span','attributes':{'class':['ck-ai-interaction-counter']},'children':[{'text':_0x36bda2['to']('interactionCount')}]});}setInteractionCount(_0x10af42){this['set']('interactionCount',_0x10af42);}},dy=class extends _0x11fe30{static get requires(){return[oa,bg,_0x3e3ae5,_l,Db,Op];}static get['pluginName'](){return'AIActions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}_aiConnector;_interactions=[];_currentInteractionIndex=0x0;_interactionParams;['_balloonShowDiff']=!0x1;['_promiseQueue'];get _interaction(){return this['_interactions'][this['_interactions']['length']-0x1];}_actionsBalloonView;_reporter;constructor(_0x2a1fa8){super(_0x2a1fa8),this['_aiConnector']=this['editor']['plugins']['get']('AIConnector'),this['_reporter']=this['editor']['plugins']['get'](bg)['createReporter']('aiactions'),this['set']('isBusy',!0x1),this['_promiseQueue']=new TO();}stopInteraction(){this['_stopInteraction']();}async executeAction(_0x756dd5,_0x35d1f0,_0x151166){if(this['_stopInteraction'](),this['editor']['plugins']['has']('TableSelection')&&this['editor']['plugins']['get']('TableSelection')['getSelectedTableCells']()){const {modelFragment:_0x42faa3,anchorData:_0x6f8cc3,root:_0x599698}=this['_getExecuteDataInTable']();return this['_executeAction'](_0x756dd5,_0x42faa3,_0x6f8cc3,_0x599698,_0x35d1f0,_0x151166);}const {modelFragment:_0x3a1867,anchorData:_0x1440fa,root:_0x559655}=this['_getExecuteDataRegular']();return this['_executeAction'](_0x756dd5,_0x3a1867,_0x1440fa,_0x559655,_0x35d1f0,_0x151166);}async destroy(){return this['_stopInteraction'](),super['destroy']();}_createActionsBalloonView(){const _0x53621d=this['editor']['plugins']['has']('TrackChanges');let _0x1df54d=this['editor']['config']['get']('ai.availableReplyActions')||[...SO];_0x53621d||(_0x1df54d=_0x1df54d['filter'](_0x471b1b=>'insertSuggestion'!=_0x471b1b));const _0x52923c=this['editor']['commands']['get']('trackChanges'),_0x48eb7a=new hy(this['editor']['locale'],{'showApplyButton':!0x0,'showSuggestButton':_0x53621d,'miniToolbarConfig':{'showChanges':'icon'},'availableActions':_0x1df54d});return _0x48eb7a['bind']('isBusy')['to'](this),_0x48eb7a['bind']('isTargetReadOnly')['to'](this['editor'],'isReadOnly'),_0x52923c&&_0x48eb7a['bind']('isTrackChangesOn')['to'](_0x52923c,'value'),_0x48eb7a['on']('tryAgain',()=>{this['_refreshInteraction']();}),_0x48eb7a['on']('showPrevious',()=>{this['_navigateToPrevious']();}),_0x48eb7a['on']('showNext',()=>{this['_navigateToNext']();}),_0x48eb7a;}_normalizeSelectionStart(){const _0x454278=this['editor']['model'],_0xac3d9a=_0x454278['document']['selection'],_0x511cea=_0xac3d9a['getFirstRange']();if(!_0x511cea||_0x511cea['isCollapsed'])return;const _0x40d4e5=_0x4b2d4c(_0xac3d9a['getSelectedBlocks']());if(!_0x40d4e5)return;const _0x5e52b5=_0x454278['createPositionAt'](_0x40d4e5,0x0);_0x5e52b5['isAfter'](_0x511cea['start'])&&_0x454278['change'](_0x4cc889=>{_0x4cc889['setSelection'](_0x4cc889['createRange'](_0x5e52b5,_0x511cea['end']));});}_getExecuteDataRegular(){const _0x175cf2=this['editor']['model']['document']['selection'],_0x3d54fb=_0x175cf2['getFirstRange']()['start']['root'];if(_0x175cf2['isCollapsed']){const _0x29706a=_0x4b2d4c(_0x175cf2['getSelectedBlocks']())||this['editor']['model']['schema']['getLimitElement'](_0x175cf2);this['editor']['model']['change'](_0x2dcb5b=>{_0x2dcb5b['setSelection'](_0x29706a,'in');});}this['_normalizeSelectionStart']();const _0x56ecde=_0x175cf2['getFirstRange'](),_0x240b45=this['_wrapWithCommonAncestors'](this['editor']['model']['getSelectedContent'](_0x175cf2),_0x56ecde['start'],_0x56ecde['end']);this['_copyMarkersToFragment'](_0x240b45,_0x175cf2,{'isTableSelection':!0x1});const _0x3e72f5=_0x175cf2['getFirstRange']()['start'],_0x3250b3=new Map();let _0x5eb5b2=_0x240b45;for(let _0x446350=0x0;_0x446350<_0x3e72f5['path']['length'];_0x446350++)_0x3250b3['set'](_0x5eb5b2,_0x3e72f5['path'][_0x446350]),_0x5eb5b2=_0x5eb5b2['getChild'](0x0);return{'modelFragment':_0x240b45,'anchorData':_0x3250b3,'root':_0x3d54fb};}_getExecuteDataInTable(){const _0x5d4bcd=this['editor']['model']['document']['selection'],_0xee59dd=this['editor']['plugins']['get']('TableSelection'),_0x5ccfab=_0x5d4bcd['getFirstRange']()['start']['root'],_0x3f0fc1=_0xee59dd['getSelectionAsFragment'](),_0x1a53b9=_0x5d4bcd['getFirstRange']()['start']['parent']['parent'],_0x319d15=this['editor']['model']['createRange'](this['editor']['model']['createPositionBefore'](_0x1a53b9),this['editor']['model']['createPositionAfter'](_0x1a53b9)),_0x33636c=this['_wrapWithCommonAncestors'](_0x3f0fc1,_0x319d15['start'],_0x319d15['end']);this['_copyMarkersToFragment'](_0x33636c,_0x5d4bcd,{'isTableSelection':!0x0});const _0x1ffc82=_0x5d4bcd['getFirstRange']()['start'],_0x4f8a19=new Map();let _0x5e565c=_0x33636c;for(let _0x4d8679=0x0;_0x4d8679<_0x1ffc82['path']['length'];_0x4d8679++)if(_0x4f8a19['set'](_0x5e565c,_0x1ffc82['path'][_0x4d8679]),_0x4d8679<_0x1ffc82['path']['length']-0x1)_0x5e565c=_0x5e565c['getChild'](0x0);else{let _0x115309=_0x5e565c['nextSibling'];for(;_0x115309;)_0x4f8a19['set'](_0x115309,_0x1ffc82['path'][_0x4d8679]),_0x115309=_0x115309['nextSibling'];}return{'modelFragment':_0x33636c,'anchorData':_0x4f8a19,'root':_0x5ccfab};}async _executeAction(_0x905081,_0x528ebd,_0x3cc1a3,_0x3274ac,_0x48844e,_0x4fd9d8){const _0x20c5fc=this['editor']['plugins']['get'](_l),_0x57a244=this['editor']['plugins']['get'](Db),_0x1f9de5=this['editor']['model']['document']['selection'],_0x3bbfd2=await _0x20c5fc['modelToDataWithIds'](_0x528ebd,this['editor'],_0x3274ac['rootName']),_0x384765=this['editor']['model']['document']['version'],_0x17c026=[..._0x1f9de5['getRanges']()];return this['_actionsBalloonView']||(this['_actionsBalloonView']=this['_createActionsBalloonView']()),this['_clearInteractionHistory'](),this['_clearErrorState'](),this['_balloonShowDiff']=!0x1,this['_actionsBalloonView']['resetShowChangesButton'](),this['_actionsBalloonView']['clearContent'](),_0x57a244['open']({'targetEditor':this['editor'],'index':0x3e8*Math['random']()%0x3e8,'title':_0x48844e,'icon':_0x4fd9d8||_0x386c36,'mainView':this['_actionsBalloonView'],'class':'ck-ai-actions-balloon','ranges':_0x17c026,'id':'aiActionsBalloon'}),this['_setLoadingState'](),this['stopListening'](this['_actionsBalloonView']),this['stopListening'](_0x57a244),this['_interactionParams']={'action':_0x905081,'content':_0x3bbfd2,'version':_0x384765,'aiBalloon':_0x57a244,'modelFragment':_0x528ebd,'anchorData':_0x3cc1a3,'root':_0x3274ac},this['_setupApplyListeners'](),this['listenTo'](_0x57a244,'selectionRemoved',()=>{this['_stopInteraction'](),this['_actionsBalloonView']['disableMiniToolbarButtons']();}),this['listenTo'](_0x57a244,'dialogClosed',(_0x2686fd,{id:_0x5a37ec})=>{if('aiActionsBalloon'===_0x5a37ec){for(const _0x36678a of this['_interactions']){if(0x0===_0x36678a['replies']['length']||_0x36678a['stoppedExplicitly'])continue;const _0x4907fb=_0x36678a['replies'][_0x36678a['replies']['length']-0x1],_0x3d83ed=_0x4907fb['changeGroups'][0x0];_0x3d83ed&&'pending'===_0x3d83ed['state']&&_0x4907fb['setChangeGroupState'](0x0,'rejected');}this['_stopInteraction'](),this['_clearInteractionHistory'](),this['stopListening'](this['_actionsBalloonView']),this['stopListening'](_0x57a244);}}),this['_createInteraction'](_0x3bbfd2,_0x384765,_0x57a244,_0x905081);}_setupApplyListeners(){if(!this['_interactionParams'])return;const {modelFragment:_0xcb3a39,anchorData:_0x3c3a03,root:_0x4021ed}=this['_interactionParams'];this['listenTo'](this['_actionsBalloonView'],'applySuggestion',()=>{this['_applyChanges'](_0xcb3a39,_0x3c3a03,_0x4021ed,!0x1);}),this['listenTo'](this['_actionsBalloonView'],'insertSuggestion',()=>{this['_applyChanges'](_0xcb3a39,_0x3c3a03,_0x4021ed,!0x0);});}_wrapWithCommonAncestors(_0x23c2d5,_0x152d4a,_0x3abe8a){const _0x32992a=this['editor']['model']['createRange'](_0x152d4a,_0x3abe8a)['getCommonAncestor'](),_0x1a9941=_0x32992a['is']('documentFragment')?[]:_0x32992a['getAncestors']({'includeSelf':!0x0})['slice'](0x1);if(_0x1a9941['length']){const _0x377bc8=_0x1a9941['map'](_0x264fd1=>_0x264fd1['_clone'](!0x1));for(let _0x126c3a=0x1;_0x126c3a<_0x377bc8['length'];_0x126c3a++)_0x377bc8[_0x126c3a-0x1]['_appendChild'](_0x377bc8[_0x126c3a]);return _0x377bc8[_0x377bc8['length']-0x1]['_appendChild'](_0x23c2d5),new _0x25e1b5(_0x377bc8[0x0]);}return _0x23c2d5;}_copyMarkersToFragment(_0x3db9bd,_0x56c67d,_0x2eb4f6={'isTableSelection':!0x1}){const _0xfadd98=this['editor']['model'],_0xf759b3=Array['from'](_0x56c67d['getRanges']()),_0x4cf39a=_0x56c67d['getFirstRange']()['start'];for(const _0xaec1fc of _0xfadd98['markers']){if(_0xaec1fc['name']['startsWith']('ai-selection')||!_0xaec1fc['affectsData'])continue;const _0x129242=_0xaec1fc['getRange']();if(!_0xf759b3['some'](_0x2806f6=>_0x2806f6['containsRange'](_0x129242,!0x0)))continue;const _0xb125db=this['_regularCalculateMarkerPath'](_0x129242['start'],_0x4cf39a,_0x2eb4f6['isTableSelection']),_0x1dc7af=this['_regularCalculateMarkerPath'](_0x129242['end'],_0x4cf39a,_0x2eb4f6['isTableSelection']),_0x3af028=_0xfadd98['createPositionFromPath'](_0x3db9bd,_0xb125db),_0x4d9c8b=_0xfadd98['createPositionFromPath'](_0x3db9bd,_0x1dc7af);if(!_0x3af028['isEqual'](_0x4d9c8b)){const _0x20157d=_0xfadd98['createRange'](_0x3af028,_0x4d9c8b);_0x3db9bd['markers']['set'](_0xaec1fc['name'],_0x20157d);}}}_regularCalculateMarkerPath(_0x1ea216,_0xb3a9a9,_0x1a9272=!0x1){const _0x1c4801=[..._0x1ea216['path']['slice']()];for(let _0x277012=0x0;_0x277012<Math['max'](_0xb3a9a9['path']['length'],_0x1ea216['path']['length']);_0x277012++){const _0x3e55ac=_0xb3a9a9['path'][_0x277012]||0x0,_0x36c904=(_0x1ea216['path'][_0x277012]||0x0)-_0x3e55ac;if(_0x1c4801[_0x277012]=_0x36c904,0x0!==_0x36c904&&!_0x1a9272)break;}return _0x1c4801;}async _createInteraction(_0x2547bc,_0x3b02db,_0x51a2c7,_0x5520fe){const _0x3e287b=this['editor'],_0x52ffee=_0x3e287b['model']['document']['selection']['getFirstRange']()['start']['root'];this['_interactionParams']||(this['_interactionParams']={'action':_0x5520fe,'content':_0x2547bc,'version':_0x3b02db,'aiBalloon':_0x51a2c7,'modelFragment':this['editor']['model']['getSelectedContent'](this['editor']['model']['document']['selection']),'anchorData':new Map(),'root':_0x52ffee});const _0x520ceb=new oy({'connector':this['_aiConnector'],'locale':_0x3e287b['locale'],'content':_0x2547bc,'version':_0x3b02db,'editor':_0x3e287b,'rootName':_0x52ffee['rootName'],..._0x5520fe});this['_interactions']['push'](_0x520ceb);const _0x1d4698=(_0x384d80,_0x4cf4b1=!0x1,_0xd90cf8='streaming')=>{const {isDone:_0x38be43}=_0x384d80;return this['_promiseQueue']['enqueue'](async _0x44e59c=>{try{if(this['_isUnsupportedInlineRootChange'](_0x384d80,_0x52ffee))return this['_actionsBalloonView']['showBlockingError'](ca(_0x3e287b['locale'],'AI_SUGGESTION_NO_PARTS_WARNING')),void(_0x38be43&&this['_actionsBalloonView']['finalizeContent']());const _0x3c2c4d=Kp({'changeGroups':_0x384d80['changeGroups'],'documentContextContent':_0x384d80['documentContextContent'],'showDiff':_0x4cf4b1,'trimUnchanged':!0x1});_0x3c2c4d['length']&&await this['_actionsBalloonView']['updateContent']({'part':_0x3c2c4d[0x0],'renderingStrategy':_0xd90cf8,'abortSignal':_0x44e59c}),_0x38be43&&this['_actionsBalloonView']['finalizeContent']();}catch(_0x53158e){if(Og(_0x53158e))return;throw _0x53158e;}});};_0x520ceb['on']('replyCreated',(_0x50a047,_0x27f1e0)=>{this['_actionsBalloonView']['hideLoader'](),this['_actionsBalloonView']['startAutoScroll'](),_0x1d4698(_0x27f1e0)['catch'](_0x2fae07=>{this['_reporter']['logError'](_0x2fae07,{'context':{'operation':'reply-create'}}),this['_setErrorState'](_0x520ceb,_0x2fae07);});}),_0x520ceb['on']('replyContentUpdated',(_0xc5a0cb,_0x52a596)=>{_0x1d4698(_0x52a596)['catch'](_0x226127=>{this['_reporter']['logError'](_0x226127,{'context':{'operation':'reply-update'}}),this['_setErrorState'](_0x520ceb,_0x226127);});}),_0x520ceb['on']('interactionFinished',async()=>{try{await this['_clearLoadingState'](),this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']),await this['_promiseQueue']['queueEmptyPromise'];}catch(_0x25f647){this['_reporter']['logError'](_0x25f647,{'context':{'operation':'interaction-finish'}}),this['_setErrorState'](_0x520ceb,_0x25f647);}finally{this['_actionsBalloonView']['stopAutoScroll']();}}),this['listenTo'](this['_actionsBalloonView'],'toggleSuggestionDisplayMode',async(_0x1cc654,{showDiff:_0x4b3b7b})=>{try{this['_balloonShowDiff']=_0x4b3b7b;const _0x3f3a19=this['_interaction']['replies'][this['_interaction']['replies']['length']-0x1];_0x3f3a19&&await _0x1d4698(_0x3f3a19,_0x4b3b7b,'static');}catch(_0x28a146){this['_reporter']['logError'](_0x28a146,{'context':{'operation':'toggle-suggestion-display'}}),this['_setErrorState'](_0x520ceb,_0x28a146);}}),_0x520ceb['on']('replyChangeGroupStateUpdated',()=>{const _0xd413e6={'positiveCount':_0x520ceb['replies']['reduce']((_0x17fc5e,_0x33eb53)=>_0x17fc5e+_0x33eb53['changeGroups']['filter'](_0x2ddc0e=>'accepted'===_0x2ddc0e['state'])['length'],0x0),'totalCount':_0x520ceb['replies']['reduce']((_0x159a9d,_0x167300)=>_0x159a9d+_0x167300['changeGroups']['length'],0x0)},_0x4dffca=_0x520ceb['actionCallId'],_0x570c45=_0x520ceb['actionName'];_0x570c45?this['_aiConnector']['upsertAIActionRating'](_0x570c45,_0x4dffca,_0xd413e6):this['_aiConnector']['upsertCustomAIActionRating'](_0x4dffca,_0xd413e6);}),this['_setLoadingState']();try{const _0x12af10=await _0x520ceb['start']();return this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']),_0x12af10;}catch(_0x4dacfc){Og(_0x4dacfc)||this['_actionsBalloonView']['hideLoader'](),this['_reporter']['logError'](_0x4dacfc,{'context':{'operation':'create-interaction'}}),this['_setErrorState'](_0x520ceb,_0x4dacfc);}}_isUnsupportedInlineRootChange(_0x43040a,_0x7c9476){const _0x245367=this['editor'];return!!ll(_0x245367,_0x7c9476['rootName'])&&!fl(_0x245367,new uc((_0x43040a['changeGroups'][0x0]?.['changes']??[])['filter'](_0x528417=>'removed'!==_0x528417['type'])['map'](_0x219779=>_0x219779['node']['cloneNode'](!0x0))));}['_applyChanges'](_0x49b972,_0x282cba,_0x47b99c,_0x11d37a){const _0x31bb95=this['editor'];if(_0x11d37a&&!_0x31bb95['plugins']['has']('TrackChanges'))throw new _0x4242d4('ai-no-track-changes',null);const _0x108aca=this['editor']['plugins']['get'](Op),_0xbb506d=this['_interactions'][this['_interactions']['length']-0x1-this['_currentInteractionIndex']];if(!_0xbb506d||!_0xbb506d['replies']['length'])return;const _0x5ba660=_0xbb506d['replies'][_0xbb506d['replies']['length']-0x1];if(this['_isUnsupportedInlineRootChange'](_0x5ba660,_0x47b99c))return void this['_actionsBalloonView']['showBlockingError'](ca(_0x31bb95['locale'],'AI_SUGGESTION_NO_PARTS_WARNING'));_0x5ba660['setChangeGroupState'](0x0,'accepted');const _0x3d020e=Ug({'documentSuggestions':Vg({'groups':[_0x5ba660['changeGroups'][0x0]],'documentContextContent':_0x5ba660['documentContextContent'],'documents':_0xbb506d['getDocumentContext']()['documents']}),'transform':!0x1,'documentCompare':_0x108aca,'documentCompareOptions':{'anchor':_0x31bb95['model']['createPositionAt'](_0x49b972,0x0),'markDeletions':_0x11d37a}})['values']()['next']()['value']??[],_0x4d17dd=this['_filterOperationsOutsideRange'](_0x3d020e,_0x282cba);for(const _0x318c2f of _0x4d17dd)this['_anchorOperation'](_0x282cba,_0x318c2f,_0x47b99c);const _0x1dc83d=_0xbb506d['getDocumentContext']()['documents'][0x0]['version'],_0x394618=_0x4e362f(_0x4d17dd,_0x31bb95['model']['document']['history']['getOperations'](_0x1dc83d),{'document':_0x31bb95['model']['document'],'useRelations':!0x1,'padWithNoOps':!0x1})['operationsA'];ag(_0x394618,'quickActions');try{_0x31bb95['model']['change'](_0x5d4a85=>{_0x5d4a85['setSelection'](_0x31bb95['model']['document']['selection']['focus']),_0x11d37a?_0x31bb95['plugins']['get']('TrackChangesEditing')['_applyOperationsAsSuggestions'](_0x394618):_0x108aca['applyOperations'](_0x5d4a85,_0x394618);});}catch(_0x19ca15){throw this['_reporter']['logError'](new wg({'code':'ai-applying-suggestion-failed','type':'runtime','cause':_0x19ca15})),_0x19ca15;}this['editor']['plugins']['get']('AIBalloon')['close']();}_filterOperationsOutsideRange(_0x54d65d,_0x223e2e){return _0x54d65d['filter'](_0x583caf=>{if('rename'==_0x583caf['type']){const _0x412143=_0x583caf['position']['nodeAfter'];return!_0x223e2e['has'](_0x412143);}if(_0x583caf['type']['indexOf']('Attribute')>-0x1){const _0x1ba98c=_0x583caf['range']['start']['nodeAfter'];return!_0x223e2e['has'](_0x1ba98c);}return!0x0;});}_anchorOperation(_0x2ba837,_0x5ac8b4,_0x4f2770){const _0x266fa1=_0x5ac8b4['clone']();for(const _0x11d599 in _0x5ac8b4){const _0x12d027=_0x5ac8b4[_0x11d599];_0x12d027 instanceof _0x45ca57?_0x5ac8b4[_0x11d599]=new _0x45ca57(_0x688e28(_0x12d027['start']),_0x688e28(_0x12d027['end'])):_0x12d027 instanceof _0x34c45c&&(_0x5ac8b4[_0x11d599]=_0x688e28(_0x12d027));}if(['insert','move','remove','reinsert','split','merge']['includes'](_0x266fa1['type'])){if(_0x266fa1['isDocumentOperation']=!0x1,_0x266fa1['baseVersion']=null,'remove'==_0x266fa1['type']){const _0x13e71e=_0x266fa1['sourcePosition'],_0x3a2013=_0x266fa1['howMany'];new _0x44a63a(_0x13e71e,_0x3a2013)['_execute']();}else _0x266fa1['_execute']();}function _0x688e28(_0x3839cf){if('$graveyard'==_0x3839cf['root']['rootName'])return _0x3839cf;const _0x2d2411=[];let _0x2127be=_0x3839cf['root'];for(let _0x337c93=0x0;_0x337c93<_0x3839cf['path']['length'];_0x337c93++){const _0x37612b=_0x2ba837['get'](_0x2127be)||0x0;_0x2d2411[_0x337c93]=_0x3839cf['path'][_0x337c93]+_0x37612b,_0x2127be=_0x2127be['getChildAtOffset'](_0x3839cf['path'][_0x337c93]);}return new _0x34c45c(_0x4f2770,_0x2d2411,_0x3839cf['stickiness']);}}_refreshInteraction(){if(!this['_interactionParams'])return;this['_interactions']['length']>0x0&&this['_stopInteraction'](),this['_currentInteractionIndex']=0x0,this['_balloonShowDiff']=!0x1;const {action:_0x2ae7f3,content:_0x407a6e,version:_0x2f10e2,aiBalloon:_0x55561e}=this['_interactionParams'];this['_clearErrorState'](),this['_actionsBalloonView']['clearContent'](),this['_actionsBalloonView']['showLoader'](),this['_actionsBalloonView']['resetShowChangesButton'](),this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']),this['stopListening'](this['_actionsBalloonView']),this['_setupApplyListeners'](),this['_createInteraction'](_0x407a6e,_0x2f10e2,_0x55561e,_0x2ae7f3)['catch'](_0x4b7972=>{this['_reporter']['logError'](_0x4b7972,{'context':{'operation':'refresh-interaction'}});});}_clearInteractionHistory(){this['_interactions']=[],this['_interactionParams']=void 0x0,this['_currentInteractionIndex']=0x0,this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']);}_stopInteraction(){this['_interaction']&&this['_interaction']['stop'](),this['_promiseQueue']['abort'](),this['isBusy']=!0x1,this['_interactionParams']&&this['_actionsBalloonView']['stopAutoScroll']();}_navigateToPrevious(){const _0x2f3c29=this['_interactions']['length'];this['_currentInteractionIndex']<_0x2f3c29-0x1&&this['_displayInteractionAtIndex'](this['_currentInteractionIndex']+0x1);}_navigateToNext(){this['_currentInteractionIndex']>0x0&&this['_displayInteractionAtIndex'](this['_currentInteractionIndex']-0x1);}async _displayInteractionAtIndex(_0x2449ca){if(!this['_interactionParams'])return;this['_currentInteractionIndex']=_0x2449ca;const _0x1f7420=this['_interactions'][this['_interactions']['length']-0x1-this['_currentInteractionIndex']];if(!_0x1f7420)return;if(_0x1f7420['hasError'])return this['_setErrorState'](_0x1f7420),void this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']);if(!_0x1f7420['replies']['length'])return;this['_actionsBalloonView']['hideError'](),this['_interactionParams']&&this['_clearErrorState']();const _0x5de0e7=_0x1f7420['replies'][_0x1f7420['replies']['length']-0x1];if(_0x5de0e7)try{const _0x1b274e=Kp({'changeGroups':_0x5de0e7['changeGroups'],'documentContextContent':_0x5de0e7['documentContextContent'],'showDiff':this['_balloonShowDiff'],'trimUnchanged':!0x1});await new Promise(_0x367562=>setTimeout(_0x367562,0x32)),await this['_actionsBalloonView']['updateContent']({'part':_0x1b274e[0x0],'renderingStrategy':'static','abortSignal':new AbortController()['signal']});}catch(_0x256360){this['_reporter']['logError'](_0x256360,{'context':{'operation':'navigation-update'}});}this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']);}_setLoadingState(){this['_actionsBalloonView']['setIsLoading'](!0x0),this['isBusy']=!0x0;}async _setErrorState(_0x542636,_0x521c8f){if(void 0x0!==_0x521c8f&&Og(_0x521c8f))return;const _0x1edc95=ca(this['editor']['locale'],'AI_ACTIONS_GENERIC_ERROR');this['_actionsBalloonView']['showError'](_0x1edc95),_0x542636['hasError']=!0x0,await this['_promiseQueue']['queueEmptyPromise'],this['_actionsBalloonView']['setErrorState'](),this['_actionsBalloonView']['toggleIsLoading'](!0x0);}_clearErrorState(){this['_actionsBalloonView']['hideError'](),this['_actionsBalloonView']['toggleIsLoading'](!0x1);}async _clearLoadingState(){await this['_promiseQueue']['queueEmptyPromise'],this['isBusy']=!0x1,this['_actionsBalloonView']['setIsLoading'](!0x1);}},fy=class extends _0x11fe30{static get requires(){return[ty,ny,dy];}static get['pluginName'](){return'AIQuickActions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9d243){super(_0x9d243),_0x9d243['config']['define']('ai.quickActions',{'extraCommands':[],'removeCommands':[],'isSearchEnabled':!0x0});}},my=class extends _0x2f6e1a{resultResponseView;acceptButtonView;dismissButtonView;infoButtonView;outdatedButtonView;constructor(_0xceac9e,_0x458b13){super(_0xceac9e),this['id']=_0x458b13,this['set']('status','pending'),this['set']('changeId',_0x458b13),this['resultResponseView']=this['_createResultResponseView'](),this['acceptButtonView']=this['_createAcceptButtonView'](),this['dismissButtonView']=this['_createDismissButtonView'](),this['infoButtonView']=this['_createInfoButtonView'](),this['outdatedButtonView']=this['_createOutdatedButtonView'](),this['set']('isInfoToggleOn',!0x1),this['set']('isActive',!0x1),this['set']('showDiff',!0x0),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-result',this['bindTemplate']['if']('isActive','ck-ai_review__check-run-result_active')]},'on':{'click':this['bindTemplate']['to']('click'),'mouseover':this['bindTemplate']['to']('mouseover'),'mouseout':this['bindTemplate']['to']('mouseout')},'children':[this['resultResponseView'],{'tag':'div','attributes':{'class':['ck-ai_review__check-run-result-footer']},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-run-result-action-buttons']},'children':[this['acceptButtonView'],this['dismissButtonView'],this['outdatedButtonView']]},this['infoButtonView']]}]}),this['on']('click',(_0x1fc56a,_0xcc0085)=>{_0xcc0085&&_0xcc0085['target']&&'A'===_0xcc0085['target']['tagName']&&_0xcc0085['preventDefault'](),this['fire']('activateChange',{'id':_0x458b13,'source':this,'uiInteraction':'click'});}),this['on']('mouseover',()=>{this['fire']('activateChange',{'id':_0x458b13,'source':this,'uiInteraction':'hover'});}),this['on']('mouseout',()=>{this['fire']('deactivateChange',{'origin':'panel','id':_0x458b13,'source':this});}),this['on']('change:showDiff',()=>this['_syncResponseVisibility']());}['render'](){super['render'](),this['_syncResponseVisibility']();}setItemAsActive(){this['isActive']=!0x0;}setItemAsInactive(){this['isActive']=!0x1;}_createResultResponseView(){const _0x3794e0=new _0x2f6e1a(this['locale']);return _0x3794e0['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-content','ck-reset_all-excluded','ck-ai_review__check-run-result-response']}}),_0x3794e0;}updateResponseContent(_0x1d07d9,_0x442920){const _0x53cbf5=_0x442920||'div',_0xb14c58=this['resultResponseView']['element'];if(_0xb14c58['tagName']['toLowerCase']()!==_0x53cbf5){const _0x5db549=new _0xf3a581({'tag':_0x53cbf5,'attributes':{'class':_0xb14c58['className']}})['render']();_0xb14c58['replaceWith'](_0x5db549),this['resultResponseView']['element']=_0x5db549,this['_syncResponseVisibility']();}this['resultResponseView']['element']['innerHTML']=_0x1d07d9;}_syncResponseVisibility(){this['resultResponseView']['element']?.['classList']['toggle']('ck-hidden',!this['showDiff']);}_createAcceptButtonView(){const _0x3a8bb0=new _0x39ae99(this['locale']);return _0x3a8bb0['set']({'label':ca(this['locale'],'AI_REVIEW_MODE_ACCEPT_CHANGE'),'withText':!0x0}),_0x3a8bb0['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x3aee58=>{this['fire']('acceptChange',{'id':this['changeId']}),_0x3aee58['stopPropagation']();})},'attributes':{'class':[this['bindTemplate']['if']('status','ck-hidden',_0x2edf7f=>'pending'!==_0x2edf7f&&'accepted'!==_0x2edf7f),this['bindTemplate']['if']('status',_g,_0x3764d1=>'pending'===_0x3764d1),this['bindTemplate']['if']('status',Eg,_0x2f1bf9=>'pending'!==_0x2f1bf9),this['bindTemplate']['if']('status','ck-ai_review__check-run-result-status-button',_0x4f8f14=>'accepted'===_0x4f8f14)]}}),this['on']('change:status',(_0x25350d,_0xf7d0a5,_0x141668)=>{_0x3a8bb0['isEnabled']='pending'===_0x141668,'accepted'===_0x141668&&(_0x3a8bb0['label']=ca(this['locale'],'AI_REVIEW_MODE_CHECK_STATUS_ACCEPTED'),_0x3a8bb0['icon']=_0x2659e3);}),_0x3a8bb0;}_createDismissButtonView(){const _0x4d1249=new _0x39ae99(this['locale']);return _0x4d1249['set']({'label':ca(this['locale'],'AI_REVIEW_MODE_DISMISS_CHANGE'),'withText':!0x0}),_0x4d1249['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x5324e7=>{this['fire']('dismissChange',{'id':this['changeId']}),_0x5324e7['stopPropagation']();})},'attributes':{'class':[Eg,this['bindTemplate']['if']('status','ck-hidden',_0x380d4c=>'pending'!==_0x380d4c&&'rejected'!==_0x380d4c),this['bindTemplate']['if']('status','ck-ai_review__check-run-result-dismiss-button',_0xa4d6c4=>'pending'===_0xa4d6c4),this['bindTemplate']['if']('status','ck-ai_review__check-run-result-status-button',_0x5dbbc0=>'rejected'===_0x5dbbc0)]}}),this['on']('change:status',(_0x4c3504,_0x1d0378,_0x5a7a08)=>{_0x4d1249['isEnabled']='pending'===_0x5a7a08,'rejected'===_0x5a7a08&&(_0x4d1249['label']=ca(this['locale'],'AI_REVIEW_MODE_CHECK_STATUS_REJECTED'),_0x4d1249['icon']=_0x2f7d46);}),_0x4d1249;}_createInfoButtonView(){const _0x1208aa=new _0x39ae99(this['locale']);return _0x1208aa['set']({'label':ca(this['locale'],'AI_REVIEW_MODE_LEARN_MORE'),'icon':wt,'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox','class':Eg+'\x20ck-ai_review__check-run-result-info-button\x20ck-hidden'}),_0x1208aa['bind']('isOn')['to'](this,'isInfoToggleOn',_0x23bdcd=>_0x23bdcd),_0x1208aa['on']('execute',()=>{this['isInfoToggleOn']=!this['isInfoToggleOn'];}),_0x1208aa;}_createOutdatedButtonView(){const _0x2d6d7b=new _0x39ae99(this['locale']);return _0x2d6d7b['set']({'label':ca(this['locale'],'AI_REVIEW_MODE_CHECK_STATUS_OUTDATED'),'icon':Qt,'withText':!0x0,'isEnabled':!0x1}),_0x2d6d7b['extendTemplate']({'attributes':{'class':[Eg,'ck-ai_review__check-run-result-status-button',this['bindTemplate']['if']('status','ck-hidden',_0x488515=>'outdated'!==_0x488515)],'disabled':'disabled'}}),_0x2d6d7b;}},py=class extends _0x42b496{resultItemView;_pinnedRectIndex=void 0x0;_pinnedTargetElement=void 0x0;_pinnedTargetChangeId=void 0x0;constructor(_0x6ccde7,_0x298284){super(_0x6ccde7),this['set']({'isVisible':!0x1,'position':'arrow_se','class':null,'top':0x0,'left':0x0}),this['extendTemplate']({'tag':'div','attributes':{'class':['ck-reset'],'tabindex':'-1'}}),this['set']('isDiffActive',!0x1),this['content']['add'](this['_createContentView']()),_0x298284['add'](this);}['render'](){super['render'](),this['_setupClickOutsideHandler']();}updateContent(_0x5f1c7f){this['resultItemView']['changeId']=_0x5f1c7f['id'],this['resultItemView']['updateResponseContent'](_0x5f1c7f['contentDiffed'],_0x5f1c7f['wrapperTag']);}['showBalloon'](_0x491c63,_0x43a1d3,_0x12443d,_0x39935b,_0x4c3131,_0x3b2ee1){const _0x5929f5=_0x43a1d3();if(!_0x5929f5)return;this['updateContent'](_0x491c63),this['show']();const _0x5be3f1=Array['from'](_0x5929f5['getClientRects']())['reverse'](),_0x401b18=this['_getPointedRectIndexFromEvent'](_0x12443d,_0x5be3f1),_0x342324=_0x5be3f1[_0x401b18??0x0];'click'===_0x39935b?(this['isDiffActive']=!0x0,this['pin']({'target':()=>this['_getBestRectPositionOnClick'](_0x43a1d3(),_0x401b18,_0x491c63['id'],_0x4c3131,_0x3b2ee1)||_0x342324})):'hover'===_0x39935b&&(this['isDiffActive']=!0x1,this['pin']({'target':()=>this['_getBestRectPositionOnHover'](_0x43a1d3(),_0x401b18,_0x491c63['id'])||_0x342324}));}['hideBalloon'](){this['hide'](),this['unpin'](),this['_pinnedRectIndex']=void 0x0,this['_pinnedTargetElement']=void 0x0,this['_pinnedTargetChangeId']=void 0x0;}['hideDiffInBalloon'](){this['resultItemView']['showDiff']=!0x1;}['showDiffInBalloon'](){this['resultItemView']['showDiff']=!0x0;}deactivateChange(){this['fire']('deactivateChange',{'origin':'balloon'});}_setupClickOutsideHandler(){_0xca2f72({'emitter':this,'activator':()=>this['isVisible'],'contextElements':()=>{const _0x2e44a4=[this['element']];return this['_pinnedTargetElement']&&_0x2e44a4['push'](this['_pinnedTargetElement']),_0x2e44a4;},'callback':()=>{this['hide'](),this['unpin'](),this['deactivateChange'](),this['_pinnedTargetElement']=void 0x0,this['_pinnedRectIndex']=void 0x0,this['_pinnedTargetChangeId']=void 0x0;}});}_createContentView(){const _0x3b27a7=new _0x2f6e1a();return this['resultItemView']=new my(this['locale'],''),this['resultItemView']['resultResponseView']['extendTemplate']({'attributes':{'class':['ck-content']}}),this['resultItemView']['delegate']('acceptChange','dismissChange')['to'](this),_0x3b27a7['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-ai_review-balloon-panel-suggestion',this['bindTemplate']['if']('isDiffActive','ck-ai_review-balloon-panel-suggestion_diff-active')]},'children':[{'tag':'p','attributes':{'class':['ck-ai_review__suggestion-text']},'children':[this['resultItemView']]}]}),_0x3b27a7;}_getBestRectPositionOnClick(_0x2bc8af,_0x195dba,_0x4e13ff,_0x1755fd,_0x477813){if(!_0x2bc8af)return null;const _0x1485bb=this['position']['replace']('arrow_',''),_0x235eca=Array['from'](_0x2bc8af['getClientRects']());let _0x1d63d4,_0x3bd32c=_0x235eca['reverse']();return void 0x0!==_0x195dba&&this['_isPinnedRectVisible'](_0x3bd32c[_0x195dba],_0x1755fd,_0x477813)?(_0x1d63d4=_0x3bd32c[_0x195dba],this['_pinnedRectIndex']=_0x195dba):this['_isPinnedRectVisible'](_0x3bd32c[0x0],_0x1755fd,_0x477813)&&void 0x0===_0x195dba?_0x1d63d4=_0x3bd32c[0x0]:(_0x3bd32c='s'==_0x1485bb[0x0]?[..._0x235eca]['reverse']():_0x235eca,_0x3bd32c['forEach'](_0x544478=>{this['_isPinnedRectVisible'](_0x544478,_0x1755fd,_0x477813)&&(_0x1d63d4=_0x544478);})),this['_pinnedTargetChangeId']=_0x4e13ff,this['_pinnedTargetElement']=_0x2bc8af,_0x1d63d4||_0x2bc8af['getBoundingClientRect']();}_getBestRectPositionOnHover(_0x5eabba,_0x827070,_0x24a514){if(!_0x5eabba)return null;const _0x454677=Array['from'](_0x5eabba['getClientRects']())['reverse']();return void 0x0===this['_pinnedRectIndex']&&void 0x0!==_0x827070&&this['_pinnedTargetChangeId']!==_0x24a514?(this['_pinnedRectIndex']=_0x827070,this['_pinnedTargetElement']=_0x5eabba,this['_pinnedTargetChangeId']=_0x24a514,_0x454677[_0x827070]):void 0x0!==this['_pinnedRectIndex']&&this['_pinnedTargetChangeId']===_0x24a514?_0x5eabba!==this['_pinnedTargetElement']?Array['from'](this['_pinnedTargetElement']['getClientRects']())['reverse']()[this['_pinnedRectIndex']]:_0x454677[this['_pinnedRectIndex']]:void 0x0!==_0x827070&&this['_pinnedTargetChangeId']!==_0x24a514?(this['_pinnedRectIndex']=_0x827070,this['_pinnedTargetElement']=_0x5eabba,this['_pinnedTargetChangeId']=_0x24a514,_0x454677[_0x827070]):_0x5eabba['getBoundingClientRect']();}_getPointedRectIndexFromEvent(_0x38d1be,_0x24cf2f){if(_0x38d1be)for(let _0x5992f2=0x0;_0x5992f2<_0x24cf2f['length'];_0x5992f2++){const _0xb78371=_0x24cf2f[_0x5992f2];if(_0x38d1be['clientX']>=_0xb78371['left']-0x3&&_0x38d1be['clientX']<=_0xb78371['right']+0x3&&_0x38d1be['clientY']>=_0xb78371['top']-0x3&&_0x38d1be['clientY']<=_0xb78371['bottom']+0x3)return _0x5992f2;}}_isPinnedRectVisible(_0x629b99,_0x127675,_0x5662c5){const _0xa8dda3=new _0x517140(_0x629b99),_0x230d76=_0x127675||document['documentElement'],_0x124b99=_0xa8dda3['getIntersection'](_0x32d195(_0x5662c5)),_0x57cdce=new _0x517140(_0x230d76)['getIntersection'](_0xa8dda3);return!!(_0x124b99&&_0x57cdce&&_0xa8dda3['width']>0x0);}};const gy=['getReviewCheckList','runReviewCheck','abortReviewStream','toggleDiff','acceptAllChanges','leaveReviewCoreResultList','activateChange','deactivateChange','acceptChange','dismissChange','learnMore','finishReview','retryReview'];var Oy=class extends _0x4dd342{['_mainView'];_balloonSuggestionView;_bodyCollection;static get requires(){return[ea];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x30c290){super(_0x30c290),this['_bodyCollection']=Ag(this['context']['locale']),this['_mainView']=this['createMainView'](),this['_mainView']['delegate'](...gy)['to'](this),this['_balloonSuggestionView']=new py(this['context']['locale'],this['_bodyCollection']),this['_balloonSuggestionView']['delegate']('acceptChange','dismissChange','deactivateChange')['to'](this);}init(){const _0x1c6a97=this['context']['plugins']['get']('AITabs');this['registerTab'](_0x1c6a97);}destroy(){this['_bodyCollection']['detachFromDom'](),super['destroy']();}setAvailableChecks(_0x218f03){if(!this['_mainView']['reviewCheckListView']['hasChecks']()){const _0x3563cc=!this['context']['config']['get']('ai.models.showModelSelector');this['_mainView']['reviewCheckListView']['setChecks'](_0x218f03,_0x3563cc);}this['_mainView']['showReviewCheckListView']();}showReviewCheckList(){this['fire']('getReviewCheckList');}showCheckRunResults(_0x2c85c0){_0x2c85c0&&('error-general'!==_0x2c85c0['status']?'error-chunk'!==_0x2c85c0['status']?this['_mainView']['showReviewCheckResultsView']():this['showChunkErrorView']():this['showGeneralResultsErrorView']());}showCheckRunResult(_0x5ee61a){this['_mainView']['addCheckRunResult'](_0x5ee61a);}showGeneralResultsErrorView(){this['_mainView']['showGeneralResultsErrorView']();}['showGeneralReviewCoreErrorView'](_0x3274e4){this['_mainView']['showGeneralReviewCoreErrorView'](_0x3274e4??ca(this['context']['locale'],'AI_REVIEW_INITIALIZATION_ERROR_MESSAGE'));}['showChunkErrorView'](){this['_mainView']['showChunkErrorView']();}showUnsupportedInlineChangeView(){this['_mainView']['showUnsupportedInlineChangeView']();}setCheckResultTitle(_0x43ffd9,_0x539f8a){this['_mainView']['reviewCheckResultsView']['setTitle'](_0x43ffd9,_0x539f8a);}setAcceptAllEnabled(_0x3aef3a){this['_mainView']['reviewCheckResultsView']['setAcceptAllEnabled'](_0x3aef3a);}setActiveStateInResults(_0x29f712){this['_mainView']['reviewCheckResultsView']['getResults']()['forEach'](_0x527ad4=>{_0x527ad4['id']===_0x29f712&&_0x527ad4['setItemAsActive']();});}resetActiveStateInResults(){this['_mainView']['reviewCheckResultsView']['getResults']()['forEach'](_0x2a535d=>_0x2a535d['setItemAsInactive']());}updateChangeState(_0x4d73a9,_0x11ec4a){'accepted'===_0x11ec4a||'rejected'===_0x11ec4a||'outdated'===_0x11ec4a?this['_mainView']['reviewCheckResultsView']['hideResult'](_0x4d73a9,_0x11ec4a):this['_mainView']['reviewCheckResultsView']['showResult'](_0x4d73a9,_0x11ec4a);}showReviewCompletedView(){this['_mainView']['showReviewCompletedView']();}showActionsWhenResultIsReady(){this['_mainView']['showActionsWhenResultIsReady']();}['showNoChangesView'](){this['_mainView']['showNoChangesView']();}hideActionsWhenResultIsReady(){this['_mainView']['hideActionsWhenResultIsReady']();}['showChangeBalloon'](_0x4b5358,_0x256144,_0x4dd29c,_0x17f658,_0x408406,_0x44a958){this['_balloonSuggestionView']['showBalloon'](_0x4b5358,_0x256144,_0x4dd29c,_0x17f658,_0x408406,_0x44a958);}['hideChangeBalloon'](){this['_balloonSuggestionView']['hideBalloon']();}['hideDiffInBalloon'](){this['_balloonSuggestionView']['hideDiffInBalloon']();}['showDiffInBalloon'](){this['_balloonSuggestionView']['showDiffInBalloon']();}getChangeElement(_0x423fe8){const _0x23df69=this['_mainView']['reviewCheckResultsView']['getResults']()['find'](_0x7c3f9b=>_0x7c3f9b['id']===_0x423fe8);return _0x23df69?_0x23df69['element']:null;}deactivateChange(){this['_balloonSuggestionView']['deactivateChange']();}},wy=class extends _0x2f6e1a{constructor(_0x440c2f){super(_0x440c2f),this['set']('isVisible',!0x1),this['set']('errorMessage','');const _0x4789b7=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai_review__general-error-container',_0x4789b7['if']('isVisible','ck-hidden',_0x1d99c3=>!_0x1d99c3)]},'children':[{'tag':'p','attributes':{'class':'ck\x20ck-ai-notification\x20ck-ai-notification_error'},'children':[{'text':_0x4789b7['to']('errorMessage')}]}]});}},by=class extends _0x2f6e1a{['reviewCoreHeader'];['generalErrorView'];reviewCheckListView;reviewCheckResultsView;reviewCompletedView;constructor(_0x4dc8f3,_0x3f9866){super(_0x4dc8f3),this['reviewCoreHeader']=_0x3f9866['header'],this['generalErrorView']=new wy(_0x4dc8f3),this['reviewCheckListView']=_0x3f9866['list'],this['reviewCheckListView']['delegate'](...gy)['to'](this),this['reviewCheckResultsView']=_0x3f9866['results'],this['reviewCheckResultsView']['delegate'](...gy)['to'](this),this['reviewCompletedView']=_0x3f9866['completed'],this['reviewCompletedView']['delegate']('finishReview')['to'](this),this['reviewCheckListView']['set']('isVisible',!0x1),this['reviewCheckResultsView']['set']('isVisible',!0x1),this['reviewCheckResultsView']['set']('isLoading',!0x1),this['reviewCheckResultsView']['set']('isResultReady',!0x1),this['reviewCompletedView']['set']('isVisible',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-ai-review','ck-rounded-corners'],'dir':'ltr'},'children':[this['reviewCoreHeader'],this['generalErrorView'],this['reviewCheckListView'],this['reviewCheckResultsView'],this['reviewCompletedView']]});}showReviewCheckListView(){this['reviewCheckListView']['resetAllParameterizedChecks'](),this['reviewCheckListView']['set']('isVisible',!0x0),this['reviewCheckResultsView']['set']('isVisible',!0x1),this['reviewCompletedView']['set']('isVisible',!0x1);}showReviewCheckResultsView(){this['hideActionsWhenResultIsReady'](),this['reviewCheckResultsView']['resetErrorState'](),this['reviewCheckListView']['set']('isVisible',!0x1),this['reviewCheckResultsView']['set']('isVisible',!0x0),this['reviewCheckResultsView']['clearResults'](),this['reviewCheckResultsView']['set']('isLoading',!0x0),this['reviewCheckResultsView']['set']('isCompleted',!0x1);}addCheckRunResult(_0xb5151a){this['reviewCheckResultsView']['addResult'](_0xb5151a),this['reviewCheckResultsView']['set']('isLoading',!0x1);}showReviewCompletedView(){this['reviewCheckResultsView']['set']('isVisible',!0x0),this['reviewCompletedView']['set']('isVisible',!0x1),this['reviewCheckResultsView']['set']('isCompleted',!0x0),this['reviewCheckListView']['set']('isVisible',!0x1);}showActionsWhenResultIsReady(){this['reviewCheckResultsView']['isResultReady']?(this['reviewCheckListView']['set']('isVisible',!0x1),this['reviewCheckResultsView']['set']('isVisible',!0x0),this['reviewCompletedView']['set']('isVisible',!0x1)):this['reviewCheckResultsView']['isResultReady']=!0x0;}['showNoChangesView'](){this['reviewCheckListView']['set']('isVisible',!0x1),this['reviewCheckResultsView']['set']('isVisible',!0x1),this['reviewCompletedView']['set']('isVisible',!0x0);}hideActionsWhenResultIsReady(){this['reviewCheckResultsView']['isResultReady']=!0x1;}['showGeneralReviewCoreErrorView'](_0x5a7b7c){this['generalErrorView']['set']('isVisible',!0x0),this['generalErrorView']['errorMessage']=_0x5a7b7c;}showGeneralResultsErrorView(){this['reviewCheckResultsView']['set']('isLoading',!0x1),this['showActionsWhenResultIsReady'](),this['reviewCheckResultsView']['showGeneralErrorMessage']();}['showChunkErrorView'](){this['reviewCheckResultsView']['set']('isLoading',!0x1),this['showActionsWhenResultIsReady'](),this['reviewCheckResultsView']['showChunkErrorMessage']();}showUnsupportedInlineChangeView(){this['reviewCheckResultsView']['set']('isLoading',!0x1),this['showActionsWhenResultIsReady'](),this['reviewCheckResultsView']['showUnsupportedInlineChangeMessage']();}},yy=class extends _0x39ae99{constructor(_0x4d4a13,_0x498405){super(_0x498405),this['set']({'label':_0x4d4a13,'withText':!0x0,'class':vg}),this['on']('execute',()=>{this['fire']('finishReview');});}},vy=class extends _0x585012{_resultViews;_resultsHeader;_resultsBody;['reviewDisclaimer'];_cancelButtonView;_acceptAllButtonView;_exitReviewButtonView;_toggleDiffButtonView;['_errorMessageView'];_finishReviewButtonView;_contents;constructor(_0x3e073f,_0x123691){super(_0x3e073f),this['_contents']=_0x123691,this['_resultViews']=new _0x18940b(),this['_cancelButtonView']=this['_createCancelButtonView'](),this['_acceptAllButtonView']=this['_createAcceptAllButtonView'](),this['_exitReviewButtonView']=this['_createExitReviewButtonView'](),this['_toggleDiffButtonView']=this['_createToggleDiffButtonView'](),this['_finishReviewButtonView']=this['_createFinishReviewButtonView'](),this['_resultsHeader']=this['_createResultHeaderView'](),this['_resultsBody']=this['_createResultsBodyView'](),this['_errorMessageView']=this['_createErrorView'](),this['reviewDisclaimer']=new hb(_0x3e073f),this['set']('isLoading',!0x1),this['set']('isToggleDiffOn',!0x1),this['set']('isResultReady',!0x1),this['set']('headerTitle',''),this['set']('headerSubtitle',''),this['set']('isError',!0x1),this['set']('showErrorMessage',!0x1),this['set']('errorType','general'),this['set']('isCompleted',!0x1),this['set']('isAcceptAllEnabled',!0x1),this['_acceptAllButtonView']['bind']('isEnabled')['to'](this,'isAcceptAllEnabled',this,'isError',(_0x1a25e8,_0x2e3a51)=>_0x1a25e8&&!_0x2e3a51);const _0x18d01c=this['_createCombinedSkeletonLoader'](),_0x104222=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run',_0x104222['if']('isLoading','ck-ai_review__check-run_loading',_0x205d17=>_0x205d17),_0x104222['if']('isResultReady','ck-ai_review__check-run_ready',_0x316ab1=>_0x316ab1),_0x104222['if']('isVisible','ck-hidden',_0x55f788=>!_0x55f788)]},'children':[this['_resultsHeader'],this['_errorMessageView'],this['_resultsBody'],_0x18d01c,this['reviewDisclaimer']]});}clearResults(){this['_resultViews']['clear'](),this['_resultsBody']['element']&&(this['_resultsBody']['element']['scrollTop']=0x0);}getResults(){return this['_resultViews'];}addResult(_0x473f5e){const _0x415217=new my(this['locale'],_0x473f5e['id']);_0x415217['delegate']('acceptChange','dismissChange','activateChange','deactivateChange')['to'](this),this['_resultViews']['add'](_0x415217),_0x415217['updateResponseContent'](_0x473f5e['contentDiffed'],_0x473f5e['wrapperTag']);}hideResult(_0x5a6359,_0x3657f9){if('pending'===_0x3657f9)return;const _0x3e02b9=this['_resultViews']['find'](_0x30f4bf=>_0x30f4bf['id']===_0x5a6359);_0x3e02b9&&(_0x3e02b9['status']=_0x3657f9,_0x3e02b9['element']?.['classList']['add']('ck-ai_review__check-run-result_grayout'));}showResult(_0x3a63ea,_0x51ab22){if('pending'!==_0x51ab22)return;const _0x5bf259=this['_resultViews']['find'](_0x43f25d=>_0x43f25d['id']===_0x3a63ea);_0x5bf259&&(_0x5bf259['status']=_0x51ab22,_0x5bf259['element']?.['classList']['remove']('ck-ai_review__check-run-result_grayout'));}setTitle(_0x5d9824,_0x4e8192){this['headerTitle']=_0x5d9824,this['headerSubtitle']=_0x4e8192||'';}['showChunkErrorMessage'](){this['errorType']='chunk',this['showErrorMessage']=!0x0;}showUnsupportedInlineChangeMessage(){this['errorType']='unsupported-inline',this['showErrorMessage']=!0x0;}['showGeneralErrorMessage'](){this['isError']=!0x0,this['errorType']='general',this['showErrorMessage']=!0x0;}resetErrorState(){this['isError']=!0x1,this['errorType']='general',this['showErrorMessage']=!0x1;}setAcceptAllEnabled(_0x380b0c){this['isAcceptAllEnabled']=_0x380b0c;}_createSkeletonLoader(){return new yO(this['locale'],vO['aiReviewChecks']);}_createCombinedSkeletonLoader(){const _0x1c55f4=new _0x2f6e1a(this['locale']),_0x36fd74=[];for(let _0x206be5=0x0;_0x206be5<0x10;_0x206be5++){const _0x1e9b32=this['_createSkeletonLoader']();_0x1e9b32['extendTemplate']({'attributes':{'class':['ck-ai_review__check-run-skeleton-item']}}),_0x36fd74['push'](_0x1e9b32);}return _0x1c55f4['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x9a5c59=>!_0x9a5c59)]},'children':_0x36fd74}),_0x1c55f4;}_createResultsBodyView(){const _0x43dd6a=new _0x2f6e1a(this['locale']);return _0x43dd6a['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-container','ck-reset_all-excluded',this['bindTemplate']['if']('isLoading','ck-hidden',_0x35b5b7=>_0x35b5b7)]},'children':this['_resultViews']}),_0x43dd6a;}_createErrorView(){const _0x5d0be8=new _0x2f6e1a(this['locale']),_0x54b3ae=new _0x39ae99(this['locale']),t=this['locale']['t'];return _0x5d0be8['delegate']('retryReview')['to'](this),_0x54b3ae['set']({'label':t('Try\x20again'),'withText':!0x0,'class':_g+'\x20ck-ai_review__check-run-error-retry-button'}),_0x54b3ae['on']('execute',()=>{this['fire']('retryReview');}),_0x5d0be8['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x15b4c8=>!_0x15b4c8),this['bindTemplate']['if']('errorType','ck-ai_review__check-run-error-container_border-bottom',_0x3fb8c4=>'chunk'===_0x3fb8c4)]},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-notification','ck-ai-notification_error','ck-ai-notification__full-width','ck-ai_review__check-run-error-message',this['bindTemplate']['if']('errorType','ck-ai-notification_warning',_0x2f5b5d=>'chunk'===_0x2f5b5d||'unsupported-inline'===_0x2f5b5d)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x1b4de3=>'general'!==_0x1b4de3)]},'children':[{'text':this['_contents']['generalErrorText']}]},{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x2d3f7a=>'chunk'!==_0x2d3f7a)]},'children':[{'text':ca(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]},{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x4e69ec=>'unsupported-inline'!==_0x4e69ec)]},'children':[{'text':ca(this['locale'],'AI_SUGGESTION_NO_PARTS_WARNING')}]}]},_0x54b3ae]}),_0x5d0be8;}_createCancelButtonView(){const _0x17b728=new _0x39ae99(this['locale']);return _0x17b728['set']({'label':ca(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':[_g+'\x20ck-ai-button-stop-generating'],'icon':_0x127d5d}),_0x17b728['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x45341f=>_0x45341f),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x46c8d0=>_0x46c8d0)]}}),_0x17b728['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x17b728;}_createToggleDiffButtonView(){const _0x3787f6=new _0x39ae99(this['locale']);_0x3787f6['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x3787f6['bind']('isEnabled')['to'](this,'isError',_0x2f3928=>!_0x2f3928),_0x3787f6['extendTemplate']({'attributes':{'class':[_g,'ck-ai_review__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x5a0bbd=>!_0x5a0bbd),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x272dab=>_0x272dab)]}});const _0x7f1202=ca(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x531316=ca(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x3787f6['bind']('isOn')['to'](this,'isToggleDiffOn',_0x140fde=>_0x140fde),_0x3787f6['bind']('icon')['to'](this,'isToggleDiffOn',_0x3bfc9a=>_0x3bfc9a?_0x33f3cf:tt),_0x3787f6['bind']('label')['to'](this,'isToggleDiffOn',_0x942dd7=>_0x942dd7?_0x7f1202:_0x531316),_0x3787f6['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x3787f6;}_createAcceptAllButtonView(){const _0xdaf511=new _0x39ae99(this['locale']);return _0xdaf511['set']({'label':ca(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0xdaf511['extendTemplate']({'attributes':{'class':[vg,'ck-ai_review__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x6fd1a0=>!_0x6fd1a0),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x38f661=>_0x38f661)]}}),_0xdaf511['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0xdaf511;}_createExitReviewButtonView(){const _0x17f343=new _0x39ae99(this['locale']);return _0x17f343['set']({'label':ca(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x17f343['extendTemplate']({'attributes':{'class':[Eg,'ck-ai_review__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x1b3867=>!_0x1b3867),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x5e60f2=>_0x5e60f2)]}}),_0x17f343['on']('execute',()=>{this['fire']('leaveReviewCoreResultList');}),_0x17f343;}_createResultHeaderView(){const _0x450495=new _0x2f6e1a(this['locale']),_0x5b7898=this['_createTitleView']();return _0x450495['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai_review__review-completed-header',_0x50b6c7=>_0x50b6c7)]},'children':[_0x5b7898,{'tag':'span','attributes':{'class':['ck-ai_review__review-completed-header-title',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x40af18=>!_0x40af18)],'title':ca(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')},'children':[{'text':ca(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]},{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0x450495;}_createTitleView(){const _0x50db38=new _0x2f6e1a(this['locale']),_0x2c3d41=new MO();return _0x2c3d41['bind']('isVisible')['to'](this,'isResultReady',_0x8fd1a4=>!_0x8fd1a4),_0x50db38['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-wrapper',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x2210c0=>_0x2210c0)]},'children':[_0x2c3d41,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-content']},'children':[{'tag':'span','attributes':{'class':['ck-ai_review__check-run-results-header-title']},'children':[{'text':this['bindTemplate']['to']('headerTitle')}]},{'tag':'span','attributes':{'class':['ck-ai_review__check-run-results-header-subtitle']},'children':[{'text':this['bindTemplate']['to']('headerSubtitle')}]}]}]}),_0x50db38;}_createFinishReviewButtonView(){const _0x1d8ab1=new yy(ca(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL'),this['locale']);return _0x1d8ab1['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x49d80e=>!_0x49d80e)]}}),_0x1d8ab1['delegate']('finishReview')['to'](this),_0x1d8ab1;}},_y=class extends _0x585012{_resultsHeader;_finishReviewButtonView;constructor(_0x2617ef,_0x2e9a05){super(_0x2617ef),this['_finishReviewButtonView']=this['_createFinishReviewButtonView'](_0x2e9a05['buttonText']),this['_resultsHeader']=this['_createResultHeaderView'](_0x2e9a05['headerText']);const _0xa53060=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__review-completed',_0xa53060['if']('isVisible','ck-hidden',_0x20b0c1=>!_0x20b0c1)]},'children':[this['_resultsHeader'],{'tag':'div','attributes':{'class':['ck-ai_review__review-completed-content']},'children':[{'tag':'span','attributes':{'class':['ck-ai_review__review-completed-content-icon']},'children':[{'text':'👍'}]},{'tag':'p','attributes':{'class':['ck-ai_review__review-completed-content-text']},'children':[{'text':_0x2e9a05['emptyResultsText']}]}]}]});}_createFinishReviewButtonView(_0x1c5c92){const _0x177154=new yy(_0x1c5c92,this['locale']);return _0x177154['delegate']('finishReview')['to'](this),_0x177154;}_createResultHeaderView(_0x30f416){const _0x35ef2d=new _0x2f6e1a(this['locale']);return _0x35ef2d['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__review-completed-header']},'children':[{'tag':'span','attributes':{'class':['ck-ai_review__review-completed-header-title'],'title':_0x30f416},'children':[{'text':_0x30f416}]},{'tag':'div','attributes':{'class':['ck-ai_review__review-completed-header-buttons']},'children':[this['_finishReviewButtonView']]}]}),_0x35ef2d;}},Ey=class extends _0x2f6e1a{['_dropdownView'];_defaultValue;_defaultLabel;constructor(_0x17fe01,_0x1560b2){super(_0x17fe01),this['_defaultValue']=_0x1560b2['default']||(_0x1560b2['data']['length']>0x0?_0x1560b2['data'][0x0]['id']:''),this['_defaultLabel']=_0x1560b2['data']['find'](_0x4db82f=>_0x4db82f['id']===this['_defaultValue'])?.['label']||'',this['set']('formValue',''),this['_dropdownView']=_0x46490d(this['locale']);const _0x3eae7a=this['_prepareListOptions'](_0x1560b2['data']);_0x55b796(this['_dropdownView'],_0x3eae7a,{'role':'menu','ariaLabel':_0x1560b2['label']}),this['_dropdownView']['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0}),this['_dropdownView']['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x7e5b6c=>{_0x7e5b6c['stopPropagation']();})}}),this['listenTo'](this['_dropdownView'],'execute',_0x3436c5=>{this['formValue']=_0x3436c5['source']['model']['id'],this['_dropdownView']['buttonView']['label']=_0x3436c5['source']['model']['label'];}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-ai_review__check-list-item-parameterized-form-element','ck-ai_review__check-list-item-parameterized-form-element_dropdown']},'children':[this['_dropdownView']]});}resetToDefault(){this['formValue']=this['_defaultValue'],this['_dropdownView']['buttonView']['label']=this['_defaultLabel'];}_prepareListOptions(_0x214219=[]){const _0x2e53bf=new _0x2186b6();this['resetToDefault']();for(const _0x94e933 of _0x214219){const _0x9c06b8=new ts({'label':_0x94e933['label'],'withText':!0x0,'role':'menuitemradio','id':_0x94e933['id'],'model':_0x94e933});_0x9c06b8['bind']('isOn')['to'](this,'formValue',_0x4610a7=>_0x4610a7===_0x9c06b8['id']);const _0x56da35={'type':'button','model':_0x9c06b8};_0x2e53bf['add'](_0x56da35);}return _0x2e53bf;}},Ty=class extends _0x585012{_formItem=null;constructor(_0x3ae2f2,_0x3d7e15,_0x3eb97c){if(super(_0x3ae2f2),this['argsKey']=_0x3d7e15?.['argsKey'],'dropdown'===_0x3d7e15['formType'])this['_formItem']=new Ey(this['locale'],_0x3d7e15);this['set']('value',''),this['bind']('value')['to'](this['_formItem'],'formValue');const _0x34588d=new _0x5de48b(this['locale'],{'children':[this['_formItem']],'class':[_0x3eb97c?'ck-form__row_with-submit':'']});_0x3eb97c&&_0x34588d['children']['add'](_0x3eb97c),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai_review__form-item','ck-reset_all']},'children':[_0x34588d]});}resetToDefault(){this['_formItem']['resetToDefault']();}},Ay=class AIReviewCorePromptInputView extends _0x535c1b{keystrokes;static ['MIN_ROWS']=0x1;static ['MAX_ROWS']=0xc;constructor(_0x332d21){super(_0x332d21),this['set']('isEmpty',!0x0),this['keystrokes']=new _0xa8275a(),this['minRows']=AIReviewCorePromptInputView['MIN_ROWS'],this['maxRows']=AIReviewCorePromptInputView['MAX_ROWS'],this['extendTemplate']({'attributes':{'id':'ai-review-prompt-input','class':['ck','ck-review__prompt-input']}});}['render'](){super['render'](),this['on']('update',()=>{this['isEmpty']=''===this['element']['value']?.['trim']();}),this['keystrokes']['listenTo'](this['element']);}},Sy=class extends _0x2f6e1a{['focusTracker']=new _0x1c95ab();keystrokes=new _0xa8275a();['focusCycler'];['_focusables']=new _0x18940b();submitButtonView;cancelButtonView;promptInputView;actionsFooterView;_modelSelector;['_check'];constructor(_0x4d4d7e,_0x302d1d,_0x55d5e6=!0x1){super(_0x4d4d7e),this['_check']=_0x302d1d,this['set']('prompt',''),this['set']('modelId',''),this['submitButtonView']=this['_createSubmitButtonView'](),this['cancelButtonView']=this['_createCancelButtonView'](),(this['promptInputView']=new _0x51334f(this['locale'],()=>new Ay(_0x4d4d7e)),this['promptInputView']['fieldView']['bind']('value')['to'](this,'prompt'),this['promptInputView']['fieldView']['on']('input',()=>{this['prompt']=this['promptInputView']['fieldView']['element']['value'];}),this['_modelSelector']=new mw(_0x4d4d7e,{'panelPosition':'se','dropdownClass':'ck-ai_review__check-list-item-model-dropdown','nameClass':'ck-ai_review__check-list-item-model-name','itemClasses':{'name':'ck-ai_review__check-list-item-model-dropdown-name','description':'ck-ai_review__check-list-item-model-dropdown-description'}}),this['listenTo'](this['_modelSelector'],'selectModel',(_0x329fcd,_0x2161eb)=>{this['modelId']=_0x2161eb['id'],this['_modelSelector']['setSelectedModel'](_0x2161eb);}),this['_setModelList'](_0x55d5e6),this['actionsFooterView']=this['_createActionsFooterView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-custom-actions']},'children':[new _0x5de48b(this['locale'],{'children':[this['promptInputView']]}),new _0x5de48b(this['locale'],{'children':[this['actionsFooterView']]})]}),this['promptInputView']['fieldView']['keystrokes']['set']('Enter',(_0x53e41e,_0x52ba1a)=>{this['_isValid']()?(this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0}),_0x52ba1a()):_0x52ba1a();}),this['focusCycler']=new _0x273f88({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}));}['render'](){super['render'](),[this['promptInputView'],this['_modelSelector']['dropdownView'],this['cancelButtonView'],this['submitButtonView']]['forEach'](_0x1aa76c=>{this['_focusables']['add'](_0x1aa76c),this['focusTracker']['add'](_0x1aa76c['element']);}),this['keystrokes']['listenTo'](this['element']);}resetToDefault(){this['prompt']='',this['modelId']=this['_check']['defaultModel']?.['id']??'',this['_check']['defaultModel']&&this['_modelSelector']['setSelectedModel'](this['_check']['defaultModel']),this['resetFormValidationStatus']();}resetFormValidationStatus(){this['promptInputView']['errorText']='';}['_isValid'](){this['resetFormValidationStatus']();for(const _0x49656e of this['_getFormValidators']()){const _0x3e9769=_0x49656e();if(_0x3e9769)return this['promptInputView']['errorText']=_0x3e9769,!0x1;}return!0x0;}_getFormValidators(){return[()=>{if(0x0===this['promptInputView']['fieldView']['value']?.['trim']()['length'])return ca(this['locale'],'AI_REVIEW_MODE_PROMPT_EMPTY_ERROR');}];}_createSubmitButtonView(){const _0x12626d=new _0x39ae99(this['locale']),t=this['locale']['t'];return _0x12626d['set']({'label':t('Submit'),'withText':!0x0,'class':vg}),_0x12626d['on']('execute',()=>{this['_isValid']()&&this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0});}),_0x12626d;}_createCancelButtonView(){const _0x5e6083=new _0x39ae99(this['locale']),t=this['locale']['t'];return _0x5e6083['set']({'label':t('Cancel'),'withText':!0x0,'class':Eg}),_0x5e6083['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x2a56b1=>{_0x2a56b1['stopPropagation']();})}}),_0x5e6083['on']('execute',()=>{this['resetToDefault'](),this['fire']('closeCustomCheck');}),_0x5e6083;}_setModelList(_0x984108){this['_modelSelector']['setModels'](this['_check']['models'],!_0x984108),this['resetToDefault']();}_createActionsFooterView(){const _0x2308e1=new _0x2f6e1a(this['locale']);return _0x2308e1['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-custom-actions-footer']},'children':[this['_modelSelector'],{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized-custom-actions-buttons']},'children':[this['cancelButtonView'],this['submitButtonView']]}]}),_0x2308e1;}},Iy=class extends _0x585012{_formItemsCollection=new _0x18940b();_customCheckView=null;['_hideModels']=!0x1;constructor(_0x482de5,_0x2e4223,_0x417e67,_0x5a2653=!0x1){super(_0x482de5),this['_hideModels']=_0x5a2653,this['set']('isParametrizedViewOpen',!0x1),this['set']('isListItemRendered',!0x1),this['set']('isItemParametrized',_0x2e4223['isParameterized']);const _0x24c738=this['_createIconView']();this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item',this['bindTemplate']['if']('isParametrizedViewOpen','ck-ai_review__check-list-item_selected',_0x432cd1=>_0x432cd1),this['bindTemplate']['if']('isListItemRendered','ck-ai_review__check-list-item_rendered',_0x4f008=>_0x4f008)],'style':{'--ck-ai-review-check-list-item-index':_0x417e67}},'on':{'click':this['bindTemplate']['to']('click')},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-main-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-title']},'children':[{'tag':'span','attributes':{'class':['ck-ai_review__check-list-item-title-text']},'children':[{'text':_0x2e4223['title']}]},_0x24c738]},{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-description']},'children':_0x2e4223['description']?[{'text':_0x2e4223['description']}]:[]}]}]},..._0x2e4223['isParameterized']?[this['_createParameterizedView'](_0x2e4223)]:[],...'custom'===_0x2e4223['id']?[this['_createCustomView'](_0x2e4223,this['_hideModels'])]:[]]}),this['on']('click',()=>{_0x2e4223['isParameterized']?this['isParametrizedViewOpen']=!0x0:this['fire']('runReviewCheck',{'id':_0x2e4223['id'],'args':_0x2e4223['useArgs']?_0x2e4223['args']:void 0x0});}),requestAnimationFrame(()=>{this['isListItemRendered']=!0x0;});}['render'](){super['render'](),this['isItemParametrized']&&_0xca2f72({'emitter':this,'activator':()=>!0x0===this['isParametrizedViewOpen'],'contextElements':[this['element']],'callback':()=>{this['isParametrizedViewOpen']=!0x1;}});}resetToDefault(){this['isParametrizedViewOpen']=!0x1,this['_formItemsCollection']['forEach'](_0xd49b6e=>{_0xd49b6e['resetToDefault']();}),this['_customCheckView']&&this['_customCheckView']['resetToDefault']();}_createIconView(){const _0xec74fd=new _0x5d1800();return _0xec74fd['content']=_0x4df65e,_0xec74fd['extendTemplate']({'attributes':{'class':['ck-ai_review__check-list-item-title-icon']}}),_0xec74fd;}_createParameterizedView(_0x547e80){const _0x16c928=new _0x2f6e1a(),_0x5dd13f=this['_createFormView'](_0x547e80);return _0x16c928['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x19fb6b=>!_0x19fb6b)]},'children':[_0x5dd13f]}),_0x16c928;}_createFormView(_0xe410f7){const _0x56efa3=new _0x2f6e1a(),_0x301d8b=Array['isArray'](_0xe410f7['options'])?_0xe410f7['options']:[],_0x1e7ba6=new _0x39ae99(this['locale']),t=this['locale']['t'];_0x1e7ba6['set']({'label':t('Submit'),'withText':!0x0,'class':vg}),_0x1e7ba6['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x1abbd3=>{_0x1abbd3['stopPropagation']();})}}),_0x1e7ba6['on']('execute',()=>{const _0x3408ae=[],_0x4a8fd4={};this['_formItemsCollection']['forEach'](_0x245ecd=>{_0x3408ae['push'](_0x245ecd['value']),_0xe410f7['useArgs']&&_0xe410f7['options']&&(_0x4a8fd4[_0x245ecd['argsKey']]=_0x245ecd['value']);}),this['fire']('runReviewCheck',{'id':_0xe410f7['id'],'params':_0x3408ae['length']?_0x3408ae:void 0x0,'args':Object['keys'](_0x4a8fd4)['length']?_0x4a8fd4:void 0x0});});const _0x33bae3=_0x301d8b['length'];return _0x301d8b['forEach']((_0x2e25b3,_0x11104f)=>{const _0x17ef50=_0x11104f===_0x33bae3-0x1;this['_formItemsCollection']['add'](new Ty(this['locale'],_0x2e25b3,_0x17ef50?_0x1e7ba6:null));}),_0x56efa3['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized-form']},'children':this['_formItemsCollection']}),_0x56efa3;}_createCustomView(_0xa4c966,_0xe384f6=!0x1){return this['_customCheckView']=new Sy(this['locale'],_0xa4c966,_0xe384f6),this['_customCheckView']['extendTemplate']({'attributes':{'class':['ck-ai_review__check-list-item-parameterized','ck-ai_review__check-list-item-parameterized_custom',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x42f85a=>!_0x42f85a)]}}),this['_customCheckView']['delegate']('runReviewCheck')['to'](this),this['listenTo'](this['_customCheckView'],'closeCustomCheck',()=>{this['isParametrizedViewOpen']=!0x1;}),this['on']('change:isParametrizedViewOpen',(_0x2c49ae,_0x16c19d,_0xd3ccf9)=>{_0xd3ccf9||this['_customCheckView']['resetFormValidationStatus']();}),this['_customCheckView'];}},ky=class extends _0x585012{['_checkViews'];constructor(_0x30dd9d){super(_0x30dd9d),this['_checkViews']=new _0x18940b(),this['_setupTemplate']();}setChecks(_0x59699d,_0x42e69e=!0x1){this['_checkViews']['clear']();for(const [_0x1bf62e,_0x5adcf3]of _0x59699d['entries']()){const _0x5d07d7=new Iy(this['locale'],_0x5adcf3,_0x1bf62e,_0x42e69e);_0x5d07d7['delegate']('runReviewCheck')['to'](this),this['_checkViews']['add'](_0x5d07d7);}}['hasChecks'](){return this['_checkViews']['length']>0x0;}resetAllParameterizedChecks(){for(const _0x40d5f0 of this['_checkViews'])_0x40d5f0 instanceof Iy&&_0x40d5f0['resetToDefault']();}_setupTemplate(){const _0xafd91e=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list',_0xafd91e['if']('isVisible','ck-hidden',_0x431898=>!_0x431898)]},'children':this['_checkViews']});}},xy=class extends Oy{static get['pluginName'](){return'AIReviewModeUI';}createMainView(){const _0x4b2478=this['context']['plugins']['get']('AITabs'),_0x46e625=this['context']['locale'],_0x3c1a28=new lb(_0x46e625,{'label':ca(_0x46e625,'AI_REVIEW_MODE'),'icon':_0x5318d1,'class':'ck-ai-header_review','showResizeButton':_0x4b2478['showResizeButton']});return _0x3c1a28['delegate']('resizeTabs')['to'](_0x4b2478),_0x3c1a28['bind']('isMaximized')['to'](_0x4b2478['view'],'isMaximized',_0x41fd3e=>_0x41fd3e),new by(this['context']['locale'],{'header':_0x3c1a28,'list':new ky(_0x46e625),'results':new vy(_0x46e625,{'generalErrorText':ca(_0x46e625,'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}),'completed':new _y(_0x46e625,{'headerText':ca(_0x46e625,'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE'),'emptyResultsText':ca(_0x46e625,'AI_REVIEW_MODE_EMPTY_RESULTS_TEXT'),'buttonText':ca(_0x46e625,'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL')})});}registerTab(){const _0x551fe6=this['context']['plugins']['get']('AITabs');_0x551fe6['view']['on']('activateTab',(_0x49f8e,{newTab:_0x14a41a,oldTab:_0x38f478})=>{'reviewMode'===_0x14a41a?this['fire']('getReviewCheckList'):'reviewMode'===_0x38f478&&this['fire']('leaveReview');}),_0x551fe6['view']['addTab']({'id':'reviewMode','buttonLabel':ca(this['context']['locale'],'AI_REVIEW_MODE'),'buttonIcon':_0x5318d1,'order':0x0,'content':this['_mainView']});}},Cy=class extends fg{_affectedBlocks=[];get affectedBlocks(){return this['_affectedBlocks']['slice']();}set affectedBlocks(_0x592e9d){this['_affectedBlocks']=_0x592e9d;}};const Ry='review-',Py=['softBreak'],Ny=['htmlScript','htmlStyle','htmlCustomElement'];var My=class extends _0x4dd342{static get requires(){return[Op,_l];}static get['pluginName'](){return'AIReviewCoreEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_markers']=new Map();_activeMarkers=new Set();_domEmitter;_eventEmitter;_reviewEditingAttachedEditors=new WeakSet();_boundEditables=new WeakMap();_inlineRootDataIds=new WeakMap();constructor(_0x320243){super(_0x320243),this['_domEmitter']=new(_0x5c7b5e())(),this['_eventEmitter']=new(_0x3e0c97())();}get emitter(){return this['_eventEmitter'];}afterInit(){const _0x34f637=_0x4f1b3b=>this['_scheduleAttachReviewEditingToEditor'](_0x4f1b3b);if(this['_registerGlobalBalloonBlurHandler'](),this['context']instanceof _0x95124b)return void _0x34f637(this['context']);const _0x1af013=this['context'];for(const _0xa96076 of _0x1af013['editors'])_0x34f637(_0xa96076);this['listenTo'](_0x1af013['editors'],'add',(_0x3bf15d,_0x54f219)=>{_0x34f637(_0x54f219);}),this['listenTo'](_0x1af013['editors'],'remove',(_0x5b4e94,_0x38ba46)=>{for(const [_0x589906,_0x2fdd21]of this['_markers'])_0x2fdd21['editor']===_0x38ba46&&(this['_eventEmitter']['fire']('changeMarkerRemoved',{'markerId':_0x589906,'changeId':_0x2fdd21['groupId']}),this['_markers']['delete'](_0x589906));});}_scheduleAttachReviewEditingToEditor(_0x4aefc6){const _0x1ce7f2=()=>{'destroyed'!==_0x4aefc6['state']&&_0x4aefc6['conversion']&&this['_attachReviewEditingToEditor'](_0x4aefc6);};if('ready'===_0x4aefc6['state'])return void _0x1ce7f2();const _0x291f21=()=>{this['stopListening'](_0x4aefc6,'ready',_0x291f21),_0x1ce7f2();};this['listenTo'](_0x4aefc6,'ready',_0x291f21);}_attachReviewEditingToEditor(_0x473231){this['_reviewEditingAttachedEditors']['has'](_0x473231)||(_0x473231['conversion']['for']('editingDowncast')['markerToElement']({'model':Ry+'insert','view':(_0x49a368,{writer:_0x2b09d9})=>{const _0x198a47=this['_markers']['get'](_0x49a368['markerName']),_0x2bedde={'class':'ck-ai_review-marker_add'+(this['_activeMarkers']['has'](_0x198a47?.['id']||'')?'\x20ck-ai_review__change_active':''),'data-marker-id':_0x49a368['markerName']};return _0x2b09d9['createUIElement']('span',_0x2bedde,function(_0x41266f){const _0x3a80e2=this['toDomElement'](_0x41266f);return _0x3a80e2['innerHTML']=_0x198a47?.['content']?.['asString']||'',_0x3a80e2;});}}),_0x473231['conversion']['for']('editingDowncast')['markerToHighlight']({'model':Ry+'remove-only','view':_0x22ba83=>{const _0x3480e2=this['_markers']['get'](_0x22ba83['markerName']),_0x1e0f67=['ck-ai_review-marker_strikethrough'];return this['_activeMarkers']['has'](_0x3480e2?.['id']||'')&&_0x1e0f67['push']('ck-ai_review__change_active'),{'classes':_0x1e0f67,'attributes':{'data-marker-id':_0x22ba83['markerName']}};}}),_0x473231['conversion']['for']('editingDowncast')['markerToHighlight']({'model':Ry+'remove-context','view':_0x4519e4=>{const _0x26b84e=this['_markers']['get'](_0x4519e4['markerName']),_0x2ce48c=['ck-ai_review-marker_underline'];return this['_activeMarkers']['has'](_0x26b84e?.['id']||'')&&_0x2ce48c['push']('ck-ai_review__change_active'),{'classes':_0x2ce48c,'attributes':{'data-marker-id':_0x4519e4['markerName']}};}}),_0x473231['conversion']['for']('editingDowncast')['markerToHighlight']({'model':Ry+'remove-text','view':_0x436f20=>{const _0x50691d=this['_markers']['get'](_0x436f20['markerName']),_0x49e78f=['ck-ai_review-marker_hide'];return this['_activeMarkers']['has'](_0x50691d?.['id']||'')&&_0x49e78f['push']('ck-ai_review__change_active'),{'classes':_0x49e78f,'attributes':{'data-marker-id':_0x436f20['markerName']}};}}),_0x473231['conversion']['for']('dataDowncast')['markerToElement']({'model':Ry+'suggestion-context','view':(_0x2800b8,{writer:_0x67bb65})=>_0x67bb65['createRawElement']('span',{'class':'ck-ai_review-marker_context-'+(_0x2800b8['isOpening']?'start':'end')})}),_0x473231['conversion']['for']('downcast')['attributeToAttribute']({'model':pp,'view':gp}),this['_updateMouseMarkerInteractionListeners'](_0x473231),this['listenTo'](_0x473231,'addRoot',()=>this['_updateMouseMarkerInteractionListeners'](_0x473231),{'priority':'lowest'}),this['listenTo'](_0x473231,'detachRoot',()=>this['_updateMouseMarkerInteractionListeners'](_0x473231),{'priority':'lowest'}),_0x473231['model']['document']['registerPostFixer'](_0x108cd7=>this['_validateMarkers'](_0x473231,_0x108cd7)),_0x473231['model']['document']['on']('change',()=>this['_handleMarkerChanges'](_0x473231)),this['_reviewEditingAttachedEditors']['add'](_0x473231));}_updateMouseMarkerInteractionListeners(_0x17f780){let _0x2e30f8=this['_boundEditables']['get'](_0x17f780);_0x2e30f8||(_0x2e30f8=new Map(),this['_boundEditables']['set'](_0x17f780,_0x2e30f8));const _0x575211=new Set(_0x17f780['ui']['getEditableElementsNames']());for(const _0x451e4e of _0x575211){if(_0x2e30f8['has'](_0x451e4e))continue;const _0x3d3195=_0x17f780['ui']['getEditableElement'](_0x451e4e);_0x2e30f8['set'](_0x451e4e,_0x3d3195),this['_attachMouseMarkerInteractionListeners'](_0x3d3195);}for(const [_0x257446,_0x5461ab]of _0x2e30f8)_0x575211['has'](_0x257446)||(_0x2e30f8['delete'](_0x257446),this['_domEmitter']['stopListening'](_0x5461ab));}_attachMouseMarkerInteractionListeners(_0x486641){this['_domEmitter']['listenTo'](_0x486641,'mouseup',(_0x2b4f63,_0x1d89df)=>{const _0x3e2c8e=_0x1d89df['target'],_0x3a7cb2=this['_findMarkerElement'](_0x3e2c8e);if(!_0x3a7cb2)return;const _0x1dd039=_0x3a7cb2['getAttribute']('data-marker-id'),_0x4d40e4=_0x1dd039['split'](':')['pop']()?.['split']('_')[0x0];this['_eventEmitter']['fire']('changeMarkerClicked',{'markerId':_0x1dd039,'changeId':_0x4d40e4,'markerElement':()=>this['_findMarkerElementById'](_0x1dd039),'domEvent':_0x1d89df});},{'usePassive':!0x0,'priority':'highest'}),this['_domEmitter']['listenTo'](_0x486641,'mouseover',(_0x2d1487,_0x2acb70)=>{const _0x4b59d4=_0x2acb70['target'],_0x279b08=_0x2acb70['relatedTarget'];let _0x40314a=this['_findMarkerElement'](_0x4b59d4);if(!_0x40314a&&_0x279b08&&(_0x40314a=this['_findMarkerElement'](_0x279b08)),!_0x40314a)return;const _0x2925b7=_0x40314a['getAttribute']('data-marker-id'),_0x4926a4=_0x2925b7['split'](':')['pop']()?.['split']('_')[0x0];this['_eventEmitter']['fire']('changeMarkerHovered',{'changeId':_0x4926a4,'markerElement':()=>this['_findMarkerElementById'](_0x2925b7),'domEvent':_0x2acb70});});}_registerGlobalBalloonBlurHandler(){this['_domEmitter']['listenTo'](document,'mouseover',vr((_0x218dbe,_0x2faa2f)=>{const _0x5455c4=_0x2faa2f['target'];this['_findMarkerElement'](_0x5455c4)||_0x5455c4['closest']('.ck-reset.ck-ai_review-balloon-panel-suggestion')||this['_eventEmitter']['fire']('changeMarkerBlurred');},0xc8));}getDocumentData(_0xd0fba0){const _0x4f4002=this['context']['plugins']['get']('AIEditing'),_0x2c4613=ma(this['context']);if(!_0x2c4613['length'])throw new _0x4242d4('ai-get-editor-from-context-no-editor',this);const _0x48e709=_0xd0fba0?.['roots'];if(_0x48e709&&0x0===_0x48e709['length'])throw new _0x4242d4('ai-reviewcoreediting-empty-roots',this);const _0x420fa1=_0x48e709?new Set(_0x48e709['map'](_0x4da39a=>_0x4da39a['channelId']+'\x00'+_0x4da39a['rootName'])):null,_0x505300=_0x420fa1?new Set():null,_0x43834d=new Set(),_0x291457=[],_0x4550f4=new Map(),_0xa3a6b6=[];for(const _0x422c8e of _0x2c4613){const _0x50bbcd=_0x422c8e['config']['get']('collaboration.channelId');for(const _0x26b9f7 of _0x422c8e['model']['document']['getRoots']()){const _0x3ffe3b=_0x50bbcd+'\x00'+_0x26b9f7['rootName'];if(_0x420fa1&&!_0x420fa1['has'](_0x3ffe3b))continue;const _0xb2ae75=this['_buildDocumentDataSliceForRoot'](_0x422c8e,_0x26b9f7,_0x4f4002,_0x43834d);_0x291457['push'](_0xb2ae75['content']);for(const [_0x19ccbd,_0x2e7f71]of _0xb2ae75['elements'])_0x4550f4['set'](_0x19ccbd,_0x2e7f71);_0xa3a6b6['push']({'channelId':_0x50bbcd,'rootName':_0x26b9f7['rootName']}),_0x505300?.['add'](_0x3ffe3b);}}if(_0x48e709&&_0x505300['size']!==_0x420fa1['size']){const _0x1383a6=_0x48e709['find'](_0x236705=>!_0x505300['has'](_0x236705['channelId']+'\x00'+_0x236705['rootName']));throw new _0x4242d4('ai-reviewcoreediting-root-not-found',this,{'channelId':_0x1383a6['channelId'],'rootName':_0x1383a6['rootName']});}return{'elements':_0x4550f4,'content':_0x291457['join'](''),'roots':_0xa3a6b6};}async['runCheck'](_0x4c0bea,_0x432913){const _0x2660b2=new pg(),_0x197d79=_0x432913?.['signal'];let _0x28b2b8;const _0x2356b9=()=>{_0x2660b2['abort'](),_0x4c0bea['abort']();};if(_0x197d79){if(_0x197d79['aborted'])return _0x2356b9(),_0x2660b2;_0x197d79['addEventListener']('abort',_0x2356b9),_0x28b2b8=()=>_0x197d79['removeEventListener']('abort',_0x2356b9);}const _0x4ec4a0={'apiId':_0x4c0bea['sourceCheck']['apiId']};try{_0x4c0bea['on']('reviewCheckRunUpdated',(_0x56d8c7,_0x5c232d)=>{'aborted'===_0x5c232d['status']?_0x2660b2['abort']():'error-general'!==_0x5c232d['status']&&'error-chunk'!==_0x5c232d['status']||(_0x2660b2['error']=dg(_0x5c232d['error'],'ai-reviewcoreediting-check-run-failed',this,_0x4ec4a0));}),'aborted'!==_0x2660b2['status']&&await _0x4c0bea['start']();}catch(_0x3f26c5){_0x2660b2['error']=dg(_0x3f26c5,'ai-reviewcoreediting-check-run-failed',this,_0x4ec4a0);}finally{_0x28b2b8&&_0x28b2b8();}return'error'===_0x2660b2['status']||'aborted'===_0x2660b2['status']||(_0x2660b2['addResult'](...this['_buildPerRootResults'](_0x4c0bea)),_0x2660b2['status']='completed'),_0x2660b2;}buildErrorContext(_0x33ad7a){return{'apiId':_0x33ad7a['sourceCheck']['apiId']};}_buildPerRootResults(_0x199c29){const _0x106bb5=this['buildErrorContext'](_0x199c29),_0x1f67ed=this['context']['plugins']['get']('AIEditing'),_0x3582c9=this['context']['plugins']['get']('AIGateway'),_0x533a62=this['_groupElementsByRoot'](_0x199c29['documentData']['elements']),_0x3ed268=new Map();for(const _0x17f544 of ma(this['context']))_0x3ed268['set'](_0x17f544['config']['get']('collaboration.channelId'),_0x17f544);return _0x199c29['documentData']['roots']['map'](({channelId:_0x5becca,rootName:_0xb462b4})=>{const _0xb43682=_0x3ed268['get'](_0x5becca),_0x34a051=new Cy({'editor':_0xb43682,'rootName':_0xb462b4,'channelId':_0x5becca,'sessionId':_0x1f67ed['getSessionId'](_0xb43682)}),_0x1d2f6d=_0x533a62['get'](_0x34a051['editor'])?.['get'](_0x34a051['rootName'])??[];_0x34a051['contentRawOld']=_0x1d2f6d['map'](_0x5bbcf1=>_0x5bbcf1['getContent']())['join'](''),_0x34a051['documentVersion']=_0x1d2f6d[0x0]?.['documentVersion']??0x1;const _0x576b75=this['_collectResultAffectedBlocks'](_0x34a051,_0x199c29['results'],_0x199c29['documentData']['elements']);_0x34a051['affectedBlocks']=_0x576b75;try{_0x34a051['contentRawNew']=Wc(_0x3582c9['mergeChangesIntoContent'](_0x576b75,_0x34a051['contentRawOld'],_0x34a051['editor']));}catch(_0x521e63){_0x34a051['error']=dg(_0x521e63,'ai-reviewcoreediting-check-run-failed',this,_0x106bb5);}return _0x34a051;});}_collectResultAffectedBlocks(_0x84470a,_0x189d13,_0x5b474e){return _0x189d13['filter'](_0x248dd4=>{const _0x382778=_0x5b474e['get'](_0x248dd4['id']);return!!_0x382778&&_0x382778['editor']===_0x84470a['editor']&&_0x382778['rootName']===_0x84470a['rootName'];})['map'](_0x36a110=>({'id':_0x36a110['id'],'content':_0x36a110['contentNew']}));}_groupElementsByRoot(_0x1ffb02){const _0x341770=new Map();for(const _0x58de07 of _0x1ffb02['values']()){let _0x4e9436=_0x341770['get'](_0x58de07['editor']);_0x4e9436||(_0x4e9436=new Map(),_0x341770['set'](_0x58de07['editor'],_0x4e9436));let _0x1d5945=_0x4e9436['get'](_0x58de07['rootName']);_0x1d5945||(_0x1d5945=[],_0x4e9436['set'](_0x58de07['rootName'],_0x1d5945)),_0x1d5945['push'](_0x58de07);}return _0x341770;}_buildDocumentDataSliceForRoot(_0x209642,_0x16bf81,_0x1423aa,_0x10766e){const _0x281c4e=_0x209642['model'],_0x421e21=new _0x25e1b5();for(const _0x3790cd of _0x16bf81['getChildren']())_0x421e21['_appendChild'](_0x3790cd['_clone'](!0x0));for(const _0x1d6f4c of _0x281c4e['markers']){const _0x41c025=_0x1d6f4c['getRange']();_0x41c025&&_0x41c025['root']['rootName']===_0x16bf81['rootName']&&_0x421e21['markers']['set'](_0x1d6f4c['name'],this['_changeRangeOwnerDocument'](_0x41c025['clone'](),_0x421e21));}const _0x2087c9=new Map(),_0x295016=_0x281c4e['document']['version'];if(ll(_0x209642,_0x16bf81['rootName'])){let _0x1cc59d=this['_inlineRootDataIds']['get'](_0x16bf81);_0x1cc59d?_0x10766e['add'](_0x1cc59d):(_0x1cc59d=_0x1423aa['_nextDataId'](_0x10766e),this['_inlineRootDataIds']['set'](_0x16bf81,_0x1cc59d));const _0x6c8c04=hl(_0x209642['data']['processor']['toData'](_0x209642['data']['toView'](_0x421e21)),_0x1cc59d);return _0x2087c9['set'](_0x1cc59d,{'editor':_0x209642,'rootName':_0x16bf81['rootName'],'path':[],'documentVersion':_0x295016,'getContent':()=>_0x6c8c04}),{'content':_0x6c8c04,'elements':_0x2087c9};}const _0x50fa7a=new _0x1c17f6({'ignoreElementEnd':!0x0,'startPosition':_0x281c4e['createPositionAt'](_0x421e21,0x0)});for(const {item:_0x56102e}of _0x50fa7a){if(_0x56102e['is']('element')&&_0x56102e['name']&&Ny['includes'](_0x56102e['name'])){const _0x17f41b=this['_upsertDataId'](_0x56102e,()=>_0x1423aa['_nextDataId'](_0x10766e));_0x10766e['add'](_0x17f41b);}if(!_0x56102e['is']('$textProxy'))continue;const _0x3875bb=_0x56102e['parent'];if(!_0x3875bb||!_0x3875bb['is']('element'))continue;const _0x2a6864=this['_upsertDataId'](_0x3875bb,()=>_0x1423aa['_nextDataId'](_0x10766e));_0x10766e['add'](_0x2a6864);for(const _0x1b3931 of _0x3875bb['getChildren']())_0x1b3931['is']('element')&&(_0x1b3931['name']&&Py['includes'](_0x1b3931['name'])||_0x10766e['add'](this['_upsertDataId'](_0x1b3931,()=>_0x1423aa['_nextDataId'](_0x10766e))));let _0x2f2174=_0x3875bb;for(;_0x2f2174['parent']&&!_0x2f2174['parent']['is']('documentFragment');)_0x2f2174=_0x2f2174['parent'],_0x2f2174['hasAttribute']('$elementId')&&_0x2f2174['_removeAttribute'](pp);_0x2087c9['set'](_0x2a6864,{'editor':_0x209642,'rootName':_0x16bf81['rootName'],'path':_0x3875bb['getPath'](),'documentVersion':_0x295016,'getContent':this['_createGetContentUsingDataIdFn'](_0x2f2174['_clone'](!0x0),_0x2a6864,_0x209642['data'])}),_0x50fa7a['jumpTo'](_0x281c4e['createPositionAfter'](_0x3875bb));}return{'content':_0x209642['data']['processor']['toData'](_0x209642['data']['toView'](_0x421e21)),'elements':_0x2087c9};}diffContent(_0x3d4b4c,_0x1834cd,_0x3d1893,_0x3503ab=!0x1){const {contentInitial:_0x243efe,contentNew:_0xf330aa}=this['_neutralizeChangesOnUnsupportedElements'](_0x1834cd,_0x3d1893),_0x1b2208=[],_0x4191f0=_0x3d4b4c['data']['parse'](_0xf330aa,'$documentFragment'),_0x88d5f8=_0x3d4b4c['data']['parse'](_0x243efe,'$documentFragment'),_0x4821a0=_0x3d4b4c['model']['createPositionAt'](_0x88d5f8,0x0);if(this['_haveSingleTopLevelElement'](_0x4191f0)){if(!this['_hasSameTopLevelElement'](_0x88d5f8,_0x4191f0))return _0x1b2208;}else{const _0x7b24f=_0x3d4b4c['model']['schema'];if(!this['_haveOnlyInlineContent'](_0x88d5f8,_0x7b24f)||!this['_haveOnlyInlineContent'](_0x4191f0,_0x7b24f))return _0x1b2208;}const _0x6da9bb=this['context']['plugins']['get']('DocumentCompare')['getDiff'](_0x243efe,_0xf330aa,{'targetEditor':_0x3d4b4c,'anchor':_0x4821a0,'markDeletions':!0x0})['getOperations']()['filter'](_0x484feb=>'insert'===_0x484feb['type']||'marker'===_0x484feb['type']&&_0x484feb['name']['startsWith']('$markedRemove')),_0x378b60=this['_groupAdjacentOperations'](_0x6da9bb),_0xcbdd7=[];if(_0x3503ab){if(_0x378b60['length']){const _0x501277=_0x378b60[0x0]['operations'][0x0],_0x3b8a8a='insert'===_0x501277['type']?_0x501277['position']:_0x501277['newRange']['start'],_0x575ef2=this['_getPositionLimitingRange'](_0x3b8a8a,_0x3d4b4c,'inside'),_0x2ad77d=_0x575ef2?_0x4191f0['getChild'](0x0)['getChildren']():_0x4191f0['getChildren'](),_0x20a14d=_0x575ef2||_0x3d4b4c['model']['createRangeIn'](_0x88d5f8),_0x1e7baf=[new _0x365d2c('$markedRemove:synthetic'+_0xea66bb(),null,_0x20a14d,_0x3d4b4c['model']['document']['model']['markers'],!0x0,_0x3d4b4c['model']['document']['version']+0x1),new _0x144d3a(_0x20a14d['end'],_0x2ad77d,_0x3d4b4c['model']['document']['version']+0x2)];_0xcbdd7['push']({'operations':_0x1e7baf,'operationsIsolated':_0x1e7baf,'groupOffset':0x0});}}else _0xcbdd7['push'](..._0x378b60);let _0x37c980=0x0;return _0x3d4b4c['model']['change'](_0x254e44=>{for(let _0xded548=0x0;_0xded548<_0xcbdd7['length'];_0xded548++){const _0x4cbb0d=_0xcbdd7[_0xded548],_0x3a9f0d=_0x254e44['createDocumentFragment']();for(const _0x3a9391 of _0x88d5f8['getChildren']())_0x254e44['append'](_0x3a9391['_clone'](!0x0),_0x3a9f0d);for(const _0x4c8a3c of _0x4cbb0d['operationsIsolated'])if('insert'===_0x4c8a3c['type']){const _0x4acc16=_0x4c8a3c;_0x4acc16['baseVersion']=null,_0x4acc16['isDocumentOperation']=!0x1,this['_changeOperationOwnerDocument'](_0x4acc16,_0x3a9f0d),_0x254e44['batch']['addOperation'](_0x4c8a3c),_0x3d4b4c['model']['applyOperation'](_0x4c8a3c);const _0x18738c='suggestion:insertion:id:authorId:'+_0x37c980++,_0x53fa20=_0x3d4b4c['model']['createRange'](_0x4acc16['position'],_0x4acc16['position']['getShiftedBy'](_0x4acc16['howMany']));_0x3a9f0d['markers']['set'](_0x18738c,_0x53fa20);}else{if('marker'===_0x4c8a3c['type']&&_0x4c8a3c['name']['startsWith']('$markedRemove')){const _0x346198=_0x4c8a3c,_0x5c6c90='suggestion:deletion:id:authorId:'+_0x37c980++;this['_changeOperationOwnerDocument'](_0x346198,_0x3a9f0d),_0x3a9f0d['markers']['set'](_0x5c6c90,_0x346198['newRange']);}}if(_0x3503ab)_0x1b2208['push']({..._0x4cbb0d,'context':this['_createGetContentFn'](_0x88d5f8,_0x3d4b4c['data']),'content':this['_createGetContentFn'](_0x88d5f8,_0x3d4b4c['data'])});else{const _0x13deb9=this['_getChangeContext'](this['_changePositionOwnerDocument'](this['_getOperationStart'](_0x4cbb0d['operationsIsolated'][0x0]),_0x3a9f0d),this['_changePositionOwnerDocument'](this['_getOperationEnd'](_0x4cbb0d['operationsIsolated'][_0x4cbb0d['operationsIsolated']['length']-0x1]),_0x3a9f0d),_0x3d4b4c);_0x3a9f0d['markers']['set'](Ry+'suggestion-context',new _0x45ca57(_0x13deb9['start'],_0x13deb9['end'])),_0x1b2208['push']({..._0x4cbb0d,'context':this['_createGetContextFn'](_0x3a9f0d,_0x3d4b4c['data'],{'ellipsisBefore':_0x13deb9['hasContentBefore'],'ellipsisAfter':_0x13deb9['hasContentAfter']}),'content':this['_createGetContentFn'](_0x3a9f0d,_0x3d4b4c['data'])});}}}),_0x1b2208;}markChangePositionInEditorContent(_0x567bd9,_0x2918fd){if(!_0x567bd9['length'])return;const _0x48a2ee=_0x567bd9[0x0]['parent']['id'],_0x5201aa=_0x2918fd['elements']['get'](_0x48a2ee);if(!_0x5201aa)return void console['warn']('No\x20element\x20found\x20for\x20ID:\x20'+_0x48a2ee);const _0x5a2d85=_0x5201aa['path'],_0xf00a4e=_0x5201aa['editor'],_0x216f7c=_0xf00a4e['model']['document']['getRoot'](_0x5201aa['rootName']);if(!_0x216f7c)return void console['warn']('No\x20model\x20root\x20found\x20for\x20name:\x20'+_0x5201aa['rootName']);const _0x42870f=_0xf00a4e['model']['document']['history']['getOperations'](_0x5201aa['documentVersion']),_0x3e4603=[];for(const _0x13ede2 of _0x567bd9){const _0x524af2=_0x13ede2['operationsIsolated']['map'](_0x230ba5=>this['_translateOperationToEditorContent'](_0x230ba5,_0x5a2d85,_0x216f7c));if(!_0x524af2||!_0x524af2['length'])continue;const _0x595b80=_0x524af2['every'](_0x3a0508=>'marker'===_0x3a0508['type']&&_0x3a0508['name']['startsWith']('$markedRemove')),_0x4d6cde=_0x4e362f(_0x524af2,_0x42870f,{'document':_0xf00a4e['model']['document'],'useRelations':!0x1,'padWithNoOps':!0x1})['operationsA'];for(const _0x34b84b of _0x4d6cde)if('insert'===_0x34b84b['type']){const _0x265a7c=_0x34b84b,_0x188997=_0x265a7c['nodes'];_0xf00a4e['model']['change'](_0x564e55=>{const _0x49c38b=_0x564e55['createDocumentFragment']();for(const _0x1c3066 of _0x188997)_0x564e55['append'](_0x1c3066['_clone'](!0x0),_0x49c38b);_0x3e4603['push']({'start':_0x265a7c['position'],'end':_0x265a7c['position'],'type':'insert','groupId':_0x13ede2['id'],'content':{'asString':this['_createGetContentFn'](_0x49c38b,_0xf00a4e['data'])(),'asFragment':_0x49c38b}});});}else{if('marker'===_0x34b84b['type']&&_0x34b84b['name']['startsWith']('$markedRemove')){const _0x3a202b=_0x34b84b;let _0x2b9158='remove-text';if(_0x595b80){const _0x476590=this['_findAdjacentContextDistance'](_0x3a202b['newRange']['start'],'backward',_0xf00a4e['model']['schema']),_0x1d67b7=this['_findAdjacentContextDistance'](_0x3a202b['newRange']['end'],'forward',_0xf00a4e['model']['schema']);if(_0x476590||_0x1d67b7){const _0x46711d=_0x3a202b['newRange']['start']['getShiftedBy'](-_0x476590),_0x5fd6df=_0x3a202b['newRange']['end']['getShiftedBy'](_0x1d67b7);_0x3e4603['push']({'start':_0x46711d,'end':_0x5fd6df,'groupId':_0x13ede2['id'],'type':'remove-context'});}else _0x2b9158='remove-only';}_0x3e4603['push']({'start':_0x3a202b['newRange']['start'],'end':_0x3a202b['newRange']['end'],'groupId':_0x13ede2['id'],'type':_0x2b9158});}}}this['_insertMarkers'](_0x3e4603,_0xf00a4e);}['clearAllMarkers'](){const _0x4fd37c=new Map();for(const _0x5e1cd9 of this['_markers']['keys']()){const _0x4a12e4=this['_markers']['get'](_0x5e1cd9);_0x4a12e4?.['editor']&&(_0x4fd37c['has'](_0x4a12e4['editor'])||_0x4fd37c['set'](_0x4a12e4['editor'],[]),_0x4fd37c['get'](_0x4a12e4['editor'])['push'](_0x5e1cd9));}for(const [_0x53d07d,_0x5a63cb]of _0x4fd37c)_0x53d07d['model']['change'](_0x532cf9=>{for(const _0x2c291f of _0x5a63cb)_0x53d07d['model']['markers']['get'](_0x2c291f)&&_0x532cf9['removeMarker'](_0x2c291f);});this['_markers']['clear'](),this['_activeMarkers']['clear']();}switchToReadOnly(){for(const _0xf1a0d8 of this['getEditors']())_0xf1a0d8['enableReadOnlyMode']('ai-review');}switchToEdit(){for(const _0x1fa75f of this['getEditors']())_0x1fa75f['disableReadOnlyMode']('ai-review');}['applyChange'](_0xd49145,_0x5e2362=null){const _0x2463ca=_0xd49145['map'](_0xdfa54d=>this['_getMarkersDataForGroup'](_0xdfa54d))['flat'](),_0x5ab1bf=new Map();for(const _0x5fb235 of _0x2463ca)_0x5ab1bf['has'](_0x5fb235['editor'])||_0x5ab1bf['set'](_0x5fb235['editor'],[]),_0x5ab1bf['get'](_0x5fb235['editor'])['push'](_0x5fb235);for(const [_0xbac760,_0x47b07]of _0x5ab1bf){const _0x12c536=_0xbac760['model'],_0x241c2b=_0xbac760['plugins']['has']('TrackChangesEditing')?_0xbac760['plugins']['get']('TrackChangesEditing'):null,_0x1d2edc=_0x5e2362&&_0x241c2b?new Set(_0x241c2b['getSuggestions']()['map'](_0x10272a=>_0x10272a['id'])):null;_0x12c536['change'](_0x345346=>{const _0x3e826c=_0x345346['batch']['operations']['length'];for(const _0x11da4a of _0x47b07){const _0x4b07ac=_0xbac760['model']['markers']['get'](_0x11da4a['id']);if(_0x4b07ac){if('insert'===_0x11da4a['type']){if(!_0x11da4a['content'])continue;_0x12c536['insertContent'](_0x11da4a['content']['asFragment']||null,_0x4b07ac['getRange']()['start']);}else'remove-text'!==_0x11da4a['type']&&'remove-only'!==_0x11da4a['type']||_0x12c536['deleteContent'](_0x12c536['createSelection'](_0x4b07ac['getRange']()));_0x345346['removeMarker'](_0x11da4a['id']),this['_markers']['delete'](_0x11da4a['id']);}}if(_0x5e2362&&(ag(_0x345346['batch']['operations']['slice'](_0x3e826c),_0x5e2362),_0x241c2b)){for(const _0x4fec3a of _0x241c2b['getSuggestions']())_0x1d2edc['has'](_0x4fec3a['id'])||_0x4fec3a['setAttribute']('@ai',{'type':_0x5e2362});}});}}rejectChange(_0x4726d5){const _0x4c5123=this['_getMarkersDataForGroup'](_0x4726d5),_0x459717=new Map();for(const _0x2e6079 of _0x4c5123)_0x459717['has'](_0x2e6079['editor'])||_0x459717['set'](_0x2e6079['editor'],[]),_0x459717['get'](_0x2e6079['editor'])['push'](_0x2e6079);for(const [_0x27afdd,_0x4ef6b2]of _0x459717)_0x27afdd['model']['change'](_0x398214=>{for(const _0x381f80 of _0x4ef6b2)_0x398214['removeMarker'](_0x381f80['id']),this['_markers']['delete'](_0x381f80['id']);});}getEditor(){return pa(this['context']);}getEditors(){return ma(this['context']);}getEditorForChange(_0x19d845){return this['_getMarkersDataForGroup'](_0x19d845)[0x0]?.['editor'];}getMarkerElementForChange(_0x321962){const _0xfc9637=Array['from'](this['_markers']['values']())['filter'](_0x3cd847=>_0x3cd847['groupId']===_0x321962);if(!_0xfc9637['length'])return null;const _0x33b4a6=0x1===_0xfc9637['length']?_0xfc9637[0x0]:this['_sortMarkers'](_0xfc9637)[0x0],_0x3a6848=_0x33b4a6['editor']['model']['markers']['get'](_0x33b4a6['id']);return _0x3a6848?{'modelRange':_0x3a6848['getRange'](),'getElement':()=>this['_findMarkerElementById'](_0x33b4a6['id'])}:null;}getContentElementForChange(_0x884e74){const _0x32be4b=Array['from'](this['_markers']['values']())['filter'](_0x13f564=>_0x13f564['groupId']===_0x884e74);if(!_0x32be4b['length'])return null;const _0x4160c1=0x1===_0x32be4b['length']?_0x32be4b[0x0]:this['_sortMarkers'](_0x32be4b)[0x0],_0x303b4d=_0x4160c1['editor'],_0x1e49c2=_0x303b4d['model']['markers']['get'](_0x4160c1['id']);if(!_0x1e49c2)return null;const _0x4c0f4d=_0x1e49c2['getRange'](),_0x5a44ea=_0x303b4d['editing']['view']['getDomRoot'](_0x4c0f4d['root']['rootName'])||_0x303b4d['editing']['view']['getDomRoot']();if(!_0x5a44ea||!_0x4c0f4d)return null;let _0x4ed323=_0x4c0f4d['start']['parent'];for(;_0x4ed323['parent']&&!_0x4ed323['parent']['is']('rootElement');)_0x4ed323=_0x4ed323['parent'];if(!_0x4ed323||!_0x4ed323['name'])return null;const _0x31bbf7=_0x5a44ea['querySelector']('[data-marker-id=\x22'+_0x4160c1['id']+'\x22]');if(!_0x31bbf7)return null;if(_0x4ed323['is']('rootElement'))return _0x31bbf7;let _0x219525=null;_0x303b4d['model']['change'](_0x1a4276=>{_0x219525=_0x1a4276['createDocumentFragment'](),_0x1a4276['append'](_0x4ed323['_clone'](!0x0),_0x219525);});const _0x10b44a=_0x303b4d['data']['toView'](_0x219525)['getChild'](0x0);return _0x31bbf7['closest'](_0x10b44a['name']);}reactivateMarkers(_0x4c8edf){const _0x30fa20=this['_getMarkersDataForGroup'](_0x4c8edf);if(!_0x30fa20['length'])return;const _0x24cef4=Array['from'](this['_activeMarkers'])['sort'](),_0x4db896=Array['from'](new Set(_0x30fa20['map'](_0x5c20f=>_0x5c20f['id'])))['sort']();_0x24cef4['join']('|')!==_0x4db896['join']('|')&&(this['setAllMarkersAsInactive'](),this['setMarkersInElementAsActive'](_0x4c8edf));}setMarkersInElementAsActive(_0x1987a6){const _0x55afda=this['_getMarkersDataForGroup'](_0x1987a6);if(!_0x55afda['length'])return;const _0xb70961=_0x55afda[0x0]['editor'],_0x23fff7=new Set(_0x55afda['map'](_0x3e5777=>_0x3e5777['id'])),_0x277d43=Array['from'](_0x23fff7['values']())['map'](_0x33d1c0=>_0xb70961['model']['markers']['get'](_0x33d1c0))['filter'](_0x438b90=>!!_0x438b90);_0x23fff7['forEach'](_0x2ed094=>{this['_activeMarkers']['add'](_0x2ed094);}),_0xb70961['model']['change'](()=>{_0x277d43['forEach'](_0x1e88b5=>{_0xb70961['editing']['reconvertMarker'](_0x1e88b5);});});}setAllMarkersAsInactive(){const _0x34c594=Array['from'](this['_activeMarkers']);if(!_0x34c594['length'])return;this['_activeMarkers']['clear']();const _0x508517=new Map();for(const _0xec9ae of _0x34c594){const _0x24774c=this['_markers']['get'](_0xec9ae);if(!_0x24774c)continue;const _0x14557=_0x24774c['editor'],_0x217b0d=_0x14557['model']['markers']['get'](_0xec9ae);_0x217b0d&&(_0x508517['has'](_0x14557)||_0x508517['set'](_0x14557,[]),_0x508517['get'](_0x14557)['push'](_0x217b0d));}for(const [_0x2d60d2,_0x2edd18]of _0x508517)_0x2d60d2['model']['change'](()=>{_0x2edd18['forEach'](_0x30ba04=>{_0x2d60d2['editing']['reconvertMarker'](_0x30ba04);});});}_getPositionLimitingRange(_0x525991,_0x1363c4,_0x32ee49='outside'){if(!_0x525991)return null;let _0x3abd88=_0x525991['parent'];for(;_0x3abd88&&_0x3abd88['parent']&&!_0x3abd88['parent']['is']('rootElement')&&!_0x1363c4['model']['schema']['isLimit'](_0x3abd88)&&!_0x1363c4['model']['schema']['isBlock'](_0x3abd88);)_0x3abd88=_0x3abd88['parent'];if(!_0x3abd88||!_0x3abd88['name']||_0x3abd88['is']('rootElement'))return null;let _0xcfd4=null;return _0x1363c4['model']['change'](_0x31c266=>{_0xcfd4='inside'===_0x32ee49?_0x31c266['createRangeIn'](_0x3abd88):_0x31c266['createRangeOn'](_0x3abd88);}),_0xcfd4;}_validateMarkers(_0x51c9b3,_0x24e3b5){const _0x43df61=Array['from'](this['_markers']['keys']()),_0x5d2a80=new Map();for(const _0x3a5919 of _0x43df61){const _0x31dea4=_0x51c9b3['model']['markers']['get'](_0x3a5919);if(!_0x31dea4)continue;const _0x12dfc0=_0x31dea4['getStart']()['root']['rootName']+':'+_0x31dea4['getStart']()['path'][0x0];_0x5d2a80['has'](_0x12dfc0)||_0x5d2a80['set'](_0x12dfc0,[]),_0x5d2a80['get'](_0x12dfc0)['push'](_0x31dea4);}const _0x8ee76b=new Set();for(const _0x5d4715 of _0x51c9b3['model']['document']['differ']['getChanges']()){let _0x39b03e,_0x17a119;if('insert'===_0x5d4715['type'])_0x17a119=new _0x45ca57(_0x5d4715['position'],_0x5d4715['position']['getShiftedBy'](_0x5d4715['length'])),_0x39b03e=_0x5d4715['position']['root']['rootName']+':'+_0x5d4715['position']['path'][0x0];else{if('remove'!==_0x5d4715['type'])continue;_0x17a119=new _0x45ca57(_0x5d4715['position']),_0x39b03e=_0x5d4715['position']['root']['rootName']+':'+_0x5d4715['position']['path'][0x0];}const _0x14e703=_0x5d2a80['get'](_0x39b03e)||[];if(_0x14e703['length']){for(const _0x27dbf4 of _0x14e703)if(_0x17a119['root']['rootName']===_0x27dbf4['getRange']()['root']['rootName']&&('insert'!==_0x5d4715['type']||!_0x17a119['containsRange'](_0x27dbf4['getRange']()))&&(_0x17a119['isIntersecting'](_0x27dbf4['getRange']())||_0x17a119['start']['isTouching'](_0x27dbf4['getRange']()['end'])||_0x17a119['end']['isTouching'](_0x27dbf4['getRange']()['start']))){const _0xdaac2e=this['_parseMarkerName'](_0x27dbf4['name']);Array['from'](this['_markers']['values']())['filter'](_0x5640f6=>_0x5640f6['groupId']===_0xdaac2e['groupId'])['forEach'](_0x51d00d=>_0x8ee76b['add'](_0x51d00d['id']));}}}if(_0x8ee76b['size']){for(const _0x2c4216 of _0x8ee76b)_0x24e3b5['removeMarker'](_0x2c4216);return!0x0;}return!0x1;}['_handleMarkerChanges'](_0x582f33){for(const {name:_0xc48335,data:_0x2e44ef}of _0x582f33['model']['document']['differ']['getChangedMarkers']()){if(!_0xc48335['startsWith'](Ry))continue;const _0x14b93d=_0x2e44ef['oldRange'],_0x2776fd=_0x2e44ef['newRange'],_0x1b0317=_0x14b93d&&'$graveyard'===_0x14b93d['root']['rootName'],_0x44ae87=_0x2776fd&&'$graveyard'===_0x2776fd['root']['rootName'];if(_0x1b0317&&_0x44ae87)continue;const _0x451cab=this['_parseMarkerName'](_0xc48335);this['_markers']['get'](_0xc48335)&&(_0x44ae87||!_0x2776fd?this['_eventEmitter']['fire']('changeMarkerRemoved',{'markerId':_0xc48335,'changeId':_0x451cab['groupId']}):_0x1b0317&&_0x2776fd&&this['_eventEmitter']['fire']('changeMarkerRestored',{'markerId':_0xc48335,'changeId':_0x451cab['groupId']}));}}['_parseMarkerName'](_0x5c3f18){const _0x43c6af=_0x5c3f18['split'](':'),_0xc2a458=(_0x43c6af[0x1]||'')['split']('_');return{'prefix':_0x43c6af[0x0],'groupId':_0xc2a458[0x0],'suffix':_0xc2a458[0x1]};}_translateOperationToEditorContent(_0x369151,_0x40a6be,_0x1109bb){if('insert'===_0x369151['type']){const _0x2731f9=_0x369151;return new _0x144d3a(this['_changePosition'](_0x40a6be['concat'](_0x2731f9['position']['offset']),_0x1109bb),_0x2731f9['nodes'],_0x2731f9['baseVersion']);}if('marker'===_0x369151['type']&&_0x369151['name']['startsWith']('$markedRemove')){const _0x5d0123=_0x369151;return new _0x365d2c(_0x5d0123['name'],_0x5d0123['oldRange'],this['_changeRange'](_0x5d0123['newRange'],_0x40a6be['concat'](_0x5d0123['newRange']['start']['offset']),_0x40a6be['concat'](_0x5d0123['newRange']['end']['offset']),_0x1109bb),_0x5d0123['_markers'],_0x5d0123['affectsData'],_0x5d0123['baseVersion']);}return _0x369151;}_groupAdjacentOperations(_0x2bd232){if(!_0x2bd232['length'])return[];const _0x983de9=[];let _0x5e4bcc=0x0,_0x72bce5=0x0,_0xea93f3=[];for(let _0x43c7cf=0x0;_0x43c7cf<=_0x2bd232['length'];_0x43c7cf++){const _0x118121=_0x2bd232[_0x43c7cf],_0x321df8=_0x2bd232[_0x43c7cf-0x1];!_0x118121||_0x321df8&&!this['_getOperationEnd'](_0x321df8)['isTouching'](this['_getOperationStart'](_0x118121))?(_0x983de9['push']({'operations':_0xea93f3,'operationsIsolated':_0xea93f3['map'](_0x129e5e=>this['_shiftOperation'](_0x129e5e['clone'](),-_0x72bce5)),'groupOffset':_0x5e4bcc}),_0xea93f3=_0x118121?[_0x118121]:[],_0x72bce5+=_0x5e4bcc,_0x5e4bcc=0x0):_0xea93f3['push'](_0x118121),_0x118121&&'insert'===_0x118121['type']&&(_0x5e4bcc+=_0x118121['howMany']);}return _0x983de9;}_findAdjacentContextDistance(_0x57dc79,_0xc864fe,_0x3f4aed,_0x5e0a4e=0x1){const _0xff0a7a=new _0x1c17f6({'startPosition':_0x57dc79,'direction':_0xc864fe});let _0x658637=0x0;for(let _0x29a32d=0x0;_0x29a32d<_0x5e0a4e;_0x29a32d++){let _0x3303f7=0x0,_0x3ef6c5=!0x1,_0x368604='forward'===_0xc864fe?/^\W*\w+/:/\w+\W*$/;for(const {item:_0x4d6c67}of _0xff0a7a)if(_0x4d6c67['is']('$textProxy')){const _0xaa3955=_0x368604['exec'](_0x4d6c67['data']);if(_0xaa3955&&_0xaa3955['length']){if(_0x3303f7+='forward'===_0xc864fe?_0xaa3955['index']+_0xaa3955[0x0]['length']:_0x4d6c67['data']['length']-_0xaa3955['index'],_0xaa3955[0x0]['length']!==_0x4d6c67['data']['length'])break;_0x3ef6c5=!0x0,_0x368604='forward'===_0xc864fe?/^\w+/:/\w+$/;}else{if(_0x3ef6c5)break;_0x3303f7+=_0x4d6c67['offsetSize'];}}else{if(_0x4d6c67['is']('element')){_0x3f4aed['isInline'](_0x4d6c67)&&!_0x3ef6c5&&(_0x3303f7+=0x1);break;}}_0x658637+=_0x3303f7,_0xff0a7a['jumpTo'](_0x57dc79['getShiftedBy']('forward'===_0xc864fe?_0x658637:-_0x658637));}return _0x658637;}_getChangeContext(_0x5ed4b5,_0xb729f0,_0x194a20){const _0xc9a8d8=_0x194a20['model']['schema'],_0x2ff234=this['_findAdjacentContextDistance'](_0x5ed4b5,'backward',_0xc9a8d8,0x6),_0x8b3237=this['_findAdjacentContextDistance'](_0xb729f0,'forward',_0xc9a8d8,0x6),_0x7ee160=_0x5ed4b5['getShiftedBy'](-_0x2ff234),_0x547f65=_0xb729f0['getShiftedBy'](_0x8b3237);return{'start':_0x7ee160,'end':_0x547f65,'hasContentBefore':!_0x7ee160['isAtStart'],'hasContentAfter':!_0x547f65['isAtEnd']};}_insertMarkers(_0x23cd53,_0x3d96cf){const _0x4e965a=this['context']['plugins']['get']('AIEditing'),_0x304417=new Set();_0x3d96cf['model']['change'](_0x421db6=>{for(const _0x558fef of _0x23cd53){const _0x1b3690=''+Ry+_0x558fef['type']+':'+_0x558fef['groupId']+'_'+_0x4e965a['_nextDataId'](_0x304417);this['_markers']['set'](_0x1b3690,{'id':_0x1b3690,'groupId':_0x558fef['groupId'],'type':_0x558fef['type'],'content':_0x558fef['content'],'editor':_0x3d96cf}),_0x421db6['addMarker'](_0x1b3690,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x421db6['createRange'](_0x558fef['start'],_0x558fef['end'])});}});}_createGetContextFn(_0x4accc4,_0x43ed19,_0x4b2350){let _0x4be8d4='';return()=>{if(!_0x4be8d4){const _0x2d51c3=_0x43ed19['toView'](_0x4accc4,{'showSuggestionHighlights':!0x0});let _0x5cd95a=_0x2d51c3['getChild'](0x0);if(_0x5cd95a['is']('containerElement')||(_0x5cd95a=_0x2d51c3),!_0x5cd95a)return'';let _0x11fba3=!0x1;const _0x3a8a54=[];for(const _0x5def3a of _0x5cd95a['getChildren']())_0x5def3a['is']('element','span')&&_0x5def3a['hasClass']('ck-ai_review-marker_context-end')&&(_0x11fba3=!0x1),_0x11fba3&&_0x3a8a54['push'](_0x5def3a),_0x5def3a['is']('element','span')&&_0x5def3a['hasClass']('ck-ai_review-marker_context-start')&&(_0x11fba3=!0x0);_0x5cd95a['_removeChildren'](0x0,_0x5cd95a['childCount']),_0x4b2350?.['ellipsisBefore']&&_0x5cd95a['_appendChild']('…'),_0x5cd95a['_appendChild'](_0x3a8a54),_0x4b2350?.['ellipsisAfter']&&_0x5cd95a['_appendChild']('…');const _0x1d5819=_0x43ed19['htmlProcessor']['domConverter']['viewToDom'](_0x2d51c3),_0x3fc97f=_0x43ed19['htmlProcessor']['htmlWriter']['getHtml'](_0x1d5819);_0x4be8d4=this['_removeUnsupportedElements'](_0x3fc97f);}return _0x4be8d4;};}_createGetContentFn(_0x5d75ec,_0x6f2dd9){let _0x30181f='';return()=>(_0x30181f||(_0x30181f=this['_removeUnsupportedElements'](_0x6f2dd9['stringify'](_0x5d75ec,{'showSuggestionHighlights':!0x0}))),_0x30181f);}_createGetContentUsingDataIdFn(_0x44505a,_0x35aec1,_0x282092){let _0x34eb66='';return()=>{if(!_0x34eb66){const _0x20fe8f=_0x282092['toView'](new _0x25e1b5(_0x44505a));_0x34eb66=_0x282092['htmlProcessor']['domConverter']['viewToDom'](_0x20fe8f)['querySelector']('[data-id=\x22'+_0x35aec1+'\x22]')?.['outerHTML']||'';}return _0x34eb66;};}_removeUnsupportedElements(_0x1bae61){if(!_0x1bae61)return'';const _0x84c077=qc(_0x1bae61,{'decodeEntities':!0x1}),_0x39f4e1=Kc(_0x84c077);if(!_0x39f4e1['length'])return _0x1bae61;for(const _0x43348b of _0x39f4e1)Uc(_0x43348b);return Wc(_0x84c077,{'encodeEntities':!0x1});}_neutralizeChangesOnUnsupportedElements(_0xcf831d,_0x1610eb){const _0x1c17b8=qc(_0xcf831d,{'decodeEntities':!0x1}),_0x2f272d=qc(_0x1610eb,{'decodeEntities':!0x1}),_0x48749f=Kc(_0x1c17b8),_0x5ce9a6=Kc(_0x2f272d);if(!_0x48749f['length']&&!_0x5ce9a6['length'])return{'contentInitial':_0xcf831d,'contentNew':_0x1610eb};const _0x23575f=new Map(),_0x52c57d=new Map();for(const _0x124199 of _0x48749f){const _0x43b154=il(_0x124199,'data-id');if(_0x43b154)_0x23575f['set'](_0x43b154,_0x124199);else{const _0x52e70b=Wc(_0x124199,{'encodeEntities':!0x1}),_0x2bd4c5=_0x52c57d['get'](_0x52e70b);_0x2bd4c5?_0x2bd4c5['push'](_0x124199):_0x52c57d['set'](_0x52e70b,[_0x124199]);}}for(const _0x35b228 of _0x5ce9a6){const _0x3464aa=il(_0x35b228,'data-id');let _0x81c5c1;if(_0x3464aa)_0x81c5c1=_0x23575f['get'](_0x3464aa);else{const _0x57d87f=_0x52c57d['get'](Wc(_0x35b228,{'encodeEntities':!0x1}));_0x81c5c1=_0x57d87f&&_0x57d87f['length']?_0x57d87f['shift']():void 0x0;}_0x81c5c1?Vc(_0x35b228,wc(_0x81c5c1,!0x0)):Uc(_0x35b228);}return{'contentInitial':Wc(_0x1c17b8,{'encodeEntities':!0x1}),'contentNew':Wc(_0x2f272d,{'encodeEntities':!0x1})};}_findMarkerElement(_0x405f87,_0x29da0f=0x5){let _0x8526e0=_0x405f87,_0x497b2c=null;for(let _0x4f3517=0x0;_0x4f3517<_0x29da0f&&_0x8526e0;_0x4f3517++)if(_0x8526e0['className']){if((''+_0x8526e0['className'])['includes']('ck-ai_review-marker_')){if(!_0x8526e0['getAttribute']('data-marker-id'))break;_0x497b2c=_0x8526e0;break;}_0x8526e0=_0x8526e0['parentElement'];}else _0x8526e0=_0x8526e0['parentElement'];return _0x497b2c;}_findMarkerElementById(_0x5cf252){const _0xb433e8=this['_markers']['get'](_0x5cf252);if(!_0xb433e8)return null;const _0x28ff5e=_0xb433e8['editor']['model']['markers']['get'](_0x5cf252);return _0x28ff5e?xm(_0xb433e8['editor']['editing'],_0x28ff5e):null;}_getMarkersDataForGroup(_0x2722dd){return Array['from'](this['_markers']['values']())['filter'](_0x1c935e=>_0x1c935e['groupId']===_0x2722dd);}_getOperationStart(_0x4b712d){return'insert'===_0x4b712d['type']?_0x4b712d['position']:_0x4b712d['newRange']['start'];}_getOperationEnd(_0x44ea61,_0x1f5d9a=!0x1){return'insert'===_0x44ea61['type']?_0x1f5d9a?_0x44ea61['position']:_0x44ea61['position']['getShiftedBy'](_0x44ea61['howMany']):_0x44ea61['newRange']['end'];}_shiftOperation(_0x4ef4c7,_0x75c2fb){return'insert'===_0x4ef4c7['type']?_0x4ef4c7['position']=_0x4ef4c7['position']['getShiftedBy'](_0x75c2fb):'marker'===_0x4ef4c7['type']&&_0x4ef4c7['newRange']&&(_0x4ef4c7['newRange']=new _0x45ca57(_0x4ef4c7['newRange']['start']['getShiftedBy'](_0x75c2fb),_0x4ef4c7['newRange']['end']['getShiftedBy'](_0x75c2fb))),_0x4ef4c7;}_changeOperationOwnerDocument(_0x42750b,_0x5a7baa){'insert'===_0x42750b['type']?_0x42750b['position']=this['_changePositionOwnerDocument'](_0x42750b['position'],_0x5a7baa):'marker'===_0x42750b['type']&&_0x42750b['newRange']&&(_0x42750b['newRange']=this['_changeRangeOwnerDocument'](_0x42750b['newRange'],_0x5a7baa));}_changePositionOwnerDocument(_0x445838,_0x1627ae){return new _0x34c45c(_0x1627ae,_0x445838['path']);}_changeRangeOwnerDocument(_0x234345,_0x402b8b){return new _0x45ca57(this['_changePositionOwnerDocument'](_0x234345['start'],_0x402b8b),this['_changePositionOwnerDocument'](_0x234345['end'],_0x402b8b));}_changePosition(_0x47b35a,_0xc51401){return new _0x34c45c(_0xc51401,[..._0x47b35a]);}['_changeRange'](_0x46b8b6,_0x1ee8c8,_0x2ba718,_0x5cf6d0){return new _0x45ca57(this['_changePosition'](_0x1ee8c8,_0x5cf6d0),this['_changePosition'](_0x2ba718,_0x5cf6d0));}_sortMarkers(_0x39e38a){const _0x4ce4d1=_0x1f501c=>{switch(_0x1f501c){case'insert':return 0x0;case'remove-context':return 0x1;case'remove-only':return 0x2;case'remove-text':return 0x3;}};return _0x39e38a['sort']((_0x36d2ed,_0x4179b0)=>_0x4ce4d1(_0x36d2ed['type'])-_0x4ce4d1(_0x4179b0['type']));}_hasSameTopLevelElement(_0x14f429,_0x43eb96){const _0x3cf064=_0x14f429['getChild'](0x0),_0x5ddbd8=_0x43eb96['getChild'](0x0);return!(!_0x3cf064||!_0x5ddbd8)&&((!_0x3cf064['is']('element')||!_0x5ddbd8['is']('element')||_0x3cf064['name']===_0x5ddbd8['name'])&&!(_0x3cf064['is']('element')&&!_0x5ddbd8['is']('element')||!_0x3cf064['is']('element')&&_0x5ddbd8['is']('element')));}_haveSingleTopLevelElement(_0x52cba5){return 0x1===_0x52cba5['childCount'];}_haveOnlyInlineContent(_0x301f6b,_0x31a039){for(const _0x309af8 of _0x301f6b['getChildren']())if(_0x309af8['is']('element')&&!_0x31a039['isInline'](_0x309af8))return!0x1;return!0x0;}_upsertDataId(_0x4064e1,_0x2b7dc3){let _0x377ce5=_0x4064e1['getAttribute'](pp);return _0x377ce5||(_0x377ce5=_0x2b7dc3(),_0x4064e1['_setAttribute'](pp,_0x377ce5)),_0x377ce5;}};const Ly=/* #__PURE__ -- @preserve */
_0x3e0c97();var $y=class extends Ly{['id'];contentNew;contentInitial;documentVersion;constructor({id:_0x6591e8,contentNew:_0xe48946,contentInitial:_0x543fb7,documentVersion:_0x21a298}){super(),this['id']=_0x6591e8,this['contentNew']=_0xe48946,this['contentInitial']=_0x543fb7,this['documentVersion']=_0x21a298;}};const Dy=/* #__PURE__ -- @preserve */
_0x356c1e();var Qy=class extends Dy{['id'];parent;editor;_data;_editorOperations=[];constructor(_0x21a2a1,_0x4f09a9,_0x224c4,_0x5a020d){super(),this['id']=_0x21a2a1,this['parent']=_0x224c4,this['editor']=_0x5a020d,this['_data']=_0x4f09a9,this['set']('isActivated',!0x1),this['set']('isRated',!0x1),this['set']('status','pending'),this['on']('change:status',()=>{'pending'!==this['status']&&this['isActivated']&&(this['isActivated']=!0x1);});}get contentDiffed(){return this['_data']['wrapperTag']?function(_0x550017){const _0x3742d7=qc(_0x550017)['children']['filter'](fc);return 0x1!==_0x3742d7['length']?_0x550017:_0x3742d7[0x0]['children']['map'](_0x512a74=>Wc(_0x512a74))['join']('');}(this['_data']['context']()):this['_data']['context']();}get['wrapperTag'](){return this['_data']['wrapperTag'];}get operations(){return this['_data']['operations']['slice']();}get operationsIsolated(){return this['_data']['operationsIsolated']['slice']();}};const jy=/* #__PURE__ -- @preserve */
_0x356c1e();var Uy=class extends jy{['id']=_0xea66bb();['callId'];_results=new Map();['_changes']=[];_hasUnsupportedInlineChange=!0x1;['_sourceCheck'];_documentData;_aiConnector;['_reviewParams'];['_reviewArgs'];_contexts;_activeRequest=null;_currentError;_wasAborted=!0x1;constructor(_0x1307e6,_0x20c9bc,_0x3e960e,_0x52bca7,_0x34ae0e,_0x4ce8d9){super(),this['_sourceCheck']=_0x20c9bc,this['_documentData']=_0x1307e6,this['_aiConnector']=_0x3e960e,this['_reviewParams']=_0x52bca7,this['_reviewArgs']=_0x34ae0e,this['_contexts']=_0x4ce8d9,this['on']('change:status',(_0x1d5ce5,_0x37867f,_0x3ea698)=>{'aborted'==_0x3ea698&&(this['_wasAborted']=!0x0),this['fire']('reviewCheckRunUpdated',{'status':_0x3ea698,'run':this,'error':this['_currentError']});}),this['set']('status','initialized');}get documentData(){return this['_documentData'];}get['sourceCheck'](){return this['_sourceCheck'];}get processedResultsCount(){return this['_results']['size'];}get hasUnsupportedInlineChange(){return this['_hasUnsupportedInlineChange'];}get title(){return this['_sourceCheck']['title'];}get subTitle(){return'';}get['reviewName'](){return this['_sourceCheck']['id'];}get hasModifications(){return!this['_changes']['every'](_0x13cb0a=>'pending'===_0x13cb0a['status']);}get currentError(){return this['_currentError'];}get results(){return Array['from'](this['_results']['values']());}updateDocumentData(_0xe0b726){this['_documentData']=_0xe0b726;}async start(){this['status']='loading',this['_currentError']=void 0x0;try{this['_activeRequest']=this['_createApiRequest']();const _0x8eba78=await this['_activeRequest']['getStream']();this['status']='data';for await(const _0x2a2045 of _0x8eba78)'unmodified'!==_0x2a2045['data']['operation']&&('error'!==_0x2a2045['data']['operation']?'review-metadata'!==_0x2a2045['event']?this['_addReviewCheckResult'](_0x2a2045['data']['dataId'],_0x2a2045['data']['textDelta']):this['callId']=_0x2a2045['data']['callId']:this['status']='error-chunk');'error-chunk'!==this['status']&&(0x0===this['_results']['size']||0x0===this['_changes']['length']?this['status']='unmodified':this['status']='ready');}catch(_0x47c55e){this['_currentError']=_0x47c55e,Og(_0x47c55e)?this['status']='aborted':this['status']='error-general';}finally{this['_activeRequest']=null;}}async restart(){this['_results']['clear'](),this['_changes']['length']=0x0,this['_currentError']=void 0x0,this['_hasUnsupportedInlineChange']=!0x1,await this['start']();}addResultChanges(_0x152b67,_0xcc6a2c){const _0x3496d4=this['_results']['get'](_0x152b67);if(!_0x3496d4)return;if(0x0===_0xcc6a2c['length'])return;const _0x3b1138=this['_documentData']['elements']['get'](_0x152b67);if(!_0x3b1138)return;const _0x406c50=[];_0xcc6a2c['forEach']((_0x246fdb,_0x280f0c)=>{const _0x41f49d=new Qy(_0x3496d4['id']+'-'+_0x280f0c,_0x246fdb,_0x3496d4,_0x3b1138['editor']);_0x41f49d['on']('change:status',()=>{this['fire']('reviewCheckResultChangeStatusUpdated',{'change':_0x41f49d,'status':_0x41f49d['status']});}),_0x41f49d['on']('change:isActivated',()=>{_0x41f49d['isActivated']?this['fire']('reviewCheckResultActivated',{'change':_0x41f49d}):this['fire']('reviewCheckResultDeactivated',{'change':_0x41f49d});}),this['_changes']['push'](_0x41f49d),_0x406c50['push'](_0x41f49d);}),this['fire']('reviewCheckResultReady',{'changes':_0x406c50,'result':_0x3496d4,'source':this});}abort(){this['_activeRequest']&&(this['_activeRequest']['abortController']['abort'](),this['_activeRequest']=null,this['status']='aborted');}isChangeActive(_0x18f920){const _0x1fd13c=this['_changes']['find'](_0x132317=>_0x132317['id']===_0x18f920);return!(!_0x1fd13c||'pending'!==_0x1fd13c['status']);}isAnyChangeActivated(){return this['_changes']['some'](_0x491010=>!0x0===_0x491010['isActivated']);}getActiveChanges(){return this['_changes']['filter'](_0x3c3dc1=>'pending'===_0x3c3dc1['status']);}getChangeById(_0x1eb63b){return this['_changes']['find'](_0x5193e6=>_0x5193e6['id']===_0x1eb63b);}markAllChangesAsAccepted(){for(const _0x4eef27 of this['_changes'])'pending'===_0x4eef27['status']&&(_0x4eef27['status']='accepted');this['_checkIfFinished']();}markChangeAsAccepted(_0x13e27d){const _0x1eb082=this['_changes']['find'](_0x2ddc34=>_0x2ddc34['id']===_0x13e27d);_0x1eb082&&'pending'===_0x1eb082['status']&&(_0x1eb082['status']='accepted'),this['_checkIfFinished']();}markChangeAsRejected(_0x376743){const _0x426137=this['_changes']['find'](_0x5cf8a0=>_0x5cf8a0['id']===_0x376743);_0x426137&&'pending'===_0x426137['status']&&(_0x426137['status']='rejected'),this['_checkIfFinished']();}markChangeAsOutdated(_0x5e6872){const _0x35e86e=this['_changes']['find'](_0x5d29b9=>_0x5d29b9['id']===_0x5e6872);_0x35e86e&&'pending'===_0x35e86e['status']&&(_0x35e86e['status']='outdated'),this['_checkIfFinished']();}['markChangeAsPending'](_0x48fafe){const _0xa63329=this['_changes']['find'](_0x1f1cbb=>_0x1f1cbb['id']===_0x48fafe);_0xa63329&&'outdated'===_0xa63329['status']&&(_0xa63329['status']='pending'),this['_checkIfFinished']();}activateChange(_0x498d2e){this['_changes']['filter'](_0x5b86d7=>_0x5b86d7['isActivated']&&_0x5b86d7['id']!==_0x498d2e)['forEach'](_0x25aec0=>{_0x25aec0['isActivated']=!0x1;});const _0x451b2a=this['_changes']['find'](_0x1cd46c=>_0x1cd46c['id']===_0x498d2e);_0x451b2a&&'pending'===_0x451b2a['status']&&(_0x451b2a['isActivated']=!0x0);}deactivateChange(){this['_changes']['filter'](_0x10294c=>_0x10294c['isActivated'])['forEach'](_0x59cdbd=>{_0x59cdbd['isActivated']=!0x1;});}forceReadyState(){this['status']='ready';}async sendRating(_0x2452d1){if('initialized'===this['status']||'loading'===this['status']||'data'===this['status']||this['_wasAborted'])return;if(!this['callId']||0x0===this['_changes']['length'])return;let _0x41881c;if(_0x2452d1){const _0x1b0296=this['_changes']['find'](_0x142eed=>_0x142eed['id']===_0x2452d1);if(_0x1b0296&&_0x1b0296['isRated'])return;_0x1b0296&&(_0x41881c=_0x1b0296['parent']['id'],_0x1b0296['isRated']=!0x0);}const _0x4b4b7f={'positiveCount':this['_changes']['filter'](_0x2d09f9=>'accepted'===_0x2d09f9['status'])['length'],'totalCount':this['_changes']['length']};this['_sendRatingRequest'](_0x4b4b7f,this['callId'],_0x41881c);}_addReviewCheckResult(_0x39a3ef,_0x5acc9b){const _0x447635=this['_documentData']['elements']['get'](_0x39a3ef);if(!_0x447635)return;if(ll(_0x447635['editor'],_0x447635['rootName'])&&!fl(_0x447635['editor'],qc(_0x5acc9b)))return void(this['_hasUnsupportedInlineChange']=!0x0);const _0x4f3ea2=_0x447635['getContent']();if(_0x4f3ea2===_0x5acc9b)return;const _0x173088=new $y({'id':_0x39a3ef,'contentInitial':_0x4f3ea2,'contentNew':_0x5acc9b,'documentVersion':_0x447635['documentVersion']});this['_results']['set'](_0x173088['id'],_0x173088),this['fire']('reviewCheckResultAdded',{'result':_0x173088,'source':this,'editor':_0x447635['editor'],'rootName':_0x447635['rootName']});}['_checkIfFinished'](){'finished'===this['status']&&this['_changes']['filter'](_0x26e0c4=>'pending'===_0x26e0c4['status'])['length']>0x0&&(this['status']='ready'),'ready'===this['status']&&0x0===this['_changes']['filter'](_0x45c5f7=>'pending'===_0x45c5f7['status'])['length']&&(this['status']='finished');}},Vy=class extends Uy{get subTitle(){if(!this['_reviewParams']||0x0===this['_reviewParams']['length'])return'';const _0x3db586=[];if(this['_reviewParams']['length']>0x0&&this['_sourceCheck']['options'])for(let _0x1838a3=0x0;_0x1838a3<this['_reviewParams']['length'];_0x1838a3++){if(!this['_reviewParams'][_0x1838a3]||!this['_sourceCheck']['options'][_0x1838a3])continue;const _0x4ffc2b=this['_sourceCheck']['options'][_0x1838a3]['data']?.['find'](_0x163234=>_0x163234['id']===this['_reviewParams'][_0x1838a3]);_0x4ffc2b&&_0x3db586['push'](_0x4ffc2b['label']);}return _0x3db586['join'](',\x20');}get['reviewName'](){return this['_composeReviewName']();}_createApiRequest(){return this['_aiConnector']['callSystemReview']({'reviewName':this['_composeReviewName'](),'content':this['_documentData']['content'],'args':this['_reviewArgs'],'contexts':this['_contexts']});}_sendRatingRequest(_0x291d78,_0xa2c89e,_0x22cbb1){return this['_aiConnector']['upsertAIReviewRating'](this['reviewName'],_0xa2c89e,_0x291d78,_0x22cbb1);}['_composeReviewName'](){return!this['_reviewParams']||0x0===this['_reviewParams']['length']||this['_sourceCheck']['useArgs']?this['_sourceCheck']['apiId']:[this['_sourceCheck']['apiId'],...this['_reviewParams']]['join']('-');}},By=class extends _0x4dd342{_aiConnector;['_aiReviewCoreUi'];_aiReviewCoreEditing;['_availableReviewChecks'];_reporter;_currentReviewCheckRun;_changeActivationSource=null;static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){this['_initRequiredPlugins'](),this['_initAvailableReviewChecks'](),this['_initUIListeners']();}async _initAvailableReviewChecks(){this['_availableReviewChecks']=await this['_getReviewChecks'](),this['_aiReviewCoreUi']['setAvailableChecks'](this['_availableReviewChecks']);}_initUIListeners(){this['listenTo'](this['_aiReviewCoreUi'],'getReviewCheckList',()=>{this['_availableReviewChecks']&&this['_aiReviewCoreUi']['setAvailableChecks'](this['_availableReviewChecks']);}),this['listenTo'](this['_aiReviewCoreUi'],'runReviewCheck',(_0x19fb39,_0x488286)=>this['runCheck'](_0x488286)),this['listenTo'](this['_aiReviewCoreUi'],'leaveReview',()=>{this['_onReviewRunLeave']();}),this['listenTo'](this['_aiReviewCoreUi'],'leaveReviewCoreResultList',()=>{this['_onReviewRunLeave'](!0x0);}),this['listenTo'](this['_aiReviewCoreUi'],'abortReviewStream',()=>this['abort']()),this['listenTo'](this['_aiReviewCoreUi'],'finishReview',()=>{this['_onReviewRunLeave'](!0x0);}),this['listenTo'](this['_aiReviewCoreUi'],'acceptAllChanges',()=>{if(!this['_currentReviewCheckRun'])return;const _0x1cd934=this['_currentReviewCheckRun']['getActiveChanges']();if(!_0x1cd934['length'])return;this['_aiReviewCoreEditing']['applyChange'](_0x1cd934['map'](_0x5e0e15=>_0x5e0e15['id']),this['_aiSource']);const _0x29867f=this['_currentReviewCheckRun'];_0x29867f['markAllChangesAsAccepted'](),_0x29867f['sendRating']();}),this['listenTo'](this['_aiReviewCoreUi'],'acceptChange',(_0x30bacc,_0x243d83)=>{this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['isChangeActive'](_0x243d83['id'])&&(this['_aiReviewCoreEditing']['applyChange']([_0x243d83['id']],this['_aiSource']),this['_currentReviewCheckRun']['markChangeAsAccepted'](_0x243d83['id']),this['_aiReviewCoreUi']['hideChangeBalloon'](),this['_currentReviewCheckRun']['sendRating'](_0x243d83['id']));}),this['listenTo'](this['_aiReviewCoreUi'],'dismissChange',(_0x11515c,_0xa57615)=>{this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['isChangeActive'](_0xa57615['id'])&&(this['_aiReviewCoreEditing']['rejectChange'](_0xa57615['id']),this['_currentReviewCheckRun']['markChangeAsRejected'](_0xa57615['id']),this['_aiReviewCoreUi']['hideChangeBalloon'](),this['_currentReviewCheckRun']['sendRating'](_0xa57615['id']));}),this['listenTo'](this['_aiReviewCoreUi'],'retryReview',async()=>{this['_currentReviewCheckRun']&&(this['_aiReviewCoreEditing']['clearAllMarkers'](),this['_aiReviewCoreUi']['setAcceptAllEnabled'](!0x1),this['_currentReviewCheckRun']['updateDocumentData'](this['_aiReviewCoreEditing']['getDocumentData']()),await this['_currentReviewCheckRun']['restart']());}),this['listenTo'](this['_aiReviewCoreUi'],'activateChange',(_0x2cb0ef,_0x2be18f)=>{this['_onActivateChange'](_0x2be18f);}),this['listenTo'](this['_aiReviewCoreUi'],'deactivateChange',(_0x151c82,_0x2fbfe6)=>{this['_onDeactivateChange'](_0x2fbfe6);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerClicked',(_0x4353a7,_0x2d32be)=>{this['_onChangeMarkerClicked'](_0x4353a7,_0x2d32be);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerHovered',(_0x311e7d,_0x3d2240)=>{this['_onChangeMarkerHovered'](_0x311e7d,_0x3d2240);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerBlurred',()=>{this['_onChangeMarkerBlurred']();}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerRemoved',(_0x38811a,_0x3e8389)=>{this['_onChangeMarkerRemoved'](_0x38811a,_0x3e8389);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerRestored',(_0x3f8c4f,_0x2c9beb)=>{this['_onChangeMarkerRestored'](_0x3f8c4f,_0x2c9beb);});}async['runCheck'](_0x36f7e6){if(!this['_availableReviewChecks'])return;const _0x566030=this['_availableReviewChecks']['find'](_0x51b070=>_0x51b070['id']===_0x36f7e6['id']);if(!_0x566030)return void this['_logError'](new _0x4242d4('ai-review-mode-source-check-not-found',this,{'checkId':_0x36f7e6['id']}));this['_onReviewCheckRun'](_0x36f7e6),this['_aiReviewCoreEditing']['switchToReadOnly'](),this['_aiReviewCoreUi']['setAcceptAllEnabled'](!0x1);const _0xae4f67=this['context']['plugins']['get'](fa)['contextLibrary']['resolveContext']({'feature':this['_defaultContextFeature'],'ids':[_0x36f7e6['id']],'context':new Ng()});this['_currentReviewCheckRun']=this['_createReviewCheckRun'](_0x36f7e6,_0x566030,_0xae4f67);const _0x3f0012=this['_currentReviewCheckRun'];_0x3f0012['on']('reviewCheckResultChangeStatusUpdated',(_0x58213d,_0xc03f5b)=>{this['_aiReviewCoreUi']['updateChangeState'](_0xc03f5b['change']['id'],_0xc03f5b['status']),this['_pushAcceptAllEnabled'](_0x3f0012);}),this['_aiReviewCoreUi']['setCheckResultTitle'](this['_currentReviewCheckRun']['title'],this['_currentReviewCheckRun']['subTitle']),this['_currentReviewCheckRun']['on']('reviewCheckRunUpdated',(_0x17429c,_0x2a47f5)=>{switch(_0x2a47f5['status']){case'data':case'loading':this['_aiReviewCoreUi']['showCheckRunResults'](_0x2a47f5);break;case'finished':this['_onCheckRunFinished']();break;case'ready':this['_currentReviewCheckRun']?.['hasUnsupportedInlineChange']?this['_aiReviewCoreUi']['showUnsupportedInlineChangeView']():this['_aiReviewCoreUi']['showActionsWhenResultIsReady']();break;case'unmodified':this['_currentReviewCheckRun']?.['hasUnsupportedInlineChange']?this['_aiReviewCoreUi']['showUnsupportedInlineChangeView']():this['_aiReviewCoreUi']['showNoChangesView']();break;case'error-general':this['_aiReviewCoreUi']['showGeneralResultsErrorView'](),this['_logError'](new _0x4242d4('ai-review-mode-check-run-general-error',this,void 0x0,this['_currentReviewCheckRun']?.['currentError']));break;case'error-chunk':this['_aiReviewCoreUi']['showChunkErrorView'](),this['_logError'](new _0x4242d4('ai-review-mode-check-run-chunk-error',this,void 0x0,this['_currentReviewCheckRun']?.['currentError']));break;case'aborted':this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['processedResultsCount']>0x0?setTimeout(()=>{this['_currentReviewCheckRun']?.['forceReadyState']();},0x0):this['_onReviewRunLeave'](!0x0);}'ready'!==_0x2a47f5['status']&&'error-chunk'!==_0x2a47f5['status']&&'error-general'!==_0x2a47f5['status']||this['_currentReviewCheckRun']?.['sendRating']();}),this['_currentReviewCheckRun']['on']('reviewCheckResultAdded',(_0x555aa8,_0x211415)=>{if(!this['_currentReviewCheckRun'])throw new _0x4242d4('ai-review-mode-no-current-check-run',this);const _0x4e73bf=ll(_0x211415['editor'],_0x211415['rootName']);let _0x563a87=_0x211415['result']['contentInitial'],_0x565bc6=_0x211415['result']['contentNew'];_0x4e73bf&&(_0x563a87=dl(_0x563a87),_0x565bc6=dl(_0x565bc6));const _0xd96a8b=this['_diffContent'](_0x211415['editor'],_0x563a87,_0x565bc6);if(_0x4e73bf){const _0x1b8f7d=_0x211415['editor']['ui']['getEditableElement'](_0x211415['rootName'])?.['tagName']['toLowerCase']();for(const _0x3f95a7 of _0xd96a8b)_0x3f95a7['wrapperTag']=_0x1b8f7d;}_0x211415['source']['addResultChanges'](_0x211415['result']['id'],_0xd96a8b);}),this['_currentReviewCheckRun']['on']('reviewCheckResultReady',(_0x30d78b,_0x1a82e1)=>{for(const _0x4cdf78 of _0x1a82e1['changes'])this['_aiReviewCoreUi']['showCheckRunResult'](_0x4cdf78);this['_pushAcceptAllEnabled'](_0x1a82e1['source']),this['_markChangePositionInEditorContent'](_0x1a82e1['changes'],_0x1a82e1['source']['documentData']);}),this['_currentReviewCheckRun']['on']('reviewCheckResultActivated',(_0x11cbaa,_0x260e47)=>{this['_onReviewCheckResultActivated'](_0x260e47);}),this['_currentReviewCheckRun']['on']('reviewCheckResultDeactivated',()=>{this['_onReviewCheckResultDeactivated']();});try{await this['_currentReviewCheckRun']['start']();}catch(_0x336cb8){if(Og(_0x336cb8))return;_0x336cb8 instanceof _0x4242d4?this['_logError'](_0x336cb8):this['_logError'](new _0x4242d4('ai-review-mode-check-run-failed',this,void 0x0,_0x336cb8));}}abort(){this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['abort']();}getAvailableChecks(){return(this['_availableReviewChecks']??[])['slice']();}getCurrentCheckRun(){return this['_currentReviewCheckRun'];}_pushAcceptAllEnabled(_0x35cbbe){this['_aiReviewCoreUi']['setAcceptAllEnabled'](_0x35cbbe['getActiveChanges']()['length']>0x0);}_createReviewCheckRun(_0x1c8499,_0x3c7062,_0x5c3f98=new Ng()){return new Vy(this['_aiReviewCoreEditing']['getDocumentData'](),_0x3c7062,this['_aiConnector'],_0x1c8499['params'],_0x1c8499['args'],_0x5c3f98['refs']);}['_onChangeMarkerRemoved'](_0x3105a5,_0x3a7404){this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['markChangeAsOutdated'](_0x3a7404['changeId']);}_onChangeMarkerRestored(_0x216e12,_0x613083){this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['markChangeAsPending'](_0x613083['changeId']);}['_onCheckRunFinished'](){this['_aiReviewCoreUi']['showReviewCompletedView']();}_initRequiredPlugins(){this['_aiConnector']=this['context']['plugins']['get']('AIConnector'),this['_reporter']=this['context']['plugins']['get'](bg)['createReporter']('aireview');}['_onReviewRunLeave'](_0x2b0e0f=!0x1){this['_currentReviewCheckRun']&&(this['_currentReviewCheckRun']['hasModifications']||this['_currentReviewCheckRun']['sendRating'](),this['_currentReviewCheckRun']['stopListening'](),this['_currentReviewCheckRun']['abort'](),this['_currentReviewCheckRun']=void 0x0),_0x2b0e0f&&this['_aiReviewCoreUi']['showReviewCheckList'](),this['_aiReviewCoreEditing']['clearAllMarkers'](),this['_aiReviewCoreEditing']['switchToEdit'](),this['_changeActivationSource']=null;for(const _0x5e7f45 of this['_aiReviewCoreEditing']['getEditors']())_0x5e7f45['editing']['view']['change'](_0xab4898=>{for(const _0x4a259d of _0x5e7f45['editing']['view']['document']['getRoots']())_0xab4898['removeClass']('ck-ai_review-diff',_0x4a259d),_0xab4898['removeClass']('ck-ai_review-highlights',_0x4a259d),_0xab4898['removeClass']('ck-ai-translate-mode-content',_0x4a259d);});}['_logError'](_0x4bbe69){this['_reporter']['logError'](_0x4bbe69),'ai-review-mode-models-unable-to-retrieve'===function(_0x54b7a7){return _0x54b7a7 instanceof wg?_0x54b7a7['code']:_0x54b7a7 instanceof Error?_0x54b7a7['message']['match'](/^\S+/)?.[0x0]:void 0x0;}(_0x4bbe69)?this['_aiReviewCoreUi']['showGeneralReviewCoreErrorView']():this['_aiReviewCoreUi']['showGeneralResultsErrorView']();}['_scrollToChange'](_0x1ea2b2){if('content'===this['_changeActivationSource']){const _0x3596cc=this['_aiReviewCoreUi']['getChangeElement'](_0x1ea2b2);_0x3596cc&&ti(_0x3596cc['closest']('.ck-ai_review__check-run-result')||_0x3596cc);}else{if('panel'===this['_changeActivationSource']){const _0x7e70a5=this['_getChangeContentElement'](_0x1ea2b2);if(!_0x7e70a5)return;_0xc72d5d({'target':_0x7e70a5,'viewportOffset':{'top':0x55,'left':0x0,'bottom':0x0,'right':0x0},'ancestorOffset':0x14,'alignToTop':!0x0});}}}},Hy=class extends Uy{_prompt;['_model'];constructor(_0x69da2c,_0x4f441e,_0x17a116,_0x2a40c9,_0x4dab49,_0x160f53){super(_0x17a116,_0x2a40c9,_0x4dab49,void 0x0,void 0x0,_0x160f53),this['_prompt']=_0x69da2c,this['_model']=_0x4f441e;}get subTitle(){return this['_prompt']??'';}_createApiRequest(){return this['_aiConnector']['callCustomReview']({'content':this['_documentData']['content'],...void 0x0!==this['_prompt']&&{'prompt':this['_prompt']},'model':this['_model'],'contexts':this['_contexts']});}_sendRatingRequest(_0x4fe819,_0x5bb34b,_0x2f4458){return this['_aiConnector']['upsertCustomAIReviewRating'](_0x5bb34b,_0x4fe819,_0x2f4458);}},Fy=class{['id'];['commandId'];title;description;isParameterized;['useArgs'];options;['args'];get['apiId'](){return this['commandId'];}constructor(_0x38cabc){this['id']=_0x38cabc['id'],this['commandId']=_0x38cabc['commandId'],this['title']=_0x38cabc['title'],this['description']=_0x38cabc['description'],this['isParameterized']=_0x38cabc['isParameterized'],this['useArgs']=_0x38cabc['useArgs'],this['options']=_0x38cabc['options'],this['args']=_0x38cabc['args'];}},Zy=class extends Fy{isExtra=!0x0;prompt;context;['model'];_defaultModel=null;constructor(_0x2bcc36,_0x1db5b3,_0x503d51){super(_0x2bcc36),this['prompt']=_0x2bcc36['prompt'],this['context']=_0x2bcc36['context'],this['model']=_0x2bcc36['model'],this['model']?this['_defaultModel']=_0x1db5b3['find'](_0x525272=>_0x525272['id']===this['model'])||null:this['_defaultModel']=_0x503d51;}get defaultModel(){return this['_defaultModel'];}},Gy=class extends Hy{get subTitle(){return'';}set prompt(_0x2f9365){this['_prompt']=_0x2f9365;}set['model'](_0x1e2fa9){this['_model']=_0x1e2fa9;}},Xy=class extends _0x4dd342{static get requires(){return[oa,bg];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_cache'];_reporter;init(){this['_reporter']=this['context']['plugins']['get'](bg)['createReporter']('aireview');}getChecksList(){return this['_cache']||(this['_cache']=this['_loadChecksList']()),this['_cache'];}};const qy=[{'id':'custom','commandId':'custom','title':'Custom\x20command','description':'Type\x20a\x20custom\x20command\x20to\x20review\x20the\x20content\x20exactly\x20as\x20you\x20need.','isParameterized':!0x0},{'id':'correctness','commandId':'correctness','title':'Correctness','description':'Ensure\x20the\x20text\x20is\x20factually\x20accurate\x20and\x20free\x20of\x20errors.','isParameterized':!0x1},{'id':'clarity','commandId':'clarity','title':'Clarity','description':'Improve\x20the\x20clarity\x20and\x20readability\x20of\x20the\x20text.','isParameterized':!0x1},{'id':'readability','commandId':'readability','title':'Readability','description':'Enhance\x20the\x20overall\x20readability\x20of\x20the\x20text.','isParameterized':!0x1},{'id':'length','commandId':'make','title':'Adjust\x20length','description':'Refine\x20text\x20length\x20to\x20match\x20your\x20needs.','isParameterized':!0x0,'options':[{'formType':'dropdown','label':'Adjust\x20length','default':'longer','data':[{'label':'Longer','id':'longer'},{'label':'Shorter','id':'shorter'}]}]},{'id':'tone','commandId':'make-tone','title':'Adjust\x20tone\x20and\x20style','description':'Choose\x20tone\x20and\x20style\x20to\x20change\x20content\x20as\x20you\x20need.','isParameterized':!0x0,'options':[{'formType':'dropdown','label':'Adjust\x20tone\x20and\x20style','default':'casual','data':[{'label':'Casual','id':'casual'},{'label':'Direct','id':'direct'},{'label':'Friendly','id':'friendly'},{'label':'Confident','id':'confident'},{'label':'Professional','id':'professional'}]}]}],Wy=/* #__PURE__ -- @preserve */
_0x356c1e();var zy=class extends Wy{['_checks']=[];setupChecks(_0x33ba78){this['_checks']=_0x33ba78['map'](_0x334586=>new Fy(_0x334586));}get['checks'](){return this['_checks']['slice']();}getCheckById(_0x1729af){return this['checks']['find'](_0x151df3=>_0x151df3['id']===_0x1729af);}['removeCheckById'](_0x12e0c3){this['_checks']=this['_checks']['filter'](_0x4ccc3c=>_0x4ccc3c['id']!==_0x12e0c3);}},Yy=class extends Fy{['_models']=[];_defaultModel=null;constructor(_0xb84476,_0x319ab7,_0x304e26){super(_0xb84476),this['_models']=_0x319ab7,this['_defaultModel']=_0x304e26;}get['models'](){return this['_models']['slice']();}get defaultModel(){return this['_defaultModel'];}},Ky=class extends zy{['_allModels']=[];['_recommendedModels']=[];_defaultModel=null;constructor(_0x1dd0f1,_0x27c8d2,_0x5024a1){super(),this['_allModels']=_0x1dd0f1,this['_recommendedModels']=_0x27c8d2,this['_defaultModel']=_0x5024a1;}get['allModels'](){return this['_allModels']['slice']();}setupChecks(_0x102b56){this['_checks']=_0x102b56['map'](_0x3d0dcd=>!0x0===_0x3d0dcd['isExtra']?new Zy(_0x3d0dcd,this['_allModels'],this['_defaultModel']):'custom'===_0x3d0dcd['id']?new Yy(_0x3d0dcd,this['_recommendedModels'],this['_defaultModel']):new Fy(_0x3d0dcd));}},Jy=class extends Xy{static get['pluginName'](){return'AIReviewModeCheckRegistry';}static get requires(){return[oa,bg,fa];}['_modelsLoadError']=null;constructor(_0x31453f){super(_0x31453f),this['context']['config']['define']('ai.review.extraCommands',[]);}get['modelsLoadError'](){return this['_modelsLoadError'];}getExtraChecks(){return this['context']['config']['get']('ai.review.extraCommands')['map'](_0x37eac9=>({'id':_0x37eac9['id'],'commandId':_0x37eac9['id'],'title':_0x37eac9['label'],'description':_0x37eac9['description'],'isParameterized':!0x1,'isExtra':!0x0,'prompt':_0x37eac9['prompt'],'context':_0x37eac9['context'],'model':_0x37eac9['model']}));}async _loadChecksList(){const _0x275f02=[...qy,...this['getExtraChecks']()]['map'](_0x1fe484=>_0x1fe484['isExtra']?_0x1fe484:this['_translateReviewCheck'](_0x1fe484)),_0x4fdd6d=this['context']['plugins']['get'](fa);let _0xc24c57;try{_0xc24c57=new Ky(await _0x4fdd6d['models']['getAllModels'](),await _0x4fdd6d['models']['getAvailableModels'](),await _0x4fdd6d['models']['getDefault']()),this['_modelsLoadError']=null;}catch(_0x5375df){this['_modelsLoadError']=new _0x4242d4('ai-review-mode-models-unable-to-retrieve',this,void 0x0,_0x5375df),this['_reporter']['logError'](this['_modelsLoadError'],{'context':{'operation':'load-review-models'}}),_0xc24c57=new Ky([],[],null);}return _0xc24c57['setupChecks'](_0x275f02),_0xc24c57;}_translateReviewCheck(_0x161661){const _0x23918c='AI_REVIEW_CHECK_'+_0x161661['commandId']['toUpperCase']()['replaceAll']('-','_'),_0x425850={..._0x161661,'title':this['_translate'](_0x23918c+'_TITLE',_0x161661['title']),'description':this['_translate'](_0x23918c+'_DESCRIPTION',_0x161661['description'])};return _0x161661['options']&&(_0x425850['options']=_0x161661['options']['map'](_0x2023a7=>({..._0x2023a7,'label':this['_translate'](_0x23918c+'_OPTIONS_LABEL',_0x2023a7['label']||''),'data':_0x2023a7['data']?_0x2023a7['data']['map'](_0x228dcc=>({..._0x228dcc,'label':this['_translate'](_0x23918c+'_OPTIONS_DATA_'+_0x228dcc['id']['toUpperCase'](),_0x228dcc['label'])})):void 0x0}))),_0x425850;}_translate(_0x4cf69a,_0x34f9c8){const _0x554cc1=ca(this['context']['locale'],_0x4cf69a);return _0x554cc1===_0x4cf69a?_0x34f9c8:_0x554cc1;}},tv=class extends By{static get['pluginName'](){return'AIReviewModeController';}static get requires(){return[bg,Jy,fa];}get['_aiSource'](){return'review';}get _defaultContextFeature(){return'review';}['_isDiffOn']=!0x1;['_usesAvailableCommandsConfig'];constructor(_0x454116){super(_0x454116),this['_usesAvailableCommandsConfig']=Boolean(this['context']['config']['get']('ai.review.availableCommands')),this['context']['config']['define']('ai.review.availableCommands',qy['map'](_0x3ec2bb=>_0x3ec2bb['id']));}init(){super['init'](),this['listenTo'](this['_aiReviewCoreUi'],'toggleDiff',(_0x5b8980,_0x1e45b8)=>{this['_isDiffOn']=_0x1e45b8['on'],this['_onDiffChange'](this['_isDiffOn']);});}_initRequiredPlugins(){super['_initRequiredPlugins'](),this['_aiReviewCoreUi']=this['context']['plugins']['get']('AIReviewModeUI'),this['_aiReviewCoreEditing']=this['context']['plugins']['get']('AIReviewCoreEditing');}_createReviewCheckRun(_0xa3c415,_0x4b94e8,_0x5dd7f1=new Ng()){if(_0xa3c415['isCustom'])return new Hy(_0xa3c415['args']['prompt'],_0xa3c415['args']['model'],this['_aiReviewCoreEditing']['getDocumentData'](),_0x4b94e8,this['_aiConnector'],_0x5dd7f1['refs']);if(_0x4b94e8['isExtra']){const _0x4e2617=_0x4b94e8,_0x4548aa=_0x4e2617['context']?_0x5dd7f1['cloneWith'](_0x4e2617['context'])['refs']:_0x5dd7f1['refs'];return new Gy(_0xa3c415['args']?.['prompt']??_0x4e2617['prompt'],_0xa3c415['args']?.['model']??_0x4e2617['defaultModel']['id'],this['_aiReviewCoreEditing']['getDocumentData'](),_0x4b94e8,this['_aiConnector'],_0x4548aa);}return new Vy(this['_aiReviewCoreEditing']['getDocumentData'](),_0x4b94e8,this['_aiConnector'],_0xa3c415['params'],_0xa3c415['args'],_0x5dd7f1['refs']);}_onReviewCheckResultActivated(_0x4ae215){this['_aiReviewCoreUi']['setActiveStateInResults'](_0x4ae215['change']['id']),this['_scrollToChange'](_0x4ae215['change']['id']);const _0x309aad=this['_aiReviewCoreEditing']['getMarkerElementForChange'](_0x4ae215['change']['id']);if(!_0x309aad)return;const _0x5c7138=this['_aiReviewCoreEditing']['getEditorForChange'](_0x4ae215['change']['id'])??this['_aiReviewCoreEditing']['getEditor']();this['_aiReviewCoreUi']['showChangeBalloon'](_0x4ae215['change'],()=>_0x309aad['getElement'](),void 0x0,'click',this['_getBalloonDomRoot'](_0x5c7138,_0x309aad['modelRange']['root']['rootName']),_0x5c7138?.['ui']?.['viewportOffset']),this['_aiReviewCoreEditing']['setMarkersInElementAsActive'](_0x4ae215['change']['id']);}_onReviewCheckResultDeactivated(){this['_aiReviewCoreUi']['resetActiveStateInResults'](),this['_aiReviewCoreUi']['hideChangeBalloon'](),this['_aiReviewCoreEditing']['setAllMarkersAsInactive']();}_onActivateChange(_0x1ab1e1){this['_currentReviewCheckRun']&&'click'===_0x1ab1e1['uiInteraction']&&(this['_changeActivationSource']='panel',this['_currentReviewCheckRun']['activateChange'](_0x1ab1e1['id']));}_onDeactivateChange(_0x221f1a){this['_currentReviewCheckRun']&&'balloon'===_0x221f1a['origin']&&this['_currentReviewCheckRun']['deactivateChange']();}['_onChangeMarkerClicked'](_0x5d7dc4,_0x3aa050){if(!this['_currentReviewCheckRun'])return;this['_changeActivationSource']='content',this['_currentReviewCheckRun']['activateChange'](_0x3aa050['changeId']);const _0x29ae65=this['_currentReviewCheckRun']['getChangeById'](_0x3aa050['changeId']);if(!_0x29ae65)return;const _0x441503=this['_aiReviewCoreEditing']['getMarkerElementForChange'](_0x3aa050['changeId']),_0x21d905=this['_aiReviewCoreEditing']['getEditorForChange'](_0x3aa050['changeId'])??this['_aiReviewCoreEditing']['getEditor']();this['_aiReviewCoreUi']['showChangeBalloon'](_0x29ae65,_0x3aa050['markerElement'],_0x3aa050['domEvent'],'click',this['_getBalloonDomRoot'](_0x21d905,_0x441503?.['modelRange']['root']['rootName']),_0x21d905?.['ui']?.['viewportOffset']);}['_onChangeMarkerHovered'](_0x40cafc,_0x547c72){if(!this['_currentReviewCheckRun'])return;if(this['_currentReviewCheckRun']['isAnyChangeActivated']())return;const _0x12fb9f=this['_currentReviewCheckRun']['getChangeById'](_0x547c72['changeId']);if(!_0x12fb9f)return;const _0x13ad60=this['_aiReviewCoreEditing']['getMarkerElementForChange'](_0x547c72['changeId']),_0x676bc9=this['_aiReviewCoreEditing']['getEditorForChange'](_0x547c72['changeId'])??this['_aiReviewCoreEditing']['getEditor']();this['_aiReviewCoreUi']['showChangeBalloon'](_0x12fb9f,_0x547c72['markerElement'],_0x547c72['domEvent'],'hover',this['_getBalloonDomRoot'](_0x676bc9,_0x13ad60?.['modelRange']['root']['rootName']),_0x676bc9?.['ui']?.['viewportOffset']);}['_onChangeMarkerBlurred'](){this['_currentReviewCheckRun']&&(this['_currentReviewCheckRun']['isAnyChangeActivated']()||this['_aiReviewCoreUi']['hideChangeBalloon']());}_getChangeContentElement(_0x35f4e3){const _0x175302=this['_aiReviewCoreEditing']['getMarkerElementForChange'](_0x35f4e3);return _0x175302?_0x175302['getElement']():null;}_markChangePositionInEditorContent(_0x3a8244,_0x4e28b6){this['_aiReviewCoreEditing']['markChangePositionInEditorContent'](_0x3a8244,_0x4e28b6);}_diffContent(_0x2a24fb,_0x232752,_0x510423){return this['_aiReviewCoreEditing']['diffContent'](_0x2a24fb,_0x232752,_0x510423,!0x1);}['_onReviewCheckRun'](){this['_onDiffChange'](this['_isDiffOn']);}['_onDiffChange'](_0x119efd){_0x119efd?this['_aiReviewCoreUi']['hideDiffInBalloon']():this['_aiReviewCoreUi']['showDiffInBalloon']();for(const _0x2ef402 of this['_aiReviewCoreEditing']['getEditors']())_0x2ef402['editing']['view']['change'](_0x4a4fc5=>{for(const _0x52fa46 of _0x2ef402['editing']['view']['document']['getRoots']()){for(const _0x3f6d36 of _0x52fa46['getClassNames']())_0x3f6d36['startsWith']('ck-ai_review-')&&_0x4a4fc5['removeClass'](_0x3f6d36,_0x52fa46);_0x4a4fc5['addClass'](_0x119efd?'ck-ai_review-diff':'ck-ai_review-highlights',_0x52fa46);}});}_getBalloonDomRoot(_0x58332e,_0x3583d7){const _0x51d9b1=_0x58332e['editing']['view'];if(_0x3583d7){const _0x51612a=_0x51d9b1['getDomRoot'](_0x3583d7);if(_0x51612a)return _0x51612a;}return _0x51d9b1['getDomRoot']()??void 0x0;}async _getReviewChecks(){const _0x8fc4c5=this['context']['plugins']['get']('AIReviewModeCheckRegistry'),_0x265c21=await _0x8fc4c5['getChecksList']();_0x8fc4c5['modelsLoadError']&&this['_logError'](_0x8fc4c5['modelsLoadError']);let _0x47c250=_0x265c21['checks'];const _0x3ee918=this['context']['config']['get']('ai.review.availableCommands');return this['_logWarningForNonExistentChecks'](_0x3ee918,_0x47c250),this['_usesAvailableCommandsConfig']&&(_0x47c250=_0x3ee918['map'](_0x84be7f=>_0x47c250['find'](_0x13a5dc=>_0x13a5dc['id']===_0x84be7f))['filter'](_0x31c3e9=>!!_0x31c3e9)),this['_filterChecksWithMissingModel'](_0x47c250);}_logWarningForNonExistentChecks(_0x46a7a7,_0x1f22d7){const _0x137f54=_0x46a7a7['filter'](_0x1b0ad5=>!_0x1f22d7['some'](_0x5ea8b4=>_0x5ea8b4['id']===_0x1b0ad5));_0x137f54['length']&&this['_reporter']['logError'](new wg({'code':'ai-review-mode-non-existent-commands-used','severity':'warning','context':{'commandIds':_0x137f54['join'](',\x20')}}));}_filterChecksWithMissingModel(_0x4f4ab3){const _0x2a517b=[];return _0x4f4ab3['forEach'](_0x3aab93=>{(_0x3aab93 instanceof Zy&&!_0x3aab93['defaultModel']||_0x3aab93 instanceof Yy&&!_0x3aab93['models']['length'])&&_0x2a517b['push'](_0x3aab93['id']);}),_0x2a517b['length']&&_0x2a517b['forEach'](_0x17f298=>{_0x4f4ab3=_0x4f4ab3['filter'](_0x245f98=>_0x245f98['id']!==_0x17f298),this['_reporter']['logError'](new wg({'code':'ai-review-mode-command-unavailable-due-to-missing-model','context':{'commandId':_0x17f298}}));}),_0x4f4ab3;}},ev=class extends _0x4dd342{static get['pluginName'](){return'AIReviewGateway';}static get requires(){return[My,Jy,oa,_l,cg,fa];}get['models'](){return this['context']['plugins']['get'](fa)['models'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async getAllCommands(){return(await this['context']['plugins']['get']('AIReviewModeCheckRegistry')['getChecksList']())['checks']['map'](_0x45ab51=>{const _0x1f81e9={'id':_0x45ab51['id'],'title':_0x45ab51['title'],'description':_0x45ab51['description']};return'custom'!==_0x45ab51['id']&&_0x45ab51['options']?.['length']&&(_0x1f81e9['parameters']=_0x45ab51['options'][0x0]['data']['map'](_0x31ee9a=>({..._0x31ee9a}))),_0x1f81e9;});}async['runReview'](_0x49b400,_0x78da28){const _0x3ce96b=await this['_resolveReviewCheck'](_0x49b400),_0x2510d2=this['context']['plugins']['get']('AIReviewCoreEditing'),_0x231e09=this['context']['plugins']['get']('AIConnector'),_0xa776b0=_0x2510d2['getDocumentData']({'roots':_0x78da28?.['roots']}),_0x416753=this['_createReviewCheckRun'](_0x3ce96b,_0xa776b0,_0x231e09,_0x78da28?.['parameterId'],_0x78da28?.['contexts']);return _0x2510d2['runCheck'](_0x416753,{'signal':_0x78da28?.['signal']});}async runCustomReview(_0xf39cd8,_0x34946a){const {reviewCheck:_0x3499b2,resolvedModel:_0x589efb}=await this['_resolveCustomReviewCheck'](_0xf39cd8,_0x34946a?.['model']),_0x3cb609=this['context']['plugins']['get']('AIReviewCoreEditing'),_0x1b2c5d=this['context']['plugins']['get']('AIConnector'),_0x3495d6=new Hy(_0xf39cd8,_0x589efb,_0x3cb609['getDocumentData']({'roots':_0x34946a?.['roots']}),_0x3499b2,_0x1b2c5d,_0x34946a?.['contexts']);return _0x3cb609['runCheck'](_0x3495d6,{'signal':_0x34946a?.['signal']});}['applyReview'](_0x8bc418,_0x315c5d){this['context']['plugins']['get']('AIGateway')['apply'](_0x8bc418,{'aiSource':'review',..._0x315c5d});}async['_resolveReviewCheck'](_0x48b121){const _0x2edec6=(await this['context']['plugins']['get']('AIReviewModeCheckRegistry')['getChecksList']())['checks']['find'](_0x3a762d=>_0x3a762d['id']===_0x48b121);if(!_0x2edec6)throw new _0x4242d4('ai-reviewgateway-unknown-command',this,{'checkId':_0x48b121});if(_0x2edec6 instanceof Yy)throw new _0x4242d4('ai-reviewgateway-not-a-system-command',this,{'checkId':_0x48b121});if(_0x2edec6 instanceof Zy&&!_0x2edec6['defaultModel']?.['id'])throw new _0x4242d4('ai-reviewgateway-missing-custom-command-model',this,{'checkId':_0x48b121});return _0x2edec6;}async _resolveCustomReviewCheck(_0x3ad2bc,_0x284fa2){const _0xcf77a3='custom',_0x2bda7e=(await this['context']['plugins']['get']('AIReviewModeCheckRegistry')['getChecksList']())['checks']['find'](_0x4787d5=>_0x4787d5['id']===_0xcf77a3);if(!_0x2bda7e)throw new _0x4242d4('ai-reviewgateway-unknown-command',this,{'checkId':_0xcf77a3});if(!(_0x2bda7e instanceof Yy))throw new _0x4242d4('ai-reviewgateway-not-a-custom-command',this,{'checkId':_0xcf77a3});if(!_0x3ad2bc)throw new _0x4242d4('ai-reviewgateway-missing-custom-command-prompt',this,{'checkId':_0xcf77a3});const _0x5f32b4=_0x284fa2??_0x2bda7e['defaultModel']?.['id'];if(!_0x5f32b4)throw new _0x4242d4('ai-reviewgateway-missing-custom-command-model',this,{'checkId':_0xcf77a3});return{'reviewCheck':_0x2bda7e,'resolvedModel':_0x5f32b4};}_createReviewCheckRun(_0x3eb651,_0x3521a1,_0x4e2dda,_0x48dd33,_0x42258f=[]){if(_0x3eb651 instanceof Zy){const _0x160c79=_0x3eb651['context']?[..._0x42258f,_0x3eb651['context']]:_0x42258f;return new Gy(_0x3eb651['prompt'],_0x3eb651['defaultModel']['id'],_0x3521a1,_0x3eb651,_0x4e2dda,_0x160c79);}return new Vy(_0x3521a1,_0x3eb651,_0x4e2dda,_0x48dd33?[_0x48dd33]:void 0x0,void 0x0,_0x42258f);}},iv=class extends _0x4dd342{static get requires(){return[tv,xy,My,ev];}static get['pluginName'](){return'AIReviewMode';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async startReview(_0x57a6ea,_0x31f68b){if(this['assertStartReviewPreconditions'](_0x57a6ea)instanceof Yy)throw new _0x4242d4('ai-reviewmode-not-a-system-command',this,{'commandId':_0x57a6ea});iy(this['context'],'reviewMode'),await this['context']['plugins']['get']('AIReviewModeController')['runCheck']({'id':_0x57a6ea,'params':_0x31f68b?.['parameterId']?[_0x31f68b['parameterId']]:void 0x0});}async startCustomReview(_0xc354d9,_0x1b9145){if(!_0xc354d9)throw new _0x4242d4('ai-reviewmode-missing-custom-command-prompt',this);const _0x20d582=qy['find'](_0x290382=>'custom'===_0x290382['commandId'])['id'],_0x13f36c=this['assertStartReviewPreconditions'](_0x20d582),_0x2c9742=_0x1b9145?.['model']??_0x13f36c['defaultModel']?.['id'];if(!_0x2c9742)throw new _0x4242d4('ai-reviewmode-missing-custom-command-model',this);iy(this['context'],'reviewMode'),await this['context']['plugins']['get']('AIReviewModeController')['runCheck']({'id':_0x20d582,'isCustom':!0x0,'args':{'prompt':_0xc354d9,'model':_0x2c9742}});}getAvailableCommands(){return this['context']['plugins']['get']('AIReviewModeController')['getAvailableChecks']()['map'](_0x5dedf9=>{const _0x2a99fb={'id':_0x5dedf9['id'],'title':_0x5dedf9['title'],'description':_0x5dedf9['description']};return'custom'!==_0x5dedf9['id']&&_0x5dedf9['options']?.['length']&&(_0x2a99fb['parameters']=_0x5dedf9['options'][0x0]['data']['map'](_0x173abb=>({..._0x173abb}))),_0x2a99fb;});}assertStartReviewPreconditions(_0x5c416f){const _0x49c8f3=this['context']['plugins']['get']('AIReviewModeController');if(_0x49c8f3['getCurrentCheckRun']())throw new _0x4242d4('ai-reviewmode-review-already-running',this);const _0x227f8f=_0x49c8f3['getAvailableChecks']()['find'](_0x204196=>_0x204196['id']===_0x5c416f);if(!_0x227f8f)throw new _0x4242d4('ai-reviewmode-unknown-command',this,{'commandId':_0x5c416f});return _0x227f8f;}},sv=class extends Vy{_title;constructor(_0x169a44,_0x3fe6c4,_0x5dc230,_0x2a09f1,_0x1ae999,_0x63fb17,_0x462443){super(_0x169a44,_0x3fe6c4,_0x5dc230,_0x1ae999,_0x63fb17,_0x462443),this['_title']=_0x2a09f1;}get title(){return this['_title'];}get subTitle(){return this['_sourceCheck']['title'];}},nv=class extends Fy{get['apiId'](){return'translate';}},rv=class extends zy{setupChecks(_0x15c042){this['_checks']=_0x15c042['map'](_0x402a80=>new nv(_0x402a80));}};const ov=[{'label':'English','id':'english'},{'label':'Spanish','id':'spanish'},{'label':'French','id':'french'},{'label':'German','id':'german'},{'label':'Chinese\x20(Simplified)','id':'chinese'},{'label':'Japanese','id':'japanese'},{'label':'Russian','id':'russian'},{'label':'Portuguese','id':'portuguese'},{'label':'Korean','id':'korean'},{'label':'Italian','id':'italian'}];var av=class extends Xy{static get['pluginName'](){return'AITranslateCheckRegistry';}constructor(_0x219254){super(_0x219254),this['context']['config']['define']('ai.translate.languages',ov);}async _loadChecksList(){const _0x3bfcba=[],_0x7e4f=this['context']['config']['get']('ai.translate.languages')||[];for(const _0x1ed028 of _0x7e4f)_0x3bfcba['push']({'title':_0x1ed028['label'],'id':_0x1ed028['id'],'commandId':_0x1ed028['id'],'description':'','isParameterized':!0x1,'useArgs':!0x0,'args':{'language':_0x1ed028['id']}});const _0x919735=new rv();return _0x919735['setupChecks'](this['_translateChecks'](_0x3bfcba)),_0x919735;}_translateChecks(_0x20dc10){const _0x3dca21=this['context']['locale'];return _0x20dc10['map'](_0x5f1530=>{const _0xf1f047='AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_'+_0x5f1530['title']['toUpperCase']()['replaceAll']('-','_'),_0xd6c5ea=ca(_0x3dca21,_0xf1f047);return{..._0x5f1530,'title':_0xd6c5ea===_0xf1f047?_0x5f1530['title']:_0xd6c5ea};});}},cv=class extends By{static get['pluginName'](){return'AITranslateController';}static get requires(){return[bg,av,fa];}get['_aiSource'](){return'translate';}get _defaultContextFeature(){return'translate';}['_onCheckRunFinished'](){this['_onReviewRunLeave'](!0x0);}_initRequiredPlugins(){super['_initRequiredPlugins'](),this['_aiReviewCoreUi']=this['context']['plugins']['get']('AITranslateUI'),this['_aiReviewCoreEditing']=this['context']['plugins']['get']('AIReviewCoreEditing');}_createReviewCheckRun(_0x40dece,_0x1506ab,_0x1305ea){return new sv(this['_aiReviewCoreEditing']['getDocumentData'](),_0x1506ab,this['_aiConnector'],ca(this['context']['locale'],'AI_REVIEW_CHECK_TRANSLATE_TITLE'),_0x40dece['params'],_0x40dece['args'],_0x1305ea?.['refs']);}_onReviewCheckResultActivated(_0x4cbf09){this['_aiReviewCoreUi']['setActiveStateInResults'](_0x4cbf09['change']['id']),this['_aiReviewCoreEditing']['setMarkersInElementAsActive'](_0x4cbf09['change']['id']);}_onReviewCheckResultDeactivated(){this['_aiReviewCoreEditing']['setAllMarkersAsInactive'](),this['_aiReviewCoreUi']['resetActiveStateInResults']();}_onActivateChange(_0xead033){this['_currentReviewCheckRun']&&('hover'===_0xead033['uiInteraction']&&(this['_changeActivationSource']='panel',this['_currentReviewCheckRun']['activateChange'](_0xead033['id'])),'click'===_0xead033['uiInteraction']&&this['_scrollToChange'](_0xead033['id']));}_onDeactivateChange(_0x4377bb){this['_currentReviewCheckRun']&&'panel'===_0x4377bb['origin']&&this['_currentReviewCheckRun']['deactivateChange']();}['_onChangeMarkerClicked'](_0x308c56,_0x471827){this['_currentReviewCheckRun']&&(this['_changeActivationSource']='content',this['_currentReviewCheckRun']['activateChange'](_0x471827['changeId']),this['_scrollToChange'](_0x471827['changeId']));}['_onChangeMarkerHovered'](_0x11b2cb,_0x13120d){this['_currentReviewCheckRun']&&(this['_changeActivationSource']='content',this['_currentReviewCheckRun']['activateChange'](_0x13120d['changeId']),this['_aiReviewCoreEditing']['reactivateMarkers'](_0x13120d['changeId']));}['_onChangeMarkerBlurred'](){this['_currentReviewCheckRun']&&'content'===this['_changeActivationSource']&&(this['_currentReviewCheckRun']['deactivateChange'](),this['_aiReviewCoreEditing']['setAllMarkersAsInactive']());}_getChangeContentElement(_0x1dcec9){return this['_aiReviewCoreEditing']['getContentElementForChange'](_0x1dcec9);}_markChangePositionInEditorContent(_0x502f80,_0x24c301){this['_aiReviewCoreEditing']['markChangePositionInEditorContent'](_0x502f80,_0x24c301);}_diffContent(_0x1b1dbc,_0x3ac1fc,_0x312a42){return this['_aiReviewCoreEditing']['diffContent'](_0x1b1dbc,_0x3ac1fc,_0x312a42,!0x0);}['_onReviewCheckRun'](){for(const _0x209488 of this['_aiReviewCoreEditing']['getEditors']())_0x209488['editing']['view']['change'](_0x41eaac=>{for(const _0x1e697f of _0x209488['editing']['view']['document']['getRoots']())_0x41eaac['addClass']('ck-ai-translate-mode-content',_0x1e697f);});}async _getReviewChecks(){return(await this['context']['plugins']['get']('AITranslateCheckRegistry')['getChecksList']())['checks'];}},lv=class extends vy{constructor(_0x32afd5,_0x206797){super(_0x32afd5,_0x206797),this['on']('set:isLoading',(_0x50150a,_0x1e1d33,_0x51fa32)=>{_0x51fa32&&(this['headerTitle']=ca(this['locale'],'AI_TRANSLATE_CHECK_RESULTS_LOADING_TITLE'));}),this['on']('set:isResultReady',(_0x457a3e,_0x971e65,_0x5273f8)=>{_0x5273f8&&(this['headerTitle']=ca(this['locale'],'AI_TRANSLATE_CHECK_RESULTS_READY_TITLE'));});}_createAcceptAllButtonView(){const _0x2fdc86=super['_createAcceptAllButtonView']();return _0x2fdc86['set']('label',ca(this['locale'],'AI_TRANSLATE_ACCEPT_ALL')),_0x2fdc86;}_createExitReviewButtonView(){const _0x53d3ca=super['_createExitReviewButtonView']();return _0x53d3ca['set']('label',ca(this['locale'],'AI_CHAT_HISTORY_CANCEL')),_0x53d3ca;}},hv=class extends ky{_setupTemplate(){const _0xe80be1=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-translate__check-list-wrapper',_0xe80be1['if']('isVisible','ck-hidden',_0x599774=>!_0x599774)]},'children':[{'tag':'div','attributes':{'class':['ck-ai-translate__check-list-header']},'children':[{'tag':'h2','children':[{'text':ca(this['locale'],'AI_TRANSLATE_CHECK_LIST_HEADER_TITLE')}]},{'tag':'p','children':[{'text':ca(this['locale'],'AI_TRANSLATE_CHECK_LIST_HEADER_DESCRIPTION')}]}]},{'tag':'div','attributes':{'class':['ck-ai_review__check-list',_0xe80be1['if']('isVisible','ck-hidden',_0x57cf25=>!_0x57cf25)]},'children':this['_checkViews']}]});}},uv=class extends Oy{static get['pluginName'](){return'AITranslateUI';}createMainView(){const _0x56fe6e=this['context']['plugins']['get']('AITabs'),_0x471b59=this['context']['locale'],_0x19e71c=new lb(_0x471b59,{'label':ca(_0x471b59,'AI_REVIEW_CHECK_TRANSLATE_TITLE'),'icon':_0x76454d,'class':'ck-ai-header_review-translate','showResizeButton':_0x56fe6e['showResizeButton']});_0x19e71c['delegate']('resizeTabs')['to'](_0x56fe6e),_0x19e71c['bind']('isMaximized')['to'](_0x56fe6e['view'],'isMaximized',_0x26f519=>_0x26f519);const _0x3e822b=new by(_0x471b59,{'header':_0x19e71c,'list':new hv(_0x471b59),'results':new lv(_0x471b59,{'generalErrorText':ca(_0x471b59,'AI_TRANSLATE_GENERAL_ERROR_MESSAGE')}),'completed':new _y(_0x471b59,{'headerText':ca(_0x471b59,'AI_TRANSLATE_FINISH_HEADER_TITLE'),'emptyResultsText':ca(_0x471b59,'AI_TRANSLATE_EMPTY_RESULTS_TEXT'),'buttonText':ca(_0x471b59,'AI_TRANSLATE_FINISH_BUTTON_LABEL')})});return _0x3e822b['extendTemplate']({'attributes':{'class':'ck-ai-translate-mode'}}),_0x3e822b;}registerTab(){const _0x45192a=this['context']['plugins']['get']('AITabs');_0x45192a['view']['on']('activateTab',(_0x3815cf,{newTab:_0x58b340,oldTab:_0x1125b8})=>{'translate'===_0x58b340?this['fire']('getReviewCheckList'):'translate'===_0x1125b8&&this['fire']('leaveReview');}),_0x45192a['view']['addTab']({'id':'translate','buttonLabel':ca(this['context']['locale'],'AI_REVIEW_CHECK_TRANSLATE_TITLE'),'buttonIcon':_0x76454d,'order':0x0,'content':this['_mainView']});}},dv=class extends _0x4dd342{static get['pluginName'](){return'AITranslateGateway';}static get requires(){return[My,oa,_l,cg];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async runTranslate(_0x4b22ab,_0x1f49a4){const _0x262a85=this['context']['plugins']['get']('AIReviewCoreEditing'),_0x17d68b=this['context']['plugins']['get']('AIConnector'),_0x218051=new nv({'id':_0x4b22ab,'commandId':_0x4b22ab,'title':_0x4b22ab,'description':'','isParameterized':!0x1}),_0x39b168=new Vy(_0x262a85['getDocumentData']({'roots':_0x1f49a4?.['roots']}),_0x218051,_0x17d68b,void 0x0,{'language':_0x4b22ab},_0x1f49a4?.['contexts']);return _0x262a85['runCheck'](_0x39b168,{'signal':_0x1f49a4?.['signal']});}applyTranslate(_0x1cf118,_0x33acfa){this['context']['plugins']['get']('AIGateway')['apply'](_0x1cf118,_0x33acfa);}},fv=class extends _0x4dd342{static get requires(){return[cv,uv,My,dv];}static get['pluginName'](){return'AITranslate';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async startTranslate(_0x51a9ec){const _0x471574=this['assertStartTranslatePreconditions'](_0x51a9ec);iy(this['context'],'translate'),await this['context']['plugins']['get']('AITranslateController')['runCheck']({'id':_0x471574['id'],'args':_0x471574['useArgs']?_0x471574['args']:void 0x0});}getAvailableLanguages(){return this['context']['plugins']['get']('AITranslateController')['getAvailableChecks']()['map'](_0x3b97f3=>({'id':_0x3b97f3['id'],'label':_0x3b97f3['title']}));}assertStartTranslatePreconditions(_0x2ab501){const _0x1797e0=this['context']['plugins']['get']('AITranslateController');if(_0x1797e0['getCurrentCheckRun']())throw new _0x4242d4('ai-translate-translation-already-running',this);const _0x436808=_0x1797e0['getAvailableChecks']()['find'](_0x119091=>_0x119091['id']===_0x2ab501);if(!_0x436808)throw new _0x4242d4('ai-translate-unknown-language',this,{'languageId':_0x2ab501});return _0x436808;}},mv=class extends _0x44d8e7{_transformCallback;constructor(_0x2c3cde,_0x35c2c4){super(_0x2c3cde),this['_transformCallback']=_0x35c2c4;}execute(){const _0x222ae9=this['editor']['model'],_0x40db50=Array['from'](this['_getAffectedRanges']()),_0x2c615f=Array['from'](_0x222ae9['document']['selection']['getRanges']());_0x222ae9['change'](_0x104664=>{for(const _0x4f50fb of _0x40db50)this['_modifyContent'](_0x4f50fb,_0x104664);_0x104664['setSelection'](_0x2c615f);});}['refresh'](){for(const _0x56a0d9 of this['_getAffectedRanges']())for(const _0x464ad8 of _0x56a0d9)if(_0x464ad8['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}_getAffectedRanges(){const _0x55a033=this['editor']['model'],_0x5307e7=_0x55a033['document']['selection'];if(_0x5307e7['isCollapsed']){const _0x20b405=this['_findAncestorTextBlock'](_0x5307e7['getFirstPosition']()['parent']);return _0x20b405?[_0x55a033['createRangeIn'](_0x20b405)]:[];}return _0x5307e7['getRanges']();}_modifyContent(_0x7b5e93,_0x5aeb38){for(const _0xc55532 of this['_getElementsAllowingText'](_0x7b5e93)){const _0x147e40=this['_getElementTextContent'](_0xc55532),_0x2a5829=this['_transformCallback'](_0x147e40);for(const _0x2b7816 of this['_getTextNodesRangeLimited'](_0xc55532,_0x7b5e93))this['_replaceTextNodeData'](_0x2b7816,_0x2a5829,_0x5aeb38);}}_findAncestorTextBlock(_0x5eb7ee){const _0x3b844e=this['editor']['model']['schema'];if(_0x5eb7ee['is']('element')&&_0x3b844e['checkChild'](_0x5eb7ee,'$text'))return _0x5eb7ee;const _0x8c3433=_0x5eb7ee['parent'];return!_0x8c3433||_0x3b844e['isLimit'](_0x5eb7ee)?null:this['_findAncestorTextBlock'](_0x8c3433);}*_getElementsAllowingText(_0x2dfbe1){const _0x40f3c9=new Set();for(const {item:_0x141d6b}of _0x2dfbe1['getWalker']()){const _0x348046=this['_findAncestorTextBlock'](_0x141d6b);_0x348046&&!_0x40f3c9['has'](_0x348046)&&(_0x40f3c9['add'](_0x348046),yield _0x348046);}}_getElementTextContent(_0x3b9b3b){return Array['from'](_0x3b9b3b['getChildren']())['reduce']((_0x1cfb74,_0xe5a3be)=>_0x1cfb74+(_0xe5a3be['is']('$text')?_0xe5a3be['data']:'\x20'),'');}*_getTextNodesRangeLimited(_0x3c216c,_0x3318c8){const _0x3f7919=_0x3318c8['getIntersection'](this['editor']['model']['createRangeIn'](_0x3c216c));if(_0x3f7919){for(const _0x35587d of _0x3f7919['getItems']())_0x35587d['is']('$textProxy')&&_0x35587d['parent']==_0x3c216c&&(yield _0x35587d);}}_replaceTextNodeData(_0x5cccbc,_0x2fe800,_0x1f5c0d){const _0xb76b2=_0x2fe800['substring'](_0x5cccbc['startOffset'],_0x5cccbc['endOffset']);if(_0xb76b2===_0x5cccbc['data'])return;const _0x581664=_0x5cccbc['getAttributes']();this['editor']['model']['insertContent'](_0x1f5c0d['createText'](_0xb76b2,_0x581664),_0x1f5c0d['createSelection'](_0x1f5c0d['createRangeOn'](_0x5cccbc)));}};function pv(_0x38155d,_0x1dd3e7,..._0x38872f){const t=_0x38155d['t'];switch(_0x1dd3e7){case'Case\x20change':return t('Case\x20change');case'UPPERCASE':return t('UPPERCASE');case'lowercase':return t('lowercase');case'Title\x20Case':return t('Title\x20Case');case'Change\x20text\x20case':return t('Change\x20text\x20case');case'Changed\x20case\x20to\x20%0':return t('Changed\x20case\x20to\x20%0',..._0x38872f);default:return _0x1dd3e7;}}var gv=class extends _0x11fe30{_currentCommandIndex=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x3e1b33=this['editor'],_0xd77b83=_0x3e1b33['locale']['contentLanguage'],_0x7e90e9=function(_0x4f9fdf=[]){return'function'==typeof _0x4f9fdf?_0x4f9fdf:(_0x196dfc,{wordIndex:_0x16537c})=>_0x16537c>0x0&&_0x4f9fdf['includes'](_0x196dfc);}(_0x3e1b33['config']['get']('caseChange.titleCase.excludeWords')),_0x1df149={'changeCaseUpper':new mv(_0x3e1b33,_0x3121f9=>_0x3121f9['toLocaleUpperCase'](_0xd77b83)),'changeCaseLower':new mv(_0x3e1b33,_0x5d2647=>_0x5d2647['toLocaleLowerCase'](_0xd77b83)),'changeCaseTitle':new mv(_0x3e1b33,_0x42f76c=>function(_0x42208c,_0x5973c7,_0xfc6cad){return function(_0xe14ea5,_0x19f844){let _0x361f14='',_0x5abb51=0x0,_0x4700ce=0x0;for(const _0xf3cdee of _0xe14ea5['matchAll'](/ +/g)){const _0x650e3c=_0xf3cdee['index'],_0xc7e3fe=_0xe14ea5['substring'](_0x5abb51,_0x650e3c);_0xc7e3fe['length']&&(_0x361f14+=_0x19f844(_0xc7e3fe,_0x5abb51,_0x4700ce++)),_0x361f14+=_0xf3cdee[0x0],_0x5abb51=_0x650e3c+_0xf3cdee[0x0]['length'];}const _0x4d0648=_0xe14ea5['substring'](_0x5abb51);return _0x4d0648['length']&&(_0x361f14+=_0x19f844(_0x4d0648,_0x5abb51,_0x4700ce)),_0x361f14;}(_0x42208c,(_0x2372be,_0x5581af,_0x4bcb07)=>{const _0x172c6d=_0x2372be['toLocaleLowerCase'](_0xfc6cad);return _0x5973c7(_0x172c6d,{'charOffset':_0x5581af,'wordIndex':_0x4bcb07,'blockText':_0x42208c})?_0x172c6d:_0x172c6d['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x3120e6=>_0x3120e6['toLocaleUpperCase'](_0xfc6cad));});}(_0x42f76c,_0x7e90e9,_0xd77b83))};for(const [_0x51fa63,_0x22c8c9]of Object['entries'](_0x1df149))_0x3e1b33['commands']['add'](_0x51fa63,_0x22c8c9),_0x22c8c9['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x51fa63);});this['listenTo'](_0x3e1b33['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x3e1b33['keystrokes']['set']('shift+f3',(_0x17d18a,_0x5622c1)=>{const _0x1cc700=Ov(this['editor']['locale']),_0x18c684=_0x1cc700[this['_currentCommandIndex']%_0x1cc700['length']]['commandName'];_0x3e1b33['execute'](_0x18c684),this['_currentCommandIndex']++,_0x5622c1();});}afterInit(){!async function(_0x43882a){const _0x347ddd='EMDS3dsLoJY0nbe9cmlCrXyaZ8zpPqN6jxThf7gwBi2KFOVUWRAG14HQIkut5v',_0x4a78ae=0x791d0,_0x1e5c01=window['Date']['now'](),_0xb76440=_0x43882a['editor'],_0x45797b=new window['Promise'](_0x2a4b6e=>{_0xb76440['once']('ready',_0x2a4b6e);}),_0xae9b31={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x43a4e9=_0xb76440['config']['get']('licenseKey');async function _0x50244a(){let _0x1e3efc,_0x5bea1a=null,_0x4d46ce=null;try{return'GPL'==_0x43a4e9?'NotAllowed':(_0x1e3efc=_0xbbbb70(),_0x1e3efc?(_0x1e3efc['usageEndpoint']&&(_0x4d46ce=_0x47f7e3(_0x1e3efc['usageEndpoint'],_0x1e3efc['jti'])),await _0x7805fd()?_0x4023a5()?_0x285beb()?'Expired':_0xdc7c7()?('evaluation'==_0x1e3efc['licenseType']&&(_0x5bea1a=_0x570b48('EvaluationLimit')),await _0x5268ea()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x285beb(){const _0x2a552d=['evaluation','trial']['includes'](_0x1e3efc['licenseType'])?_0x1e5c01/0x3e8:0xe10*_0x4a78ae;return _0x1e3efc['exp']<_0x2a552d;}function _0x4023a5(){const _0x448c3b=_0x1e3efc['features'];return!!_0x448c3b&&(!!_0x448c3b['includes']('*')||(!!_0x448c3b['includes']('CC')||!!_0x448c3b['includes']('PP')));}function _0xdc7c7(){const _0x2d11b6=_0x1e3efc['licensedHosts'];if(!_0x2d11b6||0x0==_0x2d11b6['length'])return!0x0;const {hostname:_0x5c3d8a}=new URL(window['location']['href']);if(_0x2d11b6['includes'](_0x5c3d8a))return!0x0;const _0x162eb3=_0x5c3d8a['split']('.');return _0x2d11b6['filter'](_0x351e8d=>_0x351e8d['includes']('*'))['map'](_0x3f12d7=>_0x3f12d7['split']('.'))['filter'](_0xc5c751=>_0xc5c751['length']<=_0x162eb3['length'])['map'](_0x49710a=>Array(_0x162eb3['length']-_0x49710a['length'])['fill']('*'===_0x49710a[0x0]?'*':'')['concat'](_0x49710a))['some'](_0x47793f=>_0x162eb3['every']((_0x3de852,_0x2da729)=>_0x47793f[_0x2da729]===_0x3de852||'*'===_0x47793f[_0x2da729]));}function _0x5268ea(){return _0x5bea1a&&_0x4d46ce?new window['Promise']((_0x182303,_0x13ad4b)=>{_0x5bea1a['then'](_0x182303,_0x13ad4b),_0x4d46ce['then'](_0x5e8b13=>{'Valid'!=_0x5e8b13&&_0x182303(_0x5e8b13);},_0x13ad4b);}):_0x5bea1a||_0x4d46ce||'Valid';}}function _0x47f7e3(_0x4d2ca9,_0x170e64){return new window['Promise'](_0x5d2ad0=>{if(_0x46a44b())return _0x5d2ad0('Valid');_0x87e726(),_0xb76440['decorate']('_sendUsageRequest');let _0x1f4598=!0x1;const _0x444597=_0xea66bb();function _0x200ac1(_0x345215){return!!_0x345215&&('object'==typeof _0x345215||'function'==typeof _0x345215)&&'function'==typeof _0x345215['then']&&'function'==typeof _0x345215['catch'];}function _0x5883d0(_0x14dcb4){_0x499b8a(_0x14dcb4)['then'](_0x18ab57=>_0x18ab57&&'ok'==_0x18ab57['status']?_0x33c3ae(_0x36d910(_0x444597+_0x170e64))!=_0x18ab57['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0xd9566a=>(_0x5acc5e(),_0xd9566a),()=>{const _0x17986d=_0x30b6c2();return null==_0x17986d?(_0x5acc5e(),'Valid'):_0x1e5c01-_0x17986d>0x240c8400?'UsageLimit':'Valid';})['then'](_0x5d2ad0)['catch'](()=>{_0x5d2ad0('UsageLimit');});const _0x457398=0x36ee80;function _0x5acc5e(){const _0x178037='llct-'+_0x33c3ae(_0x36d910(_0x4d2ca9)),_0x341d7d=_0x33241d(_0x33c3ae(window['Math']['ceil'](_0x1e5c01/_0x457398)));window['localStorage']['setItem'](_0x178037,_0x341d7d);}function _0x30b6c2(){const _0x3160b0='llct-'+_0x33c3ae(_0x36d910(_0x4d2ca9)),_0x450850=window['localStorage']['getItem'](_0x3160b0);return _0x450850?window['parseInt'](_0x33241d(_0x450850),0x10)*_0x457398:null;}function _0x499b8a(_0x14b016){return new window['Promise']((_0x2ff7ae,_0x39fb23)=>{_0x14b016['then'](_0x2ff7ae,_0x39fb23),window['setTimeout'](_0x39fb23,0x1d4c0);});}}_0xb76440['on']('_sendUsageRequest',(_0x1f3e97,_0x4d00f5)=>{if(_0x4d00f5[0x0]!=_0x4d2ca9)return _0x5d2ad0('UsageLimit');_0x4d00f5[0x1]={..._0x4d00f5[0x1],'requestId':_0x444597};},{'priority':'high'}),_0xb76440['on']('_sendUsageRequest',_0x99c593=>{_0x200ac1(_0x99c593['return'])&&(_0x1f4598=!0x0,_0x5883d0(_0x99c593['return']));},{'priority':'low'}),_0x45797b['then'](()=>{_0x1f4598||_0x5d2ad0('UsageLimit');});});function _0x46a44b(){return'auto'==_0xb76440['editing']['view']['_overlayModeHint'];}function _0x87e726(){_0xb76440['editing']['view']['_overlayModeHint']='auto';}}function _0x570b48(_0x28b9cc){const _0x1992f2=[new window['Promise'](_0x2b2ec7=>setTimeout(_0x2b2ec7,0x93ecc)),_0x45797b['then'](()=>new window['Promise'](_0xfb23d0=>{let _0x14f30f=0x0;_0xb76440['model']['on']('applyOperation',(_0x2ca120,_0x5bb70a)=>{_0x5bb70a[0x0]['isDocumentOperation']&&_0x14f30f++,0x5e8==_0x14f30f&&(_0xfb23d0(),_0x2ca120['off']());});}))];return window['Promise']['race'](_0x1992f2)['then'](()=>_0x28b9cc);}async function _0x3220ab(){await _0x45797b,_0xb76440['model']['change']=_0x2650aa,_0xb76440['model']['enqueueChange']=_0x2650aa,_0xb76440['enableReadOnlyMode']('model');}function _0x49a3cf(_0x69120f){const _0x584f50=_0x3039e9();_0xb76440[_0x584f50]='caseChangeLicenseKey'+_0x69120f,'Valid'!=_0x69120f&&_0x3220ab();}function _0x3039e9(){const _0x5a52e7=window['String'](window['performance']['now']())['replace']('.','');let _0x5b7eea='E';for(let _0x57eeb9=0x0;_0x57eeb9<_0x5a52e7['length'];_0x57eeb9+=0x2){let _0x7159ec=window['parseInt'](_0x5a52e7['substring'](_0x57eeb9,_0x57eeb9+0x2));_0x7159ec>=0x3e&&(_0x7159ec-=0x3e),_0x5b7eea+=_0x347ddd[_0x7159ec];}return _0x5b7eea;}function _0xbbbb70(){const _0x380c48=_0x43a4e9['split']('.');if(0x3!=_0x380c48['length'])return null;return _0x5b05bc(_0x380c48[0x1]);function _0x5b05bc(_0x2d3584){const _0x3f115c=_0x2d4318(_0x2d3584);return _0x3f115c&&_0x201c04()?_0x3f115c:null;function _0x201c04(){const _0x2d2758=_0x3f115c['jti'],_0x465b9d=window['parseInt'](_0x2d2758['substring'](_0x2d2758['length']-0x8),0x10),_0x4752c5={..._0x3f115c,'jti':_0x2d2758['substring'](0x0,_0x2d2758['length']-0x8)};return delete _0x4752c5['vc'],_0x36d910(_0x4752c5)==_0x465b9d;}}}async function _0x7805fd(){let _0x5aeebe=!0x0;try{const [_0x5b4f45,_0xc4e392,_0x3479da]=_0x43a4e9['split']('.');return _0x1b37ff(_0x5b4f45),await _0x247482(_0x5b4f45,_0xc4e392,_0x3479da),_0x5aeebe;}catch{return!0x1;}function _0x1b37ff(_0x3ff971){const _0x50b76f=_0x2d4318(_0x3ff971);_0x50b76f&&'ES256'==_0x50b76f['alg']||(_0x5aeebe=!0x1);}async function _0x247482(_0x744402,_0x18fcd9,_0x2d5400){const _0x1a6760=window['Uint8Array']['from'](_0x1272f6(_0x2d5400),_0x1b027d=>_0x1b027d['charCodeAt'](0x0)),_0x5388d0=new window['TextEncoder']()['encode'](_0x744402+'.'+_0x18fcd9),_0x4f896a=window['crypto']['subtle'];if(!_0x4f896a)return;const _0x270153=await _0x4f896a['importKey']('jwk',_0xae9b31,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x4f896a['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x270153,_0x1a6760,_0x5388d0)||(_0x5aeebe=!0x1);}}function _0x2d4318(_0x3a5fe9){return _0x3a5fe9['startsWith']('ey')?JSON['parse'](_0x1272f6(_0x3a5fe9)):null;}function _0x1272f6(_0x836048){return window['atob'](_0x836048['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x36d910(_0x3262af){let _0x437fc3=0x1505;function _0x18dd71(_0x4289bd){for(let _0x402ed6=0x0;_0x402ed6<_0x4289bd['length'];_0x402ed6++){const _0x45f632=_0x4289bd['charCodeAt'](_0x402ed6);_0x437fc3=(_0x437fc3<<0x5)+_0x437fc3+_0x45f632,_0x437fc3&=_0x437fc3;}}function _0x4a76f7(_0x34a3f7){Array['isArray'](_0x34a3f7)?_0x34a3f7['forEach'](_0x4a76f7):_0x34a3f7&&'object'==typeof _0x34a3f7?Object['entries'](_0x34a3f7)['sort']()['forEach'](([_0x46a7d3,_0x2849da])=>{_0x18dd71(_0x46a7d3),_0x4a76f7(_0x2849da);}):_0x18dd71(window['String'](_0x34a3f7));}return _0x4a76f7(_0x3262af),_0x437fc3>>>0x0;}function _0x33c3ae(_0x58f998){return _0x58f998['toString'](0x10)['padStart'](0x8,'0');}function _0x33241d(_0x5d37a8){return _0x5d37a8['split']('')['reverse']()['join']('');}function _0x2650aa(){}_0x49a3cf(await _0x50244a());}(this);}_announceCaseChangeOperation(_0x5d8b9f){const {ui:_0x3b32bd,locale:_0x2dd8a2}=this['editor'],_0x14c4ad=Ov(_0x2dd8a2)['find'](_0x3d0b92=>_0x3d0b92['commandName']===_0x5d8b9f)['label']['toLowerCase']();_0x3b32bd['ariaLiveAnnouncer']['announce'](pv(_0x2dd8a2,'Changed\x20case\x20to\x20%0',_0x14c4ad));}};function Ov(_0x39d193){return[{'label':pv(_0x39d193,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':pv(_0x39d193,'lowercase'),'commandName':'changeCaseLower'},{'label':pv(_0x39d193,'Title\x20Case'),'commandName':'changeCaseTitle'}];}var wv=class extends _0x11fe30{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x247c64=this['editor'];this['_registerComponents'](),_0x247c64['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':pv(_0x247c64['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1bbee7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4d8569;for(const _0x178413 in _0x1bbee7){const _0x5bdc9e=_0x178413,_0x132e40=_0x1bbee7[_0x5bdc9e];if('caseChangeLicenseKeyValid'==_0x132e40||'caseChangeLicenseKeyInvalid'==_0x132e40||'caseChangeLicenseKeyExpired'==_0x132e40||'caseChangeLicenseKeyDomainLimit'==_0x132e40||'caseChangeLicenseKeyNotAllowed'==_0x132e40||'caseChangeLicenseKeyEvaluationLimit'==_0x132e40||'caseChangeLicenseKeyUsageLimit'==_0x132e40){delete _0x1bbee7[_0x5bdc9e],_0x4d8569=_0x132e40,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x4d8569&&_0x1bbee7['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x4d8569&&_0x1bbee7['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x4d8569&&_0x1bbee7['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x4d8569&&_0x1bbee7['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x4d8569&&_0x1bbee7['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x4d8569&&_0x1bbee7['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_registerComponents(){const _0xb3a6fc=this['editor'],{itemDefinitions:_0x36aa35,commands:_0x505e9c}=this['_getListItemDefinitionsAndCommands']();_0xb3a6fc['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x36aa35,_0x505e9c)),_0xb3a6fc['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x36aa35,_0x505e9c));}_createMenuBarMenuView(_0x116154,_0x7170bd){const _0x34fb4b=this['editor'],_0x27a6e2=_0x34fb4b['locale'],_0x537368=new _0xf2980e(_0x27a6e2),_0x47ee28=new _0x32d381(_0x27a6e2);_0x47ee28['set']({'ariaLabel':pv(_0x27a6e2,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x537368['buttonView']),_0x537368['bind']('isEnabled')['toMany'](_0x7170bd,'isEnabled',(..._0x4da547)=>_0x4da547['some'](_0x356128=>_0x356128));for(const _0x633637 of _0x116154){const _0x821864=new _0x1bf87e(_0x27a6e2,_0x537368),_0x31874b=new _0x589436(_0x27a6e2);_0x31874b['delegate']('execute')['to'](_0x537368),_0x31874b['bind'](...Object['keys'](_0x633637['model']))['to'](_0x633637['model']),_0x31874b['on']('execute',()=>{_0x34fb4b['execute'](_0x633637['model']['commandName']),_0x34fb4b['editing']['view']['focus']();}),_0x821864['children']['add'](_0x31874b),_0x47ee28['items']['add'](_0x821864);}return _0x537368['panelView']['children']['add'](_0x47ee28),_0x537368;}_createDropdownView(_0xcee67f,_0xce1d0e){const _0x149951=this['editor'],_0x1186fe=_0x46490d(_0x149951['locale']);return this['_setButtonProperties'](_0x1186fe['buttonView']),_0x1186fe['buttonView']['set']({'tooltip':!0x0}),_0x1186fe['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x55b796(_0x1186fe,_0xcee67f,{'ariaLabel':pv(_0x149951['locale'],'Case\x20change'),'role':'menu'}),_0x1186fe['bind']('isEnabled')['toMany'](_0xce1d0e,'isEnabled',(..._0x2594c1)=>_0x2594c1['some'](_0x5f5563=>_0x5f5563)),this['listenTo'](_0x1186fe,'execute',_0x2145b7=>{_0x149951['execute'](_0x2145b7['source']['commandName']),_0x149951['editing']['view']['focus']();}),_0x1186fe;}_setButtonProperties(_0x1852b3){const _0x5ecdcc=this['editor'];_0x1852b3['set']({'label':pv(_0x5ecdcc['locale'],'Case\x20change'),'icon':_0x1d3c82,'keystroke':'Shift+F3'});}_getListItemDefinitionsAndCommands(){const _0x2c6eca=new _0x2186b6(),_0x1a98ad=[];for(const _0x4ff4b7 of Ov(this['editor']['locale'])){const _0x1e6d02=this['editor']['commands']['get'](_0x4ff4b7['commandName']),_0x4c85a8=new ts({'commandName':_0x4ff4b7['commandName'],'label':_0x4ff4b7['label'],'role':'menuitemradio','withText':!0x0});_0x4c85a8['bind']('isEnabled')['to'](_0x1e6d02,'isEnabled'),_0x2c6eca['add']({'type':'button','model':_0x4c85a8}),_0x1a98ad['push'](_0x1e6d02);}return{'itemDefinitions':_0x2c6eca,'commands':_0x1a98ad};}},bv=class extends _0x11fe30{static get requires(){return[gv,wv];}static get['pluginName'](){return'CaseChange';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};const yv=/* #__PURE__ -- @preserve */
_0x356c1e();var vv=class extends yv{['model'];['view'];constructor(_0x490a49,_0x211944){super(),this['model']=_0x490a49,this['model']['_isAttached']=!0x0,this['view']=_0x211944,this['listenTo'](_0x211944,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x211944,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x211944,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x211944,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x211944,'addComment',(_0x709619,_0x36fea1)=>this['addComment'](_0x36fea1)),this['listenTo'](_0x211944,'updateComment',(_0x34714d,_0x47dcfc,_0xff883e)=>this['updateComment'](_0x47dcfc,_0xff883e)),this['listenTo'](_0x211944,'removeComment',(_0x14fa30,_0x4622e2)=>this['removeComment'](_0x4622e2));}submit(){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}addComment(_0x4a24d8){this['model']['addComment']({'content':_0x4a24d8,'authorId':this['view']['_localUser']['id']});}updateComment(_0x1fe372,_0x177095){this['model']['getComment'](_0x1fe372)['update']({'content':_0x177095});}removeComment(_0x153d38){this['model']['getComment'](_0x153d38)['remove']();}destroy(){this['stopListening'](),this['model']['_isAttached']=!0x1;}};function _v(_0x3c62a6,_0x360c51,_0x246b11){const t=_0x3c62a6['t'];switch(_0x360c51){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'Annotations\x20sidebar':return t('Annotations\x20sidebar');case'Annotations\x20list':return t('Annotations\x20list');case'Thread\x20comments':return t('Thread\x20comments');case'THREAD_CONTEXT_LABEL':return t({'string':'Thread\x20context:\x20%0','id':'THREAD_CONTEXT_LABEL'},_0x246b11);case'COMMENT_THREAD_LABEL':return t({'string':'Comment\x20thread\x20by\x20%1.\x20%0\x20reply.','plural':'Comment\x20thread\x20by\x20%1.\x20%0\x20replies.','id':'COMMENT_THREAD_LABEL'},_0x246b11);case'COMMENT_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'COMMENT_THREAD_DESCRIPTION'});case'COMMENT_ARIA_LABEL':return t({'string':'Comment\x20by\x20%0.\x20Created\x20on\x20%1.\x20%2.\x20%3','id':'COMMENT_ARIA_LABEL'},_0x246b11);case'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20content\x20with\x20comments.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20content\x20with\x20comments.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_COMMENT_ANNOUNCEMENT'},_0x246b11);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x246b11);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x246b11);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x246b11);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x246b11);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}var Ev=class extends _0x1d0e3f{['main'];editable;constructor(_0x3612b4,_0x45e013){super(_0x3612b4);const _0x5acd50=_0xea66bb();this['main']=this['createCollection'](),this['editable']=new _0x4d38ef(_0x3612b4,_0x45e013,void 0x0,{'label':()=>_v(_0x3612b4,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x3612b4['uiLanguageDirection'],'lang':_0x3612b4['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x5acd50},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}},Tv=class extends _0x1fb434{['view'];constructor(_0x4a9975){super(_0x4a9975),this['view']=new Ev(_0x4a9975['locale'],_0x4a9975['editing']['view']);}get element(){return this['view']['element'];}init(){const _0xa63d2e=this['editor']['editing']['view'],_0x963451=this['view']['editable'];_0x963451['name']=_0xa63d2e['document']['getRoot']()['rootName'],this['view']['render']();const _0x59110e=_0x963451['element'];this['setEditableElement'](_0x963451['name'],_0x59110e),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xa63d2e['attachDomRoot'](_0x59110e),this['fire']('ready');}destroy(){super['destroy'](),this['view']['destroy']();}};const Av=[_0x493c99,_0x32f1b6,_0x5b80f7,_0x2a6b46,_0x325bd9,_0x288ca5,_0x2bb6de],Sv=/* #__PURE__ -- @preserve */
_0x356c1e(_0x95124b);var Iv=class CommentEditor extends Sv{static defaultPlugins=/* #__PURE__ -- @preserve */
((()=>Av)());constructor(_0x1776f2={}){(_0x1776f2=Object['assign']({},_0x1776f2))['plugins']||(_0x1776f2['plugins']=CommentEditor['defaultPlugins']),super(_0x1776f2),this['ui']=new Tv(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this['editing']['view']['_overlayModeHint']='auto',this['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}create(){const _0x2747f3=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x2747f3))['then'](()=>this['fire']('ready'));}destroy(){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x6bd10c=>{const _0x4926f9=this['model']['document']['getRoot'](),_0x36c9be=_0x4926f9&&_0x4926f9['getChild'](_0x4926f9['childCount']-0x1);_0x6bd10c['setSelection'](_0x36c9be,'end'),this['editing']['view']['focus']();});}_updatePlaceholder(){const _0x459294=this['editing']['view'],_0xe41ae9=_0x459294['document']['getRoot'](),_0x34fc6a=_0xe41ae9['getChild'](0x0);_0xe41ae9['childCount']>0x1||!_0x34fc6a||'p'!=_0x34fc6a['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(_0x3f8228(_0x459294,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x34fc6a['placeholder']=this['placeholder']),_0x33f9ea({'view':_0x459294,'element':_0x34fc6a,'keepOnFocus':!0x0}),this['placeholderElement']=_0x34fc6a);}},kv=class extends _0x2f6e1a{keystrokes;['focusTracker'];['focusables'];['focusCycler'];submitButtonView;cancelButtonView;_editorConfig;constructor(_0x423dc2,_0x4ba22b={}){super(_0x423dc2),this['editor']=null,this['_editorConfig']=_0x4ba22b,this['set']('value',_0x4ba22b['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',_v(_0x423dc2,'Reply...')),this['set']('submitLabel',_v(_0x423dc2,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new _0xa8275a(),this['focusTracker']=new _0x1c95ab(),this['focusCycler']=new _0x273f88({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1241e5=>!_0x1241e5['defaultPrevented']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x5d7440,_0x283082)=>{this['cancelButtonView']['fire']('execute'),_0x283082();}),this['keystrokes']['set']('Ctrl+Enter',(_0xd8cdd2,_0x32693b)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x32693b());}),this['on']('submit',(_0x58934f,_0xf94ccd)=>{_0xf94ccd['length']>0xfde8?(alert(_v(_0x423dc2,'TOO_LONG_COMMENT_ALERT',[_0xf94ccd['length'],0xfde8])),_0x58934f['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}createEditor(){return this['editor']||(this['editor']=new Iv(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x13d06a=this['editor'];this['element']['insertBefore'](_0x13d06a['ui']['element'],this['element']['firstChild']),_0x13d06a['model']['document']['on']('change',()=>this['value']=_0x13d06a['getData']()),_0x13d06a['bind']('placeholder')['to'](this),this['focusables']['add'](_0x13d06a['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x1143d4){-0x1===_0x1143d4?(this['focusCycler']['focusFirst'](),this['focusCycler']['focusLast']()):this['focusCycler']['focusFirst']();}async destroy(){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['editor']&&(await this['_editorCreationPromise'],await this['editor']['destroy'](),this['fire']('editorDestroyed',this['editor'])),await super['destroy']());}_createSubmitButton(){const {locale:_0xc0c8b9}=this,_0xb5db03=new _0x39ae99(_0xc0c8b9);return _0xb5db03['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0xb5db03['withText']=!0x0,_0xb5db03['bind']('label')['to'](this,'submitLabel'),_0xb5db03['on']('execute',()=>{this['fire']('submit',this['value']);}),_0xb5db03['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x19ecb2,_0x2b2499)=>!_0x2b2499&&!!_0x19ecb2['trim']()),_0xb5db03;}_createCancelButton(){const {locale:_0x232825}=this,_0x1ab5ad=new _0x39ae99(_0x232825);return _0x1ab5ad['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x1ab5ad['label']=_v(_0x232825,'Cancel'),_0x1ab5ad['withText']=!0x0,_0x1ab5ad['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x1ab5ad;}_setupKeyboardNavigation(){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x17f9f2=>{this['focusTracker']['add'](_0x17f9f2['element']);}),this['focusables']['on']('change',(_0x453036,_0x30c5ba)=>{for(const _0x7ce329 of Array['from'](_0x30c5ba['added'])['reverse']())this['focusTracker']['add'](_0x7ce329['element']);});}},xv=class extends _0x2f6e1a{constructor(_0x4e23f7,_0x105874,_0xac0589){super(_0x4e23f7),this['commentInputView']=new kv(_0x4e23f7,_0xac0589),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x8147ed,_0x13120e)=>_0x8147ed||!!_0x13120e),this['set']('showInput',!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this['commentInputView']['editor']&&this['commentInputView']['createEditor']();}),this['commentInputView']['delegate']('editorReady')['to'](this),this['commentInputView']['delegate']('editorDestroyed')['to'](this),this['userView']=new xl(_0x4e23f7,_0x105874),this['userView']['extendTemplate']({'attributes':{'class':'ck-thread__user','aria-hidden':!0x0}}),this['commentInputView']['extendTemplate']({'attributes':{'class':'ck-thread__input'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-container',this['bindTemplate']['if']('showInput','ck-comment__input-container--active')]},'children':[this['userView'],this['commentInputView']]});}['render'](){super['render'](),this['_focusOnNonInteractiveMouseDown']();}destroy(){return this['commentInputView']['destroy']()['then'](()=>super['destroy']());}['focus'](_0x53ec43){this['commentInputView']['focus'](_0x53ec43);}_focusOnNonInteractiveMouseDown(){this['listenTo'](this['element'],'mousedown',(_0x24a5ad,_0x3fe0e7)=>{const {submitButtonView:_0x83166c,cancelButtonView:_0x1d5bb6,editor:_0x5a6998}=this['commentInputView'];[_0x83166c['element'],_0x1d5bb6['element'],_0x5a6998?_0x5a6998['editing']['view']['getDomRoot']():null]['filter'](_0x21d263=>_0x21d263)['some'](_0x182ba8=>_0x182ba8['contains'](_0x3fe0e7['target']))||(this['focus'](),_0x3fe0e7['preventDefault']());});}},Cv=class extends _0x2f6e1a{constructor(_0x14a832){super(_0x14a832);const _0x550211=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x550211['to']('count',_0x2dda6d=>_v(_0x14a832,'NUMBER_OF_COMMENTS',_0x2dda6d))}]});}},Rv=class extends _0x2f6e1a{commentViews;resolvedCommentView;['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];_collapsedCommentsView;constructor(_0x2025e4,_0x3283dd,_0x219e1d){super(_0x2025e4);const _0x3eb3ab=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x3283dd['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x3283dd,this['_config']=_0x219e1d,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x1c95ab(),this['keystrokes']=new _0xa8275a(),this['focusCycler']=new _0x273f88({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x509d98=>this['commentViews']['map'](_0x414cda=>_0x414cda['element'])['includes'](_0x509d98['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new Cv(_0x2025e4),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x59d721=>_0x59d721-this['_config']['maxCommentsWhenCollapsed']);for(const _0x369f0d of _0x3283dd['comments'])this['_handleNewCommentModel'](_0x369f0d);this['_handleInfoComment'](),this['listenTo'](_0x3283dd['comments'],'add',(_0x3e8613,_0x5f3e86)=>{const _0x1e13a6=this['_calculatePosition'](_0x5f3e86);this['length']++,this['_handleNewCommentModel'](_0x5f3e86,_0x1e13a6),this['refreshVisibleViews']();}),this['listenTo'](_0x3283dd['comments'],'remove',(_0x4167fd,_0x20298c)=>{this['length']--,this['_handleRemoveCommentModel'](_0x20298c),this['refreshVisibleViews']();}),this['listenTo'](_0x3283dd,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x3283dd,'change:isResolved',()=>this['_handleInfoComment']()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this['setTemplate']({'tag':'ul','attributes':{'class':['ck-thread__comments',_0x3eb3ab['if']('length','ck-hidden',_0x3f566d=>!_0x3f566d)],'aria-label':_v(_0x2025e4,'Thread\x20comments')},'children':this['visibleViews']});}get['_shouldCollapse'](){return this['_model']['weight']>this['_config']['maxThreadTotalWeight']&&!this['isActive']&&!this['hasDirtyComment'];}['render'](){super['render'](),this['refreshVisibleViews'](),this['_setupKeyboardNavigation']();}['focus'](_0x3dca2a){-0x1===_0x3dca2a?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}destroy(){this['_collapsedCommentsView']['destroy']();for(const _0x28958c of this['commentViews'])_0x28958c['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}_handleNewCommentModel(_0x569fde,_0x5d1023){const _0x5dc2f7=new this['_config']['CommentView'](this['locale'],_0x569fde,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x5dc2f7['viewUid']=_0x569fde['id'],_0x5dc2f7['delegate']('removeComment')['to'](this),_0x5dc2f7['delegate']('updateComment')['to'](this),_0x5dc2f7['delegate']('resolveCommentThread')['to'](this),_0x5dc2f7['delegate']('editorReady')['to'](this),_0x5dc2f7['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x5dc2f7,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x5dc2f7,_0x5d1023);}_calculatePosition(_0x42e704){const _0x396921=this['_model']['_findOptimalIndex'](_0x42e704);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x42e704['authoredAt']?_0x396921-0x1:_0x396921:_0x396921-0x1;}_handleInfoComment(){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x5b8912={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':_v(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x5b8912,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x5b8912));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}_handleRemoveCommentModel(_0x447cdd){const _0x46821f=this['commentViews']['remove'](_0x447cdd['id']);this['stopListening'](_0x46821f),_0x46821f['isEditMode']&&this['_updateHasDirtyComment'](),_0x46821f['destroy']();}_updateHasDirtyComment(){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x59564f=>_0x59564f['isEditMode']);}['_rearrangeCollapse'](){const _0x2b1850=function(_0x23a2db){const _0x529ab0=new _0x2186b6();for(const _0x248c3d of _0x23a2db)_0x529ab0['add'](_0x248c3d);return _0x529ab0;}(this['commentViews']),_0xfbe491=this['_collapsedCommentsView']['count'];for(let _0x4a90ee=0x1;_0x4a90ee<=_0xfbe491;_0x4a90ee++)_0x2b1850['remove'](0x1);for(const _0x25a961 of _0x2b1850)_0x25a961['collapse']();_0xfbe491>0x0&&_0x2b1850['add'](this['_collapsedCommentsView'],0x1),Pv(_0x5bce1f(Array['from'](this['visibleViews']),Array['from'](_0x2b1850)),this['visibleViews'],_0x2b1850);}['_rearrangeExpand'](){Pv(_0x5bce1f(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x11c4aa of this['visibleViews'])_0x11c4aa['expand']();}_setupKeyboardNavigation(){this['commentViews']['forEach'](_0x531672=>{this['focusTracker']['add'](_0x531672['element']),this['keystrokes']['listenTo'](_0x531672['element']);}),this['commentViews']['on']('change',(_0x5e61d6,_0x2902e7)=>{for(const _0x166ffb of _0x2902e7['removed'])this['focusTracker']['remove'](_0x166ffb['element']),this['keystrokes']['stopListening'](_0x166ffb['element']);for(const _0x3e203f of Array['from'](_0x2902e7['added'])['reverse']())this['focusTracker']['add'](_0x3e203f['element']),this['keystrokes']['listenTo'](_0x3e203f['element']);});}};function Pv(_0x3c30f5,_0x3d5773,_0x2e4f86){let _0x168453=0x0;for(const _0x4b3200 of _0x3c30f5)switch(_0x4b3200){case'insert':_0x3d5773['add'](_0x2e4f86['get'](_0x168453),_0x168453),_0x168453++;break;case'delete':_0x3d5773['remove'](_0x168453);break;case'equal':_0x168453++;}}var Nv=class extends _0x2f6e1a{constructor(_0x13681a){super(_0x13681a);const _0x53845b=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x53845b['to']('contextValue',_0x8c584d=>_v(_0x13681a,'THREAD_CONTEXT_LABEL',_0x8c584d)),'tabindex':-0x1},'children':[{'text':_0x53845b['to']('contextValue')}]});}['focus'](){this['element']['focus']();}},Mv=class extends _0x2f6e1a{['_model'];reopenButtonView;contextView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];constructor(_0x111429,_0xaff54){super(_0x111429);const _0x26e627=this['bindTemplate'];this['_model']=_0xaff54,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x1c95ab(),this['keystrokes']=new _0xa8275a(),this['focusCycler']=new _0x273f88({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x1f42c6=>!!_0x1f42c6),this['bind']('contextValue')['to'](this['_model'],'context',_0xa46bf2=>_0xa46bf2&&_0xa46bf2['value']?this['_trimContextValue'](_0xa46bf2['value']):_v(this['locale'],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-context',_0x26e627['if']('hasContext','ck-context--quotes')]},'children':[this['contextView']]}]},{'tag':'div','attributes':{'class':['ck-annotation__actions']},'children':[this['reopenButtonView']]}]});}['render'](){super['render'](),this['_attachContextActions'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}_createReopenButton(){const _0x2cc417=new _0x39ae99(this['locale']);return _0x2cc417['label']=_v(this['locale'],'Reopen'),_0x2cc417['tooltip']=_v(this['locale'],'Reopen'),_0x2cc417['icon']=_0x43d11e,_0x2cc417['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2d112f=>!_0x2d112f),_0x2cc417['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4c5e3c,_0x178f48)=>_0x4c5e3c&&_0x178f48),_0x2cc417['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x2cc417;}_trimContextValue(_0x5eca43){if(_0x5eca43['length']<0x96)return _0x5eca43;const _0x5f292f=_0x5eca43['lastIndexOf']('\x20',0x93);return _0x5eca43['substring'](0x0,_0x5f292f>-0x1?_0x5f292f:0x93)+'...';}_attachContextActions(){const _0x2f1c6f=this['element']['querySelector']('.ck-context'),_0x16fbcc=_0x2f1c6f['querySelector']('.ck-context__value');this['listenTo'](_0x2f1c6f,'mouseenter',()=>{_0x16fbcc['offsetWidth']<_0x16fbcc['scrollWidth']&&_0x2f1c6f['classList']['add']('overlay');}),this['listenTo'](_0x2f1c6f,'mouseleave',()=>{_0x2f1c6f['classList']['remove']('overlay');});}_setupKeyboardNavigation(){this['keystrokes']['listenTo'](this['element']);for(const _0x236622 of this['focusables'])this['focusTracker']['add'](_0x236622['element']),this['keystrokes']['listenTo'](_0x236622['element']);}_createContextView(){const _0xaf26e=new Nv(this['locale']);return _0xaf26e['bind']('contextValue')['to'](this),_0xaf26e;}},Lv=class extends _0x2f6e1a{['_model'];['_config'];commentThreadHeaderView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];constructor(_0xfffd3f,_0x244dc4,_0x59ef6b,_0x44b524){super(_0xfffd3f),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x244dc4,this['_localUser']=_0x59ef6b,this['_config']=_0x44b524,this['commentThreadHeaderView']=new Mv(_0xfffd3f,_0x244dc4),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Rl(_0xfffd3f,_v(_0xfffd3f,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new Rv(_0xfffd3f,_0x244dc4,Object['assign']({'CommentView':this['_config']['CommentView']},_0x44b524)),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['delegate']('resolveCommentThread')['to'](this),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['listenTo'](this,'resolveCommentThread',()=>{this['focus']();}),this['set']('length',this['commentsListView']['length']),this['bind']('length')['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x488aa9,_0x15fcd6)=>_0x488aa9||!!_0x15fcd6),this['bind']('isUnlinked')['to'](_0x244dc4,'unlinkedAt',_0x518719=>!!_0x518719);let _0x5deaea=null;const _0x2a30e0=()=>{const _0x57fcb6=this['_model']['comments']['first']||null;_0x57fcb6!==_0x5deaea&&(_0x5deaea&&this['stopListening'](_0x5deaea,'change:content'),_0x5deaea=_0x57fcb6,_0x57fcb6&&this['listenTo'](_0x57fcb6,'change:content',_0x2a30e0));const _0x1db7f9=_0x57fcb6?_0x57fcb6['author']['name']:this['_localUser']['name'],_0x3d196e=_0x57fcb6?new DOMParser()['parseFromString'](Rm(_0x57fcb6['content'],{'limit':this['_config']['maxCommentCharsWhenCollapsed']}),'text/html')['body']['textContent']:'',_0x214eb3=_v(this['locale'],'COMMENT_THREAD_LABEL',[this['length'],_0x1db7f9]);this['set']('ariaLabel',_0x3d196e?_0x214eb3+'\x20'+_0x3d196e:_0x214eb3);};this['listenTo'](this['_model']['comments'],'change',_0x2a30e0),_0x2a30e0(),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x1c95ab(),this['keystrokes']=new _0xa8275a(),this['focusCycler']=new _0x273f88({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x12842b=>_0x12842b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),qm(this,this['focusables']);}async destroy(){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentThreadInputView(){const _0xd1ad19=new xv(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2c2841=_0xd1ad19['commentInputView'];return _0xd1ad19['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x2c2841,'value',(_0x6071ed,_0x424de2,_0x552f04,_0x47e325,_0x26547c)=>!!_0x26547c||!!_0x47e325&&_0x552f04&&!_0x424de2||_0x6071ed&&_0x552f04&&!_0x424de2),_0x2c2841['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x1d4608,_0x15dd9f,_0x33e7af)=>{let _0x2fe2ad;return _0x2fe2ad=_0x33e7af&&_0x15dd9f?'Reply\x20to\x20reopen\x20discussion...':_0x1d4608?'Reply...':'Write\x20a\x20comment...',_v(this['locale'],_0x2fe2ad);}),_0x2c2841['bind']('submitLabel')['to'](this,'length',_0x471883=>_v(this['locale'],_0x471883?'Reply':'Comment')),_0x2c2841['on']('submit',(_0x2bd027,_0x3f2e59)=>{this['fire']('addComment',_0x3f2e59),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x2c2841['on']('cancel',()=>{this['focus']();}),_0x2c2841['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x2c2841['on']('cancel',_0x3b79a0=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x3b79a0['stop']());}),this['on']('change:isActive',(_0x46cc13,_0x18cfff,_0x31acb3)=>{_0x31acb3||this['length']||_0x2c2841['value']||this['fire']('removeCommentThread');}),_0xd1ad19;}};const $v=/* #__PURE__ -- @preserve */
Mm(Lv);var Dv=class extends $v{commentThreadChildren;containerElement;resolveButton;_boundFirstCommentView;constructor(_0x2bbf5c,_0x12a06d,_0x18f329,_0x9180aa){super(_0x2bbf5c,_0x12a06d,_0x18f329,_0x9180aa),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x2bbf5c,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x17f45f,_0x201a97,_0x41d581)=>{_0x41d581||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x1256a9,_0x1e6850,_0x33df89)=>{_0x33df89&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}getTemplate(){const _0x13ee52=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x13ee52['if']('isActive','ck-thread--active'),_0x13ee52['if']('isUnlinked','ck-thread--unlinked'),_0x13ee52['to']('actionIndicator',_0x1c882d=>_0x1c882d?'ck-thread--'+_0x1c882d:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x13ee52['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':this['commentThreadChildren']}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container'),this['_model']['on']('change:archivedAt',()=>{this['_updateArchivedThreadHeader']();}),this['_updateArchivedThreadHeader']();}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x41ec10 of this['commentsListView']['commentViews'])_0x41ec10['cancelConfirm']();}_bindFirstCommentView(){const {locale:_0x50d6bc}=this,_0x6a5524=this['commentsListView']['commentViews']['get'](0x0);_0x6a5524===this['_boundFirstCommentView']||_0x6a5524['isSystemComment']||(this['_boundFirstCommentView']=_0x6a5524,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x6a5524,'actionIndicator',_0x54bd33=>'remove'===_0x54bd33?'remove':null),_0x6a5524['placeholder']=_v(_0x50d6bc,'Write\x20a\x20comment...'),_0x6a5524['removeButton']['on']('execute',_0x10593f=>{_0x10593f['stop'](),this['showConfirm'](_v(_0x50d6bc,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x6a5524['focus']();}),_0x6a5524['actionBar']['add'](this['resolveButton'],0x0),_0x6a5524['focusables']['add'](this['resolveButton'],0x0));}_createResolveButton(){const _0x5d4762=new Pl(this['locale']);return _0x5d4762['label']=_v(this['locale'],'Resolve'),_0x5d4762['tooltip']=_v(this['locale'],'Resolve'),_0x5d4762['icon']=_0x2659e3,_0x5d4762['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x5d4762['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x287201=>!_0x287201),_0x5d4762['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3a76d2,_0x406964)=>_0x3a76d2&&!_0x406964),_0x5d4762['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x5d4762;}_updateArchivedThreadHeader(){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}},Qv=class extends _0x2f6e1a{constructor(_0x378261){super(_0x378261),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x2b9616,_0x27b0ab,_0x317d80)=>{this['element']['innerHTML']=_0x317d80;}),this['element']['innerHTML']=this['content'];}},jv=class extends _0x2f6e1a{['visibleView'];ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x4c5589,_0x3aaf00,_0x1e210f){super(_0x4c5589),this['_model']=_0x3aaf00,this['_config']=_0x1e210f,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x3aaf00,'content',_0x3aaf00,'authoredAt',(_0x5860a3,_0x425989)=>_v(_0x4c5589,'COMMENT_ARIA_LABEL',[_0x3aaf00['author']['name'],_0x1e210f['formatDateTime'](_0x425989),new DOMParser()['parseFromString'](_0x5860a3,'text/html')['body']['textContent'],_0x3aaf00['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Rl(_0x4c5589,_v(_0x4c5589,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x18940b(),this['focusTracker']=new _0x1c95ab(),this['keystrokes']=new _0xa8275a(),this['focusCycler']=new _0x273f88({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xe38f69=>_0xe38f69['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['expand'](){this['isCollapsed']=!0x1;}['collapse'](){this['isEditMode']||(this['isCollapsed']=!0x0);}['focus'](){this['element']['focus']();}['render'](){super['render'](),this['_setupKeyboardNavigation']();}async destroy(){await this['visibleView']['get'](0x0)['destroy'](),super['destroy']();}switchToEditMode(){this['isEditMode']||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentInputView']()));}switchToDisplayMode(){this['isEditMode']&&(this['isEditMode']=!0x1,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentContentView']()));}getExternalCommentNote(){return'importWord'===this['_model']['attributes']['@external']['source']?_v(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):_v(this['locale'],'EXTERNAL_COMMENT');}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?_v(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):_v(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}_createCommentContentView(){const _0x1f487b=new Qv(this['locale']);return _0x1f487b['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x5a62d3,_0x4f7128)=>_0x4f7128?Rm(_0x5a62d3,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x5a62d3),_0x1f487b;}_createCommentInputView(){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x4ee313=new kv(this['locale'],this['_config']['editorConfig']);return _0x4ee313['value']=this['_model']['content'],_0x4ee313['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x4ee313['submitLabel']=_v(this['locale'],'Save'),_0x4ee313['on']('submit',(_0x49e2c2,_0x129b7b)=>{this['fire']('updateComment',this['_model']['id'],_0x129b7b),this['switchToDisplayMode'](),this['focus']();}),_0x4ee313['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x4ee313['once']('editorReady',()=>{_0x4ee313['focus']();}),_0x4ee313['createEditor'](),_0x4ee313['delegate']('editorReady')['to'](this),_0x4ee313['delegate']('editorDestroyed')['to'](this),_0x4ee313;}_setupKeyboardNavigation(){const _0x517992=this['element'];this['keystrokes']['listenTo'](_0x517992);for(const _0x406b2a of this['focusables'])this['focusTracker']['add'](_0x406b2a['element']),this['keystrokes']['listenTo'](_0x406b2a['element']);this['focusables']['on']('change',(_0x12927a,_0x1d7fe3)=>{for(const _0x17af49 of _0x1d7fe3['removed'])this['focusTracker']['remove'](_0x17af49['element']),this['keystrokes']['stopListening'](_0x17af49['element']);for(const _0x3191d8 of _0x1d7fe3['added'])this['focusTracker']['add'](_0x3191d8['element']),this['keystrokes']['listenTo'](_0x3191d8['element']);}),this['keystrokes']['set']('enter',(_0x21fccf,_0x1f632c)=>{_0x517992===_0x21fccf['target']&&(this['focusCycler']['focusFirst'](),_0x1f632c());}),this['keystrokes']['set']('esc',(_0x549fe7,_0x17df57)=>{_0x517992!==_0x549fe7['target']&&(this['focus'](),_0x17df57());});}};const Uv=/* #__PURE__ -- @preserve */
Mm(jv);var Vv=class extends Uv{actionBar;['userView'];constructor(_0x959931,_0x239e9b,_0x300ccb){super(_0x959931,_0x239e9b,_0x300ccb),this['set']('actionIndicator',null),this['set']('placeholder',_v(_0x959931,'Reply...')),this['bind']('authoredAt')['to'](_0x239e9b),this['bind']('resolvedAt')['to'](_0x239e9b),this['actionBar']=this['createCollection'](),this['isSystemComment']||(this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['items']=this['createCollection'](),this['items']['addMany']([this['editButton'],this['removeButton']]),this['dropdown']=this['_createDropdown'](),this['actionBar']['add'](this['dropdown']),this['focusables']['add'](this['dropdown'])),this['userView']=new xl(_0x959931,_0x239e9b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x239e9b,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}getTemplate(){const _0x5694e7=this['bindTemplate'],_0x155baf=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x5694e7['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5694e7['to']('authoredAt',_0x3be6f0=>this['_config']['formatDateTime'](_0x3be6f0))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x5694e7['if']('isEditMode','ck-comment__actions--hidden'),_0x5694e7['if']('isEditMode','ck-annotation__actions--hidden')]},'children':this['actionBar']},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']},this['ariaDescriptionView']];return this['_model']['isExternal']&&_0x155baf['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x5694e7['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x5694e7['if']('isEditMode','ck-comment--edit'),_0x5694e7['if']('isSystemComment','ck-comment--info'),_0x5694e7['to']('actionIndicator',_0x2fbd98=>_0x2fbd98?'ck-comment--'+_0x2fbd98:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id'],'role':'group'},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':_0x155baf}]}]};}_createEditButton(){const _0x18565d=new _0x39ae99(this['locale']);return _0x18565d['label']=_v(this['locale'],'Edit'),_0x18565d['icon']=Ht,_0x18565d['withText']=!0x0,_0x18565d['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x18565d['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1b14ad=>!_0x1b14ad),_0x18565d['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x18565d['on']('execute',()=>this['switchToEditMode']()),_0x18565d;}_createRemoveButton(){const _0x524bf3=new _0x39ae99(this['locale']);return _0x524bf3['label']=_v(this['locale'],'Remove'),_0x524bf3['icon']=Yt,_0x524bf3['withText']=!0x0,_0x524bf3['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x524bf3['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2e2cea=>!_0x2e2cea),_0x524bf3['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x524bf3['on']('execute',()=>{this['showConfirm'](_v(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x524bf3;}_createDropdown(){const _0x439be5=_0x46490d(this['locale'],Nl),_0x567bd3=_0x439be5['panelView']['children'],_0x5bda68=new _0x19f1e8(this['locale']),_0x2cf9d1=_0x439be5['bindTemplate'];_0x18848c(_0x439be5,()=>this['items']['find'](_0x333e1a=>_0x333e1a['isVisible'])),_0x439be5['extendTemplate']({'attributes':{'class':[_0x2cf9d1['if']('isVisible','ck-hidden',_0x98482=>!_0x98482)]}});const _0x79a63=(_0x37139d,_0x4a980f=-0x1)=>{const _0xcc9a27=new _0x585012(this['locale']);_0xcc9a27['children']['add'](_0x37139d);const _0x587ee4=_0x4a980f>-0x1?_0x4a980f:_0x5bda68['items']['length'];_0x5bda68['items']['add'](_0xcc9a27,_0x587ee4);const _0x3e5d78=Array['from'](this['items']);_0x439be5['unbind']('isEnabled','isVisible'),_0x439be5['bind']('isEnabled')['toMany'](_0x3e5d78,'isEnabled',(..._0x9a668)=>_0x9a668['some'](_0xa029cf=>_0xa029cf)),_0x439be5['bind']('isVisible')['toMany'](_0x3e5d78,'isVisible',(..._0x54c514)=>_0x54c514['some'](_0x545a26=>_0x545a26));};_0x439be5['panelPosition']='sw',_0x439be5['buttonView']['set']({'label':_v(this['locale'],'Show\x20more\x20items'),'icon':_0x1589e0});for(const _0xd09f75 of this['items'])_0x79a63(_0xd09f75);return _0x567bd3['add'](_0x5bda68),_0x439be5['listenTo'](this['items'],'add',(_0x2c9082,_0x4971c7,_0x3efbf2)=>{_0x79a63(_0x4971c7,_0x3efbf2);}),_0x439be5['listenTo'](this['items'],'remove',(_0x31a1ca,_0x47558b,_0x173459)=>{_0x5bda68['items']['remove'](_0x173459);}),_0x439be5;}_attachActions(_0x5b0bee,_0x6cad5e){const _0x28449c=_0x5b0bee&&_0x5b0bee['element'];_0x28449c&&(this['listenTo'](_0x28449c,'mouseenter',()=>this['actionIndicator']=_0x6cad5e),this['listenTo'](_0x28449c,'focus',()=>this['actionIndicator']=_0x6cad5e),this['listenTo'](_0x28449c,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x28449c,'blur',()=>this['actionIndicator']=null));}_createCommentInputView(){const _0x15b9c3=super['_createCommentInputView']();return _0x15b9c3['bind']('placeholder')['to'](this),_0x15b9c3;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}};function Bv(_0x663379){const _0xf19809=_r(_0x663379,0x1e),_0x2f7ead=new MutationObserver(_0x1cca8f=>{for(const _0x4fb983 of _0x1cca8f)('attributes'==_0x4fb983['type']&&'class'==_0x4fb983['attributeName']||'childList'==_0x4fb983['type']||'characterData'==_0x4fb983['type'])&&_0xf19809();});return{'attach'(_0x3734eb){_0x2f7ead['observe'](_0x3734eb,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x2f7ead['disconnect'](),_0xf19809['cancel']();}};}var Hv=class extends _0x2f6e1a{['focusTracker'];['id'];keystrokes;content;['mainView'];_mutationObserver;constructor(_0x2b0501,_0x1fd36c){super(_0x2b0501),this['id']=_0xea66bb(),this['focusTracker']=new _0x1c95ab(),this['keystrokes']=new _0xa8275a(),this['keystrokes']['set']('Esc',(_0xd028dd,_0x3d7bb8)=>this['fire']('Esc',_0x3d7bb8)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=Bv(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x1fd36c),this['mainView']=_0x1fd36c;const _0x4ca7ff=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x4ca7ff['if']('isActive','ck-annotation-wrapper--active')],'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['focusTracker']['add'](this['element']),this['keystrokes']['listenTo'](this['element']),this['_mutationObserver']['attach'](this['element']);}destroy(){this['content']['clear'](),this['keystrokes']['destroy'](),this['focusTracker']['destroy'](),this['_mutationObserver']['detach'](),super['destroy']();}['focus'](){this['content']['first']&&this['content']['first']['focus']();}_updateHeight(){const _0x4f666b=this['element']['clientHeight'];_0x4f666b&&(this['height']=_0x4f666b);}};const Fv=/* #__PURE__ -- @preserve */
_0x356c1e();var Zv=class Annotation extends Fv{['view'];focusableElements;_type;_target;constructor({view:_0x287691,target:_0x2c3dc0,type:_0x168a4d,isVisible:_0x3146bc=!0x0}){super(),this['view']=_0x287691,this['view']['element']||this['view']['render'](),this['_type']=_0x168a4d,this['_target']=_0x2c3dc0,Annotation['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x2186b6([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x4d831e,_0x146981)=>{this['view']['focusTracker']['add'](_0x146981);}),this['focusableElements']['on']('remove',(_0xb3e056,_0x38c484)=>{this['view']['focusTracker']['remove'](_0x38c484);}),this['set']('isVisible',_0x3146bc);}get type(){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get target(){const _0x33c7fc=this['_getNormalizedTarget']();return Annotation['_assertCorrectTarget'](_0x33c7fc),_0x33c7fc;}get targetRect(){const _0x3bd070=this['target'];if(null===_0x3bd070)return null;if(_0x3bd070 instanceof _0x517140)return _0x3bd070;const _0x209ec6=_0x3bd070['filter'](_0x514e6c=>function(_0x4333b2){return!!_0x4333b2['offsetParent']||!!_0x4333b2['getClientRects']()['item'](0x0);}(_0x514e6c));return 0x0===_0x209ec6['length']?null:_0x517140['getDomElementRects'](_0x209ec6[0x0])[0x0];}get isActive(){return this['view']['isActive'];}set isActive(_0x30d4e7){this['view']['isActive']=_0x30d4e7,this['view']['mainView']['isActive']=_0x30d4e7;}updateTargetRect(){this['view']['targetRect']=this['targetRect'];}destroy(){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}refreshVisibility(){this['isVisible']=!!this['targetRect'];}static _assertCorrectTarget(_0x5f25f1){if(!(null===_0x5f25f1||_0x5f25f1 instanceof _0x517140||Array['isArray'](_0x5f25f1)&&_0x5f25f1['every'](_0x36c77c=>Gv(_0x36c77c))))throw new _0x4242d4('annotation-invalid-target',null,{'target':_0x5f25f1});}_getNormalizedTarget(){const _0x58aee8='function'==typeof this['_target']?this['_target']():this['_target'];return Gv(_0x58aee8)?[_0x58aee8]:_0x58aee8;}};function Gv(_0x207ff6){return null!==_0x207ff6&&'object'==typeof _0x207ff6&&'nodeType'in _0x207ff6&&0x1===_0x207ff6['nodeType'];}var Xv=class extends _0x2186b6{_innerViewToAnnotation;_viewToAnnotation;['_focusTracker'];constructor(_0x1550a3=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x1c95ab(),this['_focusTracker']['on']('change:isFocused',(_0xb1713,_0x532dd4,_0x2c5078)=>{_0x2c5078||this['fire']('blur');});for(const _0x2ca2a2 of _0x1550a3)this['add'](_0x2ca2a2);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x33cb8e){if(this['has'](_0x33cb8e))throw new _0x4242d4('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x33cb8e['innerView'],_0x33cb8e),this['_viewToAnnotation']['set'](_0x33cb8e['view'],_0x33cb8e);for(const _0x313c28 of _0x33cb8e['focusableElements'])this['_focusTracker']['add'](_0x313c28);if(this['listenTo'](_0x33cb8e['focusableElements'],'add',(_0x23de30,_0x3be615)=>{this['_focusTracker']['add'](_0x3be615);}),this['listenTo'](_0x33cb8e['focusableElements'],'remove',(_0x502b51,_0x5cb3e3)=>{this['_focusTracker']['remove'](_0x5cb3e3);}),this['listenTo'](_0x33cb8e['view']['focusTracker'],'change:isFocused',(_0x396007,_0x5d5fca,_0x9f428b)=>{_0x9f428b&&this['fire']('focus',_0x33cb8e);}),_0x33cb8e['updateTargetRect'](),this['_areCachedRectsStale']()){for(const _0xb09d4c of this)_0xb09d4c['updateTargetRect']();}const _0x2d0097=this['_getOrderInContent'](_0x33cb8e['view']['targetRect']);return super['add'](_0x33cb8e,_0x2d0097);}['remove'](_0x4cbe85){if(!this['has'](_0x4cbe85))throw new _0x4242d4('annotationcollection-not-existing-item',null);this['stopListening'](_0x4cbe85['view']['focusTracker']),this['stopListening'](_0x4cbe85['focusableElements']);for(const _0x9c0101 of _0x4cbe85['focusableElements'])this['_focusTracker']['remove'](_0x9c0101);return this['_viewToAnnotation']['delete'](_0x4cbe85['view']),this['_innerViewToAnnotation']['delete'](_0x4cbe85['innerView']),super['remove'](_0x4cbe85);}getByInnerView(_0x20a227){return this['_innerViewToAnnotation']['get'](_0x20a227);}getByView(_0x5e9e45){return this['_viewToAnnotation']['get'](_0x5e9e45);}destroy(){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}refreshPositioning(){for(const _0x743cbd of this)_0x743cbd['updateTargetRect']();this['_sort']();}_sort(){const _0x537ed9=Array['from'](this)['sort']((_0x850a83,_0x4f4098)=>Wv(_0x850a83['view']['targetRect'],_0x4f4098['view']['targetRect']));for(let _0x953df1=_0x537ed9['length']-0x1;_0x953df1>0x0;_0x953df1--){const _0x5b5614=_0x537ed9[_0x953df1];_0x953df1!==this['getIndex'](_0x5b5614)&&(this['remove'](_0x5b5614),this['add'](_0x5b5614));}}_getOrderInContent(_0xef7e7c){let _0x347e2f=0x0;if(!_0xef7e7c)return this['length'];for(const _0x34b4d5 of this){const _0x585977=_0x34b4d5['view']['targetRect'];if(_0x585977){if(Wv(_0xef7e7c,_0x585977)<0x0)return _0x347e2f;_0x347e2f++;}}return _0x347e2f;}_areCachedRectsStale(){const _0x38f6d0=this['get'](0x0);if(!_0x38f6d0)return!0x1;const _0x2e5d0e=_0x38f6d0['view']['targetRect'],_0x47246d=_0x38f6d0['targetRect'];return!(!_0x2e5d0e||!_0x47246d)&&(_0x2e5d0e['top']!==_0x47246d['top']||_0x2e5d0e['left']!==_0x47246d['left']);}};function qv({source:_0x58ca28,target:_0x41a606,filter:_0x1432bf}){for(const _0x3e2eb1 of _0x58ca28)_0x1432bf(_0x3e2eb1)&&_0x41a606['add'](_0x3e2eb1);_0x41a606['listenTo'](_0x58ca28,'add',(_0xcc1df8,_0x5e9d0e)=>{_0x1432bf(_0x5e9d0e)&&_0x41a606['add'](_0x5e9d0e);}),_0x41a606['listenTo'](_0x58ca28,'remove',(_0x552875,_0x2a07d9)=>{_0x41a606['has'](_0x2a07d9)&&_0x41a606['remove'](_0x2a07d9);});}function Wv(_0x271771,_0x224c35){if(null===_0x271771&&null===_0x224c35)return 0x0;if(null===_0x271771)return-0x1;if(null===_0x224c35)return 0x1;const _0x1d98dd=_0x271771['top']-_0x224c35['top'];return 0x0==_0x1d98dd?_0x271771['left']-_0x224c35['left']:_0x1d98dd;}var zv=class extends _0x4dd342{collection;_visibleAnnotations;static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ccaed){if(super(_0x4ccaed),this['collection']=new Xv(),this['_visibleAnnotations']=new Xv(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x4ccaed instanceof _0x95124b){const _0xbb482c=_0x4ccaed['locale'];_0x4ccaed['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':_v(_0xbb482c,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':_v(_0xbb482c,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':_v(_0xbb482c,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':_v(_0xbb482c,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':_v(_0xbb482c,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':_v(_0xbb482c,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':_v(_0xbb482c,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x2491f4){this['collection']['add'](_0x2491f4);}['remove'](_0x49101c){this['collection']['remove'](_0x49101c),_0x49101c['destroy']();}refreshVisibility(){for(const _0xbad726 of this['collection'])_0xbad726['refreshVisibility']();}refreshPositioning(){this['_visibleAnnotations']['refreshPositioning']();}getByInnerView(_0xedd30d){return this['collection']['getByInnerView'](_0xedd30d);}deactivateAll(){this['fire']('_deactivateAllAnnotations');}destroy(){for(const _0x33b721 of this['collection'])_0x33b721['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}activate(_0x4eb6e1){this['fire']('_activateAnnotation',_0x4eb6e1);}createAnnotation(_0x3ad227){return new Zv(_0x3ad227);}createAnnotationView(_0x577518,_0x3ae0ed){return new Hv(_0x577518,_0x3ae0ed);}_addActiveAnnotation(_0x291cd3){const _0x465dd8=new Set(this['activeAnnotations']);_0x465dd8['add'](_0x291cd3),this['activeAnnotations']=_0x465dd8;}_removeActiveAnnotation(_0x5c1d7a){const _0x3aefbf=new Set(this['activeAnnotations']);_0x3aefbf['delete'](_0x5c1d7a),this['activeAnnotations']=_0x3aefbf;}_bindAnnotationsToVisibleAnnotations(){const _0x3fba59=this['collection'],_0x27d0b3=this['_visibleAnnotations'];function _0x33412e(_0x1c9abf){const _0x2bca49=_0x1c9abf['source'];_0x2bca49['isVisible']&&!_0x27d0b3['has'](_0x2bca49)?_0x27d0b3['add'](_0x2bca49):!_0x2bca49['isVisible']&&_0x27d0b3['has'](_0x2bca49)&&_0x27d0b3['remove'](_0x2bca49),_0x2bca49['view']['focusTracker']['remove'](_0x2bca49['view']['element']),_0x2bca49['view']['focusTracker']['add'](_0x2bca49['view']['element']);}this['listenTo'](_0x3fba59,'add',(_0x334f72,_0x50e225)=>{_0x50e225['isVisible']&&_0x27d0b3['add'](_0x50e225),this['listenTo'](_0x50e225,'change:isVisible',_0x33412e);}),this['listenTo'](_0x3fba59,'remove',(_0x585034,_0x3e768e)=>{_0x27d0b3['has'](_0x3e768e)&&_0x27d0b3['remove'](_0x3e768e),this['stopListening'](_0x3e768e,'change:isVisible',_0x33412e);});}_setupEnterAnnotationKeystroke(){const _0x3eff96=_0x49cf32=>{_0x49cf32['on']('ready',()=>{_0x49cf32['keystrokes']['set'](Xm,(_0x20d679,_0x21df21)=>{const _0x2e5199=_0x4b2d4c(this['activeAnnotations']['values']());_0x2e5199&&(_0x2e5199['view']['focus'](),_0x21df21());});});};this['context']instanceof _0x95124b?_0x3eff96(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x37dba3,_0x36cc04)=>{_0x3eff96(_0x36cc04);});}_setupEscapeAnnotationHandling(){const _0x473193=_0x3c24fe=>{const _0x35b791=_0x3c24fe['source'],_0x4611ab=[];let _0x246bb1;if(Array['isArray'](_0x35b791['target'])){_0x246bb1=_0x35b791['target'][0x0],this['context']instanceof _0x95124b?_0x4611ab['push'](this['context']):this['context']['editors']&&_0x4611ab['push'](...this['context']['editors']);for(const _0x449aec of _0x4611ab)for(const _0x495909 of _0x449aec['editing']['view']['domRoots']['values']())if(_0x495909['contains'](_0x246bb1))return void _0x449aec['editing']['view']['focus']();_0x246bb1['focus']();}};this['listenTo'](this['collection'],'add',(_0x22cf20,_0x1d97d7)=>{this['listenTo'](_0x1d97d7,'escape',_0x473193,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x58ae28,_0x1138a1)=>{this['stopListening'](_0x1138a1,'escape',_0x473193);});}};const Yv=Symbol('noChannel'),Kv={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0},Jv=/* #__PURE__ -- @preserve */
_0x356c1e(),t_=/* #__PURE__ -- @preserve */
_0x356c1e();var e_=class extends _0x4dd342{_threads;_threadToController;_viewToController;static get requires(){return[zv,_0x88e4e2,Al];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7abf66){super(_0x7abf66),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x580821=this['context']['config'];_0x580821['define']('comments.maxCommentsWhenCollapsed',0x2),_0x580821['define']('comments.maxThreadTotalWeight',0x1f4),_0x580821['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x580821['define']('comments.CommentThreadView',Dv),_0x580821['define']('comments.CommentView',Vv),_0x580821['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}init(){const _0x331dda=this['context']['plugins']['get'](zv);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x49b29f,_0x40d7ab)=>this['_addCommentThread'](_0x40d7ab)),this['on']('submitCommentThread',(_0x210e81,_0x27cbfd)=>this['_submitCommentThread'](_0x27cbfd)),this['on']('resolveCommentThread',(_0x33ae52,_0x109f23)=>this['_resolveCommentThread'](_0x109f23)),this['on']('resolveCommentThread',(_0x8da43e,_0x3bddae)=>this['_updateActiveAnnotation'](_0x3bddae),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x2607d6,_0x24d4ea)=>this['_reopenCommentThread'](_0x24d4ea)),this['on']('reopenCommentThread',(_0x7ab8f7,_0x51e06d)=>this['_updateActiveAnnotation'](_0x51e06d),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x484842,_0x4f6a16)=>this['_removeCommentThread'](_0x4f6a16)),this['on']('updateCommentThread',(_0x20705b,_0x362f1e)=>this['_updateCommentThread'](_0x362f1e)),this['on']('updateCommentThread',(_0x156d7e,_0x4cc30c)=>this['_updateActiveAnnotation'](_0x4cc30c),{'priority':'lowest'}),this['on']('addComment',(_0x1a6091,_0x4fa22a)=>this['_addComment'](_0x4fa22a)),this['on']('updateComment',(_0x54a521,_0x1fa557)=>this['_updateComment'](_0x1fa557)),this['on']('removeComment',(_0x1b0967,_0xf32be3)=>this['_removeComment'](_0xf32be3)),this['on']('addComment',(_0x3f7bd5,{threadId:_0x10ee35,isFromAdapter:_0x2da533})=>{if(_0x2da533)return;const _0x511d26=this['getCommentThread'](_0x10ee35),_0x358202=_0x511d26&&this['_threadToController']['get'](_0x511d26);_0x358202&&_0x358202['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x331dda,'change:activeAnnotations',(_0x5e5da3,_0x5474b5,_0x296839)=>{const _0x496341=Array['from'](_0x296839)['map'](_0x29baeb=>this['_viewToController']['get'](_0x29baeb['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x496341?_0x496341['model']:null;});}set adapter(_0x2edd53){if(this['_adapter'])throw new _0x4242d4('commentsrepository-adapter-already-set');this['_adapter']=_0x2edd53;}get adapter(){return this['_adapter'];}addCommentThread({channelId:_0x5499d4=Yv,threadId:_0x1aa778=_0xea66bb(),comments:_0x2b1f2a=[],unlinkedAt:_0x1a30f6=null,resolvedAt:_0x27cf71=null,resolvedBy:_0x7d9b7d=null,target:_0x4b50be=null,context:_0x133b3a=null,attributes:_0x349943={},isResolvable:_0x53d580=!0x0,isSubmitted:_0x1ac6b0=!0x1,isFromAdapter:_0x3b72f0=!0x1}={}){return this['fire'](n_('addCommentThread',_0x5499d4),{'channelId':_0x5499d4,'threadId':_0x1aa778,'comments':_0x2b1f2a,'unlinkedAt':_0x1a30f6,'resolvedAt':_0x27cf71,'resolvedBy':_0x7d9b7d,'target':_0x4b50be,'context':_0x133b3a,'attributes':_0x349943,'isFromAdapter':_0x3b72f0,'isResolvable':_0x53d580,'isSubmitted':_0x1ac6b0}),this['getCommentThread'](_0x1aa778);}openNewCommentThread({channelId:_0x441ad3=Yv,threadId:_0x35da56=_0xea66bb(),target:_0xec1ec0,context:_0x1e84df=null,isResolvable:_0x2de694=!0x0}){if(this['_readOnlyChannels']['has'](_0x441ad3)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0xec1ec0)throw new _0x4242d4('commentsrepository-missing-target');const _0x3dc3da=this['addCommentThread']({'channelId':_0x441ad3,'threadId':_0x35da56,'target':_0xec1ec0,'context':_0x1e84df,'isResolvable':_0x2de694});if(!_0x3dc3da)return null;const _0x31d90d=this['_threadToController']['get'](_0x3dc3da),_0x99bb8f=_0x31d90d['view']['commentThreadInputView']['commentInputView'],_0x39788e=this['context']['plugins']['get'](zv),_0x30237c=_0x39788e['getByInnerView'](_0x31d90d['view']);return _0x39788e['activate'](_0x30237c),_0x99bb8f['once']('editorReady',()=>_0x99bb8f['focus']()),_0x3dc3da;}hasCommentThread(_0x354826){if('string'!=typeof _0x354826)throw new _0x4242d4('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x354826);}updateCommentThread({channelId:_0x376271=Yv,threadId:_0x5c6130,context:_0x22bfc1,unlinkedAt:_0x1cfd67,attributes:_0x27221b,isFromAdapter:_0x34c3c0=!0x1}){return this['fire'](n_('updateCommentThread',_0x376271),{'channelId':_0x376271,'threadId':_0x5c6130,'context':_0x22bfc1,'unlinkedAt':_0x1cfd67,'attributes':_0x27221b,'isFromAdapter':_0x34c3c0}),this['getCommentThread'](_0x5c6130);}getCommentThread(_0x2abd0b){if('string'!=typeof _0x2abd0b)throw new _0x4242d4('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x2abd0b);}fetchCommentThread({channelId:_0x47c9d5,threadId:_0x3eee71}={}){const _0x298e3a=this['getCommentThread'](_0x3eee71);if(_0x298e3a)return Promise['resolve'](_0x298e3a);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x4242d4('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x47c9d5,'threadId':_0x3eee71})['then'](_0x49eb48=>this['hasCommentThread'](_0x3eee71)?this['getCommentThread'](_0x3eee71):_0x49eb48?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x47c9d5},_0x49eb48)):void 0x0)['catch'](_0x230ce1=>{throw console['error'](_0x230ce1),new _0x4242d4('commentsrepository-fetch-comment-thread',this['context']);});}getCommentThreads({channelId:_0x5d045a,skipNotAttached:_0x3c5cb3=!0x1,skipEmpty:_0x1560e2=!0x1,toJSON:_0x11418d=!0x1}={}){const _0x3ca9c4=[];for(const _0x357868 of this['_threads']['values']())_0x5d045a&&_0x357868['channelId']!==_0x5d045a||_0x3c5cb3&&!_0x357868['isAttached']||_0x1560e2&&0x0===_0x357868['length']||_0x3ca9c4['push'](_0x357868);return _0x11418d?_0x3ca9c4['map'](_0x552de6=>_0x552de6['toJSON']()):_0x3ca9c4;}getAnnotationForCommentThread(_0x31b413){const _0x1ce35a=this['_threadToController']['get'](_0x31b413);return _0x1ce35a&&this['context']['plugins']['get'](zv)['getByInnerView'](_0x1ce35a['view'])||null;}getCommentThreadForAnnotation(_0x2402a5){const _0x3810b1=this['_viewToController']['get'](_0x2402a5['innerView']);return _0x3810b1?_0x3810b1['model']:null;}setActiveCommentThread(_0x32f6a9){const _0x2cb9a0=this['context']['plugins']['get'](zv);if(!_0x32f6a9)return void(this['activeCommentThread']&&_0x2cb9a0['deactivateAll']());const _0x244d73=this['getCommentThread'](_0x32f6a9);if(!_0x244d73)throw new _0x4242d4('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x32f6a9});if(!this['_threadToController']['has'](_0x244d73))throw new _0x4242d4('commentsrepository-active-not-attached',null,{'threadId':_0x32f6a9});const _0x378ff0=_0x2cb9a0['getByInnerView'](this['_threadToController']['get'](_0x244d73)['view']);_0x2cb9a0['activate'](_0x378ff0);}switchReadOnly(_0x32245e,_0x11d668){_0x32245e?this['_readOnlyChannels']['add'](_0x11d668):this['_readOnlyChannels']['delete'](_0x11d668),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x46a6d2){return this['_readOnlyChannels']['has'](_0x46a6d2)||this['_readOnlyChannels']['has'](void 0x0);}createCommentThreadController(_0x4e0a52,_0x2be835){return new vv(_0x4e0a52,_0x2be835);}setPermissions(_0x23d42a,_0x44f7a4=Yv){this['_permissions']['set'](_0x44f7a4,_0x23d42a),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}getPermissions(_0x3d2d6b=Yv){return this['_permissions']['has'](_0x3d2d6b)?this['_permissions']['get'](_0x3d2d6b):Kv;}_addCommentThread({channelId:_0x164f11,threadId:_0x50b3e5,comments:_0x509997,unlinkedAt:_0x229d2e,resolvedAt:_0xdc97e0,resolvedBy:_0x3d46d6,target:_0x584f1e,context:_0x170608,attributes:_0x5d4f39,isFromAdapter:_0x2c650c,isResolvable:_0x2837fd,isSubmitted:_0x5247e4}){if('string'!=typeof _0x50b3e5)throw new _0x4242d4('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x50b3e5});if(this['hasCommentThread'](_0x50b3e5))throw new _0x4242d4('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x50b3e5});const _0x4050b6=new i_(this,{'channelId':_0x164f11,'id':_0x50b3e5,'context':_0x170608,'attributes':_0x5d4f39,'unlinkedAt':_0x229d2e,'resolvedAt':_0xdc97e0,'resolvedBy':_0x3d46d6?this['context']['plugins']['get'](Al)['getUser'](_0x3d46d6):null,'isResolvable':_0x2837fd,'isSubmitted':_0x5247e4||_0x2c650c});this['_threads']['set'](_0x50b3e5,_0x4050b6);for(const _0x1a506a of _0x509997)_0x4050b6['_add'](this['_createNewComment']({'threadId':_0x50b3e5,..._0x1a506a}));return _0x584f1e&&_0x4050b6['attachTo'](_0x584f1e),_0x2c650c||!_0x4050b6['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x164f11,'threadId':_0x50b3e5});}_submitCommentThread({channelId:_0x4527c7,threadId:_0x3e06d3}){if(!this['hasCommentThread'](_0x3e06d3))throw new _0x4242d4('commentsrepository-missing-comment-thread',this);const _0x2c3633=this['getCommentThread'](_0x3e06d3);if(_0x2c3633['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x3696f6,comments:_0x3a6b5f,resolvedAt:_0x577f46,resolvedBy:_0x5f23ed,context:_0x160510,attributes:_0x105f8e}=_0x2c3633,_0x3f2170=this['context']['plugins']['get']('PendingActions'),_0x287cf2=_0x3f2170['add'](_v(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x4527c7,'threadId':_0x3696f6,'comments':_0x3a6b5f['map'](_0x121570=>_0x121570['toJSON']()),'resolvedAt':_0x577f46,'resolvedBy':_0x5f23ed?_0x5f23ed['id']:_0x5f23ed,'context':_0x160510,'attributes':_0x105f8e})['then'](({comments:_0x156ad1})=>{_0x3f2170['remove'](_0x287cf2);for(const _0x431251 of _0x156ad1)this['_updateComment']({'channelId':_0x4527c7,'threadId':_0x3e06d3,'commentId':_0x431251['commentId'],'createdAt':_0x431251['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x20e979=>{throw console['error'](_0x20e979),new _0x4242d4('commentsrepository-add-comment-thread-internal-error',this);});}_attachCommentThread({threadId:_0xac42e2,target:_0x94ef23}){const _0x2ec9f4=this['getCommentThread'](_0xac42e2);if(!_0x2ec9f4)throw new _0x4242d4('commentsrepository-attach-missing-comment-thread',this);const _0x350c76=this['context']['plugins']['get']('PendingActions'),_0x50af6a=this['context']['plugins']['get'](zv),_0x4b4b76=this['_createCommentThreadView'](_0x2ec9f4),_0x3c4102=new vv(_0x2ec9f4,_0x4b4b76);let _0x45f6eb=null;_0x4b4b76['on']('change:isDirty',(_0x3b0a06,_0x553149,_0x32dc1c)=>{_0x32dc1c?_0x45f6eb=_0x350c76['add'](_v(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x45f6eb&&(_0x350c76['remove'](_0x45f6eb),_0x45f6eb=null);}),this['_threadToController']['set'](_0x2ec9f4,_0x3c4102),this['_viewToController']['set'](_0x4b4b76,_0x3c4102);const _0x4e40b9=new Hv(this['context']['locale'],_0x4b4b76);_0x4e40b9['bind']('length')['to'](_0x4b4b76),_0x4e40b9['bind']('isDirty')['to'](_0x4b4b76,'isDirty',_0x4b4b76,'length',(_0x23b77d,_0x24ffbd)=>_0x23b77d||!_0x24ffbd),_0x4e40b9['bind']('isActive')['to'](_0x4b4b76),_0x4e40b9['type']='comment';const _0x7d1aea=new Zv({'view':_0x4e40b9,'target':_0x94ef23,'type':'comment','isVisible':!_0x2ec9f4['archivedAt']&&!!('function'==typeof _0x94ef23?_0x94ef23():_0x94ef23)});return _0x4b4b76['on']('escape',()=>{_0x7d1aea['fire']('escape');}),this['_bindAnnotationToEditors'](_0x4b4b76,_0x7d1aea),_0x50af6a['add'](_0x7d1aea),_0x7d1aea;}_bindAnnotationToEditors(_0x5c33d7,_0x328499){this['listenTo'](_0x5c33d7,'editorReady',(_0x5f1ba0,_0x32af25)=>{const _0x20deaf=_0x32af25['ui']['view']['body']['bodyCollectionContainer'];_0x328499['focusableElements']['add'](_0x20deaf),this['context']instanceof _0x95124b&&this['context']['ui']['focusTracker']['add'](_0x20deaf);},{'priority':'highest'}),this['listenTo'](_0x5c33d7,'editorDestroyed',(_0x55a075,_0x535f2b)=>{const _0x565345=_0x535f2b['ui']['view']['body']['bodyCollectionContainer'];_0x328499['focusableElements']['has'](_0x565345)&&_0x328499['focusableElements']['remove'](_0x565345),this['context']instanceof _0x95124b&&this['context']['ui']['focusTracker']['remove'](_0x565345);});}_unbindEditors(_0x5911c1){this['stopListening'](_0x5911c1,'editorReady'),this['stopListening'](_0x5911c1,'editorDestroyed');}_createCommentThreadView(_0x2bad61){const _0x41849f=this['context']['plugins']['get'](Al),{config:_0x22227f,locale:_0x57c140}=this['context'],_0x4e24bc=km(_0x22227f['get']('locale'),_0x57c140);return new(0x0,(_0x22227f['get']('comments'))['CommentThreadView'])(_0x57c140,_0x2bad61,_0x41849f['me'],{'editorConfig':{..._0x22227f['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x22227f['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x22227f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x22227f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x22227f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4e24bc,'CommentView':_0x22227f['get']('comments')['CommentView']});}_resolveCommentThread({threadId:_0x3d7267,channelId:_0x29b50f,resolvedAt:_0x5be22c,resolvedBy:_0x1884d6,isFromAdapter:_0x305998}){if(!this['hasCommentThread'](_0x3d7267))throw new _0x4242d4('commentsrepository-missing-comment-thread',null,{'threadId':_0x3d7267});const _0x5aa882=this['getCommentThread'](_0x3d7267);if(_0x5aa882['isResolved'])throw new _0x4242d4('commentsrepository-resolved-comment-thread',null,{'threadId':_0x3d7267});const _0x1de106=this['context']['plugins']['get'](Al);if(_0x5aa882['resolvedBy']=_0x1de106['getUser'](_0x1884d6),_0x5aa882['resolvedAt']=_0x5be22c,_0x305998||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x4915e7=this['context']['plugins']['get']('PendingActions'),_0x4b5288=_0x4915e7['add'](_v(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x29b50f,'threadId':_0x3d7267})['then'](({resolvedAt:_0x5b40af,resolvedBy:_0x33a1ca})=>{_0x4915e7['remove'](_0x4b5288),_0x5aa882['resolvedBy']['id']!==_0x33a1ca&&(_0x5aa882['resolvedBy']=_0x1de106['getUser'](_0x33a1ca)),_0x5aa882['resolvedAt']=_0x5b40af;})['catch'](_0x3a2f9f=>{throw console['error'](_0x3a2f9f),new _0x4242d4('commentsrepository-resolve-comment-thread-internal-error',this);});}_reopenCommentThread({threadId:_0x4ac2e7,channelId:_0xaabdfd,isFromAdapter:_0x518607}){if(!this['hasCommentThread'](_0x4ac2e7))throw new _0x4242d4('commentsrepository-missing-comment-thread',null,{'threadId':_0x4ac2e7});const _0x562d98=this['getCommentThread'](_0x4ac2e7);if(!_0x562d98['isResolved'])throw new _0x4242d4('commentsrepository-reopen-comment-thread',null,{'threadId':_0x4ac2e7});if(_0x562d98['resolvedBy']=null,_0x562d98['resolvedAt']=null,_0x518607||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x1bedb5=this['context']['plugins']['get']('PendingActions'),_0x4e1533=_0x1bedb5['add'](_v(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0xaabdfd,'threadId':_0x4ac2e7})['then'](()=>_0x1bedb5['remove'](_0x4e1533))['catch'](_0x324eae=>{throw console['error'](_0x324eae),new _0x4242d4('commentsrepository-reopen-comment-thread-internal-error',this);});}_removeCommentThread({threadId:_0x1b9966,isFromAdapter:_0x1e3f9b}){const _0x545a09=this['getCommentThread'](_0x1b9966);if(!_0x545a09)throw new _0x4242d4('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x1b9966),this['_threads']['delete'](_0x1b9966),!_0x545a09['isSubmitted']||_0x1e3f9b||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x2eaa28=this['context']['plugins']['get']('PendingActions'),{channelId:_0x50dceb}=_0x545a09,_0x271a03=_0x2eaa28['add'](_v(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x50dceb,'threadId':_0x1b9966})['then'](()=>_0x2eaa28['remove'](_0x271a03))['catch'](_0x51b5ac=>{throw console['error'](_0x51b5ac),new _0x4242d4('commentsrepository-remove-comment-thread-internal-error',this);});}_updateCommentThread({threadId:_0x11bb1d,unlinkedAt:_0x1a4959,context:_0x207fc7,attributes:_0xfe0b0c,isFromAdapter:_0x5bdea1}){if('string'!=typeof _0x11bb1d)throw new _0x4242d4('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x11bb1d});if(!this['hasCommentThread'](_0x11bb1d))throw new _0x4242d4('commentsrepository-missing-comment-thread',null,{'threadId':_0x11bb1d});const _0x722848=this['getCommentThread'](_0x11bb1d);let _0x34f54e=!0x1;if(void 0x0!==_0x207fc7&&_0x722848['context']!==_0x207fc7&&(_0x722848['context']=_0x207fc7,_0x34f54e=!0x0),void 0x0!==_0x1a4959&&_0x722848['unlinkedAt']!==_0x1a4959&&(_0x722848['unlinkedAt']=_0x1a4959,_0x34f54e=!0x0),_0xfe0b0c&&!Kr(_0xfe0b0c,_0x722848['attributes'])&&(_0x722848['attributes']=_0xfe0b0c,_0x34f54e=!0x0),!_0x34f54e)return Promise['resolve']();if(!_0x722848['isSubmitted']||_0x5bdea1||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x536bdb=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2fa28e}=_0x722848,_0x5f049b=_0x536bdb['add'](_v(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x2fa28e,'threadId':_0x11bb1d,'context':_0x207fc7,'unlinkedAt':_0x1a4959,'attributes':_0xfe0b0c})['then'](()=>_0x536bdb['remove'](_0x5f049b))['catch'](_0x46f7b9=>{throw console['error'](_0x46f7b9),new _0x4242d4('commentsrepository-update-comment-thread-internal-error',this);});}_detachCommentThread(_0x1bfab5){const _0xb2cd7e=this['context']['plugins']['get'](zv),_0xb6d1e0=this['getCommentThread'](_0x1bfab5);if(_0xb6d1e0['_isAttached']=!0x1,this['_threadToController']['has'](_0xb6d1e0)){const _0x182f0f=this['_threadToController']['get'](_0xb6d1e0),_0x443257=_0x182f0f['view'],_0x54731d=_0xb2cd7e['getByInnerView'](_0x443257);this['_threadToController']['delete'](_0xb6d1e0),this['_viewToController']['delete'](_0x443257),_0x54731d&&_0xb2cd7e['remove'](_0x54731d),_0x182f0f['destroy'](),_0x443257['destroy']()['then'](()=>{this['_unbindEditors'](_0x443257);});}}_updateActiveAnnotation({threadId:_0x189851,resolvedAt:_0x4288b4,unlinkedAt:_0x35b04b}){const _0x3f3e8a=!!_0x4288b4,_0x217e64=this['context']['plugins']['get'](zv),_0x314fac=this['getCommentThread'](_0x189851);if(this['_threadToController']['has'](_0x314fac)){const _0x2f635a=this['_threadToController']['get'](_0x314fac)['view'],_0x553d92=_0x217e64['getByInnerView'](_0x2f635a);_0x553d92&&(_0x3f3e8a&&_0x217e64['_removeActiveAnnotation'](_0x553d92),_0x35b04b?_0x553d92['isVisible']=!0x1:_0x553d92['refreshVisibility']());}}_getExternalAuthor(_0x53281b){const _0xe72be4=this['context']['plugins']['get'](Al),_0xf22bf9=Lm('external:'+_0x53281b),_0xe9b31f=_0xe72be4['getUser'](_0xf22bf9);return _0xe9b31f||_0xe72be4['addUser']({'id':_0xf22bf9,'name':_0x53281b});}_createNewComment({threadId:_0x53f421,commentId:_0x2ada2f=_0xea66bb(),content:_0x1ca85a,authorId:_0x268e15,createdAt:_0xfa7722,attributes:_0x2c2385}){if('string'!=typeof _0x2ada2f)throw new _0x4242d4('commentsrepository-invalid-commentid');if('string'!=typeof _0x268e15)throw new _0x4242d4('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x1ca85a||!_0x1ca85a['trim']())throw new _0x4242d4('commentsrepository-invalid-comment-content');const _0x5c5550=this['context']['plugins']['get'](Al)['getUser'](_0x268e15);if(!_0x5c5550)throw new _0x4242d4('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x268e15});let _0x57af3e=null,_0x1239a9=_0xfa7722;return _0x2c2385?.['@external']&&(_0x57af3e=this['_getExternalAuthor'](_0x2c2385['@external']['authorName']),_0x1239a9=new Date(_0x2c2385['@external']['createdAt'])),new s_(this,{'threadId':_0x53f421,'id':_0x2ada2f,'author':_0x57af3e||_0x5c5550,'creator':_0x5c5550,'content':_0x1ca85a,'createdAt':_0xfa7722,'authoredAt':_0x1239a9,'attributes':_0x2c2385});}_addComment(_0x6532e6){let {threadId:_0x333b7f,content:_0x119f9f,attributes:_0x4cd464,isFromAdapter:_0x2228de}=_0x6532e6;const _0x145f11=this['getCommentThread'](_0x6532e6['threadId']);if(!_0x145f11)throw new _0x4242d4('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x5dddb6=this['_createNewComment'](_0x6532e6),{id:_0x255b81}=_0x5dddb6;if(_0x145f11['_add'](_0x5dddb6),_0x2228de||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x145f11['isSubmitted'])return Promise['resolve']();const _0x4f160e=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2b66b6}=_0x145f11,_0x17b723=_0x4f160e['add'](_v(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x4cd464||(_0x4cd464={}),this['adapter']['addComment']({'channelId':_0x2b66b6,'threadId':_0x333b7f,'commentId':_0x255b81,'content':_0x119f9f,'attributes':_0x4cd464})['then'](_0x1bcfa5=>{_0x4f160e['remove'](_0x17b723),_0x1bcfa5&&this['_updateComment']({'channelId':_0x2b66b6,'threadId':_0x333b7f,'commentId':_0x255b81,'createdAt':_0x1bcfa5['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x388c90=>{throw console['error'](_0x388c90),new _0x4242d4('commentsrepository-add-comment-internal-error',this);});}_updateComment({threadId:_0x190aaf,commentId:_0x1f55f0,content:_0x4d73cf,createdAt:_0x4b5ecc,attributes:_0x4b7711,isFromAdapter:_0x15b0d}){if(void 0x0!==_0x4d73cf&&('string'!=typeof _0x4d73cf||!_0x4d73cf['trim']()['length']))throw new _0x4242d4('commentsrepository-update-comment-invalid-content');const _0xb62b85=this['getCommentThread'](_0x190aaf),_0x28fb1d=_0xb62b85['getComment'](_0x1f55f0);if(!_0x28fb1d)throw new _0x4242d4('commentsrepository-update-missing-comment',this);let _0x1baa25=!0x1;if(_0x4d73cf&&_0x4d73cf!==_0x28fb1d['content']&&(_0x28fb1d['isEditable']||_0x15b0d)&&(_0x28fb1d['content']=_0x4d73cf,_0x1baa25=!0x0),_0x4b5ecc&&_0x4b5ecc!==_0x28fb1d['createdAt']&&(_0x28fb1d['createdAt']=_0x4b5ecc,_0x28fb1d['isExternal']||(_0x28fb1d['authoredAt']=_0x4b5ecc),_0x1baa25=!0x0),_0x4b7711&&!Kr(_0x4b7711,_0x28fb1d['attributes'])&&(_0x28fb1d['attributes']=_0x4b7711,_0x1baa25=!0x0),!_0x1baa25)return Promise['resolve']();if(_0xb62b85['fire']('commentUpdated'),_0x15b0d||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x3c9069=this['context']['plugins']['get']('PendingActions'),{channelId:_0x48a67c}=this['getCommentThread'](_0x28fb1d['threadId']),_0x3744a1=_0x3c9069['add'](_v(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x48a67c,'threadId':_0x190aaf,'commentId':_0x1f55f0,'content':_0x4d73cf,'attributes':_0x4b7711})['then'](()=>_0x3c9069['remove'](_0x3744a1))['catch'](_0x23af92=>{throw console['error'](_0x23af92),new _0x4242d4('commentsrepository-update-comment-internal-error',this);});}_removeComment({threadId:_0x51cb52,commentId:_0x242fc1,isFromAdapter:_0x278891}){const _0x10c9a6=this['getCommentThread'](_0x51cb52),_0x2ecef9=_0x10c9a6['getComment'](_0x242fc1);if(!_0x2ecef9)throw new _0x4242d4('commentsrepository-remove-missing-comment',this);if(_0x10c9a6['_remove'](_0x2ecef9),_0x278891||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x25fc67=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2008da}=_0x10c9a6,_0x54083d=_0x25fc67['add'](_v(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x2008da,'threadId':_0x51cb52,'commentId':_0x242fc1})['then'](()=>_0x25fc67['remove'](_0x54083d))['catch'](_0x3c59d9=>{throw console['error'](_0x3c59d9),new _0x4242d4('commentsrepository-remove-comment-internal-error',this);});}},i_=class extends Jv{['channelId'];['id'];_isAttached;_isSubmitted;comments;_repository;constructor(_0x381da,_0x3b1573){super();const _0x11422b=_0x3b1573['isResolvable'];this['channelId']=_0x3b1573['channelId'],this['id']=_0x3b1573['id'],this['comments']=new _0x2186b6(),this['_repository']=_0x381da,this['_isAttached']=!0x1,this['_isSubmitted']=_0x3b1573['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x381da,'_permissions',_0x381da,'_readOnlyChannels',()=>_0x381da['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x381da,'_permissions',()=>_0x381da['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x381da,'_permissions',()=>{const _0x4b38e4=_0x381da['getPermissions'](this['channelId']);return _0x4b38e4['write']||_0x4b38e4['admin'];}),this['bind']('isResolvable')['to'](_0x381da,'_permissions',()=>_0x11422b&&_0x381da['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x3b1573['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x4d1d83,_0x5d7bc7)=>_0x4d1d83?_0x5d7bc7?_0x4d1d83<_0x5d7bc7?_0x4d1d83:_0x5d7bc7:_0x4d1d83:_0x5d7bc7),this['set']('unlinkedAt',_0x3b1573['unlinkedAt']||null),this['set']('resolvedAt',_0x3b1573['resolvedAt']||null),this['set']('resolvedBy',_0x3b1573['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x3eb550=>!!_0x3eb550),this['set']('attributes',_0x3b1573['attributes']||{});}get weight(){return Array['from'](this['comments'])['reduce']((_0x52b447,_0xec5e76)=>_0x52b447+_0xec5e76['weight'],0x0);}get length(){return this['comments']['length'];}get isAttached(){return this['_isAttached'];}get isSubmitted(){return this['_isSubmitted'];}submit(){const {channelId:_0x28991c,id:_0x1bd533}=this;this['_repository']['fire'](n_('submitCommentThread',_0x28991c),{'channelId':_0x28991c,'threadId':_0x1bd533});}setUnlinkedAt(_0x3d37f5){this['_update']({'unlinkedAt':_0x3d37f5});}['resolve']({resolvedAt:_0x5fdfc0=new Date(),resolvedBy:_0x5b5002='',isFromAdapter:_0x383e65=!0x1}={}){const _0x5670fd=this['_repository']['context']['plugins']['get'](Al)['me'],{channelId:_0x24dbd7,id:_0x43f15b}=this;this['_repository']['fire'](n_('resolveCommentThread',_0x24dbd7),{'channelId':_0x24dbd7,'threadId':_0x43f15b,'resolvedAt':_0x5fdfc0,'resolvedBy':_0x5b5002||_0x5670fd['id'],'isFromAdapter':_0x383e65});}['reopen']({isFromAdapter:_0x33740f=!0x1}={}){const {channelId:_0x5ce7ef,id:_0x427b52}=this;this['_repository']['fire'](n_('reopenCommentThread',_0x5ce7ef),{'channelId':_0x5ce7ef,'threadId':_0x427b52,'isFromAdapter':_0x33740f});}setContext(_0x4bbbc7){this['context']||this['_update']({'context':_0x4bbbc7});}setAttribute(_0x2a8d90,_0x42fb59){const _0x54337f=so(this['attributes']);xo(_0x54337f,_0x2a8d90,_0x42fb59),this['_update']({'attributes':_0x54337f});}removeAttribute(_0x2fc2e3){const _0x868f=so(this['attributes']);Oo(_0x868f,_0x2fc2e3),this['_update']({'attributes':_0x868f});}['remove']({isFromAdapter:_0x5ee971=!0x1}={}){const {channelId:_0x428cf8,id:_0x1dffed}=this;this['_repository']['fire'](n_('removeCommentThread',_0x428cf8),{'channelId':_0x428cf8,'threadId':_0x1dffed,'isFromAdapter':_0x5ee971});}attachTo(_0x961ba8){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x961ba8});}addComment(_0x28b848){const {channelId:_0x1aefc6,id:_0x38dfc7}=this;this['_repository']['fire'](n_('addComment',_0x1aefc6,_0x38dfc7),Object['assign']({'channelId':_0x1aefc6,'threadId':_0x38dfc7},_0x28b848));}getComment(_0x3fcf34){if('string'!=typeof _0x3fcf34)throw new _0x4242d4('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x3fcf34});return this['comments']['get'](_0x3fcf34);}toJSON(){return{'threadId':this['id'],'context':this['context'],'unlinkedAt':this['unlinkedAt'],'resolvedAt':this['resolvedAt'],'resolvedBy':this['resolvedBy']?this['resolvedBy']['id']:null,'archivedAt':this['archivedAt'],'comments':this['comments']['map'](_0x10e477=>_0x10e477['toJSON']()),'attributes':this['attributes']};}['_add'](_0x1b31fb){return this['listenTo'](_0x1b31fb,'change:authoredAt',()=>{const _0x57c263=this['_findOptimalIndex'](_0x1b31fb),_0x1a30ba=this['comments'];_0x57c263-0x1!=_0x1a30ba['getIndex'](_0x1b31fb)&&_0x57c263+0x1!=_0x1a30ba['getIndex'](_0x1b31fb)&&(this['_remove'](_0x1b31fb),this['_add'](_0x1b31fb));}),this['comments']['add'](_0x1b31fb,this['_findOptimalIndex'](_0x1b31fb));}_update(_0x19cebc){const {channelId:_0x1788f8,id:_0x2f34f8}=this;this['_repository']['fire'](n_('updateCommentThread',_0x1788f8),{..._0x19cebc,'channelId':_0x1788f8,'threadId':_0x2f34f8});}['_remove'](_0xbfce0f){return this['stopListening'](_0xbfce0f),_0xbfce0f['destroy'](),this['comments']['remove'](_0xbfce0f);}_findOptimalIndex(_0x495621){const _0x234a65=this['comments']['find'](_0x13b485=>new Date(_0x13b485['authoredAt'])['getTime']()>new Date(_0x495621['authoredAt'])['getTime']());return _0x234a65?this['comments']['getIndex'](_0x234a65):this['length'];}},s_=class extends t_{['id'];threadId;author;creator;createdAt;_repository;constructor(_0x47d6b5,_0x28e743){super();const _0x24735a=_0x47d6b5['context']['plugins']['get'](Al)['me'],_0x59162f=_0x47d6b5['getCommentThread'](_0x28e743['threadId']),_0x3401de=0x0===_0x59162f['comments']['length'],_0x237486=_0x24735a===_0x28e743['author'];this['id']=_0x28e743['id'],this['threadId']=_0x28e743['threadId'],this['author']=_0x28e743['author'],this['creator']=_0x28e743['creator'],this['set']('content',_0x28e743['content']),this['createdAt']=_0x28e743['createdAt']||new Date(),this['set']('authoredAt',_0x28e743['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x59162f,'resolvedAt'),this['set']('attributes',_0x28e743['attributes']||{}),this['bind']('isEditable')['to'](_0x47d6b5,'_permissions',()=>{const _0x138fbb=_0x47d6b5['getPermissions'](_0x59162f['channelId'])['write'],_0x5a7d90=_0x47d6b5['getPermissions'](_0x59162f['channelId'])['modifyAll'];return _0x237486&&_0x138fbb||!_0x237486&&_0x5a7d90;}),this['bind']('isRemovable')['to'](_0x59162f,'isRemovable',_0x47d6b5,'_permissions',_0x26cb20=>{const _0x40cf0d=_0x47d6b5['getPermissions'](_0x59162f['channelId'])['write'],_0x24a67f=_0x47d6b5['getPermissions'](_0x59162f['channelId'])['modifyAll'];return _0x237486&&_0x40cf0d||_0x26cb20&&_0x3401de||!_0x237486&&_0x24a67f&&!_0x3401de;}),this['bind']('isReadOnly')['to'](_0x59162f,'isReadOnly'),this['_repository']=_0x47d6b5;}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get weight(){return Math['max'](function(_0x4914a2){const _0x24ce11=document['createElement']('div');return _0x24ce11['innerHTML']=_0x4914a2,_0x24ce11['textContent']['length'];}(this['content']),0xc8);}update(_0x2cf14b){const {threadId:_0x1e9178,id:_0x159a0d}=this;if(!this['_repository']['hasCommentThread'](_0x1e9178))throw new _0x4242d4('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x5e29fa}=this['_repository']['getCommentThread'](_0x1e9178);this['_repository']['fire'](n_('updateComment',_0x5e29fa,_0x1e9178),{'channelId':_0x5e29fa,'threadId':_0x1e9178,'commentId':_0x159a0d,..._0x2cf14b});}setAttribute(_0x4adec2,_0x490d0e){const _0x17814d=so(this['attributes']);xo(_0x17814d,_0x4adec2,_0x490d0e),this['update']({'attributes':_0x17814d});}removeAttribute(_0x2b9500){const _0x169439=so(this['attributes']);Oo(_0x169439,_0x2b9500),this['update']({'attributes':_0x169439});}['remove'](_0x49d4c7={}){if(!_0x49d4c7['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x286ca5,id:_0x2eb580}=this;if(!this['_repository']['hasCommentThread'](_0x286ca5))throw new _0x4242d4('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0xa0732f}=this['_repository']['getCommentThread'](_0x286ca5);this['_repository']['fire'](n_('removeComment',_0xa0732f,_0x286ca5),{'channelId':_0xa0732f,'threadId':_0x286ca5,'commentId':_0x2eb580,..._0x49d4c7});}toJSON(){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}destroy(){this['stopListening']();}};function n_(_0x58ba9d,..._0xe7ecac){for(const _0x166108 of _0xe7ecac)void 0x0!==_0x166108&&(_0x58ba9d+=':'+String(_0x166108));return _0x58ba9d;}var r_=class extends _0x44d8e7{constructor(_0xf9bcda){super(_0xf9bcda),this['set']('hasContent',!0x1);}['refresh'](){const _0x148292=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x32bc09 of _0x148292['getRanges']())if(this['_hasContent'](_0x32bc09))return void(this['hasContent']=!0x0);}execute({threadId:_0x2b8116=_0xea66bb(),ranges:_0x38f7c1,comment:_0x22aa3c}={}){const _0x1d17b8=this['editor']['model'],_0x1069cb=_0x38f7c1??Array['from'](_0x1d17b8['document']['selection']['getRanges']()),_0x6fda70=[];for(const _0x1fa233 of _0x1069cb)this['_hasContent'](_0x1fa233)&&_0x6fda70['push'](this['_trimToContent'](_0x1fa233));if(!_0x6fda70['length'])throw new _0x4242d4('addcommentthreadcommand-incorrect-ranges',null);_0x22aa3c&&this['_createCommentThread'](_0x2b8116,_0x22aa3c),this['_createMarkersFromRanges'](_0x2b8116,_0x6fda70,!!_0x22aa3c);}_createMarkersFromRanges(_0x3ffdf5,_0x961871,_0x1175e4){this['editor']['model']['change'](_0x2af400=>{for(const _0x57d00f of _0x961871){const _0x3fed85='comment:'+_0x3ffdf5+':'+_0xea66bb()['substr'](0x1,0x5);_0x2af400['addMarker'](_0x3fed85,{'range':_0x57d00f,'usingOperation':_0x1175e4,'affectsData':_0x1175e4});}});}_createCommentThread(_0x9b3a8,_0x1e068b){const _0x569dc0=this['editor']['plugins']['get']('CommentsRepository'),_0x213977=this['editor']['config']['get']('collaboration.channelId'),_0xea04c1=this['editor']['plugins']['get']('Users')['me'];if(!_0xea04c1)throw new _0x4242d4('addcommentthreadcommand-user-not-found',null);_0x569dc0['addCommentThread']({'threadId':_0x9b3a8,'channelId':_0x213977,'comments':[{'authorId':_0xea04c1['id'],'content':_0x1e068b,'createdAt':new Date(),'attributes':{}}]});}_hasContent(_0x2eeb87){for(const _0xb36f8e of _0x2eeb87['getItems']())if(this['_itemIsContent'](_0xb36f8e))return!0x0;return!0x1;}_itemIsContent(_0x48ac4b){return _0x48ac4b['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x48ac4b)&&!_0x48ac4b['is']('element','tableCell');}_trimToContent(_0x2746bb){const _0x2cf2a2=_0x56307e=>!this['_itemIsContent'](_0x56307e['item']),_0x33e8fa=_0x2746bb['start']['getLastMatchingPosition'](_0x2cf2a2),_0x52f088=_0x2746bb['end']['getLastMatchingPosition'](_0x2cf2a2,{'direction':'backward'});return this['editor']['model']['createRange'](_0x33e8fa,_0x52f088);}},o_=class extends _0x11fe30{_dataCollectors;_editorAnnotations;static get requires(){return[zv];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7ee655){super(_0x7ee655),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}init(){const _0x459a43=this['editor'],_0x101bc0=_0x459a43['model']['document']['selection'],_0x4ca82d=vr(()=>this['refreshSelectedViews'](),0xa);_0x101bc0['on']('change:range',(_0xd2f6a6,_0x5b3edd)=>{_0x5b3edd['directChange']&&(_0x4ca82d['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x459a43['editing']['view']['document'],'change:isFocused',(_0x4d88d0,_0x38453d,_0x3280a1)=>{_0x3280a1&&_0x4ca82d();}),this['listenTo'](_0x459a43['ui']['focusTracker'],'change:isFocused',(_0x4f5ed2,_0x28bb7d,_0x36e960)=>{_0x36e960||this['fire']('blur',{'isAnnotationTracked':_0x233381=>this['_editorAnnotationsData']['has'](_0x233381['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}registerAnnotation(_0x283885){if(this['_editorAnnotations']['has'](_0x283885['view']))return;this['_editorAnnotations']['add'](_0x283885['view']),this['editor']['ui']['focusTracker']['add'](_0x283885['view']['element']);const _0x474a4b=this['editor']['plugins']['get'](zv);this['listenTo'](_0x474a4b['collection'],'remove',(_0x3d8837,_0x1f8b4d)=>{this['editor']['ui']['focusTracker']['remove'](_0x1f8b4d['view']['element']),this['_editorAnnotations']['delete'](_0x1f8b4d['view']);});}hasDomSelection(){return this['editor']['editing']['view']['hasDomSelection'];}addSourceCollector(_0x5e267c){if('function'!=typeof _0x5e267c)throw new _0x4242d4('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x5e267c);}refreshSelectedViews(){this['fire']('refresh');}getOrderedSelectedAnnotations({activeAnnotation:_0x4a5dbc,annotations:_0x11e39c}){const _0x42ccec=[],_0x41a65c=this['editor']['model']['document']['selection'],_0x464b84=Array['from'](_0x41a65c['getRanges']());for(const [_0x16dfc7,_0x5e3e64]of this['_editorAnnotationsData']){const _0x20841f=_0x4dbf92(_0x5e3e64),_0x462d84=_0x11e39c['getByInnerView'](_0x16dfc7);_0x20841f&&_0x462d84&&_0x42ccec['push']({'annotation':_0x462d84,'range':_0x20841f});}function _0x4dbf92(_0x2349e2){for(const _0x162f2b of _0x2349e2)for(const _0x5b7569 of _0x464b84)if(_0x162f2b['containsRange'](_0x5b7569,!_0x41a65c['isCollapsed']))return _0x162f2b;return null;}return _0x42ccec['sort']((_0x1f7c68,_0x5ec446)=>{const _0x5caf46=_0x1f7c68['range'],_0x265d0d=_0x5ec446['range'];if(!_0x5caf46['isEqual'](_0x265d0d)){if(_0x5caf46['containsRange'](_0x265d0d,!0x0))return 0x1;if(_0x265d0d['containsRange'](_0x5caf46,!0x0))return-0x1;}return _0x1f7c68['annotation']==_0x4a5dbc?-0x1:_0x5ec446['annotation']==_0x4a5dbc?0x1:0x0;})['map'](_0x23aece=>_0x23aece['annotation']);}get _editorAnnotationsData(){const _0x2d1d95=new Map();for(const _0x289a84 of Array['from'](this['_dataCollectors']))for(const [_0x1aea80,_0x13c06d]of _0x289a84())_0x2d1d95['set'](_0x1aea80,_0x13c06d);return _0x2d1d95;}},a_=class extends _0x11fe30{afterInit(){const _0x4b75d4=this['editor'];_0x4b75d4['plugins']['has']('RestrictedEditingModeEditing')&&_0x4b75d4['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}},c_=class extends _0x11fe30{constructor(_0x21b524){super(_0x21b524),this['editor']['config']['define']('importWord.formatting.comments','basic');}afterInit(){const _0xc7de21=this['editor'],_0x26af7b=_0xc7de21['commands']['get']('importWord'),_0x3238e9=_0xc7de21['plugins']['get'](Al);_0x26af7b&&(_0x26af7b['on']('execute',(_0xf49e5d,[,_0x378f39])=>{_0x378f39['collaboration_features']={'comments':!0x0,'user_id':_0x3238e9['me']['id']};},{'priority':_0x1a573c['high']+0xa}),this['listenTo'](_0x26af7b,'dataInsert',this['_handleImportedData']));}_handleImportedData(_0xcc111f,_0x57bf7c){const {comment_threads:_0x41f343}=_0x57bf7c;_0x41f343&&_0x41f343['forEach'](({thread_id:_0x5a4d17,comments:_0x1db858,is_resolved:_0x53e702})=>{const _0x33ccc2=new Date(),_0x396105=_0x1db858['map'](({author:_0x30ff0c,content:_0x21bb90,created_at:_0x3fd829})=>({'content':_0x21bb90,'authorId':this['editor']['plugins']['get'](Al)['me']['id'],'createdAt':_0x33ccc2,'attributes':{'@external':{'authorName':_0x30ff0c,'createdAt':_0x3fd829?new Date(_0x3fd829):new Date(),'source':'importWord'}}})),_0x2ea5be=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](e_)['addCommentThread']({'channelId':_0x2ea5be,'threadId':_0x5a4d17,'comments':_0x396105,'resolvedAt':_0x53e702?_0x33ccc2:null});});}},l_=class extends _0x11fe30{constructor(_0x23966e){super(_0x23966e),this['editor']['config']['define']('comments.copyMarkers','default');}static get requires(){return[_0x36137f,_0x4b8e01];}afterInit(){const _0x5c7041=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x5c7041,'contentInsertion',(_0x1508c6,_0x320afa)=>this['_removeMarkersWithoutThreads'](_0x320afa['content']['markers']),{'priority':'highest'});}_removeMarkersWithoutThreads(_0x10f4a0){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x10f4a0;const _0x7dc97d=this['editor']['plugins']['get']('CommentsRepository');for(const _0x5b28c5 of _0x10f4a0['keys']()){const [_0x40da4b,_0x461f20]=_0x5b28c5['split'](':');'comment'!=_0x40da4b||_0x7dc97d['hasCommentThread'](_0x461f20)||_0x10f4a0['delete'](_0x5b28c5);}return _0x10f4a0;}_registerMarkerInClipboardPipeline(){const _0x258510=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x58e2a9=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x58e2a9&&_0x258510['_registerMarkerToCopy']('comment',_0x58e2a9);}_mapCommentsCopyConfigToRegisterConfiguration(_0x6018c1){switch(_0x6018c1){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}};function h_(_0xf418df){const _0x1773f1=_0xf418df['split'](':');return{'group':_0x1773f1[0x0],'id':_0x1773f1[0x1],'part':_0x1773f1[0x2]};}var u_=class extends _0x11fe30{init(){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}overrideMarkerConverters(){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x3fe6e4,_0x1d792e)=>{if(!_0x1d792e['options']['showCommentHighlights'])return null;if(_0x1d792e['options']['ignoreResolvedComments']){const {id:_0xaf1c3}=h_(_0x3fe6e4['markerName']);if(this['editor']['plugins']['get'](e_)['getCommentThread'](_0xaf1c3)?.['isResolved']&&_0x3fe6e4['item'])return _0x1d792e['consumable']['consume'](_0x3fe6e4['item'],'addMarker:'+_0x3fe6e4['markerName']),_0x1d792e['consumable']['consume'](_0x3fe6e4['item'],'removeMarker:'+_0x3fe6e4['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4f278f=>{_0x4f278f['on']('addMarker:comment',(_0x172a7a,_0x35a6cb,_0x37a135)=>{if(!_0x37a135['options']['showCommentHighlights'])return;const _0x1ed0c6=_0x35a6cb['item'];if(!_0x1ed0c6)return;const _0x1dd6c0=_0x37a135['mapper']['toViewElement'](_0x1ed0c6);this['editor']['model']['schema']['isObject'](_0x1ed0c6)&&_0x1dd6c0&&!_0x1dd6c0['getCustomProperty']('widget')&&_0x1dd6c0['is']('containerElement')&&_0x24589f(_0x1dd6c0,_0x37a135['writer']);},{'priority':'high'});});}overrideHorizontalRuleConverter(){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x427a73,{writer:_0x109b7f,options:_0x3d81ed})=>{if(!_0x3d81ed['showCommentHighlights'])return null;const _0x4faf4b=_0x109b7f['createContainerElement']('div'),_0x36d67a=_0x109b7f['createEmptyElement']('hr');return _0x109b7f['addClass']('ck-horizontal-line',_0x4faf4b),_0x109b7f['insert'](_0x109b7f['createPositionAt'](_0x4faf4b,0x0),_0x36d67a),_0x4faf4b;},'converterPriority':'high'});}overrideImageInlineConverter(){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0xddb711,{writer:_0x54f565,options:_0x39c5ca})=>{if(!_0x39c5ca['showCommentHighlights'])return null;const _0x548d33=_0x54f565['createContainerElement']('span'),_0x38e1d3=_0x54f565['createEmptyElement']('img');return _0x54f565['addClass']('image-inline',_0x548d33),_0x54f565['insert'](_0x54f565['createPositionAt'](_0x548d33,0x0),_0x38e1d3),_0x548d33;},'converterPriority':'high'});}overrideMediaEmbedConverter(){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x37e3fb,{writer:_0x5f2fb9,options:_0x3da645})=>{if(_0x3da645['showCommentHighlights'])return _0x5f2fb9['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0xcb218,_0x42882e,_0x321f4b)=>{_0x321f4b['options']['showCommentHighlights']&&_0xcb218['stop']();},{'priority':'high'});}},d_=class extends _0x11fe30{static get requires(){return[e_,o_,Al,a_,c_,l_,u_];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5530f6){super(_0x5530f6),this['set']('isThreadsLoadingPaused',!0x0),_0x5530f6['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x3c2d2f,_0x2ccb42,_0x22ec97,_0x129455)=>{const _0xffaaa3=_0x5530f6['plugins']['get'](e_),_0x1ab31e=_0x22ec97?h_(_0x22ec97)['id']:null;_0x5530f6['model']['change'](()=>{if(_0x1ab31e){const _0x3ac8b1=this['getAllMarkersForId'](_0x1ab31e);for(const _0xce3aac of _0x3ac8b1)_0x5530f6['editing']['reconvertMarker'](_0xce3aac);}if(_0x129455){const {id:_0x54f375}=h_(_0x129455),_0x3de610=_0xffaaa3['getCommentThread'](_0x54f375);if(_0x3de610&&_0x3de610['unlinkedAt'])return;if(_0x3de610&&!_0x3de610['isAttached'])return;const _0x575816=this['getAllMarkersForId'](_0x54f375);for(const _0x328914 of _0x575816)_0x5530f6['editing']['reconvertMarker'](_0x328914);}}),_0x1ab31e&&this['scrollToThreadMarker'](_0x1ab31e);}),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x577256=this['editor'],_0x21178c=_0x577256['plugins']['get'](e_),_0xa91502=_0x577256['config']['get']('collaboration.channelId'),_0x2a1fb4=_0x21178c['getCommentThreads']()['filter'](_0xa36f39=>_0xa36f39['channelId']!==_0xa91502);_0x577256['commands']['add']('addCommentThread',new r_(_0x577256)),this['listenTo'](_0x577256,'change:isReadOnly',(_0x501c59,_0x49a10d,_0x1aa673)=>{_0x21178c['switchReadOnly'](_0x1aa673,_0x577256['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x21178c,f_('addCommentThread',_0xa91502),(_0x155f27,{threadId:_0x372922})=>{this['editor']['plugins']['get'](e_)['getCommentThread'](_0x372922)?.['unlinkedAt']&&this['_attachArchivedThread'](_0x372922);}),this['listenTo'](_0x21178c,f_('removeCommentThread',_0xa91502),(_0xb55fd9,{threadId:_0x537198})=>{_0x577256['model']['enqueueChange']({'isUndoable':!0x1},_0x212119=>{const _0x1c5a61=this['getAllMarkersForId'](_0x537198);for(const _0x2bb1d7 of _0x1c5a61)_0x212119['removeMarker'](_0x2bb1d7);});}),this['listenTo'](_0x21178c,f_('resolveCommentThread',_0xa91502),(_0x1cebf3,{threadId:_0x5e8b4b})=>{this['_reconvertMarkers'](_0x5e8b4b);const _0x7e6323=this['editor']['plugins']['get'](zv);(this['editor']['editing']['view']['hasDomSelection']||_0x7e6323['collection']['isFocused'])&&(this['editor']['plugins']['get'](e_)['getCommentThread'](_0x5e8b4b)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x21178c,f_('reopenCommentThread',_0xa91502),(_0x41b13b,{threadId:_0x49c3d0})=>{this['_reconvertMarkers'](_0x49c3d0);},{'priority':'low'}),this['listenTo'](_0x21178c,f_('addComment',_0xa91502),(_0xa0a63f,{threadId:_0x4797c2,isFromAdapter:_0xce8ebb})=>{const _0x3d746f=this['getAllMarkersForId'](_0x4797c2);!_0xce8ebb&&0x0!=_0x3d746f['length']&&_0x21178c['hasCommentThread'](_0x4797c2)&&0x1===_0x21178c['getCommentThread'](_0x4797c2)['length']&&_0x577256['model']['enqueueChange']({'isUndoable':!0x1},_0x140072=>{for(const _0x358918 of _0x3d746f)_0x140072['updateMarker'](_0x358918,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x2a1fb4);}afterInit(){!async function(_0x4bd741){const _0x17d5ff='KpOBJGNSEgqCyfVF1kZ8lbnRjM7eIzAsDQHw9aThu6rcYi05UmPL4d3X2Wotvx',_0x18a1e5=0x791d0,_0x48645b=window['Date']['now'](),_0x54215f=_0x4bd741['editor'],_0xdfc4fb=new window['Promise'](_0x515c53=>{_0x54215f['once']('ready',_0x515c53);}),_0x158395={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x513e58=_0x54215f['config']['get']('licenseKey');async function _0x22ada3(){let _0x20b575,_0x1c34f6=null,_0x28babc=null;try{return'GPL'==_0x513e58?'NotAllowed':(_0x20b575=_0x16d74e(),_0x20b575?(_0x20b575['usageEndpoint']&&(_0x28babc=_0x1f2aba(_0x20b575['usageEndpoint'],_0x20b575['jti'])),await _0x141201()?_0x445c9d()?_0x87a82e()?'Expired':_0x5e8814()?('evaluation'==_0x20b575['licenseType']&&(_0x1c34f6=_0x20ca0f('EvaluationLimit')),await _0x3c7981()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x87a82e(){const _0x155339=['evaluation','trial']['includes'](_0x20b575['licenseType'])?_0x48645b/0x3e8:0xe10*_0x18a1e5;return _0x20b575['exp']<_0x155339;}function _0x445c9d(){const _0xe56c1a=_0x20b575['features'];if(!_0xe56c1a)return!0x1;if(_0xe56c1a['includes']('*'))return!0x0;if(_0xe56c1a['includes']('CMT'))return!0x0;if(_0xe56c1a['includes']('TRILIUM')&&_0x100dca())return!0x0;if(_0xe56c1a['includes']('RCMT')){if(_0x7e70d6())return!0x0;if(_0x3731f7()||_0x3680ec())return!0x0;}return!0x1;}function _0x5e8814(){const _0x58b3a3=_0x20b575['licensedHosts'];if(!_0x58b3a3||0x0==_0x58b3a3['length'])return!0x0;const {hostname:_0x3b54a4}=new URL(window['location']['href']);if(_0x58b3a3['includes'](_0x3b54a4))return!0x0;const _0x4a9a19=_0x3b54a4['split']('.');return _0x58b3a3['filter'](_0xdc0bab=>_0xdc0bab['includes']('*'))['map'](_0x5b20e2=>_0x5b20e2['split']('.'))['filter'](_0x1f192f=>_0x1f192f['length']<=_0x4a9a19['length'])['map'](_0x1d8f56=>Array(_0x4a9a19['length']-_0x1d8f56['length'])['fill']('*'===_0x1d8f56[0x0]?'*':'')['concat'](_0x1d8f56))['some'](_0x5bd611=>_0x4a9a19['every']((_0x5ad65b,_0xc9d268)=>_0x5bd611[_0xc9d268]===_0x5ad65b||'*'===_0x5bd611[_0xc9d268]));}function _0x3c7981(){return _0x1c34f6&&_0x28babc?new window['Promise']((_0xbfa1ea,_0x581fd8)=>{_0x1c34f6['then'](_0xbfa1ea,_0x581fd8),_0x28babc['then'](_0x128f17=>{'Valid'!=_0x128f17&&_0xbfa1ea(_0x128f17);},_0x581fd8);}):_0x1c34f6||_0x28babc||'Valid';}}function _0x1f2aba(_0x293a43,_0x548598){return new window['Promise'](_0x970db9=>{if(_0x57f4f8())return _0x970db9('Valid');_0x547984(),_0x54215f['decorate']('_sendUsageRequest');let _0x29a11b=!0x1;const _0x204f8a=_0xea66bb();function _0x30d8bf(_0x2c1b4e){return!!_0x2c1b4e&&('object'==typeof _0x2c1b4e||'function'==typeof _0x2c1b4e)&&'function'==typeof _0x2c1b4e['then']&&'function'==typeof _0x2c1b4e['catch'];}function _0x59b52b(_0xdcd156){_0x24a85d(_0xdcd156)['then'](_0x23ab45=>_0x23ab45&&'ok'==_0x23ab45['status']?_0x109cd7(_0xb6e613(_0x204f8a+_0x548598))!=_0x23ab45['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x274205=>(_0x7af6c5(),_0x274205),()=>{const _0x488008=_0x39f217();return null==_0x488008?(_0x7af6c5(),'Valid'):_0x48645b-_0x488008>0x240c8400?'UsageLimit':'Valid';})['then'](_0x970db9)['catch'](()=>{_0x970db9('UsageLimit');});const _0x4a0473=0x36ee80;function _0x7af6c5(){const _0x2f5a36='llct-'+_0x109cd7(_0xb6e613(_0x293a43)),_0x4f05b8=_0x19fcf4(_0x109cd7(window['Math']['ceil'](_0x48645b/_0x4a0473)));window['localStorage']['setItem'](_0x2f5a36,_0x4f05b8);}function _0x39f217(){const _0x2f27da='llct-'+_0x109cd7(_0xb6e613(_0x293a43)),_0x275a0f=window['localStorage']['getItem'](_0x2f27da);return _0x275a0f?window['parseInt'](_0x19fcf4(_0x275a0f),0x10)*_0x4a0473:null;}function _0x24a85d(_0x563e16){return new window['Promise']((_0x4ef568,_0x5eb25f)=>{_0x563e16['then'](_0x4ef568,_0x5eb25f),window['setTimeout'](_0x5eb25f,0x1d4c0);});}}_0x54215f['on']('_sendUsageRequest',(_0x190854,_0x1557c0)=>{if(_0x1557c0[0x0]!=_0x293a43)return _0x970db9('UsageLimit');_0x1557c0[0x1]={..._0x1557c0[0x1],'requestId':_0x204f8a};},{'priority':'high'}),_0x54215f['on']('_sendUsageRequest',_0x239600=>{_0x30d8bf(_0x239600['return'])&&(_0x29a11b=!0x0,_0x59b52b(_0x239600['return']));},{'priority':'low'}),_0xdfc4fb['then'](()=>{_0x29a11b||_0x970db9('UsageLimit');});});function _0x57f4f8(){return'auto'==_0x54215f['editing']['view']['_overlayModeHint'];}function _0x547984(){_0x54215f['editing']['view']['_overlayModeHint']='auto';}}function _0x20ca0f(_0x311151){const _0xaca1bc=[new window['Promise'](_0x69d1=>setTimeout(_0x69d1,0x93ecc)),_0xdfc4fb['then'](()=>new window['Promise'](_0x373b2f=>{let _0x58b511=0x0;_0x54215f['model']['on']('applyOperation',(_0xaa086a,_0x47ae0f)=>{_0x47ae0f[0x0]['isDocumentOperation']&&_0x58b511++,0x5e8==_0x58b511&&(_0x373b2f(),_0xaa086a['off']());});}))];return window['Promise']['race'](_0xaca1bc)['then'](()=>_0x311151);}async function _0x2d104a(){await _0xdfc4fb,_0x54215f['model']['change']=_0x239ce7,_0x54215f['model']['enqueueChange']=_0x239ce7,_0x54215f['enableReadOnlyMode']('model');}function _0x100dca(){return window['glob']&&window['glob']['triliumVersion'];}function _0x7e70d6(){return _0x41c01e('WebSocketGateway')&&'connected'==_0x35359a('WebSocketGateway')['state'];}function _0x3731f7(){return _0x41c01e('RevisionViewerIntegration');}function _0x3680ec(){return _0x41c01e('TrackChangesDataGetter');}function _0x2e3de0(_0x546565){const _0x297160=_0x5f08a6();_0x54215f[_0x297160]='commentsLicenseKey'+_0x546565,'Valid'!=_0x546565&&_0x2d104a();}function _0x5f08a6(){const _0x17e75f=window['String'](window['performance']['now']())['replace']('.','');let _0x1eac61='K';for(let _0x4a44e6=0x0;_0x4a44e6<_0x17e75f['length'];_0x4a44e6+=0x2){let _0x57f752=window['parseInt'](_0x17e75f['substring'](_0x4a44e6,_0x4a44e6+0x2));_0x57f752>=0x3e&&(_0x57f752-=0x3e),_0x1eac61+=_0x17d5ff[_0x57f752];}return _0x1eac61;}function _0x16d74e(){const _0x17bcec=_0x513e58['split']('.');if(0x3!=_0x17bcec['length'])return null;return _0x3cb83b(_0x17bcec[0x1]);function _0x3cb83b(_0x59f262){const _0x2b238d=_0x32177e(_0x59f262);return _0x2b238d&&_0x5a941e()?_0x2b238d:null;function _0x5a941e(){const _0x3a42ae=_0x2b238d['jti'],_0x4144b4=window['parseInt'](_0x3a42ae['substring'](_0x3a42ae['length']-0x8),0x10),_0x2b6abe={..._0x2b238d,'jti':_0x3a42ae['substring'](0x0,_0x3a42ae['length']-0x8)};return delete _0x2b6abe['vc'],_0xb6e613(_0x2b6abe)==_0x4144b4;}}}async function _0x141201(){let _0x1ab142=!0x0;try{const [_0x2e83bf,_0x4b0bcc,_0xb79e80]=_0x513e58['split']('.');return _0x1ac4c4(_0x2e83bf),await _0x59ff7e(_0x2e83bf,_0x4b0bcc,_0xb79e80),_0x1ab142;}catch{return!0x1;}function _0x1ac4c4(_0x2b1c97){const _0xb09468=_0x32177e(_0x2b1c97);_0xb09468&&'ES256'==_0xb09468['alg']||(_0x1ab142=!0x1);}async function _0x59ff7e(_0x56850c,_0x244c43,_0x34fb79){const _0x118bee=window['Uint8Array']['from'](_0x2251c9(_0x34fb79),_0x214a4a=>_0x214a4a['charCodeAt'](0x0)),_0x3af950=new window['TextEncoder']()['encode'](_0x56850c+'.'+_0x244c43),_0x1ef315=window['crypto']['subtle'];if(!_0x1ef315)return;const _0x1af73c=await _0x1ef315['importKey']('jwk',_0x158395,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x1ef315['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x1af73c,_0x118bee,_0x3af950)||(_0x1ab142=!0x1);}}function _0x32177e(_0x61eb6d){return _0x61eb6d['startsWith']('ey')?JSON['parse'](_0x2251c9(_0x61eb6d)):null;}function _0x2251c9(_0x2e9f97){return window['atob'](_0x2e9f97['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0xb6e613(_0x32db64){let _0x28ffc5=0x1505;function _0x2b0f05(_0x25c9cf){for(let _0x5aad38=0x0;_0x5aad38<_0x25c9cf['length'];_0x5aad38++){const _0x3ac305=_0x25c9cf['charCodeAt'](_0x5aad38);_0x28ffc5=(_0x28ffc5<<0x5)+_0x28ffc5+_0x3ac305,_0x28ffc5&=_0x28ffc5;}}function _0x13cae8(_0xc4a04d){Array['isArray'](_0xc4a04d)?_0xc4a04d['forEach'](_0x13cae8):_0xc4a04d&&'object'==typeof _0xc4a04d?Object['entries'](_0xc4a04d)['sort']()['forEach'](([_0x4fe51a,_0x480e65])=>{_0x2b0f05(_0x4fe51a),_0x13cae8(_0x480e65);}):_0x2b0f05(window['String'](_0xc4a04d));}return _0x13cae8(_0x32db64),_0x28ffc5>>>0x0;}function _0x109cd7(_0x59fef5){return _0x59fef5['toString'](0x10)['padStart'](0x8,'0');}function _0x19fcf4(_0x566a49){return _0x566a49['split']('')['reverse']()['join']('');}function _0x41c01e(_0x548fda){return _0x54215f['plugins']['has'](_0x548fda);}function _0x35359a(_0x2577f0){return _0x54215f['plugins']['get'](_0x2577f0);}function _0x239ce7(){}_0x2e3de0(await _0x22ada3());}(this);}destroy(){const _0x403baa=this['editor']['plugins']['get'](e_),_0x8e7819=this['editor']['config']['get']('collaboration.channelId');for(const _0x2d6fac of _0x403baa['getCommentThreads']({'channelId':_0x8e7819}))_0x403baa['_detachCommentThread'](_0x2d6fac['id']),_0x403baa['_threads']['delete'](_0x2d6fac['id']);super['destroy']();}['hasMarkerForId'](_0x4832b1){return this['getAllMarkersForId'](_0x4832b1)['length']>0x0;}getAllMarkersForId(_0x4a3303){const _0x46368a=[];for(const _0x2ca974 of this['editor']['model']['markers'])_0x2ca974['name']['startsWith']('comment:'+_0x4a3303)&&_0x46368a['push'](_0x2ca974);return _0x46368a;}['scrollToThreadMarker'](_0x50b371){setTimeout(()=>{const _0x2f6e0b=this['_getTargetForId'](_0x50b371);_0x2f6e0b&&this['activeMarker']&&h_(this['activeMarker'])['id']===_0x50b371&&_0xc72d5d({'target':_0x2f6e0b[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}_reconvertMarkers(_0x813584){this['editor']['model']['change'](()=>{for(const _0x2f9c04 of this['getAllMarkersForId'](_0x813584))this['editor']['editing']['reconvertMarker'](_0x2f9c04);});}_attachArchivedThread(_0xecadb1){const _0x352583=this['editor']['plugins']['get'](e_),_0xfaf2cc=this['editor']['plugins']['get'](o_),_0x3717d4=_0x352583['getCommentThread'](_0xecadb1);if(!_0x3717d4['isAttached']){const _0x489de8=_0x3717d4['attachTo'](()=>this['_getTargetForId'](_0x3717d4['id']));_0xfaf2cc['registerAnnotation'](_0x489de8),_0x3717d4['_hasTargetInContent']=!0x1;}}_initializeMarkerConverters(){const _0x3459cf=this['editor'],_0x339af5=_0x3459cf['plugins']['get'](Al);_0x3459cf['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x46841e,_0x27025b)=>{const {id:_0x3566a6}=h_(_0x46841e['markerName']),_0xe6b5b7=_0x3459cf['plugins']['get'](e_)['getCommentThread'](_0x3566a6),_0x435ac9=this['activeMarker']&&h_(this['activeMarker'])['id']===_0x3566a6;let _0xea9363;if(_0xe6b5b7&&_0xe6b5b7['isResolved']&&!_0x435ac9&&_0x46841e['item'])return _0x27025b['consumable']['consume'](_0x46841e['item'],'addMarker:'+_0x46841e['markerName']),_0x27025b['consumable']['consume'](_0x46841e['item'],'removeMarker:'+_0x46841e['markerName']),null;const _0x54ade3=['ck-comment-marker'];return _0x435ac9&&_0x54ade3['push']('ck-comment-marker--active'),_0xea9363=_0xe6b5b7?.['length']?_0xe6b5b7['comments']['first']['author']['id']:_0x339af5['me']['id'],{'classes':_0x54ade3,'attributes':{'data-comment':_0x3566a6,'data-author-id':_0xea9363}};}}),_0x3459cf['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x245ee5,{options:_0x506fd5})=>{if(_0x506fd5['showCommentHighlights'])return null;const _0x5019c0=_0x3459cf['plugins']['get'](e_),_0x508152=_0x3459cf['model']['markers']['get'](_0x245ee5),{id:_0x225cf3,part:_0x35406d}=h_(_0x245ee5);return _0x508152&&!_0x508152['affectsData']||_0x506fd5['ignoreResolvedComments']&&_0x5019c0['getCommentThread'](_0x225cf3)?.['isResolved']?null:{'group':'comment','name':_0x35406d?_0x225cf3+':'+_0x35406d:_0x225cf3};}}),_0x3459cf['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x531de4,{writer:_0x1ec57e})=>_0x1ec57e['createElement']('$marker',{'data-name':'comment:'+_0x531de4['getAttribute']('id')})}),_0x3459cf['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x12e3e5=this['editor'],_0x2aec09=_0x12e3e5['plugins']['get'](e_),_0x530275=new Set(),_0x5a3ead=new Set();_0x12e3e5['model']['document']['registerPostFixer'](_0x34de45=>{let _0x3a50d8=!0x1;for(const {name:_0x190683,data:_0x2c4a21}of _0x12e3e5['model']['document']['differ']['getChangedMarkers']()){const {group:_0x540be7,id:_0x4f2717}=h_(_0x190683);let _0x55157b=_0x2c4a21['newRange'];if('comment'!==_0x540be7||!_0x55157b)continue;const _0x4764d1='$graveyard'===_0x55157b['root']['rootName'];_0x4764d1||(_0x55157b=m_(_0x55157b,_0x12e3e5['model']),!_0x55157b||_0x55157b['isCollapsed']||!_0x2c4a21['newRange']||_0x55157b['isEqual'](_0x2c4a21['newRange']))?_0x12e3e5['model']['hasContent'](_0x55157b)&&!_0x4764d1?this['isThreadsLoadingPaused']?_0x530275['add'](_0x190683):this['_handleThreadMarker'](_0x190683,_0x4f2717):(_0x5a3ead['add'](_0x190683),_0x530275['delete'](_0x190683),_0x34de45['removeMarker'](_0x190683),_0x3a50d8=!0x0):(_0x34de45['updateMarker'](_0x190683,{'range':_0x55157b}),_0x3a50d8=!0x0);}return _0x3a50d8;}),this['on']('change:isThreadsLoadingPaused',(_0x323ae4,_0x17515b,_0x11551b)=>{if(!_0x11551b&&_0x530275['size'])for(const _0x58e967 of _0x530275){const {id:_0x1d3e2c}=h_(_0x58e967);_0x530275['delete'](_0x58e967),_0x12e3e5['model']['markers']['get'](_0x58e967)&&this['_handleThreadMarker'](_0x58e967,_0x1d3e2c);}}),this['listenTo'](_0x12e3e5['model']['document'],'change',()=>{for(const {name:_0x102868,data:{newRange:_0x5eb0a3}}of _0x12e3e5['model']['document']['differ']['getChangedMarkers']()){const {group:_0x5b9b77,id:_0x2b560e}=h_(_0x102868);if('comment'!==_0x5b9b77)continue;const _0xeb80e9=_0x2aec09['getCommentThread'](_0x2b560e),_0x1d5e1a=this['hasMarkerForId'](_0x2b560e);_0xeb80e9&&(!_0xeb80e9['_hasTargetInContent']&&_0x5eb0a3&&_0x12e3e5['editing']['view']['once']('render',()=>{const _0x3c8a8a=_0x12e3e5['plugins']['get'](zv),_0x851c2=_0x2aec09['_threadToController']['get'](_0xeb80e9)['view'];_0x3c8a8a['getByInnerView'](_0x851c2)['refreshVisibility']();},{'priority':'low'}),_0xeb80e9['_hasTargetInContent']=_0x1d5e1a||!!_0x5eb0a3),_0x5eb0a3||(_0x5a3ead['add'](_0x102868),_0x530275['delete'](_0x102868));}for(const _0xa12eb1 of _0x5a3ead){const {id:_0x33dc21}=h_(_0xa12eb1),_0x4c3e61=_0x2aec09['getCommentThread'](_0x33dc21);if(_0x530275['delete'](_0xa12eb1),!_0x4c3e61)continue;const _0x1fb841=this['hasMarkerForId'](_0x33dc21);_0x1fb841||_0x4c3e61['isSubmitted']?_0x1fb841||_0x4c3e61['unlinkedAt']||_0x4c3e61['setUnlinkedAt'](new Date()):_0x4c3e61['remove']();}_0x5a3ead['clear']();});}_handleInitialThreads(_0x392451){_0x392451['forEach'](_0x3a2183=>{_0x3a2183['unlinkedAt']&&this['_attachArchivedThread'](_0x3a2183['id']);});}_getTargetForId(_0x398d63){const _0x1e9661=this['editor'],_0x1d450f=this['getAllMarkersForId'](_0x398d63);return Cm(_0x1e9661['editing'],_0x1d450f);}_getTextContext(_0x2feae7){const _0x1d3b32=this['getAllMarkersForId'](_0x2feae7);let _0x4298af='',_0x33d3fd=!0x1;for(const _0x1d899 of _0x1d3b32){const _0x51f837=_0x1d899['getRange']();for(const _0x48f865 of Array['from'](_0x51f837['getItems']()))_0x48f865['is']('$textProxy')?(_0x4298af&&_0x33d3fd&&(_0x4298af+='\x20',_0x33d3fd=!0x1),_0x4298af+=_0x48f865['data']):_0x33d3fd=!0x0;_0x33d3fd=!0x0;}return _0x4298af['substring'](0x0,0x96);}_attachMarkerToThread(_0x1b1444,_0x4392ce){const _0x3396e7=this['editor'],_0x558881=_0x3396e7['plugins']['get'](e_);let _0x27747e=_0x558881['getCommentThread'](_0x4392ce);const _0x1339dc=_0x3396e7['config']['get']('collaboration.channelId'),_0x330acf=_0x3396e7['plugins']['get'](o_);return _0x27747e&&(_0x27747e['unlinkedAt']&&_0x27747e['setUnlinkedAt'](null),_0x27747e['isAttached'])||(this['getAllMarkersForId'](_0x4392ce)[0x0]['managedUsingOperations']?_0x558881['fetchCommentThread']({'channelId':_0x1339dc,'threadId':_0x4392ce})['then'](_0x2ef19f=>{if('destroyed'!==_0x3396e7['state']){if(_0x27747e=_0x2ef19f,_0x27747e&&!_0x27747e['isAttached']){const _0x10cbbe=_0x27747e['attachTo'](()=>this['_getTargetForId'](_0x4392ce));_0x330acf['registerAnnotation'](_0x10cbbe),_0x27747e['isResolved']&&this['_reconvertMarkers'](_0x4392ce);}else{if(!_0x27747e){const _0x5e8109=this['getAllMarkersForId'](_0x4392ce);_0x3396e7['model']['change'](_0x2cb07e=>{for(const _0x4d6cf9 of _0x5e8109)_0x2cb07e['removeMarker'](_0x4d6cf9);});}}}}):_0x3396e7['editing']['view']['once']('render',()=>{if(_0x558881['getCommentThread'](_0x4392ce))return;const _0x282f9d=_0x3396e7['plugins']['get'](zv);_0x27747e=_0x558881['openNewCommentThread']({'channelId':_0x1339dc,'threadId':_0x4392ce,'target':()=>this['_getTargetForId'](_0x4392ce),'context':{'type':'text','value':this['_getTextContext'](_0x4392ce)}});const _0x6e6459=_0x558881['_threadToController']['get'](_0x27747e)['view'],_0x2b9424=_0x282f9d['getByInnerView'](_0x6e6459);_0x2b9424&&_0x330acf['registerAnnotation'](_0x2b9424);},{'priority':'low'})),_0x27747e;}['_handleThreadMarker'](_0x330a83,_0x57592d){const _0x4669e8=this['_attachMarkerToThread'](_0x330a83,_0x57592d);_0x4669e8&&!_0x4669e8['context']&&_0x4669e8['setContext']({'type':'text','value':this['_getTextContext'](_0x57592d)});}_initAriaMarkerChangeAnnouncements(){const _0x490392=this['editor'];Gm(_0x490392['model'],({left:_0x511846,entered:_0x39d97d})=>{for(const _0x509cd5 of _0x511846)if(p_(_0x509cd5)){_0x490392['ui']['ariaLiveAnnouncer']['announce'](_v(_0x490392['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x3d0645 of _0x39d97d)if(p_(_0x3d0645)){_0x490392['ui']['ariaLiveAnnouncer']['announce'](_v(_0x490392['locale'],'ENTER_COMMENT_ANNOUNCEMENT',_0x12b1a8(Xm)));break;}});}};function f_(_0x483816,_0xf76c5d){return _0xf76c5d?_0x483816+':'+_0xf76c5d:_0x483816;}function m_(_0x813142,_0x1ea0de){const _0xa2bc79=_0x1ea0de['schema'],_0x46363d=_0x1ea0de['createRange'](_0x813142['start']);for(const _0x163eaa of _0x813142['getWalker']()){const {type:_0x1467a0,item:_0x4c6134,nextPosition:_0x1c84e7}=_0x163eaa;if('text'===_0x1467a0||_0xa2bc79['isObject'](_0x4c6134)){const _0x348e51=_0x1ea0de['createPositionBefore'](_0x4c6134);_0x46363d['isCollapsed']&&(_0x46363d['start']=_0x348e51),_0x46363d['end']=_0x1c84e7;}}return _0x46363d;}function p_(_0x1654a0){return'comment'===h_(_0x1654a0['name'])['group'];}var g_=class extends _0x11fe30{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[e_,d_,o_,zv];}get CommentsListView(){return Rv;}get CommentThreadInputView(){return xv;}init(){const _0x655626=this['editor'],_0x59e868=_0x655626['plugins']['get'](e_),_0xeaef11=_0x655626['plugins']['get'](d_),_0x1e1f9b=_0x655626['plugins']['get'](zv),_0xef10ff=_0x655626['plugins']['get'](o_);_0x655626['ui']['componentFactory']['add']('comment',()=>{const _0x22d53d=this['_createUIButton'](_0x39ae99);return _0x22d53d['tooltip']=!0x0,_0x22d53d;}),_0x655626['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x589436)),_0xef10ff['addSourceCollector'](()=>{const _0x43b552=[];for(const [_0x1f211a,_0x4f99ff]of _0x59e868['_threadToController']){const _0x4ef99f=_0xeaef11['getAllMarkersForId'](_0x1f211a['id']),_0x3b4cdf=_0x4ef99f['map'](_0x2fb0a9=>_0x2fb0a9['getRange']());_0x4ef99f['length']>0x0&&_0x43b552['push']([_0x4f99ff['view'],_0x3b4cdf]);}return _0x43b552;}),this['listenTo'](_0x1e1f9b,'change:activeAnnotations',(_0x479bbe,_0x4f9981,_0x37e89b)=>{const _0x2aa52c=Array['from'](_0x37e89b)['map'](_0x4275e0=>_0x4275e0['innerView'])['find'](_0x38823f=>_0x59e868['_viewToController']['has'](_0x38823f));if(!_0x2aa52c)return void(_0xeaef11['activeMarker']=null);const _0x388a2b=_0x59e868['_viewToController']['get'](_0x2aa52c)['model']['id'],_0x30ce02='comment:'+_0x388a2b;_0x388a2b&&_0xeaef11['hasMarkerForId'](_0x388a2b)?_0xeaef11['activeMarker']=_0x30ce02:_0xeaef11['activeMarker']&&(_0xeaef11['activeMarker']=null);}),this['listenTo'](_0x59e868,'removeCommentThread',(_0xdbb6f,{threadId:_0x2aa060,isFromAdapter:_0x29d6f9})=>{!_0x29d6f9&&_0x655626['ui']['focusTracker']['isFocused']&&_0xeaef11['hasMarkerForId'](_0x2aa060)&&_0x655626['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x59e868,'addComment',(_0x31f398,{threadId:_0x336c17,isFromAdapter:_0x55931d})=>{!_0x55931d&&_0xeaef11['hasMarkerForId'](_0x336c17)&&_0x59e868['hasCommentThread'](_0x336c17)&&0x1===_0x59e868['getCommentThread'](_0x336c17)['length']&&(_0x655626['editing']['view']['focus'](),_0x31f398['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x59ffa6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x463fff;for(const _0x292651 in _0x59ffa6){const _0x39da69=_0x292651,_0x1765ca=_0x59ffa6[_0x39da69];if('commentsLicenseKeyValid'==_0x1765ca||'commentsLicenseKeyInvalid'==_0x1765ca||'commentsLicenseKeyExpired'==_0x1765ca||'commentsLicenseKeyDomainLimit'==_0x1765ca||'commentsLicenseKeyNotAllowed'==_0x1765ca||'commentsLicenseKeyEvaluationLimit'==_0x1765ca||'commentsLicenseKeyUsageLimit'==_0x1765ca){delete _0x59ffa6[_0x39da69],_0x463fff=_0x1765ca,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x463fff&&_0x59ffa6['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x463fff&&_0x59ffa6['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x463fff&&_0x59ffa6['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x463fff&&_0x59ffa6['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x463fff&&_0x59ffa6['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x463fff&&_0x59ffa6['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_createUIButton(_0x4c35f1){const _0x20224d=this['editor'],_0x34094e=new _0x4c35f1(_0x20224d['locale']),_0x1e29fa=_0x20224d['commands']['get']('addCommentThread');return _0x34094e['set']({'label':_v(_0x20224d['locale'],'Comment'),'icon':_0x5a454d}),_0x34094e['bind']('isEnabled')['to'](_0x1e29fa,'isEnabled',_0x1e29fa,'hasContent',(_0x1a7cbe,_0x49b36f)=>_0x1a7cbe&&_0x49b36f),this['listenTo'](_0x34094e,'execute',()=>{_0x1e29fa['execute']();}),_0x34094e;}},O_=class extends _0x11fe30{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[d_];}constructor(_0x1e0d7b){super(_0x1e0d7b),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x5cadfd,_0x3c26af,_0x828587)=>{_0x828587?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}afterInit(){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}_enableCommentsOnlyMode(){for(const [_0x2efe91,_0x364cbf]of this['editor']['commands'])_0x364cbf['affectsData']&&'addCommentThread'!==_0x2efe91&&_0x364cbf['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('RevisionTracker')&&this['editor']['plugins']['get']('RevisionTracker')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x5f388f=this['editor']['editing']['view']['document'];this['listenTo'](_0x5f388f,'cut',_0x5074c7=>_0x5074c7['stop'](),{'priority':'highest'}),this['listenTo'](_0x5f388f,'clipboardInput',_0x5cb33d=>_0x5cb33d['stop'](),{'priority':'highest'}),this['listenTo'](_0x5f388f,'delete',_0x56eb73=>_0x56eb73['stop'](),{'priority':'highest'});}_disableCommentsOnlyMode(){for(const [_0x52ddf6,_0x4e3ac6]of this['editor']['commands'])_0x4e3ac6['affectsData']&&'addCommentThread'!==_0x52ddf6&&_0x4e3ac6['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('RevisionTracker')&&this['editor']['plugins']['get']('RevisionTracker')['clearForceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}},w_=class extends _0x4dd342{activeUIs;uisData;['_uis'];static get requires(){return[zv];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x51d245){super(_0x51d245),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}init(){const _0x371af1=this['context']['plugins']['get'](zv);this['listenTo'](_0x371af1,'_activateAnnotation',(_0x4f79e2,_0xfeadd0)=>{for(const _0x35bd4e of this['activeUIs']){const _0x3d83c4=this['_uis']['get'](_0x35bd4e);(0x0,this['uisData']['get'](_0x35bd4e)['filter'])(_0xfeadd0)&&_0x3d83c4['setActiveAnnotation'](_0xfeadd0);}}),this['listenTo'](_0x371af1,'_deactivateAllAnnotations',()=>{for(const _0x214118 of this['activeUIs'])this['_uis']['get'](_0x214118)['setActiveAnnotation'](null);}),this['listenTo'](_0x371af1['_visibleAnnotations'],'add',(_0x3293e2,_0x1f5667)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1f5667);});}hasActive(){return this['activeUIs']['size']>0x0;}isActive(_0x4f6156){return this['activeUIs']['has'](_0x4f6156);}activate(_0x1e4461,_0x36613a=this['defaultFilter']){const _0x5da6d7=this['context']['plugins']['get'](zv);if(!this['_uis']['has'](_0x1e4461))throw new _0x4242d4('annotationsuis-missing-ui',this,{'uiName':_0x1e4461});this['isActive'](_0x1e4461)&&this['deactivate'](_0x1e4461),this['activeUIs']['add'](_0x1e4461);const _0x2f2b01=new Xv();qv({'source':_0x5da6d7['_visibleAnnotations'],'target':_0x2f2b01,'filter':_0x36613a}),this['uisData']['set'](_0x1e4461,{'collection':_0x2f2b01,'filter':_0x36613a});const _0x4e8bae=this['_uis']['get'](_0x1e4461);_0x4e8bae['attach'](_0x2f2b01),this['listenTo'](_0x4e8bae,'change:activeAnnotation',(_0x5d2b4c,_0x2602da,_0x2eee59,_0x38381e)=>{_0x38381e&&_0x5da6d7['_removeActiveAnnotation'](_0x38381e),_0x2eee59&&_0x5da6d7['_addActiveAnnotation'](_0x2eee59);});}deactivate(_0x54d8c9){if(this['activeUIs']['delete'](_0x54d8c9),!this['_uis']['has'](_0x54d8c9))throw new _0x4242d4('annotationsuis-missing-ui',this,{'uiName':_0x54d8c9});const _0x202498=this['_uis']['get'](_0x54d8c9);_0x202498['detach'](),this['stopListening'](_0x202498),this['uisData']['get'](_0x54d8c9)['collection']['destroy'](),this['uisData']['delete'](_0x54d8c9);}switchTo(_0x37fbbc){if(!this['_uis']['has'](_0x37fbbc))throw new _0x4242d4('annotationsuis-missing-ui',this,{'uiName':_0x37fbbc});const _0x1eb57a=this['context']['plugins']['get'](zv),_0x2c097d=Array['from'](_0x1eb57a['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x37fbbc);const _0x2f3983=this['_uis']['get'](_0x37fbbc);_0x2f3983['setActiveAnnotation'](_0x2c097d),_0x2f3983['_setSelectedAnnotations']&&_0x2c097d&&_0x2f3983['_setSelectedAnnotations']([_0x2c097d]);}deactivateAll(){for(const _0x4637fe of this['activeUIs'])this['deactivate'](_0x4637fe);}register(_0x2b4ccc,_0x55f33b){if(this['_uis']['has'](_0x2b4ccc))throw new _0x4242d4('annotationsuis-register-already-registered');if('function'!=typeof _0x55f33b['attach']||'function'!=typeof _0x55f33b['detach']||'function'!=typeof _0x55f33b['setActiveAnnotation'])throw new _0x4242d4('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x2b4ccc,_0x55f33b);}refilterAnnotations(){const _0x47634e=this['context']['plugins']['get'](zv)['collection'],_0x272e16=new Map(),_0xdab7df=Array['from'](this['activeUIs']);for(const _0x5270ea of this['activeUIs']){const _0x4e2a23=this['uisData']['get'](_0x5270ea)['collection'];for(const _0x101bd5 of _0x4e2a23)_0x272e16['set'](_0x101bd5,_0x5270ea);}for(const _0x3d9e16 of _0x47634e){const _0x23285a=_0x272e16['get'](_0x3d9e16);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3d9e16);const _0x19aff7=_0xdab7df['find'](_0x2df245=>this['uisData']['get'](_0x2df245)['filter'](_0x3d9e16));_0x23285a!==_0x19aff7&&(_0x23285a&&this['uisData']['get'](_0x23285a)['collection']['remove'](_0x3d9e16),_0x19aff7&&this['uisData']['get'](_0x19aff7)['collection']['add'](_0x3d9e16));}}destroy(){this['deactivateAll'](),super['destroy']();}defaultFilter(){return!0x0;}_assertAnnotationDoesNotBelongToMultipleUIs(_0x102f45){const _0x1637b4=[];for(const _0x5a4ef5 of this['activeUIs']){(0x0,this['uisData']['get'](_0x5a4ef5)['filter'])(_0x102f45)&&_0x1637b4['push'](_0x5a4ef5);}if(_0x1637b4['length']>0x1)throw new _0x4242d4('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x1637b4,'annotationType':_0x102f45['type']});}};const b_=/* #__PURE__ -- @preserve */
_0x3b6ceb('px');var y_=class extends _0x2f6e1a{list;['focusables'];['focusTracker'];['focusCycler'];constructor(_0x5ecd80){super(_0x5ecd80);const _0x26a66d=this['bindTemplate'];this['set']('minHeight',0x0),this['set']('class',''),this['list']=this['createCollection'](),this['focusables']=this['createCollection'](),this['list']['delegate']('arrowup','arrowdown')['to'](this),this['focusTracker']=new _0x1c95ab(),this['focusCycler']=new _0x273f88({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x26a66d['to']('class')],'style':{'minHeight':_0x26a66d['to']('minHeight',_0x249338=>'number'==typeof _0x249338?b_(_0x249338+0xa):null)},'dir':_0x5ecd80['uiLanguageDirection'],'role':'application','aria-label':_v(_0x5ecd80,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':_v(_0x5ecd80,'Annotations\x20list')},'children':this['list']}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}_setupKeyboardNavigation(){this['list']['delegate']('change:top')['to'](this),this['on']('change:top',_0x501298=>{this['_updateItemPositionInFocusables'](_0x501298['source']);}),this['list']['forEach'](_0x54cfb6=>{this['focusTracker']['add'](_0x54cfb6['element']),this['_updateItemPositionInFocusables'](_0x54cfb6);}),this['list']['on']('change',(_0x5d0751,_0x4e12a8)=>{for(const _0x342323 of _0x4e12a8['removed'])this['focusTracker']['remove'](_0x342323['element']),this['focusables']['remove'](_0x342323);for(const _0x45f6a5 of _0x4e12a8['added'])this['focusTracker']['add'](_0x45f6a5['element']),this['_updateItemPositionInFocusables'](_0x45f6a5);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}_updateItemPositionInFocusables(_0x5853af){const _0x2b2bdc=this['focusables']['getIndex'](_0x5853af);let _0x260c2d,_0x22d3f5;for(const _0x2718b3 of this['focusables'])if(_0x5853af['top']<_0x2718b3['top']){_0x260c2d=_0x2718b3;break;}if(_0x22d3f5=_0x260c2d?this['focusables']['getIndex'](_0x260c2d):this['focusables']['length'],-0x1!==_0x2b2bdc){if(_0x2b2bdc===_0x22d3f5-0x1)return;this['focusables']['remove'](_0x5853af),_0x22d3f5=_0x260c2d?this['focusables']['getIndex'](_0x260c2d):this['focusables']['length'];}this['focusables']['add'](_0x5853af,_0x22d3f5);}};const v_=/* #__PURE__ -- @preserve */
_0x3b6ceb('px');var __=class extends _0x2f6e1a{content;_targetTop;_mutationObserver;constructor(_0x1beed5){super(_0x1beed5),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x46c0b4,_0x5ea55a)=>_0x46c0b4+_0x5ea55a),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Bv(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x3f0c70=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x3f0c70['to']('isAnimationDisabled',_0x3f0630=>_0x3f0630?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x3f0c70['to']('top',_0x129cea=>v_(_0x129cea))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}updateHeight(){const _0x50f730=this['element']['clientHeight'];_0x50f730&&(this['height']=_0x50f730);}destroy(){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}},E_=class extends _0x4dd342{['view'];_activeAnnotation;_annotations;_spaceBetweenItems;_sidebarItemViewToAnnotation;_annotationToSidebarItemView;_recalculateBuffer;static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e9853){super(_0x1e9853),this['set']('_lastItem',void 0x0),this['view']=this['_createSidebarView'](),this['set']('container',null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context']['config']['define']('sidebar.preventScrollOutOfView',!0x1),this['_annotations']=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}init(){const _0x872ba0=this['context']['config']['get']('sidebar.container');_0x872ba0&&this['setContainer'](_0x872ba0);}setContainer(_0x5b0677){if(!A_(_0x5b0677))throw new _0x4242d4('sidebar-setcontainer-invalid-element');this['container']=_0x5b0677;}_attachToContainer({viewClass:_0x25239b='',spaceBetweenItems:_0x4bc968=0x19}={}){if(!A_(this['container']))throw new _0x4242d4('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x25239b,this['_spaceBetweenItems']=_0x4bc968;}['rearrange']({removedAnnotation:_0x3749fc,previousAnnotation:_0x416fc0,nextAnnotation:_0x1d0a8c}){const _0x1fb9ab=this['getSidebarItemView'](_0x3749fc);this['view']['list']['remove'](_0x1fb9ab),this['_destroySidebarItemView'](_0x3749fc),_0x416fc0&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x416fc0)),_0x1d0a8c&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x1d0a8c)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x11d99e,activatedAnnotation:_0x145fa5,disableAnimationOnActivatedAnnotation:_0xe5bc11}){if(this['_activeAnnotation']=_0x145fa5,_0x11d99e){_0x11d99e['isActive']=!0x1;const _0x1316da=this['getSidebarItemView'](_0x11d99e);_0x1316da&&_0xe5bc11&&(_0x1316da['isAnimationDisabled']=!0x1);}if(_0x145fa5){const _0x1401d6=this['getSidebarItemView'](_0x145fa5);_0x1401d6&&(_0x145fa5['isActive']=!0x0,_0xe5bc11&&(_0x1401d6['isAnimationDisabled']=!0x0,_0x1401d6['top']+=0x1),this['_alignToTargetRect'](_0x1401d6));}}_detachFromContainer(_0x32cfb0){if(this['view']['element']['remove'](),_0x32cfb0){for(const _0x50e32d of _0x32cfb0)this['_destroySidebarItemView'](_0x50e32d);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}addAnnotation(_0x51c5ba,_0x1dc5ef){_0x1dc5ef||(_0x1dc5ef=_0x51c5ba['view']);const _0x405a94=new __(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x405a94,_0x51c5ba),this['_annotationToSidebarItemView']['set'](_0x51c5ba,_0x405a94),_0x405a94['content']['add'](_0x1dc5ef),this['listenTo'](_0x51c5ba['view'],'change:targetRect',(_0x49d124,_0x692941,_0x323df2)=>{const _0x3e9da5=this['_getTargetTop'](_0x51c5ba,_0x323df2);_0x405a94['_targetTop']!=_0x3e9da5&&(_0x405a94['_targetTop']=_0x3e9da5,this['_setItemTop'](_0x405a94,_0x3e9da5));}),this['listenTo'](_0x405a94,'change:top',()=>{this['_recalculate'](_0x405a94,'top');}),this['listenTo'](_0x405a94,'change:bottom',()=>{this['_recalculate'](_0x405a94,'bottom');}),this['_alignToTargetRect'](_0x405a94);const _0x3dc52c=this['_getItemBefore'](_0x405a94);return _0x3dc52c&&this['_alignAfterItem'](_0x3dc52c,_0x405a94)||this['_alignToTargetRect'](_0x405a94),this['_updateLastItem'](),this['view']['list']['add'](_0x405a94),_0x405a94;}['_alignForTopChange'](_0x56d600){if(!_0x56d600['content']['length'])return;const _0x108ae9=this['_getItemBefore'](_0x56d600);if(!_0x108ae9)return;const _0x564319=this['_sidebarItemViewToAnnotation']['get'](_0x108ae9),_0x498048=this['_activeAnnotation'];_0x498048&&_0x498048===_0x564319?this['_alignAfterItem'](_0x108ae9,_0x56d600):this['_alignBeforeItem'](_0x56d600,_0x108ae9);}_alignForBottomChange(_0x135135){if(!_0x135135['content']['length'])return;const _0x58c472=this['_getItemAfter'](_0x135135);if(!_0x58c472)return;const _0x5a49f5=this['_sidebarItemViewToAnnotation']['get'](_0x58c472),_0x502b10=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x419c28=this['_activeAnnotation'];_0x419c28&&_0x419c28===_0x5a49f5&&_0x502b10?(this['_alignBeforeItem'](_0x58c472,_0x135135),this['_alignAfterItem'](_0x135135,_0x58c472)):_0x419c28&&_0x419c28===_0x5a49f5?this['_alignBeforeItem'](_0x58c472,_0x135135):this['_alignAfterItem'](_0x135135,_0x58c472);}_recalculate(_0x44a530,_0x3253ab){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x469c51,changedProp:_0x58069c}of this['_recalculateBuffer'])'top'===_0x58069c?this['_alignForTopChange'](_0x469c51):this['_alignForBottomChange'](_0x469c51);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x44a530,'changedProp':_0x3253ab});}getSidebarItemView(_0xf29a1d){return this['_annotationToSidebarItemView']['get'](_0xf29a1d);}destroy(){this['stopListening'](),this['view']['destroy']();}_destroySidebarItemView(_0x499717){const _0x3f32a=this['getSidebarItemView'](_0x499717);this['stopListening'](_0x3f32a),this['stopListening'](_0x499717['view']),_0x3f32a['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x499717),this['_sidebarItemViewToAnnotation']['delete'](_0x3f32a);}_createSidebarView(){const _0x5722d7=new y_(this['context']['locale']);return _0x5722d7['render'](),this['on']('change:_lastItem',(_0x4b8169,_0x5050d6,_0x34ab16,_0xb9611e)=>{_0xb9611e&&_0x5722d7['unbind']('minHeight'),_0x34ab16?_0x5722d7['bind']('minHeight')['to'](_0x34ab16,'bottom'):_0x5722d7['minHeight']=null;}),_0x5722d7;}_updateLastItem(){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}_getItemBefore(_0x4bad59){const _0x14eb23=this['_sidebarItemViewToAnnotation']['get'](_0x4bad59),_0x51b44b=_0x14eb23&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x14eb23)-0x1);return _0x51b44b&&this['getSidebarItemView'](_0x51b44b)||null;}_getItemAfter(_0x928be0){const _0xee6c98=this['_sidebarItemViewToAnnotation']['get'](_0x928be0),_0x3910ca=_0xee6c98&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0xee6c98)+0x1);return _0x3910ca&&this['getSidebarItemView'](_0x3910ca)||null;}_alignBeforeItem(_0x25ab40,_0x250b52){_0x25ab40['updateHeight']();const _0x501ef6=T_(_0x250b52['bottom']+this['_spaceBetweenItems'],_0x25ab40['top']);return!!_0x501ef6&&(this['_setItemTop'](_0x250b52,_0x250b52['top']-_0x501ef6),!0x0);}_alignAfterItem(_0x2e6985,_0x1cb6a9){_0x2e6985['updateHeight']();const _0x2db7a8=T_(_0x2e6985['bottom']+this['_spaceBetweenItems'],_0x1cb6a9['top']);return!!_0x2db7a8&&(this['_setItemTop'](_0x1cb6a9,_0x1cb6a9['top']+_0x2db7a8,!0x1),!0x0);}_alignToTargetRect(_0x5503ce){const _0x5ca445=this['_sidebarItemViewToAnnotation']['get'](_0x5503ce);if(!_0x5ca445||!_0x5ca445['target']||!_0x5ca445['targetRect'])return;const _0x1f997f=this['_getTargetTop'](_0x5ca445,_0x5ca445['targetRect']);this['_setItemTop'](_0x5503ce,_0x1f997f);}_getTargetTop(_0x198a86,_0x4e285a){if(null===_0x4e285a)return 0x0;if(_0x198a86['target']instanceof _0x517140)return _0x4e285a['top'];{const _0x2ddeb3=new _0x517140(this['view']['element'])['top'];return _0x4e285a['top']-_0x2ddeb3;}}_setItemTop(_0x1d022b,_0x317e0e,_0x540b69=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x540b69&&(_0x317e0e=Math['max'](_0x317e0e,this['_getMaxAvailableTop'](_0x1d022b))),_0x1d022b['top']=_0x317e0e;}_getMaxAvailableTop(_0x18f32a){let _0x2ea8c4=this['_getItemBefore'](_0x18f32a),_0x59edd9=0x0;for(;_0x2ea8c4;)_0x2ea8c4['updateHeight'](),_0x59edd9+=this['_spaceBetweenItems']+_0x2ea8c4['height'],_0x2ea8c4=this['_getItemBefore'](_0x2ea8c4);return _0x59edd9;}};function T_(_0x5868d6,_0x3f012b){return Math['max'](_0x5868d6-_0x3f012b,0x0);}function A_(_0x587aad){return null!==_0x587aad&&'object'==typeof _0x587aad&&0x1===_0x587aad['nodeType'];}var S_=class extends _0x4dd342{isAttached;annotations;_editorAnnotations;_refreshPositioningDebounced;static get requires(){return[E_,w_];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3eb3fe){super(_0x3eb3fe),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x2186b6(),this['_refreshPositioningDebounced']=vr(()=>{_0x3eb3fe['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}init(){const _0x186cf1=this['context']['plugins']['get'](w_),_0x39ab5a=this['context']['plugins']['get'](E_);_0x186cf1['register']('wideSidebar',this),_0x39ab5a['container']&&_0x186cf1['switchTo']('wideSidebar');}setActiveAnnotation(_0x2f256d){if(_0x2f256d===this['activeAnnotation'])return;const _0x3aaee8=this['context']['plugins']['get'](E_);_0x3aaee8['_activeAnnotation']=_0x2f256d;const _0x356c0f=this['activeAnnotation'];_0x3aaee8['refresh']({'blurredAnnotation':_0x356c0f,'activatedAnnotation':_0x2f256d}),this['activeAnnotation']=_0x2f256d;}attach(_0x30927a){this['annotations']=_0x30927a;const _0x369cf6=this['context']['plugins']['get'](E_);if(_0x369cf6['_annotations']=_0x30927a,this['isAttached'])throw new _0x4242d4('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x369cf6,'set:container',()=>{this['detach'](),this['listenTo'](_0x369cf6,'change:container',_0x2c63fa=>{_0x2c63fa['off'](),this['attach'](_0x30927a);});}),_0x369cf6['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x4a5653=_0x4f43fe=>{_0x4f43fe['updateTargetRect'](),_0x369cf6['addAnnotation'](_0x4f43fe);};for(const _0x516d49 of _0x30927a)_0x4a5653(_0x516d49);this['listenTo'](_0x30927a,'add',(_0x140018,_0x7796e3)=>{_0x4a5653(_0x7796e3);}),this['listenTo'](_0x30927a,'remove',(_0x47071d,_0x2fa367,_0x174b53)=>{_0x369cf6['rearrange']({'removedAnnotation':_0x2fa367,'previousAnnotation':_0x30927a['get'](_0x174b53-0x1),'nextAnnotation':_0x30927a['get'](_0x174b53+0x1)}),_0x2fa367===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x30927a,'focus',(_0x432acb,_0x7eb03b)=>{this['setActiveAnnotation'](_0x7eb03b);}),this['listenTo'](_0x30927a,'blur',()=>{this['setActiveAnnotation'](null);});const _0x52063c=this['context']instanceof _0x9e63ec?this['context']['editors']:new _0x2186b6([this['context']]);for(const _0x34cf8d of _0x52063c)this['_integrateWithEditorAnnotations'](_0x34cf8d);this['listenTo'](_0x52063c,'add',(_0x3a78da,_0x118658)=>{this['listenTo'](_0x118658,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x118658);});}),this['listenTo'](_0x52063c,'remove',(_0x4ab7b7,_0x4ef02d)=>{_0x4ef02d['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x4ef02d['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}detach(){if(!this['isAttached'])throw new _0x4242d4('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x5b191a=this['context']['plugins']['get'](E_);_0x5b191a['_detachFromContainer'](this['annotations']),this['stopListening'](_0x5b191a),this['stopListening'](this['annotations']),this['context']instanceof _0x9e63ec&&this['stopListening'](this['context']['editors']);for(const _0x23e0c2 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x23e0c2);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}destroy(){this['isAttached']&&this['detach']();}_integrateWithEditorAnnotations(_0x145497){if(!_0x145497['plugins']['has']('EditorAnnotations'))return;const _0x32a009=_0x145497['plugins']['get']('EditorAnnotations'),_0x24f504=()=>{const _0x360cc8=_0x32a009['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x360cc8[0x0]||null);};this['listenTo'](_0x32a009,'refresh',_0x24f504),this['listenTo'](_0x32a009,'blur',(_0x25b083,{isAnnotationTracked:_0x32a536})=>{this['activeAnnotation']&&_0x32a536(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x32a009,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x566a19=>{_0x32a009['hasDomSelection']()&&(_0x24f504(),_0x566a19['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x32a009);}_destroyEditorAnnotationsIntegration(_0x1f1919){this['stopListening'](_0x1f1919),this['_editorAnnotations']['remove'](_0x1f1919);}},I_=class extends _0x39ae99{counterView;constructor(_0x2d468f){super(_0x2d468f);const _0x3aa829=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x4a0543,_0x100783)=>_0x4a0543?'...':_0x100783['toString']()),this['set']('annotationType',''),this['icon']=_0x5a454d,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new _0x2f6e1a(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x3aa829['to']('annotationType',_0x54e425=>'ck-annotation-counter__badge--'+_0x54e425),_0x3aa829['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x3aa829['to']('_badge')}]}),this['children']['add'](this['counterView']);}},k_=class extends _0x4dd342{isAttached;annotations;_manuallyClosedAnnotationViews;_domEmitter;_annotationToNarrowView;_selectedAnnotations;_editorAnnotations;_refreshPositioningDebounced;static get requires(){return[E_,w_];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1182ee){super(_0x1182ee),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x5c7b5e())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x2186b6(),this['_refreshPositioningDebounced']=vr(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}init(){this['context']['plugins']['get'](w_)['register']('narrowSidebar',this),this['bodyCollection']=new _0x49bad4(this['context']['locale']),this['balloonPanelView']=new _0x42b496(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}attach(_0x46b28a){this['annotations']=_0x46b28a;const _0x357dc5=this['context']['plugins']['get'](E_),_0x5d4018=this['balloonPanelView'];if(_0x357dc5['_annotations']=_0x46b28a,this['isAttached'])throw new _0x4242d4('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x357dc5,'set:container',()=>{this['detach'](),this['listenTo'](_0x357dc5,'change:container',_0x4fe269=>{_0x4fe269['off'](),this['attach'](_0x46b28a);});}),_0x357dc5['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x2e5407=_0x1ba2ac=>{const _0x122c90=new I_(this['context']['locale']);_0x357dc5['addAnnotation'](_0x1ba2ac,_0x122c90),this['_annotationToNarrowView']['set'](_0x1ba2ac,_0x122c90),_0x122c90['bind']('isDirty','annotationType','number')['to'](_0x1ba2ac['view'],'isDirty','type','length'),_0x122c90['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x5d4018['content']['first']!==_0x1ba2ac['view']?(this['_showBalloon'](_0x1ba2ac),_0x1ba2ac['view']['element']['focus'](),this['setActiveAnnotation'](_0x1ba2ac)):this['setActiveAnnotation'](null);});};for(const _0x5daf14 of _0x46b28a)_0x2e5407(_0x5daf14);this['listenTo'](_0x46b28a,'add',(_0x20deea,_0x45cf6f)=>{_0x2e5407(_0x45cf6f);}),this['listenTo'](_0x46b28a,'remove',(_0x46252e,_0x2b466f,_0x915a72)=>{this['_annotationToNarrowView']['get'](_0x2b466f)['destroy'](),this['_annotationToNarrowView']['delete'](_0x2b466f),_0x357dc5['rearrange']({'removedAnnotation':_0x2b466f,'previousAnnotation':_0x46b28a['get'](_0x915a72-0x1),'nextAnnotation':_0x46b28a['get'](_0x915a72+0x1)}),_0x2b466f===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x46b28a,'focus',(_0x5cfd9d,_0x28a16c)=>{this['setActiveAnnotation'](_0x28a16c);}),this['listenTo'](_0x46b28a,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x122821,_0xc39240)=>{_0xc39240['keyCode']===_0x4ebb29['esc']&&_0x5d4018['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x5d4018['content']['first']),this['_hideBalloon'](),_0xc39240['stopPropagation'](),_0xc39240['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x3c14fa,_0x3b5c2e)=>{const _0x7e807c=_0x3b5c2e['target'];_0x5d4018['isVisible']&&_0x5d4018['element']['contains'](_0x7e807c)||_0x357dc5['view']['element']['contains'](_0x7e807c)||_0x3c14fa['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x358eff=>_0x358eff['contains'](_0x7e807c))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x195557=this['context']instanceof _0x9e63ec?this['context']['editors']:new _0x2186b6([this['context']]);for(const _0x1b905f of _0x195557)this['_integrateWithEditorAnnotations'](_0x1b905f);this['listenTo'](_0x195557,'add',(_0x392aa0,_0x7f6133)=>{this['listenTo'](_0x7f6133,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x7f6133);});}),this['listenTo'](_0x195557,'remove',(_0x134f75,_0xd6250)=>{_0xd6250['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0xd6250['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}setActiveAnnotation(_0x35ba35){if(_0x35ba35===this['activeAnnotation'])return;const _0x32fdca=this['context']['plugins']['get'](E_);_0x32fdca['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x35ba35,'disableAnimationOnActivatedAnnotation':!0x0}),_0x35ba35&&_0x32fdca['getSidebarItemView'](_0x35ba35)?this['_showBalloon'](_0x35ba35):this['_hideBalloon'](),this['activeAnnotation']=_0x35ba35;}detach(){if(!this['isAttached'])throw new _0x4242d4('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x25e9d7=this['context']['plugins']['get'](E_);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x56d086=>_0x56d086['destroy']()),this['_annotationToNarrowView']['clear'](),_0x25e9d7['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x9e63ec&&this['stopListening'](this['context']['editors']);for(const _0x2e60d4 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x2e60d4);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['_selectedAnnotations']=[],this['isAttached']=!0x1,this['annotations']=null;}destroy(){this['isAttached']&&this['detach'](),this['bodyCollection']['detachFromDom']();}_integrateWithEditorAnnotations(_0x4d3460){if(!_0x4d3460['plugins']['has']('EditorAnnotations'))return;const _0x361162=_0x4d3460['plugins']['get']('EditorAnnotations'),_0x316f17=this['context']['plugins']['get'](E_),_0x2f34a4=this['annotations'],_0x42ab2d=this['balloonPanelView'],_0x4c79e0=()=>{const _0x18503b=_0x361162['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x18503b),this['setActiveAnnotation'](_0x18503b[0x0]||null);};this['listenTo'](_0x361162,'refresh',_0x4c79e0),this['listenTo'](_0x361162,'blur',(_0x5e889e,{isAnnotationTracked:_0x4b883c})=>{this['activeAnnotation']&&_0x4b883c(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x361162,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x2f34a4,'blur',_0x3bce5c=>{_0x361162['hasDomSelection']()&&_0x3bce5c['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x35e93c,_0x477d0d)=>{const _0x4e9d76=_0x477d0d['target'];_0x42ab2d['isVisible']&&_0x42ab2d['element']['contains'](_0x4e9d76)||_0x316f17['view']['element']['contains'](_0x4e9d76)||this['activeAnnotation']&&_0x361162['hasDomSelection']()&&(_0x4c79e0(),_0x35e93c['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x361162);}_destroyEditorAnnotationsIntegration(_0x5bc3c2){_0x5bc3c2&&(this['stopListening'](_0x5bc3c2),this['_editorAnnotations']['remove'](_0x5bc3c2));}_setSelectedAnnotations(_0x53e00d){for(const _0x3cd371 of this['_selectedAnnotations'])_0x53e00d['includes'](_0x3cd371)||this['_manuallyClosedAnnotationViews']['delete'](_0x3cd371['view']);this['_selectedAnnotations']=_0x53e00d;}_refreshPositioning(){const _0x399f5a=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x399f5a['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x13e297){if(this['_manuallyClosedAnnotationViews']['has'](_0x13e297['view']))return;const _0x24ef01=this['balloonPanelView']['content']['first'];_0x24ef01!==_0x13e297['view']?(_0x24ef01&&this['_detachListeners'](_0x24ef01),this['_attachListeners'](_0x13e297['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x13e297['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}_updateBalloonPosition(){const _0x6c64c7=this['balloonPanelView']['content']['first'],_0x173d99=_0x6c64c7&&this['annotations']['getByView'](_0x6c64c7);if(!_0x173d99||!this['_annotationToNarrowView']['has'](_0x173d99))return;const _0x3770bd=this['_annotationToNarrowView']['get'](_0x173d99)['element'],_0x14adc9=(function(){const _0x31665e=_0x42b496['defaultPositions'];return[_0x31665e['southArrowNorthEast'],_0x31665e['northArrowSouthEast'],_0x31665e['southArrowNorth'],_0x31665e['northArrowSouth'],_0x31665e['southArrowNorthWest'],_0x31665e['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x3770bd,'positions':_0x14adc9});}['_hideBalloon'](){const _0x445a31=this['balloonPanelView'],_0x1822e5=_0x445a31['content']['first'];_0x1822e5&&(this['_detachListeners'](_0x1822e5),_0x445a31['unpin'](),_0x445a31['content']['clear']());}_attachListeners(_0x4484d9){this['listenTo'](_0x4484d9,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x4484d9,'Esc',(_0x17e8ce,_0x3724f7)=>{this['_manuallyClosedAnnotationViews']['add'](_0x4484d9),this['_hideBalloon'](),_0x3724f7();});}_detachListeners(_0x4fc170){this['stopListening'](_0x4fc170);}},x_=class extends _0x11fe30{isAttached;annotations;['_manuallyClosed'];['_balloon'];_addedAnnotations;_selectedAnnotations;['_forceRefresh'];_refreshVisibilityDebounced;static get requires(){return[o_,_0x2f4a98,w_];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44c214){super(_0x44c214),_0x44c214['editing']['view']['addObserver'](_0x43057c),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x44c214['plugins']['get'](_0x2f4a98),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=vr(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}init(){const _0x58ca64=this['editor']['plugins']['get'](w_);_0x58ca64['context']===this['editor']&&(_0x58ca64['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0xc14707,_0x53377a)=>{const _0x5eb6db=this['_balloon'];if(this['isAttached']&&_0x5eb6db['visibleView']){const _0x4085f5=this['annotations']['getByView'](_0x5eb6db['visibleView']);_0x4085f5&&this['_closeAnnotation'](_0x4085f5),_0x53377a();}}));}afterInit(){const _0x451d4f=this['editor']['plugins']['get'](w_);_0x451d4f['context']===this['editor']&&(_0x451d4f['hasActive']()||_0x451d4f['switchTo']('inline'));}setActiveAnnotation(_0x471cb2){_0x471cb2!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x471cb2&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x471cb2)&&this['_addAnnotationToBalloon'](_0x471cb2,!0x0),_0x471cb2['isActive']=!0x0),_0x471cb2||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x471cb2);}attach(_0x3411db){this['annotations']=_0x3411db;const _0x4e819c=this['editor']['plugins']['get'](w_),_0x4dfbe0=this['_balloon'];if(this['isAttached'])throw new _0x4242d4('inlineannotations-attach-already-attached',this);if(_0x4e819c['context']!==this['editor'])throw new _0x4242d4('inlineannotations-not-allowed-with-context',this);const _0x3ebe6b=this['editor']['plugins']['get'](o_);this['listenTo'](_0x3ebe6b,'refresh',()=>{const _0x53f369=_0x3ebe6b['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x2d7a14,_0x560488;!this['_forceRefresh']&&(_0x2d7a14=_0x53f369,_0x560488=this['_selectedAnnotations'],_0x2d7a14['length']===_0x560488['length']&&_0x2d7a14['every'](_0x3b937a=>_0x560488['includes'](_0x3b937a)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x53f369),this['setActiveAnnotation'](_0x53f369[0x0]||null));}),this['listenTo'](_0x3ebe6b,'blur',(_0x2f2b30,{isAnnotationTracked:_0x345280})=>{this['activeAnnotation']&&_0x345280(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x3ebe6b,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x1bd04f,_0x4af0a0,_0x3e62e2)=>{_0x3e62e2||this['setActiveAnnotation'](null);}),this['listenTo'](_0x3411db,'remove',(_0x28c1e4,_0x36d956)=>{this['_removeAnnotationFromBalloon'](_0x36d956),_0x36d956===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x4dfbe0,'change:visibleView',(_0x12a44c,_0x20c878,_0xc20b82,_0x4996fd)=>{_0x4996fd&&this['stopListening'](_0x4996fd);const _0x2385d7=_0x3411db['getByView'](_0xc20b82);_0xc20b82&&_0x2385d7&&(this['listenTo'](_0xc20b82,'change:height',()=>{_0x4dfbe0['updatePosition']();}),this['listenTo'](_0xc20b82,'Esc',()=>{this['_closeAnnotation'](_0x2385d7),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x2385d7&&this['setActiveAnnotation'](_0x2385d7));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x4dfbe0['visibleView']&&_0x3411db['getByView'](_0x4dfbe0['visibleView'])&&_0x4dfbe0['updatePosition']();}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',()=>{this['_forceRefresh']=!0x0,this['_manuallyClosed']['clear']();}),this['editor']['editing']['view']['document']['selection']['editableElement']&&this['editor']['editing']['view']['focus'](),this['isAttached']=!0x0;}detach(){if(!this['isAttached'])throw new _0x4242d4('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x402b7a of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x402b7a);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}destroy(){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}_setSelectedAnnotations(_0x470eff){for(const _0x3bab97 of this['_selectedAnnotations'])_0x470eff['includes'](_0x3bab97)||this['_manuallyClosed']['delete'](_0x3bab97);for(const _0x28136f of this['annotations'])_0x470eff['includes'](_0x28136f)||this['_removeAnnotationFromBalloon'](_0x28136f);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x3914a9 of _0x470eff)this['_addAnnotationToBalloon'](_0x3914a9);}this['_selectedAnnotations']=_0x470eff;}_addAnnotationToBalloon(_0x983eef,_0x51a6fa=!0x1){this['_manuallyClosed']['has'](_0x983eef)||(this['_addedAnnotations']['has'](_0x983eef)||this['_balloon']['hasView'](_0x983eef['view'])||(this['_addedAnnotations']['add'](_0x983eef),this['_balloon']['add']({'stackId':_0x983eef['view']['id'],'view':_0x983eef['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x983eef)}})),_0x51a6fa&&this['_balloon']['showStack'](_0x983eef['view']['id']));}_getBalloonTargetForAnnotation(_0x3ee6f4){const _0x4bfac5=_0x3ee6f4['target'],_0x1f2522=this['editor']['editing']['view'],_0x49fb53=_0x1f2522['document']['selection']['getFirstRange'](),_0x5eb576=_0x1f2522['domConverter']['viewRangeToDom'](_0x49fb53);if(_0x5eb576['collapse'](!0x0),_0x4bfac5){if(_0x4bfac5 instanceof _0x517140)return _0x4bfac5;let _0x1ad849=[];for(const _0x53ffd9 of _0x4bfac5)_0x1ad849['push'](..._0x517140['getDomElementRects'](_0x53ffd9));_0x1ad849=function(_0x5c9022){const _0x8bcff4=[];let _0x5e1889=_0x5c9022[0x0];for(let _0x394d6d=0x1;_0x394d6d<_0x5c9022['length'];_0x394d6d++)if(C_(_0x5e1889,_0x5c9022[_0x394d6d])){const _0xd8cb47=_0x5c9022[_0x394d6d]['width'];_0x5e1889['width']+=_0xd8cb47,_0x5e1889['right']+=_0xd8cb47;}else _0x8bcff4['push'](_0x5e1889),_0x5e1889=_0x5c9022[_0x394d6d];return _0x8bcff4['push'](_0x5e1889),_0x8bcff4;}(_0x1ad849);const _0x47603f=_0x5eb576['getBoundingClientRect']();return _0x1ad849['find'](_0x433a56=>_0x433a56['top']<=_0x47603f['top']&&_0x433a56['bottom']>=_0x47603f['bottom']&&_0x433a56['left']<=_0x47603f['left']&&_0x433a56['right']>=_0x47603f['right'])||_0x1ad849[0x0];}return _0x3ee6f4['targetRect']||_0x5eb576;}_removeAnnotationFromBalloon(_0x889943){this['_addedAnnotations']['has'](_0x889943)&&this['_balloon']['hasView'](_0x889943['view'])&&(this['_addedAnnotations']['delete'](_0x889943),this['_balloon']['remove'](_0x889943['view']));}_closeAnnotation(_0x26ad51){this['_manuallyClosed']['add'](_0x26ad51),this['_removeAnnotationFromBalloon'](_0x26ad51);}};function C_(_0x317fad,_0x175feb){return _0x317fad['top']===_0x175feb['top']&&_0x317fad['bottom']===_0x175feb['bottom']&&_0x317fad['right']===_0x175feb['left'];}var R_=class extends _0x2f6e1a{['focusTracker'];['focusCycler'];_annotationViews;constructor(_0x30d84b,_0x47390d){super(_0x30d84b),this['set']('isEmpty',!_0x47390d['length']),this['focusTracker']=new _0x1c95ab(),this['_annotationViews']=_0x47390d,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x273f88({'focusables':_0x47390d,'focusTracker':this['focusTracker']}),this['listenTo'](_0x47390d,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x47390d,'remove',(_0x117911,_0x1f5ff5)=>{_0x1f5ff5['isActive']&&this['focus'](),_0x47390d['length']||(this['isEmpty']=!0x0);});const _0x40f916=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':_v(_0x30d84b,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x47390d},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x40f916['if']('isEmpty','ck-hidden',_0xc5e9dd=>!_0xc5e9dd)]},'children':[{'text':_v(_0x30d84b,'EMPTY_COMMENTS_ARCHIVE')}]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}destroy(){super['destroy'](),this['focusTracker']['destroy']();}['focus'](){this['focusCycler']['first']?this['focusCycler']['focusFirst']():this['element']['focus']();}_setupKeyboardNavigation(){for(const _0x46225d of this['_annotationViews'])this['focusTracker']['add'](_0x46225d['element']);this['_annotationViews']['on']('change',(_0x316f82,{added:_0x5bc6fd,removed:_0x35a7fa})=>{for(const _0x24528f of _0x5bc6fd)this['focusTracker']['add'](_0x24528f['element']);for(const _0x2fc98c of _0x35a7fa)this['focusTracker']['remove'](_0x2fc98c['element']);});}},P_=class extends _0x4dd342{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[e_,zv];}constructor(_0xf05c30){super(_0xf05c30),this['archivedThreads']=new _0x2186b6();}init(){const _0x284b2c=this['context'],_0x2eed22=_0x284b2c['plugins']['get'](e_),_0x291a9f=_0x284b2c['plugins']['get'](zv);this['listenTo'](_0x2eed22,'addCommentThread',(_0x205982,{threadId:_0xf1bea})=>{const _0x5bc4a5=_0x2eed22['getCommentThread'](_0xf1bea);_0x5bc4a5['archivedAt']&&this['archivedThreads']['add'](_0x5bc4a5,this['_calculatePosition'](_0x5bc4a5['archivedAt'])),this['listenTo'](_0x5bc4a5,'change:archivedAt',(_0x2d4b77,_0x4a834f,_0x5c3bf4)=>{_0x5c3bf4?this['archivedThreads']['has'](_0x5bc4a5)||this['archivedThreads']['add'](_0x5bc4a5,this['_calculatePosition'](_0x5bc4a5['archivedAt'])):this['archivedThreads']['has'](_0x5bc4a5)&&this['archivedThreads']['remove'](_0x5bc4a5);});}),this['listenTo'](_0x2eed22,'removeCommentThread',(_0x59eaa0,{threadId:_0x378092})=>{const _0x3630a4=_0x2eed22['getCommentThread'](_0x378092);this['stopListening'](_0x3630a4),this['archivedThreads']['has'](_0x3630a4)&&this['archivedThreads']['remove'](_0x3630a4);},{'priority':'highest'}),this['listenTo'](_0x291a9f['collection'],'focus',(_0x2694e1,_0x101f23)=>{_0x101f23['isVisible']||(_0x101f23['isActive']=!0x0,_0x291a9f['activate'](_0x101f23));});}_calculatePosition(_0x154dbf){const _0x2e0f30=[...this['archivedThreads']]['findIndex'](_0x11e8bf=>_0x11e8bf['archivedAt']<_0x154dbf);return _0x2e0f30>-0x1?_0x2e0f30:this['archivedThreads']['length'];}},N_=class extends _0x11fe30{commentsArchiveView;annotationViews;['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[P_,_0x3e3ae5];}constructor(_0x3b93b){super(_0x3b93b),this['annotationViews']=new _0x18940b(),this['_pendingThreads']=[];}init(){const _0x38d3ff=this['editor'],_0x3dadd5=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x38d3ff['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x39ae99,!0x0)),_0x38d3ff['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x29c69c=this['_createCommentsArchiveButton'](_0x589436);return _0x29c69c['set']({'role':'menuitemcheckbox'}),_0x29c69c;});const _0x2e8c83=_0x38d3ff['plugins']['get'](P_),_0x6955bc=_0x38d3ff['plugins']['get']('Annotations'),_0x7531c4=_0x38d3ff['plugins']['get']('CommentsRepository');_0x2e8c83['archivedThreads']['forEach'](_0x691126=>{this['_handleNewThread'](_0x691126);}),this['listenTo'](_0x2e8c83['archivedThreads'],'add',(_0x2b317d,_0x4c01e0)=>{this['_handleNewThread'](_0x4c01e0);}),this['listenTo'](_0x6955bc['collection'],'add',(_0x1da171,_0x545e7d)=>{const _0x11b0f0=this['_pendingThreads']['find'](_0x5c87a6=>{const _0x394339=_0x7531c4['_threadToController']['get'](_0x5c87a6);return _0x394339&&_0x545e7d['innerView']===_0x394339['view'];});if(_0x11b0f0){const _0x588044=this['_calculatePosition'](_0x11b0f0['archivedAt']);this['_addAnnotationToArchive'](_0x545e7d,_0x588044),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x11b0f0),0x1);}}),this['listenTo'](_0x2e8c83['archivedThreads'],'remove',(_0x63ac92,_0x38b2b7)=>{const _0x450264=_0x38d3ff['config']['get']('collaboration.channelId');if(!_0x450264||_0x38b2b7['channelId']===_0x450264){if(this['_pendingThreads']['includes'](_0x38b2b7))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x38b2b7),0x1);else{const _0x2676d5=_0x7531c4['_threadToController']['get'](_0x38b2b7),_0x182e40=_0x6955bc['getByInnerView'](_0x2676d5['view']);this['annotationViews']['remove'](_0x182e40['view']),this['stopListening'](_0x182e40),this['stopListening'](_0x182e40['focusableElements']);}}}),this['listenTo'](_0x6955bc['collection'],'add',(_0x543899,_0x304af0)=>{this['listenTo'](_0x304af0,'escape',_0x3dadd5);}),this['listenTo'](_0x6955bc['collection'],'remove',(_0x1e3188,_0x311c73)=>{this['stopListening'](_0x311c73,'escape',_0x3dadd5);});}_addAnnotationToArchive(_0xf90727,_0x5d9c14){this['listenTo'](_0xf90727,'set:isVisible',_0x2c458b=>{_0x2c458b['return']=!0x1,_0x2c458b['stop']();}),this['annotationViews']['add'](_0xf90727['view'],_0x5d9c14);}['_handleNewThread'](_0x5e3b5e){const _0x5a9d79=this['editor']['plugins']['get']('CommentsRepository'),_0x2d4e87=this['editor']['plugins']['get']('Annotations'),_0x3e249b=this['editor']['config']['get']('collaboration.channelId');if(!_0x3e249b||_0x5e3b5e['channelId']===_0x3e249b){const _0x1f9779=_0x5a9d79['_threadToController']['get'](_0x5e3b5e);if(!_0x1f9779)return void this['_pendingThreads']['push'](_0x5e3b5e);const _0x529b5e=this['_calculatePosition'](_0x5e3b5e['archivedAt']),_0x4a3e85=_0x2d4e87['getByInnerView'](_0x1f9779['view']);_0x4a3e85['isVisible']&&_0x2d4e87['_visibleAnnotations']['remove'](_0x4a3e85),this['_addAnnotationToArchive'](_0x4a3e85,_0x529b5e);}}_calculatePosition(_0x505f76){const _0x141853=this['editor']['config']['get']('collaboration.channelId'),_0x2d8554=[...this['editor']['plugins']['get'](P_)['archivedThreads']]['filter'](_0x28838e=>_0x28838e['channelId']===_0x141853)['findIndex'](_0x59b9fa=>_0x59b9fa['archivedAt']<_0x505f76);return _0x2d8554<0x0||_0x2d8554>this['annotationViews']['length']?this['annotationViews']['length']:_0x2d8554-0x1;}_toggleDialog(){const _0x277a64=this['editor'],_0x12001a=_0x277a64['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new R_(_0x277a64['locale'],this['annotationViews'])),'commentsArchive'===_0x12001a['id']?_0x12001a['hide']():_0x12001a['show']({'id':'commentsArchive','title':_v(_0x277a64['locale'],'COMMENTS_ARCHIVE'),'icon':_0x3780eb,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x3846ff['EDITOR_TOP_SIDE']});}_createCommentsArchiveButton(_0x2a8ead,_0x54b019=!0x1){const _0x15467b=this['editor']['locale'],_0x114ac9=this['editor']['plugins']['get']('Dialog'),_0x349218=new _0x2a8ead(_0x15467b);return _0x349218['bind']('isEnabled')['to'](this,'isEnabled'),_0x349218['bind']('isOn')['to'](_0x114ac9,'id',_0x25696a=>'commentsArchive'===_0x25696a),_0x349218['set']({'label':_v(_0x15467b,'COMMENTS_ARCHIVE'),'icon':_0x3780eb,'isToggleable':!0x0}),_0x54b019&&(_0x349218['tooltip']=!0x0),this['listenTo'](_0x349218,'execute',()=>this['_toggleDialog']()),_0x349218;}_hideDialogOnAnnotationEscape=_0x1ba08a=>{const _0x4536d9=_0x1ba08a['source'];if(!this['annotationViews']['has'](_0x4536d9['view']))return;const _0x2c974b=this['editor']['plugins']['get']('Dialog');_0x2c974b['isOpen']&&'commentsArchive'===_0x2c974b['id']&&(_0x2c974b['hide'](),_0x1ba08a['stop']());};},M_=class extends _0x11fe30{static get requires(){return[e_,d_,g_,P_,N_,O_,S_,k_,x_];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};function L_(_0x307232){let _0x14fa1f='';for(const _0xa0ad75 of _0x307232['getChildren']())_0xa0ad75 instanceof _0x3c0cd2&&(_0x14fa1f+=_0xa0ad75['data']);return _0x14fa1f;}var $_=class extends _0x11fe30{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];init(){const _0xe9a855=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0xdb0b29=[];_0xe9a855['model']['document']['on']('change',vr(()=>{const _0xd387fa=_0xdb0b29;_0xdb0b29=this['_getOutlineDefinitions']();const _0x4b26c4=_0x43aafd(_0x5bce1f(_0xd387fa,_0xdb0b29,(_0xfc56aa,_0x463848)=>_0xfc56aa['level']===_0x463848['level']&&_0xfc56aa['text']===_0x463848['text']&&_0xfc56aa['modelElement']===_0x463848['modelElement']),_0xdb0b29),_0x20e615=this['_getActiveHeading'](),_0x4c6eb2=_0xdb0b29['findIndex'](_0x565f8f=>_0x565f8f['modelElement']===_0x20e615);_0x4b26c4['length']&&this['fire']('change',{'outlineDefinitions':_0xdb0b29,'activeItemIndex':_0x4c6eb2,'outlineChanges':_0x4b26c4}),this['fire']('activeItemIndex',{'index':_0x4c6eb2});},0xfa,{'leading':!0x0,'trailing':!0x0}));}afterInit(){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}_getOutlineDefinitions(){const _0x4af5ab=this['editor'],_0x38b29d=[],_0x3d61e9=this['_headingNames'];for(const _0x2648ec of _0x4af5ab['model']['document']['getRootNames']())_0x4d63d5(_0x4af5ab['model']['document']['getRoot'](_0x2648ec));function _0x4d63d5(_0x5bc310){for(const _0x53c526 of _0x5bc310['getChildren']())_0x53c526['is']('element')&&(_0x3d61e9['includes'](_0x53c526['name'])&&_0x38b29d['push']({'level':_0x3d61e9['indexOf'](_0x53c526['name'])+0x1,'text':L_(_0x53c526),'modelElement':_0x53c526}),_0x4d63d5(_0x53c526));}return _0x38b29d;}_getActiveHeading(){const _0x2f0a71=new _0x1c17f6({'direction':'backward','startPosition':this['editor']['model']['document']['selection']['getFirstPosition']()});for(const _0xe7a7b8 of _0x2f0a71)if(_0xe7a7b8['item']['is']('element')&&this['_headingNames']['includes'](_0xe7a7b8['item']['name']))return _0xe7a7b8['item'];}_getHeadingNames(){const _0x41310e=this['editor']['config']['get']('documentOutline.headings');return _0x41310e||function(_0x3e44b3){const _0x596373=_0x3e44b3['config']['get']('heading.options');return _0x596373?_0x596373['reduce']((_0x1e4fc0,_0x54e15a)=>('paragraph'!==_0x54e15a['model']&&_0x1e4fc0['push'](_0x54e15a['model']),_0x1e4fc0),[]):_0x3e44b3['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}(this['editor']);}_deriveHeadingElementsFromConversion(){const _0xb1b54e=this['editor'],_0x300689=['h1','h2','h3','h4','h5','h6'],_0x3ce8c8=[];for(const _0x2fd33d of _0x300689){const _0x4dd010=_0xb1b54e['editing']['view']['domConverter']['domToView'](document['createElement'](_0x2fd33d)),_0x207dcf=_0xb1b54e['data']['toModel'](_0x4dd010)['getChild'](0x0);_0x207dcf?.['is']('element')&&_0x3ce8c8['push'](_0x207dcf['name']);}this['_headingNames']=_0x3ce8c8;}};function D_(_0x596884,_0x5997d9){const t=_0x596884['t'];switch(_0x5997d9){case'Empty\x20heading':return t('Empty\x20heading');case'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.':return t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.');case'No\x20headings\x20were\x20found\x20in\x20the\x20document.':return t('No\x20headings\x20were\x20found\x20in\x20the\x20document.');case'Table\x20of\x20contents':return t('Table\x20of\x20contents');default:return _0x5997d9;}}var Q_=class extends _0x2f6e1a{constructor(_0x3de550,_0x431def=!0x1){super(_0x3de550);const _0x80b2ea=this['bindTemplate'],_0x5be536=_0x431def?'['+D_(_0x3de550,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x402ed2=>!_0x402ed2),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x80b2ea['to']('level',_0x384b00=>'ck-document-outline__item_level-'+_0x384b00),_0x80b2ea['if']('isActive','ck-document-outline__item_active'),_0x80b2ea['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x80b2ea['to']('text')},'children':[{'text':_0x80b2ea['to']('text',_0x544897=>_0x544897||_0x5be536)}],'on':{'click':_0x80b2ea['to']('click')}});}},j_=class extends _0x2f6e1a{items;documentOutlineContainer;showEmptyHeadingText;constructor(_0x27fd92,_0x5f4f48=!0x1,_0x56dc63){super(_0x27fd92),this['showEmptyHeadingText']=_0x5f4f48,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x56dc63,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x106cdd,_0x4dbfbb,_0x1d1a4a,_0x287a0c)=>{this['_setActiveItem'](_0x287a0c,_0x1d1a4a);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x27fd92['contentLanguageDirection'],'data-document-outline-empty-placeholder':D_(_0x27fd92,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x2faaad){_0x2faaad['forEach'](_0x20566b=>{'insert'==_0x20566b['type']?this['_insertItem'](_0x20566b['index'],..._0x20566b['values']):'delete'==_0x20566b['type']&&this['_deleteItem'](_0x20566b['index'],_0x20566b['howMany']);});}_setActiveItem(_0x52c261,_0x4372e1){if(-0x1!==_0x52c261){const _0x327ee7=this['items']['get'](_0x52c261);_0x327ee7&&(_0x327ee7['isActive']=!0x1);}-0x1!==_0x4372e1&&(this['items']['get'](_0x4372e1)['isActive']=!0x0,this['_scrollToItem'](_0x4372e1));}_insertItem(_0x36d07e,..._0x4b238f){const _0x13a1a5=_0x4b238f['map']((_0x4f8fe0,_0x12e2bb)=>{const _0x25aed6=new Q_(this['locale'],this['showEmptyHeadingText']);return _0x25aed6['text']=_0x4f8fe0['text'],_0x25aed6['level']=_0x4f8fe0['level'],_0x36d07e+_0x12e2bb===this['activeItemIndex']&&(_0x25aed6['isActive']=!0x0),_0x25aed6;});this['items']['addMany'](_0x13a1a5,_0x36d07e);}_deleteItem(_0x121727,_0x328b53){do{this['items']['remove'](_0x121727);}while(--_0x328b53);}_handleItemClick(_0x9a2925){const _0x599ee7=this['items']['getIndex'](_0x9a2925['source']);this['fire']('itemSelected',_0x599ee7);}_scrollToItem(_0x3b4fd4){ti(this['items']['get'](_0x3b4fd4)['element'],0x14,this['documentOutlineContainer']);}destroy(){super['destroy'](),this['element']['remove']();}},U_=class extends _0x11fe30{['view'];_currentOutlineDefinitions;_updateActiveDefinitionFromViewportThrottled;static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xaac017){super(_0xaac017),this['view']=new j_(_0xaac017['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=_r(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}init(){const _0x35061d=this['editor'],_0x203d45=_0x35061d['plugins']['get']('DocumentOutlineUtils');let _0x560c4d=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x35061d['config']['get']('documentOutline.container'))throw new _0x4242d4('document-outline-container-not-provided',{'editor':_0x35061d});_0x35061d['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x203d45['on']('change',this['_handleOutlineChange']['bind'](this)),_0x203d45['on']('activeItemIndex',(_0xe86f78,{index:_0x11fee8})=>this['_setActiveViewItem'](_0x11fee8)),this['view']['on']('itemSelected',(_0x14c089,_0x5e134f)=>{_0x560c4d=!0x0,this['_handleItemSelected'](_0x5e134f);}),this['view']['listenTo'](_0x250afe['document'],'scroll',()=>{_0x560c4d?_0x560c4d=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x250afe['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}afterInit(){!async function(_0x217de1){const _0x44b1d0='aWxlPG0A3CDdHBsZEqwULojOrgMXVTRvu1bI2487ptzJKQeihfNkYS9n6y5mcF',_0x3252de=0x791d0,_0x3e8a41=window['Date']['now'](),_0x221d13=_0x217de1['editor'],_0x4893f8=new window['Promise'](_0x27d99c=>{_0x221d13['once']('ready',_0x27d99c);}),_0x7beb00={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x2f3253=_0x221d13['config']['get']('licenseKey');async function _0x762239(){let _0x312de9,_0x1e3ced=null,_0x414769=null;try{return'GPL'==_0x2f3253?'NotAllowed':(_0x312de9=_0x225116(),_0x312de9?(_0x312de9['usageEndpoint']&&(_0x414769=_0x48ae55(_0x312de9['usageEndpoint'],_0x312de9['jti'])),await _0x34da1b()?_0x2c3048()?_0x49253b()?'Expired':_0x5d6bbe()?('evaluation'==_0x312de9['licenseType']&&(_0x1e3ced=_0x4e9af5('EvaluationLimit')),await _0x36ddd4()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x49253b(){const _0x5e654c=['evaluation','trial']['includes'](_0x312de9['licenseType'])?_0x3e8a41/0x3e8:0xe10*_0x3252de;return _0x312de9['exp']<_0x5e654c;}function _0x2c3048(){const _0x2d0546=_0x312de9['features'];return!!_0x2d0546&&(!!_0x2d0546['includes']('*')||(!!_0x2d0546['includes']('DO')||(!!_0x2d0546['includes']('PP')||!(!_0x2d0546['includes']('TRILIUM')||!_0x16dc55()))));}function _0x5d6bbe(){const _0x49b7bb=_0x312de9['licensedHosts'];if(!_0x49b7bb||0x0==_0x49b7bb['length'])return!0x0;const {hostname:_0x3759b6}=new URL(window['location']['href']);if(_0x49b7bb['includes'](_0x3759b6))return!0x0;const _0x34c518=_0x3759b6['split']('.');return _0x49b7bb['filter'](_0x29ca8a=>_0x29ca8a['includes']('*'))['map'](_0x55d9d=>_0x55d9d['split']('.'))['filter'](_0x57d8d0=>_0x57d8d0['length']<=_0x34c518['length'])['map'](_0x17798d=>Array(_0x34c518['length']-_0x17798d['length'])['fill']('*'===_0x17798d[0x0]?'*':'')['concat'](_0x17798d))['some'](_0x201b8d=>_0x34c518['every']((_0x202746,_0x5c5648)=>_0x201b8d[_0x5c5648]===_0x202746||'*'===_0x201b8d[_0x5c5648]));}function _0x36ddd4(){return _0x1e3ced&&_0x414769?new window['Promise']((_0x340146,_0x56468f)=>{_0x1e3ced['then'](_0x340146,_0x56468f),_0x414769['then'](_0x17c262=>{'Valid'!=_0x17c262&&_0x340146(_0x17c262);},_0x56468f);}):_0x1e3ced||_0x414769||'Valid';}}function _0x48ae55(_0x556295,_0x3edc52){return new window['Promise'](_0x29e6a6=>{if(_0x420e67())return _0x29e6a6('Valid');_0x26a134(),_0x221d13['decorate']('_sendUsageRequest');let _0x188080=!0x1;const _0x23f958=_0xea66bb();function _0x5904bf(_0x2bf0b2){return!!_0x2bf0b2&&('object'==typeof _0x2bf0b2||'function'==typeof _0x2bf0b2)&&'function'==typeof _0x2bf0b2['then']&&'function'==typeof _0x2bf0b2['catch'];}function _0x1df21e(_0x3621ed){_0x453844(_0x3621ed)['then'](_0x4bc2e6=>_0x4bc2e6&&'ok'==_0x4bc2e6['status']?_0x13545a(_0x151c5a(_0x23f958+_0x3edc52))!=_0x4bc2e6['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x2faeb0=>(_0x4f3cb5(),_0x2faeb0),()=>{const _0x8532de=_0x9233b6();return null==_0x8532de?(_0x4f3cb5(),'Valid'):_0x3e8a41-_0x8532de>0x240c8400?'UsageLimit':'Valid';})['then'](_0x29e6a6)['catch'](()=>{_0x29e6a6('UsageLimit');});const _0x1673ce=0x36ee80;function _0x4f3cb5(){const _0x3f16ff='llct-'+_0x13545a(_0x151c5a(_0x556295)),_0x445af9=_0xc811ea(_0x13545a(window['Math']['ceil'](_0x3e8a41/_0x1673ce)));window['localStorage']['setItem'](_0x3f16ff,_0x445af9);}function _0x9233b6(){const _0x33f64a='llct-'+_0x13545a(_0x151c5a(_0x556295)),_0x46f937=window['localStorage']['getItem'](_0x33f64a);return _0x46f937?window['parseInt'](_0xc811ea(_0x46f937),0x10)*_0x1673ce:null;}function _0x453844(_0x4b9759){return new window['Promise']((_0x37b1dd,_0x38117e)=>{_0x4b9759['then'](_0x37b1dd,_0x38117e),window['setTimeout'](_0x38117e,0x1d4c0);});}}_0x221d13['on']('_sendUsageRequest',(_0x1d6c6c,_0x13ead2)=>{if(_0x13ead2[0x0]!=_0x556295)return _0x29e6a6('UsageLimit');_0x13ead2[0x1]={..._0x13ead2[0x1],'requestId':_0x23f958};},{'priority':'high'}),_0x221d13['on']('_sendUsageRequest',_0x554ae9=>{_0x5904bf(_0x554ae9['return'])&&(_0x188080=!0x0,_0x1df21e(_0x554ae9['return']));},{'priority':'low'}),_0x4893f8['then'](()=>{_0x188080||_0x29e6a6('UsageLimit');});});function _0x420e67(){return'auto'==_0x221d13['editing']['view']['_overlayModeHint'];}function _0x26a134(){_0x221d13['editing']['view']['_overlayModeHint']='auto';}}function _0x4e9af5(_0x1efcd4){const _0xf6ea1d=[new window['Promise'](_0x18d512=>setTimeout(_0x18d512,0x93ecc)),_0x4893f8['then'](()=>new window['Promise'](_0x45af61=>{let _0x1a4d66=0x0;_0x221d13['model']['on']('applyOperation',(_0x27cef7,_0x3865ce)=>{_0x3865ce[0x0]['isDocumentOperation']&&_0x1a4d66++,0x5e8==_0x1a4d66&&(_0x45af61(),_0x27cef7['off']());});}))];return window['Promise']['race'](_0xf6ea1d)['then'](()=>_0x1efcd4);}async function _0x426934(){await _0x4893f8,_0x221d13['model']['change']=_0x4bec40,_0x221d13['model']['enqueueChange']=_0x4bec40,_0x221d13['enableReadOnlyMode']('model');}function _0x16dc55(){return window['glob']&&window['glob']['triliumVersion'];}function _0x4adad6(_0x25fa71){const _0x4304d7=_0x194e9a();_0x221d13[_0x4304d7]='documentOutlineLicenseKey'+_0x25fa71,'Valid'!=_0x25fa71&&_0x426934();}function _0x194e9a(){const _0x28947d=window['String'](window['performance']['now']())['replace']('.','');let _0x40eec0='a';for(let _0x114cad=0x0;_0x114cad<_0x28947d['length'];_0x114cad+=0x2){let _0x1bb212=window['parseInt'](_0x28947d['substring'](_0x114cad,_0x114cad+0x2));_0x1bb212>=0x3e&&(_0x1bb212-=0x3e),_0x40eec0+=_0x44b1d0[_0x1bb212];}return _0x40eec0;}function _0x225116(){const _0x1830ff=_0x2f3253['split']('.');if(0x3!=_0x1830ff['length'])return null;return _0x3016bd(_0x1830ff[0x1]);function _0x3016bd(_0x5e3507){const _0x23254f=_0x381f76(_0x5e3507);return _0x23254f&&_0x3d2356()?_0x23254f:null;function _0x3d2356(){const _0x5ad612=_0x23254f['jti'],_0x3c1baa=window['parseInt'](_0x5ad612['substring'](_0x5ad612['length']-0x8),0x10),_0x1531df={..._0x23254f,'jti':_0x5ad612['substring'](0x0,_0x5ad612['length']-0x8)};return delete _0x1531df['vc'],_0x151c5a(_0x1531df)==_0x3c1baa;}}}async function _0x34da1b(){let _0x427378=!0x0;try{const [_0xc8e6a,_0x2b4d1c,_0x321e3f]=_0x2f3253['split']('.');return _0x9fd0d0(_0xc8e6a),await _0x143012(_0xc8e6a,_0x2b4d1c,_0x321e3f),_0x427378;}catch{return!0x1;}function _0x9fd0d0(_0x11ee5f){const _0x37af96=_0x381f76(_0x11ee5f);_0x37af96&&'ES256'==_0x37af96['alg']||(_0x427378=!0x1);}async function _0x143012(_0x12ec8a,_0x272338,_0x413600){const _0x491612=window['Uint8Array']['from'](_0x5a5258(_0x413600),_0x10424e=>_0x10424e['charCodeAt'](0x0)),_0x3b7c07=new window['TextEncoder']()['encode'](_0x12ec8a+'.'+_0x272338),_0x49be9c=window['crypto']['subtle'];if(!_0x49be9c)return;const _0x29a01c=await _0x49be9c['importKey']('jwk',_0x7beb00,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x49be9c['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x29a01c,_0x491612,_0x3b7c07)||(_0x427378=!0x1);}}function _0x381f76(_0x56d82f){return _0x56d82f['startsWith']('ey')?JSON['parse'](_0x5a5258(_0x56d82f)):null;}function _0x5a5258(_0x359c44){return window['atob'](_0x359c44['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x151c5a(_0x57ff37){let _0x3705af=0x1505;function _0x302428(_0x463c8f){for(let _0x580a47=0x0;_0x580a47<_0x463c8f['length'];_0x580a47++){const _0x364243=_0x463c8f['charCodeAt'](_0x580a47);_0x3705af=(_0x3705af<<0x5)+_0x3705af+_0x364243,_0x3705af&=_0x3705af;}}function _0x25466c(_0x43499e){Array['isArray'](_0x43499e)?_0x43499e['forEach'](_0x25466c):_0x43499e&&'object'==typeof _0x43499e?Object['entries'](_0x43499e)['sort']()['forEach'](([_0x29af7c,_0x57fd41])=>{_0x302428(_0x29af7c),_0x25466c(_0x57fd41);}):_0x302428(window['String'](_0x43499e));}return _0x25466c(_0x57ff37),_0x3705af>>>0x0;}function _0x13545a(_0x181da0){return _0x181da0['toString'](0x10)['padStart'](0x8,'0');}function _0xc811ea(_0x4a35b2){return _0x4a35b2['split']('')['reverse']()['join']('');}function _0x4bec40(){}_0x4adad6(await _0x762239());}(this);}destroy(){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}_handleOutlineChange(_0x2ed47c,{outlineDefinitions:_0x369384,outlineChanges:_0x1b4bcb}){this['_currentOutlineDefinitions']=_0x369384,this['view']['sync'](_0x1b4bcb);}_setActiveViewItem(_0x3874eb){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x3874eb]&&(this['view']['activeItemIndex']=_0x3874eb);}_handleItemSelected(_0x4f30e3){const _0x4a4436=this['_currentOutlineDefinitions'][_0x4f30e3]['modelElement'];this['editor']['model']['change'](_0x408c81=>{_0x408c81['setSelection'](_0x4a4436,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x4f30e3);}_updateActiveDefinitionOnViewportChange(){const _0x26dc97=this['editor'];let _0xf2a262;for(const _0x541771 of _0x26dc97['model']['document']['getRootNames']()){const _0x385388=_0x26dc97['editing']['view']['getDomRoot'](_0x541771),_0x282391=_0x385388&&new _0x517140(_0x385388)['getVisible']();if(_0x282391){const _0x1c7c5a=new _0x517140(_0x250afe['window'])['getIntersection'](_0x282391);_0x1c7c5a&&(_0xf2a262=_0x1c7c5a['top']+0.25*_0x1c7c5a['height']);}}if(void 0x0===_0xf2a262)return;const _0x531f6c=V_(_0x26dc97['editing'],this['_currentOutlineDefinitions'],_0xf2a262);_0x531f6c?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x531f6c)):this['_setActiveViewItem'](-0x1);}};function V_(_0x4173f2,_0x509193,_0x8dc8f3,_0x42842e=0x0,_0x25f547=_0x509193['length']-0x1){const _0x2d88d3=Math['floor'](_0x42842e+(_0x25f547-_0x42842e)/0x2);if(_0x25f547>=_0x42842e){const _0x144a78=_0x509193[_0x2d88d3],_0x25b094=_0x4173f2['mapper']['toViewElement'](_0x144a78['modelElement']);return _0x25b094?new _0x517140(_0x4173f2['view']['domConverter']['mapViewToDom'](_0x25b094))['bottom']>_0x8dc8f3?V_(_0x4173f2,_0x509193,_0x8dc8f3,_0x42842e,_0x2d88d3-0x1):V_(_0x4173f2,_0x509193,_0x8dc8f3,_0x2d88d3+0x1,_0x25f547):null;}return _0x2d88d3<0x0?null:_0x509193[_0x2d88d3];}var B_=class extends _0x11fe30{['licenseKey'];_licenseKeyCheckInterval;static get requires(){return[$_,U_];}static get['pluginName'](){return'DocumentOutline';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x547fa5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xf5dca;for(const _0x629146 in _0x547fa5){const _0x34803c=_0x629146,_0x560a51=_0x547fa5[_0x34803c];if('documentOutlineLicenseKeyValid'==_0x560a51||'documentOutlineLicenseKeyInvalid'==_0x560a51||'documentOutlineLicenseKeyExpired'==_0x560a51||'documentOutlineLicenseKeyDomainLimit'==_0x560a51||'documentOutlineLicenseKeyNotAllowed'==_0x560a51||'documentOutlineLicenseKeyEvaluationLimit'==_0x560a51||'documentOutlineLicenseKeyUsageLimit'==_0x560a51){delete _0x547fa5[_0x34803c],_0xf5dca=_0x560a51,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0xf5dca&&_0x547fa5['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0xf5dca&&_0x547fa5['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0xf5dca&&_0x547fa5['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0xf5dca&&_0x547fa5['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0xf5dca&&_0x547fa5['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0xf5dca&&_0x547fa5['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},H_=class extends _0x44d8e7{execute(){this['editor']['model']['change'](_0x3d8bd4=>{this['editor']['model']['insertObject'](_0x3d8bd4['createElement']('tableOfContents'));});}['refresh'](){const _0x4d2c06=this['editor']['model'],_0x414090=_0x4d2c06['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x414090&&_0x4d2c06['schema']['findAllowedParent'](_0x414090,'tableOfContents'));}},F_=class extends _0x11fe30{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x157820=this['editor'];if(_0x157820['config']['get']('headingId.modelAttributeName'))return;const {viewNames:_0x555b10,modelNames:_0x38e1ad}=function(_0x22695b){const _0x6a546a=new Set(['h1','h2','h3','h4','h5','h6']),_0x32499d=new Set(['heading1','heading2','heading3','heading4','heading5','heading6','htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']);if(!_0x22695b)return{'viewNames':_0x6a546a,'modelNames':_0x32499d};for(const _0x5b9069 of _0x22695b){if('paragraph'===_0x5b9069['model'])continue;const _0x327bca='string'==typeof _0x5b9069['view']?_0x5b9069['view']:_0x5b9069['view']['name'];_0x6a546a['add'](_0x327bca),_0x32499d['add'](_0x5b9069['model']);}return{'viewNames':_0x6a546a,'modelNames':_0x32499d};}(this['editor']['config']['get']('heading.options'));for(const _0x367cef of _0x555b10)this['_customUpcastHeadingsConversion'](_0x367cef);for(const _0x3da113 of _0x38e1ad)this['_customDataDowncastHeadingsConversion'](_0x3da113),_0x157820['model']['schema']['isRegistered'](_0x3da113)&&_0x157820['model']['schema']['extend'](_0x3da113,{'allowAttributes':'headingId'});this['_registerHeadingIdAttributePostfixer'](_0x38e1ad);}_customUpcastHeadingsConversion(_0x27d480){this['editor']['conversion']['for']('upcast')['add'](_0x253875=>_0x253875['on']('element:'+_0x27d480,(_0x355c9b,_0x267d46,_0x8a9866)=>{const {consumable:_0x592972,writer:_0x186397}=_0x8a9866,_0xe1ddf1=_0x267d46['viewItem']['getAttribute']('id'),_0x2c0031=_0x267d46['modelRange']?.['getContainedElement']();if(_0x2c0031)return _0xe1ddf1&&_0xe1ddf1['length']||_0x2c0031['hasAttribute']('headingId')?void(_0x592972['consume'](_0x267d46['viewItem'],{'attributes':['id']})&&_0x186397['setAttribute']('headingId',_0xe1ddf1,_0x2c0031)):(_0x592972['consume'](_0x267d46['viewItem'],{'attributes':['id']}),void _0x186397['setAttribute']('headingId',_0xea66bb(),_0x2c0031));},{'priority':_0x1a573c['get']('low')+0.5}));}_customDataDowncastHeadingsConversion(_0x1201c9){this['editor']['conversion']['for']('downcast')['add'](_0x2f6067=>_0x2f6067['on']('attribute:headingId:'+_0x1201c9,(_0x4c5551,_0x34a565,_0x590125)=>{if(!_0x590125['consumable']['consume'](_0x34a565['item'],_0x4c5551['name']))return;const _0x322eb1=_0x34a565['item']['getAttribute']('headingId'),_0x642921=_0x590125['mapper']['toViewElement'](_0x34a565['item']);_0x590125['writer']['setAttribute']('id',_0x322eb1,_0x642921);}));}_registerHeadingIdAttributePostfixer(_0x39f6e1){const _0x2ba0a4=this['editor'],_0x253d50=new Set(),_0xc52423=new Set();function _0x168754(_0xff538f,_0x3b693a){const _0x481bf1=_0xea66bb();return _0xc52423['add'](_0x481bf1),_0xff538f['setAttribute']('headingId',_0x481bf1,_0x3b693a),_0x481bf1;}function _0x3939ca(_0x1ffb76,_0x26f948){_0x1ffb76['removeAttribute']('headingId',_0x26f948);}_0x2ba0a4['model']['document']['registerPostFixer'](_0x5cbe9e=>{const _0x548078=_0x2ba0a4['model']['document']['differ']['getChanges']();let _0xfadad4=!0x1;for(const _0x285a0c of _0x548078)if('insert'==_0x285a0c['type']&&_0x285a0c['name']){if(_0x39f6e1['has'](_0x285a0c['name'])){const _0x493bdb=_0x285a0c['attributes']['get']('headingId');'string'==typeof _0x493bdb?_0x253d50['has'](_0x493bdb)?(_0x168754(_0x5cbe9e,_0x285a0c['position']['nodeAfter']),_0xfadad4=!0x0):_0xc52423['add'](_0x493bdb):(_0x168754(_0x5cbe9e,_0x285a0c['position']['nodeAfter']),_0xfadad4=!0x0);}else'string'==typeof _0x285a0c['attributes']['get']('headingId')&&(_0x3939ca(_0x5cbe9e,_0x285a0c['position']['nodeAfter']),_0xfadad4=!0x0);}else{if('remove'==_0x285a0c['type']){const _0x10058f=_0x285a0c['attributes']['get']('headingId');'string'==typeof _0x10058f&&_0x253d50['delete'](_0x10058f);}}return _0xfadad4;}),_0x2ba0a4['model']['document']['on']('change',()=>{_0xc52423['forEach'](_0x5c4b97=>_0x253d50['add'](_0x5c4b97)),_0xc52423['clear']();});}},Z_=class extends _0x11fe30{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x3671ff,$_,F_];}_currentOutlineDefinitions;_tableOfContentsElements;_headingIdModelAttributeName;constructor(_0xa17450){super(_0xa17450),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}init(){const _0x146571=this['editor'],_0x2d081d=_0x146571['editing']['view']['document'];_0x146571['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x146571['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x2d081d,'click',(_0x50ed34,_0x46ac4d)=>{if(!_0x46ac4d['target'])return;const _0x5c241e=_0x46ac4d['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x5c241e)&&(_0x46ac4d['domEvent']['preventDefault'](),_0x50ed34['stop'](),this['_handleScrollToHeading'](_0x5c241e));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x146571['commands']['add']('insertTableOfContents',new H_(_0x146571));const _0x11b6b0=_0x146571['config']['get']('tableOfContents.headings');_0x11b6b0&&_0x11b6b0['length']?this['listenTo'](_0x146571['model']['document'],'change:data',()=>{this['_currentOutlineDefinitions']=this['_getOutlineDefinitions'](_0x11b6b0),this['_updateTableOfContentsElements']();}):_0x146571['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x52bc75,_0xe8074)=>{this['_currentOutlineDefinitions']=_0xe8074['outlineDefinitions'],this['_updateTableOfContentsElements']();}),this['listenTo'](_0x146571['model']['document'],'change',()=>{this['_trackNewToCElements']();});}afterInit(){!async function(_0x43d149){const _0x828eb6='mr4z2yakM3x0phtD7jBw1T6qRfeUuZcOLNKVgQSPE9iGIHoXlJW8YsCb5AndFv',_0x5ac996=0x791d0,_0x653e50=window['Date']['now'](),_0x38ef5d=_0x43d149['editor'],_0x2163af=new window['Promise'](_0x4644a0=>{_0x38ef5d['once']('ready',_0x4644a0);}),_0x39fa11={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x120e7f=_0x38ef5d['config']['get']('licenseKey');async function _0x3d9936(){let _0x2b2e46,_0x354732=null,_0x243620=null;try{return'GPL'==_0x120e7f?'NotAllowed':(_0x2b2e46=_0x2a66d2(),_0x2b2e46?(_0x2b2e46['usageEndpoint']&&(_0x243620=_0x6cb440(_0x2b2e46['usageEndpoint'],_0x2b2e46['jti'])),await _0x225e39()?_0x2568df()?_0x4321ba()?'Expired':_0x9e6b5e()?('evaluation'==_0x2b2e46['licenseType']&&(_0x354732=_0x3c460e('EvaluationLimit')),await _0x5ad129()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4321ba(){const _0x1aaa18=['evaluation','trial']['includes'](_0x2b2e46['licenseType'])?_0x653e50/0x3e8:0xe10*_0x5ac996;return _0x2b2e46['exp']<_0x1aaa18;}function _0x2568df(){const _0x561c1d=_0x2b2e46['features'];return!!_0x561c1d&&(!!_0x561c1d['includes']('*')||(!!_0x561c1d['includes']('TOC')||(!!_0x561c1d['includes']('PP')||!(!_0x561c1d['includes']('TRILIUM')||!_0x4ed3d9()))));}function _0x9e6b5e(){const _0x3f7713=_0x2b2e46['licensedHosts'];if(!_0x3f7713||0x0==_0x3f7713['length'])return!0x0;const {hostname:_0x18543a}=new URL(window['location']['href']);if(_0x3f7713['includes'](_0x18543a))return!0x0;const _0xf3a2d7=_0x18543a['split']('.');return _0x3f7713['filter'](_0x5dfe39=>_0x5dfe39['includes']('*'))['map'](_0x3cc1a8=>_0x3cc1a8['split']('.'))['filter'](_0x6d0e1c=>_0x6d0e1c['length']<=_0xf3a2d7['length'])['map'](_0x2e0446=>Array(_0xf3a2d7['length']-_0x2e0446['length'])['fill']('*'===_0x2e0446[0x0]?'*':'')['concat'](_0x2e0446))['some'](_0x68c1e5=>_0xf3a2d7['every']((_0x46e6c4,_0x5522ef)=>_0x68c1e5[_0x5522ef]===_0x46e6c4||'*'===_0x68c1e5[_0x5522ef]));}function _0x5ad129(){return _0x354732&&_0x243620?new window['Promise']((_0x48b0a5,_0x5b9c5c)=>{_0x354732['then'](_0x48b0a5,_0x5b9c5c),_0x243620['then'](_0xfbcab7=>{'Valid'!=_0xfbcab7&&_0x48b0a5(_0xfbcab7);},_0x5b9c5c);}):_0x354732||_0x243620||'Valid';}}function _0x6cb440(_0x24689a,_0x293fb6){return new window['Promise'](_0x24a185=>{if(_0x33916a())return _0x24a185('Valid');_0x56e1e4(),_0x38ef5d['decorate']('_sendUsageRequest');let _0x56f4c5=!0x1;const _0x32ea89=_0xea66bb();function _0x28bca3(_0x11b3c6){return!!_0x11b3c6&&('object'==typeof _0x11b3c6||'function'==typeof _0x11b3c6)&&'function'==typeof _0x11b3c6['then']&&'function'==typeof _0x11b3c6['catch'];}function _0x423f55(_0x450fc4){_0x308859(_0x450fc4)['then'](_0x56c7ac=>_0x56c7ac&&'ok'==_0x56c7ac['status']?_0x10e214(_0x478088(_0x32ea89+_0x293fb6))!=_0x56c7ac['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x2c918e=>(_0x4ca1dc(),_0x2c918e),()=>{const _0x2e214e=_0x23f26d();return null==_0x2e214e?(_0x4ca1dc(),'Valid'):_0x653e50-_0x2e214e>0x240c8400?'UsageLimit':'Valid';})['then'](_0x24a185)['catch'](()=>{_0x24a185('UsageLimit');});const _0x5c0224=0x36ee80;function _0x4ca1dc(){const _0x285874='llct-'+_0x10e214(_0x478088(_0x24689a)),_0x2c4d37=_0x36ffcb(_0x10e214(window['Math']['ceil'](_0x653e50/_0x5c0224)));window['localStorage']['setItem'](_0x285874,_0x2c4d37);}function _0x23f26d(){const _0x246d33='llct-'+_0x10e214(_0x478088(_0x24689a)),_0x2bb77f=window['localStorage']['getItem'](_0x246d33);return _0x2bb77f?window['parseInt'](_0x36ffcb(_0x2bb77f),0x10)*_0x5c0224:null;}function _0x308859(_0x5c514b){return new window['Promise']((_0x2fe753,_0x5dd249)=>{_0x5c514b['then'](_0x2fe753,_0x5dd249),window['setTimeout'](_0x5dd249,0x1d4c0);});}}_0x38ef5d['on']('_sendUsageRequest',(_0x277eb8,_0x185bc3)=>{if(_0x185bc3[0x0]!=_0x24689a)return _0x24a185('UsageLimit');_0x185bc3[0x1]={..._0x185bc3[0x1],'requestId':_0x32ea89};},{'priority':'high'}),_0x38ef5d['on']('_sendUsageRequest',_0x547809=>{_0x28bca3(_0x547809['return'])&&(_0x56f4c5=!0x0,_0x423f55(_0x547809['return']));},{'priority':'low'}),_0x2163af['then'](()=>{_0x56f4c5||_0x24a185('UsageLimit');});});function _0x33916a(){return'auto'==_0x38ef5d['editing']['view']['_overlayModeHint'];}function _0x56e1e4(){_0x38ef5d['editing']['view']['_overlayModeHint']='auto';}}function _0x3c460e(_0x5cd9cd){const _0x534c92=[new window['Promise'](_0x433933=>setTimeout(_0x433933,0x93ecc)),_0x2163af['then'](()=>new window['Promise'](_0x29e5b9=>{let _0x38a9f4=0x0;_0x38ef5d['model']['on']('applyOperation',(_0x43cb0b,_0x448ba7)=>{_0x448ba7[0x0]['isDocumentOperation']&&_0x38a9f4++,0x5e8==_0x38a9f4&&(_0x29e5b9(),_0x43cb0b['off']());});}))];return window['Promise']['race'](_0x534c92)['then'](()=>_0x5cd9cd);}async function _0x26aa06(){await _0x2163af,_0x38ef5d['model']['change']=_0x5e64e9,_0x38ef5d['model']['enqueueChange']=_0x5e64e9,_0x38ef5d['enableReadOnlyMode']('model');}function _0x4ed3d9(){return window['glob']&&window['glob']['triliumVersion'];}function _0x4f9148(_0x44db8e){const _0x103361=_0x1b0782();_0x38ef5d[_0x103361]='tableOfContentsLicenseKey'+_0x44db8e,'Valid'!=_0x44db8e&&_0x26aa06();}function _0x1b0782(){const _0x3988d2=window['String'](window['performance']['now']())['replace']('.','');let _0x231cde='m';for(let _0x485b32=0x0;_0x485b32<_0x3988d2['length'];_0x485b32+=0x2){let _0x12826a=window['parseInt'](_0x3988d2['substring'](_0x485b32,_0x485b32+0x2));_0x12826a>=0x3e&&(_0x12826a-=0x3e),_0x231cde+=_0x828eb6[_0x12826a];}return _0x231cde;}function _0x2a66d2(){const _0x136d26=_0x120e7f['split']('.');if(0x3!=_0x136d26['length'])return null;return _0x20d7a3(_0x136d26[0x1]);function _0x20d7a3(_0x32f204){const _0x338b75=_0x49cf3d(_0x32f204);return _0x338b75&&_0x45b1d4()?_0x338b75:null;function _0x45b1d4(){const _0x576201=_0x338b75['jti'],_0x83afa8=window['parseInt'](_0x576201['substring'](_0x576201['length']-0x8),0x10),_0xadcb09={..._0x338b75,'jti':_0x576201['substring'](0x0,_0x576201['length']-0x8)};return delete _0xadcb09['vc'],_0x478088(_0xadcb09)==_0x83afa8;}}}async function _0x225e39(){let _0x104358=!0x0;try{const [_0x248f5d,_0x553f0c,_0x2af132]=_0x120e7f['split']('.');return _0x52db8c(_0x248f5d),await _0x4da5b2(_0x248f5d,_0x553f0c,_0x2af132),_0x104358;}catch{return!0x1;}function _0x52db8c(_0x2df73e){const _0x172223=_0x49cf3d(_0x2df73e);_0x172223&&'ES256'==_0x172223['alg']||(_0x104358=!0x1);}async function _0x4da5b2(_0x54c2d6,_0x26d9ad,_0x4eefef){const _0x3a6a19=window['Uint8Array']['from'](_0x431de7(_0x4eefef),_0x55ae27=>_0x55ae27['charCodeAt'](0x0)),_0x3e09c8=new window['TextEncoder']()['encode'](_0x54c2d6+'.'+_0x26d9ad),_0x4427ec=window['crypto']['subtle'];if(!_0x4427ec)return;const _0x113d0e=await _0x4427ec['importKey']('jwk',_0x39fa11,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x4427ec['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x113d0e,_0x3a6a19,_0x3e09c8)||(_0x104358=!0x1);}}function _0x49cf3d(_0x1af668){return _0x1af668['startsWith']('ey')?JSON['parse'](_0x431de7(_0x1af668)):null;}function _0x431de7(_0xf50862){return window['atob'](_0xf50862['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x478088(_0x9304f9){let _0xdb17a5=0x1505;function _0x33c72c(_0x2292ec){for(let _0x41b209=0x0;_0x41b209<_0x2292ec['length'];_0x41b209++){const _0xd0d3d0=_0x2292ec['charCodeAt'](_0x41b209);_0xdb17a5=(_0xdb17a5<<0x5)+_0xdb17a5+_0xd0d3d0,_0xdb17a5&=_0xdb17a5;}}function _0x3145bb(_0x4e4314){Array['isArray'](_0x4e4314)?_0x4e4314['forEach'](_0x3145bb):_0x4e4314&&'object'==typeof _0x4e4314?Object['entries'](_0x4e4314)['sort']()['forEach'](([_0x35d600,_0x5e5bc1])=>{_0x33c72c(_0x35d600),_0x3145bb(_0x5e5bc1);}):_0x33c72c(window['String'](_0x4e4314));}return _0x3145bb(_0x9304f9),_0xdb17a5>>>0x0;}function _0x10e214(_0x587ac7){return _0x587ac7['toString'](0x10)['padStart'](0x8,'0');}function _0x36ffcb(_0x2440f5){return _0x2440f5['split']('')['reverse']()['join']('');}function _0x5e64e9(){}_0x4f9148(await _0x3d9936());}(this);}_updateTableOfContentsElements(){this['_tableOfContentsElements']['forEach'](_0x5c4a11=>{'$graveyard'!==_0x5c4a11['rootName']&&this['editor']['editing']['reconvertItem'](_0x5c4a11);});}_trackNewToCElements(){for(const _0x54d8b9 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x54d8b9['type']||'tableOfContents'!==_0x54d8b9['name'])return;this['_tableOfContentsElements']['add'](_0x54d8b9['position']['nodeAfter']);}}_getOutlineDefinitions(_0x3f68e7){const _0x3196c=this['editor'],_0x16ff65=[];for(const _0x26941b of _0x3196c['model']['document']['getRootNames']())_0x7edcb9(_0x3196c['model']['document']['getRoot'](_0x26941b));function _0x7edcb9(_0x3c562f){for(const _0x5ece2c of _0x3c562f['getChildren']())_0x5ece2c['is']('element')&&(_0x3f68e7['includes'](_0x5ece2c['name'])&&_0x16ff65['push']({'level':_0x3f68e7['indexOf'](_0x5ece2c['name'])+0x1,'text':L_(_0x5ece2c),'modelElement':_0x5ece2c}),_0x7edcb9(_0x5ece2c));}return _0x16ff65;}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}_defineConverters(){const _0xb33764=this['editor']['conversion'];_0xb33764['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0xb33764['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x483f83,{writer:_0x441ee6})=>this['_createTableOfContents'](_0x441ee6,!0x0)}),_0xb33764['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x27741f,{writer:_0x8feaff})=>(this['_tableOfContentsElements']['add'](_0x27741f),_0x24589f(this['_createTableOfContents'](_0x8feaff),_0x8feaff,{'label':D_(this['editor']['locale'],'Table\x20of\x20contents')}))}),this['editor']['data']['registerRawContentMatcher']({'name':'div','classes':'table-of-contents'}),this['editor']['editing']['mapper']['on']('viewToModelPosition',this['_redirectMapper'](),{'priority':'high'});}_createTableOfContents(_0x57d337,_0x387995=!0x1){const {locale:_0x5cea3a}=this['editor'],_0x1eee9e=_0x57d337['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x387995&&{'data-table-of-contents-label':D_(_0x5cea3a,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x387995&&_0x57d337['insert'](_0x57d337['createPositionAt'](_0x1eee9e,'end'),_0x57d337['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x57d337['createText'](D_(_0x5cea3a,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x2adedf=_0x387995?'':'['+D_(_0x5cea3a,'Empty\x20heading')+']';let _0x187a2f=_0x1eee9e;return this['_currentOutlineDefinitions']['forEach']((_0x346a52,_0x40c6fa,_0x313f15)=>{const _0x42cde6=this['editor']['model']['hasContent'](_0x346a52['modelElement'],{'ignoreWhitespaces':!0x0}),_0x3c684f=_0x42cde6?_0x346a52['text']:_0x2adedf,_0x468b70=_0x346a52['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x30dc1d=_0x57d337['createContainerElement']('a',{'href':'#'+_0x468b70,...!_0x387995&&{'tabindex':'-1'}},[_0x57d337['createText'](_0x3c684f)]),_0x1dfbef=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x57d337['setCustomProperty']('tableOfContentsHeadingIndex',_0x40c6fa,_0x30dc1d);const _0x53ca73=_0x57d337['createContainerElement']('li',null,[_0x42cde6||!_0x387995&&_0x1dfbef?_0x30dc1d:_0x57d337['createText']('')]),_0x5e2f8b=_0x40c6fa?_0x313f15[_0x40c6fa-0x1]['level']:0x0,_0x41f07b=Math['abs'](_0x346a52['level']-_0x5e2f8b);if(_0x346a52['level']>_0x5e2f8b){const _0x7ed58b=G_(_0x53ca73,_0x41f07b,_0x57d337);_0x57d337['insert'](_0x57d337['createPositionAt'](_0x187a2f,'end'),_0x7ed58b);}else{const _0x2c687a=function(_0x4aef74,_0x473664){return _0x4aef74['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x19ac07=>_0x19ac07['is']('element','ol'))[_0x473664];}(_0x187a2f,_0x41f07b);_0x57d337['insert'](_0x57d337['createPositionAt'](_0x2c687a,'end'),_0x53ca73);}_0x187a2f=_0x53ca73;}),_0x1eee9e;}['_handleScrollToHeading'](_0x56a846){const _0x4eeb78=this['_currentOutlineDefinitions'][_0x56a846]['modelElement'];this['editor']['model']['change'](_0x44da60=>{_0x44da60['setSelection'](_0x4eeb78,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}_redirectMapper(){return(_0xaa3623,_0x236e9f)=>{const _0x412363=_0x236e9f['mapper'],_0x390742=_0x412363['findMappedViewAncestor'](_0x236e9f['viewPosition']),_0x592dce=_0x412363['toModelElement'](_0x390742);_0x592dce['is']('element','tableOfContents')&&(_0x236e9f['modelPosition']=this['editor']['model']['createPositionAt'](_0x592dce,0x0),_0xaa3623['stop']());};}};function G_(_0x12249f,_0x3d19f8,_0x1cc3aa){return 0x1===_0x3d19f8?_0x1cc3aa['createContainerElement']('ol',null,[_0x12249f]):_0x1cc3aa['createContainerElement']('ol',null,[_0x1cc3aa['createContainerElement']('li',null,[G_(_0x12249f,_0x3d19f8-0x1,_0x1cc3aa)])]);}var X_=class extends _0x11fe30{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x35b45a=this['editor'];_0x35b45a['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x114155=this['_createButton'](_0x39ae99);return _0x114155['tooltip']=!0x0,_0x114155;}),_0x35b45a['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](_0x589436)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x13f5a1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x45ea96;for(const _0x5d7829 in _0x13f5a1){const _0x278e8b=_0x5d7829,_0x5bcfe1=_0x13f5a1[_0x278e8b];if('tableOfContentsLicenseKeyValid'==_0x5bcfe1||'tableOfContentsLicenseKeyInvalid'==_0x5bcfe1||'tableOfContentsLicenseKeyExpired'==_0x5bcfe1||'tableOfContentsLicenseKeyDomainLimit'==_0x5bcfe1||'tableOfContentsLicenseKeyNotAllowed'==_0x5bcfe1||'tableOfContentsLicenseKeyEvaluationLimit'==_0x5bcfe1||'tableOfContentsLicenseKeyUsageLimit'==_0x5bcfe1){delete _0x13f5a1[_0x278e8b],_0x45ea96=_0x5bcfe1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x45ea96&&_0x13f5a1['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x45ea96&&_0x13f5a1['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x45ea96&&_0x13f5a1['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x45ea96&&_0x13f5a1['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x45ea96&&_0x13f5a1['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x45ea96&&_0x13f5a1['_showLicenseError']('usageLimit');},0x3e8);}_createButton(_0x97bd79){const _0x2bafb0=this['editor'],_0x183dad=_0x2bafb0['locale'],_0x1ee263=_0x2bafb0['commands']['get']('insertTableOfContents'),_0x57a368=new _0x97bd79(_0x183dad);return _0x57a368['set']({'label':D_(_0x183dad,'Table\x20of\x20contents'),'icon':_0x117a83}),_0x57a368['bind']('isEnabled')['to'](_0x1ee263,'isEnabled'),this['listenTo'](_0x57a368,'execute',()=>{_0x2bafb0['execute']('insertTableOfContents'),_0x2bafb0['editing']['view']['focus']();}),_0x57a368;}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},q_=class extends _0x11fe30{static get requires(){return[Z_,X_];}static get['pluginName'](){return'TableOfContents';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};const W_='https://ckeditor.com/docs/ckeditor5/latest';var z_=class extends _0x11fe30{static get['pluginName'](){return'EmailConfigurationLogger';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b6f1c){super(_0x3b6f1c),_0x3b6f1c['config']['define']('email.logs',{'suppress':[],'suppressAll':!0x1});}afterInit(){!async function(_0x543ca1){const _0x40d0af='uizTdvyBIa4RKsnOYmEXGMfjehwJQqbPSCk7DtZgF58Lxl29Ho6cAUW1pV3Nr0',_0x1b98d7=0x791d0,_0x5b415b=window['Date']['now'](),_0x3e07eb=_0x543ca1['editor'],_0x3caeb2=new window['Promise'](_0x191b4c=>{_0x3e07eb['once']('ready',_0x191b4c);}),_0x3de8dd={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x1b38ed=_0x3e07eb['config']['get']('licenseKey');async function _0x2da211(){let _0xe84ec8,_0x3d16cf=null,_0x3244b2=null;try{return'GPL'==_0x1b38ed?'NotAllowed':(_0xe84ec8=_0x1270a6(),_0xe84ec8?(_0xe84ec8['usageEndpoint']&&(_0x3244b2=_0x38155f(_0xe84ec8['usageEndpoint'],_0xe84ec8['jti'])),await _0x44417b()?_0x33be0a()?_0x2629bc()?'Expired':_0x6c3d29()?('evaluation'==_0xe84ec8['licenseType']&&(_0x3d16cf=_0x3c107c('EvaluationLimit')),await _0x1c54fa()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x2629bc(){const _0x4cd77e=['evaluation','trial']['includes'](_0xe84ec8['licenseType'])?_0x5b415b/0x3e8:0xe10*_0x1b98d7;return _0xe84ec8['exp']<_0x4cd77e;}function _0x33be0a(){const _0x38efeb=_0xe84ec8['features'];return!!_0x38efeb&&(!!_0x38efeb['includes']('*')||!!_0x38efeb['includes']('ECH'));}function _0x6c3d29(){const _0x5f2cd9=_0xe84ec8['licensedHosts'];if(!_0x5f2cd9||0x0==_0x5f2cd9['length'])return!0x0;const {hostname:_0x140b7e}=new URL(window['location']['href']);if(_0x5f2cd9['includes'](_0x140b7e))return!0x0;const _0x249e0e=_0x140b7e['split']('.');return _0x5f2cd9['filter'](_0x187d66=>_0x187d66['includes']('*'))['map'](_0x2a8318=>_0x2a8318['split']('.'))['filter'](_0xfa2d85=>_0xfa2d85['length']<=_0x249e0e['length'])['map'](_0x13af0e=>Array(_0x249e0e['length']-_0x13af0e['length'])['fill']('*'===_0x13af0e[0x0]?'*':'')['concat'](_0x13af0e))['some'](_0xdded91=>_0x249e0e['every']((_0x118888,_0x37a133)=>_0xdded91[_0x37a133]===_0x118888||'*'===_0xdded91[_0x37a133]));}function _0x1c54fa(){return _0x3d16cf&&_0x3244b2?new window['Promise']((_0x207ee0,_0x1122d7)=>{_0x3d16cf['then'](_0x207ee0,_0x1122d7),_0x3244b2['then'](_0x44f8c6=>{'Valid'!=_0x44f8c6&&_0x207ee0(_0x44f8c6);},_0x1122d7);}):_0x3d16cf||_0x3244b2||'Valid';}}function _0x38155f(_0x4a4aa5,_0x49873e){return new window['Promise'](_0x5dd52b=>{if(_0x2b1e28())return _0x5dd52b('Valid');_0x41a7d9(),_0x3e07eb['decorate']('_sendUsageRequest');let _0x225615=!0x1;const _0x38c2ef=_0xea66bb();function _0x223e11(_0x43e40f){return!!_0x43e40f&&('object'==typeof _0x43e40f||'function'==typeof _0x43e40f)&&'function'==typeof _0x43e40f['then']&&'function'==typeof _0x43e40f['catch'];}function _0x12fbbe(_0x43d458){_0xd062c0(_0x43d458)['then'](_0x4c63df=>_0x4c63df&&'ok'==_0x4c63df['status']?_0x517fea(_0x1a2b7a(_0x38c2ef+_0x49873e))!=_0x4c63df['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x1fe403=>(_0x1914e0(),_0x1fe403),()=>{const _0x3c6db3=_0x2e73e4();return null==_0x3c6db3?(_0x1914e0(),'Valid'):_0x5b415b-_0x3c6db3>0x240c8400?'UsageLimit':'Valid';})['then'](_0x5dd52b)['catch'](()=>{_0x5dd52b('UsageLimit');});const _0x44a72e=0x36ee80;function _0x1914e0(){const _0x45b266='llct-'+_0x517fea(_0x1a2b7a(_0x4a4aa5)),_0x5dc761=_0x434466(_0x517fea(window['Math']['ceil'](_0x5b415b/_0x44a72e)));window['localStorage']['setItem'](_0x45b266,_0x5dc761);}function _0x2e73e4(){const _0x4e036a='llct-'+_0x517fea(_0x1a2b7a(_0x4a4aa5)),_0x5f4c53=window['localStorage']['getItem'](_0x4e036a);return _0x5f4c53?window['parseInt'](_0x434466(_0x5f4c53),0x10)*_0x44a72e:null;}function _0xd062c0(_0x32b9a7){return new window['Promise']((_0x3584a4,_0x2b228c)=>{_0x32b9a7['then'](_0x3584a4,_0x2b228c),window['setTimeout'](_0x2b228c,0x1d4c0);});}}_0x3e07eb['on']('_sendUsageRequest',(_0x1d8f88,_0x5e6c0c)=>{if(_0x5e6c0c[0x0]!=_0x4a4aa5)return _0x5dd52b('UsageLimit');_0x5e6c0c[0x1]={..._0x5e6c0c[0x1],'requestId':_0x38c2ef};},{'priority':'high'}),_0x3e07eb['on']('_sendUsageRequest',_0x21ef1a=>{_0x223e11(_0x21ef1a['return'])&&(_0x225615=!0x0,_0x12fbbe(_0x21ef1a['return']));},{'priority':'low'}),_0x3caeb2['then'](()=>{_0x225615||_0x5dd52b('UsageLimit');});});function _0x2b1e28(){return'auto'==_0x3e07eb['editing']['view']['_overlayModeHint'];}function _0x41a7d9(){_0x3e07eb['editing']['view']['_overlayModeHint']='auto';}}function _0x3c107c(_0x434a5f){const _0x4344e0=[new window['Promise'](_0x166cc3=>setTimeout(_0x166cc3,0x93ecc)),_0x3caeb2['then'](()=>new window['Promise'](_0x19e734=>{let _0x4d9d5c=0x0;_0x3e07eb['model']['on']('applyOperation',(_0x40f02c,_0x423a81)=>{_0x423a81[0x0]['isDocumentOperation']&&_0x4d9d5c++,0x5e8==_0x4d9d5c&&(_0x19e734(),_0x40f02c['off']());});}))];return window['Promise']['race'](_0x4344e0)['then'](()=>_0x434a5f);}async function _0x278aab(){await _0x3caeb2,_0x3e07eb['model']['change']=_0x295393,_0x3e07eb['model']['enqueueChange']=_0x295393,_0x3e07eb['enableReadOnlyMode']('model');}function _0x2c74c9(_0x46df08){const _0x5992aa=_0x119b3e();_0x3e07eb[_0x5992aa]='emailConfigurationHelperLicenseKey'+_0x46df08,'Valid'!=_0x46df08&&_0x278aab();}function _0x119b3e(){const _0x360d5c=window['String'](window['performance']['now']())['replace']('.','');let _0x9ff18b='u';for(let _0x424158=0x0;_0x424158<_0x360d5c['length'];_0x424158+=0x2){let _0x132a5e=window['parseInt'](_0x360d5c['substring'](_0x424158,_0x424158+0x2));_0x132a5e>=0x3e&&(_0x132a5e-=0x3e),_0x9ff18b+=_0x40d0af[_0x132a5e];}return _0x9ff18b;}function _0x1270a6(){const _0x50257c=_0x1b38ed['split']('.');if(0x3!=_0x50257c['length'])return null;return _0x1e0c0f(_0x50257c[0x1]);function _0x1e0c0f(_0x2e3b6f){const _0x5bb226=_0x162cef(_0x2e3b6f);return _0x5bb226&&_0x24adc3()?_0x5bb226:null;function _0x24adc3(){const _0x2343e6=_0x5bb226['jti'],_0x342c80=window['parseInt'](_0x2343e6['substring'](_0x2343e6['length']-0x8),0x10),_0x3059d4={..._0x5bb226,'jti':_0x2343e6['substring'](0x0,_0x2343e6['length']-0x8)};return delete _0x3059d4['vc'],_0x1a2b7a(_0x3059d4)==_0x342c80;}}}async function _0x44417b(){let _0x553de9=!0x0;try{const [_0x5abfea,_0x593aaa,_0x2c936b]=_0x1b38ed['split']('.');return _0x247c2c(_0x5abfea),await _0x378662(_0x5abfea,_0x593aaa,_0x2c936b),_0x553de9;}catch{return!0x1;}function _0x247c2c(_0x2a9576){const _0x20e17f=_0x162cef(_0x2a9576);_0x20e17f&&'ES256'==_0x20e17f['alg']||(_0x553de9=!0x1);}async function _0x378662(_0x53b75f,_0x4c120e,_0x5c689d){const _0x404c7a=window['Uint8Array']['from'](_0x5ddb58(_0x5c689d),_0x1f7e34=>_0x1f7e34['charCodeAt'](0x0)),_0x57e43d=new window['TextEncoder']()['encode'](_0x53b75f+'.'+_0x4c120e),_0xb07475=window['crypto']['subtle'];if(!_0xb07475)return;const _0x51a32d=await _0xb07475['importKey']('jwk',_0x3de8dd,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0xb07475['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x51a32d,_0x404c7a,_0x57e43d)||(_0x553de9=!0x1);}}function _0x162cef(_0xf0183f){return _0xf0183f['startsWith']('ey')?JSON['parse'](_0x5ddb58(_0xf0183f)):null;}function _0x5ddb58(_0x873d42){return window['atob'](_0x873d42['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1a2b7a(_0x180e7d){let _0x33416b=0x1505;function _0x21b19d(_0xd1500f){for(let _0x189fc4=0x0;_0x189fc4<_0xd1500f['length'];_0x189fc4++){const _0x367064=_0xd1500f['charCodeAt'](_0x189fc4);_0x33416b=(_0x33416b<<0x5)+_0x33416b+_0x367064,_0x33416b&=_0x33416b;}}function _0x51659a(_0x1a51fc){Array['isArray'](_0x1a51fc)?_0x1a51fc['forEach'](_0x51659a):_0x1a51fc&&'object'==typeof _0x1a51fc?Object['entries'](_0x1a51fc)['sort']()['forEach'](([_0xb880e1,_0x563321])=>{_0x21b19d(_0xb880e1),_0x51659a(_0x563321);}):_0x21b19d(window['String'](_0x1a51fc));}return _0x51659a(_0x180e7d),_0x33416b>>>0x0;}function _0x517fea(_0x3cc705){return _0x3cc705['toString'](0x10)['padStart'](0x8,'0');}function _0x434466(_0x306858){return _0x306858['split']('')['reverse']()['join']('');}function _0x295393(){}_0x2c74c9(await _0x2da211());}(this);}['_logSuppressibleWarning'](_0x5b959c,_0x46cefd){if(this['_isSuppressedLog'](_0x5b959c,_0x46cefd))return;const _0x217c9b=W_+'/support/error-codes.html#error-'+_0x5b959c;console['warn']('%cEmailConfigurationHelper%c\x20'+_0x5b959c,'background:\x20#E65100;\x20color:\x20white;\x20padding:\x202px\x204px;','',..._0x46cefd?[_0x46cefd]:[],'\x0aRead\x20more:\x20'+_0x217c9b);}['_logSuppressibleInfo'](_0x116405,_0x3c30d4,_0x42dd1c){if(this['_isSuppressedLog'](_0x116405))return;let _0x1939c3=_0x3c30d4;_0x42dd1c&&(_0x1939c3+='\x0aRead\x20more:\x20'+(W_+'/'+_0x42dd1c)),console['info']('%cEmailConfigurationHelper%c\x20'+_0x116405,'background:\x20#4169E1;\x20color:\x20white;\x20padding:\x202px\x204px;','',_0x1939c3);}_checkUnsupportedPlugin(_0x28c27b,_0x1c911e){this['editor']['plugins']['has'](_0x28c27b)&&this['_logSuppressibleWarning']('email-configuration-unsupported-plugin',{'pluginName':_0x28c27b,..._0x1c911e});}_validateConfigColorValue(_0x2ce766){const _0x362af3=this['editor']['config']['get'](_0x2ce766);if(!_0x362af3)return;const _0xfc1da8=Array['isArray'](_0x362af3),_0x46aa76=_0xfc1da8?_0x362af3:[_0x362af3];for(const [_0x3dd01d,_0x4892ef]of _0x46aa76['entries']()){const _0x17a587='string'==typeof _0x4892ef?_0x4892ef:_0x4892ef['color'];K_(_0x17a587)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-value',{'configPath':_0xfc1da8?_0x2ce766+'['+_0x3dd01d+']':_0x2ce766,'color':_0x17a587});}}_validateConfigColorFormat(_0x22c124){const _0xba3143=this['editor']['config']['get'](_0x22c124);_0xba3143&&J_(_0xba3143)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-format',{'configPath':_0x22c124,'format':_0xba3143});}['_isSuppressedLog'](_0x4519ad,_0x777a62){const _0x2e47aa=this['editor']['config']['get']('email.logs');return!!_0x2e47aa['suppressAll']||(!('function'!=typeof _0x2e47aa['suppress']||!_0x2e47aa['suppress'](_0x4519ad,_0x777a62))||!(!Array['isArray'](_0x2e47aa['suppress'])||!_0x2e47aa['suppress']['includes'](_0x4519ad)));}};const Y_=['hsl','hsla','hwb','lab','lch','oklab','oklch','color-mix','rgba'];function K_(_0x17e0bb){return!!_0x17e0bb&&Y_['some'](_0x435fbc=>_0x17e0bb['includes'](_0x435fbc+'('));}function J_(_0x19add9){return!!_0x19add9&&Y_['includes'](_0x19add9);}var tE=class extends _0x11fe30{static get requires(){return[z_];}static get['pluginName'](){return'HighlightEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](z_)['_checkUnsupportedPlugin']('Highlight');}},eE=function(_0x366c4f){var _0x1f1a1b,_0x4b0f9c,_0x2f3b80=_0x366c4f,_0x4aabe3={'a':0x0,'b':0x0,'c':0x0},_0x5b45a9=[];return _0x1f1a1b=function(_0xb3bd7e,_0x3d92c3){var _0x3ea8a1,_0x105a6e,_0x1d13a1,_0x9864e0,_0x1236ec,_0x434c6e;if(_0xb3bd7e['test'](_0x2f3b80)){for(_0x105a6e=0x0,_0x1d13a1=(_0x3ea8a1=_0x2f3b80['match'](_0xb3bd7e))['length'];_0x105a6e<_0x1d13a1;_0x105a6e+=0x1)_0x4aabe3[_0x3d92c3]+=0x1,_0x9864e0=_0x3ea8a1[_0x105a6e],_0x1236ec=_0x2f3b80['indexOf'](_0x9864e0),_0x434c6e=_0x9864e0['length'],_0x5b45a9['push']({'selector':_0x366c4f['substr'](_0x1236ec,_0x434c6e),'type':_0x3d92c3,'index':_0x1236ec,'length':_0x434c6e}),_0x2f3b80=_0x2f3b80['replace'](_0x9864e0,Array(_0x434c6e+0x1)['join']('\x20'));}},_0x4b0f9c=function(_0x1d8f4b){var _0x37b625,_0xff4f98,_0x33f359,_0x228881;if(_0x1d8f4b['test'](_0x2f3b80)){for(_0xff4f98=0x0,_0x33f359=(_0x37b625=_0x2f3b80['match'](_0x1d8f4b))['length'];_0xff4f98<_0x33f359;_0xff4f98+=0x1)_0x228881=_0x37b625[_0xff4f98],_0x2f3b80=_0x2f3b80['replace'](_0x228881,Array(_0x228881['length']+0x1)['join']('A'));}},_0x4b0f9c(/\\[0-9A-Fa-f]{6}\s?/g),_0x4b0f9c(/\\[0-9A-Fa-f]{1,5}\s/g),_0x4b0f9c(/\\./g),(function(){var _0x3dda66,_0x51a15d,_0x23130e,_0x5f567a,_0x150469=/{[^]*/gm;if(_0x150469['test'](_0x2f3b80)){for(_0x51a15d=0x0,_0x23130e=(_0x3dda66=_0x2f3b80['match'](_0x150469))['length'];_0x51a15d<_0x23130e;_0x51a15d+=0x1)_0x5f567a=_0x3dda66[_0x51a15d],_0x2f3b80=_0x2f3b80['replace'](_0x5f567a,Array(_0x5f567a['length']+0x1)['join']('\x20'));}}()),_0x1f1a1b(/(\[[^\]]+\])/g,'b'),_0x1f1a1b(/(#[^\#\s\+>~\.\[:\)]+)/g,'a'),_0x1f1a1b(/(\.[^\s\+>~\.\[:\)]+)/g,'b'),_0x1f1a1b(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,'c'),_0x1f1a1b(/(:(?!not|global|local)[\w-]+\([^\)]*\))/gi,'b'),_0x1f1a1b(/(:(?!not|global|local)[^\s\+>~\.\[:]+)/g,'b'),_0x2f3b80=(_0x2f3b80=(_0x2f3b80=(_0x2f3b80=(_0x2f3b80=(_0x2f3b80=_0x2f3b80['replace'](/[\*\s\+>~]/g,'\x20'))['replace'](/[#\.]/g,'\x20'))['replace'](/:not/g,'\x20\x20\x20\x20'))['replace'](/:local/g,'\x20\x20\x20\x20\x20\x20'))['replace'](/:global/g,'\x20\x20\x20\x20\x20\x20\x20'))['replace'](/[\(\)]/g,'\x20'),_0x1f1a1b(/([^\s\+>~\.\[:]+)/g,'c'),_0x5b45a9['sort'](function(_0x29ee25,_0xaa36cb){return _0x29ee25['index']-_0xaa36cb['index'];}),{'selector':_0x366c4f,'specificity':'0,'+_0x4aabe3['a']['toString']()+','+_0x4aabe3['b']['toString']()+','+_0x4aabe3['c']['toString'](),'specificityArray':[0x0,_0x4aabe3['a'],_0x4aabe3['b'],_0x4aabe3['c']],'parts':_0x5b45a9};};function iE(_0x3f588f){const _0xe6a40a=[];let _0x422f54='',_0x24a40f=0x0;for(;_0x24a40f<_0x3f588f['length'];){const _0x1e0902=_0x3f588f[_0x24a40f];if('('===_0x1e0902){const _0x1f04ab=sE(_0x3f588f,_0x24a40f+0x1);if(-0x1===_0x1f04ab)return[];_0x422f54+=_0x3f588f['slice'](_0x24a40f,_0x1f04ab+0x1),_0x24a40f=_0x1f04ab+0x1;}else','!==_0x1e0902||_0x422f54['endsWith']('\x5c')?(_0x422f54+=_0x1e0902,_0x24a40f++):(_0xe6a40a['push'](_0x422f54['trim']()),_0x422f54='',_0x24a40f++);}return _0x422f54['trim']()&&_0xe6a40a['push'](_0x422f54['trim']()),_0xe6a40a['filter'](Boolean);}function sE(_0x38f2c2,_0x530caf){let _0x280c48=0x1;for(let _0x1653d1=_0x530caf;_0x1653d1<_0x38f2c2['length'];_0x1653d1++){const _0x487a7c=_0x38f2c2[_0x1653d1];if('('===_0x487a7c)_0x280c48++;else{if(')'===_0x487a7c&&(_0x280c48--,0x0===_0x280c48))return _0x1653d1;}}return-0x1;}function nE(_0x17db6b){return _0x17db6b['replace'](/!\s*important/i,'')['trim']();}function rE(_0x2e40a1){const _0xef0da=new Map();for(const {stylesMap:_0x3c30bf,flatSelector:_0x4bfdbc}of _0x2e40a1){if(':root'!==_0x4bfdbc)continue;const _0x5567c6=oE(_0xef0da['get']['bind'](_0xef0da),_0x3c30bf);for(const [_0x228dfe,_0x45fe02]of _0x5567c6)_0xef0da['set'](_0x228dfe,_0x45fe02);}return _0xef0da;}function oE(_0x194028,_0x2db187){const _0xaa226=new Map(),_0x370f1d=_0x7e560a=>_0xaa226['has'](_0x7e560a)?_0xaa226['get'](_0x7e560a):_0x194028(_0x7e560a);for(const [_0x5bbf7c,_0x87b3c2]of _0x2db187['getStylesEntries']())if(_0x87b3c2&&_0x5bbf7c['startsWith']('--')){const _0x3ecc5b=aE(_0x370f1d,_0x87b3c2);_0xaa226['set'](_0x5bbf7c,_0x3ecc5b),_0x2db187['remove'](_0x5bbf7c);}for(const [_0x119dbf,_0x2694fb]of _0x2db187['getStylesEntries']())if(_0x2694fb){const _0x2192fa=aE(_0x370f1d,_0x2694fb);_0x2db187['set'](_0x119dbf,_0x2192fa);}return _0xaa226;}function aE(_0x57938a,_0x279a44){return function(_0x1ec639,_0x14cc06){let _0x3ee79f='',_0x2caecf=0x0;for(;_0x2caecf<_0x1ec639['length'];){const _0x13401a=_0x1ec639['indexOf']('var(',_0x2caecf);if(-0x1===_0x13401a){_0x3ee79f+=_0x1ec639['slice'](_0x2caecf);break;}_0x3ee79f+=_0x1ec639['slice'](_0x2caecf,_0x13401a);const _0x185264=_0x13401a+0x4,_0x10da96=sE(_0x1ec639,_0x185264);_0x3ee79f+=_0x14cc06(_0x1ec639['substring'](_0x185264,_0x10da96)),_0x2caecf=_0x10da96+0x1;}return _0x3ee79f;}(_0x279a44,_0x513224=>{const [_0x3e1d9,_0xda5fe3]=iE(_0x513224),_0x1cb86d=_0x57938a(_0x3e1d9);return void 0x0!==_0x1cb86d?_0x1cb86d:_0xda5fe3?aE(_0x57938a,_0xda5fe3):'var('+_0x3e1d9+')';});}async function cE(_0xbb6b09){const _0x261f5c=[await _0x320c18(_0xbb6b09['stylesheets']),_0xbb6b09['inlineCss']]['filter'](_0x3b3649=>_0x3b3649&&_0x3b3649['length'])['join']('\x0a'),_0x336017=await async function(_0x462e79,_0x263e23){const _0x351fa5=new CSSStyleSheet();return await _0x351fa5['replace'](_0x263e23),lE(Array['from'](_0x351fa5['cssRules'])['filter'](_0x5d7393=>_0x5d7393 instanceof CSSStyleRule))['flatMap'](({selectorText:_0x116a69,contentCssText:_0x5da543})=>{const _0x366423=iE(_0x116a69),_0xa41679=new _0x28c583(_0x462e79)['setTo'](_0x5da543);return _0x366423['map'](_0x1f9285=>{const _0x3c6153=function(_0x28261c){const _0x5ca291=':where(';let _0x5945a5=_0x28261c,_0x249325=0x0;for(let _0x1aa01e=0x0;_0x1aa01e<0x64;_0x1aa01e++){const _0x27a94c=_0x5945a5['indexOf'](_0x5ca291,_0x249325);if(-0x1===_0x27a94c)break;let _0x27c3f9=0x0;for(let _0x3f92ad=0x0;_0x3f92ad<_0x27a94c;_0x3f92ad++)'('===_0x5945a5[_0x3f92ad]?_0x27c3f9++:')'===_0x5945a5[_0x3f92ad]&&_0x27c3f9--;if(_0x27c3f9>0x0){_0x249325=_0x27a94c+0x7;continue;}let _0x41d375=-0x1;for(let _0x6e98dc=_0x27a94c+0x7,_0x3d82fe=0x1;_0x6e98dc<_0x5945a5['length'];_0x6e98dc++)if('('===_0x5945a5[_0x6e98dc]?_0x3d82fe++:')'===_0x5945a5[_0x6e98dc]&&_0x3d82fe--,!_0x3d82fe){_0x41d375=_0x6e98dc;break;}-0x1!==_0x41d375?(_0x5945a5=_0x5945a5['slice'](0x0,_0x27a94c)+_0x5945a5['slice'](_0x41d375+0x1),_0x249325=_0x27a94c):_0x249325=_0x27a94c+0x7;}return _0x5945a5['replace'](/\s+/g,'\x20')['trim']();}(_0x1f9285),_0x2524de=_0x3c6153?function(_0x34db6f){var _0x340193,_0x88adfa,_0x11a85e,_0x43e30e,_0x462503=[];for(_0x11a85e=0x0,_0x43e30e=(_0x340193=_0x34db6f['split'](','))['length'];_0x11a85e<_0x43e30e;_0x11a85e+=0x1)(_0x88adfa=_0x340193[_0x11a85e])['length']>0x0&&_0x462503['push'](eE(_0x88adfa));return _0x462503;}(_0x3c6153)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0xa41679,'flatSelector':_0x1f9285,'specificity':_0x2524de};});})['sort']((_0x2936d5,_0x2e53e3)=>function(_0x1b5ef7,_0x50ca26){var _0x526a09,_0x1d442b,_0x3675c8;if('string'==typeof _0x1b5ef7){if(-0x1!==_0x1b5ef7['indexOf'](','))throw'Invalid\x20CSS\x20selector';_0x526a09=eE(_0x1b5ef7)['specificityArray'];}else{if(!Array['isArray'](_0x1b5ef7))throw'Invalid\x20CSS\x20selector\x20or\x20specificity\x20array';if(0x4!==_0x1b5ef7['filter'](function(_0x159d49){return'number'==typeof _0x159d49;})['length'])throw'Invalid\x20specificity\x20array';_0x526a09=_0x1b5ef7;}if('string'==typeof _0x50ca26){if(-0x1!==_0x50ca26['indexOf'](','))throw'Invalid\x20CSS\x20selector';_0x1d442b=eE(_0x50ca26)['specificityArray'];}else{if(!Array['isArray'](_0x50ca26))throw'Invalid\x20CSS\x20selector\x20or\x20specificity\x20array';if(0x4!==_0x50ca26['filter'](function(_0x1bd9e4){return'number'==typeof _0x1bd9e4;})['length'])throw'Invalid\x20specificity\x20array';_0x1d442b=_0x50ca26;}for(_0x3675c8=0x0;_0x3675c8<0x4;_0x3675c8+=0x1){if(_0x526a09[_0x3675c8]<_0x1d442b[_0x3675c8])return-0x1;if(_0x526a09[_0x3675c8]>_0x1d442b[_0x3675c8])return 0x1;}return 0x0;}(_0x2936d5['specificity'],_0x2e53e3['specificity']));}(_0xbb6b09['stylesProcessor'],_0x261f5c);return{'parsedCssRules':_0x336017,'rootCssVariables':rE(_0x336017)};}function lE(_0x108b5d,_0x51e0c0=''){return _0x108b5d['flatMap'](_0x10d574=>{const {selectorText:_0x4d106c,cssText:_0x3178ae,cssRules:_0x4a2acb}=_0x10d574;if(!_0x4d106c)return[];const _0x1fff2c=_0x4d106c['replace'](/&/g,_0x51e0c0);let _0x554792=_0x3178ae['replace'](_0x4d106c,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x4a2acb||!_0x4a2acb['length'])return[{'selectorText':_0x1fff2c,'contentCssText':_0x554792}];for(const _0x508e72 of _0x4a2acb)_0x554792=_0x554792['replace'](_0x508e72['cssText'],'')['trim']();return[{'selectorText':_0x1fff2c,'contentCssText':_0x554792},...lE(Array['from'](_0x4a2acb),_0x1fff2c)];});}function hE(_0x50bb74,_0x5098a6){const _0x462161=new _0x28c583(_0x50bb74);for(const _0x31e052 of _0x5098a6){let _0x1b36fc;if(_0x1b36fc='string'==typeof _0x31e052?new _0x28c583(_0x50bb74)['setTo'](_0x31e052):_0x31e052,_0x1b36fc){for(const [_0x2a711c,_0x253616]of _0x1b36fc['getStylesEntries']())_0x462161['set'](_0x2a711c,_0x253616);}}return _0x462161;}var uE=class extends _0x44d8e7{_stylesProcessor;constructor(_0x223a77){super(_0x223a77),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x35a636(this['_stylesProcessor']),_0x2611f8(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async execute(_0x4cca14){const _0x40d561=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x429bd8}=this['editor']['locale'],{rootName:_0x1216dd='main',dataControllerDowncastOptions:_0xeceeba={},transformations:_0x4c3834=_0x40d561['transformations']||[]}=_0x4cca14||{};this['isBusy']=!0x0,this['refresh']();const _0x5d3c0d=this['_getRootDataHTMLFragment'](_0x1216dd,_0xeceeba),_0x11cb8e=_0x2a0f20(_0x5d3c0d['ownerDocument'],'div',{'dir':_0x429bd8,'class':'ck-content'},[_0x5d3c0d]);return this['_collectAndApplyStyles'](_0x4c3834,_0x11cb8e)['then'](()=>{const _0x38f8cc=function(_0x2f129c){const _0x2cabea=_0x2f129c['ownerDocument']['createDocumentFragment']();for(;_0x2f129c['firstChild'];)_0x2cabea['appendChild'](_0x2f129c['firstChild']);return _0x2cabea;}(_0x11cb8e),_0x5083da=_0x11cb8e['getAttribute']('style');if(_0x5083da)for(const _0x98ebbb of _0x38f8cc['children']){const _0x1a180f=_0x98ebbb['getAttribute']('style'),_0x4dfbc6=hE(this['_stylesProcessor'],[_0x5083da,_0x1a180f]);_0x98ebbb['setAttribute']('style',dE(_0x4dfbc6));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x38f8cc);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}_getRootDataHTMLFragment(_0x4c340f,_0x1ee995){const {data:_0x3056ae,model:_0xdf3d90}=this['editor'],_0x3bd029=_0xdf3d90['document']['getRoot'](_0x4c340f),_0x37346b=_0x3056ae['toView'](_0x3bd029,_0x1ee995);return _0x3056ae['htmlProcessor']['domConverter']['viewToDom'](_0x37346b);}async _collectAndApplyStyles(_0x50f510,_0x2e8a4a){const {stylesheets:_0x18ecce,inlineCss:_0x54b6b4,stripCssClasses:_0x4d15ca}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x2de2ca,rootCssVariables:_0x255832}=await cE({'stylesheets':_0x18ecce||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x54b6b4}),_0x101ea5=[];this['_processElementTree']({'transformations':_0x50f510,'parsedCssRules':_0x2de2ca,'element':_0x2e8a4a,'stripCssClasses':_0x4d15ca,'parentCSSVariablesLookup':_0x255832['get']['bind'](_0x255832),'runAfterDocumentTransformation':_0x44af65=>{_0x101ea5['unshift'](_0x44af65);}});for(const _0x3e206d of _0x101ea5)_0x3e206d();}_processElementTree({element:_0xb15a9c,parsedCssRules:_0x332884,parentCSSVariablesLookup:_0x4a885d,runAfterDocumentTransformation:_0x1f150e,stripCssClasses:_0x3652dc,transformations:_0x448785}){const {stylesMap:_0x28b0b2,localCSSVariables:_0x3a98ce}=function(_0x569c5b){const _0x1f3f39=_0x569c5b['element']['getAttribute']('style')||'',_0x284c51=_0x569c5b['parsedCssRules']['filter'](_0x3ec2bc=>_0x569c5b['element']['matches'](_0x3ec2bc['flatSelector']))['map'](_0x52faf3=>_0x52faf3['stylesMap']),_0x5e3f24=hE(_0x569c5b['stylesProcessor'],[..._0x284c51,_0x1f3f39]);return{'localCSSVariables':oE(_0x569c5b['fallbackCSSVariablesLookup'],_0x5e3f24),'stylesMap':_0x5e3f24};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x4a885d,'parsedCssRules':_0x332884,'element':_0xb15a9c}),_0x5f163a=[];for(const _0x36b967 of _0x448785){const _0x5d552e=_0x36b967(_0xb15a9c,_0x28b0b2,{'runAfterDocumentTransformation':_0x1f150e,'runAfterChildrenTransformation':_0x287c07=>{_0x5f163a['unshift'](_0x287c07);}});_0x5d552e&&_0x5d552e instanceof HTMLElement&&(_0xb15a9c=_0x5d552e);}_0x28b0b2['size']?_0xb15a9c['setAttribute']('style',dE(_0x28b0b2)):_0xb15a9c['removeAttribute']('style');const _0x46b4ce=_0xc27206=>_0x3a98ce['has'](_0xc27206)?_0x3a98ce['get'](_0xc27206):_0x4a885d(_0xc27206);for(const _0x3a8cf3 of _0xb15a9c['children'])_0x3a8cf3 instanceof HTMLElement&&this['_processElementTree']({'element':_0x3a8cf3,'parsedCssRules':_0x332884,'stripCssClasses':_0x3652dc,'transformations':_0x448785,'parentCSSVariablesLookup':_0x46b4ce,'runAfterDocumentTransformation':_0x1f150e});_0x3652dc&&_0xb15a9c['removeAttribute']('class');for(const _0x4fb547 of _0x5f163a)_0x4fb547();}};function dE(_0x302981){return _0x302981['getStylesEntries']()['map'](_0xe5273d=>_0xe5273d['join'](':'))['join'](';')+';';}var fE=class extends _0x11fe30{static get['pluginName'](){return'ExportInlineStylesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){this['editor']['config']['define']('exportInlineStyles',{}),this['editor']['commands']['add']('exportInlineStyles',new uE(this['editor']));}afterInit(){!async function(_0x1a9949){const _0x5c5c20='DUA610emL4Q2kjVIvGMHgWT3uySnzPEw79oZJiCrbstcXKq85NhdfaFRxBlpOY',_0x8cc111=0x791d0,_0x32a85d=window['Date']['now'](),_0x1868af=_0x1a9949['editor'],_0x199269=new window['Promise'](_0x56d894=>{_0x1868af['once']('ready',_0x56d894);}),_0xa0ea04={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x2889fc=_0x1868af['config']['get']('licenseKey');async function _0x35fc86(){let _0x17b834,_0x5abe8f=null,_0xc87f38=null;try{return'GPL'==_0x2889fc?'NotAllowed':(_0x17b834=_0xdd306d(),_0x17b834?(_0x17b834['usageEndpoint']&&(_0xc87f38=_0x1c1bcb(_0x17b834['usageEndpoint'],_0x17b834['jti'])),await _0x4b6050()?_0x31d86e()?_0xac20d5()?'Expired':_0x3194b0()?('evaluation'==_0x17b834['licenseType']&&(_0x5abe8f=_0x250b1d('EvaluationLimit')),await _0x4a5e9e()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0xac20d5(){const _0x3acb6f=['evaluation','trial']['includes'](_0x17b834['licenseType'])?_0x32a85d/0x3e8:0xe10*_0x8cc111;return _0x17b834['exp']<_0x3acb6f;}function _0x31d86e(){const _0x56981f=_0x17b834['features'];return!!_0x56981f&&(!!_0x56981f['includes']('*')||!!_0x56981f['includes']('EIS'));}function _0x3194b0(){const _0x116eba=_0x17b834['licensedHosts'];if(!_0x116eba||0x0==_0x116eba['length'])return!0x0;const {hostname:_0x2bbdde}=new URL(window['location']['href']);if(_0x116eba['includes'](_0x2bbdde))return!0x0;const _0x385ab9=_0x2bbdde['split']('.');return _0x116eba['filter'](_0x5c5540=>_0x5c5540['includes']('*'))['map'](_0x34f9ae=>_0x34f9ae['split']('.'))['filter'](_0x5e902a=>_0x5e902a['length']<=_0x385ab9['length'])['map'](_0x13de5e=>Array(_0x385ab9['length']-_0x13de5e['length'])['fill']('*'===_0x13de5e[0x0]?'*':'')['concat'](_0x13de5e))['some'](_0x47c665=>_0x385ab9['every']((_0x24cb70,_0x17efd1)=>_0x47c665[_0x17efd1]===_0x24cb70||'*'===_0x47c665[_0x17efd1]));}function _0x4a5e9e(){return _0x5abe8f&&_0xc87f38?new window['Promise']((_0x1033bf,_0x3d8bb7)=>{_0x5abe8f['then'](_0x1033bf,_0x3d8bb7),_0xc87f38['then'](_0x244a7e=>{'Valid'!=_0x244a7e&&_0x1033bf(_0x244a7e);},_0x3d8bb7);}):_0x5abe8f||_0xc87f38||'Valid';}}function _0x1c1bcb(_0x1419a3,_0x3054f7){return new window['Promise'](_0xa00cb0=>{if(_0x33e60c())return _0xa00cb0('Valid');_0xe559ff(),_0x1868af['decorate']('_sendUsageRequest');let _0x3275d6=!0x1;const _0x2dc4f3=_0xea66bb();function _0x1cb144(_0x4589c3){return!!_0x4589c3&&('object'==typeof _0x4589c3||'function'==typeof _0x4589c3)&&'function'==typeof _0x4589c3['then']&&'function'==typeof _0x4589c3['catch'];}function _0x21cc51(_0x3cde56){_0x4a115c(_0x3cde56)['then'](_0x93be4d=>_0x93be4d&&'ok'==_0x93be4d['status']?_0x5e69eb(_0x509477(_0x2dc4f3+_0x3054f7))!=_0x93be4d['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x716e11=>(_0x2ade3d(),_0x716e11),()=>{const _0x526db8=_0x3ae772();return null==_0x526db8?(_0x2ade3d(),'Valid'):_0x32a85d-_0x526db8>0x240c8400?'UsageLimit':'Valid';})['then'](_0xa00cb0)['catch'](()=>{_0xa00cb0('UsageLimit');});const _0x31d3b3=0x36ee80;function _0x2ade3d(){const _0x3482ce='llct-'+_0x5e69eb(_0x509477(_0x1419a3)),_0x1d25e5=_0x1d0a46(_0x5e69eb(window['Math']['ceil'](_0x32a85d/_0x31d3b3)));window['localStorage']['setItem'](_0x3482ce,_0x1d25e5);}function _0x3ae772(){const _0x320b7f='llct-'+_0x5e69eb(_0x509477(_0x1419a3)),_0x22ea0e=window['localStorage']['getItem'](_0x320b7f);return _0x22ea0e?window['parseInt'](_0x1d0a46(_0x22ea0e),0x10)*_0x31d3b3:null;}function _0x4a115c(_0x458b20){return new window['Promise']((_0x1fb621,_0x122e46)=>{_0x458b20['then'](_0x1fb621,_0x122e46),window['setTimeout'](_0x122e46,0x1d4c0);});}}_0x1868af['on']('_sendUsageRequest',(_0x1088ec,_0xea27a1)=>{if(_0xea27a1[0x0]!=_0x1419a3)return _0xa00cb0('UsageLimit');_0xea27a1[0x1]={..._0xea27a1[0x1],'requestId':_0x2dc4f3};},{'priority':'high'}),_0x1868af['on']('_sendUsageRequest',_0x44b281=>{_0x1cb144(_0x44b281['return'])&&(_0x3275d6=!0x0,_0x21cc51(_0x44b281['return']));},{'priority':'low'}),_0x199269['then'](()=>{_0x3275d6||_0xa00cb0('UsageLimit');});});function _0x33e60c(){return'auto'==_0x1868af['editing']['view']['_overlayModeHint'];}function _0xe559ff(){_0x1868af['editing']['view']['_overlayModeHint']='auto';}}function _0x250b1d(_0x1760fb){const _0x346de2=[new window['Promise'](_0x22d5ed=>setTimeout(_0x22d5ed,0x93ecc)),_0x199269['then'](()=>new window['Promise'](_0xe0838f=>{let _0x1464aa=0x0;_0x1868af['model']['on']('applyOperation',(_0x2b7e13,_0x37065f)=>{_0x37065f[0x0]['isDocumentOperation']&&_0x1464aa++,0x5e8==_0x1464aa&&(_0xe0838f(),_0x2b7e13['off']());});}))];return window['Promise']['race'](_0x346de2)['then'](()=>_0x1760fb);}async function _0x4f0c7(){await _0x199269;const _0x4a6e04=_0x1868af['commands']['get']('exportInlineStyles');_0x4a6e04&&_0x4a6e04['on']('execute',_0x2e7725=>{_0x2e7725['stop']();},{'priority':'highest'}),_0x1868af['model']['change']=_0x54fd12,_0x1868af['model']['enqueueChange']=_0x54fd12,_0x1868af['enableReadOnlyMode']('model');}function _0x4f98ad(_0x4556db){const _0x53da06=_0x62e3ba();_0x1868af[_0x53da06]='exportInlineStylesLicenseKey'+_0x4556db,'Valid'!=_0x4556db&&_0x4f0c7();}function _0x62e3ba(){const _0x353b32=window['String'](window['performance']['now']())['replace']('.','');let _0x14d2b9='D';for(let _0x369b72=0x0;_0x369b72<_0x353b32['length'];_0x369b72+=0x2){let _0x319c48=window['parseInt'](_0x353b32['substring'](_0x369b72,_0x369b72+0x2));_0x319c48>=0x3e&&(_0x319c48-=0x3e),_0x14d2b9+=_0x5c5c20[_0x319c48];}return _0x14d2b9;}function _0xdd306d(){const _0x5cdb9d=_0x2889fc['split']('.');if(0x3!=_0x5cdb9d['length'])return null;return _0x4a5f85(_0x5cdb9d[0x1]);function _0x4a5f85(_0x109e02){const _0x395630=_0x11a751(_0x109e02);return _0x395630&&_0x15dec2()?_0x395630:null;function _0x15dec2(){const _0x1db3e4=_0x395630['jti'],_0x3c6ef1=window['parseInt'](_0x1db3e4['substring'](_0x1db3e4['length']-0x8),0x10),_0x22c67b={..._0x395630,'jti':_0x1db3e4['substring'](0x0,_0x1db3e4['length']-0x8)};return delete _0x22c67b['vc'],_0x509477(_0x22c67b)==_0x3c6ef1;}}}async function _0x4b6050(){let _0x5bf650=!0x0;try{const [_0x550aa1,_0x27b223,_0x3dc8a4]=_0x2889fc['split']('.');return _0x3d870a(_0x550aa1),await _0x284740(_0x550aa1,_0x27b223,_0x3dc8a4),_0x5bf650;}catch{return!0x1;}function _0x3d870a(_0x2326ee){const _0x13d3f1=_0x11a751(_0x2326ee);_0x13d3f1&&'ES256'==_0x13d3f1['alg']||(_0x5bf650=!0x1);}async function _0x284740(_0x46be5e,_0x788009,_0x42e26b){const _0x417c70=window['Uint8Array']['from'](_0x211ae6(_0x42e26b),_0xde23ed=>_0xde23ed['charCodeAt'](0x0)),_0x38f71f=new window['TextEncoder']()['encode'](_0x46be5e+'.'+_0x788009),_0x366672=window['crypto']['subtle'];if(!_0x366672)return;const _0x4395d3=await _0x366672['importKey']('jwk',_0xa0ea04,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x366672['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x4395d3,_0x417c70,_0x38f71f)||(_0x5bf650=!0x1);}}function _0x11a751(_0x175c47){return _0x175c47['startsWith']('ey')?JSON['parse'](_0x211ae6(_0x175c47)):null;}function _0x211ae6(_0x49be42){return window['atob'](_0x49be42['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x509477(_0x19814f){let _0x5aadaf=0x1505;function _0x2cd5cd(_0x58b3bd){for(let _0x223248=0x0;_0x223248<_0x58b3bd['length'];_0x223248++){const _0x2da3fc=_0x58b3bd['charCodeAt'](_0x223248);_0x5aadaf=(_0x5aadaf<<0x5)+_0x5aadaf+_0x2da3fc,_0x5aadaf&=_0x5aadaf;}}function _0x5a66af(_0x21afc2){Array['isArray'](_0x21afc2)?_0x21afc2['forEach'](_0x5a66af):_0x21afc2&&'object'==typeof _0x21afc2?Object['entries'](_0x21afc2)['sort']()['forEach'](([_0x101790,_0x5b15ec])=>{_0x2cd5cd(_0x101790),_0x5a66af(_0x5b15ec);}):_0x2cd5cd(window['String'](_0x21afc2));}return _0x5a66af(_0x19814f),_0x5aadaf>>>0x0;}function _0x5e69eb(_0x4374e2){return _0x4374e2['toString'](0x10)['padStart'](0x8,'0');}function _0x1d0a46(_0x36c042){return _0x36c042['split']('')['reverse']()['join']('');}function _0x54fd12(){}_0x4f98ad(await _0x35fc86());}(this);}},mE=class extends _0x11fe30{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[fE];}init(){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5df15d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3c40f9;for(const _0x1ad0b9 in _0x5df15d){const _0x49f23d=_0x1ad0b9,_0x114665=_0x5df15d[_0x49f23d];if('exportInlineStylesLicenseKeyValid'==_0x114665||'exportInlineStylesLicenseKeyInvalid'==_0x114665||'exportInlineStylesLicenseKeyExpired'==_0x114665||'exportInlineStylesLicenseKeyDomainLimit'==_0x114665||'exportInlineStylesLicenseKeyNotAllowed'==_0x114665||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x114665||'exportInlineStylesLicenseKeyUsageLimit'==_0x114665){delete _0x5df15d[_0x49f23d],_0x3c40f9=_0x114665,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x3c40f9&&_0x5df15d['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x3c40f9&&_0x5df15d['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x3c40f9&&_0x5df15d['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x3c40f9&&_0x5df15d['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x3c40f9&&_0x5df15d['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x3c40f9&&_0x5df15d['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function pE(_0x4adc77,_0x42ab9d){const _0x5b93cf=_0x4adc77['ownerDocument'],{table:_0xfb1345,cell:_0x166233}=gE(_0x5b93cf,'100%');_0x42ab9d['align']&&_0x166233['setAttribute']('align',nE(_0x42ab9d['align']));let _0x427030=_0x166233;if(_0x42ab9d['width']){const {table:_0x1ab414,cell:_0x4a5505}=gE(_0x5b93cf,nE(_0x42ab9d['width']));_0x166233['appendChild'](_0x1ab414),_0x427030=_0x4a5505;}return _0x4adc77['replaceWith'](_0xfb1345),_0x4adc77['removeAttribute']('align'),_0x4adc77['removeAttribute']('width'),_0x427030['appendChild'](_0x4adc77),_0x427030;}function gE(_0x149f28,_0x1a017a){const _0x7ae1e9=_0x149f28['createElement']('table');_0x1a017a&&(_0x7ae1e9['style']['width']=_0x1a017a,_0x7ae1e9['setAttribute']('width',vE(_0x1a017a))),_0x7ae1e9['setAttribute']('cellpadding','0'),_0x7ae1e9['setAttribute']('cellspacing','0'),_0x7ae1e9['setAttribute']('border','0'),_0x7ae1e9['setAttribute']('role','presentation');const _0x340e7d=_0x149f28['createElement']('tbody'),_0x2ad26a=_0x149f28['createElement']('tr'),_0x50fe42=_0x149f28['createElement']('td');return _0x7ae1e9['appendChild'](_0x340e7d),_0x340e7d['appendChild'](_0x2ad26a),_0x2ad26a['appendChild'](_0x50fe42),{'table':_0x7ae1e9,'cell':_0x50fe42};}function OE(_0x426be2){const _0x458192=_0x426be2['getAsString']('margin-left'),_0x3f5a15=_0x426be2['getAsString']('margin-right'),_0x54fd66=_0x458192&&nE(_0x458192),_0x5a6cd8=_0x3f5a15&&nE(_0x3f5a15);return'auto'===_0x54fd66&&'auto'===_0x5a6cd8?'center':'auto'===_0x54fd66?'right':'auto'===_0x5a6cd8?'left':void 0x0;}function wE(_0x26a845,_0x68435d){const _0x33e7e9=_0x26a845['ownerDocument']['createElement'](_0x68435d);for(const _0x1a79f5 of Array['from'](_0x26a845['attributes']))_0x33e7e9['setAttribute'](_0x1a79f5['name'],_0x1a79f5['value']);for(;_0x26a845['firstChild'];)_0x33e7e9['appendChild'](_0x26a845['firstChild']);return _0x33e7e9;}function bE(_0xd62885){if('TABLE'!==_0xd62885['tagName'])return!0x1;if('presentation'!==_0xd62885['getAttribute']('role'))return!0x1;const _0x295823=yE(_0xd62885);return null!==_0x295823&&_0x295823['hasAttribute']('align');}function yE(_0x46415a){let _0x38088e=_0x46415a;0x1===_0x46415a['children']['length']&&'TBODY'===_0x46415a['children'][0x0]['tagName']&&(_0x38088e=_0x46415a['children'][0x0]);const _0x170278=_0x38088e['children'];if(0x1!==_0x170278['length']||'TR'!==_0x170278[0x0]['tagName'])return null;const _0x325cc8=_0x170278[0x0]['children'];return 0x1!==_0x325cc8['length']||'TD'!==_0x325cc8[0x0]['tagName']?null:_0x325cc8[0x0];}function vE(_0x595ab7){return function(_0xdc69fd){return _0xdc69fd['endsWith']('px')?_0xdc69fd['slice'](0x0,-0x2):_0xdc69fd;}(nE(_0x595ab7));}const _E=(_0x35376b,_0x5717dc,{runAfterDocumentTransformation:_0x54f475,runAfterChildrenTransformation:_0x538be9})=>{if('FIGURE'!==_0x35376b['tagName'])return;const _0x1d64b8=_0x5717dc['getAsString']('float');if(_0x1d64b8){if(TE(_0x35376b))_0x54f475(()=>{EE(_0x35376b,{'align':_0x1d64b8});});else{const {table:_0xcc0c26,cell:_0xed88d7}=gE(_0x35376b['ownerDocument']);_0xcc0c26['setAttribute']('align',nE(_0x1d64b8)),_0xcc0c26['setAttribute']('style',function(_0x4d0035){return _0x4d0035['getStylesEntries']()['map'](_0x23ead9=>_0x23ead9['join'](':'))['join'](';')+';';}(_0x5717dc)),_0x538be9(()=>{for(const _0x30d95d of Array['from'](_0x35376b['childNodes']))_0xed88d7['appendChild'](_0x30d95d);}),_0x54f475(()=>{_0x35376b['replaceWith'](_0xcc0c26);});}}else{const _0x25e07f=OE(_0x5717dc),_0xb5b361=_0x5717dc['getAsString']('width');if(!_0x25e07f&&!_0xb5b361)return;pE(_0x35376b,{'align':_0x25e07f,'width':_0xb5b361}),_0xb5b361&&_0x5717dc['set']('width','100%'),_0x5717dc['remove']('margin-left'),_0x5717dc['remove']('margin-right'),_0x5717dc['remove']('min-width'),_0x5717dc['remove']('max-width'),_0x54f475(()=>{if(!EE(_0x35376b)){const _0x1273f5=wE(_0x35376b,'div');_0x35376b['replaceWith'](_0x1273f5);}});}};function EE(_0xc37a59,_0x210c14={}){const _0x6f5ba2=TE(_0xc37a59);if(!_0x6f5ba2)return null;for(const _0x1132ca of['id','class']){const _0x420f86=_0xc37a59['getAttribute'](_0x1132ca);_0x420f86&&_0x6f5ba2['setAttribute'](_0x1132ca,_0x420f86);}for(const _0x489661 of['display','float','width','height'])_0x6f5ba2['style']['removeProperty'](_0x489661);const _0x5ebb6d=_0xc37a59['getAttribute']('style');if(_0x5ebb6d){const _0x2311ee=_0x6f5ba2['getAttribute']('style')||'';_0x6f5ba2['setAttribute']('style',_0x5ebb6d+_0x2311ee);}return _0x210c14['align']&&_0x6f5ba2['setAttribute']('align',nE(_0x210c14['align'])),'fixed'!==_0x6f5ba2['style']['tableLayout']||_0x6f5ba2['style']['width']||(_0x6f5ba2['style']['width']='100%',_0x6f5ba2['setAttribute']('width','100%')),_0xc37a59['replaceWith'](_0x6f5ba2),_0x6f5ba2;}function TE(_0x2b1dc3){const _0x40d83f=Array['from'](_0x2b1dc3['children']);return 0x1===_0x40d83f['length']&&'TABLE'===_0x40d83f[0x0]['tagName']?_0x40d83f[0x0]:null;}var AE=class extends _0x11fe30{static get requires(){return[z_];}static get['pluginName'](){return'ImageEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {config:_0x439d67,plugins:_0x5edebf}=this['editor'];_0x439d67['get']('exportInlineStyles')?.['transformations']?.['includes'](_E)||_0x5edebf['get'](z_)['_checkUnsupportedPlugin']('ImageBlock',{'description':'Block\x20images\x20are\x20unsupported\x20in\x20email\x20environments.\x20Consider\x20enabling\x20the\x20`transformEmailFigureToTable`\x20transformation\x20in\x20the\x20`exportInlineStyles`\x20in\x20order\x20to\x20make\x20block\x20images\x20work\x20in\x20email\x20clients.'});}},SE=class extends _0x11fe30{static get requires(){return[z_];}static get['pluginName'](){return'MathTypeEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](z_)['_checkUnsupportedPlugin']('MathType');}},IE=class extends _0x11fe30{static get requires(){return[z_];}static get['pluginName'](){return'ExportInlineStylesEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x6064c7=this['editor']['plugins']['get'](z_);this['editor']['plugins']['has']('ExportInlineStyles')||_0x6064c7['_logSuppressibleWarning']('email-configuration-missing-export-inline-styles-plugin');}},kE=class extends _0x11fe30{static get requires(){return[z_];}static get['pluginName'](){return'ListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x5236fa=this['editor']['plugins']['get'](z_),_0x53ab56=this['editor']['config']['get']('list');_0x53ab56&&_0x53ab56['properties']&&_0x53ab56['properties']['reversed']&&_0x5236fa['_logSuppressibleWarning']('email-configuration-unsupported-reversed-list'),_0x53ab56&&_0x53ab56['enableListItemMarkerFormatting']&&_0x5236fa['_logSuppressibleWarning']('email-configuration-unsupported-list-item-marker-formatting');}},xE=class extends _0x11fe30{static get requires(){return[z_];}static get['pluginName'](){return'TableEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['_checkRequiredTablePlugins'](),this['_checkTableConfig']();}['_checkRequiredTablePlugins'](){const {plugins:_0x4c4bb2}=this['editor'],_0x76f632=_0x4c4bb2['get'](z_);_0x4c4bb2['has']('Table')&&(_0x4c4bb2['has']('PlainTableOutput')||_0x76f632['_logSuppressibleWarning']('email-configuration-missing-plain-table-output-plugin'),_0x4c4bb2['has']('TableLayout')||_0x76f632['_logSuppressibleWarning']('email-configuration-missing-table-layout-plugin'));}['_checkTableConfig'](){const {config:_0x46d686,plugins:_0x5d67d6}=this['editor'];_0x46d686['get']('table')&&_0x5d67d6['has']('Table')&&(this['_checkTablePropertiesConfig']('tableCellProperties'),this['_checkTablePropertiesConfig']('tableProperties'));}_checkTablePropertiesConfig(_0x147a93){const _0x56d6de=this['editor']['plugins']['get'](z_);_0x56d6de['_validateConfigColorValue']('table.'+_0x147a93+'.borderColors'),_0x56d6de['_validateConfigColorValue']('table.'+_0x147a93+'.backgroundColors'),_0x56d6de['_validateConfigColorValue']('table.'+_0x147a93+'.defaultProperties.borderColor'),_0x56d6de['_validateConfigColorValue']('table.'+_0x147a93+'.defaultProperties'),_0x56d6de['_validateConfigColorFormat']('table.'+_0x147a93+'.colorPicker.format');}},CE=class extends _0x11fe30{static get requires(){return[z_];}static get['pluginName'](){return'EmptyBlockEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x14197e=this['editor']['plugins']['get'](z_);this['editor']['plugins']['has']('EmptyBlock')||_0x14197e['_logSuppressibleInfo']('email-configuration-missing-empty-block-plugin','Consider\x20enabling\x20the\x20EmptyBlock\x20plugin\x20to\x20ensure\x20that\x20exported\x20content\x20has\x20empty\x20blocks.','features/email-editing/email.html#empty-block-plugin');}},RE=class extends _0x11fe30{static get requires(){return[z_];}static get['pluginName'](){return'FontEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {plugins:_0x568c1f}=this['editor'];_0x568c1f['has']('FontColorEditing')&&this['_checkColorConfig']('fontColor'),_0x568c1f['has']('FontBackgroundColorEditing')&&this['_checkColorConfig']('fontBackgroundColor');}['_checkColorConfig'](_0x3aa94b){const _0x598454=this['editor']['plugins']['get'](z_);_0x598454['_validateConfigColorValue'](_0x3aa94b+'.colors'),_0x598454['_validateConfigColorValue'](_0x3aa94b+'.documentColors'),_0x598454['_validateConfigColorFormat'](_0x3aa94b+'.colorPicker.format');}},PE=class extends _0x11fe30{static get requires(){return[z_];}static get['pluginName'](){return'SourceEditingEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {plugins:_0xed0a30}=this['editor'],_0xa67842=_0xed0a30['get'](z_);_0xed0a30['has']('SourceEditing')||_0xed0a30['has']('SourceEditingEnhanced')||_0xa67842['_logSuppressibleWarning']('email-configuration-missing-source-editing-plugin');}},NE=class extends _0x11fe30{static get requires(){return[z_];}static get['pluginName'](){return'MarkdownEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](z_)['_checkUnsupportedPlugin']('Markdown');}},ME=class GeneralHtmlIntegrationSupport extends _0x11fe30{static ['UNSUPPORTED_ELEMENTS']=new Set(['object','article','details','main','nav','summary','abbr','acronym','bdi','output','hgroup','form','input','button','audio','canvas','meter','progress','iframe']);static get requires(){return[z_];}static get['pluginName'](){return'GeneralHtmlIntegrationSupport';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {plugins:_0x3dcae1}=this['editor'];if(!_0x3dcae1['has']('DataFilter'))return;const _0x2dae5e=_0x3dcae1['get']('DataFilter'),_0x1e34b9=_0x3dcae1['get'](z_);for(const _0x48e372 of GeneralHtmlIntegrationSupport['UNSUPPORTED_ELEMENTS'])_0x2dae5e['once']('register:'+_0x48e372,(_0x42d291,_0x5d4f0d)=>{_0x1e34b9['_logSuppressibleWarning']('email-unsupported-html-element',{'element':_0x5d4f0d['view']});});}},LE=class extends _0x11fe30{static get requires(){return[z_];}static get['pluginName'](){return'MergeFieldsEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x1726bb=this['editor']['plugins']['get'](z_);this['editor']['plugins']['has']('MergeFields')||_0x1726bb['_logSuppressibleInfo']('email-configuration-missing-merge-fields-plugin','Consider\x20enabling\x20the\x20MergeFields\x20plugin\x20which\x20allows\x20inserting\x20dynamic\x20data\x20placeholders\x20into\x20content.','features/email-editing/email.html#merge-fields-plugin');}},$E=class extends _0x11fe30{static get requires(){return[z_];}static get['pluginName'](){return'TemplateEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x4d5253=this['editor']['plugins']['get'](z_);this['editor']['plugins']['has']('Template')||_0x4d5253['_logSuppressibleInfo']('email-configuration-missing-template-plugin','Consider\x20enabling\x20the\x20Template\x20plugin\x20which\x20allows\x20inserting\x20predefined\x20e-mail\x20templates\x20into\x20the\x20editor.','features/email-editing/email.html#template-plugin');}},DE=class extends _0x11fe30{static get requires(){return[z_];}static get['pluginName'](){return'UploadEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](z_)['_checkUnsupportedPlugin']('Base64UploadAdapter');}},QE=class extends _0x11fe30{static get requires(){return[z_];}static get['pluginName'](){return'MediaEmbedEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](z_)['_checkUnsupportedPlugin']('MediaEmbed');}},jE=class extends _0x11fe30{static get requires(){return[z_];}static get['pluginName'](){return'TodoListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](z_)['_checkUnsupportedPlugin']('TodoList');}},UE=class extends _0x11fe30{static get requires(){return[z_];}static get['pluginName'](){return'MultiLevelListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){this['editor']['plugins']['get'](z_)['_checkUnsupportedPlugin']('MultiLevelList',{'description':'The\x20multi-level\x20lists\x20are\x20rendered\x20incorrectly\x20in\x20Outlook\x202021.'});}},VE=class extends _0x11fe30{static get requires(){return[z_];}static get['pluginName'](){return'LinkEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const {config:_0x5afc84,plugins:_0x325f05}=this['editor'],_0x44fb23=_0x325f05['get'](z_);_0x5afc84['get']('exportInlineStyles')?.['transformations']?.['includes'](_E)||_0x44fb23['_checkUnsupportedPlugin']('LinkImage',{'description':'Block\x20images\x20are\x20unsupported\x20in\x20email\x20environments.\x20The\x20LinkImage\x20plugin\x20is\x20designed\x20to\x20work\x20exclusively\x20with\x20block\x20images,\x20which\x20makes\x20it\x20not\x20applicable\x20for\x20email\x20integration.\x20Inline\x20images\x20are\x20still\x20supported\x20and\x20function\x20correctly\x20with\x20the\x20standard\x20Link\x20feature.\x20Consider\x20enabling\x20the\x20`transformEmailFigureToTable`\x20transformation\x20in\x20the\x20`exportInlineStyles`\x20in\x20order\x20to\x20make\x20block\x20images\x20work\x20in\x20email\x20clients.'});}},BE=class extends _0x11fe30{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'EmailConfigurationHelper';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[tE,AE,SE,IE,kE,xE,CE,RE,PE,NE,ME,LE,$E,DE,QE,jE,UE,VE];}init(){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5482cf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xe9b723;for(const _0x4aa2bc in _0x5482cf){const _0x1ae9d7=_0x4aa2bc,_0x576b31=_0x5482cf[_0x1ae9d7];if('emailConfigurationHelperLicenseKeyValid'==_0x576b31||'emailConfigurationHelperLicenseKeyInvalid'==_0x576b31||'emailConfigurationHelperLicenseKeyExpired'==_0x576b31||'emailConfigurationHelperLicenseKeyDomainLimit'==_0x576b31||'emailConfigurationHelperLicenseKeyNotAllowed'==_0x576b31||'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x576b31||'emailConfigurationHelperLicenseKeyUsageLimit'==_0x576b31){delete _0x5482cf[_0x1ae9d7],_0xe9b723=_0x576b31,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'emailConfigurationHelperLicenseKeyInvalid'==_0xe9b723&&_0x5482cf['_showLicenseError']('invalid'),'emailConfigurationHelperLicenseKeyExpired'==_0xe9b723&&_0x5482cf['_showLicenseError']('expired'),'emailConfigurationHelperLicenseKeyDomainLimit'==_0xe9b723&&_0x5482cf['_showLicenseError']('domainLimit'),'emailConfigurationHelperLicenseKeyNotAllowed'==_0xe9b723&&_0x5482cf['_showLicenseError']('featureNotAllowed','EmailConfigurationHelper'),'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0xe9b723&&_0x5482cf['_showLicenseError']('evaluationLimit'),'emailConfigurationHelperLicenseKeyUsageLimit'==_0xe9b723&&_0x5482cf['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};const HE=(_0x1adfc8,_0x106233)=>{if(!['TABLE','IMG']['includes'](_0x1adfc8['tagName']))return;const _0x326a67=_0x106233['getAsString']('float');if(_0x326a67){const _0x451df5=nE(_0x326a67);'left'!==_0x451df5&&'right'!==_0x451df5||_0x1adfc8['setAttribute']('align',_0x451df5);}},FE=(_0xb4df8,_0x598c7e)=>{if('TABLE'!==_0xb4df8['tagName']||_0x598c7e['has']('float'))return;const _0x11a22e=OE(_0x598c7e),_0x2e00a5=_0x598c7e['getAsString']('width');_0x11a22e&&(pE(_0xb4df8,{'align':_0x11a22e}),_0x2e00a5?_0xb4df8['setAttribute']('width',vE(_0x2e00a5)):_0x598c7e['remove']('width'),_0x598c7e['remove']('margin-left'),_0x598c7e['remove']('margin-right'));},ZE=(_0x425264,_0x2c4d9d)=>{if('IMG'!==_0x425264['tagName'])return;const _0x103668=_0x2c4d9d['getAsString']('width');_0x103668&&(_0x425264['setAttribute']('width',vE(_0x103668)),_0x425264['setAttribute']('height','auto'));},GE=(_0x73735e,_0x20e3c7,{runAfterDocumentTransformation:_0x253c57})=>{if('FIGCAPTION'!==_0x73735e['tagName'])return;const _0x4a046d=_0x20e3c7['getAsString']('display'),_0x4b6512=_0x20e3c7['getAsString']('caption-side');_0x20e3c7['remove']('caption-side'),_0x4a046d&&'table-caption'===nE(_0x4a046d)&&_0x20e3c7['remove']('display');const _0x337ad0=_0x4b6512&&'top'===nE(_0x4b6512);_0x253c57(()=>{const _0x44dcdf=wE(_0x73735e,'div'),_0x5ba9f=_0x73735e['previousElementSibling'];_0x337ad0&&_0x5ba9f&&'TABLE'===_0x5ba9f['tagName']?(_0x5ba9f['before'](_0x44dcdf),_0x73735e['remove']()):_0x73735e['replaceWith'](_0x44dcdf);});},XE=(_0x283880,_0x308670,{runAfterChildrenTransformation:_0x4bedf1})=>{'TD'===_0x283880['tagName']&&_0x4bedf1(()=>{const _0x5e991=Array['from'](_0x283880['children']);if(0x0===_0x5e991['length'])return;const _0xb82376=_0x5e991['map'](qE),_0x2e01da=_0xb82376[0x0];if(_0x2e01da&&_0xb82376['every'](_0x896390=>_0x896390===_0x2e01da)){_0x283880['setAttribute']('align',_0x2e01da);for(const _0x82c049 of _0x5e991)if(bE(_0x82c049)){const _0x39783b=yE(_0x82c049);_0x82c049['replaceWith'](...Array['from'](_0x39783b['childNodes']));}else _0x82c049['style']['removeProperty']('text-align'),_0x82c049['style']['length']||_0x82c049['removeAttribute']('style');}});};function qE(_0x39454f){return bE(_0x39454f)?yE(_0x39454f)['getAttribute']('align'):_0x39454f['style']['textAlign']||void 0x0;}const WE=(_0x27cd34,_0x517da3,{runAfterChildrenTransformation:_0x3cb111})=>{'TABLE'===_0x27cd34['tagName']&&_0x3cb111(()=>{const _0x27d0e3=function(_0x378c25,_0x791e3d){for(const _0x29e3c8 of _0x378c25['children'])if(_0x29e3c8['tagName']===_0x791e3d)return _0x29e3c8;return null;}(_0x27cd34,'COLGROUP');if(!_0x27d0e3)return;const _0x24fe54=Array['from'](_0x27d0e3['children'])['filter'](_0x1b0d3c=>'COL'===_0x1b0d3c['tagName']);if(_0x24fe54['some'](_0x15c4e9=>KE(_0x15c4e9,'span')))return;const _0x5c35b6=_0x24fe54['map'](YE);if(!_0x5c35b6['some'](Boolean))return;const _0x41ad8b=function(_0x1e075d){const _0x57c72b=[];for(const _0x507124 of _0x1e075d['children'])if(['THEAD','TBODY','TFOOT']['includes'](_0x507124['tagName'])){for(const _0xa6489d of _0x507124['children'])'TR'===_0xa6489d['tagName']&&_0x57c72b['push'](_0xa6489d);}return _0x57c72b;}(_0x27cd34)['map'](zE);if(!_0x41ad8b['some'](_0x53693c=>_0x53693c['length']!==_0x5c35b6['length']||_0x53693c['some'](_0x2eca5c=>function(_0x114098){return KE(_0x114098,'colspan')||KE(_0x114098,'rowspan');}(_0x2eca5c)||function(_0x17605f){return Boolean(_0x17605f['style']['getPropertyValue']('width'))||Boolean(_0x17605f['getAttribute']('width'));}(_0x2eca5c)))){for(const _0xb33372 of _0x41ad8b)_0xb33372['forEach']((_0x747e3d,_0x1fbd62)=>{const _0x1c2530=_0x5c35b6[_0x1fbd62];_0x1c2530&&(_0x747e3d['setAttribute']('width',vE(_0x1c2530)),_0x747e3d['style']['setProperty']('width',_0x1c2530));});}});};function zE(_0x17f3ca){return Array['from'](_0x17f3ca['children'])['filter'](_0x44cb42=>'TD'===_0x44cb42['tagName']||'TH'===_0x44cb42['tagName']);}function YE(_0xa3be7f){const _0x4a7e8b=_0xa3be7f['style']['getPropertyValue']('width');if(_0x4a7e8b)return _0x4a7e8b;const _0x4450bf=_0xa3be7f['getAttribute']('width');if(!_0x4450bf)return;const _0x453123=nE(_0x4450bf);return/^\d+(\.\d+)?$/['test'](_0x453123)?_0x453123+'px':_0x453123;}function KE(_0x49d960,_0x2c0d57){const _0x2ee51d=_0x49d960['getAttribute'](_0x2c0d57);return null!==_0x2ee51d&&'1'!==_0x2ee51d;}function JE(_0x156503={}){const _0x1ee745=[];return _0x156503['useFigureToTableFallback']&&_0x1ee745['push'](_E,GE,XE),_0x1ee745['push'](HE,FE,ZE,WE),_0x1ee745;}function tT(_0x3a6ffd,_0x52f790){const t=_0x3a6ffd['t'];switch(_0x52f790){case'Export\x20to\x20PDF':return t('Export\x20to\x20PDF');case'An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.':return t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.');case'PDF\x20export\x20started':return t('PDF\x20export\x20started');case'PDF\x20export\x20failed':return t('PDF\x20export\x20failed');case'PDF\x20export\x20successful':return t('PDF\x20export\x20successful');case'Exporting\x20PDF\x20document':return t('Exporting\x20PDF\x20document');default:return _0x52f790;}}var eT=class extends _0x44d8e7{constructor(_0xe4c135){super(_0xe4c135),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}execute(_0x41f0e8={}){const {editor:_0x287f23}=this,_0x4ff962=_0x41f0e8['version']||_0x287f23['config']['get']('exportPdf.version'),_0x4c86a7=_0x41f0e8['converterUrl']||function(_0xc1e1ef){return 0x2===_0xc1e1ef?'https://pdf-converter.cke-cs.com/v2/convert/html-pdf':'https://pdf-converter.cke-cs.com/v1/convert/';}(_0x4ff962),_0x5280d1=_0x41f0e8['dataCallback']||(_0x1f30d5=>_0x1f30d5['data']['get']()),_0x1db6b8=_0x287f23['plugins']['get']('ExportPdf'),_0xdd75db=_0x41f0e8['token']||_0x1db6b8['_token'];return this['isBusy']=!0x0,this['refresh'](),_0x320c18(_0x41f0e8['stylesheets']||['EDITOR_STYLES'])['then'](async _0x21fdf6=>{if(_0x287f23['ui']['ariaLiveAnnouncer']['announce'](tT(_0x287f23['locale'],'PDF\x20export\x20started')),_0x287f23['plugins']['has']('MergeFields')){_0x41f0e8['converterOptions']||(_0x41f0e8['converterOptions']={});const _0x44890b=_0x287f23['plugins']['get']('MergeFieldsEditing'),_0x3a549c=_0x44890b['previewMode'],{prefix:_0xc3f497,suffix:_0x44e79f}=_0x287f23['config']['get']('mergeFields'),_0x32b991='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP88B8AAuUB8e2ujYwAAAAASUVORK5CYII=',_0x447163={'prefix':_0xc3f497,'suffix':_0x44e79f,'data':{}};if('$labels'===_0x3a549c){for(const _0x8bdf7b of _0x44890b['getMergeFieldsIds']())'image'===_0x44890b['getMergeFieldType'](_0x8bdf7b)?_0x447163['data'][_0x8bdf7b]=_0x32b991:_0x447163['data'][_0x8bdf7b]=_0x44890b['wrapInAffixes'](_0x44890b['getLabel'](_0x8bdf7b)||_0x8bdf7b);}else{const _0x35c475='$defaultValues'===_0x3a549c?_0x44890b['getDefaultValues']():_0x44890b['getDataSetValues'](_0x3a549c,!0x0);for(const _0x46fdea of Object['entries'](_0x35c475)){const [_0x2363b4,_0x216791]=_0x46fdea;'image'===_0x44890b['getMergeFieldType'](_0x2363b4)?_0x447163['data'][_0x2363b4]=null!==_0x216791?_0x216791:_0x32b991:_0x447163['data'][_0x2363b4]=null!==_0x216791?_0x216791:_0x44890b['getLabel'](_0x2363b4)||_0x2363b4;}}_0x41f0e8['converterOptions']['merge_fields']=_0x447163;}const _0x5c794d=0x2===_0x4ff962?function(_0x4a4e0a){const _0x4bbedb=_0x4a4e0a?.['document']?.['margins'];return iT({'pageWidth':sT(_0x4a4e0a?.['document']?.['size']||'A4'),'marginLeft':_0x4bbedb?.['left'],'marginRight':_0x4bbedb?.['right']});}(_0x41f0e8['converterOptions']):(_0x54dcfa=_0x41f0e8['converterOptions'],iT({'pageWidth':sT(_0x54dcfa?.['format']||'A4'),'marginLeft':_0x54dcfa?.['margin_left'],'marginRight':_0x54dcfa?.['margin_right']}));var _0x54dcfa;const _0x302519={'html':('\x0a\x09\x09\x09\x09\x09<!DOCTYPE\x20html>\x0a\x09\x09\x09\x09\x09<html>\x0a\x09\x09\x09\x09\x09\x09<head>\x0a\x09\x09\x09\x09\x09\x09\x09<title>CKEditor\x205\x20PDF\x20document</title>\x0a\x09\x09\x09\x09\x09\x09\x09<meta\x20charset=\x22utf-8\x22>\x0a\x09\x09\x09\x09\x09\x09</head>\x0a\x09\x09\x09\x09\x09\x09<body>\x0a\x09\x09\x09\x09\x09\x09\x09<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x287f23['locale']['contentLanguageDirection']+'\x22\x20style=\x22'+_0x5c794d+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x5280d1(_0x287f23)+'\x0a\x09\x09\x09\x09\x09\x09\x09</div>\x0a\x09\x09\x09\x09\x09\x09</body>\x0a\x09\x09\x09\x09\x09</html>\x0a\x09\x09\x09\x09')['trim'](),'css':_0x21fdf6,[0x2===_0x4ff962?'config':'options']:_0x41f0e8['converterOptions']},_0x5bb9f6={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0xdd75db?{'Authorization':_0xdd75db['value']}:null,'x-cs-app-id':_0x41f0e8['appID']||'cke5'},'body':JSON['stringify'](_0x302519)};return window['fetch'](_0x4c86a7,_0x5bb9f6)['then'](_0x2e6ff7=>{if(0xc8!==_0x2e6ff7['status'])throw _0x2e6ff7;return _0x2e6ff7['blob']();})['then'](_0x27b617=>{_0x287f23['ui']['ariaLiveAnnouncer']['announce'](tT(_0x287f23['locale'],'PDF\x20export\x20successful'));const _0x408af5='function'==typeof _0x41f0e8['fileName']?_0x41f0e8['fileName']():_0x41f0e8['fileName'];this['_downloadFile'](_0x27b617,_0x408af5||'document.pdf');});})['catch'](_0x3e4c7d=>{const _0x4e3c1c=_0x287f23['plugins']['get']('Notification');throw _0x287f23['ui']['ariaLiveAnnouncer']['announce'](tT(_0x287f23['locale'],'PDF\x20export\x20failed'),{'politeness':'assertive'}),_0x4e3c1c['showWarning'](tT(_0x287f23['locale'],'An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x3e4c7d;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x29a744,_0x5b87d5){const _0x68645d=document['createElement']('a');_0x68645d['href']=window['URL']['createObjectURL'](_0x29a744),_0x68645d['download']=_0x5b87d5,_0x68645d['click'](),_0x68645d['remove']();}};function iT({pageWidth:_0x43be91,marginLeft:_0x108c62,marginRight:_0x3f59d6}){return'width:calc('+[_0x43be91,_0x108c62,_0x3f59d6]['filter'](Boolean)['join']('\x20-\x20')+');';}function sT(_0x595645){return'object'==typeof _0x595645&&'width'in _0x595645?_0x595645['width']:{'letter':['21.6cm','27.9cm'],'legal':['21.6cm','35.6cm'],'tabloid':['27.9cm','43.2cm'],'ledger':['43.2cm','27.9cm'],'a0':['84.1cm','118.9cm'],'a1':['59.4cm','84.1cm'],'a2':['42.0cm','59.4cm'],'a3':['29.7cm','42.0cm'],'a4':['21.0cm','29.7cm'],'a5':['14.8cm','21.0cm'],'a6':['10.5cm','14.8cm']}[_0x595645['toLowerCase']()][0x0];}var nT=class extends _0x11fe30{static get['pluginName'](){return'ExportPdfUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x365113=this['editor'];_0x365113['ui']['componentFactory']['add']('exportPdf',()=>{const _0x42f4ac=this['_createButton'](_0x39ae99),_0x40ef34=_0x365113['commands']['get']('exportPdf');return _0x42f4ac['set']({'tooltip':!0x0}),_0x42f4ac['bind']('isOn')['to'](_0x40ef34,'isBusy'),_0x42f4ac;}),_0x365113['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](_0x589436));}_createButton(_0x311fb6){const _0x3d9972=this['editor'],_0x26fd9d=_0x3d9972['config']['get']('exportPdf'),_0x3e3ef9=_0x3d9972['commands']['get']('exportPdf'),_0x16248c=new _0x311fb6(_0x3d9972['locale']),_0x3a0fd3=new _0x4d4034();return _0x16248c['children']['add'](_0x3a0fd3),_0x3a0fd3['bind']('isVisible')['to'](_0x3e3ef9,'isBusy'),_0x16248c['iconView']['bind']('isVisible')['to'](_0x3e3ef9,'isBusy',_0x37d881=>!_0x37d881),_0x16248c['set']({'icon':_0x5567fa}),_0x16248c['bind']('isEnabled')['to'](_0x3e3ef9,'isEnabled'),_0x16248c['bind']('label')['to'](_0x3e3ef9,'isBusy',_0x27287d=>tT(_0x3d9972['locale'],_0x27287d?'Exporting\x20PDF\x20document':'Export\x20to\x20PDF')),this['listenTo'](_0x16248c,'execute',()=>{_0x3d9972['execute']('exportPdf',_0x26fd9d),_0x3d9972['editing']['view']['focus']();}),_0x16248c;}},rT=class extends _0x11fe30{_token;static get['pluginName'](){return'ExportPdf';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x3bc91d,_0x362622,nT];}init(){const {editor:_0x5f3f17}=this;_0x5f3f17['config']['define']('exportPdf.version',0x2),_0x5f3f17['commands']['add']('exportPdf',new eT(_0x5f3f17));const _0x2bac4e=_0x5f3f17['plugins']['get'](_0x3bc91d),_0x271088=_0x5f3f17['config']['get']('exportPdf');!0x1===_0x271088['tokenUrl']?this['_token']=null:_0x271088['tokenUrl']?_0x2bac4e['registerTokenUrl'](_0x271088['tokenUrl'])['then'](_0x24bc1e=>{this['_token']=_0x24bc1e;}):this['_token']=_0x2bac4e['token'];}};function oT(_0xb34a70,_0x366178={}){const _0xce68cb=_0xb34a70['plugins']['has']('Users'),_0x1894e6=_0xb34a70['plugins']['has']('CommentsRepository'),_0x37da26=_0xb34a70['plugins']['has']('TrackChanges'),_0x397db1=_0x366178;if(_0xce68cb&&_0x1894e6){const _0x31da14=function(_0x927a66){const _0x2a89d4={};if(!_0x927a66['length'])return _0x2a89d4;for(const _0x2c569b of _0x927a66)_0x2c569b['comments']['map'](_0x51b4ea=>{void 0x0===_0x2a89d4[_0x2c569b['id']]&&(_0x2a89d4[_0x2c569b['id']]=[]),_0x2a89d4[_0x2c569b['id']]['push']({'author':_0x51b4ea['author']['name'],'content':_0x51b4ea['content'],'created':_0x51b4ea['createdAt'],'is_resolved':_0x2c569b['isResolved']});});return _0x2a89d4;}(_0xb34a70['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object['keys'](_0x31da14)['length']&&(_0x397db1['comments']=_0x31da14);}if(_0xce68cb&&_0x37da26){const _0x11fbed=_0xb34a70['plugins']['get']('TrackChanges'),_0xc01385=_0xb34a70['plugins']['get']('Users'),_0xc6362d=function(_0x36cbb7,_0x2d8027){const _0x3afc4={};if(!_0x36cbb7['length']||!_0x2d8027['length'])return _0x3afc4;for(const {id:_0x32a873,createdAt:_0x366567,authorId:_0x2fd443,attributes:_0x4223b1}of _0x36cbb7){const _0x420b28=_0x4223b1&&_0x4223b1['@external'];_0x3afc4[_0x32a873]={'author':_0x420b28?_0x420b28['authorName']:_0x2d8027['get'](_0x2fd443)['name'],'created':_0x366567};}return _0x3afc4;}(_0x11fbed['getSuggestions']({'toJSON':!0x0}),_0xc01385['users']);Object['keys'](_0xc6362d)['length']&&(_0x397db1['suggestions']=_0xc6362d);}return(_0x397db1['suggestions']||_0x397db1['comments'])&&(_0x397db1['timezone']=new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone']),_0x397db1;}function aT(_0x533f4e,_0x5833ed={}){const _0x3b4497=_0x533f4e['plugins']['has']('Users'),_0x146e06=_0x533f4e['plugins']['has']('CommentsRepository'),_0x558390=_0x533f4e['plugins']['has']('TrackChanges'),_0xaf7594=_0x533f4e['plugins']['has']('MergeFields'),_0x522021=_0x533f4e['locale']['contentLanguage'],_0x12ba9=_0x5833ed,_0x404650={};if(_0x12ba9['document']=_0x12ba9['document']||{},_0x12ba9['document']['language']=_0x12ba9['document']['language']||_0x522021,_0x3b4497&&_0x146e06){const _0x11ffeb=function(_0x3fbebe){const _0x5153fe=[];if(!_0x3fbebe['length'])return _0x5153fe;for(const _0x58438d of _0x3fbebe){const _0x1af930=_0x58438d['comments']['map'](_0xf5b5c2=>({'author':_0xf5b5c2['author']['name'],'content':_0xf5b5c2['content'],'created_at':_0xf5b5c2['createdAt']}));_0x5153fe['push']({'thread_id':_0x58438d['id'],'is_resolved':_0x58438d['isResolved'],'comments':_0x1af930});}return _0x5153fe;}(_0x533f4e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'skipEmpty':!0x0}));_0x11ffeb['length']&&(_0x404650['comment_threads']=_0x11ffeb);}if(_0x3b4497&&_0x558390){const _0x4d3a36=_0x533f4e['plugins']['get']('TrackChanges'),_0x4ad1e8=_0x533f4e['plugins']['get']('Users'),_0x2d504d=function(_0x4d5fc7,_0x1c5048){return _0x4d5fc7['length']&&_0x1c5048['length']?_0x4d5fc7['map'](({id:_0x1ec792,createdAt:_0x55a6fe,authorId:_0x4e1f79,attributes:_0x205c3b})=>{const _0x1b5fb5=_0x205c3b&&_0x205c3b['@external'];return{'id':_0x1ec792,'author':_0x1b5fb5?_0x1b5fb5['authorName']:_0x1c5048['get'](_0x4e1f79)['name'],'created_at':_0x55a6fe};}):[];}(_0x4d3a36['getSuggestions']({'toJSON':!0x0}),_0x4ad1e8['users']);_0x2d504d['length']&&(_0x404650['suggestions']=_0x2d504d);}if(_0xaf7594){const _0x41a7d1=_0x533f4e['plugins']['get']('MergeFieldsEditing'),_0x22ef56=_0x41a7d1['previewMode'],{prefix:_0xc4b8b7,suffix:_0x3b493d}=_0x533f4e['config']['get']('mergeFields');if(_0x12ba9['merge_fields']={'prefix':_0xc4b8b7,'suffix':_0x3b493d},'$labels'!==_0x22ef56){_0x12ba9['merge_fields']['data']={};const _0x4ad82b='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP88B8AAuUB8e2ujYwAAAAASUVORK5CYII=',_0x29c936='$defaultValues'===_0x22ef56?_0x41a7d1['getDefaultValues']():_0x41a7d1['getDataSetValues'](_0x22ef56,!0x0);for(const _0x152f1e of Object['entries'](_0x29c936)){const [_0xaa2d6b,_0x54c0ec]=_0x152f1e;'image'===_0x41a7d1['getMergeFieldType'](_0xaa2d6b)?_0x12ba9['merge_fields']['data'][_0xaa2d6b]=null!==_0x54c0ec?_0x54c0ec:_0x4ad82b:_0x12ba9['merge_fields']['data'][_0xaa2d6b]=null!==_0x54c0ec?_0x54c0ec:_0x41a7d1['getLabel'](_0xaa2d6b)||_0xaa2d6b;}}}return(_0x404650['comment_threads']||_0x404650['suggestions'])&&(_0x12ba9['timezone']=new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'],_0x12ba9['collaboration_features']=_0x404650),_0x12ba9;}function cT(_0x2610cb,_0x38c0fc){const t=_0x2610cb['t'];switch(_0x38c0fc){case'Export\x20to\x20Word':return t('Export\x20to\x20Word');case'An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':return t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.');case'Word\x20document\x20export\x20started':return t('Word\x20document\x20export\x20started');case'Word\x20document\x20export\x20failed':return t('Word\x20document\x20export\x20failed');case'Word\x20document\x20export\x20successful':return t('Word\x20document\x20export\x20successful');case'Exporting\x20Word\x20document':return t('Exporting\x20Word\x20document');default:return _0x38c0fc;}}const lT=['orientation','margin_top','margin_right','margin_bottom','margin_left','format','header','footer','comments','suggestions'];var hT=class extends _0x44d8e7{constructor(_0x20279f){super(_0x20279f),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}execute(_0x38fc45={}){const _0x1cc742=this['editor'],_0x2f76e1=_0x38fc45['version']||0x2,_0x451018=0x1===_0x2f76e1,_0x405a82=_0x38fc45['converterUrl']||(_0x451018?'https://docx-converter.cke-cs.com/v1/convert':'https://docx-converter.cke-cs.com/v2/convert/html-docx'),_0x4d4e0c=_0x38fc45['converterOptions']||{},_0xa57eff=_0x1cc742['plugins']['get']('ExportWord'),_0x38c612=_0x38fc45['token']||_0xa57eff['_token'],_0x16019b=!0x0===_0x4d4e0c['auto_pagination'],_0x51306f=_0x38fc45['dataCallback']||(_0xe0f92c=>_0xe0f92c['data']['get']({'pagination':_0x16019b}));return 0x2===_0x2f76e1&&function(_0x8bfc1d){for(const _0x3d8edd of lT)if(void 0x0!==_0x8bfc1d[_0x3d8edd])return!0x0;return!0x1;}(_0x4d4e0c)&&_0x53dc7a('export-word-v1-api-is-deprecated'),this['isBusy']=!0x0,this['refresh'](),_0x320c18(_0x38fc45['stylesheets']||['EDITOR_STYLES'])['then'](async _0x131107=>{_0x1cc742['ui']['ariaLiveAnnouncer']['announce'](cT(_0x1cc742['locale'],'Word\x20document\x20export\x20started'));const _0x3c37c4=await _0x51306f(_0x1cc742),_0x40e4b4={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x1cc742['locale']['contentLanguageDirection']+'\x22>'+_0x3c37c4+'</div>','css':_0x131107,[_0x451018?'options':'config']:{..._0x4d4e0c,..._0x451018?oT(_0x1cc742,_0x4d4e0c):aT(_0x1cc742,_0x4d4e0c)}},_0x1271af={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x38c612?{'Authorization':_0x38c612['value']}:null},'body':JSON['stringify'](_0x40e4b4)};return window['fetch'](_0x405a82,_0x1271af)['then'](_0x46a808=>{if(0xc8!==_0x46a808['status'])throw _0x46a808;return _0x46a808['blob']();})['then'](_0x2985b1=>{_0x1cc742['ui']['ariaLiveAnnouncer']['announce'](cT(_0x1cc742['locale'],'Word\x20document\x20export\x20successful'));const _0xcbeae3='function'==typeof _0x38fc45['fileName']?_0x38fc45['fileName']():_0x38fc45['fileName'];this['_downloadFile'](_0x2985b1,_0xcbeae3||'document.docx');});})['catch'](_0x5411ee=>{const _0x4e6a8d=_0x1cc742['plugins']['get']('Notification');throw _0x1cc742['ui']['ariaLiveAnnouncer']['announce'](cT(_0x1cc742['locale'],'Word\x20document\x20export\x20failed'),{'politeness':'assertive'}),_0x4e6a8d['showWarning'](cT(_0x1cc742['locale'],'An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x5411ee;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x12d506,_0x18ab11){const _0xae505a=document['createElement']('a');_0xae505a['href']=window['URL']['createObjectURL'](_0x12d506),_0xae505a['download']=_0x18ab11,_0xae505a['click'](),_0xae505a['remove']();}},uT=class extends _0x11fe30{static get['pluginName'](){return'ExportWordUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x52c538=this['editor'];_0x52c538['ui']['componentFactory']['add']('exportWord',()=>{const _0x4e1083=_0x52c538['commands']['get']('exportWord'),_0x511b49=this['_createButton'](_0x39ae99);return _0x511b49['set']({'tooltip':!0x0}),_0x511b49['bind']('isOn')['to'](_0x4e1083,'isBusy'),_0x511b49;}),_0x52c538['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](_0x589436));}_createButton(_0x259f9b){const _0x414fa6=this['editor'],_0x530a02=_0x414fa6['config']['get']('exportWord')||{},_0x434513=_0x414fa6['commands']['get']('exportWord'),_0x11d567=new _0x259f9b(_0x414fa6['locale']),_0x3337f5=new _0x4d4034();return _0x11d567['children']['add'](_0x3337f5),_0x3337f5['bind']('isVisible')['to'](_0x434513,'isBusy'),_0x11d567['iconView']['bind']('isVisible')['to'](_0x434513,'isBusy',_0x39a249=>!_0x39a249),_0x11d567['set']({'icon':_0x252eaf}),_0x11d567['bind']('isEnabled')['to'](_0x434513,'isEnabled'),_0x11d567['bind']('label')['to'](_0x434513,'isBusy',_0x14497c=>cT(_0x414fa6['locale'],_0x14497c?'Exporting\x20Word\x20document':'Export\x20to\x20Word')),this['listenTo'](_0x11d567,'execute',()=>{_0x414fa6['execute']('exportWord',_0x530a02),_0x414fa6['editing']['view']['focus']();}),_0x11d567;}},dT=class extends _0x11fe30{_token;static get['pluginName'](){return'ExportWord';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x3bc91d,_0x362622,uT];}init(){const _0x392bf9=this['editor'],_0x5d6092=_0x392bf9['config']['get']('exportWord')||{};_0x392bf9['commands']['add']('exportWord',new hT(_0x392bf9));const _0x36e3c4=_0x392bf9['plugins']['get'](_0x3bc91d);!0x1===_0x5d6092['tokenUrl']?this['_token']=null:_0x5d6092['tokenUrl']?_0x36e3c4['registerTokenUrl'](_0x5d6092['tokenUrl'])['then'](_0x26a868=>{this['_token']=_0x26a868;}):this['_token']=_0x36e3c4['token'];}},fT=class{['_model'];_elementName;_getElementKey;_trackedElements=new Map();constructor(_0x4b816a,_0x20ea80){this['_model']=_0x4b816a,this['_elementName']=_0x20ea80['elementName'],this['_getElementKey']=_0x20ea80['getElementKey'];}reset(){this['_trackedElements']['clear']();}getChanges(_0x23ad89){const _0xf7de44=new Set(),_0x3ce22d=new Map();for(const _0x9d26ba of _0x23ad89){if('insert'===_0x9d26ba['type']&&'$text'!==_0x9d26ba['name']&&_0x9d26ba['position']['nodeAfter']){const _0xb7409f=this['_model']['createRangeOn'](_0x9d26ba['position']['nodeAfter']);for(const _0x5659ae of _0xb7409f['getItems']()){if(!_0x5659ae['is']('element',this['_elementName']))continue;const _0x5927fe=this['_getElementKey'](_0x5659ae);_0x3ce22d['has'](_0x5927fe)||_0x3ce22d['set'](_0x5927fe,[]),_0x3ce22d['get'](_0x5927fe)['push'](_0x5659ae);}}if('remove'===_0x9d26ba['type']&&_0x9d26ba['name']===this['_elementName']){const _0x164c09=this['_getElementKey']({'getAttribute':_0x462fe5=>_0x9d26ba['attributes']['get'](_0x462fe5)});_0xf7de44['add'](_0x164c09);}}for(const [_0x49dd80,_0x3355c5]of this['_trackedElements'])'$graveyard'===_0x3355c5['root']['rootName']&&_0xf7de44['add'](_0x49dd80);for(const _0x435409 of _0xf7de44)this['_trackedElements']['delete'](_0x435409);for(const [_0x4706a6,_0xabb041]of _0x3ce22d)this['_trackedElements']['set'](_0x4706a6,_0xabb041[_0xabb041['length']-0x1]);const _0x54b0a6=new Set();for(const [_0x228071,_0x307a65]of _0x3ce22d)_0xf7de44['has'](_0x228071)&&(_0x54b0a6['add'](_0x307a65[0x0]),_0x307a65['length']>0x1?_0x3ce22d['set'](_0x228071,_0x307a65['slice'](0x1)):_0x3ce22d['delete'](_0x228071),_0xf7de44['delete'](_0x228071));return{'removed':Array['from'](_0xf7de44),'inserted':Array['from'](_0x3ce22d['values']())['flat'](),'moved':Array['from'](_0x54b0a6)};}},mT=class extends _0x11fe30{_footnotes=[];_footnotesDefinitions=null;_footnoteFormatter=null;_footnoteDefsContainerTracker;_footnoteRefsTracker;_footnoteDefsTracker;static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x46d882){super(_0x46d882),this['_footnoteDefsContainerTracker']=new fT(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new fT(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x22e4dd=>_0x22e4dd['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new fT(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x32c6e8=>_0x32c6e8['getAttribute']('footnoteId')});}init(){const {editor:_0x52b718}=this,{model:_0x3e7626,data:_0x3f88}=_0x52b718;_0x3e7626['document']['registerPostFixer'](_0x2114f5=>{const _0x208417=_0x3e7626['document']['differ']['getChanges']();let _0x4d4f04=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x2114f5,_0x208417)&&(_0x4d4f04=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x2114f5,_0x208417)&&(_0x4d4f04=!0x0),this['_handleFootnoteReferencesChanges'](_0x2114f5,_0x208417)&&(_0x4d4f04=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x2114f5)&&(_0x4d4f04=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x2114f5)&&(_0x4d4f04=!0x0),this['_sortFootnoteDefinitions'](_0x2114f5)&&(_0x4d4f04=!0x0),_0x4d4f04;}),this['listenTo'](_0x3e7626['document'],'change:data',()=>{_0x3e7626['enqueueChange']({'isUndoable':!0x1},_0x1ce324=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x1ce324);for(const _0x1a2da6 of this['_footnotes'])_0x1a2da6['definition']['isAttached']()||_0x1ce324['remove'](_0x1a2da6['reference']);});},{'priority':'low'}),this['listenTo'](_0x3f88,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}getFootnotesDefinitionsObjectElement(){return this['_footnotesDefinitions'];}getFootnote(_0x4f5a52){return this['_footnotes']['find'](_0x27eb10=>_0x27eb10['id']===_0x4f5a52)||null;}getFootnotes(){return Array['from'](this['_footnotes']);}getFootnotesFormatter(){return this['_footnoteFormatter'];}setFootnoteFormatter(_0x190c3b){this['_footnoteFormatter']=_0x190c3b;}_updateFootnotesCounters(_0xc7728b,_0x4a8943=0x0){let _0x1cec60=!0x1;for(let _0x1b0bd4=_0x4a8943;_0x1b0bd4<this['_footnotes']['length'];_0x1b0bd4++)this['_updateFootnoteRefCounter'](_0xc7728b,_0x1b0bd4)&&(_0x1cec60=!0x0);return _0x1cec60;}_insertEmptyFootnotesDefinitionsContainer(_0x52d47f,_0x2dad39){if(!pT(this['editor'],_0x2dad39))return null;const _0x39f9f3=_0x52d47f['createElement']('footnotesDefinitions',{});return _0x52d47f['append'](_0x39f9f3,_0x2dad39),this['_footnotesDefinitions']=_0x39f9f3,_0x39f9f3;}_getFirstSuitableFootnotesDefinitionsRoot(){const _0x5367a6=[...(_0xaebb06=this['_footnotes'],[..._0xaebb06['reduce']((_0x26b4d1,_0x456511)=>(_0x26b4d1['add'](_0x456511['reference']['root']),_0x26b4d1),new Set())]),...this['editor']['model']['document']['getRoots']()];var _0xaebb06;for(const _0x27c1bf of _0x5367a6)if(pT(this['editor'],_0x27c1bf))return _0x27c1bf;return null;}_ensureFootnotesDefinitionsContainerExists(_0x2676fa){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;let _0x143936=null;const _0x3eab79=this['_getFirstSuitableFootnotesDefinitionsRoot']();if(_0x3eab79&&(_0x143936=this['_insertEmptyFootnotesDefinitionsContainer'](_0x2676fa,_0x3eab79)),_0x143936){for(const _0x23475d of this['_footnotes'])_0x23475d['definition']['parent']||_0x2676fa['insert'](_0x23475d['definition'],_0x143936,'end');this['_updateFootnotesCounters'](_0x2676fa);}}_handleFootnotesDefinitionsObjectChanges(_0xb50abf,_0x1ff401){let _0x5418d5=!0x1;const {inserted:_0x3e88f7,removed:_0xe44cc6,moved:_0x2a9aff}=this['_footnoteDefsContainerTracker']['getChanges'](_0x1ff401);if(_0x2a9aff['length']&&(this['_footnotesDefinitions']=_0x2a9aff[0x0]),_0x3e88f7['length']){if(_0x3e88f7['length']>0x1||this['_footnotesDefinitions']&&_0x3e88f7['some'](_0x5beca3=>_0x5beca3!==this['_footnotesDefinitions'])){const _0x367010=_0xb50abf['createElement']('footnotesDefinitions',{}),_0x4ff35a=[];this['_footnotesDefinitions']&&_0x4ff35a['push'](this['_footnotesDefinitions']),_0x4ff35a['push'](..._0x3e88f7),_0xb50abf['insert'](_0x367010,_0x4ff35a[0x0],'before');for(const _0x1a9153 of _0x4ff35a)_0xb50abf['move'](_0xb50abf['createRangeIn'](_0x1a9153),_0xb50abf['createPositionAt'](_0x367010,'end')),_0xb50abf['remove'](_0x1a9153);this['_footnotesDefinitions']=_0x367010,this['_updateFootnotesCounters'](_0xb50abf),_0x5418d5=!0x0;}else this['_footnotesDefinitions']=_0x3e88f7[0x0];}if(_0xe44cc6['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x44529f of this['_footnotes'])_0xb50abf['remove'](_0x44529f['reference']),_0x5418d5=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x5418d5;}_handleFootnoteDefinitionsChanges(_0x2a1de0,_0xc44602){let _0x39ce25=!0x1;const _0x5e741d=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x18bfc6,moved:_0x279d85}=this['_footnoteDefsTracker']['getChanges'](_0xc44602);for(const _0x11bd9f of[..._0x279d85,..._0x18bfc6]){const _0x1a5359=_0x11bd9f['getAttribute']('footnoteId'),_0x441c0f=this['getFootnote'](_0x1a5359);_0x441c0f&&(_0x441c0f['definition']=_0x11bd9f),gT(_0x2a1de0,_0x5e741d,_0x11bd9f)&&(_0x39ce25=!0x0);}return _0x39ce25;}_handleFootnoteReferencesChanges(_0x4a6e29,_0x24daee){let _0x1f6c77=!0x1;const {removed:_0x42274e,inserted:_0x2ba763,moved:_0x4b5a6d}=this['_footnoteRefsTracker']['getChanges'](_0x24daee);for(const _0xd14dd5 of _0x42274e)this['_handleRemoveFootnoteReferenceById'](_0x4a6e29,_0xd14dd5)&&(_0x1f6c77=!0x0);for(const _0xa100ae of _0x2ba763)this['_handleInsertedFootnoteReference'](_0x4a6e29,_0xa100ae)&&(_0x1f6c77=!0x0);for(const _0x2f2059 of _0x4b5a6d)this['_handleMovedFootnoteReference'](_0x4a6e29,_0x2f2059)&&(_0x1f6c77=!0x0);return _0x1f6c77;}_handleFootnotesDefinitionsObjectSync(_0x20d6c1){if(!this['_footnotesDefinitions'])return!0x1;let _0x246875=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0xb18db7=[];for(const _0x26d4ae of this['_footnotesDefinitions']['getChildren']()){const _0x1ef96b=_0x26d4ae['getAttribute']('footnoteId');this['getFootnote'](_0x1ef96b)||(_0xb18db7['unshift'](_0x26d4ae),_0x246875=!0x0);}for(const _0x4165df of _0xb18db7)_0x20d6c1['remove'](_0x4165df);}const _0x1fe106=new Set(),_0x2041e6=[];for(const _0x1dc9f0 of this['_footnotesDefinitions']['getChildren']()){const _0x303c79=_0x1dc9f0['getAttribute']('footnoteId');_0x1fe106['has'](_0x303c79)?(_0x2041e6['unshift'](_0x1dc9f0),_0x246875=!0x0):_0x1fe106['add'](_0x303c79);}for(const _0x161b1d of _0x2041e6)_0x20d6c1['remove'](_0x161b1d);return this['_footnotesDefinitions']['childCount']||(_0x20d6c1['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x246875=!0x0),_0x246875;}_handleInsertedFootnoteReference(_0x3a3015,_0x25b9e8){if(this['_footnotes']['find'](_0x1c4750=>_0x1c4750['reference']===_0x25b9e8))return!0x1;let _0x4fbb15=!0x1;const _0x2d8c48=_0x25b9e8['getAttribute']('footnoteId'),_0x1bc261=this['_footnotes']['findIndex'](_0x4c3228=>_0x4c3228['id']===_0x2d8c48);-0x1!==_0x1bc261&&(_0x3a3015['remove'](this['_footnotes'][_0x1bc261]['reference']),this['_footnotes']['splice'](_0x1bc261,0x1),_0x4fbb15=!0x0);let _0x24db26=this['_footnotesDefinitions']?function(_0x3c283d,_0x1eccc8){for(const _0x1d4438 of _0x3c283d['getChildren']())if(_0x1d4438['getAttribute']('footnoteId')===_0x1eccc8)return _0x1d4438;return null;}(this['_footnotesDefinitions'],_0x2d8c48):null;_0x24db26||(_0x24db26=_0x3a3015['createElement']('footnoteDefinition',{'footnoteId':_0x2d8c48}),this['_footnotesDefinitions']&&(_0x3a3015['insert'](_0x24db26,this['_footnotesDefinitions'],'end'),_0x4fbb15=!0x0));const _0x4ea87a={'id':_0x2d8c48,'reference':_0x25b9e8,'definition':_0x24db26},_0x5440f8=OT(this['editor']['model'],this['_footnotes'],_0x25b9e8);this['_footnotes']['splice'](_0x5440f8,0x0,_0x4ea87a);let _0x456b2b=_0x5440f8;return-0x1!==_0x1bc261&&(_0x456b2b=Math['min'](_0x5440f8,_0x1bc261)),this['_updateFootnotesCounters'](_0x3a3015,_0x456b2b)&&(_0x4fbb15=!0x0),_0x4fbb15;}_handleRemoveFootnoteReferenceById(_0x56f084,_0x3a5625){const _0xa891f1=this['_footnotes']['findIndex'](_0x360c81=>_0x360c81['id']===_0x3a5625);if(-0x1===_0xa891f1)return!0x1;let _0x43f003=!0x1;const _0x4a8877=this['_footnotes'][_0xa891f1];return _0x4a8877['definition']['isAttached']()&&'$graveyard'!==_0x4a8877['definition']['root']['rootName']&&(_0x56f084['remove'](_0x4a8877['definition']),_0x43f003=!0x0),this['_footnotes']['splice'](_0xa891f1,0x1),this['_updateFootnotesCounters'](_0x56f084,_0xa891f1)&&(_0x43f003=!0x0),_0x43f003;}_handleMovedFootnoteReference(_0x50ce06,_0x476636){const _0x27ce19=_0x476636['getAttribute']('footnoteId'),_0x102a8e=this['_footnotes']['findIndex'](_0x337b27=>_0x337b27['id']===_0x27ce19),_0xeac85b=this['_footnotes'][_0x102a8e];let _0x46f1f9=!0x1;_0xeac85b['reference']=_0x476636,this['_footnotes']['splice'](_0x102a8e,0x1);const _0x182bc5=OT(this['editor']['model'],this['_footnotes'],_0x476636);return this['_footnotes']['splice'](_0x182bc5,0x0,_0xeac85b),this['_updateFootnotesCounters'](_0x50ce06,Math['min'](_0x102a8e,_0x182bc5))&&(_0x46f1f9=!0x0),_0x46f1f9;}_updateFootnoteRefCounter(_0x4b4b14,_0x5dc744){if(!this['_footnotesDefinitions'])return!0x1;const _0x5c32b9=this['_footnotes'][_0x5dc744];let _0x176960;return _0x176960=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x5c32b9,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x5dc744+0x1}):String(_0x5dc744+0x1),_0x5c32b9['reference']['getAttribute']('footnoteCounter')!=_0x176960&&(_0x4b4b14['setAttribute']('footnoteCounter',_0x176960,_0x5c32b9['reference']),!0x0);}_sortFootnoteDefinitions(_0x3172a4){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x44fc80,_0x1db8d6){if(_0x44fc80['length']!==_0x1db8d6['length'])return!0x1;for(let _0x363870=0x0;_0x363870<_0x44fc80['length'];_0x363870++)if(_0x44fc80[_0x363870]!==_0x1db8d6[_0x363870])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x2eb3ac=>_0x2eb3ac['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x5c5dd4=>_0x5c5dd4['getAttribute']('footnoteId'))))return!0x1;let _0x1f6dce=!0x1;for(let _0x4a616=0x0;_0x4a616<this['_footnotes']['length'];_0x4a616++){const _0x5185b7=this['_footnotes'][_0x4a616],_0x2d85ca=_0x3172a4['createPositionBefore'](_0x5185b7['definition']),_0x196e48=_0x3172a4['createPositionAt'](this['_footnotesDefinitions'],_0x4a616);_0x2d85ca['isEqual'](_0x196e48)||(_0x3172a4['move'](_0x3172a4['createRangeOn'](_0x5185b7['definition']),_0x196e48),_0x1f6dce=!0x0);}return _0x1f6dce;}_ensureFootnotesReferencesHaveProperOrder(_0x4bb021){if(!this['_footnotes']['length'])return!0x1;const {model:_0x426939}=this['editor'];let _0x68cf7d=!0x1;for(let _0x470101=0x0;_0x470101<this['_footnotes']['length']-0x1;_0x470101++){const _0x1c413d=this['_footnotes'][_0x470101],_0x10fc86=this['_footnotes'][_0x470101+0x1],_0x44b982=_0x426939['createPositionBefore'](_0x1c413d['reference']),_0x21017b=_0x426939['createPositionBefore'](_0x10fc86['reference']);'after'===_0x44b982['compareWith'](_0x21017b)&&(this['_handleMovedFootnoteReference'](_0x4bb021,_0x1c413d['reference']),_0x470101=-0x1,_0x68cf7d=!0x0);}return _0x68cf7d;}};function pT(_0x5dfc50,_0x452d01){return _0x5dfc50['model']['schema']['checkChild'](_0x452d01,'footnotesDefinitions');}function gT(_0x299633,_0x24d407,_0x29be2d){if(_0x29be2d['childCount'])return!0x1;const _0x115e90=_0x24d407?'paragraph':'footnoteInlineContent';return _0x299633['insert'](_0x299633['createElement'](_0x115e90),_0x29be2d),!0x0;}function OT(_0x5aedde,_0x4b9bdf,_0x20fe2e){if(0x0===_0x4b9bdf['length'])return 0x0;const _0x6764ab=_0x5aedde['createPositionBefore'](_0x20fe2e);for(let _0x337bc5=0x0;_0x337bc5<_0x4b9bdf['length'];_0x337bc5++){const _0x42de8e=_0x4b9bdf[_0x337bc5],_0x402008=_0x5aedde['createPositionBefore'](_0x42de8e['reference']);if('before'===_0x6764ab['compareWith'](_0x402008))return _0x337bc5;}const _0x347935=_0x20fe2e['root'];let _0x31c728=-0x1;for(let _0x54eca1=_0x4b9bdf['length']-0x1;_0x54eca1>=0x0;_0x54eca1--)if(_0x4b9bdf[_0x54eca1]['reference']['root']===_0x347935){_0x31c728=_0x54eca1;break;}if(-0x1!==_0x31c728)return _0x31c728+0x1;const _0x10d155=_0x5aedde['document']['getRootNames'](),_0x398f1b=_0x10d155[_0x10d155['indexOf'](_0x347935['rootName'])+0x1];if(_0x398f1b){for(let _0x3f3be2=0x0;_0x3f3be2<_0x4b9bdf['length'];_0x3f3be2++)if(_0x4b9bdf[_0x3f3be2]['reference']['root']['rootName']===_0x398f1b)return _0x3f3be2;}return _0x4b9bdf['length'];}var wT=class extends _0x44d8e7{['refresh'](){const {model:_0x1911c2,plugins:_0x1bd4e6}=this['editor'],{selection:_0x220cd1}=_0x1911c2['document'],_0x431bda=this['_getPositionToInsertFootnote'](_0x220cd1),_0x1a9f5b=_0x1bd4e6['get']('FootnotesTracker');this['isEnabled']=!(!_0x431bda||!_0x1a9f5b['_getFirstSuitableFootnotesDefinitionsRoot']());}execute(_0x1deb94){const {editor:_0x1973c0}=this,{model:_0x2f0499}=_0x1973c0,{selection:_0x3788ee}=_0x2f0499['document'],_0x28d743=this['_getPositionToInsertFootnote'](_0x3788ee);if(!_0x28d743)return;const _0x4761d8=_0x1973c0['plugins']['get']('FootnotesEditing'),_0x1ce751=_0x1deb94?.['footnoteId']??_0xea66bb();!function(_0x394adf){return'string'==typeof _0x394adf&&_0x394adf['length']>0x0&&!/\s/['test'](_0x394adf)&&!/^\d/['test'](_0x394adf);}(_0x1ce751)?_0x53dc7a('insert-footnote-command-executed-with-invalid-id'):(_0x2f0499['change'](_0x156121=>{const _0x4fb3f2=_0x156121['createElement']('footnoteRef',{'footnoteId':_0x1ce751});_0x2f0499['insertObject'](_0x4fb3f2,_0x28d743,null);}),_0x4761d8['_moveSelectionToFootnoteDefinition'](_0x1ce751));}_getPositionToInsertFootnote(_0x4c3227){const {model:_0x50392b}=this['editor'],{schema:_0x3364a0}=_0x50392b,_0x4be29f=_0x4c3227['getFirstRange']();for(const _0x36f2fc of _0x4be29f['getItems']())if(_0x3364a0['isBlock'](_0x36f2fc)||_0x3364a0['isObject'](_0x36f2fc))return null;const _0x1a8946=_0x4be29f['end'];return _0x3364a0['checkChild'](_0x1a8946,'footnoteRef')?_0x1a8946:null;}},bT=class extends _0x11fe30{static get['pluginName'](){return'FootnotesEditing';}static get requires(){return[mT];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0xc8ec41}=this;_0xc8ec41['config']['define']('footnotes.multiBlock',!0x0),_0xc8ec41['commands']['add']('insertFootnote',new wT(_0xc8ec41)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}afterInit(){!async function(_0x2a927f){const _0x113bea='unSbGpmijAwyrOzdZhCqT3YLFVtJlkDag1WMNxR4H67IB5QoX0289cUsvPEefK',_0xfd45e0=0x791d0,_0x4a6425=window['Date']['now'](),_0x37a4af=_0x2a927f['editor'],_0x3d7896=new window['Promise'](_0x26243e=>{_0x37a4af['once']('ready',_0x26243e);}),_0x21dfa3={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x4194f6=_0x37a4af['config']['get']('licenseKey');async function _0x4ff95b(){let _0x4da62c,_0x253300=null,_0x599b73=null;try{return'GPL'==_0x4194f6?'NotAllowed':(_0x4da62c=_0x36743a(),_0x4da62c?(_0x4da62c['usageEndpoint']&&(_0x599b73=_0x220a57(_0x4da62c['usageEndpoint'],_0x4da62c['jti'])),await _0x405ce9()?_0x54f1bf()?_0x38faa5()?'Expired':_0x527a55()?('evaluation'==_0x4da62c['licenseType']&&(_0x253300=_0x46b390('EvaluationLimit')),await _0x297216()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x38faa5(){const _0x32982e=['evaluation','trial']['includes'](_0x4da62c['licenseType'])?_0x4a6425/0x3e8:0xe10*_0xfd45e0;return _0x4da62c['exp']<_0x32982e;}function _0x54f1bf(){const _0x334cfe=_0x4da62c['features'];return!!_0x334cfe&&(!!_0x334cfe['includes']('*')||!!_0x334cfe['includes']('FOO'));}function _0x527a55(){const _0x502d58=_0x4da62c['licensedHosts'];if(!_0x502d58||0x0==_0x502d58['length'])return!0x0;const {hostname:_0x2321d3}=new URL(window['location']['href']);if(_0x502d58['includes'](_0x2321d3))return!0x0;const _0x216f5b=_0x2321d3['split']('.');return _0x502d58['filter'](_0x44a687=>_0x44a687['includes']('*'))['map'](_0x5c3684=>_0x5c3684['split']('.'))['filter'](_0x5c6e99=>_0x5c6e99['length']<=_0x216f5b['length'])['map'](_0x2bee14=>Array(_0x216f5b['length']-_0x2bee14['length'])['fill']('*'===_0x2bee14[0x0]?'*':'')['concat'](_0x2bee14))['some'](_0x10e54f=>_0x216f5b['every']((_0x40d9ec,_0x291183)=>_0x10e54f[_0x291183]===_0x40d9ec||'*'===_0x10e54f[_0x291183]));}function _0x297216(){return _0x253300&&_0x599b73?new window['Promise']((_0x114aea,_0x5cfa0e)=>{_0x253300['then'](_0x114aea,_0x5cfa0e),_0x599b73['then'](_0x2c0314=>{'Valid'!=_0x2c0314&&_0x114aea(_0x2c0314);},_0x5cfa0e);}):_0x253300||_0x599b73||'Valid';}}function _0x220a57(_0x46042c,_0x4935d5){return new window['Promise'](_0x288d8b=>{if(_0x8faef6())return _0x288d8b('Valid');_0x10b981(),_0x37a4af['decorate']('_sendUsageRequest');let _0x441540=!0x1;const _0x15872b=_0xea66bb();function _0x577926(_0x4c8885){return!!_0x4c8885&&('object'==typeof _0x4c8885||'function'==typeof _0x4c8885)&&'function'==typeof _0x4c8885['then']&&'function'==typeof _0x4c8885['catch'];}function _0x2e634f(_0x267adc){_0x5c1feb(_0x267adc)['then'](_0x33c8b7=>_0x33c8b7&&'ok'==_0x33c8b7['status']?_0x565ca4(_0x42bdaa(_0x15872b+_0x4935d5))!=_0x33c8b7['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x5a57fa=>(_0x3809ca(),_0x5a57fa),()=>{const _0x370990=_0x9ec3b2();return null==_0x370990?(_0x3809ca(),'Valid'):_0x4a6425-_0x370990>0x240c8400?'UsageLimit':'Valid';})['then'](_0x288d8b)['catch'](()=>{_0x288d8b('UsageLimit');});const _0x329654=0x36ee80;function _0x3809ca(){const _0xd8d7d5='llct-'+_0x565ca4(_0x42bdaa(_0x46042c)),_0x27d7b3=_0x9fde95(_0x565ca4(window['Math']['ceil'](_0x4a6425/_0x329654)));window['localStorage']['setItem'](_0xd8d7d5,_0x27d7b3);}function _0x9ec3b2(){const _0x554806='llct-'+_0x565ca4(_0x42bdaa(_0x46042c)),_0x1786d3=window['localStorage']['getItem'](_0x554806);return _0x1786d3?window['parseInt'](_0x9fde95(_0x1786d3),0x10)*_0x329654:null;}function _0x5c1feb(_0x131ca7){return new window['Promise']((_0x3c643b,_0x56f567)=>{_0x131ca7['then'](_0x3c643b,_0x56f567),window['setTimeout'](_0x56f567,0x1d4c0);});}}_0x37a4af['on']('_sendUsageRequest',(_0x1df7a9,_0x2bc8f3)=>{if(_0x2bc8f3[0x0]!=_0x46042c)return _0x288d8b('UsageLimit');_0x2bc8f3[0x1]={..._0x2bc8f3[0x1],'requestId':_0x15872b};},{'priority':'high'}),_0x37a4af['on']('_sendUsageRequest',_0x117126=>{_0x577926(_0x117126['return'])&&(_0x441540=!0x0,_0x2e634f(_0x117126['return']));},{'priority':'low'}),_0x3d7896['then'](()=>{_0x441540||_0x288d8b('UsageLimit');});});function _0x8faef6(){return'auto'==_0x37a4af['editing']['view']['_overlayModeHint'];}function _0x10b981(){_0x37a4af['editing']['view']['_overlayModeHint']='auto';}}function _0x46b390(_0x2c99f7){const _0x4d60e9=[new window['Promise'](_0x4be55c=>setTimeout(_0x4be55c,0x93ecc)),_0x3d7896['then'](()=>new window['Promise'](_0x2f7667=>{let _0x538f50=0x0;_0x37a4af['model']['on']('applyOperation',(_0x1cd166,_0x4d7af5)=>{_0x4d7af5[0x0]['isDocumentOperation']&&_0x538f50++,0x5e8==_0x538f50&&(_0x2f7667(),_0x1cd166['off']());});}))];return window['Promise']['race'](_0x4d60e9)['then'](()=>_0x2c99f7);}async function _0x515c55(){await _0x3d7896,_0x37a4af['model']['change']=_0x37be2e,_0x37a4af['model']['enqueueChange']=_0x37be2e,_0x37a4af['enableReadOnlyMode']('model');}function _0x4cd490(_0x1a7a44){const _0x544978=_0x411ba2();_0x37a4af[_0x544978]='footnotesLicenseKey'+_0x1a7a44,'Valid'!=_0x1a7a44&&_0x515c55();}function _0x411ba2(){const _0x5efe17=window['String'](window['performance']['now']())['replace']('.','');let _0x5e98ac='u';for(let _0x1955ec=0x0;_0x1955ec<_0x5efe17['length'];_0x1955ec+=0x2){let _0x22f473=window['parseInt'](_0x5efe17['substring'](_0x1955ec,_0x1955ec+0x2));_0x22f473>=0x3e&&(_0x22f473-=0x3e),_0x5e98ac+=_0x113bea[_0x22f473];}return _0x5e98ac;}function _0x36743a(){const _0x5d9239=_0x4194f6['split']('.');if(0x3!=_0x5d9239['length'])return null;return _0xefdad8(_0x5d9239[0x1]);function _0xefdad8(_0x52672f){const _0x4ad118=_0x14936d(_0x52672f);return _0x4ad118&&_0x5b1b4e()?_0x4ad118:null;function _0x5b1b4e(){const _0x3d348a=_0x4ad118['jti'],_0x3bfe44=window['parseInt'](_0x3d348a['substring'](_0x3d348a['length']-0x8),0x10),_0x266342={..._0x4ad118,'jti':_0x3d348a['substring'](0x0,_0x3d348a['length']-0x8)};return delete _0x266342['vc'],_0x42bdaa(_0x266342)==_0x3bfe44;}}}async function _0x405ce9(){let _0x245636=!0x0;try{const [_0x463c0c,_0x3f30cd,_0x3a7bcb]=_0x4194f6['split']('.');return _0xdee446(_0x463c0c),await _0x1a1549(_0x463c0c,_0x3f30cd,_0x3a7bcb),_0x245636;}catch{return!0x1;}function _0xdee446(_0x4de854){const _0x2a32f7=_0x14936d(_0x4de854);_0x2a32f7&&'ES256'==_0x2a32f7['alg']||(_0x245636=!0x1);}async function _0x1a1549(_0x714f3d,_0x277a62,_0x1cd823){const _0x156fbb=window['Uint8Array']['from'](_0x5f1ce1(_0x1cd823),_0x1204a2=>_0x1204a2['charCodeAt'](0x0)),_0xd49448=new window['TextEncoder']()['encode'](_0x714f3d+'.'+_0x277a62),_0x3d347f=window['crypto']['subtle'];if(!_0x3d347f)return;const _0x3f9f4f=await _0x3d347f['importKey']('jwk',_0x21dfa3,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x3d347f['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3f9f4f,_0x156fbb,_0xd49448)||(_0x245636=!0x1);}}function _0x14936d(_0x41e6ef){return _0x41e6ef['startsWith']('ey')?JSON['parse'](_0x5f1ce1(_0x41e6ef)):null;}function _0x5f1ce1(_0x116b1a){return window['atob'](_0x116b1a['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x42bdaa(_0x4440c1){let _0x1cb91=0x1505;function _0x16482f(_0xd7d582){for(let _0x35e35a=0x0;_0x35e35a<_0xd7d582['length'];_0x35e35a++){const _0x3d6760=_0xd7d582['charCodeAt'](_0x35e35a);_0x1cb91=(_0x1cb91<<0x5)+_0x1cb91+_0x3d6760,_0x1cb91&=_0x1cb91;}}function _0x36b509(_0x412a33){Array['isArray'](_0x412a33)?_0x412a33['forEach'](_0x36b509):_0x412a33&&'object'==typeof _0x412a33?Object['entries'](_0x412a33)['sort']()['forEach'](([_0x201d44,_0x45bce2])=>{_0x16482f(_0x201d44),_0x36b509(_0x45bce2);}):_0x16482f(window['String'](_0x412a33));}return _0x36b509(_0x4440c1),_0x1cb91>>>0x0;}function _0x565ca4(_0x1eb7a3){return _0x1eb7a3['toString'](0x10)['padStart'](0x8,'0');}function _0x9fde95(_0x391738){return _0x391738['split']('')['reverse']()['join']('');}function _0x37be2e(){}_0x4cd490(await _0x4ff95b());}(this);}_moveSelectionToFootnoteDefinition(_0x428925){const {plugins:_0x294324,editing:_0x45170f,model:_0x13f77e}=this['editor'],_0x22bf90=_0x294324['get'](mT)['getFootnote'](_0x428925);return!!_0x22bf90&&(_0x13f77e['change'](_0xc54136=>{_0xc54136['setSelection'](_0xc54136['createPositionAt'](_0x22bf90['definition'],'end'));}),_0x45170f['view']['scrollToTheSelection'](),!0x0);}_moveSelectionToFootnoteReference(_0x542617){const {plugins:_0x2595b1,editing:_0x1b45f0,model:_0x537488}=this['editor'],_0x267b60=_0x2595b1['get'](mT)['getFootnote'](_0x542617);return!!_0x267b60&&(_0x537488['change'](_0x7e5bec=>{_0x7e5bec['setSelection'](_0x267b60['reference'],'on');}),_0x1b45f0['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x2014e3}=this['editor']['model'],_0x3a1c49=this['editor']['config']['get']('footnotes.multiBlock');_0x2014e3['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x2014e3['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x2014e3['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3a1c49?_0x2014e3['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x2014e3['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x2014e3['addChildCheck'](_0x4408d9=>{for(const _0x5821b4 of _0x4408d9)if('footnoteDefinition'===_0x5821b4['name'])return!0x1;},'footnoteRef');}_defineRefsConverters(){const {editor:_0x3b4368}=this,{conversion:_0x126ad3,editing:_0x51d37c}=_0x3b4368,{t:t}=_0x3b4368['locale'];_0x126ad3['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x4a206b,{writer:_0x580c5e,consumable:_0x29a6ed})=>{const _0x4e44b7=_0x4a206b['getChild'](0x0);if(!_0x4e44b7||!_0x4e44b7['is']('element','a'))return null;const _0x38d814=_0x4e44b7['getAttribute']('href')||'';if(!_0x38d814['startsWith']('#'))return null;const _0x233e31=_0x38d814['replace'](/^#/,'');if(!_0x233e31)return null;_0x29a6ed['consume'](_0x4e44b7,{'name':!0x0,'attributes':['href']});for(const {item:_0x5d1a73}of _0x51d37c['view']['createRangeIn'](_0x4e44b7))_0x5d1a73['is']('$textProxy')?_0x29a6ed['consume'](_0x5d1a73['textNode'],{'name':!0x0}):_0x5d1a73['is']('element')&&_0x29a6ed['consume'](_0x5d1a73,{'name':!0x0});return _0x580c5e['createElement']('footnoteRef',{'footnoteId':_0x233e31});}}),_0x126ad3['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xa442ce,{writer:_0x3d26a7})=>AT(_0xa442ce,_0x3d26a7)}),_0x126ad3['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3b1889,{writer:_0x5db9cf})=>{const _0x3d03e9=_0x3b1889['getAttribute']('footnoteCounter');return _0x24589f(AT(_0x3b1889,_0x5db9cf),_0x5db9cf,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x3d03e9)});}});}_defineDefinitionsConverters(){const {editor:_0x5d1050}=this,{t:t}=_0x5d1050['locale'],{conversion:_0x4e91fc}=_0x5d1050;_0x4e91fc['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4e91fc['for']('upcast')['add'](_0x5ab500=>{_0x5ab500['on']('element:ol',(_0x4737c6,_0x1d5679,_0x3e7530)=>{const _0xc8583=_0x1d5679['viewItem'];if(!_0xc8583['hasClass']('footnotes-list')||!_0x1d5679['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x3e7530['consumable']['consume'](_0xc8583,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x4302a8,modelCursor:_0x4774da}=_0x3e7530['convertChildren'](_0x1d5679['viewItem'],_0x1d5679['modelCursor']);_0x1d5679['modelRange']=_0x4302a8,_0x1d5679['modelCursor']=_0x4774da;}),_0x5ab500['on']('element:hr',(_0x27fe10,_0x4c1fb1,_0x1a4e3a)=>{const _0x3db4f7=_0x4c1fb1['viewItem'];_0x3db4f7['hasClass']('footnotes-divider')&&_0x4c1fb1['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x1a4e3a['consumable']['consume'](_0x3db4f7,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4e91fc['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xe7948b,{writer:_0x5d6a46})=>TT(_0x5d6a46)}),_0x4e91fc['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2cb014,{writer:_0x57d53b})=>{const _0x35da75=_0x24589f(TT(_0x57d53b,{'data-footnotes-list-label':t('Footnotes')}),_0x57d53b,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x57d53b['setCustomProperty']('footnotesDefinitions',!0x0,_0x35da75),_0x35da75;}});}_defineDefinitionConverters(){const {editor:_0x143ccb}=this,{conversion:_0xeafa3d,locale:_0x328781}=_0x143ccb,_0x36ba0d=_0x143ccb['config']['get']('footnotes.multiBlock');_0xeafa3d['for']('upcast')['add'](_0x2ab6d0=>{_0x2ab6d0['on']('element:li',(_0xde49f2,_0x54502f,_0x4954b6)=>{const _0x4195fc=_0x54502f['viewItem'];if(!_0x4195fc['hasClass']('footnote-definition')||!_0x4195fc['getAttribute']('id'))return;const _0xb6f048=_0x4195fc['parent'];if(!_0xb6f048['is']('element','ol')||!_0xb6f048['hasClass']('footnotes-list'))return;if(!_0x4954b6['consumable']['test'](_0x4195fc,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4999d3=_0x4954b6['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x4195fc['getAttribute']('id')});if(!_0x4954b6['safeInsert'](_0x4999d3,_0x54502f['modelCursor']))return;_0x4954b6['consumable']['consume'](_0x4195fc,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x59773d=Array['from'](_0x4195fc['getChildren']())['find'](_0x3bad17=>_0x3bad17['is']('element')&&_0x3bad17['hasClass']('footnote-content'));for(const _0x50a65b of _0x4195fc['getChildren']())_0x50a65b['is']('element')&&(_0x4954b6['consumable']['consume'](_0x50a65b,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x4954b6['consumable']['consume'](_0x50a65b,{'name':!0x0,'classes':'footnote-content'}));if(_0x59773d){if(_0x36ba0d)_0x4954b6['convertChildren'](_0x59773d,_0x4999d3);else{const _0x1f49ef=_0x4954b6['writer']['createElement']('footnoteInlineContent');_0x4954b6['writer']['insert'](_0x1f49ef,_0x4999d3),_0x4954b6['convertChildren'](_0x59773d,_0x1f49ef);}}_0x4954b6['updateConversionResult'](_0x4999d3,_0x54502f);});}),_0xeafa3d['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3ee41e,{writer:_0x1828f2})=>ST(_0x3ee41e,_0x1828f2,_0x328781,{'dataPipeline':!0x0})}),_0xeafa3d['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x35c868,{writer:_0x39245d})=>ST(_0x35c868,_0x39245d,_0x328781)});}_defineBogusParagraphConverters(){const {editor:_0x426d1c}=this,{conversion:_0x30dec5}=_0x426d1c;_0x426d1c['config']['get']('footnotes.multiBlock')?(_0x30dec5['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':yT(),'converterPriority':'high'}),_0x30dec5['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':yT({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x426d1c['model']['document'],'change:data',()=>{!function(_0x1136da,_0x5a3d71){const _0x110bf2=_0x1136da['document']['differ'],_0x3d9c7a=new Set();for(const _0x3db1f1 of _0x110bf2['getChanges']()){const _0x5ec039='attribute'==_0x3db1f1['type']?_0x3db1f1['range']['start']['parent']:_0x3db1f1['position']['parent'];_0x5ec039['is']('element','footnoteDefinition')&&_0x3d9c7a['add'](_0x5ec039);}for(const _0x586bc0 of _0x3d9c7a['values']()){const _0x34120d=Array['from'](_0x586bc0['getChildren']())['filter'](_0x4eb770=>_T(_0x4eb770,_0x5a3d71['mapper']));for(const _0x22c456 of _0x34120d)_0x5a3d71['reconvertItem'](_0x22c456);}}(_0x426d1c['model'],_0x426d1c['editing']);})):(_0x30dec5['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':yT()}),_0x30dec5['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3cac68,{writer:_0x38ce82})=>{const _0x52c49c=_0x38ce82['createContainerElement']('span');return _0x38ce82['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x52c49c),_0x52c49c;}}));}['_defineKeyboardHandlers'](){const {editor:_0x560209}=this,{editing:_0x46202a,t:t}=_0x560209,_0x4a09e5=_0x560209['model']['document']['selection'];_0x560209['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x560209['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x46202a['view']['document'],'enter',(_0x56277a,_0x4d5a63)=>{const _0x4d5eac=function(_0x17fbbb){const _0x554e=_0x17fbbb['getSelectedElement']();return _0x554e?.['is']('element','footnoteRef')?_0x554e:null;}(_0x4a09e5);if(_0x4d5eac){const _0x1368e6=_0x4d5eac['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1368e6),_0x4d5a63['preventDefault'](),_0x56277a['stop']();}},{'context':_0x570702});}['_defineClickHandlers'](){const {editor:_0x593c16}=this,{editing:_0x1488d1}=_0x593c16;_0x593c16['editing']['view']['addObserver'](_0x521121),_0x593c16['editing']['view']['addObserver'](_0x3a6f85);let _0x461f97=!0x1;this['listenTo'](_0x1488d1['view']['document'],'pointerdown',(_0x580812,_0x347e8c)=>{const {target:_0x100eaa}=_0x347e8c,_0x2e2c41=_0x1488d1['view']['document']['selection'];_0x461f97=!!(_0x100eaa?.['is']('element','a')&&_0x100eaa['parent']?.['is']('element','sup')&&_0x100eaa['parent']['hasClass']('footnote'))&&_0x2e2c41['getSelectedElement']()===_0x100eaa['parent'];},{'priority':'high'}),this['listenTo'](_0x1488d1['view']['document'],'click',(_0x165a65,_0x31f464)=>{const {target:_0x1a5341}=_0x31f464;if(!_0x1a5341?.['is']('element','a'))return;if(_0x1a5341['parent']?.['is']('element','sup')&&_0x1a5341['parent']['hasClass']('footnote')&&!_0x461f97)return void _0x31f464['preventDefault']();let _0x5920b8=_0x1a5341['getAttribute']('href');if(!_0x5920b8?.['startsWith']('#'))return;_0x5920b8=_0x5920b8['slice'](0x1);let _0xf66c58=!0x1;(_0x5920b8['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x5920b8['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x5920b8))&&(_0xf66c58=!0x0),_0xf66c58&&(_0x31f464['preventDefault'](),_0x165a65['stop']());},{'priority':'high','context':'$capture'});}};function yT({dataPipeline:_0x32c373}={}){return(_0x58265d,{writer:_0x574c30})=>{if(!vT(_0x58265d))return null;if(!_0x32c373)return _0x574c30['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x63c7b9=_0x574c30['createContainerElement']('p');return _0x574c30['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x63c7b9),_0x63c7b9;};}function vT(_0x380fd2){const {parent:_0x149258}=_0x380fd2;if(!_0x149258?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x149258['childCount'])return!0x1;for(const _0x340430 of _0x380fd2['getAttributeKeys']())if(!_0x340430['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x340430)return!0x1;return!0x0;}function _T(_0x51a8fb,_0x34649a){if(!_0x51a8fb['is']('element','paragraph'))return!0x1;const _0x323be2=_0x34649a['toViewElement'](_0x51a8fb);return!!_0x323be2&&vT(_0x51a8fb)!==_0x323be2['is']('element','span');}function ET(_0x30c871){return _0x570702(_0x30c871)&&_0x30c871['is']('containerElement')&&!!_0x30c871['getCustomProperty']('footnotesDefinitions');}function TT(_0x4233ab,_0x507e59={}){const _0x5d7f37=_0x4233ab['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x32b3f2=_0x4233ab['createContainerElement']('ol',{'class':'footnotes-list'},_0x4233ab['createSlot']());return _0x4233ab['createContainerElement']('div',{'class':'footnotes',..._0x507e59},[_0x5d7f37,_0x32b3f2]);}function AT(_0x160b57,_0x5944c3){const _0x3ca206=_0x160b57['getAttribute']('footnoteId'),_0x25b49f=_0x160b57['getAttribute']('footnoteCounter'),_0x6e3779=_0x5944c3['createUIElement']('a',{'href':'#'+_0x3ca206},function(_0x5852b4){const _0x5e83d5=this['toDomElement'](_0x5852b4);return _0x5e83d5['textContent']=_0x25b49f,_0x5e83d5;}),_0x304647=_0x5944c3['createContainerElement']('sup',{'id':'ref-'+_0x3ca206,'class':'footnote'},[_0x6e3779]);return _0x304647['getFillerOffset']=()=>null,_0x304647;}function ST(_0x4d8cea,_0x199273,_0x14e5b3,{dataPipeline:_0x59a7b4}={}){const {t:t}=_0x14e5b3,_0x33ca6f=_0x4d8cea['getAttribute']('footnoteId'),_0x85f258=_0x199273['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x33ca6f},function(_0x429555){const _0x22e43b=this['toDomElement'](_0x429555);return _0x22e43b['innerText']='^',_0x22e43b;}),_0x299817=_0x59a7b4?_0x199273['createContainerElement']('div',{'class':'footnote-content'}):_0x18140b(_0x199273['createEditableElement']('div',{'class':'footnote-content'}),_0x199273,{'label':t('Footnote\x20content.')});return _0x199273['insert'](_0x199273['createPositionAt'](_0x299817,0x0),_0x199273['createSlot']()),_0x199273['createContainerElement']('li',{'class':'footnote-definition','id':_0x33ca6f},[_0x85f258,_0x299817]);}var IT=class extends _0x11fe30{static get['pluginName'](){return'FootnotesClipboard';}static get requires(){return[bT,_0x4b8e01];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){this['_defineClipboardIntegration']();}_defineClipboardIntegration(){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}_handleCopyFootnotesDefinitions(){const {editor:_0x5032a6}=this,{plugins:_0x49a69c,model:_0x4b1db2}=_0x5032a6,_0x4da4cc=_0x49a69c['get'](_0x4b8e01),_0x154d1c=_0x49a69c['get'](mT);this['listenTo'](_0x4da4cc,'outputTransformation',(_0x2c5ede,_0x5376df)=>{const _0x281327=xT(_0x4b1db2['createRangeIn'](_0x5376df['content']));if(!_0x281327['length'])return;const _0x4ea840=_0x154d1c['getFootnotes'](),_0x2fafb1=_0x281327['reduce']((_0x5d6309,_0x2f01b8)=>{const _0x3223cd=_0x4ea840['find'](_0x1f9144=>_0x1f9144['id']===_0x2f01b8);if(_0x3223cd){const _0xf640ce=_0x5032a6['data']['toView'](_0x3223cd['definition'],{'isClipboardPipeline':!0x0}),_0x300664=_0x5032a6['data']['htmlProcessor']['toData'](_0xf640ce);_0x5d6309[_0x3223cd['id']]=_0x300664;}return _0x5d6309;},Object['create'](null));_0x5376df['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x2fafb1));});}_handlePasteFootnotesDefinitions(){const {editor:_0x34d0dd}=this,{model:_0x194966,plugins:_0x2c216b}=_0x34d0dd,{view:_0x6faea6}=_0x34d0dd['editing'],_0x5167a6=_0x2c216b['get'](_0x4b8e01),_0x1f1143=_0x2c216b['get'](mT),_0x359282=_0x34d0dd['config']['get']('footnotes.multiBlock');let _0x561c35=null;this['listenTo'](_0x6faea6['document'],'clipboardInput',(_0x4a2221,_0x2919e8)=>{const _0x3dda5f=_0x2919e8['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x561c35=_0x3dda5f?JSON['parse'](_0x3dda5f):null;}),this['listenTo'](_0x5167a6,'contentInsertion',(_0x9f3f35,_0xdb73fc)=>{const _0x16d950=_0xdb73fc['sourceEditorId']===this['editor']['id'];_0x16d950&&'drop'===_0xdb73fc['method']||_0x194966['change'](_0x343359=>{let _0x22b543=_0x1f1143['getFootnotesDefinitionsObjectElement']();const _0x2b862e=!!_0x22b543&&Array['from'](_0x194966['document']['selection']['getSelectedBlocks']())['includes'](_0x22b543);if(!_0x561c35&&function(_0x5b51a8){for(const {item:_0x551ac6}of _0x5b51a8)if(_0x551ac6['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x194966['createRangeIn'](_0xdb73fc['content']))&&(_0x561c35=function(_0x10fde0,_0x272df0){const _0x39845c=kT(_0x10fde0,_0x272df0);if(!_0x39845c)return null;const _0x3c9730=Object['create'](null);for(const _0x29796f of _0x39845c['getChildren']())_0x29796f['is']('element','footnoteDefinition')&&_0x29796f['hasAttribute']('footnoteId')&&(_0x3c9730[_0x29796f['getAttribute']('footnoteId')]=_0x10fde0['cloneElement'](_0x29796f,!0x0));return Object['keys'](_0x3c9730)['length']?_0x3c9730:null;}(_0x343359,_0xdb73fc['content'])),(_0x22b543&&!_0x2b862e||!_0x22b543&&!_0x561c35)&&function(_0x5700b8,_0x153be0){const _0x17368b=[];for(const {item:_0x3c0f3b}of _0x5700b8['createRangeIn'](_0x153be0))_0x3c0f3b['is']('element','footnotesDefinitions')&&_0x17368b['push'](_0x3c0f3b);for(const _0x5ac145 of _0x17368b)_0x5700b8['remove'](_0x5ac145);}(_0x343359,_0xdb73fc['content']),!_0x561c35)return;const {selection:_0x4ed8a5}=_0x194966['document'],_0x440445=_0x4ed8a5['getFirstRange']()['root'];if(!_0x22b543||_0x2b862e){if(_0x22b543=kT(_0x343359,_0xdb73fc['content']),_0x22b543||=_0x1f1143['_insertEmptyFootnotesDefinitionsContainer'](_0x343359,_0x440445),!_0x22b543){const _0x42137b=_0x1f1143['_getFirstSuitableFootnotesDefinitionsRoot']();_0x22b543||=_0x42137b&&_0x1f1143['_insertEmptyFootnotesDefinitionsContainer'](_0x343359,_0x42137b);}if(!_0x22b543)return void(_0x561c35=null);}const _0x2e41a8=Array['from'](_0x4ed8a5['getRanges']())['flatMap'](xT),_0x2558eb=function(_0x563d03,_0x1534fa,_0x52974c){const _0x55b541=Object['create'](null);for(const {item:_0x12d77f}of _0x563d03['createRangeIn'](_0x1534fa))if(_0x12d77f['is']('element','footnoteRef')){const _0xa15c28=_0x12d77f['getAttribute']('footnoteId');if(!_0x52974c(_0xa15c28))continue;_0x55b541[_0xa15c28]||(_0x55b541[_0xa15c28]=_0xea66bb()),_0x563d03['setAttribute']('footnoteId',_0x55b541[_0xa15c28],_0x12d77f);}return _0x55b541;}(_0x343359,_0xdb73fc['content'],_0x385d12=>!_0x16d950||!!_0x1f1143['getFootnote'](_0x385d12)&&!_0x2e41a8['includes'](_0x385d12));for(const [_0x166da4,_0x24a073]of Object['entries'](_0x561c35)){const _0x29855a=_0x2558eb[_0x166da4]||_0x166da4;let _0x55d6ae;if('string'!=typeof _0x24a073)_0x55d6ae=_0x24a073,_0x29855a!==_0x166da4&&_0x343359['setAttribute']('footnoteId',_0x29855a,_0x55d6ae);else{_0x55d6ae=_0x343359['createElement']('footnoteDefinition',{'footnoteId':_0x29855a});const _0x53ec74=_0x34d0dd['data']['htmlProcessor']['toView'](_0x24a073);let _0x216038;if(_0x359282)_0x216038=_0x34d0dd['data']['toModel'](_0x53ec74,_0x55d6ae);else{_0x216038=_0x343359['createElement']('footnoteInlineContent');const _0x45d8ba=_0x34d0dd['data']['toModel'](_0x53ec74,_0x216038);_0x343359['insert'](_0x45d8ba,_0x216038);}_0x343359['append'](_0x216038,_0x55d6ae);}_0x343359['insert'](_0x55d6ae,_0x22b543,'end');}_0x561c35=null;});});}};function kT(_0x16d63a,_0x55f0b7){for(const {item:_0x10f43d}of _0x16d63a['createRangeIn'](_0x55f0b7))if(_0x10f43d['is']('element','footnotesDefinitions'))return _0x10f43d;return null;}function xT(_0x128143){const _0x3b116e=new Set();for(const {item:_0x4c1630}of _0x128143)_0x4c1630['is']('element','footnoteRef')&&_0x3b116e['add'](_0x4c1630['getAttribute']('footnoteId'));return Array['from'](_0x3b116e);}var CT=class extends _0x11fe30{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x224115}=this,{componentFactory:_0x1b715e}=_0x224115['ui'];_0x1b715e['add']('insertFootnote',RT(_0x224115,_0x39ae99)),_0x1b715e['add']('menuBar:insertFootnote',RT(_0x224115,_0x589436)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xe3f128=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3ddedd;for(const _0x3bf773 in _0xe3f128){const _0x52e918=_0x3bf773,_0x1ee139=_0xe3f128[_0x52e918];if('footnotesLicenseKeyValid'==_0x1ee139||'footnotesLicenseKeyInvalid'==_0x1ee139||'footnotesLicenseKeyExpired'==_0x1ee139||'footnotesLicenseKeyDomainLimit'==_0x1ee139||'footnotesLicenseKeyNotAllowed'==_0x1ee139||'footnotesLicenseKeyEvaluationLimit'==_0x1ee139||'footnotesLicenseKeyUsageLimit'==_0x1ee139){delete _0xe3f128[_0x52e918],_0x3ddedd=_0x1ee139,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x3ddedd&&_0xe3f128['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x3ddedd&&_0xe3f128['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x3ddedd&&_0xe3f128['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x3ddedd&&_0xe3f128['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x3ddedd&&_0xe3f128['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x3ddedd&&_0xe3f128['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function RT(_0x541509,_0x18b6a0){const _0x1a64ea=_0x541509['commands']['get']('insertFootnote');return _0x9f6f9c=>{const {t:t}=_0x9f6f9c,_0x3fc9f1=new _0x18b6a0(_0x9f6f9c),_0x239ef1=_0x3fc9f1 instanceof _0x589436;return _0x3fc9f1['bind']('isEnabled')['to'](_0x1a64ea,'isEnabled'),_0x3fc9f1['set']({'label':t(_0x239ef1?'Footnote':'Insert\x20footnote'),'icon':st,'tooltip':!0x0}),_0x3fc9f1['on']('execute',()=>{_0x1a64ea['execute'](),_0x541509['editing']['view']['focus']();}),_0x3fc9f1;};}var PT=class extends _0x11fe30{static get['pluginName'](){return'Footnotes';}static get requires(){return[bT,IT,CT];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};const NT=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-roman','upper-roman'],MT=Object['create']({'lower-alpha':'lower-latin','upper-alpha':'upper-latin'}),LT=[...NT,'arabic-indic','lower-alpha','upper-alpha'];var $T=class extends _0x44d8e7{['refresh'](){const {editor:_0x1ea1c9}=this,_0x12bf6c=_0x1ea1c9['plugins']['get'](mT)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x12bf6c,this['value']=_0x12bf6c?.['getAttribute']('footnotesListStyle')??null;}execute({value:_0x187dec}){const {editor:_0x37da4a}=this,_0x336dfa=_0x37da4a['plugins']['get'](mT),_0x942139=_0x336dfa['getFootnotesDefinitionsObjectElement']();_0x942139&&LT['includes'](_0x187dec)&&_0x37da4a['model']['change'](_0x3f7cf4=>{_0x3f7cf4['setAttribute']('footnotesListStyle',_0x187dec,_0x942139),_0x336dfa['_updateFootnotesCounters'](_0x3f7cf4);});}},DT=class extends _0x44d8e7{['refresh'](){const {editor:_0x2cdd20}=this,_0x179869=_0x2cdd20['plugins']['get'](mT)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x179869,this['value']=_0x179869?.['getAttribute']('footnotesListStart')??null;}execute({value:_0x525a02}){const {editor:_0x3ef89e}=this,_0x47c854=_0x3ef89e['plugins']['get'](mT),_0x22e40e=_0x47c854['getFootnotesDefinitionsObjectElement']();_0x22e40e&&Number['isInteger'](_0x525a02)&&_0x3ef89e['model']['change'](_0x3b8bdc=>{_0x3b8bdc['setAttribute']('footnotesListStart',_0x525a02,_0x22e40e),_0x47c854['_updateFootnotesCounters'](_0x3b8bdc);});}};function QT({style:_0x51e28d,digits:_0x561ed9,value:_0x1120d1}){const _0x3b1240=Math['floor'](_0x1120d1),_0x18d10e=function(_0x16d59f){switch(_0x16d59f){case'lower-alpha':case'lower-latin':case'upper-alpha':case'upper-latin':return{'min':0x1,'max':0x1/0x0};case'lower-roman':case'upper-roman':return{'min':0x1,'max':0xf9f};default:return{'min':-0x1/0x0,'max':0x1/0x0};}}(_0x51e28d);switch((_0x3b1240>_0x18d10e['max']||_0x3b1240<_0x18d10e['min'])&&(_0x51e28d='decimal'),_0x51e28d){case'decimal-leading-zero':return function(_0x5f29dd,_0x418921){return String(_0x5f29dd)['padStart'](_0x418921,'0');}(_0x3b1240,Math['max'](0x2,_0x561ed9));case'lower-alpha':case'lower-latin':return jT(_0x3b1240,!0x1);case'upper-alpha':case'upper-latin':return jT(_0x3b1240,!0x0);case'lower-roman':return VT(_0x3b1240,!0x1);case'upper-roman':return VT(_0x3b1240,!0x0);case'arabic-indic':return function(_0x52b6ba){return String(_0x52b6ba)['replace'](/\d/g,_0x2b1bba=>BT[Number(_0x2b1bba)]);}(_0x3b1240);default:return String(_0x3b1240);}}function jT(_0x17f5b1,_0x1d89ed){let _0x2590ca='',_0x37f9a3=_0x17f5b1;for(;_0x37f9a3>0x0;){const _0x25ac43=(_0x37f9a3-0x1)%0x1a;_0x2590ca=String['fromCharCode'](0x61+_0x25ac43)+_0x2590ca,_0x37f9a3=Math['floor']((_0x37f9a3-0x1)/0x1a);}return _0x1d89ed?_0x2590ca['toUpperCase']():_0x2590ca;}const UT=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function VT(_0x4a4ee2,_0x465a1f){let _0xc3f00a='',_0x421a35=_0x4a4ee2;for(const {value:_0x86bd95,numeral:_0x58edcc}of UT)for(;_0x421a35>=_0x86bd95;)_0xc3f00a+=_0x58edcc,_0x421a35-=_0x86bd95;return _0x465a1f?_0xc3f00a:_0xc3f00a['toLowerCase']();}const BT=['٠','١','٢','٣','٤','٥','٦','٧','٨','٩'];var HT=class extends _0x11fe30{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get requires(){return[bT,mT];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x2eca51}=this;_0x2eca51['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x2eca51['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x2eca51['config']['define']('footnotes.footnotesProperties.listStyles',[...NT]),_0x2eca51['commands']['add']('footnotesStyle',new $T(_0x2eca51)),_0x2eca51['commands']['add']('footnotesStart',new DT(_0x2eca51)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x571895}=this,{schema:_0x5ed261}=_0x571895['model'];_0x5ed261['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}_defineConverters(){const {editor:_0x20efad}=this,{conversion:_0x224a0a,model:_0x3bc084}=_0x20efad,{schema:_0x2d8531}=_0x3bc084;_0x224a0a['for']('upcast')['add'](_0x5d3a88=>{_0x5d3a88['on']('element:ol',(_0x2a999e,_0x509f6e,_0x41d6ae)=>{const _0x55a6f7=_0x509f6e['viewItem'],_0x58874a=_0x509f6e['modelCursor']?.['parent'];_0x55a6f7['hasClass']('footnotes-list')&&_0x58874a?.['is']('element','footnotesDefinitions')&&(function(_0x6cefa1,_0x2eec64,_0x4ab4b6,_0x3c82e7){if(!_0x3c82e7['checkAttribute'](_0x2eec64,'footnotesListStart'))return;let _0x16052a=0x1;const _0x557a30=_0x4ab4b6['consumable']['consume'](_0x6cefa1,{'attributes':'start'});if(_0x557a30){const _0x2bc741=Number['parseInt'](_0x6cefa1['getAttribute']('start'),0xa);Number['isNaN'](_0x2bc741)||(_0x16052a=_0x2bc741);}!_0x557a30&&_0x2eec64['hasAttribute']('footnotesListStart')||_0x4ab4b6['writer']['setAttribute']('footnotesListStart',_0x16052a,_0x2eec64);}(_0x55a6f7,_0x58874a,_0x41d6ae,_0x2d8531),function(_0x3af386,_0x48e98f,_0x28b72c,_0x354399){if(!_0x354399['checkAttribute'](_0x48e98f,'footnotesListStyle'))return;let _0x5629c0='decimal',_0x419a59=!0x1;if(_0x28b72c['consumable']['consume'](_0x3af386,{'attributes':'type'})){const _0x15dd7a={0x1:'decimal','a':'lower-latin','A':'upper-latin','i':'lower-roman','I':'upper-roman'}[_0x3af386['getAttribute']('type')];_0x15dd7a&&(_0x5629c0=_0x15dd7a),_0x419a59=!0x0;}if(_0x28b72c['consumable']['consume'](_0x3af386,{'styles':'list-style-type'})){const _0x1614e1=FT(_0x3af386['getStyle']('list-style-type'));_0x1614e1&&(_0x5629c0=_0x1614e1),_0x419a59=!0x0;}!_0x419a59&&_0x48e98f['hasAttribute']('footnotesListStyle')||_0x28b72c['writer']['setAttribute']('footnotesListStyle',_0x5629c0,_0x48e98f);}(_0x55a6f7,_0x58874a,_0x41d6ae,_0x2d8531));});}),_0x224a0a['for']('downcast')['add'](_0xce1c7=>{_0xce1c7['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x4b19b4,_0x295a56,_0x41c71)=>{if(!_0x41c71['consumable']['consume'](_0x295a56['item'],_0x4b19b4['name']))return;const _0x5c1c5c=ZT(_0x295a56['item'],_0x41c71['mapper']),{attributeNewValue:_0x19bfa2}=_0x295a56;null==_0x19bfa2||0x1===_0x19bfa2?_0x41c71['writer']['removeAttribute']('start',_0x5c1c5c):_0x41c71['writer']['setAttribute']('start',String(_0x19bfa2),_0x5c1c5c);}),_0xce1c7['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x10f309,_0x9c1499,_0x441db0)=>{if(!_0x441db0['consumable']['consume'](_0x9c1499['item'],_0x10f309['name']))return;const _0x514c4e=ZT(_0x9c1499['item'],_0x441db0['mapper']),{attributeNewValue:_0x236c34}=_0x9c1499;_0x236c34&&'decimal'!==_0x236c34?_0x441db0['writer']['setStyle']('list-style-type',_0x236c34,_0x514c4e):_0x441db0['writer']['removeStyle']('list-style-type',_0x514c4e);});});}_definePostfixer(){const {editor:_0x64adc4}=this,{model:_0x1e778a}=_0x64adc4,_0x49db82=_0x64adc4['plugins']['get'](mT),_0x403a64=this['_getDefaultListStyle'](),_0x5d3bd4=this['_getDefaultStartIndex']();_0x1e778a['document']['registerPostFixer'](_0xc5d381=>{const _0x1bbb9e=_0x1e778a['document']['differ']['getChanges']();let _0x4d1a95=!0x1;for(const _0x195059 of _0x1bbb9e){if('insert'!==_0x195059['type']||'$text'===_0x195059['name'])continue;const _0x41562b=_0x1e778a['createRangeOn'](_0x195059['position']['nodeAfter']);for(const _0x3791d5 of _0x41562b['getItems']())_0x3791d5['is']('element','footnotesDefinitions')&&(!_0x3791d5['hasAttribute']('footnotesListStart')&&_0x1e778a['schema']['checkAttribute'](_0x3791d5,'footnotesListStart')&&(_0xc5d381['setAttribute']('footnotesListStart',_0x5d3bd4,_0x3791d5),_0x4d1a95=!0x0),!_0x3791d5['hasAttribute']('footnotesListStyle')&&_0x1e778a['schema']['checkAttribute'](_0x3791d5,'footnotesListStyle')&&(_0xc5d381['setAttribute']('footnotesListStyle',_0x403a64,_0x3791d5),_0x4d1a95=!0x0));}return _0x4d1a95&&_0x49db82['_updateFootnotesCounters'](_0xc5d381),_0x4d1a95;});}_defineFormatter(){const {editor:_0x206c72}=this;_0x206c72['plugins']['get'](mT)['setFootnoteFormatter'](_0x12354c=>this['_formatFootnoteListValue'](_0x12354c));}_getDefaultListStyle(){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}_getDefaultStartIndex(){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}_formatFootnoteListValue({container:_0x250b3c,value:_0x2c492a,digits:_0xd751a7}){const _0x289943=_0x250b3c['getAttribute']('footnotesListStyle');return QT({'value':_0x2c492a+(_0x250b3c['getAttribute']('footnotesListStart')??0x1)-0x1,'style':_0x289943,'digits':_0xd751a7});}};function FT(_0x381e01){if('string'==typeof _0x381e01){const _0x541d14=MT[_0x381e01];if(_0x541d14)return _0x541d14;if(LT['includes'](_0x381e01))return _0x381e01;}return null;}function ZT(_0x302591,_0x40d450){const _0x8ea894=_0x40d450['toViewElement'](_0x302591);return Array['from'](_0x8ea894['getChildren']())['find'](_0x1feff3=>_0x1feff3['is']('element','ol')&&_0x1feff3['hasClass']('footnotes-list'));}var GT=class extends _0x2f6e1a{['children'];stylesView=null;additionalProperties=null;startIndexFieldView=null;['focusTracker']=new _0x1c95ab();keystrokes=new _0xa8275a();['focusables']=new _0x18940b();['focusCycler'];constructor(_0xe62802,{styleButtonViews:_0x263c6f,styleGridAriaLabel:_0x5fc444}){super(_0xe62802),(this['focusCycler']=new _0x273f88({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x263c6f,_0x5fc444),[this['startIndexFieldView'],this['additionalProperties']]=this['_appendAdditionalPropertiesCollapsibleView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-footnotes-definitions-properties']},'children':this['children']}));}['render'](){if(super['render'](),this['stylesView']){this['focusables']['add'](this['stylesView']),this['focusTracker']['add'](this['stylesView']['element']);for(const _0x498a4d of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x498a4d['element']);_0x2cde60({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x250afe['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0xfe5c50=_0xff6585=>_0xff6585['stopPropagation']();this['keystrokes']['set']('arrowright',_0xfe5c50),this['keystrokes']['set']('arrowleft',_0xfe5c50),this['keystrokes']['set']('arrowup',_0xfe5c50),this['keystrokes']['set']('arrowdown',_0xfe5c50);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}focusLast(){this['focusCycler']['focusLast']();}destroy(){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}_appendStylesView(_0x534d39,_0x3c05f8){const _0x20b3d8=new _0x2f6e1a(this['locale']);return _0x20b3d8['children']=_0x20b3d8['createCollection'](),_0x20b3d8['children']['addMany'](_0x534d39),_0x20b3d8['setTemplate']({'tag':'div','attributes':{'aria-label':_0x3c05f8,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x20b3d8['children']}),_0x20b3d8['children']['delegate']('execute')['to'](this),_0x20b3d8['focus']=function(){for(const _0x207b37 of this['children'])if(_0x207b37 instanceof _0x39ae99&&_0x207b37['isOn'])return void _0x207b37['focus']();this['children']['first']['focus']();},_0x20b3d8['focusTracker']=new _0x1c95ab(),_0x20b3d8['keystrokes']=new _0xa8275a(),_0x20b3d8['render'](),_0x20b3d8['keystrokes']['listenTo'](_0x20b3d8['element']),this['children']['add'](_0x20b3d8),_0x20b3d8;}_appendAdditionalPropertiesCollapsibleView(){const {t:t}=this['locale'],_0x1bc731=this['_createStartIndexPropertyView'](),_0x5175b4=[_0x1bc731],_0x447a47=new _0x553571(this['locale'],_0x5175b4);return _0x447a47['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x447a47['buttonView']['bind']('isEnabled')['toMany'](_0x5175b4,'isEnabled',(..._0xacd6b5)=>_0xacd6b5['some'](_0x540de8=>_0x540de8)),_0x447a47['buttonView']['on']('change:isEnabled',(_0x25ba76,_0x816d65,_0x3c168f)=>{_0x3c168f||(_0x447a47['isCollapsed']=!0x0);}),this['children']['add'](_0x447a47),[_0x1bc731,_0x447a47];}_createStartIndexPropertyView(){const {t:t}=this['locale'],_0x45874f=new _0x51334f(this['locale'],_0x507b7e);return _0x45874f['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x45874f['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x45874f['fieldView']['on']('input',()=>{const _0x3a2a5c=_0x45874f['fieldView']['element'],_0x1f0075=_0x3a2a5c['valueAsNumber'];Number['isNaN'](_0x1f0075)?_0x45874f['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x3a2a5c['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x1f0075}):_0x45874f['errorText']=t(_0x1f0075<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x45874f;}},XT=class extends _0x11fe30{static get['pluginName'](){return'FootnotesPropertiesUI';}static get requires(){return[_0x2f4a98,_0x1b87a2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x222e31}=this,{componentFactory:_0x411063}=_0x222e31['ui'];_0x222e31['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x411063['add']('footnotesStyle',function(_0x41001d){return _0x1ef808=>{const {t:t}=_0x1ef808,_0x3cf87c=_0x41001d['commands']['get']('footnotesStyle'),_0x3d7c03=_0x46490d(_0x1ef808),{buttonView:_0x1bc899}=_0x3d7c03;return _0x3d7c03['class']='ck-footnotes-styles-dropdown',_0x3d7c03['bind']('isEnabled')['to'](_0x3cf87c,'isEnabled'),_0x1bc899['set']({'label':t('Footnotes\x20style'),'icon':st,'tooltip':!0x0}),_0x3d7c03['once']('change:isOpen',()=>{const _0x39b038=function({editor:_0x2c7252,dropdownView:_0x4036e6}){const {t:t}=_0x2c7252['locale'],_0x35f382=t('Footnotes\x20definitions\x20styles'),_0x2039f0=function(_0x405bd5){const {t:t}=_0x405bd5['locale'],_0x2c780b=_0x405bd5['config']['get']('footnotes.footnotesProperties.listStyles'),_0x23161f=[{'style':'decimal','label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'icon':Et},{'style':'decimal-leading-zero','label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'icon':Tt},{'style':'lower-roman','label':t('Toggle\x20the\x20lower-roman\x20footnotes\x20style'),'tooltip':t('Lower-roman\x20footnotes'),'icon':St},{'style':'upper-roman','label':t('Toggle\x20the\x20upper-roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'icon':kt},{'style':'lower-latin','label':t('Toggle\x20the\x20lower-latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'icon':At},{'style':'upper-latin','label':t('Toggle\x20the\x20upper-latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'icon':It},{'style':'arabic-indic','label':t('Toggle\x20the\x20arabic-indic\x20footnotes\x20style'),'tooltip':t('Arabic-indic\x20footnotes'),'icon':_t}];return _0x2c780b['map'](_0x3a0e26=>{const _0x1d0ab5=FT(_0x3a0e26);return function(_0x40db71,_0x4e5fa4){const {locale:_0x42e402}=_0x40db71,{label:_0x39822c,icon:_0xa74af2,tooltip:_0x4be495,style:_0x131c4f}=_0x4e5fa4,_0x55c49d=_0x40db71['commands']['get']('footnotesStyle'),_0x2d0145=new _0x39ae99(_0x42e402);return _0x2d0145['set']({'label':_0x39822c,'icon':_0xa74af2,'tooltip':_0x4be495}),_0x2d0145['bind']('isOn')['to'](_0x55c49d,'value',_0x5d9e02=>_0x5d9e02===_0x131c4f),_0x2d0145['bind']('isEnabled')['to'](_0x55c49d,'isEnabled'),_0x2d0145['on']('execute',()=>{_0x40db71['execute']('footnotesStyle',{'value':_0x131c4f}),_0x40db71['editing']['view']['focus']();}),_0x2d0145;}(_0x405bd5,_0x23161f['find'](_0x3b0507=>_0x3b0507['style']===_0x1d0ab5));});}(_0x2c7252),_0x25177a=new GT(_0x2c7252['locale'],{'styleGridAriaLabel':_0x35f382,'styleButtonViews':_0x2039f0}),_0x46c12f=_0x2c7252['commands']['get']('footnotesStart');return _0x25177a['startIndexFieldView']['bind']('isEnabled')['to'](_0x46c12f),_0x25177a['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x46c12f),_0x25177a['on']('footnotesListStart',(_0x57d0ae,_0x3f0a49)=>{_0x2c7252['execute']('footnotesStart',{'value':_0x3f0a49['startIndex']});}),_0x25177a['delegate']('execute')['to'](_0x4036e6),_0x25177a;}({'editor':_0x41001d,'dropdownView':_0x3d7c03});_0x3d7c03['panelView']['children']['add'](_0x39b038);}),_0x3d7c03;};}(_0x222e31));}afterInit(){const {editor:_0x585db0}=this,{t:t}=_0x585db0['locale'],_0x332d60=_0x585db0['plugins']['get'](_0x1b87a2),{defaultPositions:_0x10e50d}=_0x42b496;_0x332d60['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x585db0['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x4f2d21=>{let _0x4648d0=_0x4f2d21['getFirstPosition']()?.['parent'];return _0x4648d0?.['is']('$text')&&(_0x4648d0=_0x4648d0['parent']),_0x4648d0?.['is']('element')?_0x4648d0['findAncestor'](ET):null;},'positions':[_0x10e50d['southArrowNorth'],_0x10e50d['southArrowNorthMiddleWest'],_0x10e50d['southArrowNorthMiddleEast'],_0x10e50d['southArrowNorthWest'],_0x10e50d['southArrowNorthEast'],_0x10e50d['northArrowSouth'],_0x10e50d['northArrowSouthMiddleWest'],_0x10e50d['northArrowSouthMiddleEast'],_0x10e50d['northArrowSouthWest'],_0x10e50d['northArrowSouthEast'],_0x10e50d['viewportStickyNorth']]});}},qT=class extends _0x11fe30{static get['pluginName'](){return'FootnotesProperties';}static get requires(){return[HT,XT];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};const WT='copyFormat',zT='pasteFormat',YT='ck-format-painter-active';var KT=class extends _0x44d8e7{constructor(_0x336cca){super(_0x336cca),this['value']=void 0x0,this['on']('change:isEnabled',(_0x1bd748,_0x36e46a,_0xb19366)=>{_0xb19366||this['reset']();}),this['on']('change:value',()=>_0x336cca['commands']['get'](zT)['refresh']());}execute(){this['value']=this['_getFormattingAttributes']();}reset(){this['value']=void 0x0;}_getFormattingAttributes(){const _0x4d8a9f=this['editor']['model'],_0x336a52=_0x4d8a9f['document']['selection'];return Object['fromEntries'](Array['from'](_0x336a52['getAttributes']())['filter'](([_0x2623a6])=>_0x4d8a9f['schema']['getAttributeProperties'](_0x2623a6)['isFormatting']));}},JT=class extends _0x44d8e7{constructor(_0x391e15){super(_0x391e15),this['_removeFormatCommand']=new _0x8c2d0e(_0x391e15);}execute(_0x1f8d5c={}){const _0x2a9a56=this['editor']['model'],_0x289995=_0x2a9a56['document']['selection'],_0x5dc63b=Array['from'](_0x289995['getRanges']()),_0x59d706=_0x289995['isCollapsed']?[this['_createRangeOnEntireWord'](_0x2a9a56,_0x289995)]:_0x5dc63b;_0x2a9a56['change'](_0xa06259=>{_0xa06259['setSelection'](_0x59d706),this['_removeFormatCommand']['execute']();for(const _0x5359db in _0x1f8d5c)for(const _0x3589dc of _0x2a9a56['schema']['getValidRanges'](_0x59d706,_0x5359db))_0xa06259['setAttribute'](_0x5359db,_0x1f8d5c[_0x5359db],_0x3589dc);_0xa06259['setSelection'](_0x5dc63b);});}_createRangeOnEntireWord(_0xf56c93,_0x5373a0){const _0x5ebbec=_0xf56c93['createSelection'](_0x5373a0);_0xf56c93['modifySelection'](_0x5ebbec,{'unit':'word','direction':'backward'});const _0x1c042f=_0x5ebbec['getFirstPosition']();_0xf56c93['modifySelection'](_0x5ebbec,{'unit':'word','direction':'forward'});const _0xcea912=_0x5ebbec['getLastPosition']();return _0xf56c93['createRange'](_0x1c042f,_0xcea912);}},tA=class extends _0x11fe30{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'FormatPainterEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x3fbb6b=this['editor'];_0x3fbb6b['commands']['add'](WT,new KT(_0x3fbb6b)),_0x3fbb6b['commands']['add'](zT,new JT(_0x3fbb6b)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x95cca1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5a3bbd;for(const _0x5cffa8 in _0x95cca1){const _0x4243c3=_0x5cffa8,_0x349e6f=_0x95cca1[_0x4243c3];if('formatPainterLicenseKeyValid'==_0x349e6f||'formatPainterLicenseKeyInvalid'==_0x349e6f||'formatPainterLicenseKeyExpired'==_0x349e6f||'formatPainterLicenseKeyDomainLimit'==_0x349e6f||'formatPainterLicenseKeyNotAllowed'==_0x349e6f||'formatPainterLicenseKeyEvaluationLimit'==_0x349e6f||'formatPainterLicenseKeyUsageLimit'==_0x349e6f){delete _0x95cca1[_0x4243c3],_0x5a3bbd=_0x349e6f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'formatPainterLicenseKeyInvalid'==_0x5a3bbd&&_0x95cca1['_showLicenseError']('invalid'),'formatPainterLicenseKeyExpired'==_0x5a3bbd&&_0x95cca1['_showLicenseError']('expired'),'formatPainterLicenseKeyDomainLimit'==_0x5a3bbd&&_0x95cca1['_showLicenseError']('domainLimit'),'formatPainterLicenseKeyNotAllowed'==_0x5a3bbd&&_0x95cca1['_showLicenseError']('featureNotAllowed','FormatPainter'),'formatPainterLicenseKeyEvaluationLimit'==_0x5a3bbd&&_0x95cca1['_showLicenseError']('evaluationLimit'),'formatPainterLicenseKeyUsageLimit'==_0x5a3bbd&&_0x95cca1['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function eA(_0x5c6876,_0x45d4e4){const t=_0x5c6876['t'];switch(_0x45d4e4){case'Paint\x20formatting':return t('Paint\x20formatting');case'Copy\x20text\x20formatting':return t('Copy\x20text\x20formatting');case'Paste\x20text\x20formatting':return t('Paste\x20text\x20formatting');case'Continuous\x20painting':return t('Continuous\x20painting');case'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':return t('Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.');case'Formatting\x20copied.':return t('Formatting\x20copied.');case'Pasted\x20formatting.':return t('Pasted\x20formatting.');case'Painting\x20cancelled.':return t('Painting\x20cancelled.');default:return _0x45d4e4;}}const iA=/* #__PURE__ -- @preserve */
_0x5c7b5e(_0x11fe30);var sA=class extends iA{static get['pluginName'](){return'FormatPainterUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x3b105e=this['editor'];_0x3b105e['editing']['view']['addObserver'](_0x3a6f85),_0x3b105e['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':eA(_0x3b105e['locale'],'Copy\x20text\x20formatting'),'keystroke':'Ctrl+Alt+C'},{'label':eA(_0x3b105e['locale'],'Paste\x20text\x20formatting'),'keystroke':'Ctrl+Alt+V'}]}),_0x3b105e['ui']['componentFactory']['add']('formatPainter',_0x354a94=>{const _0x53f3f2=_0x46490d(_0x354a94,_0xdb04e7),_0x4a0ecb=_0x3b105e['commands']['get'](WT);_0x53f3f2['buttonView']['set']({'label':eA(_0x3b105e['locale'],'Paint\x20formatting'),'icon':Ut,'keystroke':'Ctrl+Alt+C','tooltip':!0x0}),_0x53f3f2['class']='ck-format-painter-dropdown',_0x4a0ecb&&(_0x53f3f2['bind']('isEnabled')['to'](_0x4a0ecb,'isEnabled'),this['listenTo'](_0x4a0ecb,'change:isEnabled',(_0x160a24,_0x1412fd,_0x42e196)=>{_0x42e196||this['_finishPainting']();}),_0x53f3f2['buttonView']['bind']('isOn')['to'](_0x4a0ecb,'value',_0x37502a=>!!_0x37502a),this['listenTo'](_0x3b105e,'destroy',()=>this['_toggleSpecialCursor'](!0x1)),this['listenTo'](_0x4a0ecb,'change:value',(_0x4681b6,_0x4935fa,_0x279bf4)=>{this['_toggleSpecialCursor'](!!_0x279bf4);}));const _0x20d987=new ts({'withText':!0x0,'label':eA(_0x3b105e['locale'],'Continuous\x20painting'),'tooltip':eA(_0x3b105e['locale'],'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.'),'isOn':!0x1,'role':'menuitemcheckbox'});_0x55b796(_0x53f3f2,new _0x2186b6([{'type':'switchbutton','model':_0x20d987}]),{'role':'menu'});const _0x50eb9a=()=>{this['_copyFormatting'](),this['listenTo'](_0x250afe['window']['document'],'mouseup',()=>{this['_pasteFormatting'](),_0x20d987['isOn']||this['_finishPainting']();});};return this['listenTo'](_0x53f3f2,'execute',()=>{_0x20d987['isOn']=!_0x20d987['isOn'];}),this['listenTo'](_0x53f3f2['buttonView'],'execute',()=>{_0x3b105e['editing']['view']['focus'](),_0x53f3f2['buttonView']['isOn']?this['_finishPainting']():_0x50eb9a();}),_0x3b105e['keystrokes']['set']('Ctrl+Alt+C',(_0x5daa13,_0x6ea8bb)=>{_0x50eb9a(),_0x20d987['isOn']=!0x0,_0x6ea8bb();},{'priority':'high'}),_0x3b105e['keystrokes']['set']('Ctrl+Alt+V',(_0x36187d,_0x391cc0)=>{_0x53f3f2['buttonView']['isOn']&&(this['_pasteFormatting'](),_0x20d987['isOn']||this['_finishPainting'](),_0x391cc0());},{'priority':'high'}),_0x3b105e['keystrokes']['set']('Esc',(_0x5c0e42,_0x161531)=>{_0x53f3f2['buttonView']['isOn']&&(_0x20d987['isOn']=!0x1,this['_finishPainting'](),_0x3b105e['ui']['ariaLiveAnnouncer']['announce'](eA(_0x3b105e['locale'],'Painting\x20cancelled.')),_0x161531());}),_0x53f3f2;});}afterInit(){!async function(_0x17ebe6){const _0x338979='QiLRCSOsZ8pAvDdaPJUE3oxjKlzM2uXgrtGfeyh5cNFkmBw9I6WH0qnb4T17YV',_0x533d19=0x791d0,_0x552954=window['Date']['now'](),_0xb1933f=_0x17ebe6['editor'],_0x4742c4=new window['Promise'](_0x55385e=>{_0xb1933f['once']('ready',_0x55385e);}),_0x17c471={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x23abf2=_0xb1933f['config']['get']('licenseKey');async function _0x444071(){let _0x2859e1,_0x27a6fb=null,_0x51b8de=null;try{return'GPL'==_0x23abf2?'NotAllowed':(_0x2859e1=_0x35637d(),_0x2859e1?(_0x2859e1['usageEndpoint']&&(_0x51b8de=_0x4e0206(_0x2859e1['usageEndpoint'],_0x2859e1['jti'])),await _0x48f423()?_0x1a0be9()?_0x5a36cf()?'Expired':_0x228609()?('evaluation'==_0x2859e1['licenseType']&&(_0x27a6fb=_0x2b08b8('EvaluationLimit')),await _0x596001()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x5a36cf(){const _0x498310=['evaluation','trial']['includes'](_0x2859e1['licenseType'])?_0x552954/0x3e8:0xe10*_0x533d19;return _0x2859e1['exp']<_0x498310;}function _0x1a0be9(){const _0x1e22da=_0x2859e1['features'];return!!_0x1e22da&&(!!_0x1e22da['includes']('*')||(!!_0x1e22da['includes']('FP')||(!!_0x1e22da['includes']('PP')||!(!_0x1e22da['includes']('TRILIUM')||!_0x2c8259()))));}function _0x228609(){const _0x24f465=_0x2859e1['licensedHosts'];if(!_0x24f465||0x0==_0x24f465['length'])return!0x0;const {hostname:_0x128ba4}=new URL(window['location']['href']);if(_0x24f465['includes'](_0x128ba4))return!0x0;const _0x30550c=_0x128ba4['split']('.');return _0x24f465['filter'](_0xfc6958=>_0xfc6958['includes']('*'))['map'](_0x2398c9=>_0x2398c9['split']('.'))['filter'](_0x592b6e=>_0x592b6e['length']<=_0x30550c['length'])['map'](_0x49b8fd=>Array(_0x30550c['length']-_0x49b8fd['length'])['fill']('*'===_0x49b8fd[0x0]?'*':'')['concat'](_0x49b8fd))['some'](_0xe9aeb5=>_0x30550c['every']((_0x4d2648,_0x29aa0b)=>_0xe9aeb5[_0x29aa0b]===_0x4d2648||'*'===_0xe9aeb5[_0x29aa0b]));}function _0x596001(){return _0x27a6fb&&_0x51b8de?new window['Promise']((_0x18b755,_0x2adc2c)=>{_0x27a6fb['then'](_0x18b755,_0x2adc2c),_0x51b8de['then'](_0x790e00=>{'Valid'!=_0x790e00&&_0x18b755(_0x790e00);},_0x2adc2c);}):_0x27a6fb||_0x51b8de||'Valid';}}function _0x4e0206(_0x4c7bce,_0x4db2e0){return new window['Promise'](_0x1b87d6=>{if(_0x17e00c())return _0x1b87d6('Valid');_0x5b70d6(),_0xb1933f['decorate']('_sendUsageRequest');let _0x1084dc=!0x1;const _0xd902=_0xea66bb();function _0x5bcbf5(_0x523f4d){return!!_0x523f4d&&('object'==typeof _0x523f4d||'function'==typeof _0x523f4d)&&'function'==typeof _0x523f4d['then']&&'function'==typeof _0x523f4d['catch'];}function _0x364a57(_0x2a63bc){_0x43be4a(_0x2a63bc)['then'](_0x2318d9=>_0x2318d9&&'ok'==_0x2318d9['status']?_0x1d5ad3(_0x5ee8b1(_0xd902+_0x4db2e0))!=_0x2318d9['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x42c713=>(_0x97696c(),_0x42c713),()=>{const _0x57dd91=_0x65a60d();return null==_0x57dd91?(_0x97696c(),'Valid'):_0x552954-_0x57dd91>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1b87d6)['catch'](()=>{_0x1b87d6('UsageLimit');});const _0x3d5419=0x36ee80;function _0x97696c(){const _0x2cd25f='llct-'+_0x1d5ad3(_0x5ee8b1(_0x4c7bce)),_0x5cfbef=_0x467fda(_0x1d5ad3(window['Math']['ceil'](_0x552954/_0x3d5419)));window['localStorage']['setItem'](_0x2cd25f,_0x5cfbef);}function _0x65a60d(){const _0x4c05e9='llct-'+_0x1d5ad3(_0x5ee8b1(_0x4c7bce)),_0x49d2fc=window['localStorage']['getItem'](_0x4c05e9);return _0x49d2fc?window['parseInt'](_0x467fda(_0x49d2fc),0x10)*_0x3d5419:null;}function _0x43be4a(_0xed0a06){return new window['Promise']((_0x1109f7,_0x18a0e3)=>{_0xed0a06['then'](_0x1109f7,_0x18a0e3),window['setTimeout'](_0x18a0e3,0x1d4c0);});}}_0xb1933f['on']('_sendUsageRequest',(_0x1367f7,_0x53e2b6)=>{if(_0x53e2b6[0x0]!=_0x4c7bce)return _0x1b87d6('UsageLimit');_0x53e2b6[0x1]={..._0x53e2b6[0x1],'requestId':_0xd902};},{'priority':'high'}),_0xb1933f['on']('_sendUsageRequest',_0x18970c=>{_0x5bcbf5(_0x18970c['return'])&&(_0x1084dc=!0x0,_0x364a57(_0x18970c['return']));},{'priority':'low'}),_0x4742c4['then'](()=>{_0x1084dc||_0x1b87d6('UsageLimit');});});function _0x17e00c(){return'auto'==_0xb1933f['editing']['view']['_overlayModeHint'];}function _0x5b70d6(){_0xb1933f['editing']['view']['_overlayModeHint']='auto';}}function _0x2b08b8(_0x5b00de){const _0xeee42b=[new window['Promise'](_0x56c105=>setTimeout(_0x56c105,0x93ecc)),_0x4742c4['then'](()=>new window['Promise'](_0x38d6d=>{let _0x7b9652=0x0;_0xb1933f['model']['on']('applyOperation',(_0x30e8b6,_0x1838d8)=>{_0x1838d8[0x0]['isDocumentOperation']&&_0x7b9652++,0x5e8==_0x7b9652&&(_0x38d6d(),_0x30e8b6['off']());});}))];return window['Promise']['race'](_0xeee42b)['then'](()=>_0x5b00de);}async function _0x47c66a(){await _0x4742c4,_0xb1933f['model']['change']=_0x2ce7af,_0xb1933f['model']['enqueueChange']=_0x2ce7af,_0xb1933f['enableReadOnlyMode']('model');}function _0x2c8259(){return window['glob']&&window['glob']['triliumVersion'];}function _0x451d85(_0x533898){const _0x15903a=_0x4108a8();_0xb1933f[_0x15903a]='formatPainterLicenseKey'+_0x533898,'Valid'!=_0x533898&&_0x47c66a();}function _0x4108a8(){const _0x42c8ac=window['String'](window['performance']['now']())['replace']('.','');let _0x12f171='Q';for(let _0x29b582=0x0;_0x29b582<_0x42c8ac['length'];_0x29b582+=0x2){let _0x3de771=window['parseInt'](_0x42c8ac['substring'](_0x29b582,_0x29b582+0x2));_0x3de771>=0x3e&&(_0x3de771-=0x3e),_0x12f171+=_0x338979[_0x3de771];}return _0x12f171;}function _0x35637d(){const _0x121cee=_0x23abf2['split']('.');if(0x3!=_0x121cee['length'])return null;return _0x3b484f(_0x121cee[0x1]);function _0x3b484f(_0x428429){const _0x568b7b=_0x181c86(_0x428429);return _0x568b7b&&_0x2a5eee()?_0x568b7b:null;function _0x2a5eee(){const _0x3e0aec=_0x568b7b['jti'],_0x1dbee9=window['parseInt'](_0x3e0aec['substring'](_0x3e0aec['length']-0x8),0x10),_0x17436c={..._0x568b7b,'jti':_0x3e0aec['substring'](0x0,_0x3e0aec['length']-0x8)};return delete _0x17436c['vc'],_0x5ee8b1(_0x17436c)==_0x1dbee9;}}}async function _0x48f423(){let _0x211635=!0x0;try{const [_0x3c25c4,_0x163381,_0x4e9db4]=_0x23abf2['split']('.');return _0x17cfcc(_0x3c25c4),await _0x93f45e(_0x3c25c4,_0x163381,_0x4e9db4),_0x211635;}catch{return!0x1;}function _0x17cfcc(_0x4ef747){const _0x3f4d71=_0x181c86(_0x4ef747);_0x3f4d71&&'ES256'==_0x3f4d71['alg']||(_0x211635=!0x1);}async function _0x93f45e(_0x543e7c,_0x3bc773,_0x5192dc){const _0x13bd58=window['Uint8Array']['from'](_0x165a1c(_0x5192dc),_0x4da538=>_0x4da538['charCodeAt'](0x0)),_0x1eb405=new window['TextEncoder']()['encode'](_0x543e7c+'.'+_0x3bc773),_0x5d0eb0=window['crypto']['subtle'];if(!_0x5d0eb0)return;const _0x11cc89=await _0x5d0eb0['importKey']('jwk',_0x17c471,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5d0eb0['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x11cc89,_0x13bd58,_0x1eb405)||(_0x211635=!0x1);}}function _0x181c86(_0x1fe08a){return _0x1fe08a['startsWith']('ey')?JSON['parse'](_0x165a1c(_0x1fe08a)):null;}function _0x165a1c(_0x39ca1c){return window['atob'](_0x39ca1c['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x5ee8b1(_0x36ef82){let _0x83db32=0x1505;function _0x5ee1bb(_0x1ab156){for(let _0x1f47ce=0x0;_0x1f47ce<_0x1ab156['length'];_0x1f47ce++){const _0x4b11a6=_0x1ab156['charCodeAt'](_0x1f47ce);_0x83db32=(_0x83db32<<0x5)+_0x83db32+_0x4b11a6,_0x83db32&=_0x83db32;}}function _0x352ce3(_0x36ffe5){Array['isArray'](_0x36ffe5)?_0x36ffe5['forEach'](_0x352ce3):_0x36ffe5&&'object'==typeof _0x36ffe5?Object['entries'](_0x36ffe5)['sort']()['forEach'](([_0x477fe3,_0x338f8f])=>{_0x5ee1bb(_0x477fe3),_0x352ce3(_0x338f8f);}):_0x5ee1bb(window['String'](_0x36ffe5));}return _0x352ce3(_0x36ef82),_0x83db32>>>0x0;}function _0x1d5ad3(_0x387f9d){return _0x387f9d['toString'](0x10)['padStart'](0x8,'0');}function _0x467fda(_0x3516ad){return _0x3516ad['split']('')['reverse']()['join']('');}function _0x2ce7af(){}_0x451d85(await _0x444071());}(this);}_toggleSpecialCursor(_0x26f92c){this['editor']['editing']['view']['change'](_0xf7f194=>{for(const _0x374d86 of this['editor']['editing']['view']['document']['roots'])_0x26f92c?_0xf7f194['addClass'](YT,_0x374d86):_0xf7f194['removeClass'](YT,_0x374d86);});}_copyFormatting(){const {editor:_0x391566}=this;_0x391566['execute'](WT),_0x391566['ui']['ariaLiveAnnouncer']['announce'](eA(_0x391566['locale'],'Formatting\x20copied.'));}_pasteFormatting(){const {editor:_0x57569a}=this,_0x2e272b=_0x57569a['commands']['get'](WT)['value'];_0x57569a['execute'](zT,_0x2e272b),_0x57569a['ui']['ariaLiveAnnouncer']['announce'](eA(_0x57569a['locale'],'Pasted\x20formatting.'));}_finishPainting(){this['editor']['commands']['get'](WT)['reset'](),this['stopListening'](_0x250afe['window']['document'],'mouseup');}},nA=class extends _0x11fe30{static get requires(){return[tA,sA];}static get['pluginName'](){return'FormatPainter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};function rA(_0x9a7073,_0x26a160){const t=_0x9a7073['t'];switch(_0x26a160){case'Import\x20from\x20Word':return t('Import\x20from\x20Word');case'An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':return t('An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.');case'Importing\x20Word\x20document':return t('Importing\x20Word\x20document');default:return _0x26a160;}}var oA=class extends _0x11fe30{static get['pluginName'](){return'ImportWordUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x48dfca=this['editor'];_0x48dfca['ui']['componentFactory']['add']('importWord',()=>{const _0x1767df=this['_createButton'](_0x19f49a),_0x4f3466=_0x48dfca['commands']['get']('importWord');return _0x1767df['bind']('isOn')['to'](_0x4f3466,'isBusy'),_0x1767df['tooltip']=!0x0,_0x1767df;}),_0x48dfca['ui']['componentFactory']['add']('menuBar:importWord',()=>this['_createButton'](_0x3432ac));}_createButton(_0x4baf9f){const _0x15e046=this['editor'],_0x3323fb=_0x15e046['commands']['get']('importWord'),_0x5cc781=new _0x4baf9f(_0x15e046['locale']),_0x279a2d=new _0x4d4034();return _0x5cc781['set']({'acceptedType':'application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.wordprocessingml.template'}),_0x5cc781['set']({'icon':gt}),_0x5cc781['bind']('isEnabled')['to'](_0x3323fb),_0x5cc781['bind']('label')['to'](_0x3323fb,'isBusy',_0x3bf416=>rA(_0x15e046['locale'],_0x3bf416?'Importing\x20Word\x20document':'Import\x20from\x20Word')),_0x279a2d['bind']('isVisible')['to'](_0x3323fb,'isBusy'),_0x5cc781['iconView']['bind']('isVisible')['to'](_0x3323fb,'isBusy',_0x11f5ea=>!_0x11f5ea),_0x5cc781['children']['add'](_0x279a2d),_0x5cc781['on']('done',(_0x23cd88,_0x4ec4f0)=>{_0x15e046['execute']('importWord',_0x4ec4f0[0x0],{}),_0x15e046['editing']['view']['focus']();}),_0x5cc781;}},aA=class extends _0x44d8e7{_importMarker;_undoStepBatch;_abortController;constructor(_0x3e4280){super(_0x3e4280),this['set']('isBusy',!0x1),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['on']('dataInsert',(_0x342efe,_0x4b861f)=>{const _0x445956=new DataTransfer();_0x445956['setData']('text/html',_0x4b861f['html']);const _0x49f915=this['_importMarker']['getRange']();this['editor']['model']['enqueueChange'](this['_undoStepBatch'],_0x1fc679=>{this['_importMarker']['stopListening'](),_0x1fc679['setSelection'](_0x49f915),_0x3e4280['editing']['view']['document']['fire']('clipboardInput',{'dataTransfer':_0x445956,'content':_0x445956['getData']('text/html')});});},{'priority':'low'});}['refresh'](){this['isEnabled']=this['_checkEnabled']();}execute(_0x1d8238,_0x452a45={}){if(this['isBusy'])return Promise['resolve']();const _0x2ea3c9=this['editor']['config']['get']('importWord');if(this['editor']['plugins']['has']('MergeFields')){const {prefix:_0x33a42a,suffix:_0x17a1a6}=this['editor']['config']['get']('mergeFields');_0x452a45['merge_fields']={'prefix':_0x33a42a,'suffix':_0x17a1a6};}const _0x20ae4a={'url':_0x2ea3c9['converterUrl'],'file':_0x1d8238,'serviceConfig':{..._0x452a45,'formatting':_0x2ea3c9['formatting'],'timezone':new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone']}};return this['_prepareForImport'](),this['_sendImportRequest'](_0x20ae4a)['then'](this['_handleImportResponse']['bind'](this))['catch'](this['_handleImportFailure']['bind'](this))['finally'](this['_cleanUpAfterImport']['bind'](this));}['_checkEnabled'](){if(this['isBusy'])return!0x1;const _0x548047=this['editor']['model'],_0x41d00a=_0x548047['schema'],_0x3ccb60=_0x548047['document']['selection'],_0x4aa9df=_0x4b2d4c(_0x3ccb60['getSelectedBlocks']());return!!_0x4aa9df&&_0x41d00a['checkChild'](_0x4aa9df['parent'],'paragraph');}_prepareForImport(){const _0x2ce82f=this['editor'],_0x5ebbc1=_0x2ce82f['model'],_0x2e58aa=_0x5ebbc1['document']['selection'];this['_abortController']=new AbortController(),this['_undoStepBatch']=_0x2ce82f['model']['createBatch']({'isUndoable':!0x0}),_0x5ebbc1['enqueueChange'](this['_undoStepBatch'],_0xf17ceb=>{_0x2e58aa['isCollapsed']||_0x5ebbc1['deleteContent'](_0x2e58aa,{'leaveUnmerged':!0x0});const _0x113274=_0x2e58aa['getFirstPosition'](),_0x1b70e7=_0x4b2d4c(_0x2e58aa['getSelectedBlocks']());let _0x5ae0d6;_0x5ae0d6=_0x1b70e7['is']('element','paragraph')&&_0x1b70e7['isEmpty']?_0x113274:_0x113274['isAtStart']?_0x5ebbc1['createPositionBefore'](_0x1b70e7):_0x113274['isAtEnd']?_0x5ebbc1['createPositionAfter'](_0x1b70e7):_0xf17ceb['split'](_0x113274)['position'],this['_importMarker']=_0xf17ceb['addMarker']('importWord:'+_0xea66bb(),{'usingOperation':!0x1,'affectsData':!0x1,'range':new _0x45ca57(_0x5ae0d6)}),this['_importMarker']['on']('change:range',()=>{'$graveyard'===this['_importMarker']['getRange']()['root']['rootName']&&this['_abortController']['abort']();});}),this['isBusy']=!0x0,this['refresh']();}_cleanUpAfterImport(){const _0x1051d1=this['editor']['model'];_0x1051d1['markers']['has'](this['_importMarker'])&&_0x1051d1['enqueueChange'](this['_undoStepBatch'],_0x5f29ba=>{_0x5f29ba['removeMarker'](this['_importMarker']);}),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['isBusy']=!0x1,this['refresh']();}async _sendImportRequest({url:_0xd01e12,file:_0x27c1fa,serviceConfig:_0x5c0126}){const _0x1eeb34=await this['editor']['plugins']['get']('ImportWordEditing')['getToken'](),_0x1e59f8=new FormData();_0x1e59f8['set']('config',JSON['stringify'](_0x5c0126)),_0x1e59f8['set']('file',_0x27c1fa);const _0x2c3ba5={'method':'POST','headers':{},'body':_0x1e59f8,'signal':this['_abortController']['signal']};return _0x1eeb34&&(_0x2c3ba5['headers']['Authorization']=_0x1eeb34['value']),fetch(_0xd01e12,_0x2c3ba5);}_handleImportResponse(_0x1bcfd5){return _0x1bcfd5['ok']?_0x1bcfd5['json']()['then'](_0x4913d2=>{this['editor']['model']['markers']['has'](this['_importMarker'])&&'$graveyard'!==this['_importMarker']['getRange']()['root']['rootName']&&this['fire']('dataInsert',{..._0x4913d2,'undoStepBatch':this['_undoStepBatch']});}):Promise['reject']();}_handleImportFailure(){if(this['_abortController']['signal']['aborted'])return void _0x53dc7a('import-word-plugin-import-cancelled');const _0x2c385f=this['editor'],_0x56f92a=rA(_0x2c385f['locale'],'An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.');_0x2c385f['plugins']['get']('Notification')['showWarning'](_0x56f92a),_0x4ddea0('import-word-plugin-conversion-failed');}},cA=class extends _0x11fe30{_token;static get['pluginName'](){return'ImportWordEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x362622,_0x4b8e01,_0x3bc91d];}init(){const _0x495acc=this['editor'],_0x5b714e=_0x495acc['plugins']['get'](_0x3bc91d);_0x495acc['config']['define']('importWord',{'converterUrl':'https://docx-converter.cke-cs.com/v2/convert/docx-html','tokenUrl':(_0x495acc['config']['get']('cloudServices')||{})['tokenUrl'],'formatting':{'resets':'none','defaults':'none','styles':'inline'}}),_0x495acc['commands']['add']('importWord',new aA(_0x495acc));const {tokenUrl:_0x151a68}=_0x495acc['config']['get']('importWord');if(_0x151a68){const {tokenUrl:_0x4638ea}=_0x495acc['config']['get']('cloudServices')||{};this['_token']=_0x151a68===_0x4638ea?Promise['resolve'](_0x5b714e['token']):_0x5b714e['registerTokenUrl'](_0x151a68);}else this['_token']=Promise['resolve'](null);}getToken(){return this['_token'];}},lA=class extends _0x11fe30{static get['pluginName'](){return'ImportWord';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[cA,oA];}},hA=class extends _0x44d8e7{['refresh'](){const _0x571547=this['editor']['model']['document'],_0x335b9a=_0x4b2d4c(_0x571547['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x335b9a)&&this['_canHaveLineHeight'](_0x335b9a),this['value']=this['isEnabled']&&_0x335b9a['getAttribute']('lineHeight');}execute(_0x4d7f46={}){const _0x2d2e5d=this['editor']['model'],_0xf435e6=_0x2d2e5d['document']['selection'],_0x3c6df2=_0x4d7f46['value'];_0x2d2e5d['change'](_0x38481d=>{const _0x172222=Array['from'](_0xf435e6['getSelectedBlocks']())['filter'](_0x1cebaf=>this['_canHaveLineHeight'](_0x1cebaf));for(const _0x57b6b1 of _0x172222)_0x3c6df2?_0x38481d['setAttribute']('lineHeight',_0x3c6df2,_0x57b6b1):_0x38481d['removeAttribute']('lineHeight',_0x57b6b1);});}_canHaveLineHeight(_0x48cf24){return this['editor']['model']['schema']['checkAttribute'](_0x48cf24,'lineHeight');}};const uA={get 'single'(){return{'title':'Single','model':'single','view':{'key':'class','value':'line-height-single'}};},get 'double'(){return{'title':'Double','model':'double','view':{'key':'class','value':'line-height-double'}};}};function dA(_0x1ec643){return'string'==typeof _0x1ec643&&'default'===_0x1ec643['toLowerCase']();}function fA(_0x2e1f2c){return _0x2e1f2c['options']['map'](_0x2a5e4c=>{return dA(_0x2a5e4c)?{'title':String(_0x2e1f2c['defaultValue']),'model':'default'}:('number'==typeof _0x2a5e4c&&(_0x2a5e4c=String(_0x2a5e4c)),'string'!=typeof _0x2a5e4c?_0x2a5e4c:parseFloat(_0x2a5e4c)?{'title':_0x2a5e4c,'model':_0x2a5e4c,'view':{'name':'span','styles':{'line-height':_0x2a5e4c}}}:'string'==typeof(_0x513ae3=_0x2a5e4c)?uA[_0x513ae3]:uA[_0x513ae3['model']]);var _0x513ae3;})['filter'](_0x3dfeb5=>void 0x0!==_0x3dfeb5);}var mA=class extends _0x11fe30{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {plugins:_0x181a83,conversion:_0x595bbf}=this['editor'];_0x181a83['has']('ListEditing')&&_0x181a83['has']('TodoListEditing')&&(_0x181a83['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x334f5b,_0x3f0929,_0x4b0193,_0x5d44d9,_0x35bc23){'todo'==_0x35bc23['getAttribute']('listType')&&_0x3f0929&&(_0x334f5b['addClass']('ck-list-marker-line-height',_0x4b0193),_0x334f5b['setStyle']('--ck-content-list-marker-line-height',_0x3f0929,_0x4b0193));}}),_0x595bbf['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x595bbf['for']('upcast')['add'](_0x3dacf7=>{_0x3dacf7['on']('element:li',function(_0x227ccc){const _0x50a877=new _0x44d927(_0x227ccc);return(_0x273e4b,_0x35808a,_0x570b8a)=>{const _0x5d2ba1=_0x50a877['match'](_0x35808a['viewItem']);if(!_0x5d2ba1)return;const _0xa3bbc7=_0x5d2ba1['match'];_0xa3bbc7['name']=!0x1,_0x570b8a['consumable']['consume'](_0x35808a['viewItem'],_0xa3bbc7);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));}));}},pA=class extends _0x11fe30{static get['pluginName'](){return'LineHeightEditing';}static get requires(){return[mA];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3169c5){super(_0x3169c5),_0x3169c5['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}init(){const _0x469a5e=this['editor'];this['_validateConfig'](),_0x469a5e['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x469a5e['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x469a5e['commands']['add']('lineHeight',new hA(_0x469a5e)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}afterInit(){!async function(_0xd4f55c){const _0x1a87fb='PHQ3YUIBrl0XdnwG9kez8sfpMv1ytWFRNZOV5jJaq7Tc2ogub64xCKDEALSihm',_0xd6b9e1=0x791d0,_0x59c66d=window['Date']['now'](),_0xf50eb9=_0xd4f55c['editor'],_0x5ae897=new window['Promise'](_0x49717a=>{_0xf50eb9['once']('ready',_0x49717a);}),_0x2777d1={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x2dcf50=_0xf50eb9['config']['get']('licenseKey');async function _0x589ed7(){let _0x235607,_0x46f9e5=null,_0xbc471a=null;try{return'GPL'==_0x2dcf50?'NotAllowed':(_0x235607=_0xc17e9f(),_0x235607?(_0x235607['usageEndpoint']&&(_0xbc471a=_0x5ad031(_0x235607['usageEndpoint'],_0x235607['jti'])),await _0x5d3c23()?_0x103082()?_0x166ec0()?'Expired':_0x18d2a3()?('evaluation'==_0x235607['licenseType']&&(_0x46f9e5=_0x23e874('EvaluationLimit')),await _0x31cdcc()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x166ec0(){const _0x46ecfe=['evaluation','trial']['includes'](_0x235607['licenseType'])?_0x59c66d/0x3e8:0xe10*_0xd6b9e1;return _0x235607['exp']<_0x46ecfe;}function _0x103082(){const _0x19b515=_0x235607['features'];return!!_0x19b515&&(!!_0x19b515['includes']('*')||!!_0x19b515['includes']('LH'));}function _0x18d2a3(){const _0x46da12=_0x235607['licensedHosts'];if(!_0x46da12||0x0==_0x46da12['length'])return!0x0;const {hostname:_0x1d4c3d}=new URL(window['location']['href']);if(_0x46da12['includes'](_0x1d4c3d))return!0x0;const _0x4161c9=_0x1d4c3d['split']('.');return _0x46da12['filter'](_0x27b180=>_0x27b180['includes']('*'))['map'](_0x348d1a=>_0x348d1a['split']('.'))['filter'](_0x4ed6f1=>_0x4ed6f1['length']<=_0x4161c9['length'])['map'](_0x337fdc=>Array(_0x4161c9['length']-_0x337fdc['length'])['fill']('*'===_0x337fdc[0x0]?'*':'')['concat'](_0x337fdc))['some'](_0x526e4b=>_0x4161c9['every']((_0x56841e,_0x3a761f)=>_0x526e4b[_0x3a761f]===_0x56841e||'*'===_0x526e4b[_0x3a761f]));}function _0x31cdcc(){return _0x46f9e5&&_0xbc471a?new window['Promise']((_0x47f615,_0x5d3ad6)=>{_0x46f9e5['then'](_0x47f615,_0x5d3ad6),_0xbc471a['then'](_0x307e5b=>{'Valid'!=_0x307e5b&&_0x47f615(_0x307e5b);},_0x5d3ad6);}):_0x46f9e5||_0xbc471a||'Valid';}}function _0x5ad031(_0x4b2745,_0x582257){return new window['Promise'](_0x31b758=>{if(_0x264fbb())return _0x31b758('Valid');_0x5eb381(),_0xf50eb9['decorate']('_sendUsageRequest');let _0x560e59=!0x1;const _0x21425c=_0xea66bb();function _0x5cfa70(_0x5a5acc){return!!_0x5a5acc&&('object'==typeof _0x5a5acc||'function'==typeof _0x5a5acc)&&'function'==typeof _0x5a5acc['then']&&'function'==typeof _0x5a5acc['catch'];}function _0x17a8ff(_0x393757){_0x13a369(_0x393757)['then'](_0x473d27=>_0x473d27&&'ok'==_0x473d27['status']?_0x3463e7(_0x378f18(_0x21425c+_0x582257))!=_0x473d27['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x4696dd=>(_0x374874(),_0x4696dd),()=>{const _0x3cb028=_0x1544f7();return null==_0x3cb028?(_0x374874(),'Valid'):_0x59c66d-_0x3cb028>0x240c8400?'UsageLimit':'Valid';})['then'](_0x31b758)['catch'](()=>{_0x31b758('UsageLimit');});const _0x2fd79=0x36ee80;function _0x374874(){const _0x22e1a5='llct-'+_0x3463e7(_0x378f18(_0x4b2745)),_0x3a8af1=_0x5a353e(_0x3463e7(window['Math']['ceil'](_0x59c66d/_0x2fd79)));window['localStorage']['setItem'](_0x22e1a5,_0x3a8af1);}function _0x1544f7(){const _0x593e57='llct-'+_0x3463e7(_0x378f18(_0x4b2745)),_0x51b75c=window['localStorage']['getItem'](_0x593e57);return _0x51b75c?window['parseInt'](_0x5a353e(_0x51b75c),0x10)*_0x2fd79:null;}function _0x13a369(_0x2d6340){return new window['Promise']((_0x3348d2,_0x28745e)=>{_0x2d6340['then'](_0x3348d2,_0x28745e),window['setTimeout'](_0x28745e,0x1d4c0);});}}_0xf50eb9['on']('_sendUsageRequest',(_0x566bef,_0x209d4a)=>{if(_0x209d4a[0x0]!=_0x4b2745)return _0x31b758('UsageLimit');_0x209d4a[0x1]={..._0x209d4a[0x1],'requestId':_0x21425c};},{'priority':'high'}),_0xf50eb9['on']('_sendUsageRequest',_0xa281ba=>{_0x5cfa70(_0xa281ba['return'])&&(_0x560e59=!0x0,_0x17a8ff(_0xa281ba['return']));},{'priority':'low'}),_0x5ae897['then'](()=>{_0x560e59||_0x31b758('UsageLimit');});});function _0x264fbb(){return'auto'==_0xf50eb9['editing']['view']['_overlayModeHint'];}function _0x5eb381(){_0xf50eb9['editing']['view']['_overlayModeHint']='auto';}}function _0x23e874(_0x4e3598){const _0x3d0eb4=[new window['Promise'](_0x334d5a=>setTimeout(_0x334d5a,0x93ecc)),_0x5ae897['then'](()=>new window['Promise'](_0x3ce6fd=>{let _0x429779=0x0;_0xf50eb9['model']['on']('applyOperation',(_0x3a4ecc,_0x522881)=>{_0x522881[0x0]['isDocumentOperation']&&_0x429779++,0x5e8==_0x429779&&(_0x3ce6fd(),_0x3a4ecc['off']());});}))];return window['Promise']['race'](_0x3d0eb4)['then'](()=>_0x4e3598);}async function _0x5498cd(){await _0x5ae897,_0xf50eb9['model']['change']=_0x39f0d0,_0xf50eb9['model']['enqueueChange']=_0x39f0d0,_0xf50eb9['enableReadOnlyMode']('model');}function _0x101f06(_0x364762){const _0x615479=_0xbfb19c();_0xf50eb9[_0x615479]='lineHeightLicenseKey'+_0x364762,'Valid'!=_0x364762&&_0x5498cd();}function _0xbfb19c(){const _0x9eafc7=window['String'](window['performance']['now']())['replace']('.','');let _0x532ace='P';for(let _0x561440=0x0;_0x561440<_0x9eafc7['length'];_0x561440+=0x2){let _0x2d147a=window['parseInt'](_0x9eafc7['substring'](_0x561440,_0x561440+0x2));_0x2d147a>=0x3e&&(_0x2d147a-=0x3e),_0x532ace+=_0x1a87fb[_0x2d147a];}return _0x532ace;}function _0xc17e9f(){const _0x303ca0=_0x2dcf50['split']('.');if(0x3!=_0x303ca0['length'])return null;return _0x4ed9b1(_0x303ca0[0x1]);function _0x4ed9b1(_0x31c9bd){const _0x30d271=_0xa8bdce(_0x31c9bd);return _0x30d271&&_0x5ddb62()?_0x30d271:null;function _0x5ddb62(){const _0xa24df5=_0x30d271['jti'],_0x1532ef=window['parseInt'](_0xa24df5['substring'](_0xa24df5['length']-0x8),0x10),_0xc16fd5={..._0x30d271,'jti':_0xa24df5['substring'](0x0,_0xa24df5['length']-0x8)};return delete _0xc16fd5['vc'],_0x378f18(_0xc16fd5)==_0x1532ef;}}}async function _0x5d3c23(){let _0x1b45b7=!0x0;try{const [_0x12a49c,_0x551fda,_0x2d1639]=_0x2dcf50['split']('.');return _0x238998(_0x12a49c),await _0x34338c(_0x12a49c,_0x551fda,_0x2d1639),_0x1b45b7;}catch{return!0x1;}function _0x238998(_0x4bb36d){const _0x46e2aa=_0xa8bdce(_0x4bb36d);_0x46e2aa&&'ES256'==_0x46e2aa['alg']||(_0x1b45b7=!0x1);}async function _0x34338c(_0x5705a4,_0x3eb93e,_0x47eac9){const _0x3905a1=window['Uint8Array']['from'](_0x57196f(_0x47eac9),_0x16f240=>_0x16f240['charCodeAt'](0x0)),_0x401c35=new window['TextEncoder']()['encode'](_0x5705a4+'.'+_0x3eb93e),_0x1c6da4=window['crypto']['subtle'];if(!_0x1c6da4)return;const _0x5a7a06=await _0x1c6da4['importKey']('jwk',_0x2777d1,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x1c6da4['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x5a7a06,_0x3905a1,_0x401c35)||(_0x1b45b7=!0x1);}}function _0xa8bdce(_0x5bb9cf){return _0x5bb9cf['startsWith']('ey')?JSON['parse'](_0x57196f(_0x5bb9cf)):null;}function _0x57196f(_0x12df71){return window['atob'](_0x12df71['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x378f18(_0x404989){let _0x3796d0=0x1505;function _0x1c0f31(_0x26b55a){for(let _0x3bc932=0x0;_0x3bc932<_0x26b55a['length'];_0x3bc932++){const _0x39e594=_0x26b55a['charCodeAt'](_0x3bc932);_0x3796d0=(_0x3796d0<<0x5)+_0x3796d0+_0x39e594,_0x3796d0&=_0x3796d0;}}function _0x20c0ca(_0x215ab8){Array['isArray'](_0x215ab8)?_0x215ab8['forEach'](_0x20c0ca):_0x215ab8&&'object'==typeof _0x215ab8?Object['entries'](_0x215ab8)['sort']()['forEach'](([_0x18a5d1,_0x33e09b])=>{_0x1c0f31(_0x18a5d1),_0x20c0ca(_0x33e09b);}):_0x1c0f31(window['String'](_0x215ab8));}return _0x20c0ca(_0x404989),_0x3796d0>>>0x0;}function _0x3463e7(_0x936c19){return _0x936c19['toString'](0x10)['padStart'](0x8,'0');}function _0x5a353e(_0x5d4476){return _0x5d4476['split']('')['reverse']()['join']('');}function _0x39f0d0(){}_0x101f06(await _0x589ed7());}(this);}_validateConfig(){const _0x17efaf=this['editor'];if(!_0x17efaf['config']['get']('lineHeight.supportAllValues'))return;const _0xc45ab5=_0x17efaf['config']['get']('lineHeight.options')['filter'](_0x141d1e=>'string'==typeof _0x141d1e&&(!dA(_0x141d1e)&&isNaN(Number(_0x141d1e))));if(_0xc45ab5['length'])throw new _0x4242d4('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0xc45ab5});}_prepareAnyValueConverters(){const _0x372016=this['editor'],_0x55d0e6=this['editor']['config']['get']('lineHeight.defaultValue');_0x372016['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x3056fc=>String(_0x3056fc)===String(_0x55d0e6)?null:{'key':'style','value':{'line-height':_0x3056fc}}}),_0x372016['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x3df551=>{let _0x5df7db=_0x3df551['getStyle']('line-height');return _0x2739d7(_0x5df7db)&&(_0x5df7db=String(Number(_0x5df7db['slice'](0x0,-0x1))/0x64)),String(_0x5df7db)===String(_0x55d0e6)?null:_0x5df7db;}},'view':{'styles':{'line-height':/.*/}}});}_preparePredefinedConverters(){const _0x130385=this['editor'],_0x3ccb9e=this['editor']['config']['get']('lineHeight.defaultValue'),_0x5573bb=function(_0x51e5d1,_0x4cf132){const _0x112c20={'model':{'key':_0x51e5d1,'values':[]},'view':{}};for(const _0x215830 of _0x4cf132)'class'===_0x215830['view']?.['key']?(_0x112c20['model']['values']['push'](_0x215830['model']),_0x112c20['view'][_0x215830['model']]={'key':'class','value':_0x215830['view']['value']}):(_0x112c20['model']['values']['push'](_0x215830['model']),_0x112c20['view'][_0x215830['model']]={'key':'style','value':'line-height:'+_0x215830['model']+';'});return _0x112c20;}('lineHeight',fA(this['editor']['config']['get']('lineHeight'))['filter'](_0x3669b1=>_0x3669b1['model']));_0x130385['conversion']['attributeToAttribute'](_0x5573bb),_0x130385['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x48ff5e=>{let _0xbea062=_0x48ff5e['getStyle']('line-height');return _0x2739d7(_0xbea062)&&(_0xbea062=String(Number(_0xbea062['slice'](0x0,-0x1))/0x64)),_0xbea062===String(_0x3ccb9e)?null:_0x5573bb['model']['values']['includes'](_0xbea062)?_0xbea062:null;}}});}},gA=class extends _0x11fe30{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x53bf84={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x53bf84),this['_registerMenuBarComponent'](_0x53bf84),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3a148f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x35efb1;for(const _0x2e94be in _0x3a148f){const _0x695c14=_0x2e94be,_0x5f168c=_0x3a148f[_0x695c14];if('lineHeightLicenseKeyValid'==_0x5f168c||'lineHeightLicenseKeyInvalid'==_0x5f168c||'lineHeightLicenseKeyExpired'==_0x5f168c||'lineHeightLicenseKeyDomainLimit'==_0x5f168c||'lineHeightLicenseKeyNotAllowed'==_0x5f168c||'lineHeightLicenseKeyEvaluationLimit'==_0x5f168c||'lineHeightLicenseKeyUsageLimit'==_0x5f168c){delete _0x3a148f[_0x695c14],_0x35efb1=_0x5f168c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x35efb1&&_0x3a148f['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x35efb1&&_0x3a148f['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x35efb1&&_0x3a148f['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x35efb1&&_0x3a148f['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x35efb1&&_0x3a148f['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x35efb1&&_0x3a148f['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_shouldRenderCustomValueOption(){return this['editor']['config']['get']('lineHeight.supportAllValues');}_getLocalizedLineHeightOptions(){const _0x14ac01=this['editor'],t=_0x14ac01['t'],_0x1ff707=_0x14ac01['config']['get']('lineHeight'),_0x1a8084={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return fA(_0x1ff707)['map'](_0x4eb145=>{const _0x18b2be=_0x1a8084[_0x4eb145['title']];return _0x18b2be&&_0x18b2be!=_0x4eb145['title']&&(_0x4eb145=Object['assign']({},_0x4eb145,{'title':_0x18b2be})),_0x4eb145;});}_prepareListOptions(){const _0x970921=this['editor']['commands']['get']('lineHeight'),_0xe7b6e8=this['editor']['config']['get']('lineHeight.defaultValue'),_0x5b075f=this['_getLocalizedLineHeightOptions'](),_0x126576=new _0x2186b6(),_0x234050=_0x297719=>'default'===_0x297719||String(_0xe7b6e8)===_0x297719;for(const _0x53559f of _0x5b075f){const _0x367c6a={'type':'button','model':new ts({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x53559f['title'],'withText':!0x0})};_0x234050(_0x53559f['model'])?(_0x367c6a['model']['bind']('isOn')['to'](_0x970921,'value',_0x2468bb=>!_0x2468bb),_0x367c6a['model']['commandParam']=void 0x0):(_0x367c6a['model']['bind']('isOn')['to'](_0x970921,'value',_0x31cd9f=>_0x31cd9f===_0x53559f['model']),_0x367c6a['model']['commandParam']=_0x53559f['model']),_0x126576['add'](_0x367c6a);}if(this['_shouldRenderCustomValueOption']()){const _0x123f47=this['_getCustomValueOptionDefinition'](_0x5b075f);_0x126576['add'](_0x123f47);}return _0x126576;}_getCustomValueOptionDefinition(_0x6f3193){const _0x3b258c=this['editor'],t=_0x3b258c['t'],_0x325854=_0x3b258c['commands']['get']('lineHeight'),_0x11153f=_0x6f3193['map'](_0x20b80d=>_0x20b80d['model']),_0x40f0ca={'type':'button','model':new ts({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x40f0ca['model']['bind']('commandParam')['to'](_0x325854,'value'),_0x40f0ca['model']['bind']('isOn')['to'](_0x325854,'value',_0x20bfa0=>!!_0x20bfa0&&!_0x11153f['includes'](String(_0x20bfa0))),_0x40f0ca['model']['bind']('label')['to'](_0x325854,'value',_0x1eb97c=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x1eb97c))),_0x40f0ca;}_registerToolbarComponent({accessibleLabel:_0x1bce2c,options:_0x10c785}){const _0x46a5fd=this['editor'],_0x26ab45=_0x46a5fd['commands']['get']('lineHeight');_0x46a5fd['ui']['componentFactory']['add']('lineHeight',_0x34e8ad=>{const _0x2cf05a=_0x46490d(_0x34e8ad);return _0x55b796(_0x2cf05a,_0x10c785,{'role':'menu','ariaLabel':_0x1bce2c}),_0x2cf05a['buttonView']['set']({'label':_0x1bce2c,'tooltip':!0x0,'icon':yt}),_0x2cf05a['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x2cf05a['bind']('isEnabled')['to'](_0x26ab45),this['listenTo'](_0x2cf05a,'execute',_0x1dc168=>{_0x46a5fd['execute'](_0x1dc168['source']['commandName'],{'value':_0x1dc168['source']['commandParam']}),_0x46a5fd['editing']['view']['focus']();}),_0x2cf05a['once']('change:isOpen',()=>{const _0x48ccd9=_0x2cf05a['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x2cf05a,_0x10c785,_0x48ccd9);}),_0x2cf05a;});}_registerMenuBarComponent({accessibleLabel:_0x5c3c38,options:_0x1896be}){const _0x4b9327=this['editor'],_0xfa8d3d=_0x4b9327['commands']['get']('lineHeight');_0x4b9327['ui']['componentFactory']['add']('menuBar:lineHeight',_0x17e5d7=>{const _0x410cd2=new _0xf2980e(_0x17e5d7);_0x410cd2['buttonView']['set']({'label':_0x5c3c38,'icon':yt}),_0x410cd2['bind']('isEnabled')['to'](_0xfa8d3d);const _0x588b6d=new _0x32d381(_0x17e5d7);for(const _0x10f28c of _0x1896be){const _0x3afdc2=new _0x1bf87e(_0x17e5d7,_0x410cd2),_0x1daf86=new _0x589436(_0x17e5d7);_0x1daf86['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x1daf86['bind'](...Object['keys'](_0x10f28c['model']))['to'](_0x10f28c['model']),_0x1daf86['delegate']('execute')['to'](_0x410cd2),_0x1daf86['on']('execute',()=>{_0x4b9327['execute'](_0x10f28c['model']['commandName'],{'value':_0x10f28c['model']['commandParam']}),_0x4b9327['editing']['view']['focus']();}),_0x3afdc2['children']['add'](_0x1daf86),_0x588b6d['items']['add'](_0x3afdc2);}return _0x410cd2['panelView']['children']['add'](_0x588b6d),this['_attachCustomOptionVisibilityHandler'](_0x410cd2,_0x1896be,_0x588b6d),_0x410cd2;});}_attachCustomOptionVisibilityHandler(_0x3e3d8f,_0xd0f45,_0x149303){if(!this['_shouldRenderCustomValueOption']())return;const _0x2091cf=()=>{if(!_0x3e3d8f['isOpen'])return;_0x149303['items']['last']['isVisible']=Boolean(_0xd0f45['last']['model']['isOn']);};_0x2091cf(),_0x3e3d8f['on']('change:isOpen',()=>{_0x2091cf();});}},OA=class extends _0x11fe30{static get requires(){return[pA,gA];}static get['pluginName'](){return'LineHeight';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}},wA=class extends _0x44d8e7{defaultListMarkerStyle;_listDefinitions;_listUtils;constructor(_0x24761f,_0x89fc11,_0x2d82ab){super(_0x24761f),this['defaultListMarkerStyle']=_0x89fc11,this['_listDefinitions']=_0x2d82ab,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}execute(_0x45c7aa={}){const _0x9bf52b=this['editor']['model'],_0x1c3354=_0x45c7aa['listMarkerStyle']||this['defaultListMarkerStyle'];_0x9bf52b['change'](()=>{const _0x31f116=this['_getListTypeFromListMarkerStyle'](_0x1c3354);if(!_0x31f116)return;const _0x4e41a5=_0x31f116+'List';this['editor']['execute'](_0x4e41a5,{'additionalAttributes':{'listMarkerStyle':_0x1c3354}});});}_getValue(){const _0x187aa6=_0x4b2d4c(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x187aa6)?_0x187aa6['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x320758=this['editor'],_0x339ce5=_0x320758['commands']['get']('customNumberedList'),_0x29c91f=_0x320758['commands']['get']('customBulletedList');return _0x339ce5['isEnabled']||_0x29c91f['isEnabled'];}_getListTypeFromListMarkerStyle(_0x17b4c7){const _0x5924d5=this['_listDefinitions']['find'](_0x5a48b7=>_0x5a48b7['listMarkerStyle']==_0x17b4c7);return _0x5924d5?_0x5924d5['listType']:null;}},bA=class extends _0x11fe30{_listDefinitions;static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x3921a1];}constructor(_0x47900a){super(_0x47900a);const _0x2a7762=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x58b1e4=>_0x58b1e4+'.'}]},..._0x2a7762];}init(){const _0x23b06b=this['editor'],_0x2ff9b4=_0x23b06b['model'],_0x4a3764=_0x23b06b['editing']['view'],_0x1c2568=_0x23b06b['plugins']['get'](_0x3921a1);_0x23b06b['commands']['add']('multiLevelList',new wA(_0x23b06b,'legal',this['_listDefinitions'])),_0x2ff9b4['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x2ff9b4['schema']['addAttributeCheck']((_0x29222c,_0x172d52)=>{const _0x2a5721=_0x29222c['last'];if('listMarker'==_0x172d52||'listMarkerStyle'==_0x172d52)return!(!_0x2a5721['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x13e208=>_0x13e208['listType']==_0x2a5721['getAttribute']('listType')))&&void 0x0;});for(const _0x137614 of this['_listDefinitions'])_0x23b06b['conversion']['for']('upcast')['add'](_0x2b609b=>{_0x2b609b['on']('element:'+('customNumbered'==_0x137614['listType']?'ol':'ul'),_A(_0x137614,_0x2ff9b4['schema']),{'priority':'low'});}),_0x1c2568['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x19bb03,_0x484b72,_0x204727){_0x484b72==_0x137614['listMarkerStyle']?(_0x19bb03['addClass'](['multi-level-list',_0x137614['className']],_0x204727),_0x19bb03['setStyle']('list-style-type','none',_0x204727)):(_0x19bb03['removeClass'](['multi-level-list',_0x137614['className']],_0x204727),_0x19bb03['removeStyle']('list-style-type',_0x204727));}}),_0x1c2568['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x3c080c,_0x27c672,{dataPipeline:_0x14b6a5}){if(!_0x27c672['hasAttribute']('listMarker'))return null;if(_0x27c672['getAttribute']('listType')!=_0x137614['listType']||_0x27c672['getAttribute']('listMarkerStyle')!=_0x137614['listMarkerStyle'])return null;const _0x58d035=String(_0x27c672['getAttribute']('listMarker')),_0x4d2ffd=this['canInjectMarkerIntoElement'](_0x27c672);return _0x3c080c['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x14b6a5&&{'contenteditable':'false','data-multi-level-list-marker':_0x58d035}},function(_0x45fd54){const _0x10be97=this['toDomElement'](_0x45fd54);return _0x4d2ffd?(_0x10be97['appendChild'](_0x2a0f20(_0x45fd54,'span',{},_0x14b6a5?_0x45fd54['createTextNode'](_0x58d035):[])),_0x10be97['appendChild'](_0x45fd54['createTextNode']('\u00a0'))):_0x14b6a5&&_0x10be97['appendChild'](_0x45fd54['createTextNode'](_0x58d035)),_0x10be97;});},'canInjectMarkerIntoElement':_0xc09dcc=>_0x2ff9b4['schema']['checkChild'](_0xc09dcc,'$text')&&_0x2ff9b4['schema']['checkChild'](_0xc09dcc,'$inlineObject')&&!_0x2ff9b4['schema']['isLimit'](_0xc09dcc)&&_0xc09dcc['getAttribute']('listType')==_0x137614['listType']&&_0xc09dcc['getAttribute']('listMarkerStyle')==_0x137614['listMarkerStyle']});_0x23b06b['conversion']['for']('upcast')['add'](_0x13f9e1=>{_0x13f9e1['on']('element:span',function(_0x36e430){return(_0x4ae0f0,_0x3c314a,{writer:_0x112e1e,consumable:_0x2175d2})=>{const _0x5f569e=_0x3c314a['modelCursor'],_0x4b7037=_0x5f569e['parent'],_0x214bd4=_0x3c314a['viewItem'];if(_0x2175d2['consume'](_0x214bd4,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x5f569e['isAtStart']&&_0x4b7037['hasAttribute']('listType')&&_0x214bd4['childCount']>0x0){const _0x12ae8d=_0x36e430['createRangeIn'](_0x214bd4);let _0x47932e='';for(const _0x36ba06 of _0x12ae8d['getItems']())_0x36ba06['is']('$textProxy')?(_0x47932e+=_0x36ba06['data']['trim'](),_0x2175d2['consume'](_0x36ba06['textNode'])):_0x2175d2['consume'](_0x36ba06,{'name':!0x0});_0x112e1e['setAttribute']('listMarker',_0x47932e['trim'](),_0x4b7037);}};}(_0x4a3764));}),_0x1c2568['on']('postFixer',(_0x155dde,{listNodes:_0x1842bd,writer:_0x35ec54})=>{const _0x3e4dfe=[];for(const {node:_0x3c54a9,previousNodeInList:_0x40b7b4}of _0x1842bd){const _0x47dcca=_0x3c54a9['getAttribute']('listType'),_0xc6e9d1=_0x3c54a9['getAttribute']('listMarkerStyle')||('customNumbered'==_0x47dcca?'legal':void 0x0),_0x4c2a41=this['_listDefinitions']['find'](_0x2da2f7=>_0x2da2f7['listType']==_0x47dcca&&_0x2da2f7['listMarkerStyle']==_0xc6e9d1);if('customNumbered'!=_0x47dcca&&'customBulleted'!=_0x47dcca&&(_0x3c54a9['hasAttribute']('listMarker')&&(_0x35ec54['removeAttribute']('listMarker',_0x3c54a9),_0x155dde['return']=!0x0),_0x3c54a9['hasAttribute']('listMarkerStyle')&&(_0x35ec54['removeAttribute']('listMarkerStyle',_0x3c54a9),_0x155dde['return']=!0x0)),!_0x4c2a41){'customBulleted'!=_0x47dcca||_0xc6e9d1||(_0x35ec54['setAttribute']('listType','bulleted',_0x3c54a9),_0x155dde['return']=!0x0);continue;}_0x3c54a9['hasAttribute']('listMarkerStyle')||(_0x35ec54['setAttribute']('listMarkerStyle',_0xc6e9d1,_0x3c54a9),_0x155dde['return']=!0x0);const _0x12a0ce=_0x3c54a9['getAttribute']('listIndent');if(_0x40b7b4&&_0x40b7b4['getAttribute']('listItemId')==_0x3c54a9['getAttribute']('listItemId'))continue;if(_0x3e4dfe['length']=_0x12a0ce+0x1,_0x23b06b['config']['get']('list.enableSkipLevelLists')){for(let _0x49d77e=0x0;_0x49d77e<_0x12a0ce;_0x49d77e++)void 0x0===_0x3e4dfe[_0x49d77e]&&(_0x3e4dfe[_0x49d77e]=0x1);}_0x40b7b4||_0x3e4dfe[_0x12a0ce]?_0x40b7b4&&_0x40b7b4['getAttribute']('listType')!=_0x4c2a41['listType']?_0x3e4dfe[_0x12a0ce]=0x1:_0x3e4dfe[_0x12a0ce]++:_0x3e4dfe[_0x12a0ce]=_0x3c54a9['getAttribute']('listStart')||0x1;const _0x5eb800=yA(_0x12a0ce,_0x4c2a41,_0x3e4dfe);_0x3c54a9['getAttribute']('listMarker')!=_0x5eb800&&(_0x35ec54['setAttribute']('listMarker',_0x5eb800,_0x3c54a9),_0x155dde['return']=!0x0);}}),_0x1c2568['on']('checkElement',(_0x174e36,{modelElement:_0x278d7f,viewElement:_0x16d187})=>{const _0x4e2df5=_0x278d7f['getAttribute']('listType');if('customNumbered'!=_0x4e2df5&&'customBulleted'!=_0x4e2df5)return;if(_0x2ff9b4['schema']['checkChild'](_0x278d7f,'$text'))return;const _0x389032=_0x4b955f(_0x278d7f);let _0x3a6aa=!0x1;const _0x72b7d6=_0x4a3764['createPositionBefore'](_0x16d187)['getWalker']({'direction':'backward'});for(const {item:_0x4af9eb}of _0x72b7d6)if(_0x4af9eb['is']('element')){if(_0x23b06b['editing']['mapper']['toModelElement'](_0x4af9eb))break;if(_0x4af9eb['getCustomProperty']('listItemMarker')){_0x3a6aa=!0x0;break;}}_0x3a6aa!=_0x389032&&(_0x174e36['return']=!0x0,_0x174e36['stop']());});const _0x2bccf7=_0x23b06b['editing']['view']['document'];this['listenTo'](_0x2bccf7,'clipboardOutput',(_0x57fff8,_0xa29979)=>{const _0x3748d8=new _0x44d927({'name':'span','classes':'multi-level-list__marker'}),_0x2a2244=new _0x44d927({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x230339=new _0x138c8c(_0xa29979['content']['document']),_0x22ab71=[];for(const _0x2ece7b of _0x230339['createRangeIn'](_0xa29979['content'])['getItems']())_0x2ece7b['is']('element')&&_0x3748d8['match'](_0x2ece7b)&&_0x22ab71['push'](_0x2ece7b),_0x2ece7b['is']('element')&&_0x2a2244['match'](_0x2ece7b)&&_0x230339['removeStyle']('list-style-type',_0x2ece7b);for(const _0x3031e2 of _0x22ab71)_0x230339['remove'](_0x3031e2);});}afterInit(){!async function(_0x2fc5a1){const _0x766d19='un0NFQUoX1evzk3yMEfwl7TxbDrisOZaWtKq52P98dchBVpjS4mYLC6gJIHGRA',_0x5ee65e=0x791d0,_0x5591e7=window['Date']['now'](),_0x2d0f7c=_0x2fc5a1['editor'],_0xfae0d5=new window['Promise'](_0x30001a=>{_0x2d0f7c['once']('ready',_0x30001a);}),_0x50b3de={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x5f079f=_0x2d0f7c['config']['get']('licenseKey');async function _0x42fde9(){let _0x34d103,_0x4881c7=null,_0x52ee44=null;try{return'GPL'==_0x5f079f?'NotAllowed':(_0x34d103=_0x22d614(),_0x34d103?(_0x34d103['usageEndpoint']&&(_0x52ee44=_0x4a3835(_0x34d103['usageEndpoint'],_0x34d103['jti'])),await _0x8e782()?_0x1a5175()?_0x1b36a1()?'Expired':_0x7ac30b()?('evaluation'==_0x34d103['licenseType']&&(_0x4881c7=_0x674dfc('EvaluationLimit')),await _0xe1ad5()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x1b36a1(){const _0x3e2b21=['evaluation','trial']['includes'](_0x34d103['licenseType'])?_0x5591e7/0x3e8:0xe10*_0x5ee65e;return _0x34d103['exp']<_0x3e2b21;}function _0x1a5175(){const _0xc9bb7f=_0x34d103['features'];return!!_0xc9bb7f&&(!!_0xc9bb7f['includes']('*')||!!_0xc9bb7f['includes']('MLL'));}function _0x7ac30b(){const _0x356617=_0x34d103['licensedHosts'];if(!_0x356617||0x0==_0x356617['length'])return!0x0;const {hostname:_0x39f3d6}=new URL(window['location']['href']);if(_0x356617['includes'](_0x39f3d6))return!0x0;const _0x5627dd=_0x39f3d6['split']('.');return _0x356617['filter'](_0x524a3d=>_0x524a3d['includes']('*'))['map'](_0x4fb4d2=>_0x4fb4d2['split']('.'))['filter'](_0x3235f7=>_0x3235f7['length']<=_0x5627dd['length'])['map'](_0x417334=>Array(_0x5627dd['length']-_0x417334['length'])['fill']('*'===_0x417334[0x0]?'*':'')['concat'](_0x417334))['some'](_0x5684e1=>_0x5627dd['every']((_0xc1a8c7,_0x426dbf)=>_0x5684e1[_0x426dbf]===_0xc1a8c7||'*'===_0x5684e1[_0x426dbf]));}function _0xe1ad5(){return _0x4881c7&&_0x52ee44?new window['Promise']((_0x5cdc92,_0x182d40)=>{_0x4881c7['then'](_0x5cdc92,_0x182d40),_0x52ee44['then'](_0x5981fc=>{'Valid'!=_0x5981fc&&_0x5cdc92(_0x5981fc);},_0x182d40);}):_0x4881c7||_0x52ee44||'Valid';}}function _0x4a3835(_0x3e1449,_0x4f23f8){return new window['Promise'](_0x20e82d=>{if(_0x41623f())return _0x20e82d('Valid');_0x296557(),_0x2d0f7c['decorate']('_sendUsageRequest');let _0x9da417=!0x1;const _0x50a184=_0xea66bb();function _0x2f4b43(_0x392fb5){return!!_0x392fb5&&('object'==typeof _0x392fb5||'function'==typeof _0x392fb5)&&'function'==typeof _0x392fb5['then']&&'function'==typeof _0x392fb5['catch'];}function _0x4f6363(_0x283023){_0x30b73a(_0x283023)['then'](_0x96315c=>_0x96315c&&'ok'==_0x96315c['status']?_0x193c7d(_0x5676d6(_0x50a184+_0x4f23f8))!=_0x96315c['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x79174a=>(_0x2f9a4b(),_0x79174a),()=>{const _0x2c1026=_0x5af508();return null==_0x2c1026?(_0x2f9a4b(),'Valid'):_0x5591e7-_0x2c1026>0x240c8400?'UsageLimit':'Valid';})['then'](_0x20e82d)['catch'](()=>{_0x20e82d('UsageLimit');});const _0x472793=0x36ee80;function _0x2f9a4b(){const _0x5b507d='llct-'+_0x193c7d(_0x5676d6(_0x3e1449)),_0x1b05d3=_0x31d13d(_0x193c7d(window['Math']['ceil'](_0x5591e7/_0x472793)));window['localStorage']['setItem'](_0x5b507d,_0x1b05d3);}function _0x5af508(){const _0xfdec3='llct-'+_0x193c7d(_0x5676d6(_0x3e1449)),_0x24ea43=window['localStorage']['getItem'](_0xfdec3);return _0x24ea43?window['parseInt'](_0x31d13d(_0x24ea43),0x10)*_0x472793:null;}function _0x30b73a(_0xd7d986){return new window['Promise']((_0x222264,_0x13d169)=>{_0xd7d986['then'](_0x222264,_0x13d169),window['setTimeout'](_0x13d169,0x1d4c0);});}}_0x2d0f7c['on']('_sendUsageRequest',(_0x235e26,_0x1608f0)=>{if(_0x1608f0[0x0]!=_0x3e1449)return _0x20e82d('UsageLimit');_0x1608f0[0x1]={..._0x1608f0[0x1],'requestId':_0x50a184};},{'priority':'high'}),_0x2d0f7c['on']('_sendUsageRequest',_0x5e3102=>{_0x2f4b43(_0x5e3102['return'])&&(_0x9da417=!0x0,_0x4f6363(_0x5e3102['return']));},{'priority':'low'}),_0xfae0d5['then'](()=>{_0x9da417||_0x20e82d('UsageLimit');});});function _0x41623f(){return'auto'==_0x2d0f7c['editing']['view']['_overlayModeHint'];}function _0x296557(){_0x2d0f7c['editing']['view']['_overlayModeHint']='auto';}}function _0x674dfc(_0x39840a){const _0x3785c5=[new window['Promise'](_0x151e30=>setTimeout(_0x151e30,0x93ecc)),_0xfae0d5['then'](()=>new window['Promise'](_0x42fd95=>{let _0x1fe8fd=0x0;_0x2d0f7c['model']['on']('applyOperation',(_0x28a748,_0x42d23e)=>{_0x42d23e[0x0]['isDocumentOperation']&&_0x1fe8fd++,0x5e8==_0x1fe8fd&&(_0x42fd95(),_0x28a748['off']());});}))];return window['Promise']['race'](_0x3785c5)['then'](()=>_0x39840a);}async function _0x214430(){await _0xfae0d5,_0x2d0f7c['model']['change']=_0x51e14b,_0x2d0f7c['model']['enqueueChange']=_0x51e14b,_0x2d0f7c['enableReadOnlyMode']('model');}function _0x46ef0f(_0x34d3e7){const _0x4053a9=_0x500950();_0x2d0f7c[_0x4053a9]='multiLevelListLicenseKey'+_0x34d3e7,'Valid'!=_0x34d3e7&&_0x214430();}function _0x500950(){const _0x491cd4=window['String'](window['performance']['now']())['replace']('.','');let _0x4a130e='u';for(let _0x36ce2e=0x0;_0x36ce2e<_0x491cd4['length'];_0x36ce2e+=0x2){let _0x181cfc=window['parseInt'](_0x491cd4['substring'](_0x36ce2e,_0x36ce2e+0x2));_0x181cfc>=0x3e&&(_0x181cfc-=0x3e),_0x4a130e+=_0x766d19[_0x181cfc];}return _0x4a130e;}function _0x22d614(){const _0x53f228=_0x5f079f['split']('.');if(0x3!=_0x53f228['length'])return null;return _0x3e6480(_0x53f228[0x1]);function _0x3e6480(_0x664113){const _0x281702=_0xf0fbf5(_0x664113);return _0x281702&&_0x3637ae()?_0x281702:null;function _0x3637ae(){const _0x1b68b7=_0x281702['jti'],_0x1bf42c=window['parseInt'](_0x1b68b7['substring'](_0x1b68b7['length']-0x8),0x10),_0x598835={..._0x281702,'jti':_0x1b68b7['substring'](0x0,_0x1b68b7['length']-0x8)};return delete _0x598835['vc'],_0x5676d6(_0x598835)==_0x1bf42c;}}}async function _0x8e782(){let _0x18a55a=!0x0;try{const [_0x20d75c,_0x1a6d12,_0x45e7ee]=_0x5f079f['split']('.');return _0x3a8ee4(_0x20d75c),await _0x1bec6b(_0x20d75c,_0x1a6d12,_0x45e7ee),_0x18a55a;}catch{return!0x1;}function _0x3a8ee4(_0x256eef){const _0xc55025=_0xf0fbf5(_0x256eef);_0xc55025&&'ES256'==_0xc55025['alg']||(_0x18a55a=!0x1);}async function _0x1bec6b(_0x1307c5,_0x2c76f7,_0x3990b9){const _0xd9cef4=window['Uint8Array']['from'](_0x5536bf(_0x3990b9),_0x37e62c=>_0x37e62c['charCodeAt'](0x0)),_0x4c9e56=new window['TextEncoder']()['encode'](_0x1307c5+'.'+_0x2c76f7),_0x26237d=window['crypto']['subtle'];if(!_0x26237d)return;const _0x989607=await _0x26237d['importKey']('jwk',_0x50b3de,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x26237d['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x989607,_0xd9cef4,_0x4c9e56)||(_0x18a55a=!0x1);}}function _0xf0fbf5(_0x495d8f){return _0x495d8f['startsWith']('ey')?JSON['parse'](_0x5536bf(_0x495d8f)):null;}function _0x5536bf(_0x33d2ea){return window['atob'](_0x33d2ea['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x5676d6(_0xa21a36){let _0x59f7fb=0x1505;function _0x15d846(_0x4c784c){for(let _0x2dccd9=0x0;_0x2dccd9<_0x4c784c['length'];_0x2dccd9++){const _0x478ae4=_0x4c784c['charCodeAt'](_0x2dccd9);_0x59f7fb=(_0x59f7fb<<0x5)+_0x59f7fb+_0x478ae4,_0x59f7fb&=_0x59f7fb;}}function _0x2bcaec(_0x32c8eb){Array['isArray'](_0x32c8eb)?_0x32c8eb['forEach'](_0x2bcaec):_0x32c8eb&&'object'==typeof _0x32c8eb?Object['entries'](_0x32c8eb)['sort']()['forEach'](([_0x349a9e,_0x41df1c])=>{_0x15d846(_0x349a9e),_0x2bcaec(_0x41df1c);}):_0x15d846(window['String'](_0x32c8eb));}return _0x2bcaec(_0xa21a36),_0x59f7fb>>>0x0;}function _0x193c7d(_0xa2d551){return _0xa2d551['toString'](0x10)['padStart'](0x8,'0');}function _0x31d13d(_0x234e30){return _0x234e30['split']('')['reverse']()['join']('');}function _0x51e14b(){}_0x46ef0f(await _0x42fde9());}(this);}};function yA(_0x35dc68,_0x49c9f4,_0x253c07){let _0x43fbd0=_0x49c9f4['listMarkers'][_0x35dc68%_0x49c9f4['listMarkers']['length']];if(void 0x0===_0x43fbd0['showMarkerPath']||_0x43fbd0['showMarkerPath'])return _0x253c07['slice'](0x0,_0x35dc68+0x1)['map']((_0x27e68b,_0x239a37)=>(_0x43fbd0=_0x49c9f4['listMarkers'][_0x239a37%_0x49c9f4['listMarkers']['length']],vA(_0x43fbd0['marker'],_0x27e68b)))['join']('');{const _0x15d763=_0x253c07[_0x253c07['length']-0x1];return vA(_0x43fbd0['marker'],_0x15d763);}}function vA(_0x94c1b9,_0x348818){return'function'==typeof _0x94c1b9?_0x94c1b9(_0x348818):_0x94c1b9;}function _A(_0x1409bc,_0x5ed8d2){return(_0x2a4aad,_0x255669,_0x5368cc)=>{const _0x51b3a9=_0x255669['viewItem'];if(_0x255669['modelRange']||Object['assign'](_0x255669,_0x5368cc['convertChildren'](_0x255669['viewItem'],_0x255669['modelCursor'])),!_0x5368cc['consumable']['test'](_0x51b3a9,{'classes':_0x1409bc['className']}))return;const _0x4f8f0c=Array['from'](_0x255669['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x1f38c3=>_0x5ed8d2['checkAttribute'](_0x1f38c3,'listItemId'));if(!_0x4f8f0c['length'])return;_0x5368cc['consumable']['consume'](_0x51b3a9,{'classes':_0x1409bc['className']}),_0x5368cc['consumable']['consume'](_0x51b3a9,{'classes':'multi-level-list'}),_0x5368cc['consumable']['consume'](_0x51b3a9,{'styles':'list-style-type'});const _0x5f0c19=_0x4f8f0c[0x0]['getAttribute']('listIndent');for(const _0x368638 of _0x4f8f0c)_0x368638['getAttribute']('listIndent')==_0x5f0c19&&(_0x5368cc['writer']['setAttribute']('listType',_0x1409bc['listType'],_0x368638),_0x5368cc['writer']['setAttribute']('listMarkerStyle',_0x1409bc['listMarkerStyle'],_0x368638));};}function EA(_0x5349b1,_0x588569){const _0x21c3da=_0x5349b1['t'],t=_0x5349b1['t'];switch(_0x588569){case'Start\x20at':return _0x21c3da('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x21c3da('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x21c3da('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x21c3da('List\x20properties');case'Multi-level\x20List':return t('Multi-level\x20List');case'Multi-level\x20list\x20styles\x20toolbar':return t('Multi-level\x20list\x20styles\x20toolbar');default:return _0x588569;}}var TA=class extends _0x2f6e1a{['children'];stylesView=null;additionalPropertiesCollapsibleView=null;startIndexFieldView=null;['focusTracker']=new _0x1c95ab();keystrokes=new _0xa8275a();['focusables']=new _0x18940b();['focusCycler'];constructor(_0xd3d5aa,{enabledProperties:_0x33db97,styleButtonViews:_0xa8d13d,styleGridAriaLabel:_0x5f26a3}){super(_0xd3d5aa);const _0xea9a02=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new _0x273f88({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0x33db97['styles']?(this['stylesView']=this['_createStylesView'](_0xa8d13d,_0x5f26a3),this['children']['add'](this['stylesView'])):_0xea9a02['push']('ck-multi-level-list-properties_without-styles'),_0x33db97['startIndex']&&(this['_addListPropertyViews'](_0x33db97),_0xea9a02['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0xea9a02},'children':this['children']});}['render'](){if(super['render'](),this['stylesView']){this['focusables']['add'](this['stylesView']),this['focusTracker']['add'](this['stylesView']['element']),this['startIndexFieldView']&&(this['focusables']['add'](this['children']['last']['buttonView']),this['focusTracker']['add'](this['children']['last']['buttonView']['element']));for(const _0x2de562 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x2de562['element']);_0x2cde60({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x250afe['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x5b51b0=_0x304f6a=>_0x304f6a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5b51b0),this['keystrokes']['set']('arrowleft',_0x5b51b0),this['keystrokes']['set']('arrowup',_0x5b51b0),this['keystrokes']['set']('arrowdown',_0x5b51b0);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}focusLast(){this['focusCycler']['focusLast']();}destroy(){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}_createStylesView(_0x47078f,_0x31ab2d){const _0x1e9d11=new _0x2f6e1a(this['locale']);return _0x1e9d11['children']=_0x1e9d11['createCollection'](),_0x1e9d11['children']['addMany'](_0x47078f),_0x1e9d11['setTemplate']({'tag':'div','attributes':{'aria-label':_0x31ab2d,'class':['ck','ck-multi-level-list-styles']},'children':_0x1e9d11['children']}),_0x1e9d11['children']['delegate']('execute')['to'](this),_0x1e9d11['focus']=function(){this['children']['first']['focus']();},_0x1e9d11['focusTracker']=new _0x1c95ab(),_0x1e9d11['keystrokes']=new _0xa8275a(),_0x1e9d11['render'](),_0x1e9d11['keystrokes']['listenTo'](_0x1e9d11['element']),_0x1e9d11;}_addListPropertyViews(_0x5f0178){const _0x44de56=[];_0x5f0178['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x44de56['push'](this['startIndexFieldView'])),_0x5f0178['styles']?(this['additionalPropertiesCollapsibleView']=new _0x553571(this['locale'],_0x44de56),this['additionalPropertiesCollapsibleView']['set']({'label':EA(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x44de56,'isEnabled',(..._0x175ebd)=>_0x175ebd['some'](_0x4039be=>_0x4039be)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x37ba98,_0x2386d0,_0x2ef5ec)=>{_0x2ef5ec||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x44de56);}_createStartIndexField(){const _0x2548ec=new _0x51334f(this['locale'],_0x507b7e);return _0x2548ec['set']({'label':EA(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x2548ec['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2548ec['fieldView']['on']('input',()=>{const _0x4283b1=_0x2548ec['fieldView']['element'],_0x2342c8=_0x4283b1['valueAsNumber'];Number['isNaN'](_0x2342c8)?_0x2548ec['errorText']=EA(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x4283b1['checkValidity']()?this['fire']('listStart',{'startIndex':_0x2342c8}):_0x2548ec['errorText']=EA(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x2548ec;}},AA=class extends _0x11fe30{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x192a01=this['editor'];_0x192a01['ui']['componentFactory']['add']('multiLevelList',function({editor:_0x4ce24b,parentCommandName:_0x203117,buttonLabel:_0x202021,buttonIcon:_0x4c5be3,styleGridAriaLabel:_0x40c40d,styleDefinitions:_0xa3cbdd}){const _0x5a37e7=_0x4ce24b['commands']['get'](_0x203117),_0x4fe684=_0x4ce24b['config']['get']('list.properties')||{},_0x1a51fb=_0x4ce24b['plugins']['has']('ListProperties'),_0x5bba9a=_0x4fe684['startIndex'];return _0x1a51fb&&_0x5bba9a?_0x118b82=>{const _0x47452=_0x46490d(_0x118b82,_0xdb04e7),_0x3a020d=_0x47452['buttonView'];return _0x47452['bind']('isEnabled')['to'](_0x5a37e7),_0x47452['class']='ck-list-styles-dropdown',_0x3a020d['on']('execute',()=>{_0x4ce24b['execute'](_0x203117),_0x4ce24b['editing']['view']['focus']();}),_0x3a020d['set']({'label':_0x202021,'icon':_0x4c5be3,'tooltip':!0x0,'isToggleable':!0x0}),_0x3a020d['bind']('isOn')['to'](_0x5a37e7,'value',_0x518d0b=>!!_0x518d0b),_0x47452['once']('change:isOpen',()=>{const _0x1c5d83=function({editor:_0x50a7b3,dropdownView:_0x1cd67a,styleDefinitions:_0x10a36d,styleGridAriaLabel:_0x3f8a8b}){const _0xddcdd3=_0x50a7b3['locale'],_0x36fbde=_0x50a7b3['config']['get']('list.properties'),_0x356353=null;_0x36fbde['reversed']=!0x1,_0x10a36d['length']||(_0x36fbde['styles']=!0x1);const _0x2153f0=new TA(_0xddcdd3,{'styleGridAriaLabel':_0x3f8a8b,'enabledProperties':_0x36fbde,'styleButtonViews':_0x356353});if(_0x36fbde['startIndex']){const _0x570eaf=_0x50a7b3['commands']['get']('listStart');_0x2153f0['startIndexFieldView']['bind']('isEnabled')['to'](_0x570eaf),_0x2153f0['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x570eaf),_0x2153f0['on']('listStart',(_0x23520f,_0x6af647)=>_0x50a7b3['execute']('listStart',_0x6af647));}return _0x2153f0['delegate']('execute')['to'](_0x1cd67a),_0x2153f0;}({'editor':_0x4ce24b,'dropdownView':_0x47452,'parentCommandName':_0x203117,'styleGridAriaLabel':_0x40c40d,'styleDefinitions':_0xa3cbdd});_0x47452['panelView']['children']['add'](_0x1c5d83);}),_0x47452['on']('execute',()=>{_0x4ce24b['editing']['view']['focus']();}),_0x47452;}:_0x8ff9e7=>{const _0x51926b=new _0x39ae99(_0x8ff9e7);return _0x51926b['set']({'label':_0x202021,'icon':_0x4c5be3,'tooltip':!0x0,'isToggleable':!0x0}),_0x51926b['bind']('isOn')['to'](_0x5a37e7,'value',_0x3d2d38=>!!_0x3d2d38),_0x51926b['on']('execute',()=>{_0x4ce24b['execute'](_0x203117),_0x4ce24b['editing']['view']['focus']();}),_0x51926b;};}({'editor':_0x192a01,'parentCommandName':'multiLevelList','buttonLabel':EA(_0x192a01['locale'],'Multi-level\x20List'),'buttonIcon':Nt,'styleGridAriaLabel':EA(_0x192a01['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x192a01['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x1c2d6a=_0x192a01['commands']['get']('multiLevelList'),_0x4e9e9a=new _0x589436(_0x192a01['locale']);return _0x4e9e9a['set']({'label':EA(_0x192a01['locale'],'Multi-level\x20List'),'icon':Nt}),_0x4e9e9a['bind']('isEnabled')['to'](_0x1c2d6a),_0x4e9e9a['bind']('isOn')['to'](_0x1c2d6a,'value',_0x3abd38=>!!_0x3abd38),_0x4e9e9a['on']('execute',()=>{_0x192a01['execute']('multiLevelList'),_0x192a01['editing']['view']['focus']();}),_0x4e9e9a;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x30c844=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xdb84a9;for(const _0x536105 in _0x30c844){const _0x58a79f=_0x536105,_0x4f386f=_0x30c844[_0x58a79f];if('multiLevelListLicenseKeyValid'==_0x4f386f||'multiLevelListLicenseKeyInvalid'==_0x4f386f||'multiLevelListLicenseKeyExpired'==_0x4f386f||'multiLevelListLicenseKeyDomainLimit'==_0x4f386f||'multiLevelListLicenseKeyNotAllowed'==_0x4f386f||'multiLevelListLicenseKeyEvaluationLimit'==_0x4f386f||'multiLevelListLicenseKeyUsageLimit'==_0x4f386f){delete _0x30c844[_0x58a79f],_0xdb84a9=_0x4f386f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0xdb84a9&&_0x30c844['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0xdb84a9&&_0x30c844['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0xdb84a9&&_0x30c844['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0xdb84a9&&_0x30c844['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0xdb84a9&&_0x30c844['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0xdb84a9&&_0x30c844['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},SA=class extends _0x11fe30{static get['pluginName'](){return'MultiLevelList';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[bA,AA];}},IA=class extends _0x44d8e7{['refresh'](){const _0x36f8ec=this['editor']['model'],_0x218663=_0x36f8ec['schema']['checkChild'](_0x36f8ec['document']['selection']['focus'],'mergeField');this['isEnabled']=_0x218663;}execute(_0x6776b5){if(!_0x6776b5||'string'!=typeof _0x6776b5)return;const _0x5eab4d=this['editor']['model'];_0x5eab4d['change'](_0x672041=>{_0x5eab4d['deleteContent'](_0x5eab4d['document']['selection']);const _0x2d9a1f=_0x672041['createElement']('mergeField',{'id':_0x6776b5});for(const [_0x531d1d,_0x2fb78c]of _0x5eab4d['document']['selection']['getAttributes']())_0x5eab4d['schema']['checkAttribute'](_0x2d9a1f,_0x531d1d)&&_0x672041['setAttribute'](_0x531d1d,_0x2fb78c,_0x2d9a1f);_0x5eab4d['insertContent'](_0x2d9a1f,_0x5eab4d['document']['selection'],0x0,{'setSelection':'after'});});}},kA=class extends _0x44d8e7{['refresh'](){const _0x3ad974=this['editor']['model'],_0x45af55=_0x3ad974['document']['selection'];this['isEnabled']=function(_0x2fb7d4,_0xdfebbf){let _0x2ee53e=_0x4abaeb(_0x2fb7d4,_0xdfebbf)['start']['parent'];return _0x2ee53e['isEmpty']&&!_0xdfebbf['schema']['isLimit'](_0x2ee53e)&&(_0x2ee53e=_0x2ee53e['parent']),_0xdfebbf['schema']['checkChild'](_0x2ee53e,'mergeFieldBlock');}(_0x45af55,_0x3ad974);}execute(_0x37026b,_0x8b77ba){if(!_0x37026b||'string'!=typeof _0x37026b)return;const _0xab877f=this['editor']['model'];_0xab877f['change'](_0x2dec29=>{const _0x4aaf60=_0x2dec29['createElement']('mergeFieldBlock',{'id':_0x37026b});_0xab877f['insertObject'](_0x4aaf60,_0xab877f['document']['selection'],null,{'setSelection':'on','findOptimalPosition':!0x1===_0x8b77ba?void 0x0:'auto'});});}},xA=class extends _0x44d8e7{constructor(_0x38a7c1){super(_0x38a7c1),this['bind']('isEnabled')['to'](this['editor']['commands']['get']('insertImage'));}execute(_0x9d83a2,_0x45e422){if(!_0x9d83a2||'string'!=typeof _0x9d83a2)return;const _0x36a3ba=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x43c30f=_0x36a3ba['getMergeFieldWidth'](_0x9d83a2),_0x5987de=_0x36a3ba['getMergeFieldHeight'](_0x9d83a2);this['editor']['execute']('insertImage',{'source':{'src':_0x36a3ba['wrapInAffixes'](_0x9d83a2),'width':_0x43c30f,'height':_0x5987de},'breakBlock':_0x45e422&&_0x45e422['breakBlock']});}},CA=class extends _0x44d8e7{constructor(_0x48d191){super(_0x48d191);const _0x4f6aec=this['editor']['plugins']['get']('MergeFieldsEditing');this['bind']('value')['to'](_0x4f6aec,'previewMode'),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x50538b){this['editor']['plugins']['get']('MergeFieldsEditing')['previewMode']=_0x50538b;}};const RA=/^[a-zA-Z0-9_.-]+$/;var PA=class extends _0x11fe30{['availablePreviewModes'];flattenedMergeFieldDefinitions=[];_mergeFieldElements;['_mergeFieldPrefix'];['_mergeFieldSuffix'];['_mergeFieldRegExp'];_shouldPreviewHtmlValues;static get requires(){return[_0x54720c,_0x3d4317];}static get['pluginName'](){return'MergeFieldsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52be49){super(_0x52be49),_0x52be49['config']['define']('mergeFields.previewModes',['$labels','$defaultValues','$dataSets']),_0x52be49['config']['define']('mergeFields.dataSets',[]),_0x52be49['config']['define']('mergeFields.definitions',[]),_0x52be49['config']['define']('mergeFields.prefix','{{'),_0x52be49['config']['define']('mergeFields.suffix','}}'),_0x52be49['config']['define']('mergeFields.previewHtmlValues',!0x1),_0x52be49['config']['define']('mergeFields.sanitizeHtml',_0x4b9565=>(_0x53dc7a('merge-fields-provide-sanitize-function'),{'html':_0x4b9565,'hasChanged':!0x1})),this['_mergeFieldPrefix']=_0x52be49['config']['get']('mergeFields.prefix'),this['_mergeFieldSuffix']=_0x52be49['config']['get']('mergeFields.suffix'),this['_shouldPreviewHtmlValues']=_0x52be49['config']['get']('mergeFields.previewHtmlValues'),this['flattenedMergeFieldDefinitions']=this['_getFlattenedMergeFieldDefinitions'](),this['_validateConfig']();const _0x435986='\x5c'+this['_mergeFieldPrefix']['split']('')['join']('\x5c'),_0x17b585='\x5c'+this['_mergeFieldSuffix']['split']('')['join']('\x5c');this['_mergeFieldRegExp']=new RegExp('('+_0x435986+'[^'+(_0x435986+_0x17b585)+'\x20]+'+_0x17b585+')','g'),this['availablePreviewModes']=this['_getAvailablePreviewModes']();const _0x56c704=_0x52be49['config']['get']('mergeFields.initialPreviewMode')||this['availablePreviewModes'][0x0];this['_validatePreviewMode'](_0x56c704),this['set']('previewMode',_0x56c704),this['_mergeFieldElements']=new Set();}init(){const _0x55476d=this['editor'];_0x55476d['commands']['add']('insertMergeField',new IA(_0x55476d)),_0x55476d['commands']['add']('insertMergeFieldBlock',new kA(_0x55476d)),_0x55476d['commands']['add']('insertMergeFieldImage',new xA(_0x55476d)),_0x55476d['commands']['add']('previewMergeFields',new CA(_0x55476d)),this['_defineSchema'](),this['_defineConverters'](),this['_registerConversionPostFixer'](),this['listenTo'](this['editor']['editing']['view']['document'],'imageLoaded',this['_setupTooltipsTogglingForImageMergeField']),this['on']('change:previewMode',(_0x4a1c6a,_0x2e6566,_0x1ca95b)=>{this['_validatePreviewMode'](_0x1ca95b),this['refreshMergeFields']();}),this['listenTo'](_0x55476d['model']['document'],'change:data',()=>{this['_trackAddedMergeFields']();}),_0x55476d['editing']['mapper']['on']('viewToModelPosition',_0xf1d59b(_0x55476d['model'],_0x355c52=>_0x355c52['hasClass']('ck-merge-field'))),_0x55476d['editing']['mapper']['on']('viewToModelPosition',_0xf1d59b(_0x55476d['model'],_0x6ac49b=>_0x6ac49b['hasClass']('ck-merge-field-block'))),_0x55476d['editing']['view']['domConverter']['registerInlineObjectMatcher']({'name':'span','classes':['ck-merge-field']});}afterInit(){this['_disableCommandOnMergeFields']('ckboxImageEdit'),this['_disableCommandOnMergeFields']('uploadcareImageEdit'),async function(_0x52ccc2){const _0x655db6='cvqCYM8ia9TDP6n5dmrzbJtlj03FwLxIpEWSUG7ARu21KfQoXNyg4ZBeOhskHV',_0x3e00fb=0x791d0,_0x6d9c2=window['Date']['now'](),_0x1f7d77=_0x52ccc2['editor'],_0x31a276=new window['Promise'](_0x309238=>{_0x1f7d77['once']('ready',_0x309238);}),_0x1645c3={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x3917ba=_0x1f7d77['config']['get']('licenseKey');async function _0x5cfca5(){let _0x26713f,_0x55cede=null,_0x3fa7a7=null;try{return'GPL'==_0x3917ba?'NotAllowed':(_0x26713f=_0x1fe998(),_0x26713f?(_0x26713f['usageEndpoint']&&(_0x3fa7a7=_0xfcd4a4(_0x26713f['usageEndpoint'],_0x26713f['jti'])),await _0x585ea7()?_0x2e49b7()?_0x4afa80()?'Expired':_0x546ad1()?('evaluation'==_0x26713f['licenseType']&&(_0x55cede=_0x1ed5c4('EvaluationLimit')),await _0x5da987()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4afa80(){const _0x91ea4=['evaluation','trial']['includes'](_0x26713f['licenseType'])?_0x6d9c2/0x3e8:0xe10*_0x3e00fb;return _0x26713f['exp']<_0x91ea4;}function _0x2e49b7(){const _0x1030d9=_0x26713f['features'];return!!_0x1030d9&&(!!_0x1030d9['includes']('*')||!!_0x1030d9['includes']('MF'));}function _0x546ad1(){const _0x14d8ec=_0x26713f['licensedHosts'];if(!_0x14d8ec||0x0==_0x14d8ec['length'])return!0x0;const {hostname:_0x679e51}=new URL(window['location']['href']);if(_0x14d8ec['includes'](_0x679e51))return!0x0;const _0x1a2316=_0x679e51['split']('.');return _0x14d8ec['filter'](_0x2d040e=>_0x2d040e['includes']('*'))['map'](_0x25ce17=>_0x25ce17['split']('.'))['filter'](_0x100874=>_0x100874['length']<=_0x1a2316['length'])['map'](_0x46b458=>Array(_0x1a2316['length']-_0x46b458['length'])['fill']('*'===_0x46b458[0x0]?'*':'')['concat'](_0x46b458))['some'](_0x8640ef=>_0x1a2316['every']((_0x315a42,_0x2e46e1)=>_0x8640ef[_0x2e46e1]===_0x315a42||'*'===_0x8640ef[_0x2e46e1]));}function _0x5da987(){return _0x55cede&&_0x3fa7a7?new window['Promise']((_0x58a34f,_0x32756c)=>{_0x55cede['then'](_0x58a34f,_0x32756c),_0x3fa7a7['then'](_0x3081bd=>{'Valid'!=_0x3081bd&&_0x58a34f(_0x3081bd);},_0x32756c);}):_0x55cede||_0x3fa7a7||'Valid';}}function _0xfcd4a4(_0x400bf7,_0x828d17){return new window['Promise'](_0x1cf8b5=>{if(_0x51b803())return _0x1cf8b5('Valid');_0x539023(),_0x1f7d77['decorate']('_sendUsageRequest');let _0x3ceac5=!0x1;const _0x30554d=_0xea66bb();function _0x3179cf(_0x5f4f3c){return!!_0x5f4f3c&&('object'==typeof _0x5f4f3c||'function'==typeof _0x5f4f3c)&&'function'==typeof _0x5f4f3c['then']&&'function'==typeof _0x5f4f3c['catch'];}function _0x1bf4dc(_0x242cb5){_0x2a1f1a(_0x242cb5)['then'](_0xae710c=>_0xae710c&&'ok'==_0xae710c['status']?_0xb434c7(_0x2da740(_0x30554d+_0x828d17))!=_0xae710c['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x1b4cb1=>(_0x36f455(),_0x1b4cb1),()=>{const _0x550cd8=_0x1787d7();return null==_0x550cd8?(_0x36f455(),'Valid'):_0x6d9c2-_0x550cd8>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1cf8b5)['catch'](()=>{_0x1cf8b5('UsageLimit');});const _0x523d50=0x36ee80;function _0x36f455(){const _0x19922e='llct-'+_0xb434c7(_0x2da740(_0x400bf7)),_0x1cdf8d=_0x11df1d(_0xb434c7(window['Math']['ceil'](_0x6d9c2/_0x523d50)));window['localStorage']['setItem'](_0x19922e,_0x1cdf8d);}function _0x1787d7(){const _0x57142d='llct-'+_0xb434c7(_0x2da740(_0x400bf7)),_0xa70dae=window['localStorage']['getItem'](_0x57142d);return _0xa70dae?window['parseInt'](_0x11df1d(_0xa70dae),0x10)*_0x523d50:null;}function _0x2a1f1a(_0x3091f5){return new window['Promise']((_0x4a343b,_0x31f3a5)=>{_0x3091f5['then'](_0x4a343b,_0x31f3a5),window['setTimeout'](_0x31f3a5,0x1d4c0);});}}_0x1f7d77['on']('_sendUsageRequest',(_0x150f63,_0x12d71e)=>{if(_0x12d71e[0x0]!=_0x400bf7)return _0x1cf8b5('UsageLimit');_0x12d71e[0x1]={..._0x12d71e[0x1],'requestId':_0x30554d};},{'priority':'high'}),_0x1f7d77['on']('_sendUsageRequest',_0x3f0225=>{_0x3179cf(_0x3f0225['return'])&&(_0x3ceac5=!0x0,_0x1bf4dc(_0x3f0225['return']));},{'priority':'low'}),_0x31a276['then'](()=>{_0x3ceac5||_0x1cf8b5('UsageLimit');});});function _0x51b803(){return'auto'==_0x1f7d77['editing']['view']['_overlayModeHint'];}function _0x539023(){_0x1f7d77['editing']['view']['_overlayModeHint']='auto';}}function _0x1ed5c4(_0x2ccf0d){const _0x59e0be=[new window['Promise'](_0x2572dd=>setTimeout(_0x2572dd,0x93ecc)),_0x31a276['then'](()=>new window['Promise'](_0x5001cd=>{let _0x1945a6=0x0;_0x1f7d77['model']['on']('applyOperation',(_0xc21bc3,_0x41c9ed)=>{_0x41c9ed[0x0]['isDocumentOperation']&&_0x1945a6++,0x5e8==_0x1945a6&&(_0x5001cd(),_0xc21bc3['off']());});}))];return window['Promise']['race'](_0x59e0be)['then'](()=>_0x2ccf0d);}async function _0x4e2203(){await _0x31a276,_0x1f7d77['model']['change']=_0x2ab22b,_0x1f7d77['model']['enqueueChange']=_0x2ab22b,_0x1f7d77['enableReadOnlyMode']('model');}function _0xcf73db(_0x1d30ca){const _0x468b0b=_0x358102();_0x1f7d77[_0x468b0b]='mergeFieldsLicenseKey'+_0x1d30ca,'Valid'!=_0x1d30ca&&_0x4e2203();}function _0x358102(){const _0xf44e45=window['String'](window['performance']['now']())['replace']('.','');let _0x488d0f='c';for(let _0x4cd3e7=0x0;_0x4cd3e7<_0xf44e45['length'];_0x4cd3e7+=0x2){let _0x3b5c0e=window['parseInt'](_0xf44e45['substring'](_0x4cd3e7,_0x4cd3e7+0x2));_0x3b5c0e>=0x3e&&(_0x3b5c0e-=0x3e),_0x488d0f+=_0x655db6[_0x3b5c0e];}return _0x488d0f;}function _0x1fe998(){const _0x7d997=_0x3917ba['split']('.');if(0x3!=_0x7d997['length'])return null;return _0x578ecb(_0x7d997[0x1]);function _0x578ecb(_0x217437){const _0x5d598d=_0x4300a5(_0x217437);return _0x5d598d&&_0x2c6039()?_0x5d598d:null;function _0x2c6039(){const _0x2be11e=_0x5d598d['jti'],_0x10bd64=window['parseInt'](_0x2be11e['substring'](_0x2be11e['length']-0x8),0x10),_0x1def5e={..._0x5d598d,'jti':_0x2be11e['substring'](0x0,_0x2be11e['length']-0x8)};return delete _0x1def5e['vc'],_0x2da740(_0x1def5e)==_0x10bd64;}}}async function _0x585ea7(){let _0x1fed27=!0x0;try{const [_0x2b150e,_0x11259a,_0x2a393f]=_0x3917ba['split']('.');return _0x428e75(_0x2b150e),await _0x4ca85c(_0x2b150e,_0x11259a,_0x2a393f),_0x1fed27;}catch{return!0x1;}function _0x428e75(_0x1361aa){const _0x3265f2=_0x4300a5(_0x1361aa);_0x3265f2&&'ES256'==_0x3265f2['alg']||(_0x1fed27=!0x1);}async function _0x4ca85c(_0x475964,_0x3ec0af,_0x18d45b){const _0x1ceddb=window['Uint8Array']['from'](_0xbb23e(_0x18d45b),_0x1594a6=>_0x1594a6['charCodeAt'](0x0)),_0x23daec=new window['TextEncoder']()['encode'](_0x475964+'.'+_0x3ec0af),_0x28eb58=window['crypto']['subtle'];if(!_0x28eb58)return;const _0x578d02=await _0x28eb58['importKey']('jwk',_0x1645c3,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x28eb58['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x578d02,_0x1ceddb,_0x23daec)||(_0x1fed27=!0x1);}}function _0x4300a5(_0x949103){return _0x949103['startsWith']('ey')?JSON['parse'](_0xbb23e(_0x949103)):null;}function _0xbb23e(_0x3d2ff6){return window['atob'](_0x3d2ff6['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x2da740(_0x2e28c6){let _0x4d5e23=0x1505;function _0xf60d10(_0x16ce02){for(let _0x465096=0x0;_0x465096<_0x16ce02['length'];_0x465096++){const _0xf39d5a=_0x16ce02['charCodeAt'](_0x465096);_0x4d5e23=(_0x4d5e23<<0x5)+_0x4d5e23+_0xf39d5a,_0x4d5e23&=_0x4d5e23;}}function _0x50a686(_0x2a002c){Array['isArray'](_0x2a002c)?_0x2a002c['forEach'](_0x50a686):_0x2a002c&&'object'==typeof _0x2a002c?Object['entries'](_0x2a002c)['sort']()['forEach'](([_0x5f378f,_0x53fabe])=>{_0xf60d10(_0x5f378f),_0x50a686(_0x53fabe);}):_0xf60d10(window['String'](_0x2a002c));}return _0x50a686(_0x2e28c6),_0x4d5e23>>>0x0;}function _0xb434c7(_0x3baad9){return _0x3baad9['toString'](0x10)['padStart'](0x8,'0');}function _0x11df1d(_0x294f08){return _0x294f08['split']('')['reverse']()['join']('');}function _0x2ab22b(){}_0xcf73db(await _0x5cfca5());}(this);}['isMergeField'](_0x4822c7){return'mergeField'===_0x4822c7['name']||'mergeFieldBlock'===_0x4822c7['name']||!!('imageBlock'===_0x4822c7['name']||'imageInline'===_0x4822c7['name']&&_0x4822c7['getAttribute']('src'))&&!!_0x4822c7['getAttribute']('src')['match'](this['_mergeFieldRegExp']);}getDefaultValues(){const _0x299e21={},_0x29b9a2=this['getMergeFieldsIds']();for(const _0x1620bc of _0x29b9a2)_0x299e21[_0x1620bc]=this['getMergeFieldDefaultValue'](_0x1620bc);return _0x299e21;}getDataSetValues(_0x4380bd,_0x4303cd=!0x1){const _0x2ca93e={},_0xde3736=this['getMergeFieldsIds']();for(const _0x3ec0ad of _0xde3736){let _0x4bded7=this['getMergeFieldValue'](_0x3ec0ad,_0x4380bd);null===_0x4bded7&&_0x4303cd&&(_0x4bded7=this['getMergeFieldDefaultValue'](_0x3ec0ad)),_0x2ca93e[_0x3ec0ad]=_0x4bded7;}return _0x2ca93e;}getLabel(_0x30bbde){const _0x240aa8=this['getDefinition'](_0x30bbde);return _0x240aa8&&_0x240aa8['label']?_0x240aa8['label']:null;}getMergeFieldDefaultValue(_0x35b863){const _0x1baedf=this['getDefinition'](_0x35b863);if(!_0x1baedf||void 0x0===_0x1baedf['defaultValue'])return null;const _0x32573b='function'==typeof _0x1baedf['defaultValue']?_0x1baedf['defaultValue'](this['editor']):_0x1baedf['defaultValue'];return String(_0x32573b);}getMergeFieldValue(_0x4cd4c9,_0x548221){const _0x2964e5=this['editor']['config']['get']('mergeFields.dataSets')['find'](_0x4daa09=>_0x4daa09['id']===_0x548221);if(!_0x2964e5)throw new _0x4242d4('merge-fields-data-set-not-found',null);const _0x49a2c0=_0x2964e5['values'][_0x4cd4c9];if(void 0x0===_0x49a2c0)return null;const _0x58ac4c='function'==typeof _0x49a2c0?_0x49a2c0(this['editor']):_0x49a2c0;return String(_0x58ac4c);}getMergeFieldType(_0x57f479){if('string'!=typeof _0x57f479){const _0x144f2f=_0x57f479;return'mergeField'===_0x144f2f['name']?'text':'mergeFieldBlock'===_0x144f2f['name']?'block':'imageBlock'!==_0x144f2f['name']&&'imageInline'!==_0x144f2f['name']||!_0x144f2f['getAttribute']('src')?null:_0x144f2f['getAttribute']('src')['match'](this['_mergeFieldRegExp'])?'image':null;}const _0x3989a7=this['getDefinition'](_0x57f479);return _0x3989a7&&_0x3989a7['type']?_0x3989a7['type']:'text';}getMergeFieldHeight(_0x31c8f9){const _0x240d8d=this['getDefinition'](_0x31c8f9);return _0x240d8d&&'block'===_0x240d8d['type']?_0x240d8d['height']||0x78:_0x240d8d&&'image'===_0x240d8d['type']?_0x240d8d['height']||0x190:null;}getMergeFieldWidth(_0x50c05c){const _0x368497=this['getDefinition'](_0x50c05c);return _0x368497&&'image'===_0x368497['type']?_0x368497['width']||0x190:null;}getDocumentMergeFieldsIds(){const _0x100c1d=new Set();for(const _0x4986bd of this['_mergeFieldElements'])'$graveyard'!==_0x4986bd['root']['rootName']&&('image'===this['getMergeFieldType'](_0x4986bd)?_0x100c1d['add'](this['unwrapAffixes'](_0x4986bd['getAttribute']('src'))):_0x100c1d['add'](_0x4986bd['getAttribute']('id')));return Array['from'](_0x100c1d);}getMergeFieldsIds(){const _0x21e3e1=this['flattenedMergeFieldDefinitions']['map'](_0x3096ac=>_0x3096ac['id']),_0x5a8b53=this['getDocumentMergeFieldsIds']();return Array['from'](new Set([..._0x21e3e1,..._0x5a8b53]));}getDefinition(_0x5f5352){return this['flattenedMergeFieldDefinitions']['find'](_0x52e39e=>_0x52e39e['id']===_0x5f5352)||null;}['refreshMergeFields'](){this['_mergeFieldElements']['forEach'](_0x138b11=>{'$graveyard'!==_0x138b11['root']['rootName']&&this['editor']['editing']['reconvertItem'](_0x138b11);});}['wrapInAffixes'](_0x59471f){return this['_mergeFieldPrefix']+_0x59471f+this['_mergeFieldSuffix'];}['unwrapAffixes'](_0x52101){return _0x52101['slice'](this['_mergeFieldPrefix']['length'],_0x52101['length']-this['_mergeFieldSuffix']['length']);}_getFlattenedMergeFieldDefinitions(){const _0xc80d5=new Set(),_0x2f6e12=this['editor'];return _0x2f6e12['config']['get']('mergeFields.definitions')['reduce']((_0x543caf,_0x19e40a)=>{if('groupId'in _0x19e40a){if(_0xc80d5['has'](_0x19e40a['groupId']))throw new _0x4242d4('merge-fields-duplicate-group-id',_0x2f6e12,{'duplicateId':_0x19e40a['groupId']});_0xc80d5['add'](_0x19e40a['groupId']);}return'groupId'in _0x19e40a?function(_0x288b1a,_0x53e872){for(const _0x10de60 of _0x53e872['definitions'])_0x288b1a=_0x288b1a['concat'](_0x10de60);return _0x288b1a;}['bind'](_0x2f6e12)(_0x543caf,_0x19e40a):_0x543caf['concat'](_0x19e40a);},new Array());}_validateConfig(){const _0x1e4753=/^['"`!#%:;=@{}~$()*+/?[\\\]^|]+$/;if(!_0x1e4753['test'](this['_mergeFieldPrefix'])||!_0x1e4753['test'](this['_mergeFieldSuffix']))throw new _0x4242d4('merge-fields-invalid-prefix-or-suffix',this,{'prefix':this['_mergeFieldPrefix'],'suffix':this['_mergeFieldSuffix']});if(this['_mergeFieldPrefix']['length']>0x8||this['_mergeFieldSuffix']['length']>0x8)throw new _0x4242d4('merge-fields-prefix-or-suffix-too-long',this,{'prefix':this['_mergeFieldPrefix'],'suffix':this['_mergeFieldSuffix'],'limit':0x8});const _0xfc636=new Set();if(this['flattenedMergeFieldDefinitions']['map'](_0x424f5f=>{if(!RA['test'](_0x424f5f['id']))throw new _0x4242d4('merge-fields-invalid-id',this,{'incorrectId':_0x424f5f['id']});if(_0xfc636['has'](_0x424f5f['id']))throw new _0x4242d4('merge-fields-duplicate-merge-field-id',this,{'duplicateId':_0x424f5f['id']});_0xfc636['add'](_0x424f5f['id']);}),this['_mergeFieldPrefix']===this['_mergeFieldSuffix'])throw new _0x4242d4('merge-fields-prefix-and-suffix-must-differ',this);const _0x572060=this['editor']['config']['get']('mergeFields.previewModes'),_0xc9d08c=['$labels','$defaultValues','$dataSets'];if(!_0x572060['length']||!_0x572060['every'](_0x5c6fdd=>_0xc9d08c['includes'](_0x5c6fdd)))throw new _0x4242d4('merge-fields-invalid-preview-modes-configuration',this,{'invalidConfig':_0x572060});const _0x1e4bc9=new Set(),_0x417b7d=this['editor']['config']['get']('mergeFields.dataSets');for(const _0xe049a1 of _0x417b7d){if(_0x1e4bc9['has'](_0xe049a1['id']))throw new _0x4242d4('merge-fields-duplicate-data-set-id',this,{'duplicateId':_0xe049a1['id']});_0x1e4bc9['add'](_0xe049a1['id']);}}_getAvailablePreviewModes(){const _0x287aa7=this['editor']['config']['get']('mergeFields.previewModes'),_0x4d2a2d=[];if(_0x287aa7['includes']('$labels')&&_0x4d2a2d['push']('$labels'),_0x287aa7['includes']('$defaultValues')&&_0x4d2a2d['push']('$defaultValues'),_0x287aa7['includes']('$dataSets')){const _0x2ac7bd=this['editor']['config']['get']('mergeFields.dataSets');_0x4d2a2d['push'](..._0x2ac7bd['map'](_0x5c27e0=>_0x5c27e0['id']));}return _0x4d2a2d;}['_defineSchema'](){const _0x512886=this['editor']['model']['schema'];_0x512886['register']('mergeField',{'inheritAllFrom':'$inlineObject','allowAttributes':['id'],'allowWhere':'$text'}),_0x512886['register']('mergeFieldBlock',{'inheritAllFrom':'$blockObject','allowAttributes':['id']});}_defineConverters(){const _0x5f99dd=this['editor']['conversion'];_0x5f99dd['for']('upcast')['add'](_0x4561a9=>{_0x4561a9['on']('text',(_0xe7037a,_0x44b76e,_0x31759f)=>{const {writer:_0x1beec3,safeInsert:_0x4665e0}=_0x31759f,{viewItem:_0x580b48}=_0x44b76e,_0x6d3578=_0x580b48['data']['split'](this['_mergeFieldRegExp'])['filter'](_0x596539=>_0x596539);if(0x1===_0x6d3578['length']&&!_0x6d3578[0x0]['match'](this['_mergeFieldRegExp']))return;if(!_0x44b76e['modelRange'])return;const _0x5aad4b=_0x1beec3['createElement']('$cursor');_0x1beec3['insert'](_0x5aad4b,_0x44b76e['modelCursor']);const _0x384c22=[];for(const _0x17c217 of _0x44b76e['modelRange']['getItems']()){if(!_0x17c217['is']('$textProxy'))continue;const _0xbeada7=_0x17c217['textNode']['data']['matchAll'](this['_mergeFieldRegExp']),_0x266aa7=_0x17c217['parent'],_0x284959=_0x17c217['textNode']['startOffset'];for(const _0x26e506 of[..._0xbeada7]['reverse']()){const _0x1d304a=_0x26e506[0x0],_0x64a19c=_0x1beec3['createPositionAt'](_0x266aa7,_0x26e506['index']+_0x284959),_0x50b8c=_0x64a19c['getShiftedBy'](_0x1d304a['length']),_0x5e93f8=_0x1beec3['createRange'](_0x64a19c,_0x50b8c),_0x5f4ae7=this['unwrapAffixes'](_0x1d304a),_0x203c64=this['getMergeFieldType'](_0x5f4ae7),_0x1d66b0='block'==_0x203c64?'mergeFieldBlock':'mergeField',_0x29ed28=_0x1beec3['createElement'](_0x1d66b0,{'id':_0x5f4ae7});_0x1beec3['remove'](_0x5e93f8),_0x1beec3['insert'](_0x29ed28,_0x64a19c),'block'==_0x203c64&&_0x384c22['push'](_0x29ed28);}}_0x384c22['reverse']();for(const _0x4893c5 of _0x384c22){const _0x2474c6=_0x1beec3['createPositionBefore'](_0x4893c5),_0x47ba64=_0x4893c5['nextSibling']==_0x5aad4b;_0x1beec3['remove'](_0x4893c5),_0x4665e0(_0x4893c5,_0x2474c6)&&_0x47ba64&&_0x1beec3['move'](_0x1beec3['createRangeOn'](_0x5aad4b),_0x1beec3['createPositionAfter'](_0x4893c5));}_0x44b76e['modelCursor']=_0x1beec3['createPositionBefore'](_0x5aad4b),_0x44b76e['modelRange']=_0x1beec3['createRange'](_0x44b76e['modelRange']['start'],_0x44b76e['modelCursor']),_0x1beec3['remove'](_0x5aad4b);},{'priority':_0x1a573c['get']('lowest')-0x1});}),_0x5f99dd['for']('upcast')['elementToElement']({'view':{'name':'span','attributes':'data-ck-merge-field'},'model':(_0x37b67f,{writer:_0x444713})=>_0x444713['createElement']('mergeField',{'id':_0x37b67f['getAttribute']('data-ck-merge-field')})}),_0x5f99dd['for']('upcast')['elementToElement']({'view':{'name':'div','attributes':'data-ck-merge-field'},'model':(_0xedd42,{writer:_0x492293})=>_0x492293['createElement']('mergeFieldBlock',{'id':_0xedd42['getAttribute']('data-ck-merge-field')})}),_0x5f99dd['for']('upcast')['add'](this['_upcastSrcAttributeFromClipboard']()),_0x5f99dd['for']('editingDowncast')['elementToElement']({'model':'mergeField','view':(_0x57148b,{writer:_0x4a7c85})=>this['_createMergeFieldWidget'](_0x57148b,_0x4a7c85,'text')}),_0x5f99dd['for']('dataDowncast')['elementToElement']({'model':'mergeField','view':(_0x21a30f,{writer:_0x84a4c4,options:_0x2c4b6c})=>this['_createTextualMergeField'](_0x21a30f,_0x84a4c4,_0x2c4b6c)}),_0x5f99dd['for']('editingDowncast')['elementToElement']({'model':'mergeFieldBlock','view':(_0x184565,{writer:_0x80d4ef})=>this['_createMergeFieldWidget'](_0x184565,_0x80d4ef,'block')}),_0x5f99dd['for']('dataDowncast')['elementToElement']({'model':'mergeFieldBlock','view':(_0x34c785,{writer:_0x4498eb,options:_0x1b2ee7})=>this['_createTextualMergeField'](_0x34c785,_0x4498eb,_0x1b2ee7)}),_0x5f99dd['for']('editingDowncast')['add'](this['_downcastSrcAttributeToEditing']('imageBlock'))['add'](this['_downcastSrcAttributeToEditing']('imageInline')),_0x5f99dd['for']('dataDowncast')['add'](this['_downcastSrcAttributeToData']('imageBlock'))['add'](this['_downcastSrcAttributeToData']('imageInline'));}_upcastSrcAttributeFromClipboard(){return _0x5a1b75=>{_0x5a1b75['on']('element:img',(_0x1de7f4,_0x138852,_0x3435c0)=>{_0x3435c0['consumable']['test'](_0x138852['viewItem'],{'attributes':'data-ck-merge-field'})&&(_0x3435c0['writer']['setAttribute']('src',this['wrapInAffixes'](_0x138852['viewItem']['getAttribute']('data-ck-merge-field')),_0x138852['modelCursor']['nodeBefore']),_0x3435c0['consumable']['consume'](_0x138852['viewItem'],{'attributes':'data-ck-merge-field'}));},{'priority':'low'});};}_downcastSrcAttributeToData(_0x129223){const _0x216233=this['editor']['plugins']['get'](_0x54720c),_0x5048c7=(_0x5cc9a7,_0x4aa6cc,_0x479fce)=>{if(!0x1!==_0x479fce['consumable']['test'](_0x4aa6cc['item'],_0x5cc9a7['name']))return;if(!String(_0x4aa6cc['attributeNewValue'])['match'](this['_mergeFieldRegExp']))return;const _0x1331bb=_0x479fce['writer'],_0x51f7cb=_0x479fce['mapper']['toViewElement'](_0x4aa6cc['item']),_0x3511e6=_0x216233['findViewImgElement'](_0x51f7cb),_0x19256c=String(_0x4aa6cc['attributeNewValue']),_0x321239=this['unwrapAffixes'](_0x19256c),_0x12e6cb=_0x479fce['options']['mergeFieldsData'];if(_0x479fce['options']['isClipboardPipeline']&&'$labels'!==this['previewMode']){let _0xcc5d18;return _0xcc5d18='$defaultValues'===this['previewMode']?this['getMergeFieldDefaultValue'](_0x321239)||this['getLabel'](_0x321239)||this['wrapInAffixes'](_0x321239):this['getMergeFieldValue'](_0x321239,this['previewMode'])||this['getMergeFieldDefaultValue'](_0x321239)||this['getLabel'](_0x321239)||this['wrapInAffixes'](_0x321239),_0x1331bb['setAttribute']('data-ck-merge-field',_0x321239,_0x3511e6),void _0x1331bb['setAttribute'](_0x4aa6cc['attributeKey'],_0xcc5d18,_0x3511e6);}const _0x5d8f87=_0x12e6cb&&_0x12e6cb[_0x321239]?_0x12e6cb[_0x321239]:_0x19256c;_0x1331bb['setAttribute'](_0x4aa6cc['attributeKey'],_0x5d8f87,_0x3511e6);};return _0x491778=>{_0x491778['on']('attribute:src:'+_0x129223,_0x5048c7,{'priority':'low'});};}_downcastSrcAttributeToEditing(_0x1cd96a){const _0x4da758=this['editor']['plugins']['get'](_0x54720c),_0xb3aae8=(_0x7dcfe7,_0xdb0a58,_0x3140f2)=>{if(!0x1!==_0x3140f2['consumable']['test'](_0xdb0a58['item'],_0x7dcfe7['name']))return;if(!String(_0xdb0a58['attributeNewValue'])['match'](this['_mergeFieldRegExp']))return;const _0x5130f3=_0x3140f2['writer'],_0x4baa61=_0x3140f2['mapper']['toViewElement'](_0xdb0a58['item']),_0x2c0238=_0x4da758['findViewImgElement'](_0x4baa61),_0x202bc1=String(_0xdb0a58['attributeNewValue']),_0x436f9c=this['unwrapAffixes'](_0x202bc1),_0x4a9387=this['getMergeFieldDefaultValue'](_0x436f9c),_0x480b1='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAAtJREFUGFdjYAACAAAFAAGq1chRAAAAAElFTkSuQmCC';let _0x49a970,_0x5af924='',_0x527097='';if('$labels'===this['previewMode'])_0x49a970=_0x480b1;else{if('$defaultValues'===this['previewMode'])_0x4a9387?(_0x49a970=_0x4a9387,_0x527097='\x20ck-merge-field-image_with-value'):(_0x49a970=_0x480b1,_0x5af924='WARNING_MISSING_DEFAULT_VALUE',_0x527097='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_no-default');else{const _0x596702=this['getMergeFieldValue'](_0x436f9c,this['previewMode']);_0x596702?(_0x49a970=_0x596702,_0x527097='\x20ck-merge-field-image_with-value'):_0x4a9387?(_0x49a970=_0x4a9387,_0x527097='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_default-value-used',_0x5af924='WARNING_MISSING_DATA_USED_DEFAULT_VALUE'):(_0x49a970=_0x480b1,_0x527097='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_missing-data',_0x5af924='WARNING_MISSING_DATA');}}if(_0x5130f3['addClass']('ck-merge-field-image'+_0x527097,_0x4baa61),_0x5130f3['setAttribute'](_0xdb0a58['attributeKey'],_0x49a970,_0x2c0238),'$labels'===this['previewMode']){const _0x56ebef='imageInline'===_0x1cd96a?'span':'div',_0x21f1a5=this['_mergeFieldPrefix'],_0x4b3342=this['_mergeFieldSuffix'],_0x47727e=_0x5130f3['createContainerElement'](_0x56ebef,{'class':'ck-merge-field','data-cke-tooltip-instant':'true'},[_0x5130f3['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x4a8a40){const _0x720ff9=this['toDomElement'](_0x4a8a40);return _0x720ff9['innerHTML']=_0x21f1a5,_0x720ff9;}),_0x5130f3['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x5130f3['createText'](this['getLabel'](_0x436f9c)||_0x436f9c)),_0x5130f3['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x19da50){const _0x218d3b=this['toDomElement'](_0x19da50);return _0x218d3b['innerHTML']=_0x4b3342,_0x218d3b;})]);_0x5130f3['insert'](_0x5130f3['createPositionAt'](_0x4baa61,'end'),_0x47727e),_0x5130f3['setAttribute']('data-cke-tooltip-text',this['getLabel'](_0x436f9c)||_0x436f9c,_0x47727e);}else{if(_0x5af924&&['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x5af924)){const _0x111d95='imageInline'===_0x1cd96a?'span':'div',_0x1a56b0=_0x527097['replace'](/ck-merge-field-image/g,'ck-merge-field'),_0x351847=_0x5130f3['createContainerElement'](_0x111d95,{'class':'ck-merge-field'+_0x1a56b0,'data-cke-tooltip-instant':'true'},[_0x5130f3['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x5130f3['createText'](this['getLabel'](_0x436f9c)||_0x436f9c))]),_0x41f7fc=_0x5130f3['createUIElement']('span',{'class':'ck-merge-field__icon'},function(_0x37bef7){const _0x151f39=this['toDomElement'](_0x37bef7),_0x30b673=new _0x5d1800();return _0x30b673['set']({'content':_0x3c5ea9}),_0x30b673['render'](),_0x151f39['appendChild'](_0x30b673['element']),_0x151f39;});_0x5130f3['insert'](_0x5130f3['createPositionAt'](_0x351847,'end'),_0x41f7fc),_0x5130f3['insert'](_0x5130f3['createPositionAt'](_0x4baa61,'end'),_0x351847),_0x5130f3['setCustomProperty']('mergeFieldStatus',_0x5af924,_0x351847),_0x5130f3['setAttribute']('data-cke-tooltip-text',this['getLabel'](_0x436f9c)||_0x436f9c,_0x351847);}}_0x5130f3['setAttribute']('data-merge-field-name',_0x436f9c,_0x4baa61),_0x5af924&&_0x5130f3['setCustomProperty']('mergeFieldStatus',_0x5af924,_0x4baa61);};return _0x4384fd=>{_0x4384fd['on']('attribute:src:'+_0x1cd96a,_0xb3aae8,{'priority':'low'});};}_setupTooltipsTogglingForImageMergeField(_0x4e8aec,_0x4e66ae){if(!_0x4e66ae['target'])return null;const _0x563ea9=_0x4e66ae['target']['parentElement'];return _0x563ea9&&_0x563ea9['classList']['contains']('ck-merge-field-image')?new _0x55dcdb(_0x563ea9,_0xd92f76=>{const _0x3151f8=_0xd92f76['target'],_0x2801e2=_0x3151f8['querySelector']('.ck-merge-field'),_0x319821=_0x3151f8['querySelector']('.ck-merge-field__content');_0x2801e2&&_0x319821&&(_0x319821['scrollWidth']>_0x319821['getBoundingClientRect']()['width']?_0x2801e2['removeAttribute']('data-cke-tooltip-disabled'):_0x2801e2['setAttribute']('data-cke-tooltip-disabled','true'));}):null;}_createMergeFieldWidget(_0x16e6ce,_0x2f4117,_0x1db954){const {label:_0x1614f6,classes:_0x43451c,status:_0x3392a9,height:_0x2ef442}=this['_prepareViewElementData'](_0x16e6ce),_0x4855f4=this['_mergeFieldPrefix'],_0x3ab7d9=this['_mergeFieldSuffix'],_0x5762dd=this['editor']['config']['get']('mergeFields.sanitizeHtml'),_0x535a60='text'===_0x1db954?'span':'div';let _0x14e306;if('$labels'===this['previewMode'])_0x14e306=_0x2f4117['createContainerElement'](_0x535a60,{'class':_0x43451c},[_0x2f4117['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x315108){const _0x58ebb0=this['toDomElement'](_0x315108);return _0x58ebb0['innerHTML']=_0x4855f4,_0x58ebb0;}),_0x2f4117['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x2f4117['createText'](String(_0x1614f6))),_0x2f4117['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x218e9e){const _0x10dc15=this['toDomElement'](_0x218e9e);return _0x10dc15['innerHTML']=_0x3ab7d9,_0x10dc15;})]);else{if(_0x3392a9){const _0x5bade2=this['_shouldPreviewHtmlValues']?_0x2f4117['createRawElement']('span',{'class':'ck-merge-field__content'},function(_0x1c0f79,_0x146340){_0x146340['setContentOf'](_0x1c0f79,_0x5762dd(_0x1614f6)['html']);}):_0x2f4117['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x2f4117['createText'](_0x1614f6));if(_0x14e306=_0x2f4117['createContainerElement'](_0x535a60,{'class':_0x43451c},[_0x5bade2]),'text'===_0x1db954||['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x3392a9)){const _0x1cacaa=_0x2f4117['createUIElement']('span',{'class':'ck-merge-field__icon'},function(_0x167b2c){const _0x45c8ab=this['toDomElement'](_0x167b2c),_0x2dd69e=new _0x5d1800();return _0x2dd69e['set']({'content':_0x3c5ea9}),_0x2dd69e['render'](),_0x45c8ab['appendChild'](_0x2dd69e['element']),_0x45c8ab;});_0x2f4117['insert'](_0x2f4117['createPositionAt'](_0x14e306,'end'),_0x1cacaa);}_0x2f4117['setCustomProperty']('mergeFieldStatus',_0x3392a9,_0x14e306);}else{const _0x592e74=this['_shouldPreviewHtmlValues']?_0x2f4117['createRawElement'](_0x535a60,{},function(_0x41583e,_0xb08ea6){_0xb08ea6['setContentOf'](_0x41583e,_0x5762dd(_0x1614f6)['html']);}):_0x2f4117['createText'](_0x1614f6);_0x14e306=_0x2f4117['createContainerElement'](_0x535a60,{'class':_0x43451c},_0x592e74);}}if('block'===_0x1db954){const _0x6a0879=_0x2f4117['createContainerElement']('div',{'class':'ck-merge-field-block'},[_0x14e306]);if(('$labels'===this['previewMode']||_0x3392a9&&['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x3392a9))&&_0x2f4117['setAttribute']('style','height:\x20'+_0x2ef442+'px',_0x6a0879),_0x14e306['hasClass']('ck-merge-field_with-value'))_0x2f4117['addClass']('ck-merge-field-block_with-value',_0x6a0879);else{if(_0x14e306['hasClass']('ck-merge-field_with-warning')){for(const _0x134e7c of _0x14e306['getClassNames']())if('ck-merge-field'!==_0x134e7c){const _0x3cc962=_0x134e7c['replace']('ck-merge-field','ck-merge-field-block');_0x2f4117['addClass'](_0x3cc962,_0x6a0879);}_0x2f4117['setCustomProperty']('mergeFieldStatus',_0x3392a9,_0x6a0879);}}return _0x2f4117['setCustomProperty']('mergeFieldBlock',!0x0,_0x6a0879),_0x2f4117['setAttribute']('data-merge-field-name',_0x16e6ce['getAttribute']('id'),_0x6a0879),_0x24589f(_0x6a0879,_0x2f4117,{'hasSelectionHandle':!0x0});}return _0x2f4117['setCustomProperty']('mergeField',!0x0,_0x14e306),_0x2f4117['setAttribute']('data-merge-field-name',_0x16e6ce['getAttribute']('id'),_0x14e306),_0x24589f(_0x14e306,_0x2f4117);}_prepareViewElementData(_0x1b82c7){const _0x4361c1=_0x1b82c7['getAttribute']('id'),_0x3c2a5c=this['getDefinition'](_0x4361c1);if(!_0x3c2a5c)return'$labels'===this['previewMode']?{'label':_0x4361c1,'classes':'ck-merge-field'}:{'label':_0x4361c1,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-definition','status':'WARNING_MISSING_DATA'};const _0x43eff7=this['getLabel'](_0x4361c1)||_0x4361c1,_0x256308=this['getMergeFieldDefaultValue'](_0x4361c1),_0x2a810f=this['getMergeFieldHeight'](_0x4361c1);if('$labels'===this['previewMode'])return{'label':_0x43eff7,'height':_0x2a810f,'classes':'ck-merge-field'};if('$defaultValues'===this['previewMode'])return _0x256308?{'label':_0x256308,'height':_0x2a810f,'classes':'ck-merge-field\x20ck-merge-field_with-value'}:{'label':_0x43eff7,'height':_0x2a810f,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_no-default','status':'WARNING_MISSING_DEFAULT_VALUE'};const _0x1f927d=this['getMergeFieldValue'](_0x3c2a5c['id'],this['previewMode']);return _0x1f927d?{'label':_0x1f927d,'height':_0x2a810f,'classes':'ck-merge-field\x20ck-merge-field_with-value'}:_0x256308?{'label':_0x256308,'height':_0x2a810f,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_default-value-used','status':'WARNING_MISSING_DATA_USED_DEFAULT_VALUE'}:{'label':_0x43eff7,'height':_0x2a810f,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-data','status':'WARNING_MISSING_DATA'};}_createTextualMergeField(_0x56f69e,_0x568d37,_0x1e6151){const _0xe7aa4a=_0x56f69e['getAttribute']('id');let _0x25641a;if(_0x1e6151['isClipboardPipeline']&&'$labels'!==this['previewMode'])return this['_downcastForClipboard'](_0xe7aa4a,_0x568d37);const _0x37a83a=_0x1e6151['mergeFieldsData'],_0x3996c1=_0x37a83a&&_0x37a83a[_0xe7aa4a]?_0x37a83a[_0xe7aa4a]:this['wrapInAffixes'](_0xe7aa4a);if(_0x37a83a)_0x25641a=_0x568d37['createRawElement']('span',{},function(_0xdf8bdb,_0x3829c1){_0x3829c1['setContentOf'](_0xdf8bdb,String(_0x3996c1));});else{_0x25641a=_0x568d37['createContainerElement']('span');const _0x121db1=_0x568d37['createText'](_0x3996c1);_0x568d37['insert'](_0x568d37['createPositionAt'](_0x25641a,'end'),_0x121db1);}return _0x568d37['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x25641a),_0x25641a;}_downcastForClipboard(_0x2bdef7,_0x19f412){const _0x1c9198='block'===this['getMergeFieldType'](_0x2bdef7)?'div':'span';let _0x500d0f,_0x464503;_0x500d0f='$defaultValues'===this['previewMode']?this['getMergeFieldDefaultValue'](_0x2bdef7)||this['getLabel'](_0x2bdef7)||this['wrapInAffixes'](_0x2bdef7):this['getMergeFieldValue'](_0x2bdef7,this['previewMode'])||this['getMergeFieldDefaultValue'](_0x2bdef7)||this['getLabel'](_0x2bdef7)||this['wrapInAffixes'](_0x2bdef7);const _0x5b83e6=this['editor']['config']['get']('mergeFields.sanitizeHtml');return _0x464503=this['_shouldPreviewHtmlValues']?_0x19f412['createRawElement'](_0x1c9198,{'data-ck-merge-field':_0x2bdef7},function(_0x71035d,_0xc3b5d0){_0xc3b5d0['setContentOf'](_0x71035d,_0x5b83e6(_0x500d0f)['html']);}):_0x19f412['createContainerElement'](_0x1c9198,{'data-ck-merge-field':_0x2bdef7},_0x19f412['createText'](_0x500d0f)),_0x464503;}_validatePreviewMode(_0x6c7a3e){if(!this['availablePreviewModes']['includes'](_0x6c7a3e))throw new _0x4242d4('merge-fields-invalid-preview-mode-set',this,{'availablePreviewModes':this['availablePreviewModes'],'previewMode':_0x6c7a3e});}_trackAddedMergeFields(){for(const _0x411f3f of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x411f3f['type']||'$text'===_0x411f3f['name'])continue;if('mergeField'===_0x411f3f['name']||'mergeFieldBlock'===_0x411f3f['name']){this['_mergeFieldElements']['add'](_0x411f3f['position']['nodeAfter']);continue;}if('imageInline'===_0x411f3f['name']||'imageBlock'===_0x411f3f['name']&&_0x411f3f['attributes']['get']('src')&&String(_0x411f3f['attributes']['get']('src'))['match'](this['_mergeFieldRegExp'])){this['_mergeFieldElements']['add'](_0x411f3f['position']['nodeAfter']);continue;}const _0x59c4ec=this['editor']['model']['createRangeIn'](_0x411f3f['position']['nodeAfter']);for(const _0x426717 of _0x59c4ec['getItems']())_0x426717['is']('element')&&this['isMergeField'](_0x426717)&&this['_mergeFieldElements']['add'](_0x426717);}}_registerConversionPostFixer(){const _0x5a3cae=this['editor'];_0x5a3cae['model']['document']['registerPostFixer'](_0xf94ce4=>{if(!_0xf94ce4['batch']['isLocal'])return!0x1;const _0x14d7ba=[],_0x4d692d=new Set(),_0x1b3415=this['_mergeFieldRegExp'];let _0x3a5d8f=!0x1;for(const _0x48c02a of _0x5a3cae['model']['document']['differ']['getChanges']())if('insert'===_0x48c02a['type']||'remove'===_0x48c02a['type']){let _0x2b205d='$text'==_0x48c02a['name']?_0x48c02a['position']['parent']:_0x48c02a['position']['nodeAfter'];if(!_0x2b205d)continue;_0x2b205d['is']('$text')&&(_0x2b205d=_0x2b205d['parent']),_0x2af9fe(_0x2b205d);}for(const _0x376391 of _0x14d7ba['reverse']()){const {match:_0x5ad59e,item:_0x13a78c}=_0x376391,_0x421349=_0xf94ce4['createPositionAt'](_0x13a78c,_0x5ad59e['index']),_0x1195bb=_0x421349['getShiftedBy'](_0x5ad59e[0x0]['length']),_0x4f305a=_0xf94ce4['createRange'](_0x421349,_0x1195bb),_0x41b618=_0x5ad59e[0x0],_0x3f60df=this['unwrapAffixes'](_0x41b618),_0x1f2ce5=_0x27fc5f(_0x4f305a),_0x5e5936=this['getMergeFieldType'](_0x3f60df);if(RA['test'](_0x3f60df)){if(_0x1f2ce5['set']('id',_0x3f60df),'block'===_0x5e5936){const _0x2f9e49=_0xf94ce4['createElement']('mergeFieldBlock',{'id':_0x3f60df});_0xf94ce4['remove'](_0x4f305a),_0x5a3cae['model']['insertObject'](_0x2f9e49,null,null,{'setSelection':'on','findOptimalPosition':void 0x0});}else{if('image'===_0x5e5936){const _0xbfb78f=_0xf94ce4['createElement']('imageBlock',{'src':this['wrapInAffixes'](_0x3f60df)});_0xf94ce4['remove'](_0x4f305a),_0x5a3cae['model']['insertObject'](_0xbfb78f,null,null,{'setSelection':'on','findOptimalPosition':void 0x0});}else{const _0x121d39=_0xf94ce4['createElement']('mergeField',_0x1f2ce5);_0x5a3cae['model']['schema']['checkChild'](_0x4f305a['start'],'mergeField')?_0x5a3cae['model']['insertObject'](_0x121d39,_0x4f305a):_0xf94ce4['remove'](_0x4f305a);}}_0x3a5d8f=!0x0;}}return _0x3a5d8f;function _0x2af9fe(_0x5c7919){let _0x1788b6='',_0x47cee2=0x0;if(!_0x4d692d['has'](_0x5c7919))for(const _0x3e6b43 of _0x5c7919['getChildren']()){const _0xd25c38=_0x3e6b43['nextSibling'];if(_0x3e6b43['is']('$text')&&(''===_0x1788b6&&_0x3e6b43['startOffset']&&(_0x47cee2=_0x3e6b43['startOffset']),_0x1788b6+=_0x3e6b43['data']),!_0xd25c38||_0xd25c38['is']('element')){for(const _0x5b5a4a of _0x1788b6['matchAll'](_0x1b3415))_0x5b5a4a['index']=_0x5b5a4a['index']+_0x47cee2,_0x14d7ba['push']({'match':_0x5b5a4a,'item':_0x5c7919});_0x4d692d['add'](_0x5c7919),_0x1788b6='';}_0x3e6b43['is']('element')&&_0x2af9fe(_0x3e6b43);}}function _0x27fc5f(_0x4e5e4f){const _0x402e8c=_0x4e5e4f['getItems'](),_0x54d376=_0x402e8c['next']()['value'],_0x1780d7=new Map(_0x54d376['getAttributes']());for(const _0x20baa7 of _0x402e8c)for(const [_0x41e542,_0x31fe41]of _0x1780d7)_0x20baa7['getAttribute'](_0x41e542)!==_0x31fe41&&_0x1780d7['delete'](_0x41e542);return _0x1780d7;}});}['_disableCommandOnMergeFields'](_0x744038){const _0x4559be=this['editor'],_0x4c75b0=_0x4559be['commands']['get'](_0x744038);_0x4c75b0&&_0x4c75b0['on']('set:isEnabled',(_0x10bab9,_0x180d5a,_0x2507d2)=>{if(0x1==_0x2507d2){const _0x4d47fe=_0x4559be['model']['document']['selection']['getSelectedElement']();_0x4d47fe&&this['isMergeField'](_0x4d47fe)&&(_0x10bab9['return']=!0x1,_0x10bab9['stop']());}});}},NA=class extends _0x19f1e8{filter(_0x3e540a){return _0x2d8557(_0x3e540a,this['items']);}},MA=class extends _0x2f6e1a{constructor(_0x7c1ee9){super(_0x7c1ee9),this['set']('text','');const _0x17c65a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-merge-fields-form']},'children':[{'tag':'div','attributes':{'class':['ck','ck-merge-fields-form__status']},'children':[{'text':_0x17c65a['to']('text')}]}]});}};function LA(_0x48a37c,_0x3397c9){const t=_0x48a37c['t'];switch(_0x3397c9){case'Search\x20merge\x20field':return t('Search\x20merge\x20field');case'No\x20merge\x20fields\x20found':return t('No\x20merge\x20fields\x20found');case'No\x20merge\x20fields\x20available':return t('No\x20merge\x20fields\x20available');case'Insert\x20merge\x20field':return t('Insert\x20merge\x20field');case'Merge\x20field':return t('Merge\x20field');case'Merge\x20fields\x20preview':return t('Merge\x20fields\x20preview');case'Labels':return t('Labels');case'Default\x20values':return t('Default\x20values');case'WARNING_MISSING_DATA_USED_DEFAULT_VALUE':return t({'string':'Default\x20value\x20is\x20used.','id':'WARNING_MISSING_DATA_USED_DEFAULT_VALUE'});case'WARNING_MISSING_DEFAULT_VALUE':return t({'string':'Default\x20value\x20not\x20available.','id':'WARNING_MISSING_DEFAULT_VALUE'});case'WARNING_MISSING_DATA':return t({'string':'Value\x20not\x20available.','id':'WARNING_MISSING_DATA'});default:return _0x3397c9;}}var $A=class extends _0x11fe30{['licenseKey'];_licenseKeyCheckInterval;['_balloon'];['_balloonPanelView']=null;static get requires(){return[_0x1322cb,PA,_0x2f4a98,_0x3671ff];}static get['pluginName'](){return'MergeFieldsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e629a){super(_0x3e629a),this['_removeDefaultValuesPreviewIfUnnecessary'](),this['_removeMenuBarButtonIfUnnecessary'](),this['_setupMentionConfiguration']();}init(){const _0x16a164=this['editor'];_0x16a164['ui']['componentFactory']['add']('insertMergeField',_0x154de5=>{const _0x46fe29=function(_0x2e964c){const _0x52c027=_0x46490d(_0x2e964c);return _0x52c027['set']({'class':'ck-insert-merge-field-dropdown','isEnabled':!0x0}),_0x52c027['buttonView']['set']({'label':LA(_0x2e964c,'Insert\x20merge\x20field'),'icon':bt,'tooltip':!0x0}),_0x52c027;}(_0x154de5);return _0x46fe29['bind']('isEnabled')['toMany']([_0x16a164['commands']['get']('insertMergeField'),_0x16a164['commands']['get']('insertMergeFieldBlock'),_0x16a164['commands']['get']('insertMergeFieldImage')],'isEnabled',(..._0x4689f4)=>_0x4689f4['some'](_0x1ef8ea=>_0x1ef8ea)),_0x46fe29['once']('change:isOpen',()=>{const _0x48bda5={'insertInline':_0x16a164['commands']['get']('insertMergeField'),'insertBlock':_0x16a164['commands']['get']('insertMergeFieldBlock'),'insertImage':_0x16a164['commands']['get']('insertMergeFieldImage')},_0x3d3b5c=function(_0x1c9fa9,_0x1e53e2,_0x3f7593){const _0x22eb96=new NA(_0x1c9fa9),_0x4a5685=[],_0x576826=[];for(const _0x58ed89 of _0x1e53e2)if('groupId'in _0x58ed89){const _0x237afb=DA(_0x1c9fa9,_0x58ed89['groupLabel']||_0x58ed89['groupId'],_0x58ed89['definitions'],_0x3f7593);_0x237afb['delegate']('execute')['to'](_0x22eb96),_0x576826['push'](_0x237afb);}else _0x4a5685['push'](_0x58ed89);if(_0x4a5685['length']){const _0x1467be=DA(_0x1c9fa9,'Other',_0x4a5685,_0x3f7593);_0x1467be['delegate']('execute')['to'](_0x22eb96),_0x576826['push'](_0x1467be);}return _0x22eb96['items']['addMany'](_0x576826),_0x22eb96;}(_0x154de5,_0x16a164['config']['get']('mergeFields.definitions'),_0x48bda5);_0x3d3b5c['delegate']('execute')['to'](_0x46fe29),_0x46fe29['on']('execute',(_0x59a05a,_0x5c9316)=>{const _0x2ed8f5=_0x16a164['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x5c9316);'image'===_0x2ed8f5?_0x16a164['execute']('insertMergeFieldImage',_0x5c9316):'block'===_0x2ed8f5?_0x16a164['execute']('insertMergeFieldBlock',_0x5c9316):_0x16a164['execute']('insertMergeField',_0x5c9316),_0x16a164['editing']['view']['focus']();});const _0x5620c4=function(_0x1c29ed,_0x5629bb){return new _0x30d1f3(_0x1c29ed,{'filteredView':_0x5629bb,'queryView':{'label':LA(_0x1c29ed,'Search\x20merge\x20field')},'class':'ck-merge-fields-search','infoView':{'text':{'notFound':{'primary':LA(_0x1c29ed,'No\x20merge\x20fields\x20found')},'noSearchableItems':{'primary':LA(_0x1c29ed,'No\x20merge\x20fields\x20available')}}}});}(_0x154de5,_0x3d3b5c);_0x46fe29['panelView']['children']['add'](_0x5620c4),_0x46fe29['on']('change:isOpen',(_0x25366f,_0xd51e54,_0x4006c4)=>{_0x4006c4&&_0x5620c4['reset']();});}),_0x46fe29;}),_0x16a164['ui']['componentFactory']['add']('menuBar:insertMergeField',_0x3b17cd=>{const _0x5cad4d=new _0xf2980e(_0x3b17cd),_0x1f23f8={'insertInline':_0x16a164['commands']['get']('insertMergeField'),'insertBlock':_0x16a164['commands']['get']('insertMergeFieldBlock'),'insertImage':_0x16a164['commands']['get']('insertMergeFieldImage')};_0x5cad4d['buttonView']['set']({'label':LA(_0x3b17cd,'Merge\x20field'),'icon':bt}),_0x5cad4d['bind']('isEnabled')['toMany']([...Object['values'](_0x1f23f8)],'isEnabled',(..._0x3e14b6)=>_0x3e14b6['some'](_0x370028=>_0x370028));const _0x53ea51=[],_0x526aa2=new _0x32d381(_0x3b17cd);for(const _0x1619d2 of _0x16a164['config']['get']('mergeFields.definitions'))if('groupId'in _0x1619d2){const _0x4251a7=new _0x1bf87e(_0x3b17cd,_0x5cad4d),_0x38ed5f=jA(_0x3b17cd,_0x1619d2,_0x1f23f8);_0x4251a7['children']['add'](_0x38ed5f),_0x38ed5f['delegate']('execute')['to'](_0x5cad4d),_0x526aa2['items']['add'](_0x4251a7);}else _0x53ea51['push'](_0x1619d2);if(_0x53ea51['length']){if(0x0===_0x526aa2['items']['length'])for(const _0x5e4645 of _0x53ea51){let _0x2d5fe4;_0x2d5fe4='block'===_0x5e4645['type']?_0x1f23f8['insertBlock']:'image'===_0x5e4645['type']?_0x1f23f8['insertImage']:_0x1f23f8['insertInline'];const _0x237c65=UA(_0x3b17cd,_0x5e4645,_0x5cad4d,_0x2d5fe4);_0x526aa2['items']['add'](_0x237c65);}else{const _0x521114=new _0x1bf87e(_0x3b17cd,_0x5cad4d),_0x11d860=jA(_0x3b17cd,{'groupId':'Other','definitions':_0x53ea51},_0x1f23f8);_0x521114['children']['add'](_0x11d860),_0x11d860['delegate']('execute')['to'](_0x5cad4d),_0x526aa2['items']['add'](_0x521114);}}return _0x5cad4d['panelView']['children']['add'](_0x526aa2),_0x5cad4d['on']('execute',(_0x1d0f4e,_0x457b29)=>{const _0x15e97b=_0x16a164['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x457b29);'image'===_0x15e97b?_0x16a164['execute']('insertMergeFieldImage',_0x457b29):'block'===_0x15e97b?_0x16a164['execute']('insertMergeFieldBlock',_0x457b29):_0x16a164['execute']('insertMergeField',_0x457b29),_0x16a164['editing']['view']['focus']();}),_0x5cad4d;});const _0x23d6e4=_0x16a164['config']['get']('mergeFields.previewModes'),_0x1ca707=[];if(_0x23d6e4['includes']('$labels')&&_0x1ca707['push']({'type':'button','model':new ts({'withText':!0x0,'isToggleable':!0x0,'label':LA(this['editor']['locale'],'Labels'),'commandValue':'$labels'})}),_0x23d6e4['includes']('$defaultValues')&&_0x1ca707['push']({'type':'button','model':new ts({'withText':!0x0,'isToggleable':!0x0,'label':LA(this['editor']['locale'],'Default\x20values'),'commandValue':'$defaultValues'})}),_0x23d6e4['includes']('$dataSets')){const _0x5dce63=_0x16a164['config']['get']('mergeFields.dataSets');if(_0x5dce63['length']){for(const _0x42f4ad of _0x5dce63)_0x1ca707['push']({'type':'button','model':new ts({'withText':!0x0,'isToggleable':!0x0,'label':_0x42f4ad['label']||_0x42f4ad['id'],'commandValue':_0x42f4ad['id']})});}}_0x16a164['ui']['componentFactory']['add']('previewMergeFields',_0x18582b=>{const _0x2e8179=_0x16a164['commands']['get']('previewMergeFields'),_0x5de86d=new _0x2186b6();for(const _0x2d57d3 of so(_0x1ca707))_0x2d57d3['model']['bind']('isOn')['to'](_0x2e8179,'value',_0x3b3e3b=>_0x3b3e3b===_0x2d57d3['model']['commandValue']),_0x5de86d['add'](_0x2d57d3);const _0x2f6485=_0x46490d(_0x18582b),_0x3b224a=LA(_0x18582b,'Merge\x20fields\x20preview');return _0x2f6485['bind']('isEnabled')['to'](_0x2e8179),_0x55b796(_0x2f6485,_0x5de86d,{'ariaLabel':_0x3b224a,'role':'menu'}),_0x2f6485['set']({'class':'ck-merge-fields-preview-dropdown'}),_0x2f6485['buttonView']['set']({'label':_0x3b224a,'ariaLabel':_0x3b224a,'ariaLabelledBy':void 0x0,'isOn':!0x1,'icon':Xt,'tooltip':!0x0}),this['listenTo'](_0x2f6485,'execute',_0x3f9704=>{const {commandValue:_0xf788a}=_0x3f9704['source'];_0x16a164['execute']('previewMergeFields',_0xf788a),_0x16a164['editing']['view']['focus']();}),_0x2f6485;}),_0x16a164['ui']['componentFactory']['add']('menuBar:previewMergeFields',_0x31c450=>{const _0x18f34e=new _0xf2980e(_0x31c450),_0x1958b5=_0x16a164['commands']['get']('previewMergeFields');_0x18f34e['buttonView']['set']({'label':LA(_0x31c450,'Merge\x20fields\x20preview'),'icon':Xt}),_0x18f34e['bind']('isEnabled')['to'](_0x1958b5);const _0x5a770e=new _0x32d381(_0x31c450);_0x5a770e['set']({'ariaLabel':LA(_0x31c450,'Merge\x20fields\x20preview')});for(const _0x368435 of so(_0x1ca707)){const _0xf00c2e=new _0x1bf87e(_0x31c450,_0x18f34e),_0xcc009f=new _0x589436(_0x31c450);_0x368435['model']['bind']('isOn')['to'](_0x1958b5,'value',_0x5cf3ca=>_0x5cf3ca===_0x368435['model']['commandValue']),_0xcc009f['isToggleable']=!0x0,_0xcc009f['bind'](...Object['keys'](_0x368435['model']))['to'](_0x368435['model']),_0xcc009f['delegate']('execute')['to'](_0x18f34e),_0xcc009f['on']('execute',_0x345c3a=>{const {commandValue:_0x34493f}=_0x345c3a['source'];_0x16a164['execute']('previewMergeFields',_0x34493f),_0x16a164['editing']['view']['focus']();}),_0xf00c2e['children']['add'](_0xcc009f),_0x5a770e['items']['add'](_0xf00c2e);}return _0x18f34e['panelView']['children']['add'](_0x5a770e),_0x18f34e;}),this['_balloon']=_0x16a164['plugins']['get'](_0x2f4a98),this['listenTo'](_0x16a164['ui'],'update',()=>{this['_updateBalloonVisibility']();},{'priority':'low'}),this['listenTo'](_0x16a164['ui']['focusTracker'],'change:isFocused',(_0x4d8ebe,_0x10451b,_0x2b81c8)=>{this['_balloon']['visibleView']&&this['_balloon']['visibleView']===this['_balloonPanelView']&&(_0x2b81c8?this['_updateBalloonVisibility']():this['_hideBalloon']());},{'priority':'low'}),this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x11e264=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x29dd5d;for(const _0x2f7f48 in _0x11e264){const _0x111573=_0x2f7f48,_0x4016c9=_0x11e264[_0x111573];if('mergeFieldsLicenseKeyValid'==_0x4016c9||'mergeFieldsLicenseKeyInvalid'==_0x4016c9||'mergeFieldsLicenseKeyExpired'==_0x4016c9||'mergeFieldsLicenseKeyDomainLimit'==_0x4016c9||'mergeFieldsLicenseKeyNotAllowed'==_0x4016c9||'mergeFieldsLicenseKeyEvaluationLimit'==_0x4016c9||'mergeFieldsLicenseKeyUsageLimit'==_0x4016c9){delete _0x11e264[_0x111573],_0x29dd5d=_0x4016c9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'mergeFieldsLicenseKeyInvalid'==_0x29dd5d&&_0x11e264['_showLicenseError']('invalid'),'mergeFieldsLicenseKeyExpired'==_0x29dd5d&&_0x11e264['_showLicenseError']('expired'),'mergeFieldsLicenseKeyDomainLimit'==_0x29dd5d&&_0x11e264['_showLicenseError']('domainLimit'),'mergeFieldsLicenseKeyNotAllowed'==_0x29dd5d&&_0x11e264['_showLicenseError']('featureNotAllowed','MergeFields'),'mergeFieldsLicenseKeyEvaluationLimit'==_0x29dd5d&&_0x11e264['_showLicenseError']('evaluationLimit'),'mergeFieldsLicenseKeyUsageLimit'==_0x29dd5d&&_0x11e264['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_updateBalloonVisibility(){const _0x207ecd=this['editor']['editing']['view']['document']['selection']['getSelectedElement'](),_0x4199bb=!(!_0x207ecd||!_0x207ecd['getCustomProperty']('mergeFieldStatus'));if(this['_balloon']['hasView'](this['_balloonPanelView'])&&this['_balloon']['visibleView']===this['_balloonPanelView']){if(_0x4199bb){const _0x5d8d5d=_0x207ecd['getCustomProperty']('mergeFieldStatus');this['_balloonPanelView']['text']=LA(this['editor']['locale'],_0x5d8d5d),this['_balloon']['updatePosition'](this['_getBalloonPositionData']());}else this['_hideBalloon']();}else{if(_0x4199bb){const _0x4c00b3=_0x207ecd['getCustomProperty']('mergeFieldStatus');this['_showBalloon'](LA(this['editor']['locale'],_0x4c00b3));}}}['_showBalloon'](_0x591f2c){this['_balloonPanelView']||(this['_balloonPanelView']=new MA(this['editor']['locale']),this['_balloonPanelView']['text']=_0x591f2c),this['_balloon']['hasView'](this['_balloonPanelView'])||(this['_balloon']['add']({'stackId':'mergeFieldsStatus','view':this['_balloonPanelView'],'position':this['_getBalloonPositionData']()}),this['_balloon']['showStack']('mergeFieldsStatus'));}_getBalloonPositionData(){const _0xd0f3a8=this['editor']['editing']['view'];return{'target':()=>{const _0x37bf30=_0xd0f3a8['document']['selection']['getFirstRange'](),_0x3982e4=_0xd0f3a8['domConverter']['mapViewToDom'](_0x37bf30['getContainedElement']());return _0x3982e4?Array['from'](_0x3982e4['getClientRects']())[0x0]:_0xd0f3a8['domConverter']['viewRangeToDom'](_0x37bf30);}};}['_hideBalloon'](){this['_balloon']['remove'](this['_balloonPanelView']);}_removeDefaultValuesPreviewIfUnnecessary(){if(Object['values'](this['editor']['plugins']['get']('MergeFieldsEditing')['getDefaultValues']())['some'](_0x21a30c=>_0x21a30c))return;const _0x438267=this['editor']['config']['get']('mergeFields.previewModes');_0x438267['indexOf']('$defaultValues')>-0x1&&_0x438267['length']>0x1&&(_0x438267['splice'](_0x438267['indexOf']('$defaultValues'),0x1),this['editor']['config']['set']('mergeFields.previewModes',_0x438267));}_removeMenuBarButtonIfUnnecessary(){const _0x4ee639=this['editor']['config'];if(_0x4ee639['get']('mergeFields.previewModes')){const _0x4e1ab2=_0x4ee639['get']('mergeFields.previewModes');0x1===_0x4e1ab2['length']&&(_0x4e1ab2['includes']('$dataSets')?0x1===_0x4ee639['get']('mergeFields.dataSets')['length']&&_0x2c7a49():_0x2c7a49());}function _0x2c7a49(){const _0x42a6c6=_0x4ee639['get']('menuBar.removeItems');_0x42a6c6?(_0x42a6c6['push']('menuBar:previewMergeFields'),_0x4ee639['set']('menuBar.removeItems',_0x42a6c6)):_0x4ee639['set']('menuBar.removeItems',['menuBar:previewMergeFields']);}}_setupMentionConfiguration(){const _0x424a4b=this['editor'],_0x5c038a=_0x424a4b['config']['get']('mention.feeds'),_0x4723c1=_0x424a4b['config']['get']('mergeFields.prefix');_0x5c038a['push']({'marker':_0x4723c1,'dropdownLimit':0xa,'feed':_0x984353=>_0x424a4b['plugins']['get']('MergeFieldsEditing')['flattenedMergeFieldDefinitions']['filter'](_0xe8e905=>{const _0x5c5879=_0x424a4b['commands']['get']('insertMergeField')['isEnabled'],_0x10a8cc=_0x424a4b['commands']['get']('insertMergeFieldBlock')['isEnabled'],_0x1db171=_0x424a4b['commands']['get']('insertMergeFieldImage')['isEnabled'],_0x314d1b=_0x424a4b['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0xe8e905['id']);return!('text'===_0x314d1b&&!_0x5c5879)&&(!('block'===_0x314d1b&&!_0x10a8cc)&&(!('image'===_0x314d1b&&!_0x1db171)&&(_0x424a4b['plugins']['get']('MergeFieldsEditing')['getLabel'](_0xe8e905['id'])||_0xe8e905['id'])['toLowerCase']()['includes'](_0x984353['toLowerCase']())));}),'itemRenderer':_0x26bd2c=>{const _0x42bba3=document['createElement']('button');return _0x42bba3['innerHTML']=''+(_0x26bd2c['label']||_0x26bd2c['id']),_0x42bba3;}}),_0x424a4b['config']['set']('mention.feeds',_0x5c038a);}_overrideMentionExecuteListener(){const _0x2a85bf=this['editor'];_0x2a85bf['commands']['get']('mention')['on']('execute',(_0x4ae79d,_0x26a4b2)=>{const _0x3d1c81=_0x26a4b2[0x0];_0x3d1c81['marker']===_0x2a85bf['config']['get']('mergeFields.prefix')&&_0x2a85bf['model']['change'](_0x106f59=>{_0x106f59['remove'](_0x3d1c81['range']);const _0xe1a60e=_0x3d1c81['mention']['id'],_0x5ac900=_0x2a85bf['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0xe1a60e);'text'===_0x5ac900?_0x2a85bf['execute']('insertMergeField',_0xe1a60e):'block'===_0x5ac900?_0x2a85bf['execute']('insertMergeFieldBlock',_0xe1a60e,!0x1):_0x2a85bf['execute']('insertMergeFieldImage',_0xe1a60e,{'breakBlock':!0x0}),_0x4ae79d['stop']();});},{'priority':'high'});}};function DA(_0x53aabb,_0x4e3337,_0x113106,_0x5e5440){const _0x223656=new _0x54b18d(_0x53aabb,new _0x2b31ee());_0x223656['label']=_0x4e3337;for(const _0x3aafd4 of _0x113106){let _0x1a8f2d;_0x1a8f2d='block'===_0x3aafd4['type']?_0x5e5440['insertBlock']:'image'===_0x3aafd4['type']?_0x5e5440['insertImage']:_0x5e5440['insertInline'];const _0x2757cd=QA(_0x53aabb,_0x3aafd4,_0x1a8f2d);_0x2757cd['delegate']('execute')['to'](_0x223656),_0x223656['items']['add'](_0x2757cd);}return _0x223656;}function QA(_0x5638a1,_0x1b5487,_0x1b031f){const _0x10ad3d=new _0x585012(_0x5638a1),_0x38aebd=new _0x39ae99(_0x5638a1,new _0x1b9124());return _0x10ad3d['children']['add'](_0x38aebd),_0x38aebd['set']({'label':_0x1b5487['label']||_0x1b5487['id'],'withText':!0x0}),_0x38aebd['bind']('isEnabled')['to'](_0x1b031f),_0x38aebd['on']('execute',()=>{_0x10ad3d['fire']('execute',_0x1b5487['id']);}),_0x10ad3d;}function jA(_0x56d35e,_0x9df2ff,_0x5c4b7a){const _0x5d66f2=new _0xf2980e(_0x56d35e),_0x489cd6=new _0x32d381(_0x56d35e);for(const _0x4b59a6 of _0x9df2ff['definitions']){let _0x64fab3;_0x64fab3='block'===_0x4b59a6['type']?_0x5c4b7a['insertBlock']:'image'===_0x4b59a6['type']?_0x5c4b7a['insertImage']:_0x5c4b7a['insertInline'];const _0x71709=UA(_0x56d35e,_0x4b59a6,_0x5d66f2,_0x64fab3);_0x489cd6['items']['add'](_0x71709);}return _0x5d66f2['set']({'class':'ck-menu-bar__merge-fields-submenu'}),_0x5d66f2['buttonView']['set']({'label':_0x9df2ff['groupLabel']||_0x9df2ff['groupId']}),_0x5d66f2['panelView']['children']['add'](_0x489cd6),_0x5d66f2;}function UA(_0x58aa8f,_0x5198d4,_0x5d18a8,_0x56ad65){const _0x2a07a1=new _0x1bf87e(_0x58aa8f,_0x5d18a8),_0x42724c=new _0x589436(_0x58aa8f);return _0x42724c['set']({'label':_0x5198d4['label']||_0x5198d4['id']}),_0x2a07a1['delegate']('execute')['to'](_0x5d18a8),_0x2a07a1['children']['add'](_0x42724c),_0x42724c['bind']('isEnabled')['to'](_0x56ad65),_0x42724c['on']('execute',()=>{_0x2a07a1['fire']('execute',_0x5198d4['id']);}),_0x2a07a1;}var VA=class extends _0x11fe30{static get requires(){return[PA,$A];}static get['pluginName'](){return'MergeFields';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}},BA=class extends _0x11fe30{_recalculatePageBreaksDebounced=vr(()=>this['_recalculatePageBreaks'](),0xc8);_pagesContainer=null;static get['pluginName'](){return'PaginationLookup';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){if(this['set']({'pageBreaks':[]}),!this['editor']['config']['get']('pagination'))return void _0x53dc7a('pagination-config-not-found',this['editor']['config']);const _0x564589=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x564589),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x246a48,_0x5c5f38,_0x29decb)=>{_0x29decb&&this['_recalculatePageBreaksDebounced']();});}afterInit(){!async function(_0x52fd88){const _0x1dc508='I9sCmg3DJiG5LFMuQjwhT0XBYyxSqvdPO46NZAcVzb71RWkfe8oKptnrUEal2H',_0x482115=0x791d0,_0x22962f=window['Date']['now'](),_0x364d19=_0x52fd88['editor'],_0x23dcc2=new window['Promise'](_0x287458=>{_0x364d19['once']('ready',_0x287458);}),_0x58e4a3={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x43594e=_0x364d19['config']['get']('licenseKey');async function _0x3f6450(){let _0x1876bb,_0x27cf27=null,_0x56ebfe=null;try{return'GPL'==_0x43594e?'NotAllowed':(_0x1876bb=_0x542d32(),_0x1876bb?(_0x1876bb['usageEndpoint']&&(_0x56ebfe=_0x120b85(_0x1876bb['usageEndpoint'],_0x1876bb['jti'])),await _0x1cffc2()?_0x393216()?_0x54a567()?'Expired':_0x5a138e()?('evaluation'==_0x1876bb['licenseType']&&(_0x27cf27=_0x58af4a('EvaluationLimit')),await _0x31a528()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x54a567(){const _0x5856d7=['evaluation','trial']['includes'](_0x1876bb['licenseType'])?_0x22962f/0x3e8:0xe10*_0x482115;return _0x1876bb['exp']<_0x5856d7;}function _0x393216(){const _0x3872a5=_0x1876bb['features'];return!!_0x3872a5&&(!!_0x3872a5['includes']('*')||!!_0x3872a5['includes']('PAG'));}function _0x5a138e(){const _0x12b9d4=_0x1876bb['licensedHosts'];if(!_0x12b9d4||0x0==_0x12b9d4['length'])return!0x0;const {hostname:_0x244ef6}=new URL(window['location']['href']);if(_0x12b9d4['includes'](_0x244ef6))return!0x0;const _0x4381ce=_0x244ef6['split']('.');return _0x12b9d4['filter'](_0x20af6c=>_0x20af6c['includes']('*'))['map'](_0x479ca7=>_0x479ca7['split']('.'))['filter'](_0x711d3a=>_0x711d3a['length']<=_0x4381ce['length'])['map'](_0x180807=>Array(_0x4381ce['length']-_0x180807['length'])['fill']('*'===_0x180807[0x0]?'*':'')['concat'](_0x180807))['some'](_0x3bf8ce=>_0x4381ce['every']((_0x1bb86e,_0x18350e)=>_0x3bf8ce[_0x18350e]===_0x1bb86e||'*'===_0x3bf8ce[_0x18350e]));}function _0x31a528(){return _0x27cf27&&_0x56ebfe?new window['Promise']((_0x36219b,_0x484057)=>{_0x27cf27['then'](_0x36219b,_0x484057),_0x56ebfe['then'](_0xa1dc2d=>{'Valid'!=_0xa1dc2d&&_0x36219b(_0xa1dc2d);},_0x484057);}):_0x27cf27||_0x56ebfe||'Valid';}}function _0x120b85(_0x4aa51c,_0x28ac20){return new window['Promise'](_0x5e303e=>{if(_0x1b692c())return _0x5e303e('Valid');_0x409e5e(),_0x364d19['decorate']('_sendUsageRequest');let _0x1dbe18=!0x1;const _0xba702f=_0xea66bb();function _0xe306d5(_0x513dce){return!!_0x513dce&&('object'==typeof _0x513dce||'function'==typeof _0x513dce)&&'function'==typeof _0x513dce['then']&&'function'==typeof _0x513dce['catch'];}function _0x51ac14(_0x352868){_0x4c33f7(_0x352868)['then'](_0x23eb2d=>_0x23eb2d&&'ok'==_0x23eb2d['status']?_0x4d07ae(_0xd1f531(_0xba702f+_0x28ac20))!=_0x23eb2d['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x132247=>(_0x19c3f1(),_0x132247),()=>{const _0x39bcb1=_0x5e62ba();return null==_0x39bcb1?(_0x19c3f1(),'Valid'):_0x22962f-_0x39bcb1>0x240c8400?'UsageLimit':'Valid';})['then'](_0x5e303e)['catch'](()=>{_0x5e303e('UsageLimit');});const _0x7cdb7c=0x36ee80;function _0x19c3f1(){const _0x5bc1c5='llct-'+_0x4d07ae(_0xd1f531(_0x4aa51c)),_0x507db3=_0x139b97(_0x4d07ae(window['Math']['ceil'](_0x22962f/_0x7cdb7c)));window['localStorage']['setItem'](_0x5bc1c5,_0x507db3);}function _0x5e62ba(){const _0x1e156c='llct-'+_0x4d07ae(_0xd1f531(_0x4aa51c)),_0x4871b4=window['localStorage']['getItem'](_0x1e156c);return _0x4871b4?window['parseInt'](_0x139b97(_0x4871b4),0x10)*_0x7cdb7c:null;}function _0x4c33f7(_0x1a6800){return new window['Promise']((_0x3d6e9d,_0x3c13a9)=>{_0x1a6800['then'](_0x3d6e9d,_0x3c13a9),window['setTimeout'](_0x3c13a9,0x1d4c0);});}}_0x364d19['on']('_sendUsageRequest',(_0x3d6e00,_0x399bb4)=>{if(_0x399bb4[0x0]!=_0x4aa51c)return _0x5e303e('UsageLimit');_0x399bb4[0x1]={..._0x399bb4[0x1],'requestId':_0xba702f};},{'priority':'high'}),_0x364d19['on']('_sendUsageRequest',_0x5a74ba=>{_0xe306d5(_0x5a74ba['return'])&&(_0x1dbe18=!0x0,_0x51ac14(_0x5a74ba['return']));},{'priority':'low'}),_0x23dcc2['then'](()=>{_0x1dbe18||_0x5e303e('UsageLimit');});});function _0x1b692c(){return'auto'==_0x364d19['editing']['view']['_overlayModeHint'];}function _0x409e5e(){_0x364d19['editing']['view']['_overlayModeHint']='auto';}}function _0x58af4a(_0x45bc41){const _0x3dc2db=[new window['Promise'](_0xd37afd=>setTimeout(_0xd37afd,0x93ecc)),_0x23dcc2['then'](()=>new window['Promise'](_0x4400aa=>{let _0x1fb5cf=0x0;_0x364d19['model']['on']('applyOperation',(_0x39c2bf,_0x3764de)=>{_0x3764de[0x0]['isDocumentOperation']&&_0x1fb5cf++,0x5e8==_0x1fb5cf&&(_0x4400aa(),_0x39c2bf['off']());});}))];return window['Promise']['race'](_0x3dc2db)['then'](()=>_0x45bc41);}async function _0x358976(){await _0x23dcc2,_0x364d19['model']['change']=_0x46249c,_0x364d19['model']['enqueueChange']=_0x46249c,_0x364d19['enableReadOnlyMode']('model');}function _0x1a56bb(_0x206c3){const _0x31c289=_0x19f225();_0x364d19[_0x31c289]='paginationLicenseKey'+_0x206c3,'Valid'!=_0x206c3&&_0x358976();}function _0x19f225(){const _0x4623aa=window['String'](window['performance']['now']())['replace']('.','');let _0xf631d5='I';for(let _0x514d14=0x0;_0x514d14<_0x4623aa['length'];_0x514d14+=0x2){let _0x12c3dd=window['parseInt'](_0x4623aa['substring'](_0x514d14,_0x514d14+0x2));_0x12c3dd>=0x3e&&(_0x12c3dd-=0x3e),_0xf631d5+=_0x1dc508[_0x12c3dd];}return _0xf631d5;}function _0x542d32(){const _0x2cffd1=_0x43594e['split']('.');if(0x3!=_0x2cffd1['length'])return null;return _0x339dd1(_0x2cffd1[0x1]);function _0x339dd1(_0x40ad0f){const _0x30906a=_0x5ba9ca(_0x40ad0f);return _0x30906a&&_0xb76adb()?_0x30906a:null;function _0xb76adb(){const _0x2efc3c=_0x30906a['jti'],_0x179fb7=window['parseInt'](_0x2efc3c['substring'](_0x2efc3c['length']-0x8),0x10),_0x5ef35c={..._0x30906a,'jti':_0x2efc3c['substring'](0x0,_0x2efc3c['length']-0x8)};return delete _0x5ef35c['vc'],_0xd1f531(_0x5ef35c)==_0x179fb7;}}}async function _0x1cffc2(){let _0x3a8eaa=!0x0;try{const [_0xee3c1f,_0x2f2725,_0x3d6c27]=_0x43594e['split']('.');return _0x40ceba(_0xee3c1f),await _0x28390f(_0xee3c1f,_0x2f2725,_0x3d6c27),_0x3a8eaa;}catch{return!0x1;}function _0x40ceba(_0x30b988){const _0xb155cf=_0x5ba9ca(_0x30b988);_0xb155cf&&'ES256'==_0xb155cf['alg']||(_0x3a8eaa=!0x1);}async function _0x28390f(_0x2ff667,_0x2f9e70,_0xda057f){const _0x3ca398=window['Uint8Array']['from'](_0x4a50e6(_0xda057f),_0x550b08=>_0x550b08['charCodeAt'](0x0)),_0x12322a=new window['TextEncoder']()['encode'](_0x2ff667+'.'+_0x2f9e70),_0x5f327f=window['crypto']['subtle'];if(!_0x5f327f)return;const _0x139c99=await _0x5f327f['importKey']('jwk',_0x58e4a3,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5f327f['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x139c99,_0x3ca398,_0x12322a)||(_0x3a8eaa=!0x1);}}function _0x5ba9ca(_0x4ce6d6){return _0x4ce6d6['startsWith']('ey')?JSON['parse'](_0x4a50e6(_0x4ce6d6)):null;}function _0x4a50e6(_0x3a1a2f){return window['atob'](_0x3a1a2f['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0xd1f531(_0xfaeca0){let _0x4c57ea=0x1505;function _0x47f7b2(_0xdc9ee0){for(let _0x15ee3d=0x0;_0x15ee3d<_0xdc9ee0['length'];_0x15ee3d++){const _0x549701=_0xdc9ee0['charCodeAt'](_0x15ee3d);_0x4c57ea=(_0x4c57ea<<0x5)+_0x4c57ea+_0x549701,_0x4c57ea&=_0x4c57ea;}}function _0x2c275f(_0x392e2c){Array['isArray'](_0x392e2c)?_0x392e2c['forEach'](_0x2c275f):_0x392e2c&&'object'==typeof _0x392e2c?Object['entries'](_0x392e2c)['sort']()['forEach'](([_0x5829bb,_0x582618])=>{_0x47f7b2(_0x5829bb),_0x2c275f(_0x582618);}):_0x47f7b2(window['String'](_0x392e2c));}return _0x2c275f(_0xfaeca0),_0x4c57ea>>>0x0;}function _0x4d07ae(_0x310c8f){return _0x310c8f['toString'](0x10)['padStart'](0x8,'0');}function _0x139b97(_0x54ec6a){return _0x54ec6a['split']('')['reverse']()['join']('');}function _0x46249c(){}_0x1a56bb(await _0x3f6450());}(this);}destroy(){super['destroy'](),this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']&&(this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x2af390=this['editor'],_0x3631ea=_0x2af390['editing']['view'],_0x56b967=this['_getAttachedDomRoot']();if(!_0x56b967||!_0x56b967['hasChildNodes']())return void _0x2af390['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x5df5f7,pageHeight:_0xedfc42}=_0x2af390['config']['get']('pagination'),{top:_0x48b7fb,left:_0x21d4ba,bottom:_0x510a6,right:_0x1da331}=this['_configuredPaddings'];this['_pagesContainer']=new _0x2f6e1a(_0x2af390['locale']);const _0x4512fa=this['_pagesContainer'];_0x4512fa['set']('class',''),_0x4512fa['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x5df5f7,'width':_0x5df5f7,'height':'calc(\x20'+_0xedfc42+'\x20-\x20'+_0x48b7fb+'\x20-\x20'+_0x510a6+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x1da331+'\x200\x20'+_0x21d4ba,'columnGap':'calc('+_0x21d4ba+'\x20+\x20'+_0x1da331+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x4512fa['bindTemplate']['to']('class')}}),_0x4512fa['render'](),_0x56b967['parentNode']['insertBefore'](_0x4512fa['element'],_0x56b967['nextSibling']),this['listenTo'](_0x3631ea,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}_getAttachedDomRoot(){for(const _0xfe4c1d of this['editor']['editing']['view']['domRoots']['values']())if(_0xfe4c1d['ownerDocument']['body']['contains'](_0xfe4c1d))return _0xfe4c1d;return null;}_recalculatePageBreaks(){if(!this['isEnabled'])return Promise['resolve']();const _0xe8e3cd=this['editor']['editing']['view'],_0x5bd1d4=this['_pagesContainer'],_0xba0f4c=this['_getAttachedDomRoot']();if(!_0xba0f4c||!_0x5bd1d4)return Promise['resolve']();for(_0x5bd1d4['class']=['ck-reset','ck-pagination-view',..._0xba0f4c['classList']]['join']('\x20');_0x5bd1d4['element']['firstChild'];)_0x5bd1d4['element']['firstChild']['remove']();const _0x49df96=Array['from'](_0xe8e3cd['domRoots']);_0x49df96['sort'](([,_0x5b60de],[,_0x4843e2])=>_0x5b60de['compareDocumentPosition'](_0x4843e2)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x4026bb,_0x49a16e]of _0x49df96){const _0x3ad9a9=_0x49a16e['cloneNode'](!0x0);'attributeStyleMap'in _0x3ad9a9&&_0x3ad9a9['attributeStyleMap']['clear'](),_0x3ad9a9['dataset']['rootName']=_0x4026bb,_0x3ad9a9['className']='ck-content\x20ck-pagination_enabled',_0x3ad9a9['removeAttribute']('id'),_0x3ad9a9['tabIndex']=-0x1,_0x5bd1d4['element']['append'](_0x3ad9a9);}const _0x3bc266=Array['from'](_0x5bd1d4['element']['querySelectorAll']('img'));return function(_0x4be1f8){return Promise['all'](_0x4be1f8['map'](_0x847117=>Promise['race']([GA(_0x847117),XA(0x3e8)])));}(_0x3bc266)['then'](()=>{for(const _0x1292e7 of _0x3bc266['filter'](_0x15105c=>!_0x15105c['closest']('table')))if(_0x1292e7['offsetParent']){const _0x3bf3f4=_0x250afe['window']['getComputedStyle'](_0x1292e7),_0x1bc404=_0x250afe['document']['createElement']('span');for(const _0x39eca0 of _0x3bf3f4)_0x1bc404['style']['setProperty'](_0x39eca0,_0x3bf3f4[_0x39eca0]);_0x1bc404['style']['backgroundImage']='url(\x20'+_0x1292e7['src']+'\x20)',_0x1bc404['style']['breakInside']='avoid','PICTURE'==_0x1292e7['parentElement']?.['tagName']?_0x1292e7['parentElement']['replaceWith'](_0x1bc404):_0x1292e7['replaceWith'](_0x1bc404);}return new Promise(_0x37e6e3=>_0x250afe['window']['requestAnimationFrame'](()=>_0x37e6e3()));})['then'](()=>{this['_updatePageBreaksData']();});}_updatePageBreaksData(){const _0x3841b8=this['_pagesContainer']['element'];if(!_0x3841b8['ownerDocument']['body']['contains'](_0x3841b8))return;const _0x5241ed=new _0x517140(_0x3841b8)['excludeScrollbarsAndBorders'](),_0x55535c=Math['floor'](_0x5241ed['width']+0x64),_0x1ed65a=YA(_0x3841b8,Math['floor'](_0x5241ed['left']-_0x3841b8['scrollLeft']),_0x55535c,_0x5241ed['height'])['map'](_0x453d7b=>this['_mapPageStarterInfoToPageBreakInfo'](_0x453d7b))['filter'](_0x3a28d0=>!0x1!==_0x3a28d0);_0x1ed65a['every'](_0x51470d=>!!_0x51470d)&&(this['pageBreaks']=_0x1ed65a);}_mapPageStarterInfoToPageBreakInfo(_0x2028ee){const _0x3cc835=this['editor']['editing']['view'],_0x5a66de=this['editor']['editing']['mapper'],_0x3d78bc=_0x3cc835['domConverter'],_0x278e16=_0x2028ee['path']['shift'](),_0x4e28f1=this['_pagesContainer']['element']['childNodes'][_0x278e16]['dataset']['rootName'],_0x48cf30=_0x3cc835['getDomRoot'](_0x4e28f1);if(!_0x48cf30)return null;const _0x21197b=function(_0x84610a,_0x4b212b){let _0x26db92=_0x84610a;for(const _0x44e892 of _0x4b212b['path']){if(!_0x26db92)return null;_0x26db92=_0x26db92['childNodes'][_0x44e892];}return _0x26db92;}(_0x48cf30,_0x2028ee);if(!_0x21197b)return null;const _0x254f32=_0x3d78bc['domPositionToView'](_0x21197b,_0x2028ee['textOffset']||0x0);return _0x254f32?'manual'==_0x2028ee['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x254f32,_0x21197b):'text'==_0x2028ee['type']&&_0x5a66de['toModelPosition'](_0x254f32)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x254f32,_0x21197b,_0x2028ee['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x254f32,_0x21197b,_0x2028ee['offset']):null;}_mapManualPageStarterInfoToPageBreakInfo(_0x56f071,_0x4e8ebd){const _0x593b79=this['editor']['model'],_0x2ce3bb=this['editor']['editing']['mapper']['toModelElement'](_0x56f071['parent']),_0x3a4a41=_0x593b79['createRangeOn'](_0x2ce3bb);return new HA({'type':'manual','modelRange':_0x3a4a41,'domNode':_0x4e8ebd,'offset':0x0});}_mapTextPageStarterInfoToPageBreakInfo(_0x1a9438,_0x5c71ad,_0x28c2e3){const _0x366914=this['editor']['model'],_0x1eaa6b=this['editor']['editing']['mapper'],_0x51ae7f=this['editor']['editing']['view']['domConverter'];if(_0x28c2e3>=_0x5c71ad['length'])return null;const _0x488424=_0x1eaa6b['toModelPosition'](_0x1a9438),_0x2c58c5=_0x366914['createRange'](_0x488424),_0x2d1194=_0x1eaa6b['findMappedViewAncestor'](_0x1a9438),_0x3998ab=_0x51ae7f['mapViewToDom'](_0x2d1194);return new HA({'type':'text','modelRange':_0x2c58c5,'domNode':_0x5c71ad,'offset':FA(_0x5c71ad,_0x28c2e3,_0x3998ab)});}_mapElementPageStarterInfoToPageBreakInfo(_0x41c550,_0x275202,_0x57d334){const _0x10c9ef=this['editor']['model'],_0x19e2f8=this['editor']['editing'],_0x1260be=_0x19e2f8['mapper'],_0x2da691=_0x19e2f8['view']['domConverter'],_0x29d3c7=_0x1260be['findMappedViewAncestor'](_0x41c550),_0x1fd7a6=_0x1260be['toModelElement'](_0x29d3c7);if(!_0x1fd7a6||_0x1fd7a6['is']('rootElement'))return!0x1;const _0x594cd3=function(_0x264141){const _0x39ef4a=_0x264141['parent'],_0x26694b=_0x39ef4a['root']['document']['model'],_0x2bea10=_0x39ef4a['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x104681=null;for(const _0x2f05be of _0x2bea10){if(_0x2f05be['is']('rootElement'))return _0x104681;if(!_0x26694b['createPositionBefore'](_0x2f05be)['isTouching'](_0x264141))return _0x104681;_0x104681=_0x2f05be;}}(_0x10c9ef['createPositionBefore'](_0x1fd7a6))||_0x1fd7a6;let _0x42e4fe=_0x1260be['toViewElement'](_0x594cd3),_0x53a573=_0x10c9ef['createRangeOn'](_0x594cd3);const _0x52e386=_0x10c9ef['createPositionBefore'](_0x594cd3)['nodeBefore'];if(_0x52e386&&_0x52e386['is']('element','imageBlock')){const _0x269755=_0x1260be['toViewElement'](_0x52e386),_0x4dce2f=_0x2da691['mapViewToDom'](_0x269755),_0x2f2bbd=_0x250afe['window']['getComputedStyle'](_0x4dce2f)['float'];'left'!=_0x2f2bbd&&'right'!=_0x2f2bbd||(_0x53a573=_0x10c9ef['createRangeOn'](_0x52e386));}for(;_0x42e4fe['parent']!==_0x42e4fe['root']&&0x0===_0x42e4fe['index'];)_0x42e4fe=_0x42e4fe['parent'];const _0x5d1cd7=new _0x517140(iS(_0x275202)?_0x275202:qA(_0x275202)),_0x47ed39=_0x57d334?_0x5d1cd7['height']-_0x57d334:0x0,_0x3a163d=_0x2da691['mapViewToDom'](_0x42e4fe),_0x79fc85=new _0x517140(_0x3a163d);return new HA({'type':'element','modelRange':_0x53a573,'domNode':_0x3a163d,'offset':Math['round'](_0x47ed39)||_0x29d3c7!=ZA(_0x41c550)?_0x47ed39+_0x5d1cd7['top']-_0x79fc85['top']:0x0});}get['_configuredPaddings'](){const _0x2c117d=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x2c117d);}static _findPageStarterInfos(_0x285f6e,_0x57cede,_0x4156cc,_0x5a8c8b,_0x5c9a76){return YA(_0x285f6e,_0x57cede,_0x4156cc,_0x5a8c8b,_0x5c9a76);}},HA=class{type;['modelRange'];['_domNode'];_offset;constructor({type:_0x2c6b4b,modelRange:_0x3b6a04,domNode:_0x1b69c2,offset:_0x1003f3}){this['type']=_0x2c6b4b,this['modelRange']=_0x3b6a04,this['_domNode']=_0x1b69c2,this['_offset']=_0x1003f3;}get offset(){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x4a81fb=new _0x517140(iS(this['_domNode'])?this['_domNode']:qA(this['_domNode']));return'manual'==this['type']?_0x4a81fb['top']+_0x4a81fb['height']/0x2:_0x4a81fb['top']+this['_offset'];}};function FA(_0x107c56,_0x4af6fd,_0x1aadb5){const _0xf0113=qA(_0x107c56),_0xf6e56=function(_0x2c9a1f){const _0x118b58=_0x250afe['document']['createRange']();return _0x118b58['selectNodeContents'](_0x2c9a1f),_0x118b58;}(_0x1aadb5);let _0x55ea47;_0x55ea47=0x0==_0x4af6fd?zA(_0xf6e56['startContainer'],_0xf6e56['startOffset'],_0x107c56['parentNode'],Array['from'](_0x107c56['parentNode']['childNodes'])['indexOf'](_0x107c56)):zA(_0xf6e56['startContainer'],_0xf6e56['startOffset'],_0x107c56,_0x4af6fd);const _0x14bb65=zA(_0x107c56,_0x4af6fd,_0xf6e56['endContainer'],_0xf6e56['endOffset']),_0x3787c5=new _0x517140(_0x55ea47)['bottom'];return(new _0x517140(_0x14bb65)['top']+_0x3787c5)/0x2-new _0x517140(_0xf0113)['top'];}function ZA(_0x18817f){let _0x1f9fab=_0x18817f['parent'];for(;_0x1f9fab['is']('$text')||_0x1f9fab['is']('attributeElement');)_0x1f9fab=_0x1f9fab['parent'];return _0x1f9fab;}function GA(_0x978c12){return _0x978c12['hasAttribute']('width')&&_0x978c12['hasAttribute']('height')?Promise['resolve']():new Promise(_0x5b3e6d=>{function _0x11926c(){_0x978c12['removeEventListener']('load',_0x11926c),_0x978c12['removeEventListener']('error',_0x11926c),_0x5b3e6d();}_0x978c12['complete']?_0x5b3e6d():(_0x978c12['addEventListener']('load',_0x11926c),_0x978c12['addEventListener']('error',_0x11926c));});}function XA(_0x2c30f1){return new Promise(_0x27312f=>setTimeout(_0x27312f,_0x2c30f1));}function qA(_0x5611f6){const _0x4da51f=_0x250afe['document']['createRange']();return _0x4da51f['selectNode'](_0x5611f6),_0x4da51f;}function WA(_0x265259,_0x467028,_0x2eedf8){const _0x5e18c9=_0x250afe['document']['createRange']();return _0x5e18c9['setStart'](_0x265259,_0x467028),_0x5e18c9['setEnd'](_0x265259,_0x2eedf8),_0x5e18c9;}function zA(_0x40537c,_0x4431a6,_0x245dbe,_0x3c767b){const _0x5dfd8f=_0x250afe['document']['createRange']();return _0x5dfd8f['setStart'](_0x40537c,_0x4431a6),_0x5dfd8f['setEnd'](_0x245dbe,_0x3c767b),_0x5dfd8f;}function YA(_0xe6419b,_0x245ac7,_0x565e5c,_0x4e1583,_0x1f8e03){const _0x36a17e=[];for(const [_0x3468de,_0x1c6602]of _0xe6419b['childNodes']['entries']()){let _0x419c80=[];iS(_0x1c6602)&&_0x1c6602['offsetParent']&&['static','relative']['includes'](_0x250afe['window']['getComputedStyle'](_0x1c6602)['position'])?_0x419c80=KA(_0x1c6602,_0x3468de,_0x245ac7,_0x565e5c,_0x4e1583,_0x1f8e03):sS(_0x1c6602)&&(_0x419c80=JA(_0x1c6602,_0x3468de,_0x245ac7,_0x565e5c,_0x1f8e03)),_0x419c80['length']&&(_0x36a17e['push'](..._0x419c80),_0x245ac7+=_0x419c80['length']*_0x565e5c,_0x1f8e03=!0x1);}return _0x36a17e;}function KA(_0x4ba234,_0x2b61a9,_0x3bceeb,_0x27082d,_0x49834b,_0x13ab24){const _0x49a508=[];var _0x340385;if((_0x340385=_0x4ba234['previousSibling'])&&iS(_0x340385)&&Boolean(_0x340385['classList']['contains']('page-break')||_0x340385['closest']('.page-break'))&&(_0x49a508['push']({'type':'manual','offset':0x0,'path':[_0x2b61a9-0x1]}),_0x13ab24=!0x0),'table-row'==_0x250afe['window']['getComputedStyle'](_0x4ba234)['display']){let _0x85252d=0x0,_0x9682cf=!0x1;for(const _0x3b728f of _0x4ba234['getClientRects']())_0x85252d+=_0x3b728f['height'],_0x3b728f['left']>=_0x3bceeb&&(_0x9682cf=!0x0);if(_0x85252d<_0x49834b&&_0x9682cf)return _0x13ab24||_0x49a508['push']({'type':'element','offset':0x0,'path':[_0x2b61a9]}),_0x49a508;}const _0x3455d3=_0x4ba234['closest']('figure.image');if(_0x3455d3&&function(_0x51056e){let _0x3792e9=!0x1;const _0x47803d=_0x51056e['parentElement']['dataset']['rootName'],_0x1cc341=_0x51056e['nextElementSibling'],_0x3242ed=_0x51056e['previousElementSibling'],_0x4c8ab6=_0x1cc341&&_0x250afe['window']['getComputedStyle'](_0x1cc341)['float'],_0x5be7dd=_0x1cc341&&'ck-fake-selection-container'===_0x1cc341['className'];return!_0x47803d||_0x1cc341||_0x3242ed||(_0x3792e9=!0x0),_0x47803d&&!_0x3242ed&&_0x5be7dd&&(_0x3792e9=!0x0),_0x47803d&&!_0x3242ed&&'none'!==_0x4c8ab6&&(_0x3792e9=!0x0),!_0x3792e9;}(_0x3455d3)){const _0x4fb251=_0x250afe['window']['getComputedStyle'](_0x3455d3)['float'];if('left'==_0x4fb251||'right'==_0x4fb251)return _0x49a508;}const _0x58e2e0=YA(_0x4ba234,_0x3bceeb,_0x27082d,_0x49834b,_0x13ab24);if(_0x58e2e0['length']){for(const _0x26b6c3 of _0x58e2e0)_0x49a508['push']({'type':_0x26b6c3['type'],'offset':_0x26b6c3['offset'],'textOffset':_0x26b6c3['textOffset'],'path':[_0x2b61a9,..._0x26b6c3['path']]}),_0x3bceeb+=_0x27082d;return _0x49a508;}return _0x49a508['push'](...function(_0x142302,_0x268769,_0x33e359,_0x1fb681,_0x241863){const _0x48a694=[];if('table-cell'==_0x250afe['window']['getComputedStyle'](_0x142302)['display'])return[];const _0x4f1a37=[];for(const _0x267dbb of _0x142302['getClientRects']())if(_0x267dbb['left']>=_0x33e359){for(const _0x4ccb32 of _0x4f1a37)_0x4ccb32['height']+=_0x267dbb['height'];_0x4f1a37['push']({'height':_0x267dbb['height']}),_0x33e359+=_0x1fb681;}for(const _0x1cb69e of _0x4f1a37)_0x241863||_0x48a694['push']({'type':'element','offset':_0x1cb69e['height'],'textOffset':0x0,'path':[_0x268769]}),_0x241863=!0x1;return _0x48a694;}(_0x4ba234,_0x2b61a9,_0x3bceeb,_0x27082d,_0x13ab24)),_0x49a508;}function JA(_0x5cfb6b,_0x5f5807,_0x12c81f,_0x1599c2,_0x4eba2b){const _0x3fb90a=qA(_0x5cfb6b),_0x416039=[];let _0x36db7a=0x0;for(const _0x44ed8f of _0x3fb90a['getClientRects']())if(_0x44ed8f['left']>=_0x12c81f){const _0x5860e3=tS(_0x5cfb6b,_0x36db7a,_0x12c81f,_0x1599c2);_0x4eba2b||_0x416039['push']({'type':'text','path':[_0x5f5807],'textOffset':_0x5860e3}),_0x36db7a=_0x5860e3,_0x12c81f+=_0x1599c2,_0x4eba2b=!0x1;}return _0x416039;}function tS(_0x4e6602,_0x418ea8,_0x584c1c,_0x1b58dc){let _0x559063=_0x418ea8,_0x5d9890=_0x4e6602['length'];for(;_0x5d9890-_0x559063>0x1;){const _0x3a193f=Math['ceil']((_0x559063+_0x5d9890)/0x2);eS(WA(_0x4e6602,_0x559063,_0x3a193f),_0x584c1c,_0x1b58dc)?_0x5d9890=_0x3a193f:_0x559063=_0x3a193f;}return _0x559063;}function eS(_0x1a2f7f,_0x5ed680,_0x57ae97){for(const _0xdacf63 of _0x1a2f7f['getClientRects']())if(_0xdacf63['left']>=_0x5ed680&&_0xdacf63['left']<_0x5ed680+_0x57ae97)return!0x0;return!0x1;}function iS(_0x52bb77){return _0x52bb77['nodeType']==Node['ELEMENT_NODE'];}function sS(_0x141d87){return _0x141d87['nodeType']==Node['TEXT_NODE'];}const nS=/* #__PURE__ -- @preserve */
_0x3b6ceb('px');var rS=class extends _0x2f6e1a{constructor(){super();const _0x2e3f56=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x2e3f56['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x2e3f56['if']('isVisible','ck-hidden',_0x246e22=>!_0x246e22)],'style':{'left':_0x2e3f56['to']('left',_0x2892c3=>nS(_0x2892c3)),'top':_0x2e3f56['to']('top',_0x28a14a=>nS(_0x28a14a)),'width':_0x2e3f56['to']('width',_0x3b1f20=>nS(_0x3b1f20))}}});}},oS=class{_viewCollection;['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x36c2fc){this['_viewCollection']=_0x36c2fc['ui']['view']['body'];}destroy(){for(const _0x4ddaf4 of this['_hiddenLines'])_0x4ddaf4['destroy']();}['cleanLines'](){for(const _0x4d764c of this['_visibleLines'])_0x4d764c['isVisible']=!0x1,this['_hiddenLines']['add'](_0x4d764c);this['_visibleLines']['clear']();}['showLine'](_0x4024f8,_0x4dca53,_0x7b13c,_0x244e8d){let _0x267477;this['_hiddenLines']['size']?(_0x267477=_0x4b2d4c(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x267477)):_0x267477=new rS(),_0x267477['set']({'pageNumber':_0x244e8d,'left':_0x4024f8,'top':_0x4dca53,'width':_0x7b13c}),_0x267477['isVisible']=!0x0,this['_viewCollection']['has'](_0x267477)||this['_viewCollection']['add'](_0x267477),this['_visibleLines']['add'](_0x267477);}setViewCollection(_0x4e34c0){for(const _0x43881c of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x43881c)&&this['_viewCollection']['remove'](_0x43881c);this['_viewCollection']=_0x4e34c0;}};const aS='ck-pagination_enabled';var cS=class extends _0x11fe30{linesRepository;_scrollableEditingRootDomAncestor=null;['_resizeObserver']=null;_paginationLookupPlugin;static get['pluginName'](){return'PaginationRenderer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){this['set']({'pageNumber':0x1}),this['linesRepository']=new oS(this['editor']),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']=null,this['_paginationLookupPlugin']=this['editor']['plugins']['get']('PaginationLookup'),this['bind']('isEnabled')['to'](this['editor']['plugins']['get']('PaginationEditing')),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['_toggleEditingRootsClass'](aS),this['on']('change:isEnabled',(_0x495714,_0x3cd4d0,_0x980003)=>{_0x980003||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](aS,_0x980003);});}destroy(){this['_toggleEditingRootsClass'](aS,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x355272){if(!this['isEnabled'])return;const _0x310cf9=_0x355272>0x1?this['_getPageBreakLineOffset'](_0x355272-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x310cf9-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x5a4d25['isMotionReduced']?'instant':'smooth'});}setupScrollableAncestor(){const _0x118be9=this['editor'],_0x35c64c=this['_getAttachedDomRoot']();_0x35c64c?(this['_scrollableEditingRootDomAncestor']&&_0x118be9['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0xecad9f){let _0x296953=_0xecad9f;do{_0x296953=_0x296953['parentElement'];const _0x1e9a32=_0x250afe['window']['getComputedStyle'](_0x296953)['overflowY'];if('auto'==_0x1e9a32||'scroll'==_0x1e9a32)break;}while('BODY'!=_0x296953['tagName']);return _0x296953;}(_0x35c64c),_0x118be9['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x55dcdb(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x118be9['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x77437d=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x77437d['ui']['view']['listenTo'](_0x250afe['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x77437d['ui']['once']('update',()=>this['_onUiReady']());}_getAttachedDomRoot(){for(const _0x13f4b2 of this['editor']['editing']['view']['domRoots']['values']())if(_0x13f4b2['ownerDocument']['body']['contains'](_0x13f4b2))return _0x13f4b2;return null;}_updatePageBreakLines(){if(!this['isEnabled'])return;const _0x37f28d=this['_getAttachedDomRoot'](),_0x11a392=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x37f28d||0x1==_0x11a392['length'])return void(this['pageNumber']=0x1);const _0x14e259=new _0x517140(_0x37f28d)['excludeScrollbarsAndBorders'](),_0x3baeab=new _0x517140(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x552d2c=_0x3baeab['top']+_0x3baeab['height']/0x3;let _0x1d455c=!0x1;const _0x224068=[];for(let _0x211591=0x1;_0x211591<_0x11a392['length'];_0x211591++){const _0x4fced0=this['_getPageBreakLineOffset'](_0x211591,_0x3baeab);if(!_0x4fced0)continue;const _0x518073=_0x3baeab['top']+_0x4fced0-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x224068['push']({'pageOffsetTop':_0x518073,'domRootRect':_0x14e259,'domScrollableRect':_0x3baeab,'pageNumber':_0x211591}),_0x518073>_0x552d2c&&!_0x1d455c&&(this['pageNumber']=_0x211591,_0x1d455c=!0x0);}this['_renderPageBreakLines'](_0x224068),_0x1d455c||(this['pageNumber']=_0x11a392['length']);}['_renderPageBreakLines'](_0x53b9ed){const {scrollX:_0x3e43bf,scrollY:_0x4ea718}=_0x250afe['window'];if(_0x53b9ed['length']){for(const {domScrollableRect:_0x491f4f,pageOffsetTop:_0x277d47,domRootRect:_0x162d12,pageNumber:_0x2987df}of _0x53b9ed)_0x491f4f['top']<_0x277d47&&_0x277d47<_0x491f4f['bottom']&&this['linesRepository']['showLine'](_0x162d12['left']+_0x3e43bf,_0x277d47+_0x4ea718,_0x162d12['width'],_0x2987df+0x1);}}_getPageBreakLineOffset(_0x48d19b,_0xf69829=null){const _0x547cb8=this['_paginationLookupPlugin']['pageBreaks'][_0x48d19b]['offset'];return _0x547cb8?(_0xf69829||(_0xf69829=new _0x517140(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x547cb8-_0xf69829['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}_toggleEditingRootsClass(_0x36f3ad,_0x9232c4=!0x0){const _0x59d875=this['editor']['editing']['view'];_0x59d875['change'](_0x79c122=>{for(const _0x4a4499 of _0x59d875['document']['roots'])_0x9232c4?_0x79c122['addClass'](_0x36f3ad,_0x4a4499):_0x79c122['removeClass'](_0x36f3ad,_0x4a4499);});}};function lS(_0x5b28d0,_0x4fc53a,..._0x5bad53){const t=_0x5b28d0['t'];switch(_0x4fc53a){case'Go\x20to\x20next\x20page':return t('Go\x20to\x20next\x20page');case'Go\x20to\x20previous\x20page':return t('Go\x20to\x20previous\x20page');case'Current\x20page\x20number\x20(from\x201\x20to\x20%0)':return t('Current\x20page\x20number\x20(from\x201\x20to\x20%0)',..._0x5bad53);case'Keystrokes\x20for\x20navigating\x20through\x20documents':return t('Keystrokes\x20for\x20navigating\x20through\x20documents');case'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)');case'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)');default:return _0x4fc53a;}}var hS=class extends _0x11fe30{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[BA,cS];}init(){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x2e1332=this['editor']['plugins']['get']('Pagination'),_0x7db493=this['editor']['plugins']['get'](BA),_0x2c48ea=this['editor']['plugins']['get'](cS);this['bind']('isEnabled')['to'](_0x2e1332),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x2c48ea),this['listenTo'](_0x7db493,'change:pageBreaks',(_0x98a0c7,_0x57be38,_0xf300aa,_0x52dcc5)=>{this['totalPages']=_0xf300aa['length'],this['_updatePageBreakMarkers'](_0xf300aa,_0x52dcc5);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4b52db=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x22e898;for(const _0x1462ad in _0x4b52db){const _0x41d264=_0x1462ad,_0x258fa0=_0x4b52db[_0x41d264];if('paginationLicenseKeyValid'==_0x258fa0||'paginationLicenseKeyInvalid'==_0x258fa0||'paginationLicenseKeyExpired'==_0x258fa0||'paginationLicenseKeyDomainLimit'==_0x258fa0||'paginationLicenseKeyNotAllowed'==_0x258fa0||'paginationLicenseKeyEvaluationLimit'==_0x258fa0||'paginationLicenseKeyUsageLimit'==_0x258fa0){delete _0x4b52db[_0x41d264],_0x22e898=_0x258fa0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x22e898&&_0x4b52db['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x22e898&&_0x4b52db['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x22e898&&_0x4b52db['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x22e898&&_0x4b52db['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x22e898&&_0x4b52db['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x22e898&&_0x4b52db['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x1cb85e){this['isEnabled']&&this['editor']['plugins']['get'](cS)['scrollToPage'](this['_validatePageNumber'](_0x1cb85e));}moveSelectionToPage(_0x5f46c0){if(!this['isEnabled'])return;const _0x5a124c=this['editor'],_0x459a70=this['editor']['plugins']['get'](BA)['pageBreaks'][_0x5f46c0-0x1];_0x459a70&&_0x5a124c['model']['change'](_0x6445fe=>{switch(_0x459a70['type']){case'manual':{const _0x3577c6=_0x5a124c['model']['schema']['getNearestSelectionRange'](_0x459a70['modelRange']['end'],'forward');_0x6445fe['setSelection'](_0x3577c6);break;}case'element':{const _0x3b60b6=_0x5a124c['model']['schema']['getNearestSelectionRange'](_0x459a70['modelRange']['start'],'forward');_0x6445fe['setSelection'](_0x3b60b6);break;}case'text':{const _0x31c9d0=_0x459a70['modelRange']['start'];if(_0x31c9d0['textNode']&&'\x20'===_0x31c9d0['textNode']['data'][_0x31c9d0['offset']]){const _0x216547=_0x6445fe['createPositionAt'](_0x31c9d0['parent'],_0x31c9d0['offset']+0x1);_0x6445fe['setSelection'](_0x216547);}else _0x6445fe['setSelection'](_0x459a70['modelRange']);}}_0x5a124c['editing']['view']['focus']();});}goToNextPage(){const _0x2ce930=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x2ce930),this['scrollToPage'](_0x2ce930);}['goToPreviousPage'](){const _0x176eeb=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x176eeb),this['scrollToPage'](_0x176eeb);}_updatePageBreakMarkers(_0x316dec,_0x379384){const _0x488f66=this['editor']['model'];this['isEnabled']&&_0x488f66['change'](_0x29719b=>{for(let _0x1c47dd=0x1;_0x1c47dd<_0x316dec['length'];_0x1c47dd++){const _0x756d22=_0x316dec[_0x1c47dd]['modelRange'],_0x5aed7e='pagination:'+(_0x1c47dd+0x1);_0x488f66['markers']['has'](_0x5aed7e)?_0x29719b['updateMarker'](_0x5aed7e,{'range':_0x756d22}):_0x29719b['addMarker'](_0x5aed7e,{'range':_0x756d22,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x22f17e=_0x316dec['length'];_0x22f17e<_0x379384['length'];_0x22f17e++){const _0x1bbbef='pagination:'+(_0x22f17e+0x1);_0x488f66['markers']['has'](_0x1bbbef)&&_0x29719b['removeMarker'](_0x1bbbef);}});}_setUpDataDowncastConversion(){this['editor']['conversion']['for']('dataDowncast')['add'](_0x2547da=>{_0x2547da['on']('addMarker:pagination',(_0x379060,{markerRange:_0x21cbfc,markerName:_0x4939ec},_0x2a1576)=>{if(!_0x2a1576['options']['pagination'])return;if(!_0x2a1576['consumable']['consume'](_0x21cbfc,_0x379060['name']))return;const _0x1d0072=_0x21cbfc['getContainedElement']();let _0x4e49e4=_0x1d0072?_0x2a1576['mapper']['toViewElement'](_0x1d0072):null;if(!_0x4e49e4){const _0x5074f2=_0x21cbfc['start'];if(_0x2a1576['schema']['checkChild'](_0x5074f2,'$text')){const _0x54e752=_0x2a1576['mapper']['toViewPosition'](_0x5074f2);_0x4e49e4=_0x2a1576['writer']['createContainerElement']('span'),_0x4e49e4['getFillerOffset']=()=>null,_0x2a1576['writer']['insert'](_0x54e752,_0x4e49e4);}else{const _0x598d45=_0x5074f2['nodeAfter'];_0x4e49e4=_0x2a1576['mapper']['toViewElement'](_0x598d45);}}for(;_0x4e49e4['parent']!==_0x4e49e4['root']&&0x0===_0x4e49e4['index'];)_0x4e49e4=_0x4e49e4['parent'];const _0x51721f=_0x4939ec['substring'](0xb);_0x4e49e4['hasClass']('page-break')||(_0x2a1576['writer']['setStyle']('page-break-before','always',_0x4e49e4),_0x2a1576['writer']['setAttribute']('data-pagination-page',_0x51721f,_0x4e49e4),_0x2a1576['mapper']['bindElementToMarker'](_0x4e49e4,_0x4939ec)),_0x379060['stop']();});});}_setupKeystrokes(){const _0x2a480d=this['editor'];_0x2a480d['keystrokes']['set']('Shift+Pageup',(_0x263034,_0x485483)=>{this['goToPreviousPage'](),_0x485483();}),_0x2a480d['keystrokes']['set']('Shift+Pagedown',(_0x566f4c,_0x1f6a27)=>{this['goToNextPage'](),_0x1f6a27();}),_0x2a480d['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':lS(_0x2a480d['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':lS(_0x2a480d['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':lS(_0x2a480d['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}_validatePageNumber(_0x29291e){return _0x29291e<0x1&&(_0x29291e=0x1),_0x29291e>this['totalPages']&&(_0x29291e=this['totalPages']),_0x29291e;}},uS=class extends _0x2f6e1a{['pageNumberView'];constructor(_0x2c89d7){super(_0x2c89d7);const _0x1e56d4=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x26d5ed(_0x2c89d7,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x115c09=>lS(_0x2c89d7,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x115c09)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x1c6d13=>!_0x1c6d13),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x1e56d4['if']('isEnabled','ck-disabled',_0x161807=>!_0x161807)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x1e56d4['to']('totalPages')}]}]});}['render'](){super['render']();const _0x34d445=this['pageNumberView']['element'],_0x19ec15=_0x15c964=>{this['pageNumberView']['element']['value']=String(_0x15c964);};_0x19ec15(this['pageNumber']),this['on']('change:pageNumber',(_0xe0fdf4,_0x591d05,_0x44be4e)=>{_0x19ec15(_0x44be4e);}),this['listenTo'](_0x34d445,'keydown',(_0xd124ff,_0x4c1a8c)=>{if('ArrowUp'===_0x4c1a8c['key']||'ArrowDown'===_0x4c1a8c['key'])return void _0x4c1a8c['stopPropagation']();if(_0x4c1a8c['keyCode']!==_0x4ebb29['enter'])return;_0x4c1a8c['preventDefault']();const _0x5bb575=_0x34d445['valueAsNumber'];Number['isNaN'](_0x5bb575)?_0x34d445['value']=String(this['pageNumber']):(_0x34d445['checkValidity']()?this['pageNumber']=_0x5bb575:_0x5bb575>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x34d445['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x34d445['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x34d445,'blur',()=>{_0x34d445['value']=String(this['pageNumber']);}),this['listenTo'](_0x34d445,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['pageNumberView']['element']['focus']();}},dS=class extends _0x11fe30{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x47c323=this['editor'],_0x27e5a2=_0x47c323['plugins']['get']('PaginationEditing');_0x47c323['ui']['componentFactory']['add']('pageNavigation',_0x11e05d=>{const _0x3b8520=new uS(_0x11e05d);return _0x3b8520['bind']('pageNumber')['to'](_0x27e5a2),_0x3b8520['bind']('totalPages')['to'](_0x27e5a2),_0x3b8520['bind']('isEnabled')['to'](_0x27e5a2),_0x3b8520['on']('navigation',(_0x161082,_0x2843d7)=>{_0x27e5a2['moveSelectionToPage'](_0x2843d7),_0x27e5a2['scrollToPage'](_0x2843d7);}),_0x3b8520;}),_0x47c323['ui']['componentFactory']['add']('nextPage',_0x1878d5=>{const _0x4a4b5b=new _0x39ae99(_0x1878d5);return _0x4a4b5b['isEnabled']=!0x0,_0x4a4b5b['label']=lS(_0x47c323['locale'],'Go\x20to\x20next\x20page'),_0x4a4b5b['icon']=_0xa9f245,_0x4a4b5b['tooltip']=!0x0,_0x4a4b5b['keystroke']='Shift+PageDown',_0x4a4b5b['bind']('isEnabled')['to'](_0x27e5a2),this['listenTo'](_0x4a4b5b,'execute',()=>{_0x27e5a2['goToNextPage']();}),_0x4a4b5b;}),_0x47c323['ui']['componentFactory']['add']('previousPage',_0x3242e6=>{const _0x5cd5f7=new _0x39ae99(_0x3242e6);return _0x5cd5f7['isEnabled']=!0x0,_0x5cd5f7['label']=lS(_0x47c323['locale'],'Go\x20to\x20previous\x20page'),_0x5cd5f7['icon']=_0x468a96,_0x5cd5f7['tooltip']=!0x0,_0x5cd5f7['keystroke']='Shift+PageUp',_0x5cd5f7['bind']('isEnabled')['to'](_0x27e5a2),this['listenTo'](_0x5cd5f7,'execute',()=>{_0x27e5a2['goToPreviousPage']();}),_0x5cd5f7;});}},fS=class extends _0x11fe30{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[hS,dS];}constructor(_0x26fb32){super(_0x26fb32),this['isEnabled']=!0x1;}init(){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x159cc5=this['editor']['plugins']['get'](hS);this['bind']('pageNumber')['to'](_0x159cc5),this['bind']('totalPages')['to'](_0x159cc5),_0x5a4d25['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x28337c){this['editor']['plugins']['get'](hS)['scrollToPage'](_0x28337c);}};const mS=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function pS(_0xfb4c42){return mS['test'](_0xfb4c42);}const gS=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function OS(_0x1ca588,_0xf443e7){const _0x54fed5=new Map();for(const [_0x5debf5,_0x8e73fb]of _0xf443e7){if(!_0x5debf5['tagName']&&!_0x5debf5['className'])continue;const _0x3da047=!_0x5debf5['tagName']||_0x1ca588['name']===_0x5debf5['tagName'],_0x56645e=!_0x5debf5['className']||_0x1ca588['hasClass'](_0x5debf5['className']);_0x3da047&&_0x56645e&&_0x54fed5['set'](_0x5debf5,_0x8e73fb);}return _0x54fed5;}function wS(_0x2c73b7){const _0x1899db={};for(let _0x2fe41e=0x0;_0x2fe41e<_0x2c73b7['length'];_0x2fe41e++){const _0x4231c7=_0x2c73b7[_0x2fe41e],_0x57e9c8=_0x2c73b7['getPropertyValue'](_0x4231c7);'initial'!==_0x57e9c8&&(_0x1899db[_0x4231c7]=_0x57e9c8);}return _0x1899db;}function bS(_0x4baa0a){const _0x213c3e=_0x4baa0a['split'](',')['map'](_0x3de2d6=>_0x3de2d6['trim']()),_0x2ac63e=[];for(const _0x3654cb of _0x213c3e){const _0x366727=gS['exec'](_0x3654cb);_0x366727&&_0x2ac63e['push'](_0x366727['groups']);}return _0x2ac63e;}function yS(_0xa0a691){const _0x2add68={};for(const _0x4f757b of _0xa0a691)Object['assign'](_0x2add68,_0x4f757b);return _0x2add68;}var vS=class extends _0x4b93a1{execute(_0x1f0526){const {styles:_0x3a8229,stylesString:_0x75de4e}=_0x1f0526['extraContent'],_0x2a58df=new _0x138c8c(_0x1f0526['content']['document']),_0x278664=_0x2a58df['createRangeIn'](_0x1f0526['content']),_0x3f7541=function(_0x2d3484){const _0x5a865f=new Map();for(const _0x48bd8a in _0x2d3484){const _0x3db169=bS(_0x48bd8a),_0x5cf812=_0x2d3484[_0x48bd8a];for(const _0x11b476 of _0x3db169)_0x5a865f['set'](_0x11b476,_0x5cf812);}return _0x5a865f;}(function(_0x4f5e0f){const _0x473403={};for(const _0x501150 of _0x4f5e0f)for(const _0x1c70ed of _0x501150['cssRules'])if(_0x1c70ed instanceof CSSStyleRule){const _0x1f71de=wS(_0x1c70ed['style']);_0x473403[_0x1c70ed['selectorText']]=Object['assign']({},_0x473403[_0x1c70ed['selectorText']]||{},_0x1f71de);}return _0x473403;}(_0x3a8229)),_0x580e73=function(_0x59fb53){const _0x4897e0={},_0x169c8e=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x2b7d5d=/\.(?<className>[\w-]+)/g;let _0x4438be;for(;null!==(_0x4438be=_0x169c8e['exec'](_0x59fb53));){const {selector:_0x3dc96e,color:_0x52ff63,patternType:_0x3cb64a}=_0x4438be['groups'];if('auto'!==_0x52ff63['toLowerCase']()&&'none'!==_0x3cb64a['toLowerCase']()&&'auto'!==_0x3cb64a['toLowerCase']()){for(const _0x58a682 of _0x3dc96e['matchAll'](_0x2b7d5d))_0x4897e0[_0x58a682['groups']['className']]=_0x52ff63;}}return _0x4897e0;}(_0x75de4e);for(const _0x2b64b7 of _0x278664){if('elementStart'!==_0x2b64b7['type'])continue;const _0x1b4441=_0x2b64b7['item'],_0x40d17b=OS(_0x1b4441,_0x3f7541),_0x14bacd=_0x40d17b['size']?yS(Array['from'](_0x40d17b['values']())):{};if(!('background-color'in _0x14bacd)&&!('background'in _0x14bacd)){for(const [_0x49b84a,_0x2733eb]of Object['entries'](_0x580e73))if(_0x1b4441['hasClass'](_0x49b84a)){_0x14bacd['background-color']=_0x2733eb;break;}}for(const _0x4d312a in _0x14bacd)_0x1b4441['hasStyle'](_0x4d312a)||_0x2a58df['setStyle'](_0x4d312a,_0x14bacd[_0x4d312a],_0x1b4441);}}isActive(_0x900b38){return super['isActive'](_0x900b38)||pS(_0x900b38);}},_S=class extends _0x11fe30{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x57a742];}init(){const _0x20ee58=this['editor'],_0x5f581a=_0x20ee58['plugins']['get']('PasteFromOffice'),_0xdf13d3=_0x20ee58['editing']['view']['document'],_0x554e1e=new vS(_0xdf13d3);_0x5f581a['registerNormalizer'](_0x554e1e,_0x1a573c['high']+0xb);}afterInit(){!async function(_0x179c0f){const _0x15b743='sG65Crk1cd2igLN7zIEAYju9J3hbPBtnFMxQf4HwZal0qTSVKyDmoRvUXepWO8',_0x4be189=0x791d0,_0x3c78e=window['Date']['now'](),_0x2d6b42=_0x179c0f['editor'],_0x509072=new window['Promise'](_0x11162d=>{_0x2d6b42['once']('ready',_0x11162d);}),_0x1c382c={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x2dab0f=_0x2d6b42['config']['get']('licenseKey');async function _0x649226(){let _0x3ee7a7,_0x69ac29=null,_0x5d4ff6=null;try{return'GPL'==_0x2dab0f?'NotAllowed':(_0x3ee7a7=_0x4f5130(),_0x3ee7a7?(_0x3ee7a7['usageEndpoint']&&(_0x5d4ff6=_0x252a83(_0x3ee7a7['usageEndpoint'],_0x3ee7a7['jti'])),await _0x46d4f3()?_0x110923()?_0x5c5806()?'Expired':_0x8e9ad2()?('evaluation'==_0x3ee7a7['licenseType']&&(_0x69ac29=_0x467dc7('EvaluationLimit')),await _0x12df20()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x5c5806(){const _0x2c5d23=['evaluation','trial']['includes'](_0x3ee7a7['licenseType'])?_0x3c78e/0x3e8:0xe10*_0x4be189;return _0x3ee7a7['exp']<_0x2c5d23;}function _0x110923(){const _0x2d8bd6=_0x3ee7a7['features'];return!!_0x2d8bd6&&(!!_0x2d8bd6['includes']('*')||(!!_0x2d8bd6['includes']('POE')||(!!_0x2d8bd6['includes']('PP')||!(!_0x2d8bd6['includes']('TRILIUM')||!_0x19f845()))));}function _0x8e9ad2(){const _0x1b24b1=_0x3ee7a7['licensedHosts'];if(!_0x1b24b1||0x0==_0x1b24b1['length'])return!0x0;const {hostname:_0x223244}=new URL(window['location']['href']);if(_0x1b24b1['includes'](_0x223244))return!0x0;const _0x4b3f60=_0x223244['split']('.');return _0x1b24b1['filter'](_0x382473=>_0x382473['includes']('*'))['map'](_0x3bb78d=>_0x3bb78d['split']('.'))['filter'](_0x21eb50=>_0x21eb50['length']<=_0x4b3f60['length'])['map'](_0xe17b99=>Array(_0x4b3f60['length']-_0xe17b99['length'])['fill']('*'===_0xe17b99[0x0]?'*':'')['concat'](_0xe17b99))['some'](_0x2f755b=>_0x4b3f60['every']((_0xa913d5,_0x34d891)=>_0x2f755b[_0x34d891]===_0xa913d5||'*'===_0x2f755b[_0x34d891]));}function _0x12df20(){return _0x69ac29&&_0x5d4ff6?new window['Promise']((_0x197893,_0x58108b)=>{_0x69ac29['then'](_0x197893,_0x58108b),_0x5d4ff6['then'](_0x1fb137=>{'Valid'!=_0x1fb137&&_0x197893(_0x1fb137);},_0x58108b);}):_0x69ac29||_0x5d4ff6||'Valid';}}function _0x252a83(_0x5d6715,_0x20bf4e){return new window['Promise'](_0x47515e=>{if(_0x332823())return _0x47515e('Valid');_0xbfd216(),_0x2d6b42['decorate']('_sendUsageRequest');let _0x26bd01=!0x1;const _0x52b9a0=_0xea66bb();function _0x34adfd(_0x55567b){return!!_0x55567b&&('object'==typeof _0x55567b||'function'==typeof _0x55567b)&&'function'==typeof _0x55567b['then']&&'function'==typeof _0x55567b['catch'];}function _0x39a8ab(_0x40622a){_0x2afe47(_0x40622a)['then'](_0x43a323=>_0x43a323&&'ok'==_0x43a323['status']?_0x488922(_0x506abf(_0x52b9a0+_0x20bf4e))!=_0x43a323['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x3a6bba=>(_0x54d319(),_0x3a6bba),()=>{const _0x569766=_0x2742dc();return null==_0x569766?(_0x54d319(),'Valid'):_0x3c78e-_0x569766>0x240c8400?'UsageLimit':'Valid';})['then'](_0x47515e)['catch'](()=>{_0x47515e('UsageLimit');});const _0xfed62a=0x36ee80;function _0x54d319(){const _0x25e9bd='llct-'+_0x488922(_0x506abf(_0x5d6715)),_0x3cb0d6=_0x1b0a32(_0x488922(window['Math']['ceil'](_0x3c78e/_0xfed62a)));window['localStorage']['setItem'](_0x25e9bd,_0x3cb0d6);}function _0x2742dc(){const _0xb41aee='llct-'+_0x488922(_0x506abf(_0x5d6715)),_0x6226d6=window['localStorage']['getItem'](_0xb41aee);return _0x6226d6?window['parseInt'](_0x1b0a32(_0x6226d6),0x10)*_0xfed62a:null;}function _0x2afe47(_0x14db3f){return new window['Promise']((_0x14d235,_0x3b7c0c)=>{_0x14db3f['then'](_0x14d235,_0x3b7c0c),window['setTimeout'](_0x3b7c0c,0x1d4c0);});}}_0x2d6b42['on']('_sendUsageRequest',(_0x367869,_0x3ef1bb)=>{if(_0x3ef1bb[0x0]!=_0x5d6715)return _0x47515e('UsageLimit');_0x3ef1bb[0x1]={..._0x3ef1bb[0x1],'requestId':_0x52b9a0};},{'priority':'high'}),_0x2d6b42['on']('_sendUsageRequest',_0x98c3df=>{_0x34adfd(_0x98c3df['return'])&&(_0x26bd01=!0x0,_0x39a8ab(_0x98c3df['return']));},{'priority':'low'}),_0x509072['then'](()=>{_0x26bd01||_0x47515e('UsageLimit');});});function _0x332823(){return'auto'==_0x2d6b42['editing']['view']['_overlayModeHint'];}function _0xbfd216(){_0x2d6b42['editing']['view']['_overlayModeHint']='auto';}}function _0x467dc7(_0x2e93e7){const _0x368062=[new window['Promise'](_0x17cd4c=>setTimeout(_0x17cd4c,0x93ecc)),_0x509072['then'](()=>new window['Promise'](_0xb4e222=>{let _0x581248=0x0;_0x2d6b42['model']['on']('applyOperation',(_0x2845fc,_0x49da24)=>{_0x49da24[0x0]['isDocumentOperation']&&_0x581248++,0x5e8==_0x581248&&(_0xb4e222(),_0x2845fc['off']());});}))];return window['Promise']['race'](_0x368062)['then'](()=>_0x2e93e7);}async function _0x3798c3(){await _0x509072,_0x2d6b42['model']['change']=_0x6b3ef6,_0x2d6b42['model']['enqueueChange']=_0x6b3ef6,_0x2d6b42['enableReadOnlyMode']('model');}function _0x19f845(){return window['glob']&&window['glob']['triliumVersion'];}function _0x11d9e6(_0x23d808){const _0x307cab=_0x3e6077();_0x2d6b42[_0x307cab]='pasteFromOfficeEnhancedLicenseKey'+_0x23d808,'Valid'!=_0x23d808&&_0x3798c3();}function _0x3e6077(){const _0x25c823=window['String'](window['performance']['now']())['replace']('.','');let _0x1ddc90='s';for(let _0xa4b7c3=0x0;_0xa4b7c3<_0x25c823['length'];_0xa4b7c3+=0x2){let _0x220cad=window['parseInt'](_0x25c823['substring'](_0xa4b7c3,_0xa4b7c3+0x2));_0x220cad>=0x3e&&(_0x220cad-=0x3e),_0x1ddc90+=_0x15b743[_0x220cad];}return _0x1ddc90;}function _0x4f5130(){const _0x28817a=_0x2dab0f['split']('.');if(0x3!=_0x28817a['length'])return null;return _0x319887(_0x28817a[0x1]);function _0x319887(_0x5a74f2){const _0x312cd7=_0x52a264(_0x5a74f2);return _0x312cd7&&_0x904cb0()?_0x312cd7:null;function _0x904cb0(){const _0x7a8c13=_0x312cd7['jti'],_0x1ce495=window['parseInt'](_0x7a8c13['substring'](_0x7a8c13['length']-0x8),0x10),_0x31b370={..._0x312cd7,'jti':_0x7a8c13['substring'](0x0,_0x7a8c13['length']-0x8)};return delete _0x31b370['vc'],_0x506abf(_0x31b370)==_0x1ce495;}}}async function _0x46d4f3(){let _0x4f80e5=!0x0;try{const [_0x2717ad,_0x5c68c5,_0x22993a]=_0x2dab0f['split']('.');return _0x3686d5(_0x2717ad),await _0x5908e7(_0x2717ad,_0x5c68c5,_0x22993a),_0x4f80e5;}catch{return!0x1;}function _0x3686d5(_0x4f1f6f){const _0x3281fa=_0x52a264(_0x4f1f6f);_0x3281fa&&'ES256'==_0x3281fa['alg']||(_0x4f80e5=!0x1);}async function _0x5908e7(_0x3d24ee,_0x3d5096,_0x402905){const _0x360e2f=window['Uint8Array']['from'](_0x27d402(_0x402905),_0x5d2a98=>_0x5d2a98['charCodeAt'](0x0)),_0x24dd2e=new window['TextEncoder']()['encode'](_0x3d24ee+'.'+_0x3d5096),_0x5781e7=window['crypto']['subtle'];if(!_0x5781e7)return;const _0xf7d0fa=await _0x5781e7['importKey']('jwk',_0x1c382c,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5781e7['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0xf7d0fa,_0x360e2f,_0x24dd2e)||(_0x4f80e5=!0x1);}}function _0x52a264(_0x87681e){return _0x87681e['startsWith']('ey')?JSON['parse'](_0x27d402(_0x87681e)):null;}function _0x27d402(_0x578cda){return window['atob'](_0x578cda['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x506abf(_0x4a6775){let _0x21b9f2=0x1505;function _0x4fa964(_0x1102e4){for(let _0x5539be=0x0;_0x5539be<_0x1102e4['length'];_0x5539be++){const _0x48759f=_0x1102e4['charCodeAt'](_0x5539be);_0x21b9f2=(_0x21b9f2<<0x5)+_0x21b9f2+_0x48759f,_0x21b9f2&=_0x21b9f2;}}function _0x1efcdb(_0x420bd4){Array['isArray'](_0x420bd4)?_0x420bd4['forEach'](_0x1efcdb):_0x420bd4&&'object'==typeof _0x420bd4?Object['entries'](_0x420bd4)['sort']()['forEach'](([_0x50bf3f,_0x271fd0])=>{_0x4fa964(_0x50bf3f),_0x1efcdb(_0x271fd0);}):_0x4fa964(window['String'](_0x420bd4));}return _0x1efcdb(_0x4a6775),_0x21b9f2>>>0x0;}function _0x488922(_0x595e15){return _0x595e15['toString'](0x10)['padStart'](0x8,'0');}function _0x1b0a32(_0xd7feb4){return _0xd7feb4['split']('')['reverse']()['join']('');}function _0x6b3ef6(){}_0x11d9e6(await _0x649226());}(this);}};const ES=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],TS=['color','font-family','font-size'],AS={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x1f12c8=>Number(_0x1f12c8)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function SS(_0x1d08ef){return ES['includes'](_0x1d08ef);}function IS(_0x4c54cf){return Array['from'](_0x4c54cf['getStyleNames']())['filter'](SS);}function kS(_0xab8d4c,_0x249e09,_0x1577e8){const {spanStyles:_0x4a52c1,stylesToBeHtmlElements:_0x4bca73}=CS(_0xab8d4c,_0x1577e8);!function(_0x2e8c9a,_0x3eb120,_0x50b105){for(const _0x4afe68 in _0x50b105)_0x50b105[_0x4afe68]['forEach'](([,_0x1cba20])=>{const _0x39f8d4=_0x3eb120['createElement'](_0x1cba20,[],_0x2e8c9a['getChildren']());_0x3eb120['insertChild'](0x0,_0x39f8d4,_0x2e8c9a);}),_0x3eb120['removeStyle'](_0x4afe68,_0x2e8c9a);}(_0xab8d4c,_0x249e09,_0x4bca73),function(_0x5b7d36,_0x272412,_0x58c822){if(!Object['keys'](_0x58c822)['length'])return;const _0x16e98f=_0x272412['createElement']('span',[],_0x5b7d36['getChildren']());_0x272412['setStyle'](_0x58c822,_0x16e98f),_0x272412['insertChild'](0x0,_0x16e98f,_0x5b7d36),_0x272412['removeStyle'](Object['keys'](_0x58c822),_0x5b7d36);}(_0xab8d4c,_0x249e09,_0x4a52c1);}function xS(_0x127fa9,_0x2931f2,_0x5762c0){const {spanStyles:_0x28bef8}=CS(_0x127fa9,_0x5762c0),_0x3f02a7=Object['keys'](_0x28bef8);if(!_0x3f02a7['length'])return;let _0x5785dc=!0x1;for(const _0xbfc87c of _0x127fa9['getChildren']())if(_0xbfc87c['is']('element','span')){_0x5785dc=!0x0;for(const [_0x3b418e,_0x2b0868]of Object['entries'](_0x28bef8))_0xbfc87c['hasStyle'](_0x3b418e)||_0x2931f2['setStyle']({[_0x3b418e]:_0x2b0868},_0xbfc87c);}_0x5785dc&&_0x2931f2['removeStyle'](_0x3f02a7,_0x127fa9);}function CS(_0x5ea371,_0x1d4468){const _0x39c91d={},_0x34d851={};return _0x1d4468['forEach'](_0x586292=>{const _0xf0e329=_0x5ea371['getStyle'](_0x586292);if(_0xf0e329){if(function(_0x6bc25b){return TS['includes'](_0x6bc25b);}(_0x586292))_0x39c91d[_0x586292]=_0xf0e329;else{if(function(_0x4318a2){return _0x4318a2 in AS;}(_0x586292)){const _0x445fd5=_0xf0e329['split']('\x20');AS[_0x586292]['forEach'](([_0x7235e3,_0x217688])=>{for(const _0xac5e0 of _0x445fd5)('function'==typeof _0x7235e3&&_0x7235e3(_0xac5e0)||_0x7235e3===_0xac5e0)&&(_0x34d851[_0x586292]=[..._0x34d851[_0x586292]||[],[_0x7235e3,_0x217688]]);});}}}}),{'spanStyles':_0x39c91d,'stylesToBeHtmlElements':_0x34d851};}var RS=class extends _0x4b93a1{execute(_0x13888c){const _0xa04238=new _0x138c8c(_0x13888c['content']['document']),_0x57ce0f=_0xa04238['createRangeIn'](_0x13888c['content']),_0x1877de=[...new _0x59df35(new _0x2de006(_0xa04238['document']['stylesProcessor']))['blockElements'],'font'],_0x4a267c=_0x57ce0f['getItems']();for(const _0x270071 of _0x4a267c)if(_0x270071['is']('element')&&_0x1877de['includes'](_0x270071['name'])){if(_0x270071['hasStyle']('mso-list')&&'none'!==_0x270071['getStyle']('mso-list')){xS(_0x270071,_0xa04238,IS(_0x270071));continue;}kS(_0x270071,_0xa04238,IS(_0x270071));}}isActive(_0x682ea5){return super['isActive'](_0x682ea5)||pS(_0x682ea5);}},PS=class extends _0x11fe30{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x57a742];}init(){const _0x44da3e=this['editor'],_0xa85a9f=_0x44da3e['plugins']['get']('PasteFromOffice'),_0x289189=_0x44da3e['editing']['view']['document'],_0x12fca1=new RS(_0x289189);_0xa85a9f['registerNormalizer'](_0x12fca1,_0x1a573c['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5d3383=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x43fc49;for(const _0xde6ba3 in _0x5d3383){const _0x2289ea=_0xde6ba3,_0x318c90=_0x5d3383[_0x2289ea];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x318c90||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x318c90||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x318c90||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x318c90||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x318c90||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x318c90||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x318c90){delete _0x5d3383[_0x2289ea],_0x43fc49=_0x318c90,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x43fc49&&_0x5d3383['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x43fc49&&_0x5d3383['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x43fc49&&_0x5d3383['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x43fc49&&_0x5d3383['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x43fc49&&_0x5d3383['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x43fc49&&_0x5d3383['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},NS=class extends _0x11fe30{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x57a742,_S,PS];}},MS=Yn((_0x20a803,_0x5a8204)=>{_0x5a8204['exports']=function(_0x211304,_0x2f6b39){var _0x284d03=new Array(arguments['length']-0x1),_0x452381=0x0,_0x4cd521=0x2,_0x4b70fe=!0x0;for(;_0x4cd521<arguments['length'];)_0x284d03[_0x452381++]=arguments[_0x4cd521++];return new Promise(function(_0x2c72ad,_0x4071ce){_0x284d03[_0x452381]=function(_0x6fb639){if(_0x4b70fe){if(_0x4b70fe=!0x1,_0x6fb639)_0x4071ce(_0x6fb639);else{for(var _0x2031ed=new Array(arguments['length']-0x1),_0xff9d79=0x0;_0xff9d79<_0x2031ed['length'];)_0x2031ed[_0xff9d79++]=arguments[_0xff9d79];_0x2c72ad['apply'](null,_0x2031ed);}}};try{_0x211304['apply'](_0x2f6b39||null,_0x284d03);}catch(_0x13eb26){_0x4b70fe&&(_0x4b70fe=!0x1,_0x4071ce(_0x13eb26));}});};}),LS=Yn(_0x191e9b=>{var _0x53c8bc=_0x191e9b;_0x53c8bc['length']=function(_0x41b2ed){var _0x2a36db=_0x41b2ed['length'];if(!_0x2a36db)return 0x0;for(var _0x218f4f=0x0;--_0x2a36db%0x4>0x1&&'='===_0x41b2ed['charAt'](_0x2a36db);)++_0x218f4f;return Math['ceil'](0x3*_0x41b2ed['length'])/0x4-_0x218f4f;};for(var _0x24ba4c=new Array(0x40),_0x569d8e=new Array(0x7b),_0x5a77d6=0x0;_0x5a77d6<0x40;)_0x569d8e[_0x24ba4c[_0x5a77d6]=_0x5a77d6<0x1a?_0x5a77d6+0x41:_0x5a77d6<0x34?_0x5a77d6+0x47:_0x5a77d6<0x3e?_0x5a77d6-0x4:_0x5a77d6-0x3b|0x2b]=_0x5a77d6++;_0x53c8bc['encode']=function(_0x3f42e9,_0x3bc7f2,_0x3010e6){for(var t,_0x29c268=null,_0x23845e=[],_0x145e44=0x0,_0x23e16b=0x0;_0x3bc7f2<_0x3010e6;){var _0x1461e2=_0x3f42e9[_0x3bc7f2++];switch(_0x23e16b){case 0x0:_0x23845e[_0x145e44++]=_0x24ba4c[_0x1461e2>>0x2],t=(0x3&_0x1461e2)<<0x4,_0x23e16b=0x1;break;case 0x1:_0x23845e[_0x145e44++]=_0x24ba4c[t|_0x1461e2>>0x4],t=(0xf&_0x1461e2)<<0x2,_0x23e16b=0x2;break;case 0x2:_0x23845e[_0x145e44++]=_0x24ba4c[t|_0x1461e2>>0x6],_0x23845e[_0x145e44++]=_0x24ba4c[0x3f&_0x1461e2],_0x23e16b=0x0;}_0x145e44>0x1fff&&((_0x29c268||(_0x29c268=[]))['push'](String['fromCharCode']['apply'](String,_0x23845e)),_0x145e44=0x0);}return _0x23e16b&&(_0x23845e[_0x145e44++]=_0x24ba4c[t],_0x23845e[_0x145e44++]=0x3d,0x1===_0x23e16b&&(_0x23845e[_0x145e44++]=0x3d)),_0x29c268?(_0x145e44&&_0x29c268['push'](String['fromCharCode']['apply'](String,_0x23845e['slice'](0x0,_0x145e44))),_0x29c268['join']('')):String['fromCharCode']['apply'](String,_0x23845e['slice'](0x0,_0x145e44));};var _0x1d736e='invalid\x20encoding';_0x53c8bc['decode']=function(_0x3be6f4,_0x29054e,_0x4f9075){for(var t,_0x5b7e65=_0x4f9075,_0x5fa14d=0x0,_0x504030=0x0;_0x504030<_0x3be6f4['length'];){var _0x241a94=_0x3be6f4['charCodeAt'](_0x504030++);if(0x3d===_0x241a94&&_0x5fa14d>0x1)break;if(void 0x0===(_0x241a94=_0x569d8e[_0x241a94]))throw Error(_0x1d736e);switch(_0x5fa14d){case 0x0:t=_0x241a94,_0x5fa14d=0x1;break;case 0x1:_0x29054e[_0x4f9075++]=t<<0x2|(0x30&_0x241a94)>>0x4,t=_0x241a94,_0x5fa14d=0x2;break;case 0x2:_0x29054e[_0x4f9075++]=(0xf&t)<<0x4|(0x3c&_0x241a94)>>0x2,t=_0x241a94,_0x5fa14d=0x3;break;case 0x3:_0x29054e[_0x4f9075++]=(0x3&t)<<0x6|_0x241a94,_0x5fa14d=0x0;}}if(0x1===_0x5fa14d)throw Error(_0x1d736e);return _0x4f9075-_0x5b7e65;},_0x53c8bc['test']=function(_0x30c380){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/['test'](_0x30c380);};}),$S=Yn((_0x1cb746,_0x1b9ff4)=>{function _0x66cdb9(){this['_listeners']=Object['create'](null);}_0x1b9ff4['exports']=_0x66cdb9,_0x66cdb9['prototype']['on']=function(_0x1ea060,_0x55d0e3,_0x4732cb){return(this['_listeners'][_0x1ea060]||(this['_listeners'][_0x1ea060]=[]))['push']({'fn':_0x55d0e3,'ctx':_0x4732cb||this}),this;},_0x66cdb9['prototype']['off']=function(_0x297872,_0x500e2c){if(void 0x0===_0x297872)this['_listeners']=Object['create'](null);else{if(void 0x0===_0x500e2c)this['_listeners'][_0x297872]=[];else{var _0xe08640=this['_listeners'][_0x297872];if(!_0xe08640)return this;for(var _0x3e1205=0x0;_0x3e1205<_0xe08640['length'];)_0xe08640[_0x3e1205]['fn']===_0x500e2c?_0xe08640['splice'](_0x3e1205,0x1):++_0x3e1205;}}return this;},_0x66cdb9['prototype']['emit']=function(_0x476386){var _0x489ddb=this['_listeners'][_0x476386];if(_0x489ddb){for(var _0x405fdb=[],_0x16b612=0x1;_0x16b612<arguments['length'];)_0x405fdb['push'](arguments[_0x16b612++]);for(_0x16b612=0x0;_0x16b612<_0x489ddb['length'];)_0x489ddb[_0x16b612]['fn']['apply'](_0x489ddb[_0x16b612++]['ctx'],_0x405fdb);}return this;};}),DS=Yn((_0x934fbc,_0x2f2701)=>{function _0x25c3de(_0xe2d8f6){return'undefined'!=typeof Float32Array?(function(){var _0x4b7415=new Float32Array([-0x0]),_0x24239f=new Uint8Array(_0x4b7415['buffer']),_0xc9726c=0x80===_0x24239f[0x3];function _0x324769(_0x5deac9,_0x56293d,_0x5a8d37){_0x4b7415[0x0]=_0x5deac9,_0x56293d[_0x5a8d37]=_0x24239f[0x0],_0x56293d[_0x5a8d37+0x1]=_0x24239f[0x1],_0x56293d[_0x5a8d37+0x2]=_0x24239f[0x2],_0x56293d[_0x5a8d37+0x3]=_0x24239f[0x3];}function _0x4cf938(_0x32d171,_0x595cd5,_0x187f7a){_0x4b7415[0x0]=_0x32d171,_0x595cd5[_0x187f7a]=_0x24239f[0x3],_0x595cd5[_0x187f7a+0x1]=_0x24239f[0x2],_0x595cd5[_0x187f7a+0x2]=_0x24239f[0x1],_0x595cd5[_0x187f7a+0x3]=_0x24239f[0x0];}function _0x5302f7(_0x244cb6,_0x5d26b9){return _0x24239f[0x0]=_0x244cb6[_0x5d26b9],_0x24239f[0x1]=_0x244cb6[_0x5d26b9+0x1],_0x24239f[0x2]=_0x244cb6[_0x5d26b9+0x2],_0x24239f[0x3]=_0x244cb6[_0x5d26b9+0x3],_0x4b7415[0x0];}function _0x58d990(_0x7e1ec5,_0xe68cc0){return _0x24239f[0x3]=_0x7e1ec5[_0xe68cc0],_0x24239f[0x2]=_0x7e1ec5[_0xe68cc0+0x1],_0x24239f[0x1]=_0x7e1ec5[_0xe68cc0+0x2],_0x24239f[0x0]=_0x7e1ec5[_0xe68cc0+0x3],_0x4b7415[0x0];}_0xe2d8f6['writeFloatLE']=_0xc9726c?_0x324769:_0x4cf938,_0xe2d8f6['writeFloatBE']=_0xc9726c?_0x4cf938:_0x324769,_0xe2d8f6['readFloatLE']=_0xc9726c?_0x5302f7:_0x58d990,_0xe2d8f6['readFloatBE']=_0xc9726c?_0x58d990:_0x5302f7;}()):(function(){function _0x409da3(_0xfb7416,_0x5cabfa,_0x5468c7,_0x3eb0e6){var _0x41e6d8=_0x5cabfa<0x0?0x1:0x0;if(_0x41e6d8&&(_0x5cabfa=-_0x5cabfa),0x0===_0x5cabfa)_0xfb7416(0x1/_0x5cabfa>0x0?0x0:0x80000000,_0x5468c7,_0x3eb0e6);else{if(isNaN(_0x5cabfa))_0xfb7416(0x7fc00000,_0x5468c7,_0x3eb0e6);else{if(_0x5cabfa>0xffffff00000000000000000000000000)_0xfb7416((_0x41e6d8<<0x1f|0x7f800000)>>>0x0,_0x5468c7,_0x3eb0e6);else{if(_0x5cabfa<1.1754943508222875e-38)_0xfb7416((_0x41e6d8<<0x1f|Math['round'](_0x5cabfa/1.401298464324817e-45))>>>0x0,_0x5468c7,_0x3eb0e6);else{var _0x4923b5=Math['floor'](Math['log'](_0x5cabfa)/Math['LN2']);_0xfb7416((_0x41e6d8<<0x1f|_0x4923b5+0x7f<<0x17|0x7fffff&Math['round'](_0x5cabfa*Math['pow'](0x2,-_0x4923b5)*0x800000))>>>0x0,_0x5468c7,_0x3eb0e6);}}}}}function _0x2648b5(_0x2c6df4,_0x3268fe,_0x4a221e){var _0x511830=_0x2c6df4(_0x3268fe,_0x4a221e),_0xe5be37=0x2*(_0x511830>>0x1f)+0x1,_0x397f78=_0x511830>>>0x17&0xff,_0x6a33bb=0x7fffff&_0x511830;return 0xff===_0x397f78?_0x6a33bb?NaN:_0xe5be37*(0x1/0x0):0x0===_0x397f78?1.401298464324817e-45*_0xe5be37*_0x6a33bb:_0xe5be37*Math['pow'](0x2,_0x397f78-0x96)*(_0x6a33bb+0x800000);}_0xe2d8f6['writeFloatLE']=_0x409da3['bind'](null,_0x4fbf09),_0xe2d8f6['writeFloatBE']=_0x409da3['bind'](null,_0x5eb552),_0xe2d8f6['readFloatLE']=_0x2648b5['bind'](null,_0x360b5a),_0xe2d8f6['readFloatBE']=_0x2648b5['bind'](null,_0xdb4b8d);}()),'undefined'!=typeof Float64Array?(function(){var _0x1f3f73=new Float64Array([-0x0]),_0x2f0293=new Uint8Array(_0x1f3f73['buffer']),_0x55ab6c=0x80===_0x2f0293[0x7];function _0x3e049b(_0x40e1f8,_0x2c572d,_0x5e7674){_0x1f3f73[0x0]=_0x40e1f8,_0x2c572d[_0x5e7674]=_0x2f0293[0x0],_0x2c572d[_0x5e7674+0x1]=_0x2f0293[0x1],_0x2c572d[_0x5e7674+0x2]=_0x2f0293[0x2],_0x2c572d[_0x5e7674+0x3]=_0x2f0293[0x3],_0x2c572d[_0x5e7674+0x4]=_0x2f0293[0x4],_0x2c572d[_0x5e7674+0x5]=_0x2f0293[0x5],_0x2c572d[_0x5e7674+0x6]=_0x2f0293[0x6],_0x2c572d[_0x5e7674+0x7]=_0x2f0293[0x7];}function _0x39233f(_0x491159,_0x43c884,_0x4f9463){_0x1f3f73[0x0]=_0x491159,_0x43c884[_0x4f9463]=_0x2f0293[0x7],_0x43c884[_0x4f9463+0x1]=_0x2f0293[0x6],_0x43c884[_0x4f9463+0x2]=_0x2f0293[0x5],_0x43c884[_0x4f9463+0x3]=_0x2f0293[0x4],_0x43c884[_0x4f9463+0x4]=_0x2f0293[0x3],_0x43c884[_0x4f9463+0x5]=_0x2f0293[0x2],_0x43c884[_0x4f9463+0x6]=_0x2f0293[0x1],_0x43c884[_0x4f9463+0x7]=_0x2f0293[0x0];}function _0x130f4b(_0x2b1d53,_0x413c01){return _0x2f0293[0x0]=_0x2b1d53[_0x413c01],_0x2f0293[0x1]=_0x2b1d53[_0x413c01+0x1],_0x2f0293[0x2]=_0x2b1d53[_0x413c01+0x2],_0x2f0293[0x3]=_0x2b1d53[_0x413c01+0x3],_0x2f0293[0x4]=_0x2b1d53[_0x413c01+0x4],_0x2f0293[0x5]=_0x2b1d53[_0x413c01+0x5],_0x2f0293[0x6]=_0x2b1d53[_0x413c01+0x6],_0x2f0293[0x7]=_0x2b1d53[_0x413c01+0x7],_0x1f3f73[0x0];}function _0x55f43b(_0x35a44f,_0x16b744){return _0x2f0293[0x7]=_0x35a44f[_0x16b744],_0x2f0293[0x6]=_0x35a44f[_0x16b744+0x1],_0x2f0293[0x5]=_0x35a44f[_0x16b744+0x2],_0x2f0293[0x4]=_0x35a44f[_0x16b744+0x3],_0x2f0293[0x3]=_0x35a44f[_0x16b744+0x4],_0x2f0293[0x2]=_0x35a44f[_0x16b744+0x5],_0x2f0293[0x1]=_0x35a44f[_0x16b744+0x6],_0x2f0293[0x0]=_0x35a44f[_0x16b744+0x7],_0x1f3f73[0x0];}_0xe2d8f6['writeDoubleLE']=_0x55ab6c?_0x3e049b:_0x39233f,_0xe2d8f6['writeDoubleBE']=_0x55ab6c?_0x39233f:_0x3e049b,_0xe2d8f6['readDoubleLE']=_0x55ab6c?_0x130f4b:_0x55f43b,_0xe2d8f6['readDoubleBE']=_0x55ab6c?_0x55f43b:_0x130f4b;}()):(function(){function _0x3175a5(_0x58d6ea,_0x2726fd,_0x2767c6,_0x4a87ee,_0x2bbb48,_0x138501){var _0xc84e9a=_0x4a87ee<0x0?0x1:0x0;if(_0xc84e9a&&(_0x4a87ee=-_0x4a87ee),0x0===_0x4a87ee)_0x58d6ea(0x0,_0x2bbb48,_0x138501+_0x2726fd),_0x58d6ea(0x1/_0x4a87ee>0x0?0x0:0x80000000,_0x2bbb48,_0x138501+_0x2767c6);else{if(isNaN(_0x4a87ee))_0x58d6ea(0x0,_0x2bbb48,_0x138501+_0x2726fd),_0x58d6ea(0x7ff80000,_0x2bbb48,_0x138501+_0x2767c6);else{if(_0x4a87ee>0xfffffffffffff800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)_0x58d6ea(0x0,_0x2bbb48,_0x138501+_0x2726fd),_0x58d6ea((_0xc84e9a<<0x1f|0x7ff00000)>>>0x0,_0x2bbb48,_0x138501+_0x2767c6);else{var _0x5cd1d4;if(_0x4a87ee<2.2250738585072014e-308)_0x58d6ea((_0x5cd1d4=_0x4a87ee/5e-324)>>>0x0,_0x2bbb48,_0x138501+_0x2726fd),_0x58d6ea((_0xc84e9a<<0x1f|_0x5cd1d4/0x100000000)>>>0x0,_0x2bbb48,_0x138501+_0x2767c6);else{var _0x5e5ab2=Math['floor'](Math['log'](_0x4a87ee)/Math['LN2']);0x400===_0x5e5ab2&&(_0x5e5ab2=0x3ff),_0x58d6ea(0x10000000000000*(_0x5cd1d4=_0x4a87ee*Math['pow'](0x2,-_0x5e5ab2))>>>0x0,_0x2bbb48,_0x138501+_0x2726fd),_0x58d6ea((_0xc84e9a<<0x1f|_0x5e5ab2+0x3ff<<0x14|0x100000*_0x5cd1d4&0xfffff)>>>0x0,_0x2bbb48,_0x138501+_0x2767c6);}}}}}function _0x515e50(_0x4addf8,_0x1075c4,_0x54377d,_0x2be1e6,_0x529e7f){var _0x3d3c3a=_0x4addf8(_0x2be1e6,_0x529e7f+_0x1075c4),_0x1495be=_0x4addf8(_0x2be1e6,_0x529e7f+_0x54377d),_0x412d6b=0x2*(_0x1495be>>0x1f)+0x1,_0x466bf1=_0x1495be>>>0x14&0x7ff,_0xd4314c=0x100000000*(0xfffff&_0x1495be)+_0x3d3c3a;return 0x7ff===_0x466bf1?_0xd4314c?NaN:_0x412d6b*(0x1/0x0):0x0===_0x466bf1?5e-324*_0x412d6b*_0xd4314c:_0x412d6b*Math['pow'](0x2,_0x466bf1-0x433)*(_0xd4314c+0x10000000000000);}_0xe2d8f6['writeDoubleLE']=_0x3175a5['bind'](null,_0x4fbf09,0x0,0x4),_0xe2d8f6['writeDoubleBE']=_0x3175a5['bind'](null,_0x5eb552,0x4,0x0),_0xe2d8f6['readDoubleLE']=_0x515e50['bind'](null,_0x360b5a,0x0,0x4),_0xe2d8f6['readDoubleBE']=_0x515e50['bind'](null,_0xdb4b8d,0x4,0x0);}()),_0xe2d8f6;}function _0x4fbf09(_0x1fc0fe,_0x2c47ef,_0x32b35d){_0x2c47ef[_0x32b35d]=0xff&_0x1fc0fe,_0x2c47ef[_0x32b35d+0x1]=_0x1fc0fe>>>0x8&0xff,_0x2c47ef[_0x32b35d+0x2]=_0x1fc0fe>>>0x10&0xff,_0x2c47ef[_0x32b35d+0x3]=_0x1fc0fe>>>0x18;}function _0x5eb552(_0x38e49d,_0x104dc5,_0x3a90e7){_0x104dc5[_0x3a90e7]=_0x38e49d>>>0x18,_0x104dc5[_0x3a90e7+0x1]=_0x38e49d>>>0x10&0xff,_0x104dc5[_0x3a90e7+0x2]=_0x38e49d>>>0x8&0xff,_0x104dc5[_0x3a90e7+0x3]=0xff&_0x38e49d;}function _0x360b5a(_0x1cdb1a,_0x5a75a4){return(_0x1cdb1a[_0x5a75a4]|_0x1cdb1a[_0x5a75a4+0x1]<<0x8|_0x1cdb1a[_0x5a75a4+0x2]<<0x10|_0x1cdb1a[_0x5a75a4+0x3]<<0x18)>>>0x0;}function _0xdb4b8d(_0x5b5503,_0x470256){return(_0x5b5503[_0x470256]<<0x18|_0x5b5503[_0x470256+0x1]<<0x10|_0x5b5503[_0x470256+0x2]<<0x8|_0x5b5503[_0x470256+0x3])>>>0x0;}_0x2f2701['exports']=_0x25c3de(_0x25c3de);}),QS=Yn(_0x3861d2=>{var _0x7efd4d=_0x3861d2,_0x105e72=0xfffd;_0x7efd4d['length']=function(_0x210422){for(var _0x39c3f9=0x0,_0x2c5a95=0x0,_0x24a64d=0x0;_0x24a64d<_0x210422['length'];++_0x24a64d)(_0x2c5a95=_0x210422['charCodeAt'](_0x24a64d))<0x80?_0x39c3f9+=0x1:_0x2c5a95<0x800?_0x39c3f9+=0x2:0xd800==(0xfc00&_0x2c5a95)&&0xdc00==(0xfc00&_0x210422['charCodeAt'](_0x24a64d+0x1))?(++_0x24a64d,_0x39c3f9+=0x4):_0x39c3f9+=0x3;return _0x39c3f9;},_0x7efd4d['read']=function(_0x985764,_0x485f4d,_0x480237){if(_0x480237-_0x485f4d<0x1)return'';for(var t,_0x1f31fc,_0x3f57ca,_0x165559,_0x16e639=null,_0x261e4c=[],_0x1c9d47=0x0;_0x485f4d<_0x480237;)(t=_0x985764[_0x485f4d++])<=0x7f?_0x261e4c[_0x1c9d47++]=t:t>=0xc0&&t<0xe0?(_0x3f57ca=(0x1f&t)<<0x6|0x3f&_0x985764[_0x485f4d++],_0x261e4c[_0x1c9d47++]=_0x3f57ca>=0x80?_0x3f57ca:_0x105e72):t>=0xe0&&t<0xf0?(_0x165559=(0xf&t)<<0xc|(0x3f&_0x985764[_0x485f4d++])<<0x6|0x3f&_0x985764[_0x485f4d++],_0x261e4c[_0x1c9d47++]=_0x165559>=0x800?_0x165559:_0x105e72):t>=0xf0&&((_0x1f31fc=(0x7&t)<<0x12|(0x3f&_0x985764[_0x485f4d++])<<0xc|(0x3f&_0x985764[_0x485f4d++])<<0x6|0x3f&_0x985764[_0x485f4d++])<0x10000||_0x1f31fc>0x10ffff?_0x261e4c[_0x1c9d47++]=_0x105e72:(_0x1f31fc-=0x10000,_0x261e4c[_0x1c9d47++]=0xd800+(_0x1f31fc>>0xa),_0x261e4c[_0x1c9d47++]=0xdc00+(0x3ff&_0x1f31fc))),_0x1c9d47>0x1fff&&((_0x16e639||(_0x16e639=[]))['push'](String['fromCharCode']['apply'](String,_0x261e4c['slice'](0x0,_0x1c9d47))),_0x1c9d47=0x0);return _0x16e639?(_0x1c9d47&&_0x16e639['push'](String['fromCharCode']['apply'](String,_0x261e4c['slice'](0x0,_0x1c9d47))),_0x16e639['join']('')):String['fromCharCode']['apply'](String,_0x261e4c['slice'](0x0,_0x1c9d47));},_0x7efd4d['write']=function(_0x8f904c,_0x1014e9,_0x1384a4){for(var _0x392534,_0x2fb544,_0x477644=_0x1384a4,_0x4cd43a=0x0;_0x4cd43a<_0x8f904c['length'];++_0x4cd43a)(_0x392534=_0x8f904c['charCodeAt'](_0x4cd43a))<0x80?_0x1014e9[_0x1384a4++]=_0x392534:_0x392534<0x800?(_0x1014e9[_0x1384a4++]=_0x392534>>0x6|0xc0,_0x1014e9[_0x1384a4++]=0x3f&_0x392534|0x80):0xd800==(0xfc00&_0x392534)&&0xdc00==(0xfc00&(_0x2fb544=_0x8f904c['charCodeAt'](_0x4cd43a+0x1)))?(_0x392534=0x10000+((0x3ff&_0x392534)<<0xa)+(0x3ff&_0x2fb544),++_0x4cd43a,_0x1014e9[_0x1384a4++]=_0x392534>>0x12|0xf0,_0x1014e9[_0x1384a4++]=_0x392534>>0xc&0x3f|0x80,_0x1014e9[_0x1384a4++]=_0x392534>>0x6&0x3f|0x80,_0x1014e9[_0x1384a4++]=0x3f&_0x392534|0x80):(_0x1014e9[_0x1384a4++]=_0x392534>>0xc|0xe0,_0x1014e9[_0x1384a4++]=_0x392534>>0x6&0x3f|0x80,_0x1014e9[_0x1384a4++]=0x3f&_0x392534|0x80);return _0x1384a4-_0x477644;};}),jS=Yn((_0x548f64,_0x4acf14)=>{_0x4acf14['exports']=function(_0x1eef32,_0x1b349c,_0x2d9fdf){var _0x4472e6=_0x2d9fdf||0x2000,_0x4a87f0=_0x4472e6>>>0x1,_0x153873=null,_0x1ff9d6=_0x4472e6;return function(_0x4c8573){if(_0x4c8573<0x1||_0x4c8573>_0x4a87f0)return _0x1eef32(_0x4c8573);_0x1ff9d6+_0x4c8573>_0x4472e6&&(_0x153873=_0x1eef32(_0x4472e6),_0x1ff9d6=0x0);var _0x28c157=_0x1b349c['call'](_0x153873,_0x1ff9d6,_0x1ff9d6+=_0x4c8573);return 0x7&_0x1ff9d6&&(_0x1ff9d6=0x1+(0x7|_0x1ff9d6)),_0x28c157;};};}),US=Yn((_0x1516fa,_0x515c17)=>{_0x515c17['exports']=_0x210566;var _0x516c6f=BS();function _0x210566(_0x237e5b,_0x59d305){this['lo']=_0x237e5b>>>0x0,this['hi']=_0x59d305>>>0x0;}var _0x11f2c4=_0x210566['zero']=new _0x210566(0x0,0x0);_0x11f2c4['toNumber']=function(){return 0x0;},_0x11f2c4['zzEncode']=_0x11f2c4['zzDecode']=function(){return this;},_0x11f2c4['length']=function(){return 0x1;};var _0x4b9286=_0x210566['zeroHash']='\x00\x00\x00\x00\x00\x00\x00\x00';_0x210566['fromNumber']=function(_0x242394){if(0x0===_0x242394)return _0x11f2c4;var _0x4541c6=_0x242394<0x0;_0x4541c6&&(_0x242394=-_0x242394);var _0x59bd96=_0x242394>>>0x0,_0x20f4f5=(_0x242394-_0x59bd96)/0x100000000>>>0x0;return _0x4541c6&&(_0x20f4f5=~_0x20f4f5>>>0x0,_0x59bd96=~_0x59bd96>>>0x0,++_0x59bd96>0xffffffff&&(_0x59bd96=0x0,++_0x20f4f5>0xffffffff&&(_0x20f4f5=0x0))),new _0x210566(_0x59bd96,_0x20f4f5);},_0x210566['from']=function(_0x424ab8){if('number'==typeof _0x424ab8)return _0x210566['fromNumber'](_0x424ab8);if(_0x516c6f['isString'](_0x424ab8)){if(!_0x516c6f['Long'])return _0x210566['fromNumber'](parseInt(_0x424ab8,0xa));_0x424ab8=_0x516c6f['Long']['fromString'](_0x424ab8);}return _0x424ab8['low']||_0x424ab8['high']?new _0x210566(_0x424ab8['low']>>>0x0,_0x424ab8['high']>>>0x0):_0x11f2c4;},_0x210566['prototype']['toNumber']=function(_0x289690){if(!_0x289690&&this['hi']>>>0x1f){var _0x2ca8b1=0x1+~this['lo']>>>0x0,_0x2be19f=~this['hi']>>>0x0;return _0x2ca8b1||(_0x2be19f=_0x2be19f+0x1>>>0x0),-(_0x2ca8b1+0x100000000*_0x2be19f);}return this['lo']+0x100000000*this['hi'];},_0x210566['prototype']['toLong']=function(_0x271bc5){return _0x516c6f['Long']?new _0x516c6f['Long'](0x0|this['lo'],0x0|this['hi'],Boolean(_0x271bc5)):{'low':0x0|this['lo'],'high':0x0|this['hi'],'unsigned':Boolean(_0x271bc5)};};var _0x5949e6=String['prototype']['charCodeAt'];_0x210566['fromHash']=function(_0x5c24f9){return _0x5c24f9===_0x4b9286?_0x11f2c4:new _0x210566((_0x5949e6['call'](_0x5c24f9,0x0)|_0x5949e6['call'](_0x5c24f9,0x1)<<0x8|_0x5949e6['call'](_0x5c24f9,0x2)<<0x10|_0x5949e6['call'](_0x5c24f9,0x3)<<0x18)>>>0x0,(_0x5949e6['call'](_0x5c24f9,0x4)|_0x5949e6['call'](_0x5c24f9,0x5)<<0x8|_0x5949e6['call'](_0x5c24f9,0x6)<<0x10|_0x5949e6['call'](_0x5c24f9,0x7)<<0x18)>>>0x0);},_0x210566['prototype']['toHash']=function(){return String['fromCharCode'](0xff&this['lo'],this['lo']>>>0x8&0xff,this['lo']>>>0x10&0xff,this['lo']>>>0x18,0xff&this['hi'],this['hi']>>>0x8&0xff,this['hi']>>>0x10&0xff,this['hi']>>>0x18);},_0x210566['prototype']['zzEncode']=function(){var _0x286293=this['hi']>>0x1f;return this['hi']=((this['hi']<<0x1|this['lo']>>>0x1f)^_0x286293)>>>0x0,this['lo']=(this['lo']<<0x1^_0x286293)>>>0x0,this;},_0x210566['prototype']['zzDecode']=function(){var _0x318124=-(0x1&this['lo']);return this['lo']=((this['lo']>>>0x1|this['hi']<<0x1f)^_0x318124)>>>0x0,this['hi']=(this['hi']>>>0x1^_0x318124)>>>0x0,this;},_0x210566['prototype']['length']=function(){var _0x103d93=this['lo'],_0x1ea6ab=(this['lo']>>>0x1c|this['hi']<<0x4)>>>0x0,_0x205dd0=this['hi']>>>0x18;return 0x0===_0x205dd0?0x0===_0x1ea6ab?_0x103d93<0x4000?_0x103d93<0x80?0x1:0x2:_0x103d93<0x200000?0x3:0x4:_0x1ea6ab<0x4000?_0x1ea6ab<0x80?0x5:0x6:_0x1ea6ab<0x200000?0x7:0x8:_0x205dd0<0x80?0x9:0xa;};}),VS=Yn((_0x4459d2,_0x56ac1f)=>{!function(_0x59171b,_0x1fc0d1){function _0x104d43(_0x2c3aa2){return _0x2c3aa2['default']||_0x2c3aa2;}var _0x2e6243;'function'==typeof define&&define['amd']?define([],function(){var _0x25c102={};return _0x1fc0d1(_0x25c102),_0x104d43(_0x25c102);}):'object'==typeof _0x4459d2?(_0x1fc0d1(_0x4459d2),'object'==typeof _0x56ac1f&&(_0x56ac1f['exports']=_0x104d43(_0x4459d2))):(_0x1fc0d1(_0x2e6243={}),_0x59171b['Long']=_0x104d43(_0x2e6243));}('undefined'!=typeof globalThis?globalThis:'undefined'!=typeof self?self:_0x4459d2,function(_0x15a515){'use strict';Object['defineProperty'](_0x15a515,'__esModule',{'value':!0x0}),_0x15a515['default']=void 0x0;var _0x11a7b8=null;try{_0x11a7b8=new WebAssembly['Instance'](new WebAssembly['Module'](new Uint8Array([0x0,0x61,0x73,0x6d,0x1,0x0,0x0,0x0,0x1,0xd,0x2,0x60,0x0,0x1,0x7f,0x60,0x4,0x7f,0x7f,0x7f,0x7f,0x1,0x7f,0x3,0x7,0x6,0x0,0x1,0x1,0x1,0x1,0x1,0x6,0x6,0x1,0x7f,0x1,0x41,0x0,0xb,0x7,0x32,0x6,0x3,0x6d,0x75,0x6c,0x0,0x1,0x5,0x64,0x69,0x76,0x5f,0x73,0x0,0x2,0x5,0x64,0x69,0x76,0x5f,0x75,0x0,0x3,0x5,0x72,0x65,0x6d,0x5f,0x73,0x0,0x4,0x5,0x72,0x65,0x6d,0x5f,0x75,0x0,0x5,0x8,0x67,0x65,0x74,0x5f,0x68,0x69,0x67,0x68,0x0,0x0,0xa,0xbf,0x1,0x6,0x4,0x0,0x23,0x0,0xb,0x24,0x1,0x1,0x7e,0x20,0x0,0xad,0x20,0x1,0xad,0x42,0x20,0x86,0x84,0x20,0x2,0xad,0x20,0x3,0xad,0x42,0x20,0x86,0x84,0x7e,0x22,0x4,0x42,0x20,0x87,0xa7,0x24,0x0,0x20,0x4,0xa7,0xb,0x24,0x1,0x1,0x7e,0x20,0x0,0xad,0x20,0x1,0xad,0x42,0x20,0x86,0x84,0x20,0x2,0xad,0x20,0x3,0xad,0x42,0x20,0x86,0x84,0x7f,0x22,0x4,0x42,0x20,0x87,0xa7,0x24,0x0,0x20,0x4,0xa7,0xb,0x24,0x1,0x1,0x7e,0x20,0x0,0xad,0x20,0x1,0xad,0x42,0x20,0x86,0x84,0x20,0x2,0xad,0x20,0x3,0xad,0x42,0x20,0x86,0x84,0x80,0x22,0x4,0x42,0x20,0x87,0xa7,0x24,0x0,0x20,0x4,0xa7,0xb,0x24,0x1,0x1,0x7e,0x20,0x0,0xad,0x20,0x1,0xad,0x42,0x20,0x86,0x84,0x20,0x2,0xad,0x20,0x3,0xad,0x42,0x20,0x86,0x84,0x81,0x22,0x4,0x42,0x20,0x87,0xa7,0x24,0x0,0x20,0x4,0xa7,0xb,0x24,0x1,0x1,0x7e,0x20,0x0,0xad,0x20,0x1,0xad,0x42,0x20,0x86,0x84,0x20,0x2,0xad,0x20,0x3,0xad,0x42,0x20,0x86,0x84,0x82,0x22,0x4,0x42,0x20,0x87,0xa7,0x24,0x0,0x20,0x4,0xa7,0xb])),{})['exports'];}catch{}function _0x2edbd7(_0x362e0c,_0x52fcac,_0x2a7f0a){this['low']=0x0|_0x362e0c,this['high']=0x0|_0x52fcac,this['unsigned']=!!_0x2a7f0a;}function _0x239559(_0x385544){return!0x0===(_0x385544&&_0x385544['__isLong__']);}function _0x19782b(_0x99ac4c){var _0x5ad1e0=Math['clz32'](_0x99ac4c&-_0x99ac4c);return _0x99ac4c?0x1f-_0x5ad1e0:_0x5ad1e0;}_0x2edbd7['prototype']['__isLong__'],Object['defineProperty'](_0x2edbd7['prototype'],'__isLong__',{'value':!0x0}),_0x2edbd7['isLong']=_0x239559;var _0x26e701={},_0x3d6bb0={};function _0x18002c(_0x393b41,_0x41bfb6){var _0x449f8e,_0x2964d2,_0x43d8a7;return _0x41bfb6?(_0x43d8a7=0x0<=(_0x393b41>>>=0x0)&&_0x393b41<0x100)&&(_0x2964d2=_0x3d6bb0[_0x393b41])?_0x2964d2:(_0x449f8e=_0x31b13f(_0x393b41,0x0,!0x0),_0x43d8a7&&(_0x3d6bb0[_0x393b41]=_0x449f8e),_0x449f8e):(_0x43d8a7=-0x80<=(_0x393b41|=0x0)&&_0x393b41<0x80)&&(_0x2964d2=_0x26e701[_0x393b41])?_0x2964d2:(_0x449f8e=_0x31b13f(_0x393b41,_0x393b41<0x0?-0x1:0x0,!0x1),_0x43d8a7&&(_0x26e701[_0x393b41]=_0x449f8e),_0x449f8e);}function _0x3143c3(_0x9f94b4,_0x4c9bed){if(isNaN(_0x9f94b4))return _0x4c9bed?_0x944ca6:_0x5a26d5;if(_0x4c9bed){if(_0x9f94b4<0x0)return _0x944ca6;if(_0x9f94b4>=_0x525114)return _0x333f4d;}else{if(_0x9f94b4<=-_0xf4a1f9)return _0x85d79d;if(_0x9f94b4+0x1>=_0xf4a1f9)return _0x589cbb;}return _0x9f94b4<0x0?_0x3143c3(-_0x9f94b4,_0x4c9bed)['neg']():_0x31b13f(_0x9f94b4%_0xb3b322|0x0,_0x9f94b4/_0xb3b322|0x0,_0x4c9bed);}function _0x31b13f(_0x3062bc,_0x3796da,_0x535e34){return new _0x2edbd7(_0x3062bc,_0x3796da,_0x535e34);}_0x2edbd7['fromInt']=_0x18002c,_0x2edbd7['fromNumber']=_0x3143c3,_0x2edbd7['fromBits']=_0x31b13f;var _0x2a087a=Math['pow'];function _0xc0ad14(_0x455cd2,_0x4647cb,_0x31d82f){if(0x0===_0x455cd2['length'])throw Error('empty\x20string');if('number'==typeof _0x4647cb?(_0x31d82f=_0x4647cb,_0x4647cb=!0x1):_0x4647cb=!!_0x4647cb,'NaN'===_0x455cd2||'Infinity'===_0x455cd2||'+Infinity'===_0x455cd2||'-Infinity'===_0x455cd2)return _0x4647cb?_0x944ca6:_0x5a26d5;if((_0x31d82f=_0x31d82f||0xa)<0x2||0x24<_0x31d82f)throw RangeError('radix');var _0x42a37d;if((_0x42a37d=_0x455cd2['indexOf']('-'))>0x0)throw Error('interior\x20hyphen');if(0x0===_0x42a37d)return _0xc0ad14(_0x455cd2['substring'](0x1),_0x4647cb,_0x31d82f)['neg']();for(var _0x43df4e=_0x3143c3(_0x2a087a(_0x31d82f,0x8)),_0x1f4522=_0x5a26d5,_0x590074=0x0;_0x590074<_0x455cd2['length'];_0x590074+=0x8){var _0x50fefc=Math['min'](0x8,_0x455cd2['length']-_0x590074),_0x1fba9a=parseInt(_0x455cd2['substring'](_0x590074,_0x590074+_0x50fefc),_0x31d82f);if(_0x50fefc<0x8){var _0x53935f=_0x3143c3(_0x2a087a(_0x31d82f,_0x50fefc));_0x1f4522=_0x1f4522['mul'](_0x53935f)['add'](_0x3143c3(_0x1fba9a));}else _0x1f4522=(_0x1f4522=_0x1f4522['mul'](_0x43df4e))['add'](_0x3143c3(_0x1fba9a));}return _0x1f4522['unsigned']=_0x4647cb,_0x1f4522;}function _0x3f11ec(_0x368ec6,_0x3c87cc){return'number'==typeof _0x368ec6?_0x3143c3(_0x368ec6,_0x3c87cc):'string'==typeof _0x368ec6?_0xc0ad14(_0x368ec6,_0x3c87cc):_0x31b13f(_0x368ec6['low'],_0x368ec6['high'],'boolean'==typeof _0x3c87cc?_0x3c87cc:_0x368ec6['unsigned']);}_0x2edbd7['fromString']=_0xc0ad14,_0x2edbd7['fromValue']=_0x3f11ec;var _0xb3b322=0x100000000,_0x525114=_0xb3b322*_0xb3b322,_0xf4a1f9=_0x525114/0x2,_0x5ba25e=_0x18002c(0x1<<0x18),_0x5a26d5=_0x18002c(0x0);_0x2edbd7['ZERO']=_0x5a26d5;var _0x944ca6=_0x18002c(0x0,!0x0);_0x2edbd7['UZERO']=_0x944ca6;var _0x15602c=_0x18002c(0x1);_0x2edbd7['ONE']=_0x15602c;var _0x36c74e=_0x18002c(0x1,!0x0);_0x2edbd7['UONE']=_0x36c74e;var _0x568911=_0x18002c(-0x1);_0x2edbd7['NEG_ONE']=_0x568911;var _0x589cbb=_0x31b13f(-0x1,0x7fffffff,!0x1);_0x2edbd7['MAX_VALUE']=_0x589cbb;var _0x333f4d=_0x31b13f(-0x1,-0x1,!0x0);_0x2edbd7['MAX_UNSIGNED_VALUE']=_0x333f4d;var _0x85d79d=_0x31b13f(0x0,-0x80000000,!0x1);_0x2edbd7['MIN_VALUE']=_0x85d79d;var _0x5001ad=_0x2edbd7['prototype'];_0x5001ad['toInt']=function(){return this['unsigned']?this['low']>>>0x0:this['low'];},_0x5001ad['toNumber']=function(){return this['unsigned']?(this['high']>>>0x0)*_0xb3b322+(this['low']>>>0x0):this['high']*_0xb3b322+(this['low']>>>0x0);},_0x5001ad['toString']=function(_0x7850f5){if((_0x7850f5=_0x7850f5||0xa)<0x2||0x24<_0x7850f5)throw RangeError('radix');if(this['isZero']())return'0';if(this['isNegative']()){if(this['eq'](_0x85d79d)){var _0x5195d2=_0x3143c3(_0x7850f5),_0x10af60=this['div'](_0x5195d2),_0x34ce54=_0x10af60['mul'](_0x5195d2)['sub'](this);return _0x10af60['toString'](_0x7850f5)+_0x34ce54['toInt']()['toString'](_0x7850f5);}return'-'+this['neg']()['toString'](_0x7850f5);}for(var _0x415a19=_0x3143c3(_0x2a087a(_0x7850f5,0x6),this['unsigned']),_0x481403=this,_0x491c19='';;){var _0x4e936e=_0x481403['div'](_0x415a19),_0x591fc8=(_0x481403['sub'](_0x4e936e['mul'](_0x415a19))['toInt']()>>>0x0)['toString'](_0x7850f5);if((_0x481403=_0x4e936e)['isZero']())return _0x591fc8+_0x491c19;for(;_0x591fc8['length']<0x6;)_0x591fc8='0'+_0x591fc8;_0x491c19=''+_0x591fc8+_0x491c19;}},_0x5001ad['getHighBits']=function(){return this['high'];},_0x5001ad['getHighBitsUnsigned']=function(){return this['high']>>>0x0;},_0x5001ad['getLowBits']=function(){return this['low'];},_0x5001ad['getLowBitsUnsigned']=function(){return this['low']>>>0x0;},_0x5001ad['getNumBitsAbs']=function(){if(this['isNegative']())return this['eq'](_0x85d79d)?0x40:this['neg']()['getNumBitsAbs']();for(var _0x1d5dc4=0x0!=this['high']?this['high']:this['low'],_0x80bf90=0x1f;_0x80bf90>0x0&&!(_0x1d5dc4&0x1<<_0x80bf90);_0x80bf90--);return 0x0!=this['high']?_0x80bf90+0x21:_0x80bf90+0x1;},_0x5001ad['isSafeInteger']=function(){var _0x143b78=this['high']>>0x15;return!_0x143b78||!this['unsigned']&&(-0x1===_0x143b78&&!(0x0===this['low']&&-0x200000===this['high']));},_0x5001ad['isZero']=function(){return 0x0===this['high']&&0x0===this['low'];},_0x5001ad['eqz']=_0x5001ad['isZero'],_0x5001ad['isNegative']=function(){return!this['unsigned']&&this['high']<0x0;},_0x5001ad['isPositive']=function(){return this['unsigned']||this['high']>=0x0;},_0x5001ad['isOdd']=function(){return!(0x1&~this['low']);},_0x5001ad['isEven']=function(){return!(0x1&this['low']);},_0x5001ad['equals']=function(_0x208563){return _0x239559(_0x208563)||(_0x208563=_0x3f11ec(_0x208563)),(this['unsigned']===_0x208563['unsigned']||this['high']>>>0x1f!=0x1||_0x208563['high']>>>0x1f!=0x1)&&(this['high']===_0x208563['high']&&this['low']===_0x208563['low']);},_0x5001ad['eq']=_0x5001ad['equals'],_0x5001ad['notEquals']=function(_0x48ed64){return!this['eq'](_0x48ed64);},_0x5001ad['neq']=_0x5001ad['notEquals'],_0x5001ad['ne']=_0x5001ad['notEquals'],_0x5001ad['lessThan']=function(_0x306db3){return this['comp'](_0x306db3)<0x0;},_0x5001ad['lt']=_0x5001ad['lessThan'],_0x5001ad['lessThanOrEqual']=function(_0x465c10){return this['comp'](_0x465c10)<=0x0;},_0x5001ad['lte']=_0x5001ad['lessThanOrEqual'],_0x5001ad['le']=_0x5001ad['lessThanOrEqual'],_0x5001ad['greaterThan']=function(_0x377b2b){return this['comp'](_0x377b2b)>0x0;},_0x5001ad['gt']=_0x5001ad['greaterThan'],_0x5001ad['greaterThanOrEqual']=function(_0xad1724){return this['comp'](_0xad1724)>=0x0;},_0x5001ad['gte']=_0x5001ad['greaterThanOrEqual'],_0x5001ad['ge']=_0x5001ad['greaterThanOrEqual'],_0x5001ad['compare']=function(_0x36a1c2){if(_0x239559(_0x36a1c2)||(_0x36a1c2=_0x3f11ec(_0x36a1c2)),this['eq'](_0x36a1c2))return 0x0;var _0x21d65e=this['isNegative'](),_0x7e23bc=_0x36a1c2['isNegative']();return _0x21d65e&&!_0x7e23bc?-0x1:!_0x21d65e&&_0x7e23bc?0x1:this['unsigned']?_0x36a1c2['high']>>>0x0>this['high']>>>0x0||_0x36a1c2['high']===this['high']&&_0x36a1c2['low']>>>0x0>this['low']>>>0x0?-0x1:0x1:this['sub'](_0x36a1c2)['isNegative']()?-0x1:0x1;},_0x5001ad['comp']=_0x5001ad['compare'],_0x5001ad['negate']=function(){return!this['unsigned']&&this['eq'](_0x85d79d)?_0x85d79d:this['not']()['add'](_0x15602c);},_0x5001ad['neg']=_0x5001ad['negate'],_0x5001ad['add']=function(_0x5f56eb){_0x239559(_0x5f56eb)||(_0x5f56eb=_0x3f11ec(_0x5f56eb));var _0xc0590a=this['high']>>>0x10,_0x1ab0f2=0xffff&this['high'],_0x9c3c9e=this['low']>>>0x10,_0x402842=0xffff&this['low'],_0x1f3bc9=_0x5f56eb['high']>>>0x10,_0x239c6d=0xffff&_0x5f56eb['high'],_0x1ce2c7=_0x5f56eb['low']>>>0x10,_0x1f5521=0x0,_0xfb2a6c=0x0,_0x49feda=0x0,_0xdba5dc=0x0;return _0x49feda+=(_0xdba5dc+=_0x402842+(0xffff&_0x5f56eb['low']))>>>0x10,_0xfb2a6c+=(_0x49feda+=_0x9c3c9e+_0x1ce2c7)>>>0x10,_0x1f5521+=(_0xfb2a6c+=_0x1ab0f2+_0x239c6d)>>>0x10,_0x1f5521+=_0xc0590a+_0x1f3bc9,_0x31b13f((_0x49feda&=0xffff)<<0x10|(_0xdba5dc&=0xffff),(_0x1f5521&=0xffff)<<0x10|(_0xfb2a6c&=0xffff),this['unsigned']);},_0x5001ad['subtract']=function(_0xf21e5f){return _0x239559(_0xf21e5f)||(_0xf21e5f=_0x3f11ec(_0xf21e5f)),this['add'](_0xf21e5f['neg']());},_0x5001ad['sub']=_0x5001ad['subtract'],_0x5001ad['multiply']=function(_0x583921){if(this['isZero']())return this;if(_0x239559(_0x583921)||(_0x583921=_0x3f11ec(_0x583921)),_0x11a7b8)return _0x31b13f(_0x11a7b8['mul'](this['low'],this['high'],_0x583921['low'],_0x583921['high']),_0x11a7b8['get_high'](),this['unsigned']);if(_0x583921['isZero']())return this['unsigned']?_0x944ca6:_0x5a26d5;if(this['eq'](_0x85d79d))return _0x583921['isOdd']()?_0x85d79d:_0x5a26d5;if(_0x583921['eq'](_0x85d79d))return this['isOdd']()?_0x85d79d:_0x5a26d5;if(this['isNegative']())return _0x583921['isNegative']()?this['neg']()['mul'](_0x583921['neg']()):this['neg']()['mul'](_0x583921)['neg']();if(_0x583921['isNegative']())return this['mul'](_0x583921['neg']())['neg']();if(this['lt'](_0x5ba25e)&&_0x583921['lt'](_0x5ba25e))return _0x3143c3(this['toNumber']()*_0x583921['toNumber'](),this['unsigned']);var _0x5947e1=this['high']>>>0x10,_0x434ad9=0xffff&this['high'],_0x19de13=this['low']>>>0x10,_0x560c85=0xffff&this['low'],_0xd65c28=_0x583921['high']>>>0x10,_0x13c4d2=0xffff&_0x583921['high'],_0x35787b=_0x583921['low']>>>0x10,_0x44397e=0xffff&_0x583921['low'],_0x5c5830=0x0,_0xa9c5bf=0x0,_0x1edfd3=0x0,_0x3dcf5d=0x0;return _0x1edfd3+=(_0x3dcf5d+=_0x560c85*_0x44397e)>>>0x10,_0xa9c5bf+=(_0x1edfd3+=_0x19de13*_0x44397e)>>>0x10,_0x1edfd3&=0xffff,_0xa9c5bf+=(_0x1edfd3+=_0x560c85*_0x35787b)>>>0x10,_0x5c5830+=(_0xa9c5bf+=_0x434ad9*_0x44397e)>>>0x10,_0xa9c5bf&=0xffff,_0x5c5830+=(_0xa9c5bf+=_0x19de13*_0x35787b)>>>0x10,_0xa9c5bf&=0xffff,_0x5c5830+=(_0xa9c5bf+=_0x560c85*_0x13c4d2)>>>0x10,_0x5c5830+=_0x5947e1*_0x44397e+_0x434ad9*_0x35787b+_0x19de13*_0x13c4d2+_0x560c85*_0xd65c28,_0x31b13f((_0x1edfd3&=0xffff)<<0x10|(_0x3dcf5d&=0xffff),(_0x5c5830&=0xffff)<<0x10|(_0xa9c5bf&=0xffff),this['unsigned']);},_0x5001ad['mul']=_0x5001ad['multiply'],_0x5001ad['divide']=function(_0x186b5e){if(_0x239559(_0x186b5e)||(_0x186b5e=_0x3f11ec(_0x186b5e)),_0x186b5e['isZero']())throw Error('division\x20by\x20zero');if(_0x11a7b8)return this['unsigned']||-0x80000000!==this['high']||-0x1!==_0x186b5e['low']||-0x1!==_0x186b5e['high']?_0x31b13f((this['unsigned']?_0x11a7b8['div_u']:_0x11a7b8['div_s'])(this['low'],this['high'],_0x186b5e['low'],_0x186b5e['high']),_0x11a7b8['get_high'](),this['unsigned']):this;if(this['isZero']())return this['unsigned']?_0x944ca6:_0x5a26d5;var _0x5adcb7,_0x1e5f54,_0x3c355b;if(this['unsigned']){if(_0x186b5e['unsigned']||(_0x186b5e=_0x186b5e['toUnsigned']()),_0x186b5e['gt'](this))return _0x944ca6;if(_0x186b5e['gt'](this['shru'](0x1)))return _0x36c74e;_0x3c355b=_0x944ca6;}else{if(this['eq'](_0x85d79d))return _0x186b5e['eq'](_0x15602c)||_0x186b5e['eq'](_0x568911)?_0x85d79d:_0x186b5e['eq'](_0x85d79d)?_0x15602c:(_0x5adcb7=this['shr'](0x1)['div'](_0x186b5e)['shl'](0x1))['eq'](_0x5a26d5)?_0x186b5e['isNegative']()?_0x15602c:_0x568911:(_0x1e5f54=this['sub'](_0x186b5e['mul'](_0x5adcb7)),_0x3c355b=_0x5adcb7['add'](_0x1e5f54['div'](_0x186b5e)));if(_0x186b5e['eq'](_0x85d79d))return this['unsigned']?_0x944ca6:_0x5a26d5;if(this['isNegative']())return _0x186b5e['isNegative']()?this['neg']()['div'](_0x186b5e['neg']()):this['neg']()['div'](_0x186b5e)['neg']();if(_0x186b5e['isNegative']())return this['div'](_0x186b5e['neg']())['neg']();_0x3c355b=_0x5a26d5;}for(_0x1e5f54=this;_0x1e5f54['gte'](_0x186b5e);){_0x5adcb7=Math['max'](0x1,Math['floor'](_0x1e5f54['toNumber']()/_0x186b5e['toNumber']()));for(var _0x13edc0=Math['ceil'](Math['log'](_0x5adcb7)/Math['LN2']),_0x3d401e=_0x13edc0<=0x30?0x1:_0x2a087a(0x2,_0x13edc0-0x30),_0x46cff9=_0x3143c3(_0x5adcb7),_0x1ffe44=_0x46cff9['mul'](_0x186b5e);_0x1ffe44['isNegative']()||_0x1ffe44['gt'](_0x1e5f54);)_0x1ffe44=(_0x46cff9=_0x3143c3(_0x5adcb7-=_0x3d401e,this['unsigned']))['mul'](_0x186b5e);_0x46cff9['isZero']()&&(_0x46cff9=_0x15602c),_0x3c355b=_0x3c355b['add'](_0x46cff9),_0x1e5f54=_0x1e5f54['sub'](_0x1ffe44);}return _0x3c355b;},_0x5001ad['div']=_0x5001ad['divide'],_0x5001ad['modulo']=function(_0xd7d634){return _0x239559(_0xd7d634)||(_0xd7d634=_0x3f11ec(_0xd7d634)),_0x11a7b8?_0x31b13f((this['unsigned']?_0x11a7b8['rem_u']:_0x11a7b8['rem_s'])(this['low'],this['high'],_0xd7d634['low'],_0xd7d634['high']),_0x11a7b8['get_high'](),this['unsigned']):this['sub'](this['div'](_0xd7d634)['mul'](_0xd7d634));},_0x5001ad['mod']=_0x5001ad['modulo'],_0x5001ad['rem']=_0x5001ad['modulo'],_0x5001ad['not']=function(){return _0x31b13f(~this['low'],~this['high'],this['unsigned']);},_0x5001ad['countLeadingZeros']=function(){return this['high']?Math['clz32'](this['high']):Math['clz32'](this['low'])+0x20;},_0x5001ad['clz']=_0x5001ad['countLeadingZeros'],_0x5001ad['countTrailingZeros']=function(){return this['low']?_0x19782b(this['low']):_0x19782b(this['high'])+0x20;},_0x5001ad['ctz']=_0x5001ad['countTrailingZeros'],_0x5001ad['and']=function(_0x2c3b8b){return _0x239559(_0x2c3b8b)||(_0x2c3b8b=_0x3f11ec(_0x2c3b8b)),_0x31b13f(this['low']&_0x2c3b8b['low'],this['high']&_0x2c3b8b['high'],this['unsigned']);},_0x5001ad['or']=function(_0x5d0134){return _0x239559(_0x5d0134)||(_0x5d0134=_0x3f11ec(_0x5d0134)),_0x31b13f(this['low']|_0x5d0134['low'],this['high']|_0x5d0134['high'],this['unsigned']);},_0x5001ad['xor']=function(_0x45ccee){return _0x239559(_0x45ccee)||(_0x45ccee=_0x3f11ec(_0x45ccee)),_0x31b13f(this['low']^_0x45ccee['low'],this['high']^_0x45ccee['high'],this['unsigned']);},_0x5001ad['shiftLeft']=function(_0x265389){return _0x239559(_0x265389)&&(_0x265389=_0x265389['toInt']()),0x0==(_0x265389&=0x3f)?this:_0x265389<0x20?_0x31b13f(this['low']<<_0x265389,this['high']<<_0x265389|this['low']>>>0x20-_0x265389,this['unsigned']):_0x31b13f(0x0,this['low']<<_0x265389-0x20,this['unsigned']);},_0x5001ad['shl']=_0x5001ad['shiftLeft'],_0x5001ad['shiftRight']=function(_0x1d9476){return _0x239559(_0x1d9476)&&(_0x1d9476=_0x1d9476['toInt']()),0x0==(_0x1d9476&=0x3f)?this:_0x1d9476<0x20?_0x31b13f(this['low']>>>_0x1d9476|this['high']<<0x20-_0x1d9476,this['high']>>_0x1d9476,this['unsigned']):_0x31b13f(this['high']>>_0x1d9476-0x20,this['high']>=0x0?0x0:-0x1,this['unsigned']);},_0x5001ad['shr']=_0x5001ad['shiftRight'],_0x5001ad['shiftRightUnsigned']=function(_0x15b742){return _0x239559(_0x15b742)&&(_0x15b742=_0x15b742['toInt']()),0x0==(_0x15b742&=0x3f)?this:_0x15b742<0x20?_0x31b13f(this['low']>>>_0x15b742|this['high']<<0x20-_0x15b742,this['high']>>>_0x15b742,this['unsigned']):_0x31b13f(0x20===_0x15b742?this['high']:this['high']>>>_0x15b742-0x20,0x0,this['unsigned']);},_0x5001ad['shru']=_0x5001ad['shiftRightUnsigned'],_0x5001ad['shr_u']=_0x5001ad['shiftRightUnsigned'],_0x5001ad['rotateLeft']=function(_0x325f3f){var _0x5d10fc;return _0x239559(_0x325f3f)&&(_0x325f3f=_0x325f3f['toInt']()),0x0==(_0x325f3f&=0x3f)?this:0x20===_0x325f3f?_0x31b13f(this['high'],this['low'],this['unsigned']):_0x325f3f<0x20?(_0x5d10fc=0x20-_0x325f3f,_0x31b13f(this['low']<<_0x325f3f|this['high']>>>_0x5d10fc,this['high']<<_0x325f3f|this['low']>>>_0x5d10fc,this['unsigned'])):(_0x5d10fc=0x20-(_0x325f3f-=0x20),_0x31b13f(this['high']<<_0x325f3f|this['low']>>>_0x5d10fc,this['low']<<_0x325f3f|this['high']>>>_0x5d10fc,this['unsigned']));},_0x5001ad['rotl']=_0x5001ad['rotateLeft'],_0x5001ad['rotateRight']=function(_0x2d1dcc){var _0x55da97;return _0x239559(_0x2d1dcc)&&(_0x2d1dcc=_0x2d1dcc['toInt']()),0x0==(_0x2d1dcc&=0x3f)?this:0x20===_0x2d1dcc?_0x31b13f(this['high'],this['low'],this['unsigned']):_0x2d1dcc<0x20?(_0x55da97=0x20-_0x2d1dcc,_0x31b13f(this['high']<<_0x55da97|this['low']>>>_0x2d1dcc,this['low']<<_0x55da97|this['high']>>>_0x2d1dcc,this['unsigned'])):(_0x55da97=0x20-(_0x2d1dcc-=0x20),_0x31b13f(this['low']<<_0x55da97|this['high']>>>_0x2d1dcc,this['high']<<_0x55da97|this['low']>>>_0x2d1dcc,this['unsigned']));},_0x5001ad['rotr']=_0x5001ad['rotateRight'],_0x5001ad['toSigned']=function(){return this['unsigned']?_0x31b13f(this['low'],this['high'],!0x1):this;},_0x5001ad['toUnsigned']=function(){return this['unsigned']?this:_0x31b13f(this['low'],this['high'],!0x0);},_0x5001ad['toBytes']=function(_0xa830f2){return _0xa830f2?this['toBytesLE']():this['toBytesBE']();},_0x5001ad['toBytesLE']=function(){var _0x2bdd67=this['high'],_0x39ba8d=this['low'];return[0xff&_0x39ba8d,_0x39ba8d>>>0x8&0xff,_0x39ba8d>>>0x10&0xff,_0x39ba8d>>>0x18,0xff&_0x2bdd67,_0x2bdd67>>>0x8&0xff,_0x2bdd67>>>0x10&0xff,_0x2bdd67>>>0x18];},_0x5001ad['toBytesBE']=function(){var _0xc6db4c=this['high'],_0x43b920=this['low'];return[_0xc6db4c>>>0x18,_0xc6db4c>>>0x10&0xff,_0xc6db4c>>>0x8&0xff,0xff&_0xc6db4c,_0x43b920>>>0x18,_0x43b920>>>0x10&0xff,_0x43b920>>>0x8&0xff,0xff&_0x43b920];},_0x2edbd7['fromBytes']=function(_0x3cbc18,_0x2a3f67,_0x110779){return _0x110779?_0x2edbd7['fromBytesLE'](_0x3cbc18,_0x2a3f67):_0x2edbd7['fromBytesBE'](_0x3cbc18,_0x2a3f67);},_0x2edbd7['fromBytesLE']=function(_0x130cf6,_0x187d38){return new _0x2edbd7(_0x130cf6[0x0]|_0x130cf6[0x1]<<0x8|_0x130cf6[0x2]<<0x10|_0x130cf6[0x3]<<0x18,_0x130cf6[0x4]|_0x130cf6[0x5]<<0x8|_0x130cf6[0x6]<<0x10|_0x130cf6[0x7]<<0x18,_0x187d38);},_0x2edbd7['fromBytesBE']=function(_0xabcd4c,_0x107c59){return new _0x2edbd7(_0xabcd4c[0x4]<<0x18|_0xabcd4c[0x5]<<0x10|_0xabcd4c[0x6]<<0x8|_0xabcd4c[0x7],_0xabcd4c[0x0]<<0x18|_0xabcd4c[0x1]<<0x10|_0xabcd4c[0x2]<<0x8|_0xabcd4c[0x3],_0x107c59);},'function'==typeof BigInt&&(_0x2edbd7['fromBigInt']=function(_0x43e4d9,_0x5d76d){return _0x31b13f(Number(BigInt['asIntN'](0x20,_0x43e4d9)),Number(BigInt['asIntN'](0x20,_0x43e4d9>>BigInt(0x20))),_0x5d76d);},_0x2edbd7['fromValue']=function(_0x4cf853,_0x361d11){return'bigint'==typeof _0x4cf853?_0x2edbd7['fromBigInt'](_0x4cf853,_0x361d11):_0x3f11ec(_0x4cf853,_0x361d11);},_0x5001ad['toBigInt']=function(){var _0x1070a5=BigInt(this['low']>>>0x0);return BigInt(this['unsigned']?this['high']>>>0x0:this['high'])<<BigInt(0x20)|_0x1070a5;}),_0x15a515['default']=_0x2edbd7;});}),BS=Yn(_0x386413=>{var _0x468e6a=_0x386413;function _0x12c7ff(_0x15c2d5){return'__proto__'===_0x15c2d5||'prototype'===_0x15c2d5||'constructor'===_0x15c2d5;}function _0x406d01(_0x2f2011){var _0x1f248f='boolean'==typeof arguments[arguments['length']-0x1],_0x131818=_0x1f248f?arguments['length']-0x1:arguments['length'];_0x1f248f=_0x1f248f&&arguments[arguments['length']-0x1];for(var _0x195c83=0x1;_0x195c83<_0x131818;++_0x195c83){var _0x48e38d=arguments[_0x195c83];if(_0x48e38d){for(var _0x6c09ef=Object['keys'](_0x48e38d),_0x258020=0x0;_0x258020<_0x6c09ef['length'];++_0x258020)_0x12c7ff(_0x6c09ef[_0x258020])||void 0x0!==_0x2f2011[_0x6c09ef[_0x258020]]&&_0x1f248f||(_0x2f2011[_0x6c09ef[_0x258020]]=_0x48e38d[_0x6c09ef[_0x258020]]);}}return _0x2f2011;}function _0x3585ce(_0x42b125){function _0x30dcbc(_0x24b682,_0xb9cabe){if(!(this instanceof _0x30dcbc))return new _0x30dcbc(_0x24b682,_0xb9cabe);Object['defineProperty'](this,'message',{'get':function(){return _0x24b682;}}),Error['captureStackTrace']?Error['captureStackTrace'](this,_0x30dcbc):Object['defineProperty'](this,'stack',{'value':new Error()['stack']||''}),_0xb9cabe&&_0x406d01(this,_0xb9cabe);}return _0x30dcbc['prototype']=Object['create'](Error['prototype'],{'constructor':{'value':_0x30dcbc,'writable':!0x0,'enumerable':!0x1,'configurable':!0x0},'name':{'get':function(){return _0x42b125;},'set':void 0x0,'enumerable':!0x1,'configurable':!0x0},'toString':{'value':function(){return this['name']+':\x20'+this['message'];},'writable':!0x0,'enumerable':!0x1,'configurable':!0x0}}),_0x30dcbc;}_0x468e6a['asPromise']=MS(),_0x468e6a['base64']=LS(),_0x468e6a['EventEmitter']=$S(),_0x468e6a['float']=DS(),_0x468e6a['utf8']=QS(),_0x468e6a['pool']=jS(),_0x468e6a['LongBits']=US(),_0x468e6a['isUnsafeProperty']=_0x12c7ff,_0x468e6a['isNode']=Boolean('undefined'!=typeof global&&global&&global['process']&&global['process']['versions']&&global['process']['versions']['node']),_0x468e6a['global']=_0x468e6a['isNode']&&global||'undefined'!=typeof window&&window||'undefined'!=typeof self&&self||_0x386413,_0x468e6a['emptyArray']=Object['freeze']?Object['freeze']([]):[],_0x468e6a['emptyObject']=Object['freeze']?Object['freeze']({}):{},_0x468e6a['isInteger']=Number['isInteger']||function(_0x3f2759){return'number'==typeof _0x3f2759&&isFinite(_0x3f2759)&&Math['floor'](_0x3f2759)===_0x3f2759;},_0x468e6a['isString']=function(_0x5a059a){return'string'==typeof _0x5a059a||_0x5a059a instanceof String;},_0x468e6a['isObject']=function(_0x3db0a7){return _0x3db0a7&&'object'==typeof _0x3db0a7;},_0x468e6a['isset']=_0x468e6a['isSet']=function(_0x418008,_0x33854d){var _0x4667bc=_0x418008[_0x33854d];return!(null==_0x4667bc||!Object['hasOwnProperty']['call'](_0x418008,_0x33854d))&&('object'!=typeof _0x4667bc||(Array['isArray'](_0x4667bc)?_0x4667bc['length']:Object['keys'](_0x4667bc)['length'])>0x0);},_0x468e6a['Buffer']=(function(){try{var _0x1c173c=_0x468e6a['global']['Buffer'];return _0x1c173c['prototype']['utf8Write']?_0x1c173c:null;}catch(_0x305f7c){return null;}}()),_0x468e6a['_Buffer_from']=null,_0x468e6a['_Buffer_allocUnsafe']=null,_0x468e6a['newBuffer']=function(_0xa61a27){return'number'==typeof _0xa61a27?_0x468e6a['Buffer']?_0x468e6a['_Buffer_allocUnsafe'](_0xa61a27):new _0x468e6a['Array'](_0xa61a27):_0x468e6a['Buffer']?_0x468e6a['_Buffer_from'](_0xa61a27):'undefined'==typeof Uint8Array?_0xa61a27:new Uint8Array(_0xa61a27);},_0x468e6a['Array']='undefined'!=typeof Uint8Array?Uint8Array:Array,_0x468e6a['Long']=_0x468e6a['global']['dcodeIO']&&_0x468e6a['global']['dcodeIO']['Long']||_0x468e6a['global']['Long']||(function(){try{var _0x1470eb=VS();return _0x1470eb&&_0x1470eb['isLong']?_0x1470eb:null;}catch(_0x2ac4c7){return null;}}()),_0x468e6a['key2Re']=/^true|false|0|1$/,_0x468e6a['key32Re']=/^-?(?:0|[1-9][0-9]*)$/,_0x468e6a['key64Re']=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,_0x468e6a['longToHash']=function(_0x3e4033){return _0x3e4033?_0x468e6a['LongBits']['from'](_0x3e4033)['toHash']():_0x468e6a['LongBits']['zeroHash'];},_0x468e6a['longFromHash']=function(_0x5d14e6,_0x2204d8){var _0x40a949=_0x468e6a['LongBits']['fromHash'](_0x5d14e6);return _0x468e6a['Long']?_0x468e6a['Long']['fromBits'](_0x40a949['lo'],_0x40a949['hi'],_0x2204d8):_0x40a949['toNumber'](Boolean(_0x2204d8));},_0x468e6a['merge']=_0x406d01,_0x468e6a['nestingLimit']=0x20,_0x468e6a['recursionLimit']=0x64,_0x468e6a['makeProp']=function(_0x5985f0,_0x59e3a0){Object['defineProperty'](_0x5985f0,_0x59e3a0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0});},_0x468e6a['lcFirst']=function(_0x1f38e5){return _0x1f38e5['charAt'](0x0)['toLowerCase']()+_0x1f38e5['substring'](0x1);},_0x468e6a['newError']=_0x3585ce,_0x468e6a['ProtocolError']=_0x3585ce('ProtocolError'),_0x468e6a['oneOfGetter']=function(_0x4bc373){for(var _0x387d66={},_0x4e9f05=0x0;_0x4e9f05<_0x4bc373['length'];++_0x4e9f05)_0x387d66[_0x4bc373[_0x4e9f05]]=0x1;return function(){for(var _0x8aba30=Object['keys'](this),_0x3ec31b=_0x8aba30['length']-0x1;_0x3ec31b>-0x1;--_0x3ec31b)if(0x1===_0x387d66[_0x8aba30[_0x3ec31b]]&&void 0x0!==this[_0x8aba30[_0x3ec31b]]&&null!==this[_0x8aba30[_0x3ec31b]])return _0x8aba30[_0x3ec31b];};},_0x468e6a['oneOfSetter']=function(_0x4f2ed8){return function(_0x188de1){for(var _0x2e7dbb=0x0;_0x2e7dbb<_0x4f2ed8['length'];++_0x2e7dbb)_0x4f2ed8[_0x2e7dbb]!==_0x188de1&&delete this[_0x4f2ed8[_0x2e7dbb]];};},_0x468e6a['toJSONOptions']={'longs':String,'enums':String,'bytes':String,'json':!0x0},_0x468e6a['_configure']=function(){var _0x537099=_0x468e6a['Buffer'];_0x537099?(_0x468e6a['_Buffer_from']=_0x537099['from']!==Uint8Array['from']&&_0x537099['from']||function(_0x4aeceb,_0x3d6a0f){return new _0x537099(_0x4aeceb,_0x3d6a0f);},_0x468e6a['_Buffer_allocUnsafe']=_0x537099['allocUnsafe']||function(_0x495df4){return new _0x537099(_0x495df4);}):_0x468e6a['_Buffer_from']=_0x468e6a['_Buffer_allocUnsafe']=null;};}),HS=Yn((_0xd2e482,_0x212bc8)=>{_0x212bc8['exports']=_0x2da7f1;var _0x217712,_0x22e92e=BS(),_0x5c4107=_0x22e92e['LongBits'],_0x46c788=_0x22e92e['base64'],_0xbab818=_0x22e92e['utf8'];function _0x373842(_0x38d038,_0x223749,_0x3942a5){this['fn']=_0x38d038,this['len']=_0x223749,this['next']=void 0x0,this['val']=_0x3942a5;}function _0x119927(){}function _0x1385c7(_0x530782){this['head']=_0x530782['head'],this['tail']=_0x530782['tail'],this['len']=_0x530782['len'],this['next']=_0x530782['states'];}function _0x2da7f1(){this['len']=0x0,this['head']=new _0x373842(_0x119927,0x0,0x0),this['tail']=this['head'],this['states']=null;}var _0x7d4795=function(){return _0x22e92e['Buffer']?function(){return(_0x2da7f1['create']=function(){return new _0x217712();})();}:function(){return new _0x2da7f1();};};function _0x55eae3(_0x21dea0,_0x18f90b,_0x4cb060){_0x18f90b[_0x4cb060]=0xff&_0x21dea0;}function _0x32d79c(_0x527acc,_0xc49b03){this['len']=_0x527acc,this['next']=void 0x0,this['val']=_0xc49b03;}function _0x8c0ed6(_0x3a09b4,_0x2e4b47,_0x3cf699){for(var _0x512496=_0x3a09b4['lo'],_0x5541a5=_0x3a09b4['hi'];_0x5541a5;)_0x2e4b47[_0x3cf699++]=0x7f&_0x512496|0x80,_0x512496=(_0x512496>>>0x7|_0x5541a5<<0x19)>>>0x0,_0x5541a5>>>=0x7;for(;_0x512496>0x7f;)_0x2e4b47[_0x3cf699++]=0x7f&_0x512496|0x80,_0x512496>>>=0x7;_0x2e4b47[_0x3cf699++]=_0x512496;}function _0x202457(_0x3a77c2,_0x161add,_0x17fe8d){_0x161add[_0x17fe8d]=0xff&_0x3a77c2,_0x161add[_0x17fe8d+0x1]=_0x3a77c2>>>0x8&0xff,_0x161add[_0x17fe8d+0x2]=_0x3a77c2>>>0x10&0xff,_0x161add[_0x17fe8d+0x3]=_0x3a77c2>>>0x18;}_0x2da7f1['create']=_0x7d4795(),_0x2da7f1['alloc']=function(_0x42e4b6){return new _0x22e92e['Array'](_0x42e4b6);},_0x22e92e['Array']!==Array&&(_0x2da7f1['alloc']=_0x22e92e['pool'](_0x2da7f1['alloc'],_0x22e92e['Array']['prototype']['subarray'])),_0x2da7f1['prototype']['_push']=function(_0x58ba47,_0x18bc3d,_0x220438){return this['tail']=this['tail']['next']=new _0x373842(_0x58ba47,_0x18bc3d,_0x220438),this['len']+=_0x18bc3d,this;},_0x32d79c['prototype']=Object['create'](_0x373842['prototype']),_0x32d79c['prototype']['fn']=function(_0x2fc950,_0x3707cc,_0x2c8667){for(;_0x2fc950>0x7f;)_0x3707cc[_0x2c8667++]=0x7f&_0x2fc950|0x80,_0x2fc950>>>=0x7;_0x3707cc[_0x2c8667]=_0x2fc950;},_0x2da7f1['prototype']['uint32']=function(_0x48b70a){return this['len']+=(this['tail']=this['tail']['next']=new _0x32d79c((_0x48b70a>>>=0x0)<0x80?0x1:_0x48b70a<0x4000?0x2:_0x48b70a<0x200000?0x3:_0x48b70a<0x10000000?0x4:0x5,_0x48b70a))['len'],this;},_0x2da7f1['prototype']['int32']=function(_0x446f3d){return(_0x446f3d|=0x0)<0x0?this['_push'](_0x8c0ed6,0xa,_0x5c4107['fromNumber'](_0x446f3d)):this['uint32'](_0x446f3d);},_0x2da7f1['prototype']['sint32']=function(_0x281473){return this['uint32']((_0x281473<<0x1^_0x281473>>0x1f)>>>0x0);},_0x2da7f1['prototype']['uint64']=function(_0x27d893){var _0x584a92=_0x5c4107['from'](_0x27d893);return this['_push'](_0x8c0ed6,_0x584a92['length'](),_0x584a92);},_0x2da7f1['prototype']['int64']=_0x2da7f1['prototype']['uint64'],_0x2da7f1['prototype']['sint64']=function(_0x544ca6){var _0xd2f6db=_0x5c4107['from'](_0x544ca6)['zzEncode']();return this['_push'](_0x8c0ed6,_0xd2f6db['length'](),_0xd2f6db);},_0x2da7f1['prototype']['bool']=function(_0x279858){return this['_push'](_0x55eae3,0x1,_0x279858?0x1:0x0);},_0x2da7f1['prototype']['fixed32']=function(_0x2200bc){return this['_push'](_0x202457,0x4,_0x2200bc>>>0x0);},_0x2da7f1['prototype']['sfixed32']=_0x2da7f1['prototype']['fixed32'],_0x2da7f1['prototype']['fixed64']=function(_0x49919e){var _0x46e648=_0x5c4107['from'](_0x49919e);return this['_push'](_0x202457,0x4,_0x46e648['lo'])['_push'](_0x202457,0x4,_0x46e648['hi']);},_0x2da7f1['prototype']['sfixed64']=_0x2da7f1['prototype']['fixed64'],_0x2da7f1['prototype']['float']=function(_0x250d6b){return this['_push'](_0x22e92e['float']['writeFloatLE'],0x4,_0x250d6b);},_0x2da7f1['prototype']['double']=function(_0x10f700){return this['_push'](_0x22e92e['float']['writeDoubleLE'],0x8,_0x10f700);};var _0x3ff7ab=_0x22e92e['Array']['prototype']['set']?function(_0x4ff9e3,_0x53fd12,_0x3a411e){_0x53fd12['set'](_0x4ff9e3,_0x3a411e);}:function(_0x53b450,_0x57ec29,_0x2b1848){for(var _0x7b5ae3=0x0;_0x7b5ae3<_0x53b450['length'];++_0x7b5ae3)_0x57ec29[_0x2b1848+_0x7b5ae3]=_0x53b450[_0x7b5ae3];};_0x2da7f1['prototype']['bytes']=function(_0x492981){var _0x3e52cc=_0x492981['length']>>>0x0;if(!_0x3e52cc)return this['_push'](_0x55eae3,0x1,0x0);if(_0x22e92e['isString'](_0x492981)){var _0x598093=_0x2da7f1['alloc'](_0x3e52cc=_0x46c788['length'](_0x492981));_0x46c788['decode'](_0x492981,_0x598093,0x0),_0x492981=_0x598093;}return this['uint32'](_0x3e52cc)['_push'](_0x3ff7ab,_0x3e52cc,_0x492981);},_0x2da7f1['prototype']['string']=function(_0xeeb888){var _0x3a34c3=_0xbab818['length'](_0xeeb888);return _0x3a34c3?this['uint32'](_0x3a34c3)['_push'](_0xbab818['write'],_0x3a34c3,_0xeeb888):this['_push'](_0x55eae3,0x1,0x0);},_0x2da7f1['prototype']['fork']=function(){return this['states']=new _0x1385c7(this),this['head']=this['tail']=new _0x373842(_0x119927,0x0,0x0),this['len']=0x0,this;},_0x2da7f1['prototype']['reset']=function(){return this['states']?(this['head']=this['states']['head'],this['tail']=this['states']['tail'],this['len']=this['states']['len'],this['states']=this['states']['next']):(this['head']=this['tail']=new _0x373842(_0x119927,0x0,0x0),this['len']=0x0),this;},_0x2da7f1['prototype']['ldelim']=function(){var _0x32c6cf=this['head'],_0x5e02a5=this['tail'],_0x4294cc=this['len'];return this['reset']()['uint32'](_0x4294cc),_0x4294cc&&(this['tail']['next']=_0x32c6cf['next'],this['tail']=_0x5e02a5,this['len']+=_0x4294cc),this;},_0x2da7f1['prototype']['finish']=function(){for(var _0xaba9a8=this['head']['next'],_0x47ad27=this['constructor']['alloc'](this['len']),_0x3bfd7d=0x0;_0xaba9a8;)_0xaba9a8['fn'](_0xaba9a8['val'],_0x47ad27,_0x3bfd7d),_0x3bfd7d+=_0xaba9a8['len'],_0xaba9a8=_0xaba9a8['next'];return _0x47ad27;},_0x2da7f1['_configure']=function(_0xa157d4){_0x217712=_0xa157d4,_0x2da7f1['create']=_0x7d4795(),_0x217712['_configure']();};}),FS=Yn((_0x2ed030,_0x4860d6)=>{_0x4860d6['exports']=_0x1a512b;var _0x5552c3=HS();(_0x1a512b['prototype']=Object['create'](_0x5552c3['prototype']))['constructor']=_0x1a512b;var _0x55e4ed=BS();function _0x1a512b(){_0x5552c3['call'](this);}function _0x224f63(_0x60dafa,_0x1d3ecf,_0x50ccef){_0x60dafa['length']<0x28?_0x55e4ed['utf8']['write'](_0x60dafa,_0x1d3ecf,_0x50ccef):_0x1d3ecf['utf8Write']?_0x1d3ecf['utf8Write'](_0x60dafa,_0x50ccef):_0x1d3ecf['write'](_0x60dafa,_0x50ccef);}_0x1a512b['_configure']=function(){_0x1a512b['alloc']=_0x55e4ed['_Buffer_allocUnsafe'],_0x1a512b['writeBytesBuffer']=_0x55e4ed['Buffer']&&_0x55e4ed['Buffer']['prototype']instanceof Uint8Array&&'set'===_0x55e4ed['Buffer']['prototype']['set']['name']?function(_0x228892,_0x239fb6,_0x52221d){_0x239fb6['set'](_0x228892,_0x52221d);}:function(_0x4d52f9,_0x5d07e4,_0xa5ecad){if(_0x4d52f9['copy'])_0x4d52f9['copy'](_0x5d07e4,_0xa5ecad,0x0,_0x4d52f9['length']);else{for(var _0x33c48c=0x0;_0x33c48c<_0x4d52f9['length'];)_0x5d07e4[_0xa5ecad++]=_0x4d52f9[_0x33c48c++];}};},_0x1a512b['prototype']['bytes']=function(_0x247338){_0x55e4ed['isString'](_0x247338)&&(_0x247338=_0x55e4ed['_Buffer_from'](_0x247338,'base64'));var _0x1dc538=_0x247338['length']>>>0x0;return this['uint32'](_0x1dc538),_0x1dc538&&this['_push'](_0x1a512b['writeBytesBuffer'],_0x1dc538,_0x247338),this;},_0x1a512b['prototype']['string']=function(_0x5d68bb){var _0x277b96=_0x55e4ed['Buffer']['byteLength'](_0x5d68bb);return this['uint32'](_0x277b96),_0x277b96&&this['_push'](_0x224f63,_0x277b96,_0x5d68bb),this;},_0x1a512b['_configure']();}),ZS=Yn((_0x5eedd7,_0x137595)=>{_0x137595['exports']=_0x3bd223;var _0xfde9bc,_0x3f25b5=BS(),_0xc57597=_0x3f25b5['LongBits'],_0x14e06e=_0x3f25b5['utf8'];function _0x435d48(_0x5f6785,_0x5435bc){return RangeError('index\x20out\x20of\x20range:\x20'+_0x5f6785['pos']+'\x20+\x20'+(_0x5435bc||0x1)+'\x20>\x20'+_0x5f6785['len']);}function _0x3bd223(_0x48b272){this['buf']=_0x48b272,this['pos']=0x0,this['len']=_0x48b272['length'];}var _0x2260e3='undefined'!=typeof Uint8Array?function(_0x2d2739){if(_0x2d2739 instanceof Uint8Array||Array['isArray'](_0x2d2739))return new _0x3bd223(_0x2d2739);throw Error('illegal\x20buffer');}:function(_0x5a2339){if(Array['isArray'](_0x5a2339))return new _0x3bd223(_0x5a2339);throw Error('illegal\x20buffer');},_0x1aa1f3=function(){return _0x3f25b5['Buffer']?function(_0x40ba7b){return(_0x3bd223['create']=function(_0x3f2e86){return _0x3f25b5['Buffer']['isBuffer'](_0x3f2e86)?new _0xfde9bc(_0x3f2e86):_0x2260e3(_0x3f2e86);})(_0x40ba7b);}:_0x2260e3;};function _0x4b2681(){var _0x5641ba=new _0xc57597(0x0,0x0),_0x386365=0x0;if(!(this['len']-this['pos']>0x4)){for(;_0x386365<0x3;++_0x386365){if(this['pos']>=this['len'])throw _0x435d48(this);if(_0x5641ba['lo']=(_0x5641ba['lo']|(0x7f&this['buf'][this['pos']])<<0x7*_0x386365)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x5641ba;}return _0x5641ba['lo']=(_0x5641ba['lo']|(0x7f&this['buf'][this['pos']++])<<0x7*_0x386365)>>>0x0,_0x5641ba;}for(;_0x386365<0x4;++_0x386365)if(_0x5641ba['lo']=(_0x5641ba['lo']|(0x7f&this['buf'][this['pos']])<<0x7*_0x386365)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x5641ba;if(_0x5641ba['lo']=(_0x5641ba['lo']|(0x7f&this['buf'][this['pos']])<<0x1c)>>>0x0,_0x5641ba['hi']=(_0x5641ba['hi']|(0x7f&this['buf'][this['pos']])>>0x4)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x5641ba;if(_0x386365=0x0,this['len']-this['pos']>0x4){for(;_0x386365<0x5;++_0x386365)if(_0x5641ba['hi']=(_0x5641ba['hi']|(0x7f&this['buf'][this['pos']])<<0x7*_0x386365+0x3)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x5641ba;}else for(;_0x386365<0x5;++_0x386365){if(this['pos']>=this['len'])throw _0x435d48(this);if(_0x5641ba['hi']=(_0x5641ba['hi']|(0x7f&this['buf'][this['pos']])<<0x7*_0x386365+0x3)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x5641ba;}throw Error('invalid\x20varint\x20encoding');}function _0x46535e(_0x3b5251,_0x2b69e7){return(_0x3b5251[_0x2b69e7-0x4]|_0x3b5251[_0x2b69e7-0x3]<<0x8|_0x3b5251[_0x2b69e7-0x2]<<0x10|_0x3b5251[_0x2b69e7-0x1]<<0x18)>>>0x0;}function _0x56c350(){if(this['pos']+0x8>this['len'])throw _0x435d48(this,0x8);return new _0xc57597(_0x46535e(this['buf'],this['pos']+=0x4),_0x46535e(this['buf'],this['pos']+=0x4));}_0x3bd223['create']=_0x1aa1f3(),_0x3bd223['prototype']['_slice']=_0x3f25b5['Array']['prototype']['subarray']||_0x3f25b5['Array']['prototype']['slice'],_0x3bd223['prototype']['uint32']=(function(){var _0x12ed1c=0xffffffff;return function(){if(_0x12ed1c=(0x7f&this['buf'][this['pos']])>>>0x0,this['buf'][this['pos']++]<0x80)return _0x12ed1c;if(_0x12ed1c=(_0x12ed1c|(0x7f&this['buf'][this['pos']])<<0x7)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x12ed1c;if(_0x12ed1c=(_0x12ed1c|(0x7f&this['buf'][this['pos']])<<0xe)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x12ed1c;if(_0x12ed1c=(_0x12ed1c|(0x7f&this['buf'][this['pos']])<<0x15)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x12ed1c;if(_0x12ed1c=(_0x12ed1c|(0xf&this['buf'][this['pos']])<<0x1c)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x12ed1c;if((this['pos']+=0x5)>this['len'])throw this['pos']=this['len'],_0x435d48(this,0xa);return _0x12ed1c;};}()),_0x3bd223['prototype']['int32']=function(){return 0x0|this['uint32']();},_0x3bd223['prototype']['sint32']=function(){var _0x291b2e=this['uint32']();return _0x291b2e>>>0x1^-(0x1&_0x291b2e);},_0x3bd223['prototype']['bool']=function(){return 0x0!==this['uint32']();},_0x3bd223['prototype']['fixed32']=function(){if(this['pos']+0x4>this['len'])throw _0x435d48(this,0x4);return _0x46535e(this['buf'],this['pos']+=0x4);},_0x3bd223['prototype']['sfixed32']=function(){if(this['pos']+0x4>this['len'])throw _0x435d48(this,0x4);return 0x0|_0x46535e(this['buf'],this['pos']+=0x4);},_0x3bd223['prototype']['float']=function(){if(this['pos']+0x4>this['len'])throw _0x435d48(this,0x4);var _0x553af2=_0x3f25b5['float']['readFloatLE'](this['buf'],this['pos']);return this['pos']+=0x4,_0x553af2;},_0x3bd223['prototype']['double']=function(){if(this['pos']+0x8>this['len'])throw _0x435d48(this,0x4);var _0x4fed2e=_0x3f25b5['float']['readDoubleLE'](this['buf'],this['pos']);return this['pos']+=0x8,_0x4fed2e;},_0x3bd223['prototype']['bytes']=function(){var _0x57cb52=this['uint32'](),_0x2a513f=this['pos'],_0x1ff95c=this['pos']+_0x57cb52;if(_0x1ff95c>this['len'])throw _0x435d48(this,_0x57cb52);if(this['pos']+=_0x57cb52,Array['isArray'](this['buf']))return this['buf']['slice'](_0x2a513f,_0x1ff95c);if(_0x2a513f===_0x1ff95c){var _0x32ad30=_0x3f25b5['Buffer'];return _0x32ad30?_0x32ad30['alloc'](0x0):new this['buf']['constructor'](0x0);}return this['_slice']['call'](this['buf'],_0x2a513f,_0x1ff95c);},_0x3bd223['prototype']['string']=function(){var _0x573e9e=this['bytes']();return _0x14e06e['read'](_0x573e9e,0x0,_0x573e9e['length']);},_0x3bd223['prototype']['skip']=function(_0x83ddc0){if('number'==typeof _0x83ddc0){if(this['pos']+_0x83ddc0>this['len'])throw _0x435d48(this,_0x83ddc0);this['pos']+=_0x83ddc0;}else do{if(this['pos']>=this['len'])throw _0x435d48(this);}while(0x80&this['buf'][this['pos']++]);return this;},_0x3bd223['recursionLimit']=_0x3f25b5['recursionLimit'],_0x3bd223['prototype']['skipType']=function(_0x2f28aa,_0x3a10df){if(void 0x0===_0x3a10df&&(_0x3a10df=0x0),_0x3a10df>_0x3bd223['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');switch(_0x2f28aa){case 0x0:this['skip']();break;case 0x1:this['skip'](0x8);break;case 0x2:this['skip'](this['uint32']());break;case 0x3:for(;0x4!=(_0x2f28aa=0x7&this['uint32']());)this['skipType'](_0x2f28aa,_0x3a10df+0x1);break;case 0x5:this['skip'](0x4);break;default:throw Error('invalid\x20wire\x20type\x20'+_0x2f28aa+'\x20at\x20offset\x20'+this['pos']);}return this;},_0x3bd223['_configure']=function(_0x1096b2){_0xfde9bc=_0x1096b2,_0x3bd223['create']=_0x1aa1f3(),_0xfde9bc['_configure']();var _0x18c9b3=_0x3f25b5['Long']?'toLong':'toNumber';_0x3f25b5['merge'](_0x3bd223['prototype'],{'int64':function(){return _0x4b2681['call'](this)[_0x18c9b3](!0x1);},'uint64':function(){return _0x4b2681['call'](this)[_0x18c9b3](!0x0);},'sint64':function(){return _0x4b2681['call'](this)['zzDecode']()[_0x18c9b3](!0x1);},'fixed64':function(){return _0x56c350['call'](this)[_0x18c9b3](!0x0);},'sfixed64':function(){return _0x56c350['call'](this)[_0x18c9b3](!0x1);}});};}),GS=Yn((_0x1bc203,_0x4f41e9)=>{_0x4f41e9['exports']=_0x21fda5;var _0x1373fc=ZS();(_0x21fda5['prototype']=Object['create'](_0x1373fc['prototype']))['constructor']=_0x21fda5;var _0x41d866=BS();function _0x21fda5(_0xc12fcb){_0x1373fc['call'](this,_0xc12fcb);}_0x21fda5['_configure']=function(){_0x41d866['Buffer']&&(_0x21fda5['prototype']['_slice']=_0x41d866['Buffer']['prototype']['slice']);},_0x21fda5['prototype']['string']=function(){var _0x2d974e=this['uint32']();return this['buf']['utf8Slice']?this['buf']['utf8Slice'](this['pos'],this['pos']=Math['min'](this['pos']+_0x2d974e,this['len'])):this['buf']['toString']('utf-8',this['pos'],this['pos']=Math['min'](this['pos']+_0x2d974e,this['len']));},_0x21fda5['_configure']();}),XS=Yn((_0x30422c,_0x3aec91)=>{_0x3aec91['exports']=_0x5451e6;var _0x5a5c7e=BS();function _0x5451e6(_0x15cd8d,_0x18f37c,_0x2b17f6){if('function'!=typeof _0x15cd8d)throw TypeError('rpcImpl\x20must\x20be\x20a\x20function');_0x5a5c7e['EventEmitter']['call'](this),this['rpcImpl']=_0x15cd8d,this['requestDelimited']=Boolean(_0x18f37c),this['responseDelimited']=Boolean(_0x2b17f6);}(_0x5451e6['prototype']=Object['create'](_0x5a5c7e['EventEmitter']['prototype']))['constructor']=_0x5451e6,_0x5451e6['prototype']['rpcCall']=function _0xbb0b7(_0x3d8cef,_0x1667b2,_0x2bf4e7,_0x5d89f1,_0x58787e){if(!_0x5d89f1)throw TypeError('request\x20must\x20be\x20specified');var _0x433f71=this;if(!_0x58787e)return _0x5a5c7e['asPromise'](_0xbb0b7,_0x433f71,_0x3d8cef,_0x1667b2,_0x2bf4e7,_0x5d89f1);if(_0x433f71['rpcImpl'])try{return _0x433f71['rpcImpl'](_0x3d8cef,_0x1667b2[_0x433f71['requestDelimited']?'encodeDelimited':'encode'](_0x5d89f1)['finish'](),function(_0x4f8358,_0x29c14f){if(_0x4f8358)return _0x433f71['emit']('error',_0x4f8358,_0x3d8cef),_0x58787e(_0x4f8358);if(null!==_0x29c14f){if(!(_0x29c14f instanceof _0x2bf4e7))try{_0x29c14f=_0x2bf4e7[_0x433f71['responseDelimited']?'decodeDelimited':'decode'](_0x29c14f);}catch(_0x105a21){return _0x433f71['emit']('error',_0x105a21,_0x3d8cef),_0x58787e(_0x105a21);}return _0x433f71['emit']('data',_0x29c14f,_0x3d8cef),_0x58787e(null,_0x29c14f);}_0x433f71['end'](!0x0);});}catch(_0x5ac7b7){return _0x433f71['emit']('error',_0x5ac7b7,_0x3d8cef),void setTimeout(function(){_0x58787e(_0x5ac7b7);},0x0);}else setTimeout(function(){_0x58787e(Error('already\x20ended'));},0x0);},_0x5451e6['prototype']['end']=function(_0x5ddb95){return this['rpcImpl']&&(_0x5ddb95||this['rpcImpl'](null,null,null),this['rpcImpl']=null,this['emit']('end')['off']()),this;};}),qS=Yn(_0x3f1cb4=>{_0x3f1cb4['Service']=XS();}),WS=Yn((_0x18b1de,_0x24fad7)=>{_0x24fad7['exports']=Object['create'](null);}),zS=Yn(_0xb3befd=>{var _0x351c7c=_0xb3befd;function _0x1c43a8(){_0x351c7c['util']['_configure'](),_0x351c7c['Writer']['_configure'](_0x351c7c['BufferWriter']),_0x351c7c['Reader']['_configure'](_0x351c7c['BufferReader']);}_0x351c7c['build']='minimal',_0x351c7c['Writer']=HS(),_0x351c7c['BufferWriter']=FS(),_0x351c7c['Reader']=ZS(),_0x351c7c['BufferReader']=GS(),_0x351c7c['util']=BS(),_0x351c7c['rpc']=qS(),_0x351c7c['roots']=WS(),_0x351c7c['configure']=_0x1c43a8,_0x1c43a8();}),YS=Jn(Yn((_0x5802eb,_0x22f0df)=>{_0x22f0df['exports']=zS();})(),0x1);const KS=Object['create'](null);KS['open']='0',KS['close']='1',KS['ping']='2',KS['pong']='3',KS['message']='4',KS['upgrade']='5',KS['noop']='6';const JS=Object['create'](null);Object['keys'](KS)['forEach'](_0x1ac165=>{JS[KS[_0x1ac165]]=_0x1ac165;});const tI={'type':'error','data':'parser\x20error'},eI='function'==typeof Blob||'undefined'!=typeof Blob&&'[object\x20BlobConstructor]'===Object['prototype']['toString']['call'](Blob),iI='function'==typeof ArrayBuffer,sI=_0x125d78=>'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x125d78):_0x125d78&&_0x125d78['buffer']instanceof ArrayBuffer,nI=({type:_0x489f98,data:_0x1141f5},_0x130a6f,_0x1ba57b)=>eI&&_0x1141f5 instanceof Blob?_0x130a6f?_0x1ba57b(_0x1141f5):rI(_0x1141f5,_0x1ba57b):iI&&(_0x1141f5 instanceof ArrayBuffer||sI(_0x1141f5))?_0x130a6f?_0x1ba57b(_0x1141f5):rI(new Blob([_0x1141f5]),_0x1ba57b):_0x1ba57b(KS[_0x489f98]+(_0x1141f5||'')),rI=(_0x111a8e,_0x430ab2)=>{const _0x46cda7=new FileReader();return _0x46cda7['onload']=function(){const _0x1a2139=_0x46cda7['result']['split'](',')[0x1];_0x430ab2('b'+(_0x1a2139||''));},_0x46cda7['readAsDataURL'](_0x111a8e);};function oI(_0x26e0e7){return _0x26e0e7 instanceof Uint8Array?_0x26e0e7:_0x26e0e7 instanceof ArrayBuffer?new Uint8Array(_0x26e0e7):new Uint8Array(_0x26e0e7['buffer'],_0x26e0e7['byteOffset'],_0x26e0e7['byteLength']);}let aI;const cI='undefined'==typeof Uint8Array?[]:new Uint8Array(0x100);for(let e=0x0;e<0x40;e++)cI['ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'['charCodeAt'](e)]=e;const lI='function'==typeof ArrayBuffer,hI=(_0x34c45a,_0x31045d)=>{if('string'!=typeof _0x34c45a)return{'type':'message','data':dI(_0x34c45a,_0x31045d)};const _0x3cdf04=_0x34c45a['charAt'](0x0);return'b'===_0x3cdf04?{'type':'message','data':uI(_0x34c45a['substring'](0x1),_0x31045d)}:JS[_0x3cdf04]?_0x34c45a['length']>0x1?{'type':JS[_0x3cdf04],'data':_0x34c45a['substring'](0x1)}:{'type':JS[_0x3cdf04]}:tI;},uI=(_0x2af6e2,_0x33a72f)=>{if(lI){const _0x2b355c=(_0x1f68f7=>{let _0x3a6b35,_0x4d8daf,_0x763dfe,_0x53a616,_0x480be2,_0x3a3525=0.75*_0x1f68f7['length'],_0x286f81=_0x1f68f7['length'],_0x207bea=0x0;'='===_0x1f68f7[_0x1f68f7['length']-0x1]&&(_0x3a3525--,'='===_0x1f68f7[_0x1f68f7['length']-0x2]&&_0x3a3525--);const _0x5d0f00=new ArrayBuffer(_0x3a3525),_0xb867d8=new Uint8Array(_0x5d0f00);for(_0x3a6b35=0x0;_0x3a6b35<_0x286f81;_0x3a6b35+=0x4)_0x4d8daf=cI[_0x1f68f7['charCodeAt'](_0x3a6b35)],_0x763dfe=cI[_0x1f68f7['charCodeAt'](_0x3a6b35+0x1)],_0x53a616=cI[_0x1f68f7['charCodeAt'](_0x3a6b35+0x2)],_0x480be2=cI[_0x1f68f7['charCodeAt'](_0x3a6b35+0x3)],_0xb867d8[_0x207bea++]=_0x4d8daf<<0x2|_0x763dfe>>0x4,_0xb867d8[_0x207bea++]=(0xf&_0x763dfe)<<0x4|_0x53a616>>0x2,_0xb867d8[_0x207bea++]=(0x3&_0x53a616)<<0x6|0x3f&_0x480be2;return _0x5d0f00;})(_0x2af6e2);return dI(_0x2b355c,_0x33a72f);}return{'base64':!0x0,'data':_0x2af6e2};},dI=(_0xbb19fb,_0x5439b8)=>'blob'===_0x5439b8?_0xbb19fb instanceof Blob?_0xbb19fb:new Blob([_0xbb19fb]):_0xbb19fb instanceof ArrayBuffer?_0xbb19fb:_0xbb19fb['buffer'],fI=String['fromCharCode'](0x1e);function mI(){return new TransformStream({'transform'(_0x47eea8,_0xdf4ee6){!function(_0x436151,_0xc7ef16){eI&&_0x436151['data']instanceof Blob?_0x436151['data']['arrayBuffer']()['then'](oI)['then'](_0xc7ef16):iI&&(_0x436151['data']instanceof ArrayBuffer||sI(_0x436151['data']))?_0xc7ef16(oI(_0x436151['data'])):nI(_0x436151,!0x1,_0x2aabc1=>{aI||(aI=new TextEncoder()),_0xc7ef16(aI['encode'](_0x2aabc1));});}(_0x47eea8,_0xc6050c=>{const _0x5516fd=_0xc6050c['length'];let _0x518c09;if(_0x5516fd<0x7e)_0x518c09=new Uint8Array(0x1),new DataView(_0x518c09['buffer'])['setUint8'](0x0,_0x5516fd);else{if(_0x5516fd<0x10000){_0x518c09=new Uint8Array(0x3);const _0x38b481=new DataView(_0x518c09['buffer']);_0x38b481['setUint8'](0x0,0x7e),_0x38b481['setUint16'](0x1,_0x5516fd);}else{_0x518c09=new Uint8Array(0x9);const _0x24d1ed=new DataView(_0x518c09['buffer']);_0x24d1ed['setUint8'](0x0,0x7f),_0x24d1ed['setBigUint64'](0x1,BigInt(_0x5516fd));}}_0x47eea8['data']&&'string'!=typeof _0x47eea8['data']&&(_0x518c09[0x0]|=0x80),_0xdf4ee6['enqueue'](_0x518c09),_0xdf4ee6['enqueue'](_0xc6050c);});}});}let pI;function gI(_0x2a4e07){return _0x2a4e07['reduce']((_0xebf3b8,_0xa12839)=>_0xebf3b8+_0xa12839['length'],0x0);}function OI(_0x2f9b71,_0x51614b){if(_0x2f9b71[0x0]['length']===_0x51614b)return _0x2f9b71['shift']();const _0x3421fa=new Uint8Array(_0x51614b);let _0x19a260=0x0;for(let _0x187fd3=0x0;_0x187fd3<_0x51614b;_0x187fd3++)_0x3421fa[_0x187fd3]=_0x2f9b71[0x0][_0x19a260++],_0x19a260===_0x2f9b71[0x0]['length']&&(_0x2f9b71['shift'](),_0x19a260=0x0);return _0x2f9b71['length']&&_0x19a260<_0x2f9b71[0x0]['length']&&(_0x2f9b71[0x0]=_0x2f9b71[0x0]['slice'](_0x19a260)),_0x3421fa;}function wI(_0x339855){if(_0x339855)return function(_0x30e2cb){for(var _0x360f85 in wI['prototype'])_0x30e2cb[_0x360f85]=wI['prototype'][_0x360f85];return _0x30e2cb;}(_0x339855);}wI['prototype']['on']=wI['prototype']['addEventListener']=function(_0xd5fee1,_0x5f0231){return this['_callbacks']=this['_callbacks']||{},(this['_callbacks']['$'+_0xd5fee1]=this['_callbacks']['$'+_0xd5fee1]||[])['push'](_0x5f0231),this;},wI['prototype']['once']=function(_0x5ee995,_0x2a0c5f){function _0x4c25f5(){this['off'](_0x5ee995,_0x4c25f5),_0x2a0c5f['apply'](this,arguments);}return _0x4c25f5['fn']=_0x2a0c5f,this['on'](_0x5ee995,_0x4c25f5),this;},wI['prototype']['off']=wI['prototype']['removeListener']=wI['prototype']['removeAllListeners']=wI['prototype']['removeEventListener']=function(_0x5fdeb6,_0x5eeb01){if(this['_callbacks']=this['_callbacks']||{},0x0==arguments['length'])return this['_callbacks']={},this;var _0x590706,_0x17f95e=this['_callbacks']['$'+_0x5fdeb6];if(!_0x17f95e)return this;if(0x1==arguments['length'])return delete this['_callbacks']['$'+_0x5fdeb6],this;for(var _0x55e074=0x0;_0x55e074<_0x17f95e['length'];_0x55e074++)if((_0x590706=_0x17f95e[_0x55e074])===_0x5eeb01||_0x590706['fn']===_0x5eeb01){_0x17f95e['splice'](_0x55e074,0x1);break;}return 0x0===_0x17f95e['length']&&delete this['_callbacks']['$'+_0x5fdeb6],this;},wI['prototype']['emit']=function(_0x334748){this['_callbacks']=this['_callbacks']||{};for(var _0x34d955=new Array(arguments['length']-0x1),_0x15c897=this['_callbacks']['$'+_0x334748],_0x352313=0x1;_0x352313<arguments['length'];_0x352313++)_0x34d955[_0x352313-0x1]=arguments[_0x352313];if(_0x15c897){_0x352313=0x0;for(var _0x245ce9=(_0x15c897=_0x15c897['slice'](0x0))['length'];_0x352313<_0x245ce9;++_0x352313)_0x15c897[_0x352313]['apply'](this,_0x34d955);}return this;},wI['prototype']['emitReserved']=wI['prototype']['emit'],wI['prototype']['listeners']=function(_0x22d5f1){return this['_callbacks']=this['_callbacks']||{},this['_callbacks']['$'+_0x22d5f1]||[];},wI['prototype']['hasListeners']=function(_0x31a5ec){return!!this['listeners'](_0x31a5ec)['length'];};const bI='function'==typeof Promise&&'function'==typeof Promise['resolve']?_0x3930b3=>Promise['resolve']()['then'](_0x3930b3):(_0x18c307,_0x4279cd)=>_0x4279cd(_0x18c307,0x0),yI='undefined'!=typeof self?self:'undefined'!=typeof window?window:Function('return\x20this')();function vI(_0x138b4b,..._0x257a16){return _0x257a16['reduce']((_0x2fa68a,_0x2a4dde)=>(_0x138b4b['hasOwnProperty'](_0x2a4dde)&&(_0x2fa68a[_0x2a4dde]=_0x138b4b[_0x2a4dde]),_0x2fa68a),{});}const _I=yI['setTimeout'],EI=yI['clearTimeout'];function TI(_0x262ce5,_0x41c931){_0x41c931['useNativeTimers']?(_0x262ce5['setTimeoutFn']=_I['bind'](yI),_0x262ce5['clearTimeoutFn']=EI['bind'](yI)):(_0x262ce5['setTimeoutFn']=yI['setTimeout']['bind'](yI),_0x262ce5['clearTimeoutFn']=yI['clearTimeout']['bind'](yI));}function AI(_0x1f907f){return'string'==typeof _0x1f907f?function(_0x337a17){let _0xaf314c=0x0,_0x363aff=0x0;for(let _0x161e25=0x0,_0x39370f=_0x337a17['length'];_0x161e25<_0x39370f;_0x161e25++)_0xaf314c=_0x337a17['charCodeAt'](_0x161e25),_0xaf314c<0x80?_0x363aff+=0x1:_0xaf314c<0x800?_0x363aff+=0x2:_0xaf314c<0xd800||_0xaf314c>=0xe000?_0x363aff+=0x3:(_0x161e25++,_0x363aff+=0x4);return _0x363aff;}(_0x1f907f):Math['ceil'](1.33*(_0x1f907f['byteLength']||_0x1f907f['size']));}function SI(){return Date['now']()['toString'](0x24)['substring'](0x3)+Math['random']()['toString'](0x24)['substring'](0x2,0x5);}var II=class extends Error{constructor(_0x1e213e,_0x3e9483,_0x273a09){super(_0x1e213e),this['description']=_0x3e9483,this['context']=_0x273a09,this['type']='TransportError';}},kI=class extends wI{constructor(_0x186a50){super(),this['writable']=!0x1,TI(this,_0x186a50),this['opts']=_0x186a50,this['query']=_0x186a50['query'],this['socket']=_0x186a50['socket'],this['supportsBinary']=!_0x186a50['forceBase64'];}['onError'](_0x26fbdf,_0x2a1f42,_0x1be001){return super['emitReserved']('error',new II(_0x26fbdf,_0x2a1f42,_0x1be001)),this;}['open'](){return this['readyState']='opening',this['doOpen'](),this;}['close'](){return'opening'!==this['readyState']&&'open'!==this['readyState']||(this['doClose'](),this['onClose']()),this;}['send'](_0x3e6681){'open'===this['readyState']&&this['write'](_0x3e6681);}['onOpen'](){this['readyState']='open',this['writable']=!0x0,super['emitReserved']('open');}onData(_0x152169){const _0x2cee19=hI(_0x152169,this['socket']['binaryType']);this['onPacket'](_0x2cee19);}onPacket(_0xcae715){super['emitReserved']('packet',_0xcae715);}['onClose'](_0x5b46fe){this['readyState']='closed',super['emitReserved']('close',_0x5b46fe);}['pause'](_0x46c4b8){}createUri(_0x256bab,_0x2c5786={}){return _0x256bab+'://'+this['_hostname']()+this['_port']()+this['opts']['path']+this['_query'](_0x2c5786);}_hostname(){const _0x50604f=this['opts']['hostname'];return-0x1===_0x50604f['indexOf'](':')?_0x50604f:'['+_0x50604f+']';}_port(){return this['opts']['port']&&(this['opts']['secure']&&0x1bb!==Number(this['opts']['port'])||!this['opts']['secure']&&0x50!==Number(this['opts']['port']))?':'+this['opts']['port']:'';}['_query'](_0x17503c){const _0x57f225=function(_0x44bf42){let _0x13ebf6='';for(let _0xe46962 in _0x44bf42)_0x44bf42['hasOwnProperty'](_0xe46962)&&(_0x13ebf6['length']&&(_0x13ebf6+='&'),_0x13ebf6+=encodeURIComponent(_0xe46962)+'='+encodeURIComponent(_0x44bf42[_0xe46962]));return _0x13ebf6;}(_0x17503c);return _0x57f225['length']?'?'+_0x57f225:'';}},xI=class extends kI{constructor(){super(...arguments),this['_polling']=!0x1;}get['name'](){return'polling';}['doOpen'](){this['_poll']();}['pause'](_0xda8e69){this['readyState']='pausing';const _0x19683c=()=>{this['readyState']='paused',_0xda8e69();};if(this['_polling']||!this['writable']){let _0x46652e=0x0;this['_polling']&&(_0x46652e++,this['once']('pollComplete',function(){--_0x46652e||_0x19683c();})),this['writable']||(_0x46652e++,this['once']('drain',function(){--_0x46652e||_0x19683c();}));}else _0x19683c();}['_poll'](){this['_polling']=!0x0,this['doPoll'](),this['emitReserved']('poll');}onData(_0x241268){((_0x70f529,_0x4f06bf)=>{const _0x500524=_0x70f529['split'](fI),_0x25fb37=[];for(let _0x31708a=0x0;_0x31708a<_0x500524['length'];_0x31708a++){const _0xce0a6b=hI(_0x500524[_0x31708a],_0x4f06bf);if(_0x25fb37['push'](_0xce0a6b),'error'===_0xce0a6b['type'])break;}return _0x25fb37;})(_0x241268,this['socket']['binaryType'])['forEach'](_0x2afe1f=>{if('opening'===this['readyState']&&'open'===_0x2afe1f['type']&&this['onOpen'](),'close'===_0x2afe1f['type'])return this['onClose']({'description':'transport\x20closed\x20by\x20the\x20server'}),!0x1;this['onPacket'](_0x2afe1f);}),'closed'!==this['readyState']&&(this['_polling']=!0x1,this['emitReserved']('pollComplete'),'open'===this['readyState']&&this['_poll']());}['doClose'](){const _0x2c3b13=()=>{this['write']([{'type':'close'}]);};'open'===this['readyState']?_0x2c3b13():this['once']('open',_0x2c3b13);}write(_0x5a841d){this['writable']=!0x1,((_0x329dc0,_0x2fb383)=>{const _0x343cc6=_0x329dc0['length'],_0x2262a5=new Array(_0x343cc6);let _0xc4f10f=0x0;_0x329dc0['forEach']((_0x360ba9,_0x2f4559)=>{nI(_0x360ba9,!0x1,_0x859cd9=>{_0x2262a5[_0x2f4559]=_0x859cd9,++_0xc4f10f===_0x343cc6&&_0x2fb383(_0x2262a5['join'](fI));});});})(_0x5a841d,_0x5dfde8=>{this['doWrite'](_0x5dfde8,()=>{this['writable']=!0x0,this['emitReserved']('drain');});});}['uri'](){const _0xfa4c18=this['opts']['secure']?'https':'http',_0x1e3a66=this['query']||{};return!0x1!==this['opts']['timestampRequests']&&(_0x1e3a66[this['opts']['timestampParam']]=SI()),this['supportsBinary']||_0x1e3a66['sid']||(_0x1e3a66['b64']=0x1),this['createUri'](_0xfa4c18,_0x1e3a66);}};let CI=!0x1;try{CI='undefined'!=typeof XMLHttpRequest&&'withCredentials'in new XMLHttpRequest();}catch(_0xd7fa20){}const RI=CI;function PI(){}var NI=class extends xI{constructor(_0x53a43d){if(super(_0x53a43d),'undefined'!=typeof location){const _0x40a1b1='https:'===location['protocol'];let _0x1868d1=location['port'];_0x1868d1||(_0x1868d1=_0x40a1b1?'443':'80'),this['xd']='undefined'!=typeof location&&_0x53a43d['hostname']!==location['hostname']||_0x1868d1!==_0x53a43d['port'];}}doWrite(_0x51f737,_0x4728d0){const _0x2535a9=this['request']({'method':'POST','data':_0x51f737});_0x2535a9['on']('success',_0x4728d0),_0x2535a9['on']('error',(_0x53eb09,_0x27c9a8)=>{this['onError']('xhr\x20post\x20error',_0x53eb09,_0x27c9a8);});}['doPoll'](){const _0x4012dd=this['request']();_0x4012dd['on']('data',this['onData']['bind'](this)),_0x4012dd['on']('error',(_0x408db7,_0x31c8ae)=>{this['onError']('xhr\x20poll\x20error',_0x408db7,_0x31c8ae);}),this['pollXhr']=_0x4012dd;}},MI=class Request extends wI{constructor(_0x492e8f,_0x380e3f,_0x4954b3){super(),this['createRequest']=_0x492e8f,TI(this,_0x4954b3),this['_opts']=_0x4954b3,this['_method']=_0x4954b3['method']||'GET',this['_uri']=_0x380e3f,this['_data']=void 0x0!==_0x4954b3['data']?_0x4954b3['data']:null,this['_create']();}_create(){var _0xe014dc;const _0x2bed09=vI(this['_opts'],'agent','pfx','key','passphrase','cert','ca','ciphers','rejectUnauthorized','autoUnref');_0x2bed09['xdomain']=!!this['_opts']['xd'];const _0x54303a=this['_xhr']=this['createRequest'](_0x2bed09);try{_0x54303a['open'](this['_method'],this['_uri'],!0x0);try{if(this['_opts']['extraHeaders']){_0x54303a['setDisableHeaderCheck']&&_0x54303a['setDisableHeaderCheck'](!0x0);for(let _0x39aec0 in this['_opts']['extraHeaders'])this['_opts']['extraHeaders']['hasOwnProperty'](_0x39aec0)&&_0x54303a['setRequestHeader'](_0x39aec0,this['_opts']['extraHeaders'][_0x39aec0]);}}catch(_0x128b5a){}if('POST'===this['_method'])try{_0x54303a['setRequestHeader']('Content-type','text/plain;charset=UTF-8');}catch(_0x412d34){}try{_0x54303a['setRequestHeader']('Accept','*/*');}catch(_0x1596b8){}null===(_0xe014dc=this['_opts']['cookieJar'])||void 0x0===_0xe014dc||_0xe014dc['addCookies'](_0x54303a),'withCredentials'in _0x54303a&&(_0x54303a['withCredentials']=this['_opts']['withCredentials']),this['_opts']['requestTimeout']&&(_0x54303a['timeout']=this['_opts']['requestTimeout']),_0x54303a['onreadystatechange']=()=>{var _0x386017;0x3===_0x54303a['readyState']&&(null===(_0x386017=this['_opts']['cookieJar'])||void 0x0===_0x386017||_0x386017['parseCookies'](_0x54303a['getResponseHeader']('set-cookie'))),0x4===_0x54303a['readyState']&&(0xc8===_0x54303a['status']||0x4c7===_0x54303a['status']?this['_onLoad']():this['setTimeoutFn'](()=>{this['_onError']('number'==typeof _0x54303a['status']?_0x54303a['status']:0x0);},0x0));},_0x54303a['send'](this['_data']);}catch(_0x14170a){return void this['setTimeoutFn'](()=>{this['_onError'](_0x14170a);},0x0);}'undefined'!=typeof document&&(this['_index']=Request['requestsCount']++,Request['requests'][this['_index']]=this);}['_onError'](_0x216b97){this['emitReserved']('error',_0x216b97,this['_xhr']),this['_cleanup'](!0x0);}['_cleanup'](_0x124ac7){if(void 0x0!==this['_xhr']&&null!==this['_xhr']){if(this['_xhr']['onreadystatechange']=PI,_0x124ac7)try{this['_xhr']['abort']();}catch(_0x4733b2){}'undefined'!=typeof document&&delete Request['requests'][this['_index']],this['_xhr']=null;}}['_onLoad'](){const _0x284f05=this['_xhr']['responseText'];null!==_0x284f05&&(this['emitReserved']('data',_0x284f05),this['emitReserved']('success'),this['_cleanup']());}abort(){this['_cleanup']();}};if(MI['requestsCount']=0x0,MI['requests']={},'undefined'!=typeof document){if('function'==typeof attachEvent)attachEvent('onunload',LI);else'function'==typeof addEventListener&&addEventListener('onpagehide'in yI?'pagehide':'unload',LI,!0x1);}function LI(){for(let _0x22ee73 in MI['requests'])MI['requests']['hasOwnProperty'](_0x22ee73)&&MI['requests'][_0x22ee73]['abort']();}const $I=(function(){const _0x5337b6=DI({'xdomain':!0x1});return _0x5337b6&&null!==_0x5337b6['responseType'];}());function DI(_0x27f699){const _0x47073e=_0x27f699['xdomain'];try{if('undefined'!=typeof XMLHttpRequest&&(!_0x47073e||RI))return new XMLHttpRequest();}catch(_0x3ca374){}if(!_0x47073e)try{return new yI[(['Active']['concat']('Object')['join']('X'))]('Microsoft.XMLHTTP');}catch(_0x4db1af){}}const QI='undefined'!=typeof navigator&&'string'==typeof navigator['product']&&'reactnative'===navigator['product']['toLowerCase']();var jI=class extends kI{get['name'](){return'websocket';}['doOpen'](){const _0x5c91b7=this['uri'](),_0x27ea12=this['opts']['protocols'],_0x2698b3=QI?{}:vI(this['opts'],'agent','perMessageDeflate','pfx','key','passphrase','cert','ca','ciphers','rejectUnauthorized','localAddress','protocolVersion','origin','maxPayload','family','checkServerIdentity');this['opts']['extraHeaders']&&(_0x2698b3['headers']=this['opts']['extraHeaders']);try{this['ws']=this['createSocket'](_0x5c91b7,_0x27ea12,_0x2698b3);}catch(_0xc41d03){return this['emitReserved']('error',_0xc41d03);}this['ws']['binaryType']=this['socket']['binaryType'],this['addEventListeners']();}addEventListeners(){this['ws']['onopen']=()=>{this['opts']['autoUnref']&&this['ws']['_socket']['unref'](),this['onOpen']();},this['ws']['onclose']=_0x32b1e4=>this['onClose']({'description':'websocket\x20connection\x20closed','context':_0x32b1e4}),this['ws']['onmessage']=_0x2335a5=>this['onData'](_0x2335a5['data']),this['ws']['onerror']=_0x4669d5=>this['onError']('websocket\x20error',_0x4669d5);}write(_0x204e42){this['writable']=!0x1;for(let _0x3f43c6=0x0;_0x3f43c6<_0x204e42['length'];_0x3f43c6++){const _0x3ec08b=_0x204e42[_0x3f43c6],_0x492837=_0x3f43c6===_0x204e42['length']-0x1;nI(_0x3ec08b,this['supportsBinary'],_0x389d4a=>{try{this['doWrite'](_0x3ec08b,_0x389d4a);}catch(_0x391484){}_0x492837&&bI(()=>{this['writable']=!0x0,this['emitReserved']('drain');},this['setTimeoutFn']);});}}['doClose'](){void 0x0!==this['ws']&&(this['ws']['onerror']=()=>{},this['ws']['close'](),this['ws']=null);}['uri'](){const _0x58692f=this['opts']['secure']?'wss':'ws',_0x492adc=this['query']||{};return this['opts']['timestampRequests']&&(_0x492adc[this['opts']['timestampParam']]=SI()),this['supportsBinary']||(_0x492adc['b64']=0x1),this['createUri'](_0x58692f,_0x492adc);}};const UI=yI['WebSocket']||yI['MozWebSocket'],VI={'websocket':class extends jI{createSocket(_0x170e14,_0x5e26e1,_0x2fc8a3){return QI?new UI(_0x170e14,_0x5e26e1,_0x2fc8a3):_0x5e26e1?new UI(_0x170e14,_0x5e26e1):new UI(_0x170e14);}doWrite(_0x337f69,_0x3c3302){this['ws']['send'](_0x3c3302);}},'webtransport':class extends kI{get['name'](){return'webtransport';}['doOpen'](){try{this['_transport']=new WebTransport(this['createUri']('https'),this['opts']['transportOptions'][this['name']]);}catch(_0x250263){return this['emitReserved']('error',_0x250263);}this['_transport']['closed']['then'](()=>{this['onClose']();})['catch'](_0x16923e=>{this['onError']('webtransport\x20error',_0x16923e);}),this['_transport']['ready']['then'](()=>{this['_transport']['createBidirectionalStream']()['then'](_0x28a942=>{const _0xb53fc2=function(_0x375b25,_0xc9509f){pI||(pI=new TextDecoder());const _0x1aafb4=[];let _0x4b5139=0x0,_0x8c182a=-0x1,_0x51edc4=!0x1;return new TransformStream({'transform'(_0x473046,_0x1e317e){for(_0x1aafb4['push'](_0x473046);;){if(0x0===_0x4b5139){if(gI(_0x1aafb4)<0x1)break;const _0x50d9aa=OI(_0x1aafb4,0x1);_0x51edc4=!(0x80&~_0x50d9aa[0x0]),_0x8c182a=0x7f&_0x50d9aa[0x0],_0x4b5139=_0x8c182a<0x7e?0x3:0x7e===_0x8c182a?0x1:0x2;}else{if(0x1===_0x4b5139){if(gI(_0x1aafb4)<0x2)break;const _0x5bb641=OI(_0x1aafb4,0x2);_0x8c182a=new DataView(_0x5bb641['buffer'],_0x5bb641['byteOffset'],_0x5bb641['length'])['getUint16'](0x0),_0x4b5139=0x3;}else{if(0x2===_0x4b5139){if(gI(_0x1aafb4)<0x8)break;const _0x63d811=OI(_0x1aafb4,0x8),_0x2ba771=new DataView(_0x63d811['buffer'],_0x63d811['byteOffset'],_0x63d811['length']),_0x8c1f14=_0x2ba771['getUint32'](0x0);if(_0x8c1f14>Math['pow'](0x2,0x15)-0x1){_0x1e317e['enqueue'](tI);break;}_0x8c182a=_0x8c1f14*Math['pow'](0x2,0x20)+_0x2ba771['getUint32'](0x4),_0x4b5139=0x3;}else{if(gI(_0x1aafb4)<_0x8c182a)break;const _0x51b584=OI(_0x1aafb4,_0x8c182a);_0x1e317e['enqueue'](hI(_0x51edc4?_0x51b584:pI['decode'](_0x51b584),_0xc9509f)),_0x4b5139=0x0;}}}if(0x0===_0x8c182a||_0x8c182a>_0x375b25){_0x1e317e['enqueue'](tI);break;}}}});}(Number['MAX_SAFE_INTEGER'],this['socket']['binaryType']),_0x9b9c21=_0x28a942['readable']['pipeThrough'](_0xb53fc2)['getReader'](),_0x41b72d=mI();_0x41b72d['readable']['pipeTo'](_0x28a942['writable']),this['_writer']=_0x41b72d['writable']['getWriter']();const _0x19e42d=()=>{_0x9b9c21['read']()['then'](({done:_0xadec02,value:_0x44592d})=>{_0xadec02||(this['onPacket'](_0x44592d),_0x19e42d());})['catch'](_0x59b250=>{});};_0x19e42d();const _0x539ba1={'type':'open'};this['query']['sid']&&(_0x539ba1['data']='{\x22sid\x22:\x22'+this['query']['sid']+'\x22}'),this['_writer']['write'](_0x539ba1)['then'](()=>this['onOpen']());});});}write(_0x5f3846){this['writable']=!0x1;for(let _0x164299=0x0;_0x164299<_0x5f3846['length'];_0x164299++){const _0x467176=_0x5f3846[_0x164299],_0x4e9011=_0x164299===_0x5f3846['length']-0x1;this['_writer']['write'](_0x467176)['then'](()=>{_0x4e9011&&bI(()=>{this['writable']=!0x0,this['emitReserved']('drain');},this['setTimeoutFn']);});}}['doClose'](){var _0x3e7800;null===(_0x3e7800=this['_transport'])||void 0x0===_0x3e7800||_0x3e7800['close']();}},'polling':class extends NI{constructor(_0x1029fd){super(_0x1029fd);const _0x16412b=_0x1029fd&&_0x1029fd['forceBase64'];this['supportsBinary']=$I&&!_0x16412b;}request(_0x4e2125={}){return Object['assign'](_0x4e2125,{'xd':this['xd']},this['opts']),new MI(DI,this['uri'](),_0x4e2125);}}},BI=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,HI=['source','protocol','authority','userInfo','user','password','host','port','relative','path','directory','file','query','anchor'];function FI(_0x358cb0){if(_0x358cb0['length']>0x1f40)throw'URI\x20too\x20long';const _0x21f177=_0x358cb0,_0x1d5edb=_0x358cb0['indexOf']('['),_0x3e6416=_0x358cb0['indexOf'](']');-0x1!=_0x1d5edb&&-0x1!=_0x3e6416&&(_0x358cb0=_0x358cb0['substring'](0x0,_0x1d5edb)+_0x358cb0['substring'](_0x1d5edb,_0x3e6416)['replace'](/:/g,';')+_0x358cb0['substring'](_0x3e6416,_0x358cb0['length']));let _0x34489b=BI['exec'](_0x358cb0||''),_0x10232f={},_0x28dc02=0xe;for(;_0x28dc02--;)_0x10232f[HI[_0x28dc02]]=_0x34489b[_0x28dc02]||'';return-0x1!=_0x1d5edb&&-0x1!=_0x3e6416&&(_0x10232f['source']=_0x21f177,_0x10232f['host']=_0x10232f['host']['substring'](0x1,_0x10232f['host']['length']-0x1)['replace'](/;/g,':'),_0x10232f['authority']=_0x10232f['authority']['replace']('[','')['replace'](']','')['replace'](/;/g,':'),_0x10232f['ipv6uri']=!0x0),_0x10232f['pathNames']=function(_0x19ede9,_0x9e60f2){const _0x2ea0ca=_0x9e60f2['replace'](/\/{2,9}/g,'/')['split']('/');return'/'!=_0x9e60f2['slice'](0x0,0x1)&&0x0!==_0x9e60f2['length']||_0x2ea0ca['splice'](0x0,0x1),'/'==_0x9e60f2['slice'](-0x1)&&_0x2ea0ca['splice'](_0x2ea0ca['length']-0x1,0x1),_0x2ea0ca;}(0x0,_0x10232f['path']),_0x10232f['queryKey']=function(_0x1e8050,_0x4a323e){const _0x81932d={};return _0x4a323e['replace'](/(?:^|&)([^&=]*)=?([^&]*)/g,function(_0x2a0a44,_0x107050,_0x3d6d1b){_0x107050&&(_0x81932d[_0x107050]=_0x3d6d1b);}),_0x81932d;}(0x0,_0x10232f['query']),_0x10232f;}const ZI='function'==typeof addEventListener&&'function'==typeof removeEventListener,GI=[];ZI&&addEventListener('offline',()=>{GI['forEach'](_0x5398ed=>_0x5398ed());},!0x1);var XI=class SocketWithoutUpgrade extends wI{constructor(_0x1c3b54,_0x16ba3d){if(super(),this['binaryType']='arraybuffer',this['writeBuffer']=[],this['_prevBufferLen']=0x0,this['_pingInterval']=-0x1,this['_pingTimeout']=-0x1,this['_maxPayload']=-0x1,this['_pingTimeoutTime']=0x1/0x0,_0x1c3b54&&'object'==typeof _0x1c3b54&&(_0x16ba3d=_0x1c3b54,_0x1c3b54=null),_0x1c3b54){const _0xb2609a=FI(_0x1c3b54);_0x16ba3d['hostname']=_0xb2609a['host'],_0x16ba3d['secure']='https'===_0xb2609a['protocol']||'wss'===_0xb2609a['protocol'],_0x16ba3d['port']=_0xb2609a['port'],_0xb2609a['query']&&(_0x16ba3d['query']=_0xb2609a['query']);}else _0x16ba3d['host']&&(_0x16ba3d['hostname']=FI(_0x16ba3d['host'])['host']);TI(this,_0x16ba3d),this['secure']=null!=_0x16ba3d['secure']?_0x16ba3d['secure']:'undefined'!=typeof location&&'https:'===location['protocol'],_0x16ba3d['hostname']&&!_0x16ba3d['port']&&(_0x16ba3d['port']=this['secure']?'443':'80'),this['hostname']=_0x16ba3d['hostname']||('undefined'!=typeof location?location['hostname']:'localhost'),this['port']=_0x16ba3d['port']||('undefined'!=typeof location&&location['port']?location['port']:this['secure']?'443':'80'),this['transports']=[],this['_transportsByName']={},_0x16ba3d['transports']['forEach'](t=>{const _0x2bec44=t['prototype']['name'];this['transports']['push'](_0x2bec44),this['_transportsByName'][_0x2bec44]=t;}),this['opts']=Object['assign']({'path':'/engine.io','agent':!0x1,'withCredentials':!0x1,'upgrade':!0x0,'timestampParam':'t','rememberUpgrade':!0x1,'addTrailingSlash':!0x0,'rejectUnauthorized':!0x0,'perMessageDeflate':{'threshold':0x400},'transportOptions':{},'closeOnBeforeunload':!0x1},_0x16ba3d),this['opts']['path']=this['opts']['path']['replace'](/\/$/,'')+(this['opts']['addTrailingSlash']?'/':''),'string'==typeof this['opts']['query']&&(this['opts']['query']=function(_0x4bd04d){let _0x8f13d3={},_0x44f0d0=_0x4bd04d['split']('&');for(let _0x44f323=0x0,_0x429651=_0x44f0d0['length'];_0x44f323<_0x429651;_0x44f323++){let _0x8b954=_0x44f0d0[_0x44f323]['split']('=');_0x8f13d3[decodeURIComponent(_0x8b954[0x0])]=decodeURIComponent(_0x8b954[0x1]);}return _0x8f13d3;}(this['opts']['query'])),ZI&&(this['opts']['closeOnBeforeunload']&&(this['_beforeunloadEventListener']=()=>{this['transport']&&(this['transport']['removeAllListeners'](),this['transport']['close']());},addEventListener('beforeunload',this['_beforeunloadEventListener'],!0x1)),'localhost'!==this['hostname']&&(this['_offlineEventListener']=()=>{this['_onClose']('transport\x20close',{'description':'network\x20connection\x20lost'});},GI['push'](this['_offlineEventListener']))),this['opts']['withCredentials']&&(this['_cookieJar']=void 0x0),this['_open']();}createTransport(_0x34a86a){const _0x2047ac=Object['assign']({},this['opts']['query']);_0x2047ac['EIO']=0x4,_0x2047ac['transport']=_0x34a86a,this['id']&&(_0x2047ac['sid']=this['id']);const _0x4ed840=Object['assign']({},this['opts'],{'query':_0x2047ac,'socket':this,'hostname':this['hostname'],'secure':this['secure'],'port':this['port']},this['opts']['transportOptions'][_0x34a86a]);return new this['_transportsByName'][_0x34a86a](_0x4ed840);}['_open'](){if(0x0===this['transports']['length'])return void this['setTimeoutFn'](()=>{this['emitReserved']('error','No\x20transports\x20available');},0x0);const _0x5d52a3=this['opts']['rememberUpgrade']&&SocketWithoutUpgrade['priorWebsocketSuccess']&&-0x1!==this['transports']['indexOf']('websocket')?'websocket':this['transports'][0x0];this['readyState']='opening';const _0x4138d3=this['createTransport'](_0x5d52a3);_0x4138d3['open'](),this['setTransport'](_0x4138d3);}setTransport(_0x22c486){this['transport']&&this['transport']['removeAllListeners'](),this['transport']=_0x22c486,_0x22c486['on']('drain',this['_onDrain']['bind'](this))['on']('packet',this['_onPacket']['bind'](this))['on']('error',this['_onError']['bind'](this))['on']('close',_0x187dd2=>this['_onClose']('transport\x20close',_0x187dd2));}['onOpen'](){this['readyState']='open',SocketWithoutUpgrade['priorWebsocketSuccess']='websocket'===this['transport']['name'],this['emitReserved']('open'),this['flush']();}_onPacket(_0x4c1f9a){if('opening'===this['readyState']||'open'===this['readyState']||'closing'===this['readyState'])switch(this['emitReserved']('packet',_0x4c1f9a),this['emitReserved']('heartbeat'),_0x4c1f9a['type']){case'open':this['onHandshake'](JSON['parse'](_0x4c1f9a['data']));break;case'ping':this['_sendPacket']('pong'),this['emitReserved']('ping'),this['emitReserved']('pong'),this['_resetPingTimeout']();break;case'error':const _0x450107=new Error('server\x20error');_0x450107['code']=_0x4c1f9a['data'],this['_onError'](_0x450107);break;case'message':this['emitReserved']('data',_0x4c1f9a['data']),this['emitReserved']('message',_0x4c1f9a['data']);}}['onHandshake'](_0x4b3f44){this['emitReserved']('handshake',_0x4b3f44),this['id']=_0x4b3f44['sid'],this['transport']['query']['sid']=_0x4b3f44['sid'],this['_pingInterval']=_0x4b3f44['pingInterval'],this['_pingTimeout']=_0x4b3f44['pingTimeout'],this['_maxPayload']=_0x4b3f44['maxPayload'],this['onOpen'](),'closed'!==this['readyState']&&this['_resetPingTimeout']();}_resetPingTimeout(){this['clearTimeoutFn'](this['_pingTimeoutTimer']);const _0x268a38=this['_pingInterval']+this['_pingTimeout'];this['_pingTimeoutTime']=Date['now']()+_0x268a38,this['_pingTimeoutTimer']=this['setTimeoutFn'](()=>{this['_onClose']('ping\x20timeout');},_0x268a38),this['opts']['autoUnref']&&this['_pingTimeoutTimer']['unref']();}['_onDrain'](){this['writeBuffer']['splice'](0x0,this['_prevBufferLen']),this['_prevBufferLen']=0x0,0x0===this['writeBuffer']['length']?this['emitReserved']('drain'):this['flush']();}['flush'](){if('closed'!==this['readyState']&&this['transport']['writable']&&!this['upgrading']&&this['writeBuffer']['length']){const _0x43a2c0=this['_getWritablePackets']();this['transport']['send'](_0x43a2c0),this['_prevBufferLen']=_0x43a2c0['length'],this['emitReserved']('flush');}}_getWritablePackets(){if(!(this['_maxPayload']&&'polling'===this['transport']['name']&&this['writeBuffer']['length']>0x1))return this['writeBuffer'];let _0x555f97=0x1;for(let _0x2714d5=0x0;_0x2714d5<this['writeBuffer']['length'];_0x2714d5++){const _0x14ed19=this['writeBuffer'][_0x2714d5]['data'];if(_0x14ed19&&(_0x555f97+=AI(_0x14ed19)),_0x2714d5>0x0&&_0x555f97>this['_maxPayload'])return this['writeBuffer']['slice'](0x0,_0x2714d5);_0x555f97+=0x2;}return this['writeBuffer'];}['_hasPingExpired'](){if(!this['_pingTimeoutTime'])return!0x0;const _0x528d43=Date['now']()>this['_pingTimeoutTime'];return _0x528d43&&(this['_pingTimeoutTime']=0x0,bI(()=>{this['_onClose']('ping\x20timeout');},this['setTimeoutFn'])),_0x528d43;}write(_0x263566,_0x30b6a8,_0x27e66f){return this['_sendPacket']('message',_0x263566,_0x30b6a8,_0x27e66f),this;}['send'](_0x4cf044,_0x7e3b43,_0x114128){return this['_sendPacket']('message',_0x4cf044,_0x7e3b43,_0x114128),this;}_sendPacket(_0x3a45e4,_0xd2f202,_0x28514a,_0x20afa3){if('function'==typeof _0xd2f202&&(_0x20afa3=_0xd2f202,_0xd2f202=void 0x0),'function'==typeof _0x28514a&&(_0x20afa3=_0x28514a,_0x28514a=null),'closing'===this['readyState']||'closed'===this['readyState'])return;(_0x28514a=_0x28514a||{})['compress']=!0x1!==_0x28514a['compress'];const _0x119f5f={'type':_0x3a45e4,'data':_0xd2f202,'options':_0x28514a};this['emitReserved']('packetCreate',_0x119f5f),this['writeBuffer']['push'](_0x119f5f),_0x20afa3&&this['once']('flush',_0x20afa3),this['flush']();}['close'](){const _0x5f4811=()=>{this['_onClose']('forced\x20close'),this['transport']['close']();},_0x3cedc6=()=>{this['off']('upgrade',_0x3cedc6),this['off']('upgradeError',_0x3cedc6),_0x5f4811();},_0x27b44a=()=>{this['once']('upgrade',_0x3cedc6),this['once']('upgradeError',_0x3cedc6);};return'opening'!==this['readyState']&&'open'!==this['readyState']||(this['readyState']='closing',this['writeBuffer']['length']?this['once']('drain',()=>{this['upgrading']?_0x27b44a():_0x5f4811();}):this['upgrading']?_0x27b44a():_0x5f4811()),this;}['_onError'](_0x7ab26c){if(SocketWithoutUpgrade['priorWebsocketSuccess']=!0x1,this['opts']['tryAllTransports']&&this['transports']['length']>0x1&&'opening'===this['readyState'])return this['transports']['shift'](),this['_open']();this['emitReserved']('error',_0x7ab26c),this['_onClose']('transport\x20error',_0x7ab26c);}['_onClose'](_0x4af816,_0x374eca){if('opening'===this['readyState']||'open'===this['readyState']||'closing'===this['readyState']){if(this['clearTimeoutFn'](this['_pingTimeoutTimer']),this['transport']['removeAllListeners']('close'),this['transport']['close'](),this['transport']['removeAllListeners'](),ZI&&(this['_beforeunloadEventListener']&&removeEventListener('beforeunload',this['_beforeunloadEventListener'],!0x1),this['_offlineEventListener'])){const _0x13dae7=GI['indexOf'](this['_offlineEventListener']);-0x1!==_0x13dae7&&GI['splice'](_0x13dae7,0x1);}this['readyState']='closed',this['id']=null,this['emitReserved']('close',_0x4af816,_0x374eca),this['writeBuffer']=[],this['_prevBufferLen']=0x0;}}};XI['protocol']=0x4;var qI=class extends XI{constructor(){super(...arguments),this['_upgrades']=[];}['onOpen'](){if(super['onOpen'](),'open'===this['readyState']&&this['opts']['upgrade']){for(let _0x40fd56=0x0;_0x40fd56<this['_upgrades']['length'];_0x40fd56++)this['_probe'](this['_upgrades'][_0x40fd56]);}}['_probe'](_0x4329cd){let _0x96301f=this['createTransport'](_0x4329cd),_0x8dd43b=!0x1;XI['priorWebsocketSuccess']=!0x1;const _0xc10fad=()=>{_0x8dd43b||(_0x96301f['send']([{'type':'ping','data':'probe'}]),_0x96301f['once']('packet',_0x558a50=>{if(!_0x8dd43b){if('pong'===_0x558a50['type']&&'probe'===_0x558a50['data']){if(this['upgrading']=!0x0,this['emitReserved']('upgrading',_0x96301f),!_0x96301f)return;XI['priorWebsocketSuccess']='websocket'===_0x96301f['name'],this['transport']['pause'](()=>{_0x8dd43b||'closed'!==this['readyState']&&(_0x13b329(),this['setTransport'](_0x96301f),_0x96301f['send']([{'type':'upgrade'}]),this['emitReserved']('upgrade',_0x96301f),_0x96301f=null,this['upgrading']=!0x1,this['flush']());});}else{const _0x141970=new Error('probe\x20error');_0x141970['transport']=_0x96301f['name'],this['emitReserved']('upgradeError',_0x141970);}}}));};function _0x5e91ac(){_0x8dd43b||(_0x8dd43b=!0x0,_0x13b329(),_0x96301f['close'](),_0x96301f=null);}const _0x4a8116=_0x327322=>{const _0x5bcceb=new Error('probe\x20error:\x20'+_0x327322);_0x5bcceb['transport']=_0x96301f['name'],_0x5e91ac(),this['emitReserved']('upgradeError',_0x5bcceb);};function _0x1e536f(){_0x4a8116('transport\x20closed');}function _0x6911f(){_0x4a8116('socket\x20closed');}function _0x7d22ae(_0x457186){_0x96301f&&_0x457186['name']!==_0x96301f['name']&&_0x5e91ac();}const _0x13b329=()=>{_0x96301f['removeListener']('open',_0xc10fad),_0x96301f['removeListener']('error',_0x4a8116),_0x96301f['removeListener']('close',_0x1e536f),this['off']('close',_0x6911f),this['off']('upgrading',_0x7d22ae);};_0x96301f['once']('open',_0xc10fad),_0x96301f['once']('error',_0x4a8116),_0x96301f['once']('close',_0x1e536f),this['once']('close',_0x6911f),this['once']('upgrading',_0x7d22ae),-0x1!==this['_upgrades']['indexOf']('webtransport')&&'webtransport'!==_0x4329cd?this['setTimeoutFn'](()=>{_0x8dd43b||_0x96301f['open']();},0xc8):_0x96301f['open']();}['onHandshake'](_0xd3291b){this['_upgrades']=this['_filterUpgrades'](_0xd3291b['upgrades']),super['onHandshake'](_0xd3291b);}_filterUpgrades(_0xcd5dfb){const _0x52db6a=[];for(let _0x245501=0x0;_0x245501<_0xcd5dfb['length'];_0x245501++)~this['transports']['indexOf'](_0xcd5dfb[_0x245501])&&_0x52db6a['push'](_0xcd5dfb[_0x245501]);return _0x52db6a;}},WI=class extends qI{constructor(_0x28cb0c,_0x312e64={}){const _0x4a33cd='object'==typeof _0x28cb0c,_0x729a75=_0x4a33cd?{..._0x28cb0c}:{..._0x312e64};(!_0x729a75['transports']||_0x729a75['transports']&&'string'==typeof _0x729a75['transports'][0x0])&&(_0x729a75['transports']=(_0x729a75['transports']||['polling','websocket','webtransport'])['map'](_0x1b0e7=>VI[_0x1b0e7])['filter'](t=>!!t)),super(_0x4a33cd?_0x729a75:_0x28cb0c,_0x729a75);}};const zI='function'==typeof ArrayBuffer,YI=Object['prototype']['toString'],KI='function'==typeof Blob||'undefined'!=typeof Blob&&'[object\x20BlobConstructor]'===YI['call'](Blob),JI='function'==typeof File||'undefined'!=typeof File&&'[object\x20FileConstructor]'===YI['call'](File);function tk(_0x178dc6){return zI&&(_0x178dc6 instanceof ArrayBuffer||(_0x104338=>'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x104338):_0x104338['buffer']instanceof ArrayBuffer)(_0x178dc6))||KI&&_0x178dc6 instanceof Blob||JI&&_0x178dc6 instanceof File;}function ek(_0x3aa7f,_0xb0804d){if(!_0x3aa7f||'object'!=typeof _0x3aa7f)return!0x1;if(Array['isArray'](_0x3aa7f)){for(let _0xcd87f5=0x0,_0x9b961f=_0x3aa7f['length'];_0xcd87f5<_0x9b961f;_0xcd87f5++)if(ek(_0x3aa7f[_0xcd87f5]))return!0x0;return!0x1;}if(tk(_0x3aa7f))return!0x0;if(_0x3aa7f['toJSON']&&'function'==typeof _0x3aa7f['toJSON']&&0x1===arguments['length'])return ek(_0x3aa7f['toJSON'](),!0x0);for(const _0x38c706 in _0x3aa7f)if(Object['prototype']['hasOwnProperty']['call'](_0x3aa7f,_0x38c706)&&ek(_0x3aa7f[_0x38c706]))return!0x0;return!0x1;}function ik(_0x54cc60){const _0x30a59d=[],_0x39005a=_0x54cc60['data'],_0x1779b4=_0x54cc60;return _0x1779b4['data']=sk(_0x39005a,_0x30a59d),_0x1779b4['attachments']=_0x30a59d['length'],{'packet':_0x1779b4,'buffers':_0x30a59d};}function sk(_0x4a4343,_0x3eefd1){if(!_0x4a4343)return _0x4a4343;if(tk(_0x4a4343)){const _0x99bff8={'_placeholder':!0x0,'num':_0x3eefd1['length']};return _0x3eefd1['push'](_0x4a4343),_0x99bff8;}if(Array['isArray'](_0x4a4343)){const _0x18dd45=new Array(_0x4a4343['length']);for(let _0x1627ec=0x0;_0x1627ec<_0x4a4343['length'];_0x1627ec++)_0x18dd45[_0x1627ec]=sk(_0x4a4343[_0x1627ec],_0x3eefd1);return _0x18dd45;}if('object'==typeof _0x4a4343&&!(_0x4a4343 instanceof Date)){const _0x33082c={};for(const _0x1cd26d in _0x4a4343)Object['prototype']['hasOwnProperty']['call'](_0x4a4343,_0x1cd26d)&&(_0x33082c[_0x1cd26d]=sk(_0x4a4343[_0x1cd26d],_0x3eefd1));return _0x33082c;}return _0x4a4343;}function nk(_0x54511d,_0x394202){return _0x54511d['data']=rk(_0x54511d['data'],_0x394202),delete _0x54511d['attachments'],_0x54511d;}function rk(_0x134851,_0x3823bf){if(!_0x134851)return _0x134851;if(_0x134851&&!0x0===_0x134851['_placeholder']){if('number'==typeof _0x134851['num']&&_0x134851['num']>=0x0&&_0x134851['num']<_0x3823bf['length'])return _0x3823bf[_0x134851['num']];throw new Error('illegal\x20attachments');}if(Array['isArray'](_0x134851)){for(let _0x58c644=0x0;_0x58c644<_0x134851['length'];_0x58c644++)_0x134851[_0x58c644]=rk(_0x134851[_0x58c644],_0x3823bf);}else{if('object'==typeof _0x134851){for(const _0x58afea in _0x134851)Object['prototype']['hasOwnProperty']['call'](_0x134851,_0x58afea)&&(_0x134851[_0x58afea]=rk(_0x134851[_0x58afea],_0x3823bf));}}return _0x134851;}var ok=Kn({'Decoder':()=>hk,'Encoder':()=>lk,'PacketType':()=>ck,'isPacketValid':()=>mk,'protocol':()=>0x5});const ak=['connect','connect_error','disconnect','disconnecting','newListener','removeListener'];var ck;!function(_0x576e08){_0x576e08[_0x576e08['CONNECT']=0x0]='CONNECT',_0x576e08[_0x576e08['DISCONNECT']=0x1]='DISCONNECT',_0x576e08[_0x576e08['EVENT']=0x2]='EVENT',_0x576e08[_0x576e08['ACK']=0x3]='ACK',_0x576e08[_0x576e08['CONNECT_ERROR']=0x4]='CONNECT_ERROR',_0x576e08[_0x576e08['BINARY_EVENT']=0x5]='BINARY_EVENT',_0x576e08[_0x576e08['BINARY_ACK']=0x6]='BINARY_ACK';}(ck||(ck={}));var lk=class{constructor(_0x57a4ae){this['replacer']=_0x57a4ae;}['encode'](_0x1223fa){return _0x1223fa['type']!==ck['EVENT']&&_0x1223fa['type']!==ck['ACK']||!ek(_0x1223fa)?[this['encodeAsString'](_0x1223fa)]:this['encodeAsBinary']({'type':_0x1223fa['type']===ck['EVENT']?ck['BINARY_EVENT']:ck['BINARY_ACK'],'nsp':_0x1223fa['nsp'],'data':_0x1223fa['data'],'id':_0x1223fa['id']});}encodeAsString(_0x59280a){let _0x11c881=''+_0x59280a['type'];return _0x59280a['type']!==ck['BINARY_EVENT']&&_0x59280a['type']!==ck['BINARY_ACK']||(_0x11c881+=_0x59280a['attachments']+'-'),_0x59280a['nsp']&&'/'!==_0x59280a['nsp']&&(_0x11c881+=_0x59280a['nsp']+','),null!=_0x59280a['id']&&(_0x11c881+=_0x59280a['id']),null!=_0x59280a['data']&&(_0x11c881+=JSON['stringify'](_0x59280a['data'],this['replacer'])),_0x11c881;}['encodeAsBinary'](_0xddb0b5){const _0x5dfc82=ik(_0xddb0b5),_0x46363b=this['encodeAsString'](_0x5dfc82['packet']),_0x56194c=_0x5dfc82['buffers'];return _0x56194c['unshift'](_0x46363b),_0x56194c;}},hk=class Decoder$1 extends wI{constructor(_0x4b8427){super(),this['opts']=Object['assign']({'reviver':void 0x0,'maxAttachments':0xa},'function'==typeof _0x4b8427?{'reviver':_0x4b8427}:_0x4b8427);}['add'](_0x543816){let _0xb1fa70;if('string'==typeof _0x543816){if(this['reconstructor'])throw new Error('got\x20plaintext\x20data\x20when\x20reconstructing\x20a\x20packet');_0xb1fa70=this['decodeString'](_0x543816);const _0x36d45d=_0xb1fa70['type']===ck['BINARY_EVENT'];_0x36d45d||_0xb1fa70['type']===ck['BINARY_ACK']?(_0xb1fa70['type']=_0x36d45d?ck['EVENT']:ck['ACK'],this['reconstructor']=new uk(_0xb1fa70),0x0===_0xb1fa70['attachments']&&super['emitReserved']('decoded',_0xb1fa70)):super['emitReserved']('decoded',_0xb1fa70);}else{if(!tk(_0x543816)&&!_0x543816['base64'])throw new Error('Unknown\x20type:\x20'+_0x543816);if(!this['reconstructor'])throw new Error('got\x20binary\x20data\x20when\x20not\x20reconstructing\x20a\x20packet');_0xb1fa70=this['reconstructor']['takeBinaryData'](_0x543816),_0xb1fa70&&(this['reconstructor']=null,super['emitReserved']('decoded',_0xb1fa70));}}decodeString(_0xd056b6){let _0x19248a=0x0;const _0x234d10={'type':Number(_0xd056b6['charAt'](0x0))};if(void 0x0===ck[_0x234d10['type']])throw new Error('unknown\x20packet\x20type\x20'+_0x234d10['type']);if(_0x234d10['type']===ck['BINARY_EVENT']||_0x234d10['type']===ck['BINARY_ACK']){const _0x285f16=_0x19248a+0x1;for(;'-'!==_0xd056b6['charAt'](++_0x19248a)&&_0x19248a!=_0xd056b6['length'];);const _0x33c9f2=_0xd056b6['substring'](_0x285f16,_0x19248a);if(_0x33c9f2!=Number(_0x33c9f2)||'-'!==_0xd056b6['charAt'](_0x19248a))throw new Error('Illegal\x20attachments');const _0x4e0c38=Number(_0x33c9f2);if(!dk(_0x4e0c38)||_0x4e0c38<0x0)throw new Error('Illegal\x20attachments');if(_0x4e0c38>this['opts']['maxAttachments'])throw new Error('too\x20many\x20attachments');_0x234d10['attachments']=_0x4e0c38;}if('/'===_0xd056b6['charAt'](_0x19248a+0x1)){const _0x8c8839=_0x19248a+0x1;for(;++_0x19248a&&','!==_0xd056b6['charAt'](_0x19248a)&&_0x19248a!==_0xd056b6['length'];);_0x234d10['nsp']=_0xd056b6['substring'](_0x8c8839,_0x19248a);}else _0x234d10['nsp']='/';const _0x5ad2f5=_0xd056b6['charAt'](_0x19248a+0x1);if(''!==_0x5ad2f5&&Number(_0x5ad2f5)==_0x5ad2f5){const _0x36accf=_0x19248a+0x1;for(;++_0x19248a;){const _0x38806d=_0xd056b6['charAt'](_0x19248a);if(null==_0x38806d||Number(_0x38806d)!=_0x38806d){--_0x19248a;break;}if(_0x19248a===_0xd056b6['length'])break;}_0x234d10['id']=Number(_0xd056b6['substring'](_0x36accf,_0x19248a+0x1));}if(_0xd056b6['charAt'](++_0x19248a)){const _0x282bbe=this['tryParse'](_0xd056b6['substr'](_0x19248a));if(!Decoder$1['isPayloadValid'](_0x234d10['type'],_0x282bbe))throw new Error('invalid\x20payload');_0x234d10['data']=_0x282bbe;}return _0x234d10;}tryParse(_0x5a960e){try{return JSON['parse'](_0x5a960e,this['opts']['reviver']);}catch(_0x123999){return!0x1;}}static['isPayloadValid'](_0x529ac7,_0x5351f6){switch(_0x529ac7){case ck['CONNECT']:return fk(_0x5351f6);case ck['DISCONNECT']:return void 0x0===_0x5351f6;case ck['CONNECT_ERROR']:return'string'==typeof _0x5351f6||fk(_0x5351f6);case ck['EVENT']:case ck['BINARY_EVENT']:return Array['isArray'](_0x5351f6)&&('number'==typeof _0x5351f6[0x0]||'string'==typeof _0x5351f6[0x0]&&-0x1===ak['indexOf'](_0x5351f6[0x0]));case ck['ACK']:case ck['BINARY_ACK']:return Array['isArray'](_0x5351f6);}}destroy(){this['reconstructor']&&(this['reconstructor']['finishedReconstruction'](),this['reconstructor']=null);}},uk=class{constructor(_0x21a55c){this['packet']=_0x21a55c,this['buffers']=[],this['reconPack']=_0x21a55c;}takeBinaryData(_0x4575c0){if(this['buffers']['push'](_0x4575c0),this['buffers']['length']===this['reconPack']['attachments']){const _0x464508=nk(this['reconPack'],this['buffers']);return this['finishedReconstruction'](),_0x464508;}return null;}finishedReconstruction(){this['reconPack']=null,this['buffers']=[];}};const dk=Number['isInteger']||function(_0x2aad6e){return'number'==typeof _0x2aad6e&&isFinite(_0x2aad6e)&&Math['floor'](_0x2aad6e)===_0x2aad6e;};function fk(_0x4a1425){return'[object\x20Object]'===Object['prototype']['toString']['call'](_0x4a1425);}function mk(_0x3843d7){return'string'==typeof _0x3843d7['nsp']&&function(_0x31d510){return void 0x0===_0x31d510||dk(_0x31d510);}(_0x3843d7['id'])&&function(_0x515623,_0x3c824f){switch(_0x515623){case ck['CONNECT']:return void 0x0===_0x3c824f||fk(_0x3c824f);case ck['DISCONNECT']:return void 0x0===_0x3c824f;case ck['EVENT']:return Array['isArray'](_0x3c824f)&&('number'==typeof _0x3c824f[0x0]||'string'==typeof _0x3c824f[0x0]&&-0x1===ak['indexOf'](_0x3c824f[0x0]));case ck['ACK']:return Array['isArray'](_0x3c824f);case ck['CONNECT_ERROR']:return'string'==typeof _0x3c824f||fk(_0x3c824f);default:return!0x1;}}(_0x3843d7['type'],_0x3843d7['data']);}function pk(_0x5c06ef,_0x4dbd77,_0x4b9fe){return _0x5c06ef['on'](_0x4dbd77,_0x4b9fe),function(){_0x5c06ef['off'](_0x4dbd77,_0x4b9fe);};}const gk=Object['freeze']({'connect':0x1,'connect_error':0x1,'disconnect':0x1,'disconnecting':0x1,'newListener':0x1,'removeListener':0x1});var Ok=class extends wI{constructor(_0xbfd617,_0x13582a,_0x276fde){super(),this['connected']=!0x1,this['recovered']=!0x1,this['receiveBuffer']=[],this['sendBuffer']=[],this['_queue']=[],this['_queueSeq']=0x0,this['ids']=0x0,this['acks']={},this['flags']={},this['io']=_0xbfd617,this['nsp']=_0x13582a,_0x276fde&&_0x276fde['auth']&&(this['auth']=_0x276fde['auth']),this['_opts']=Object['assign']({},_0x276fde),this['io']['_autoConnect']&&this['open']();}get disconnected(){return!this['connected'];}subEvents(){if(this['subs'])return;const _0x58ca4f=this['io'];this['subs']=[pk(_0x58ca4f,'open',this['onopen']['bind'](this)),pk(_0x58ca4f,'packet',this['onpacket']['bind'](this)),pk(_0x58ca4f,'error',this['onerror']['bind'](this)),pk(_0x58ca4f,'close',this['onclose']['bind'](this))];}get active(){return!!this['subs'];}connect(){return this['connected']||(this['subEvents'](),this['io']['_reconnecting']||this['io']['open'](),'open'===this['io']['_readyState']&&this['onopen']()),this;}['open'](){return this['connect']();}['send'](..._0x1b019a){return _0x1b019a['unshift']('message'),this['emit']['apply'](this,_0x1b019a),this;}emit(_0x2193ed,..._0x3c1486){var _0x341feb,_0x55e17c,_0x15e7a5;if(gk['hasOwnProperty'](_0x2193ed))throw new Error('\x22'+_0x2193ed['toString']()+'\x22\x20is\x20a\x20reserved\x20event\x20name');if(_0x3c1486['unshift'](_0x2193ed),this['_opts']['retries']&&!this['flags']['fromQueue']&&!this['flags']['volatile'])return this['_addToQueue'](_0x3c1486),this;const _0x3a21d5={'type':ck['EVENT'],'data':_0x3c1486,'options':{}};if(_0x3a21d5['options']['compress']=!0x1!==this['flags']['compress'],'function'==typeof _0x3c1486[_0x3c1486['length']-0x1]){const _0x221bb5=this['ids']++,_0x1ec5df=_0x3c1486['pop']();this['_registerAckCallback'](_0x221bb5,_0x1ec5df),_0x3a21d5['id']=_0x221bb5;}const _0x4ae6a3=null===(_0x55e17c=null===(_0x341feb=this['io']['engine'])||void 0x0===_0x341feb?void 0x0:_0x341feb['transport'])||void 0x0===_0x55e17c?void 0x0:_0x55e17c['writable'],_0x43796a=this['connected']&&!(null===(_0x15e7a5=this['io']['engine'])||void 0x0===_0x15e7a5?void 0x0:_0x15e7a5['_hasPingExpired']());return this['flags']['volatile']&&!_0x4ae6a3||(_0x43796a?(this['notifyOutgoingListeners'](_0x3a21d5),this['packet'](_0x3a21d5)):this['sendBuffer']['push'](_0x3a21d5)),this['flags']={},this;}_registerAckCallback(_0x4ee03f,_0x9e29be){var _0x15435a;const _0x19aed4=null!==(_0x15435a=this['flags']['timeout'])&&void 0x0!==_0x15435a?_0x15435a:this['_opts']['ackTimeout'];if(void 0x0===_0x19aed4)return void(this['acks'][_0x4ee03f]=_0x9e29be);const _0x51cec9=this['io']['setTimeoutFn'](()=>{delete this['acks'][_0x4ee03f];for(let _0x42a129=0x0;_0x42a129<this['sendBuffer']['length'];_0x42a129++)this['sendBuffer'][_0x42a129]['id']===_0x4ee03f&&this['sendBuffer']['splice'](_0x42a129,0x1);_0x9e29be['call'](this,new Error('operation\x20has\x20timed\x20out'));},_0x19aed4),_0x4d0a98=(..._0x5d1992)=>{this['io']['clearTimeoutFn'](_0x51cec9),_0x9e29be['apply'](this,_0x5d1992);};_0x4d0a98['withError']=!0x0,this['acks'][_0x4ee03f]=_0x4d0a98;}emitWithAck(_0x41c7ae,..._0x466cdf){return new Promise((_0x2d3270,_0x125bf3)=>{const _0x1f02d8=(_0x34b2d0,_0x44942f)=>_0x34b2d0?_0x125bf3(_0x34b2d0):_0x2d3270(_0x44942f);_0x1f02d8['withError']=!0x0,_0x466cdf['push'](_0x1f02d8),this['emit'](_0x41c7ae,..._0x466cdf);});}['_addToQueue'](_0x1fa874){let _0x1769df;'function'==typeof _0x1fa874[_0x1fa874['length']-0x1]&&(_0x1769df=_0x1fa874['pop']());const _0x16518f={'id':this['_queueSeq']++,'tryCount':0x0,'pending':!0x1,'args':_0x1fa874,'flags':Object['assign']({'fromQueue':!0x0},this['flags'])};_0x1fa874['push']((_0x59c3e7,..._0x4bd67c)=>(this['_queue'][0x0],null!==_0x59c3e7?_0x16518f['tryCount']>this['_opts']['retries']&&(this['_queue']['shift'](),_0x1769df&&_0x1769df(_0x59c3e7)):(this['_queue']['shift'](),_0x1769df&&_0x1769df(null,..._0x4bd67c)),_0x16518f['pending']=!0x1,this['_drainQueue']())),this['_queue']['push'](_0x16518f),this['_drainQueue']();}['_drainQueue'](_0xd17f54=!0x1){if(!this['connected']||0x0===this['_queue']['length'])return;const _0x12d4f3=this['_queue'][0x0];_0x12d4f3['pending']&&!_0xd17f54||(_0x12d4f3['pending']=!0x0,_0x12d4f3['tryCount']++,this['flags']=_0x12d4f3['flags'],this['emit']['apply'](this,_0x12d4f3['args']));}packet(_0x4aad58){_0x4aad58['nsp']=this['nsp'],this['io']['_packet'](_0x4aad58);}['onopen'](){'function'==typeof this['auth']?this['auth'](_0x5b2d91=>{this['_sendConnectPacket'](_0x5b2d91);}):this['_sendConnectPacket'](this['auth']);}_sendConnectPacket(_0x57c686){this['packet']({'type':ck['CONNECT'],'data':this['_pid']?Object['assign']({'pid':this['_pid'],'offset':this['_lastOffset']},_0x57c686):_0x57c686});}['onerror'](_0x53ab27){this['connected']||this['emitReserved']('connect_error',_0x53ab27);}['onclose'](_0x412230,_0x578e13){this['connected']=!0x1,delete this['id'],this['emitReserved']('disconnect',_0x412230,_0x578e13),this['_clearAcks']();}['_clearAcks'](){Object['keys'](this['acks'])['forEach'](_0x5d0f43=>{if(!this['sendBuffer']['some'](_0x429e97=>String(_0x429e97['id'])===_0x5d0f43)){const _0x404c57=this['acks'][_0x5d0f43];delete this['acks'][_0x5d0f43],_0x404c57['withError']&&_0x404c57['call'](this,new Error('socket\x20has\x20been\x20disconnected'));}});}onpacket(_0x53803c){if(_0x53803c['nsp']===this['nsp'])switch(_0x53803c['type']){case ck['CONNECT']:_0x53803c['data']&&_0x53803c['data']['sid']?this['onconnect'](_0x53803c['data']['sid'],_0x53803c['data']['pid']):this['emitReserved']('connect_error',new Error('It\x20seems\x20you\x20are\x20trying\x20to\x20reach\x20a\x20Socket.IO\x20server\x20in\x20v2.x\x20with\x20a\x20v3.x\x20client,\x20but\x20they\x20are\x20not\x20compatible\x20(more\x20information\x20here:\x20https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)'));break;case ck['EVENT']:case ck['BINARY_EVENT']:this['onevent'](_0x53803c);break;case ck['ACK']:case ck['BINARY_ACK']:this['onack'](_0x53803c);break;case ck['DISCONNECT']:this['ondisconnect']();break;case ck['CONNECT_ERROR']:this['destroy']();const _0x48c339=new Error(_0x53803c['data']['message']);_0x48c339['data']=_0x53803c['data']['data'],this['emitReserved']('connect_error',_0x48c339);}}onevent(_0x980485){const _0x2756d2=_0x980485['data']||[];null!=_0x980485['id']&&_0x2756d2['push'](this['ack'](_0x980485['id'])),this['connected']?this['emitEvent'](_0x2756d2):this['receiveBuffer']['push'](Object['freeze'](_0x2756d2));}emitEvent(_0x54922a){if(this['_anyListeners']&&this['_anyListeners']['length']){const _0x4c3309=this['_anyListeners']['slice']();for(const _0x50e6d7 of _0x4c3309)_0x50e6d7['apply'](this,_0x54922a);}super['emit']['apply'](this,_0x54922a),this['_pid']&&_0x54922a['length']&&'string'==typeof _0x54922a[_0x54922a['length']-0x1]&&(this['_lastOffset']=_0x54922a[_0x54922a['length']-0x1]);}['ack'](_0x4def05){const _0x590648=this;let _0x26f3a0=!0x1;return function(..._0x38fbec){_0x26f3a0||(_0x26f3a0=!0x0,_0x590648['packet']({'type':ck['ACK'],'id':_0x4def05,'data':_0x38fbec}));};}['onack'](_0x259a87){const _0x524679=this['acks'][_0x259a87['id']];'function'==typeof _0x524679&&(delete this['acks'][_0x259a87['id']],_0x524679['withError']&&_0x259a87['data']['unshift'](null),_0x524679['apply'](this,_0x259a87['data']));}onconnect(_0x4f6791,_0x34418a){this['id']=_0x4f6791,this['recovered']=_0x34418a&&this['_pid']===_0x34418a,this['_pid']=_0x34418a,this['connected']=!0x0,this['emitBuffered'](),this['_drainQueue'](!0x0),this['emitReserved']('connect');}emitBuffered(){this['receiveBuffer']['forEach'](_0x1c600f=>this['emitEvent'](_0x1c600f)),this['receiveBuffer']=[],this['sendBuffer']['forEach'](_0x106cbd=>{this['notifyOutgoingListeners'](_0x106cbd),this['packet'](_0x106cbd);}),this['sendBuffer']=[];}ondisconnect(){this['destroy'](),this['onclose']('io\x20server\x20disconnect');}destroy(){this['subs']&&(this['subs']['forEach'](_0x94c3e3=>_0x94c3e3()),this['subs']=void 0x0),this['io']['_destroy'](this);}disconnect(){return this['connected']&&this['packet']({'type':ck['DISCONNECT']}),this['destroy'](),this['connected']&&this['onclose']('io\x20client\x20disconnect'),this;}['close'](){return this['disconnect']();}['compress'](_0xa04e82){return this['flags']['compress']=_0xa04e82,this;}get volatile(){return this['flags']['volatile']=!0x0,this;}timeout(_0x5ae3d7){return this['flags']['timeout']=_0x5ae3d7,this;}['onAny'](_0x247b5b){return this['_anyListeners']=this['_anyListeners']||[],this['_anyListeners']['push'](_0x247b5b),this;}['prependAny'](_0x25d5ec){return this['_anyListeners']=this['_anyListeners']||[],this['_anyListeners']['unshift'](_0x25d5ec),this;}['offAny'](_0x4ea1fd){if(!this['_anyListeners'])return this;if(_0x4ea1fd){const _0x4ebdd7=this['_anyListeners'];for(let _0x4ea2f4=0x0;_0x4ea2f4<_0x4ebdd7['length'];_0x4ea2f4++)if(_0x4ea1fd===_0x4ebdd7[_0x4ea2f4])return _0x4ebdd7['splice'](_0x4ea2f4,0x1),this;}else this['_anyListeners']=[];return this;}listenersAny(){return this['_anyListeners']||[];}onAnyOutgoing(_0x30b97c){return this['_anyOutgoingListeners']=this['_anyOutgoingListeners']||[],this['_anyOutgoingListeners']['push'](_0x30b97c),this;}prependAnyOutgoing(_0x4a0cf4){return this['_anyOutgoingListeners']=this['_anyOutgoingListeners']||[],this['_anyOutgoingListeners']['unshift'](_0x4a0cf4),this;}offAnyOutgoing(_0x592a26){if(!this['_anyOutgoingListeners'])return this;if(_0x592a26){const _0x5e164f=this['_anyOutgoingListeners'];for(let _0x54d11b=0x0;_0x54d11b<_0x5e164f['length'];_0x54d11b++)if(_0x592a26===_0x5e164f[_0x54d11b])return _0x5e164f['splice'](_0x54d11b,0x1),this;}else this['_anyOutgoingListeners']=[];return this;}listenersAnyOutgoing(){return this['_anyOutgoingListeners']||[];}notifyOutgoingListeners(_0xa7087){if(this['_anyOutgoingListeners']&&this['_anyOutgoingListeners']['length']){const _0x4b647=this['_anyOutgoingListeners']['slice']();for(const _0x5c6521 of _0x4b647)_0x5c6521['apply'](this,_0xa7087['data']);}}};function wk(_0x4ae505){_0x4ae505=_0x4ae505||{},this['ms']=_0x4ae505['min']||0x64,this['max']=_0x4ae505['max']||0x2710,this['factor']=_0x4ae505['factor']||0x2,this['jitter']=_0x4ae505['jitter']>0x0&&_0x4ae505['jitter']<=0x1?_0x4ae505['jitter']:0x0,this['attempts']=0x0;}wk['prototype']['duration']=function(){var _0x501423=this['ms']*Math['pow'](this['factor'],this['attempts']++);if(this['jitter']){var _0x4f340d=Math['random'](),_0x747aa=Math['floor'](_0x4f340d*this['jitter']*_0x501423);_0x501423=0x1&Math['floor'](0xa*_0x4f340d)?_0x501423+_0x747aa:_0x501423-_0x747aa;}return 0x0|Math['min'](_0x501423,this['max']);},wk['prototype']['reset']=function(){this['attempts']=0x0;},wk['prototype']['setMin']=function(_0x4b990a){this['ms']=_0x4b990a;},wk['prototype']['setMax']=function(_0x436332){this['max']=_0x436332;},wk['prototype']['setJitter']=function(_0x16e369){this['jitter']=_0x16e369;};var bk=class extends wI{constructor(_0x323c72,_0x343020){var _0x23aa52;super(),this['nsps']={},this['subs']=[],_0x323c72&&'object'==typeof _0x323c72&&(_0x343020=_0x323c72,_0x323c72=void 0x0),(_0x343020=_0x343020||{})['path']=_0x343020['path']||'/socket.io',this['opts']=_0x343020,TI(this,_0x343020),this['reconnection'](!0x1!==_0x343020['reconnection']),this['reconnectionAttempts'](_0x343020['reconnectionAttempts']||0x1/0x0),this['reconnectionDelay'](_0x343020['reconnectionDelay']||0x3e8),this['reconnectionDelayMax'](_0x343020['reconnectionDelayMax']||0x1388),this['randomizationFactor'](null!==(_0x23aa52=_0x343020['randomizationFactor'])&&void 0x0!==_0x23aa52?_0x23aa52:0.5),this['backoff']=new wk({'min':this['reconnectionDelay'](),'max':this['reconnectionDelayMax'](),'jitter':this['randomizationFactor']()}),this['timeout'](null==_0x343020['timeout']?0x4e20:_0x343020['timeout']),this['_readyState']='closed',this['uri']=_0x323c72;const _0x5bbbeb=_0x343020['parser']||ok;this['encoder']=new _0x5bbbeb['Encoder'](),this['decoder']=new _0x5bbbeb['Decoder'](),this['_autoConnect']=!0x1!==_0x343020['autoConnect'],this['_autoConnect']&&this['open']();}reconnection(_0x1208ec){return arguments['length']?(this['_reconnection']=!!_0x1208ec,_0x1208ec||(this['skipReconnect']=!0x0),this):this['_reconnection'];}reconnectionAttempts(_0x18856f){return void 0x0===_0x18856f?this['_reconnectionAttempts']:(this['_reconnectionAttempts']=_0x18856f,this);}reconnectionDelay(_0x5d0219){var _0x37b9b1;return void 0x0===_0x5d0219?this['_reconnectionDelay']:(this['_reconnectionDelay']=_0x5d0219,null===(_0x37b9b1=this['backoff'])||void 0x0===_0x37b9b1||_0x37b9b1['setMin'](_0x5d0219),this);}randomizationFactor(_0x346d09){var _0x55b8eb;return void 0x0===_0x346d09?this['_randomizationFactor']:(this['_randomizationFactor']=_0x346d09,null===(_0x55b8eb=this['backoff'])||void 0x0===_0x55b8eb||_0x55b8eb['setJitter'](_0x346d09),this);}reconnectionDelayMax(_0x35ca53){var _0x53f19d;return void 0x0===_0x35ca53?this['_reconnectionDelayMax']:(this['_reconnectionDelayMax']=_0x35ca53,null===(_0x53f19d=this['backoff'])||void 0x0===_0x53f19d||_0x53f19d['setMax'](_0x35ca53),this);}timeout(_0x3b94ff){return arguments['length']?(this['_timeout']=_0x3b94ff,this):this['_timeout'];}maybeReconnectOnOpen(){!this['_reconnecting']&&this['_reconnection']&&0x0===this['backoff']['attempts']&&this['reconnect']();}['open'](_0x1c372b){if(~this['_readyState']['indexOf']('open'))return this;this['engine']=new WI(this['uri'],this['opts']);const _0x385f47=this['engine'],_0x5b8c6a=this;this['_readyState']='opening',this['skipReconnect']=!0x1;const _0x11b39c=pk(_0x385f47,'open',function(){_0x5b8c6a['onopen'](),_0x1c372b&&_0x1c372b();}),_0x2db5a0=_0x1f5073=>{this['cleanup'](),this['_readyState']='closed',this['emitReserved']('error',_0x1f5073),_0x1c372b?_0x1c372b(_0x1f5073):this['maybeReconnectOnOpen']();},_0x49497f=pk(_0x385f47,'error',_0x2db5a0);if(!0x1!==this['_timeout']){const _0x3196b7=this['_timeout'],_0x184918=this['setTimeoutFn'](()=>{_0x11b39c(),_0x2db5a0(new Error('timeout')),_0x385f47['close']();},_0x3196b7);this['opts']['autoUnref']&&_0x184918['unref'](),this['subs']['push'](()=>{this['clearTimeoutFn'](_0x184918);});}return this['subs']['push'](_0x11b39c),this['subs']['push'](_0x49497f),this;}connect(_0x1429b1){return this['open'](_0x1429b1);}['onopen'](){this['cleanup'](),this['_readyState']='open',this['emitReserved']('open');const _0x46dbec=this['engine'];this['subs']['push'](pk(_0x46dbec,'ping',this['onping']['bind'](this)),pk(_0x46dbec,'data',this['ondata']['bind'](this)),pk(_0x46dbec,'error',this['onerror']['bind'](this)),pk(_0x46dbec,'close',this['onclose']['bind'](this)),pk(this['decoder'],'decoded',this['ondecoded']['bind'](this)));}['onping'](){this['emitReserved']('ping');}ondata(_0x18eaa5){try{this['decoder']['add'](_0x18eaa5);}catch(_0x531cda){this['onclose']('parse\x20error',_0x531cda);}}['ondecoded'](_0x369ae1){bI(()=>{this['emitReserved']('packet',_0x369ae1);},this['setTimeoutFn']);}['onerror'](_0x26e10e){this['emitReserved']('error',_0x26e10e);}socket(_0x182a79,_0x1320a8){let _0x1c707d=this['nsps'][_0x182a79];return _0x1c707d?this['_autoConnect']&&!_0x1c707d['active']&&_0x1c707d['connect']():(_0x1c707d=new Ok(this,_0x182a79,_0x1320a8),this['nsps'][_0x182a79]=_0x1c707d),_0x1c707d;}_destroy(_0x31d81e){const _0x4afaae=Object['keys'](this['nsps']);for(const _0x1ce686 of _0x4afaae)if(this['nsps'][_0x1ce686]['active'])return;this['_close']();}_packet(_0x4a4b6f){const _0x1f17a8=this['encoder']['encode'](_0x4a4b6f);for(let _0x2cb374=0x0;_0x2cb374<_0x1f17a8['length'];_0x2cb374++)this['engine']['write'](_0x1f17a8[_0x2cb374],_0x4a4b6f['options']);}['cleanup'](){this['subs']['forEach'](_0x19c1f8=>_0x19c1f8()),this['subs']['length']=0x0,this['decoder']['destroy']();}['_close'](){this['skipReconnect']=!0x0,this['_reconnecting']=!0x1,this['onclose']('forced\x20close');}disconnect(){return this['_close']();}['onclose'](_0x1de7f9,_0x482938){var _0x105047;this['cleanup'](),null===(_0x105047=this['engine'])||void 0x0===_0x105047||_0x105047['close'](),this['backoff']['reset'](),this['_readyState']='closed',this['emitReserved']('close',_0x1de7f9,_0x482938),this['_reconnection']&&!this['skipReconnect']&&this['reconnect']();}reconnect(){if(this['_reconnecting']||this['skipReconnect'])return this;const _0x3e2642=this;if(this['backoff']['attempts']>=this['_reconnectionAttempts'])this['backoff']['reset'](),this['emitReserved']('reconnect_failed'),this['_reconnecting']=!0x1;else{const _0x351f6c=this['backoff']['duration']();this['_reconnecting']=!0x0;const _0x53dc87=this['setTimeoutFn'](()=>{_0x3e2642['skipReconnect']||(this['emitReserved']('reconnect_attempt',_0x3e2642['backoff']['attempts']),_0x3e2642['skipReconnect']||_0x3e2642['open'](_0x30512c=>{_0x30512c?(_0x3e2642['_reconnecting']=!0x1,_0x3e2642['reconnect'](),this['emitReserved']('reconnect_error',_0x30512c)):_0x3e2642['onreconnect']();}));},_0x351f6c);this['opts']['autoUnref']&&_0x53dc87['unref'](),this['subs']['push'](()=>{this['clearTimeoutFn'](_0x53dc87);});}}onreconnect(){const _0x8c42da=this['backoff']['attempts'];this['_reconnecting']=!0x1,this['backoff']['reset'](),this['emitReserved']('reconnect',_0x8c42da);}};const yk={};function vk(_0x376f70,_0x23304b){'object'==typeof _0x376f70&&(_0x23304b=_0x376f70,_0x376f70=void 0x0);const _0x248ea1=function(_0x28ad0e,_0x56e22d='',_0x543e14){let _0x32517a=_0x28ad0e;_0x543e14=_0x543e14||'undefined'!=typeof location&&location,null==_0x28ad0e&&(_0x28ad0e=_0x543e14['protocol']+'//'+_0x543e14['host']),'string'==typeof _0x28ad0e&&('/'===_0x28ad0e['charAt'](0x0)&&(_0x28ad0e='/'===_0x28ad0e['charAt'](0x1)?_0x543e14['protocol']+_0x28ad0e:_0x543e14['host']+_0x28ad0e),/^(https?|wss?):\/\//['test'](_0x28ad0e)||(_0x28ad0e=void 0x0!==_0x543e14?_0x543e14['protocol']+'//'+_0x28ad0e:'https://'+_0x28ad0e),_0x32517a=FI(_0x28ad0e)),_0x32517a['port']||(/^(http|ws)$/['test'](_0x32517a['protocol'])?_0x32517a['port']='80':/^(http|ws)s$/['test'](_0x32517a['protocol'])&&(_0x32517a['port']='443')),_0x32517a['path']=_0x32517a['path']||'/';const _0xe6e8bb=-0x1!==_0x32517a['host']['indexOf'](':')?'['+_0x32517a['host']+']':_0x32517a['host'];return _0x32517a['id']=_0x32517a['protocol']+'://'+_0xe6e8bb+':'+_0x32517a['port']+_0x56e22d,_0x32517a['href']=_0x32517a['protocol']+'://'+_0xe6e8bb+(_0x543e14&&_0x543e14['port']===_0x32517a['port']?'':':'+_0x32517a['port']),_0x32517a;}(_0x376f70,(_0x23304b=_0x23304b||{})['path']||'/socket.io'),_0x3f2fe9=_0x248ea1['source'],_0x2489c4=_0x248ea1['id'],_0x1ac86b=_0x248ea1['path'],_0x28303b=yk[_0x2489c4]&&_0x1ac86b in yk[_0x2489c4]['nsps'];let _0x4e4b0e;return _0x23304b['forceNew']||_0x23304b['force\x20new\x20connection']||!0x1===_0x23304b['multiplex']||_0x28303b?_0x4e4b0e=new bk(_0x3f2fe9,_0x23304b):(yk[_0x2489c4]||(yk[_0x2489c4]=new bk(_0x3f2fe9,_0x23304b)),_0x4e4b0e=yk[_0x2489c4]),_0x248ea1['query']&&!_0x23304b['query']&&(_0x23304b['query']=_0x248ea1['queryKey']),_0x4e4b0e['socket'](_0x248ea1['path'],_0x23304b);}Object['assign'](vk,{'Manager':bk,'Socket':Ok,'io':vk,'connect':vk});var _k=Yn((_0x352fe6,_0x30b23f)=>{_0x30b23f['exports']=function(_0x40b6d6,_0x5b0b42){if(_0x5b0b42=_0x5b0b42['split'](':')[0x0],!(_0x40b6d6=+_0x40b6d6))return!0x1;switch(_0x5b0b42){case'http':case'ws':return 0x50!==_0x40b6d6;case'https':case'wss':return 0x1bb!==_0x40b6d6;case'ftp':return 0x15!==_0x40b6d6;case'gopher':return 0x46!==_0x40b6d6;case'file':return!0x1;}return 0x0!==_0x40b6d6;};}),Ek=Yn(_0x496338=>{var _0x16c5f2=Object['prototype']['hasOwnProperty'];function _0x56d460(_0x28295a){try{return decodeURIComponent(_0x28295a['replace'](/\+/g,'\x20'));}catch(_0x42d83a){return null;}}function _0x4b907d(_0x56cefc){try{return encodeURIComponent(_0x56cefc);}catch(_0x2bebdb){return null;}}_0x496338['stringify']=function(_0x5d7f43,_0x3aedd5){_0x3aedd5=_0x3aedd5||'';var _0x447dd2,_0x405400,_0x2b5a6e=[];for(_0x405400 in('string'!=typeof _0x3aedd5&&(_0x3aedd5='?'),_0x5d7f43))if(_0x16c5f2['call'](_0x5d7f43,_0x405400)){if((_0x447dd2=_0x5d7f43[_0x405400])||null!=_0x447dd2&&!isNaN(_0x447dd2)||(_0x447dd2=''),_0x405400=_0x4b907d(_0x405400),_0x447dd2=_0x4b907d(_0x447dd2),null===_0x405400||null===_0x447dd2)continue;_0x2b5a6e['push'](_0x405400+'='+_0x447dd2);}return _0x2b5a6e['length']?_0x3aedd5+_0x2b5a6e['join']('&'):'';},_0x496338['parse']=function(_0x5a7644){for(var _0x5a5c78,_0x5a3409=/([^=?#&]+)=?([^&]*)/g,_0x7eb51e={};_0x5a5c78=_0x5a3409['exec'](_0x5a7644);){var _0x39a996=_0x56d460(_0x5a5c78[0x1]),_0x301ea2=_0x56d460(_0x5a5c78[0x2]);null===_0x39a996||null===_0x301ea2||_0x39a996 in _0x7eb51e||(_0x7eb51e[_0x39a996]=_0x301ea2);}return _0x7eb51e;};}),Tk=Yn((_0x28c1d7,_0xf7e1ef)=>{var _0x253865=_k(),_0x54b0e0=Ek(),_0x4e2897=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,_0x1c4f1c=/[\n\r\t]/g,_0x4f0c60=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,_0x12bf1a=/:\d+$/,_0x3ebb4a=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,_0x2faeb8=/^[a-zA-Z]:/;function _0x461be1(_0x433a60){return(_0x433a60||'')['toString']()['replace'](_0x4e2897,'');}var _0x1cccfe=[['#','hash'],['?','query'],function(_0x47b929,_0x12fd57){return _0x7edd6c(_0x12fd57['protocol'])?_0x47b929['replace'](/\\/g,'/'):_0x47b929;},['/','pathname'],['@','auth',0x1],[NaN,'host',void 0x0,0x1,0x1],[/:(\d*)$/,'port',void 0x0,0x1],[NaN,'hostname',void 0x0,0x1,0x1]],_0x2810fe={'hash':0x1,'query':0x1};function _0x1baca5(_0x15dbee){var _0x497ef8,_0x4d7035=('undefined'!=typeof window?window:'undefined'!=typeof global?global:'undefined'!=typeof self?self:{})['location']||{},_0x437bb2={},_0x262265=typeof(_0x15dbee=_0x15dbee||_0x4d7035);if('blob:'===_0x15dbee['protocol'])_0x437bb2=new _0x25f7ef(unescape(_0x15dbee['pathname']),{});else{if('string'===_0x262265){for(_0x497ef8 in(_0x437bb2=new _0x25f7ef(_0x15dbee,{}),_0x2810fe))delete _0x437bb2[_0x497ef8];}else{if('object'===_0x262265){for(_0x497ef8 in _0x15dbee)_0x497ef8 in _0x2810fe||(_0x437bb2[_0x497ef8]=_0x15dbee[_0x497ef8]);void 0x0===_0x437bb2['slashes']&&(_0x437bb2['slashes']=_0x4f0c60['test'](_0x15dbee['href']));}}}return _0x437bb2;}function _0x7edd6c(_0x55f000){return'file:'===_0x55f000||'ftp:'===_0x55f000||'http:'===_0x55f000||'https:'===_0x55f000||'ws:'===_0x55f000||'wss:'===_0x55f000;}function _0x35b300(_0x26574c,_0x3b0929){_0x26574c=(_0x26574c=_0x461be1(_0x26574c))['replace'](_0x1c4f1c,''),_0x3b0929=_0x3b0929||{};var _0x1e489e,_0x5f048c=_0x3ebb4a['exec'](_0x26574c),_0x277fbf=_0x5f048c[0x1]?_0x5f048c[0x1]['toLowerCase']():'',_0x4317e8=!!_0x5f048c[0x2],_0x530d60=!!_0x5f048c[0x3],_0x2dc714=0x0;return _0x4317e8?_0x530d60?(_0x1e489e=_0x5f048c[0x2]+_0x5f048c[0x3]+_0x5f048c[0x4],_0x2dc714=_0x5f048c[0x2]['length']+_0x5f048c[0x3]['length']):(_0x1e489e=_0x5f048c[0x2]+_0x5f048c[0x4],_0x2dc714=_0x5f048c[0x2]['length']):_0x530d60?(_0x1e489e=_0x5f048c[0x3]+_0x5f048c[0x4],_0x2dc714=_0x5f048c[0x3]['length']):_0x1e489e=_0x5f048c[0x4],'file:'===_0x277fbf?_0x2dc714>=0x2&&(_0x1e489e=_0x1e489e['slice'](0x2)):_0x7edd6c(_0x277fbf)?_0x1e489e=_0x5f048c[0x4]:_0x277fbf?_0x4317e8&&(_0x1e489e=_0x1e489e['slice'](0x2)):_0x2dc714>=0x2&&_0x7edd6c(_0x3b0929['protocol'])&&(_0x1e489e=_0x5f048c[0x4]),{'protocol':_0x277fbf,'slashes':_0x4317e8||_0x7edd6c(_0x277fbf),'slashesCount':_0x2dc714,'rest':_0x1e489e};}function _0x25f7ef(_0x1185d6,_0x4a48e7,_0x5ecb75){if(_0x1185d6=(_0x1185d6=_0x461be1(_0x1185d6))['replace'](_0x1c4f1c,''),!(this instanceof _0x25f7ef))return new _0x25f7ef(_0x1185d6,_0x4a48e7,_0x5ecb75);var _0x388cc7,_0x2859af,_0x46113a,_0x3f18f8,_0x29594d,_0x13168e,_0x50136a=_0x1cccfe['slice'](),_0x21161a=typeof _0x4a48e7,_0x44fcc8=this,_0x32c831=0x0;for('object'!==_0x21161a&&'string'!==_0x21161a&&(_0x5ecb75=_0x4a48e7,_0x4a48e7=null),_0x5ecb75&&'function'!=typeof _0x5ecb75&&(_0x5ecb75=_0x54b0e0['parse']),_0x388cc7=!(_0x2859af=_0x35b300(_0x1185d6||'',_0x4a48e7=_0x1baca5(_0x4a48e7)))['protocol']&&!_0x2859af['slashes'],_0x44fcc8['slashes']=_0x2859af['slashes']||_0x388cc7&&_0x4a48e7['slashes'],_0x44fcc8['protocol']=_0x2859af['protocol']||_0x4a48e7['protocol']||'',_0x1185d6=_0x2859af['rest'],('file:'===_0x2859af['protocol']&&(0x2!==_0x2859af['slashesCount']||_0x2faeb8['test'](_0x1185d6))||!_0x2859af['slashes']&&(_0x2859af['protocol']||_0x2859af['slashesCount']<0x2||!_0x7edd6c(_0x44fcc8['protocol'])))&&(_0x50136a[0x3]=[/(.*)/,'pathname']);_0x32c831<_0x50136a['length'];_0x32c831++)'function'!=typeof(_0x3f18f8=_0x50136a[_0x32c831])?(_0x46113a=_0x3f18f8[0x0],_0x13168e=_0x3f18f8[0x1],_0x46113a!=_0x46113a?_0x44fcc8[_0x13168e]=_0x1185d6:'string'==typeof _0x46113a?~(_0x29594d='@'===_0x46113a?_0x1185d6['lastIndexOf'](_0x46113a):_0x1185d6['indexOf'](_0x46113a))&&('number'==typeof _0x3f18f8[0x2]?(_0x44fcc8[_0x13168e]=_0x1185d6['slice'](0x0,_0x29594d),_0x1185d6=_0x1185d6['slice'](_0x29594d+_0x3f18f8[0x2])):(_0x44fcc8[_0x13168e]=_0x1185d6['slice'](_0x29594d),_0x1185d6=_0x1185d6['slice'](0x0,_0x29594d))):(_0x29594d=_0x46113a['exec'](_0x1185d6))&&(_0x44fcc8[_0x13168e]=_0x29594d[0x1],_0x1185d6=_0x1185d6['slice'](0x0,_0x29594d['index'])),_0x44fcc8[_0x13168e]=_0x44fcc8[_0x13168e]||_0x388cc7&&_0x3f18f8[0x3]&&_0x4a48e7[_0x13168e]||'',_0x3f18f8[0x4]&&(_0x44fcc8[_0x13168e]=_0x44fcc8[_0x13168e]['toLowerCase']())):_0x1185d6=_0x3f18f8(_0x1185d6,_0x44fcc8);_0x5ecb75&&(_0x44fcc8['query']=_0x5ecb75(_0x44fcc8['query'])),_0x388cc7&&_0x4a48e7['slashes']&&'/'!==_0x44fcc8['pathname']['charAt'](0x0)&&(''!==_0x44fcc8['pathname']||''!==_0x4a48e7['pathname'])&&(_0x44fcc8['pathname']=function(_0xfabc2d,_0x45c1e6){if(''===_0xfabc2d)return _0x45c1e6;for(var _0x43c374=(_0x45c1e6||'/')['split']('/')['slice'](0x0,-0x1)['concat'](_0xfabc2d['split']('/')),_0x1d8709=_0x43c374['length'],_0x2a270c=_0x43c374[_0x1d8709-0x1],_0x171b34=!0x1,_0x5a922c=0x0;_0x1d8709--;)'.'===_0x43c374[_0x1d8709]?_0x43c374['splice'](_0x1d8709,0x1):'..'===_0x43c374[_0x1d8709]?(_0x43c374['splice'](_0x1d8709,0x1),_0x5a922c++):_0x5a922c&&(0x0===_0x1d8709&&(_0x171b34=!0x0),_0x43c374['splice'](_0x1d8709,0x1),_0x5a922c--);return _0x171b34&&_0x43c374['unshift'](''),'.'!==_0x2a270c&&'..'!==_0x2a270c||_0x43c374['push'](''),_0x43c374['join']('/');}(_0x44fcc8['pathname'],_0x4a48e7['pathname'])),'/'!==_0x44fcc8['pathname']['charAt'](0x0)&&_0x7edd6c(_0x44fcc8['protocol'])&&(_0x44fcc8['pathname']='/'+_0x44fcc8['pathname']),_0x253865(_0x44fcc8['port'],_0x44fcc8['protocol'])||(_0x44fcc8['host']=_0x44fcc8['hostname'],_0x44fcc8['port']=''),_0x44fcc8['username']=_0x44fcc8['password']='',_0x44fcc8['auth']&&(~(_0x29594d=_0x44fcc8['auth']['indexOf'](':'))?(_0x44fcc8['username']=_0x44fcc8['auth']['slice'](0x0,_0x29594d),_0x44fcc8['username']=encodeURIComponent(decodeURIComponent(_0x44fcc8['username'])),_0x44fcc8['password']=_0x44fcc8['auth']['slice'](_0x29594d+0x1),_0x44fcc8['password']=encodeURIComponent(decodeURIComponent(_0x44fcc8['password']))):_0x44fcc8['username']=encodeURIComponent(decodeURIComponent(_0x44fcc8['auth'])),_0x44fcc8['auth']=_0x44fcc8['password']?_0x44fcc8['username']+':'+_0x44fcc8['password']:_0x44fcc8['username']),_0x44fcc8['origin']='file:'!==_0x44fcc8['protocol']&&_0x7edd6c(_0x44fcc8['protocol'])&&_0x44fcc8['host']?_0x44fcc8['protocol']+'//'+_0x44fcc8['host']:'null',_0x44fcc8['href']=_0x44fcc8['toString']();}_0x25f7ef['prototype']={'set':function(_0x428152,_0x46ca3b,_0x13c045){var _0x550338=this;switch(_0x428152){case'query':'string'==typeof _0x46ca3b&&_0x46ca3b['length']&&(_0x46ca3b=(_0x13c045||_0x54b0e0['parse'])(_0x46ca3b)),_0x550338[_0x428152]=_0x46ca3b;break;case'port':_0x550338[_0x428152]=_0x46ca3b,_0x253865(_0x46ca3b,_0x550338['protocol'])?_0x46ca3b&&(_0x550338['host']=_0x550338['hostname']+':'+_0x46ca3b):(_0x550338['host']=_0x550338['hostname'],_0x550338[_0x428152]='');break;case'hostname':_0x550338[_0x428152]=_0x46ca3b,_0x550338['port']&&(_0x46ca3b+=':'+_0x550338['port']),_0x550338['host']=_0x46ca3b;break;case'host':_0x550338[_0x428152]=_0x46ca3b,_0x12bf1a['test'](_0x46ca3b)?(_0x46ca3b=_0x46ca3b['split'](':'),_0x550338['port']=_0x46ca3b['pop'](),_0x550338['hostname']=_0x46ca3b['join'](':')):(_0x550338['hostname']=_0x46ca3b,_0x550338['port']='');break;case'protocol':_0x550338['protocol']=_0x46ca3b['toLowerCase'](),_0x550338['slashes']=!_0x13c045;break;case'pathname':case'hash':if(_0x46ca3b){var _0x5a10a5='pathname'===_0x428152?'/':'#';_0x550338[_0x428152]=_0x46ca3b['charAt'](0x0)!==_0x5a10a5?_0x5a10a5+_0x46ca3b:_0x46ca3b;}else _0x550338[_0x428152]=_0x46ca3b;break;case'username':case'password':_0x550338[_0x428152]=encodeURIComponent(_0x46ca3b);break;case'auth':var _0x2c5575=_0x46ca3b['indexOf'](':');~_0x2c5575?(_0x550338['username']=_0x46ca3b['slice'](0x0,_0x2c5575),_0x550338['username']=encodeURIComponent(decodeURIComponent(_0x550338['username'])),_0x550338['password']=_0x46ca3b['slice'](_0x2c5575+0x1),_0x550338['password']=encodeURIComponent(decodeURIComponent(_0x550338['password']))):_0x550338['username']=encodeURIComponent(decodeURIComponent(_0x46ca3b));}for(var _0x4db298=0x0;_0x4db298<_0x1cccfe['length'];_0x4db298++){var _0x32915c=_0x1cccfe[_0x4db298];_0x32915c[0x4]&&(_0x550338[_0x32915c[0x1]]=_0x550338[_0x32915c[0x1]]['toLowerCase']());}return _0x550338['auth']=_0x550338['password']?_0x550338['username']+':'+_0x550338['password']:_0x550338['username'],_0x550338['origin']='file:'!==_0x550338['protocol']&&_0x7edd6c(_0x550338['protocol'])&&_0x550338['host']?_0x550338['protocol']+'//'+_0x550338['host']:'null',_0x550338['href']=_0x550338['toString'](),_0x550338;},'toString':function(_0x29d7fd){_0x29d7fd&&'function'==typeof _0x29d7fd||(_0x29d7fd=_0x54b0e0['stringify']);var _0x548168,_0x50e8b2=this,_0x15a80f=_0x50e8b2['host'],_0x399d67=_0x50e8b2['protocol'];_0x399d67&&':'!==_0x399d67['charAt'](_0x399d67['length']-0x1)&&(_0x399d67+=':');var _0x32a3d9=_0x399d67+(_0x50e8b2['protocol']&&_0x50e8b2['slashes']||_0x7edd6c(_0x50e8b2['protocol'])?'//':'');return _0x50e8b2['username']?(_0x32a3d9+=_0x50e8b2['username'],_0x50e8b2['password']&&(_0x32a3d9+=':'+_0x50e8b2['password']),_0x32a3d9+='@'):_0x50e8b2['password']?(_0x32a3d9+=':'+_0x50e8b2['password'],_0x32a3d9+='@'):'file:'!==_0x50e8b2['protocol']&&_0x7edd6c(_0x50e8b2['protocol'])&&!_0x15a80f&&'/'!==_0x50e8b2['pathname']&&(_0x32a3d9+='@'),(':'===_0x15a80f[_0x15a80f['length']-0x1]||_0x12bf1a['test'](_0x50e8b2['hostname'])&&!_0x50e8b2['port'])&&(_0x15a80f+=':'),_0x32a3d9+=_0x15a80f+_0x50e8b2['pathname'],(_0x548168='object'==typeof _0x50e8b2['query']?_0x29d7fd(_0x50e8b2['query']):_0x50e8b2['query'])&&(_0x32a3d9+='?'!==_0x548168['charAt'](0x0)?'?'+_0x548168:_0x548168),_0x50e8b2['hash']&&(_0x32a3d9+=_0x50e8b2['hash']),_0x32a3d9;}},_0x25f7ef['extractProtocol']=_0x35b300,_0x25f7ef['location']=_0x1baca5,_0x25f7ef['trimLeft']=_0x461be1,_0x25f7ef['qs']=_0x54b0e0,_0xf7e1ef['exports']=_0x25f7ef;});const Ak=new Uint8Array(0x10),Sk=[];for(let e=0x0;e<0x100;++e)Sk['push']((e+0x100)['toString'](0x10)['slice'](0x1));function Ik(_0x118287,_0x1c72c3,_0x32f853){return _0x1c72c3||_0x118287||!crypto['randomUUID']?function(_0x388940,_0x1e97e5,_0x38b843){_0x388940=_0x388940||{};const _0x12624a=_0x388940['random']??_0x388940['rng']?.()??crypto['getRandomValues'](Ak);if(_0x12624a['length']<0x10)throw new Error('Random\x20bytes\x20length\x20must\x20be\x20>=\x2016');if(_0x12624a[0x6]=0xf&_0x12624a[0x6]|0x40,_0x12624a[0x8]=0x3f&_0x12624a[0x8]|0x80,_0x1e97e5){if((_0x38b843=_0x38b843||0x0)<0x0||_0x38b843+0x10>_0x1e97e5['length'])throw new RangeError('UUID\x20byte\x20range\x20'+_0x38b843+':'+(_0x38b843+0xf)+'\x20is\x20out\x20of\x20buffer\x20bounds');for(let _0x5b8f75=0x0;_0x5b8f75<0x10;++_0x5b8f75)_0x1e97e5[_0x38b843+_0x5b8f75]=_0x12624a[_0x5b8f75];return _0x1e97e5;}return function(_0x1cba52,_0x92d201=0x0){return(Sk[_0x1cba52[_0x92d201+0x0]]+Sk[_0x1cba52[_0x92d201+0x1]]+Sk[_0x1cba52[_0x92d201+0x2]]+Sk[_0x1cba52[_0x92d201+0x3]]+'-'+Sk[_0x1cba52[_0x92d201+0x4]]+Sk[_0x1cba52[_0x92d201+0x5]]+'-'+Sk[_0x1cba52[_0x92d201+0x6]]+Sk[_0x1cba52[_0x92d201+0x7]]+'-'+Sk[_0x1cba52[_0x92d201+0x8]]+Sk[_0x1cba52[_0x92d201+0x9]]+'-'+Sk[_0x1cba52[_0x92d201+0xa]]+Sk[_0x1cba52[_0x92d201+0xb]]+Sk[_0x1cba52[_0x92d201+0xc]]+Sk[_0x1cba52[_0x92d201+0xd]]+Sk[_0x1cba52[_0x92d201+0xe]]+Sk[_0x1cba52[_0x92d201+0xf]])['toLowerCase']();}(_0x12624a);}(_0x118287,_0x1c72c3,_0x32f853):crypto['randomUUID']();}var kk=Jn(Tk(),0x1),xk=class{static ['DESCRIPTOR_NAME'];static ['DESCRIPTOR'];constructor(..._0x3e169a){}},Ck=class extends xk{static ['TYPE']='1000';static ['READABLE_TYPE_NAME'];constructor(..._0x2e4ed0){super();}static['fromJSON'](_0x199788){throw new TypeError('Must\x20be\x20implemented\x20in\x20a\x20child\x20class!');}},Rk=class GetUserMessage extends Ck{['id'];static ['TYPE']='21';static ['READABLE_TYPE_NAME']='getUser';static ['DESCRIPTOR_NAME']='GetUserMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1}}};constructor(_0x4b0583){super(),this['id']=_0x4b0583;}toJSON(){return{'id':this['id']};}static['fromJSON'](_0x2097a0){return new GetUserMessage(_0x2097a0['id']);}},Pk=class GetUserResponse extends Ck{attributes;static ['DESCRIPTOR_NAME']='GetUserResponse';static ['DESCRIPTOR']={'fields':{'attributes':{'rule':'repeated','type':'KeyValueDescriptor','id':0x1}}};constructor(_0x3fb4f9){super(),this['attributes']=_0x3fb4f9;}toJSON(){return{'attributes':Object['keys'](this['attributes'])['map'](_0x58a09d=>({'key':_0x58a09d,'value':JSON['stringify'](this['attributes'][_0x58a09d])}))};}static['fromJSON'](_0x41f28d){const _0x30a1a9=_0x41f28d['attributes']['reduce']((_0x285ea2,_0x4e94eb)=>(_0x285ea2[_0x4e94eb['key']]=_0x4e94eb['value']?JSON['parse'](_0x4e94eb['value']):null,_0x285ea2),{});return new GetUserResponse(_0x30a1a9);}};const Nk=((()=>{var _0x1f0e29=YS['default']['Reader'],_0x51052a=YS['default']['Writer'],_0x3bb2e6=YS['default']['util'],_0x34d3e2=YS['default']['roots']['default']||(YS['default']['roots']['default']={});return _0x34d3e2['StringStringPacketDataMessage']=(function(){function _0x51e80d(_0xb3460f){if(_0xb3460f){for(var _0x350131=Object['keys'](_0xb3460f),_0x1f0d2b=0x0;_0x1f0d2b<_0x350131['length'];++_0x1f0d2b)null!=_0xb3460f[_0x350131[_0x1f0d2b]]&&'__proto__'!==_0x350131[_0x1f0d2b]&&(this[_0x350131[_0x1f0d2b]]=_0xb3460f[_0x350131[_0x1f0d2b]]);}}return _0x51e80d['prototype']['data']='',_0x51e80d['prototype']['data1']='',_0x51e80d['create']=function(_0x29780b){return new _0x51e80d(_0x29780b);},_0x51e80d['encode']=function(_0x54260d,_0x54c3a6,_0x1f97ad){if(_0x54c3a6||(_0x54c3a6=_0x51052a['create']()),void 0x0===_0x1f97ad&&(_0x1f97ad=0x0),_0x1f97ad>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x54260d['data']&&Object['hasOwnProperty']['call'](_0x54260d,'data')&&_0x54c3a6['uint32'](0xa)['string'](_0x54260d['data']),null!=_0x54260d['data1']&&Object['hasOwnProperty']['call'](_0x54260d,'data1')&&_0x54c3a6['uint32'](0x12)['string'](_0x54260d['data1']),_0x54c3a6;},_0x51e80d['encodeDelimited']=function(_0x5d66e8,_0x426824){return this['encode'](_0x5d66e8,_0x426824)['ldelim']();},_0x51e80d['decode']=function(_0xd55e27,_0x295716,_0x423e6d,_0x3ed64c){if(_0xd55e27 instanceof _0x1f0e29||(_0xd55e27=_0x1f0e29['create'](_0xd55e27)),void 0x0===_0x3ed64c&&(_0x3ed64c=0x0),_0x3ed64c>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x9102ec=void 0x0===_0x295716?_0xd55e27['len']:_0xd55e27['pos']+_0x295716,_0x3fe1f2=new _0x34d3e2['StringStringPacketDataMessage']();_0xd55e27['pos']<_0x9102ec;){var _0x3fc360=_0xd55e27['uint32']();if(_0x3fc360===_0x423e6d)break;switch(_0x3fc360>>>0x3){case 0x1:_0x3fe1f2['data']=_0xd55e27['string']();break;case 0x2:_0x3fe1f2['data1']=_0xd55e27['string']();break;default:_0xd55e27['skipType'](0x7&_0x3fc360,_0x3ed64c);}}return _0x3fe1f2;},_0x51e80d['decodeDelimited']=function(_0x2e1656){return _0x2e1656 instanceof _0x1f0e29||(_0x2e1656=new _0x1f0e29(_0x2e1656)),this['decode'](_0x2e1656,_0x2e1656['uint32']());},_0x51e80d['verify']=function(_0x181cce,_0x44bf18){return'object'!=typeof _0x181cce||null===_0x181cce?'object\x20expected':(void 0x0===_0x44bf18&&(_0x44bf18=0x0),_0x44bf18>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x181cce['data']&&Object['hasOwnProperty']['call'](_0x181cce,'data')&&!_0x3bb2e6['isString'](_0x181cce['data'])?'data:\x20string\x20expected':null!=_0x181cce['data1']&&Object['hasOwnProperty']['call'](_0x181cce,'data1')&&!_0x3bb2e6['isString'](_0x181cce['data1'])?'data1:\x20string\x20expected':null);},_0x51e80d['fromObject']=function(_0x48aa90,_0x556cfd){if(_0x48aa90 instanceof _0x34d3e2['StringStringPacketDataMessage'])return _0x48aa90;if(!_0x3bb2e6['isObject'](_0x48aa90))throw TypeError('.StringStringPacketDataMessage:\x20object\x20expected');if(void 0x0===_0x556cfd&&(_0x556cfd=0x0),_0x556cfd>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x5c36af=new _0x34d3e2['StringStringPacketDataMessage']();return null!=_0x48aa90['data']&&(_0x5c36af['data']=String(_0x48aa90['data'])),null!=_0x48aa90['data1']&&(_0x5c36af['data1']=String(_0x48aa90['data1'])),_0x5c36af;},_0x51e80d['toObject']=function(_0xfa49ce,_0x5169b2,_0x6a9ce2){if(_0x5169b2||(_0x5169b2={}),void 0x0===_0x6a9ce2&&(_0x6a9ce2=0x0),_0x6a9ce2>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x507055={};return _0x5169b2['defaults']&&(_0x507055['data']='',_0x507055['data1']=''),null!=_0xfa49ce['data']&&Object['hasOwnProperty']['call'](_0xfa49ce,'data')&&(_0x507055['data']=_0xfa49ce['data']),null!=_0xfa49ce['data1']&&Object['hasOwnProperty']['call'](_0xfa49ce,'data1')&&(_0x507055['data1']=_0xfa49ce['data1']),_0x507055;},_0x51e80d['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x51e80d['getTypeUrl']=function(_0x572ced){return void 0x0===_0x572ced&&(_0x572ced='type.googleapis.com'),_0x572ced+'/StringStringPacketDataMessage';},_0x51e80d;}()),_0x34d3e2['StringObjectPacketDataMessage']=(function(){function _0x2b2f6b(_0xf1d65c){if(_0xf1d65c){for(var _0x3083ce=Object['keys'](_0xf1d65c),_0x53efe0=0x0;_0x53efe0<_0x3083ce['length'];++_0x53efe0)null!=_0xf1d65c[_0x3083ce[_0x53efe0]]&&'__proto__'!==_0x3083ce[_0x53efe0]&&(this[_0x3083ce[_0x53efe0]]=_0xf1d65c[_0x3083ce[_0x53efe0]]);}}return _0x2b2f6b['prototype']['data']='',_0x2b2f6b['prototype']['data1']='',_0x2b2f6b['create']=function(_0x511276){return new _0x2b2f6b(_0x511276);},_0x2b2f6b['encode']=function(_0x1983b0,_0x24d799,_0x53e29e){if(_0x24d799||(_0x24d799=_0x51052a['create']()),void 0x0===_0x53e29e&&(_0x53e29e=0x0),_0x53e29e>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x1983b0['data']&&Object['hasOwnProperty']['call'](_0x1983b0,'data')&&_0x24d799['uint32'](0xa)['string'](_0x1983b0['data']),null!=_0x1983b0['data1']&&Object['hasOwnProperty']['call'](_0x1983b0,'data1')&&_0x24d799['uint32'](0x12)['string'](_0x1983b0['data1']),_0x24d799;},_0x2b2f6b['encodeDelimited']=function(_0x241f5a,_0x498400){return this['encode'](_0x241f5a,_0x498400)['ldelim']();},_0x2b2f6b['decode']=function(_0x38b721,_0x30b0f8,_0xe0e663,_0x35c223){if(_0x38b721 instanceof _0x1f0e29||(_0x38b721=_0x1f0e29['create'](_0x38b721)),void 0x0===_0x35c223&&(_0x35c223=0x0),_0x35c223>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x2b6464=void 0x0===_0x30b0f8?_0x38b721['len']:_0x38b721['pos']+_0x30b0f8,_0x5999e3=new _0x34d3e2['StringObjectPacketDataMessage']();_0x38b721['pos']<_0x2b6464;){var _0x499f1b=_0x38b721['uint32']();if(_0x499f1b===_0xe0e663)break;switch(_0x499f1b>>>0x3){case 0x1:_0x5999e3['data']=_0x38b721['string']();break;case 0x2:_0x5999e3['data1']=_0x38b721['string']();break;default:_0x38b721['skipType'](0x7&_0x499f1b,_0x35c223);}}return _0x5999e3;},_0x2b2f6b['decodeDelimited']=function(_0x58c05a){return _0x58c05a instanceof _0x1f0e29||(_0x58c05a=new _0x1f0e29(_0x58c05a)),this['decode'](_0x58c05a,_0x58c05a['uint32']());},_0x2b2f6b['verify']=function(_0x3fe241,_0x2d8200){return'object'!=typeof _0x3fe241||null===_0x3fe241?'object\x20expected':(void 0x0===_0x2d8200&&(_0x2d8200=0x0),_0x2d8200>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x3fe241['data']&&Object['hasOwnProperty']['call'](_0x3fe241,'data')&&!_0x3bb2e6['isString'](_0x3fe241['data'])?'data:\x20string\x20expected':null!=_0x3fe241['data1']&&Object['hasOwnProperty']['call'](_0x3fe241,'data1')&&!_0x3bb2e6['isString'](_0x3fe241['data1'])?'data1:\x20string\x20expected':null);},_0x2b2f6b['fromObject']=function(_0x355d56,_0x281c03){if(_0x355d56 instanceof _0x34d3e2['StringObjectPacketDataMessage'])return _0x355d56;if(!_0x3bb2e6['isObject'](_0x355d56))throw TypeError('.StringObjectPacketDataMessage:\x20object\x20expected');if(void 0x0===_0x281c03&&(_0x281c03=0x0),_0x281c03>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x55b05e=new _0x34d3e2['StringObjectPacketDataMessage']();return null!=_0x355d56['data']&&(_0x55b05e['data']=String(_0x355d56['data'])),null!=_0x355d56['data1']&&(_0x55b05e['data1']=String(_0x355d56['data1'])),_0x55b05e;},_0x2b2f6b['toObject']=function(_0x575315,_0x484ad1,_0x4129d2){if(_0x484ad1||(_0x484ad1={}),void 0x0===_0x4129d2&&(_0x4129d2=0x0),_0x4129d2>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x3b8be3={};return _0x484ad1['defaults']&&(_0x3b8be3['data']='',_0x3b8be3['data1']=''),null!=_0x575315['data']&&Object['hasOwnProperty']['call'](_0x575315,'data')&&(_0x3b8be3['data']=_0x575315['data']),null!=_0x575315['data1']&&Object['hasOwnProperty']['call'](_0x575315,'data1')&&(_0x3b8be3['data1']=_0x575315['data1']),_0x3b8be3;},_0x2b2f6b['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x2b2f6b['getTypeUrl']=function(_0x13929a){return void 0x0===_0x13929a&&(_0x13929a='type.googleapis.com'),_0x13929a+'/StringObjectPacketDataMessage';},_0x2b2f6b;}()),_0x34d3e2['StringNumberPacketDataMessage']=(function(){function _0x111e4a(_0x3ffb27){if(_0x3ffb27){for(var _0x571f54=Object['keys'](_0x3ffb27),_0x168f33=0x0;_0x168f33<_0x571f54['length'];++_0x168f33)null!=_0x3ffb27[_0x571f54[_0x168f33]]&&'__proto__'!==_0x571f54[_0x168f33]&&(this[_0x571f54[_0x168f33]]=_0x3ffb27[_0x571f54[_0x168f33]]);}}return _0x111e4a['prototype']['data']='',_0x111e4a['prototype']['data1']=0x0,_0x111e4a['create']=function(_0x10f6c7){return new _0x111e4a(_0x10f6c7);},_0x111e4a['encode']=function(_0x5ff693,_0xabb657,_0x340326){if(_0xabb657||(_0xabb657=_0x51052a['create']()),void 0x0===_0x340326&&(_0x340326=0x0),_0x340326>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x5ff693['data']&&Object['hasOwnProperty']['call'](_0x5ff693,'data')&&_0xabb657['uint32'](0xa)['string'](_0x5ff693['data']),null!=_0x5ff693['data1']&&Object['hasOwnProperty']['call'](_0x5ff693,'data1')&&_0xabb657['uint32'](0x10)['uint32'](_0x5ff693['data1']),_0xabb657;},_0x111e4a['encodeDelimited']=function(_0x296365,_0x369e5d){return this['encode'](_0x296365,_0x369e5d)['ldelim']();},_0x111e4a['decode']=function(_0x1d01ef,_0x55f6a9,_0x54adbc,_0x85d6aa){if(_0x1d01ef instanceof _0x1f0e29||(_0x1d01ef=_0x1f0e29['create'](_0x1d01ef)),void 0x0===_0x85d6aa&&(_0x85d6aa=0x0),_0x85d6aa>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x304459=void 0x0===_0x55f6a9?_0x1d01ef['len']:_0x1d01ef['pos']+_0x55f6a9,_0x534f8b=new _0x34d3e2['StringNumberPacketDataMessage']();_0x1d01ef['pos']<_0x304459;){var _0x5ddb7a=_0x1d01ef['uint32']();if(_0x5ddb7a===_0x54adbc)break;switch(_0x5ddb7a>>>0x3){case 0x1:_0x534f8b['data']=_0x1d01ef['string']();break;case 0x2:_0x534f8b['data1']=_0x1d01ef['uint32']();break;default:_0x1d01ef['skipType'](0x7&_0x5ddb7a,_0x85d6aa);}}return _0x534f8b;},_0x111e4a['decodeDelimited']=function(_0x32f9af){return _0x32f9af instanceof _0x1f0e29||(_0x32f9af=new _0x1f0e29(_0x32f9af)),this['decode'](_0x32f9af,_0x32f9af['uint32']());},_0x111e4a['verify']=function(_0x5414e5,_0x1b76f8){return'object'!=typeof _0x5414e5||null===_0x5414e5?'object\x20expected':(void 0x0===_0x1b76f8&&(_0x1b76f8=0x0),_0x1b76f8>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x5414e5['data']&&Object['hasOwnProperty']['call'](_0x5414e5,'data')&&!_0x3bb2e6['isString'](_0x5414e5['data'])?'data:\x20string\x20expected':null!=_0x5414e5['data1']&&Object['hasOwnProperty']['call'](_0x5414e5,'data1')&&!_0x3bb2e6['isInteger'](_0x5414e5['data1'])?'data1:\x20integer\x20expected':null);},_0x111e4a['fromObject']=function(_0x51bb93,_0x357ae6){if(_0x51bb93 instanceof _0x34d3e2['StringNumberPacketDataMessage'])return _0x51bb93;if(!_0x3bb2e6['isObject'](_0x51bb93))throw TypeError('.StringNumberPacketDataMessage:\x20object\x20expected');if(void 0x0===_0x357ae6&&(_0x357ae6=0x0),_0x357ae6>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x4299b7=new _0x34d3e2['StringNumberPacketDataMessage']();return null!=_0x51bb93['data']&&(_0x4299b7['data']=String(_0x51bb93['data'])),null!=_0x51bb93['data1']&&(_0x4299b7['data1']=_0x51bb93['data1']>>>0x0),_0x4299b7;},_0x111e4a['toObject']=function(_0x2800cc,_0x4d685a,_0x251389){if(_0x4d685a||(_0x4d685a={}),void 0x0===_0x251389&&(_0x251389=0x0),_0x251389>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x24a4b4={};return _0x4d685a['defaults']&&(_0x24a4b4['data']='',_0x24a4b4['data1']=0x0),null!=_0x2800cc['data']&&Object['hasOwnProperty']['call'](_0x2800cc,'data')&&(_0x24a4b4['data']=_0x2800cc['data']),null!=_0x2800cc['data1']&&Object['hasOwnProperty']['call'](_0x2800cc,'data1')&&(_0x24a4b4['data1']=_0x2800cc['data1']),_0x24a4b4;},_0x111e4a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x111e4a['getTypeUrl']=function(_0x316bda){return void 0x0===_0x316bda&&(_0x316bda='type.googleapis.com'),_0x316bda+'/StringNumberPacketDataMessage';},_0x111e4a;}()),_0x34d3e2['StringBytesPacketDataMessage']=(function(){function _0x26497d(_0xe48c5a){if(_0xe48c5a){for(var _0x7b71a3=Object['keys'](_0xe48c5a),_0x2e62c5=0x0;_0x2e62c5<_0x7b71a3['length'];++_0x2e62c5)null!=_0xe48c5a[_0x7b71a3[_0x2e62c5]]&&'__proto__'!==_0x7b71a3[_0x2e62c5]&&(this[_0x7b71a3[_0x2e62c5]]=_0xe48c5a[_0x7b71a3[_0x2e62c5]]);}}return _0x26497d['prototype']['data']='',_0x26497d['prototype']['data1']=_0x3bb2e6['newBuffer']([]),_0x26497d['create']=function(_0x4b3059){return new _0x26497d(_0x4b3059);},_0x26497d['encode']=function(_0x1c40b6,_0x1e3cdd,_0x5eb532){if(_0x1e3cdd||(_0x1e3cdd=_0x51052a['create']()),void 0x0===_0x5eb532&&(_0x5eb532=0x0),_0x5eb532>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x1c40b6['data']&&Object['hasOwnProperty']['call'](_0x1c40b6,'data')&&_0x1e3cdd['uint32'](0xa)['string'](_0x1c40b6['data']),null!=_0x1c40b6['data1']&&Object['hasOwnProperty']['call'](_0x1c40b6,'data1')&&_0x1e3cdd['uint32'](0x12)['bytes'](_0x1c40b6['data1']),_0x1e3cdd;},_0x26497d['encodeDelimited']=function(_0x130969,_0x33d61e){return this['encode'](_0x130969,_0x33d61e)['ldelim']();},_0x26497d['decode']=function(_0x2a3b7e,_0x10a532,_0x58d8d4,_0x4fbcc0){if(_0x2a3b7e instanceof _0x1f0e29||(_0x2a3b7e=_0x1f0e29['create'](_0x2a3b7e)),void 0x0===_0x4fbcc0&&(_0x4fbcc0=0x0),_0x4fbcc0>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x1d46fe=void 0x0===_0x10a532?_0x2a3b7e['len']:_0x2a3b7e['pos']+_0x10a532,_0xba3b77=new _0x34d3e2['StringBytesPacketDataMessage']();_0x2a3b7e['pos']<_0x1d46fe;){var _0x467483=_0x2a3b7e['uint32']();if(_0x467483===_0x58d8d4)break;switch(_0x467483>>>0x3){case 0x1:_0xba3b77['data']=_0x2a3b7e['string']();break;case 0x2:_0xba3b77['data1']=_0x2a3b7e['bytes']();break;default:_0x2a3b7e['skipType'](0x7&_0x467483,_0x4fbcc0);}}return _0xba3b77;},_0x26497d['decodeDelimited']=function(_0x3a9638){return _0x3a9638 instanceof _0x1f0e29||(_0x3a9638=new _0x1f0e29(_0x3a9638)),this['decode'](_0x3a9638,_0x3a9638['uint32']());},_0x26497d['verify']=function(_0x825a32,_0x305d37){return'object'!=typeof _0x825a32||null===_0x825a32?'object\x20expected':(void 0x0===_0x305d37&&(_0x305d37=0x0),_0x305d37>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x825a32['data']&&Object['hasOwnProperty']['call'](_0x825a32,'data')&&!_0x3bb2e6['isString'](_0x825a32['data'])?'data:\x20string\x20expected':null!=_0x825a32['data1']&&Object['hasOwnProperty']['call'](_0x825a32,'data1')&&!(_0x825a32['data1']&&'number'==typeof _0x825a32['data1']['length']||_0x3bb2e6['isString'](_0x825a32['data1']))?'data1:\x20buffer\x20expected':null);},_0x26497d['fromObject']=function(_0xbcfd12,_0x3a4688){if(_0xbcfd12 instanceof _0x34d3e2['StringBytesPacketDataMessage'])return _0xbcfd12;if(!_0x3bb2e6['isObject'](_0xbcfd12))throw TypeError('.StringBytesPacketDataMessage:\x20object\x20expected');if(void 0x0===_0x3a4688&&(_0x3a4688=0x0),_0x3a4688>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x25ad35=new _0x34d3e2['StringBytesPacketDataMessage']();return null!=_0xbcfd12['data']&&(_0x25ad35['data']=String(_0xbcfd12['data'])),null!=_0xbcfd12['data1']&&('string'==typeof _0xbcfd12['data1']?_0x3bb2e6['base64']['decode'](_0xbcfd12['data1'],_0x25ad35['data1']=_0x3bb2e6['newBuffer'](_0x3bb2e6['base64']['length'](_0xbcfd12['data1'])),0x0):_0xbcfd12['data1']['length']>=0x0&&(_0x25ad35['data1']=_0xbcfd12['data1'])),_0x25ad35;},_0x26497d['toObject']=function(_0x3cb376,_0x1eb18a,_0x56da49){if(_0x1eb18a||(_0x1eb18a={}),void 0x0===_0x56da49&&(_0x56da49=0x0),_0x56da49>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0xb1a341={};return _0x1eb18a['defaults']&&(_0xb1a341['data']='',_0x1eb18a['bytes']===String?_0xb1a341['data1']='':(_0xb1a341['data1']=[],_0x1eb18a['bytes']!==Array&&(_0xb1a341['data1']=_0x3bb2e6['newBuffer'](_0xb1a341['data1'])))),null!=_0x3cb376['data']&&Object['hasOwnProperty']['call'](_0x3cb376,'data')&&(_0xb1a341['data']=_0x3cb376['data']),null!=_0x3cb376['data1']&&Object['hasOwnProperty']['call'](_0x3cb376,'data1')&&(_0xb1a341['data1']=_0x1eb18a['bytes']===String?_0x3bb2e6['base64']['encode'](_0x3cb376['data1'],0x0,_0x3cb376['data1']['length']):_0x1eb18a['bytes']===Array?Array['prototype']['slice']['call'](_0x3cb376['data1']):_0x3cb376['data1']),_0xb1a341;},_0x26497d['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x26497d['getTypeUrl']=function(_0x3ac4a3){return void 0x0===_0x3ac4a3&&(_0x3ac4a3='type.googleapis.com'),_0x3ac4a3+'/StringBytesPacketDataMessage';},_0x26497d;}()),_0x34d3e2['PacketOptionsMessage']=(function(){function _0x5037dc(_0x2d4bff){if(this['rooms']=[],this['except']=[],_0x2d4bff){for(var _0x59fca4=Object['keys'](_0x2d4bff),_0x45c47d=0x0;_0x45c47d<_0x59fca4['length'];++_0x45c47d)null!=_0x2d4bff[_0x59fca4[_0x45c47d]]&&'__proto__'!==_0x59fca4[_0x45c47d]&&(this[_0x59fca4[_0x45c47d]]=_0x2d4bff[_0x59fca4[_0x45c47d]]);}}return _0x5037dc['prototype']['flags']='',_0x5037dc['prototype']['rooms']=_0x3bb2e6['emptyArray'],_0x5037dc['prototype']['except']=_0x3bb2e6['emptyArray'],_0x5037dc['create']=function(_0x171e6a){return new _0x5037dc(_0x171e6a);},_0x5037dc['encode']=function(_0x565b69,_0x55b362,_0x3860b1){if(_0x55b362||(_0x55b362=_0x51052a['create']()),void 0x0===_0x3860b1&&(_0x3860b1=0x0),_0x3860b1>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x565b69['flags']&&Object['hasOwnProperty']['call'](_0x565b69,'flags')&&_0x55b362['uint32'](0xa)['string'](_0x565b69['flags']),null!=_0x565b69['rooms']&&_0x565b69['rooms']['length']){for(var _0x127f09=0x0;_0x127f09<_0x565b69['rooms']['length'];++_0x127f09)_0x55b362['uint32'](0x12)['string'](_0x565b69['rooms'][_0x127f09]);}if(null!=_0x565b69['except']&&_0x565b69['except']['length']){for(_0x127f09=0x0;_0x127f09<_0x565b69['except']['length'];++_0x127f09)_0x55b362['uint32'](0x1a)['string'](_0x565b69['except'][_0x127f09]);}return _0x55b362;},_0x5037dc['encodeDelimited']=function(_0x3fd445,_0x2977d3){return this['encode'](_0x3fd445,_0x2977d3)['ldelim']();},_0x5037dc['decode']=function(_0x38e703,_0x4aad3b,_0xcde353,_0x2f27ce){if(_0x38e703 instanceof _0x1f0e29||(_0x38e703=_0x1f0e29['create'](_0x38e703)),void 0x0===_0x2f27ce&&(_0x2f27ce=0x0),_0x2f27ce>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x511477=void 0x0===_0x4aad3b?_0x38e703['len']:_0x38e703['pos']+_0x4aad3b,_0x2c3698=new _0x34d3e2['PacketOptionsMessage']();_0x38e703['pos']<_0x511477;){var _0xcc8cee=_0x38e703['uint32']();if(_0xcc8cee===_0xcde353)break;switch(_0xcc8cee>>>0x3){case 0x1:_0x2c3698['flags']=_0x38e703['string']();break;case 0x2:_0x2c3698['rooms']&&_0x2c3698['rooms']['length']||(_0x2c3698['rooms']=[]),_0x2c3698['rooms']['push'](_0x38e703['string']());break;case 0x3:_0x2c3698['except']&&_0x2c3698['except']['length']||(_0x2c3698['except']=[]),_0x2c3698['except']['push'](_0x38e703['string']());break;default:_0x38e703['skipType'](0x7&_0xcc8cee,_0x2f27ce);}}return _0x2c3698;},_0x5037dc['decodeDelimited']=function(_0x1dacb9){return _0x1dacb9 instanceof _0x1f0e29||(_0x1dacb9=new _0x1f0e29(_0x1dacb9)),this['decode'](_0x1dacb9,_0x1dacb9['uint32']());},_0x5037dc['verify']=function(_0x58427f,_0x43c9a5){if('object'!=typeof _0x58427f||null===_0x58427f)return'object\x20expected';if(void 0x0===_0x43c9a5&&(_0x43c9a5=0x0),_0x43c9a5>_0x3bb2e6['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x58427f['flags']&&Object['hasOwnProperty']['call'](_0x58427f,'flags')&&!_0x3bb2e6['isString'](_0x58427f['flags']))return'flags:\x20string\x20expected';if(null!=_0x58427f['rooms']&&Object['hasOwnProperty']['call'](_0x58427f,'rooms')){if(!Array['isArray'](_0x58427f['rooms']))return'rooms:\x20array\x20expected';for(var _0x408212=0x0;_0x408212<_0x58427f['rooms']['length'];++_0x408212)if(!_0x3bb2e6['isString'](_0x58427f['rooms'][_0x408212]))return'rooms:\x20string[]\x20expected';}if(null!=_0x58427f['except']&&Object['hasOwnProperty']['call'](_0x58427f,'except')){if(!Array['isArray'](_0x58427f['except']))return'except:\x20array\x20expected';for(_0x408212=0x0;_0x408212<_0x58427f['except']['length'];++_0x408212)if(!_0x3bb2e6['isString'](_0x58427f['except'][_0x408212]))return'except:\x20string[]\x20expected';}return null;},_0x5037dc['fromObject']=function(_0x49a4bf,_0x59a8dc){if(_0x49a4bf instanceof _0x34d3e2['PacketOptionsMessage'])return _0x49a4bf;if(!_0x3bb2e6['isObject'](_0x49a4bf))throw TypeError('.PacketOptionsMessage:\x20object\x20expected');if(void 0x0===_0x59a8dc&&(_0x59a8dc=0x0),_0x59a8dc>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0xdd6b9f=new _0x34d3e2['PacketOptionsMessage']();if(null!=_0x49a4bf['flags']&&(_0xdd6b9f['flags']=String(_0x49a4bf['flags'])),_0x49a4bf['rooms']){if(!Array['isArray'](_0x49a4bf['rooms']))throw TypeError('.PacketOptionsMessage.rooms:\x20array\x20expected');_0xdd6b9f['rooms']=[];for(var _0x348506=0x0;_0x348506<_0x49a4bf['rooms']['length'];++_0x348506)_0xdd6b9f['rooms'][_0x348506]=String(_0x49a4bf['rooms'][_0x348506]);}if(_0x49a4bf['except']){if(!Array['isArray'](_0x49a4bf['except']))throw TypeError('.PacketOptionsMessage.except:\x20array\x20expected');for(_0xdd6b9f['except']=[],_0x348506=0x0;_0x348506<_0x49a4bf['except']['length'];++_0x348506)_0xdd6b9f['except'][_0x348506]=String(_0x49a4bf['except'][_0x348506]);}return _0xdd6b9f;},_0x5037dc['toObject']=function(_0x1cdaa9,_0x42d715,_0x4694cd){if(_0x42d715||(_0x42d715={}),void 0x0===_0x4694cd&&(_0x4694cd=0x0),_0x4694cd>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0xeae3ee={};if((_0x42d715['arrays']||_0x42d715['defaults'])&&(_0xeae3ee['rooms']=[],_0xeae3ee['except']=[]),_0x42d715['defaults']&&(_0xeae3ee['flags']=''),null!=_0x1cdaa9['flags']&&Object['hasOwnProperty']['call'](_0x1cdaa9,'flags')&&(_0xeae3ee['flags']=_0x1cdaa9['flags']),_0x1cdaa9['rooms']&&_0x1cdaa9['rooms']['length']){_0xeae3ee['rooms']=[];for(var _0x5cfc85=0x0;_0x5cfc85<_0x1cdaa9['rooms']['length'];++_0x5cfc85)_0xeae3ee['rooms'][_0x5cfc85]=_0x1cdaa9['rooms'][_0x5cfc85];}if(_0x1cdaa9['except']&&_0x1cdaa9['except']['length']){for(_0xeae3ee['except']=[],_0x5cfc85=0x0;_0x5cfc85<_0x1cdaa9['except']['length'];++_0x5cfc85)_0xeae3ee['except'][_0x5cfc85]=_0x1cdaa9['except'][_0x5cfc85];}return _0xeae3ee;},_0x5037dc['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x5037dc['getTypeUrl']=function(_0x5c5213){return void 0x0===_0x5c5213&&(_0x5c5213='type.googleapis.com'),_0x5c5213+'/PacketOptionsMessage';},_0x5037dc;}()),_0x34d3e2['PacketMessage']=(function(){function _0xf53238(_0x151b8d){if(_0x151b8d){for(var _0x42dfdc=Object['keys'](_0x151b8d),_0x461def=0x0;_0x461def<_0x42dfdc['length'];++_0x461def)null!=_0x151b8d[_0x42dfdc[_0x461def]]&&'__proto__'!==_0x42dfdc[_0x461def]&&(this[_0x42dfdc[_0x461def]]=_0x151b8d[_0x42dfdc[_0x461def]]);}}return _0xf53238['prototype']['type']=0x0,_0xf53238['prototype']['id']=0x0,_0xf53238['prototype']['nsp']='',_0xf53238['prototype']['data']=_0x3bb2e6['newBuffer']([]),_0xf53238['prototype']['options']=_0x3bb2e6['newBuffer']([]),_0xf53238['create']=function(_0x4fc484){return new _0xf53238(_0x4fc484);},_0xf53238['encode']=function(_0x322878,_0x23eef7,_0x1a3042){if(_0x23eef7||(_0x23eef7=_0x51052a['create']()),void 0x0===_0x1a3042&&(_0x1a3042=0x0),_0x1a3042>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x322878['type']&&Object['hasOwnProperty']['call'](_0x322878,'type')&&_0x23eef7['uint32'](0x8)['uint32'](_0x322878['type']),null!=_0x322878['id']&&Object['hasOwnProperty']['call'](_0x322878,'id')&&_0x23eef7['uint32'](0x10)['uint32'](_0x322878['id']),null!=_0x322878['nsp']&&Object['hasOwnProperty']['call'](_0x322878,'nsp')&&_0x23eef7['uint32'](0x1a)['string'](_0x322878['nsp']),null!=_0x322878['data']&&Object['hasOwnProperty']['call'](_0x322878,'data')&&_0x23eef7['uint32'](0x22)['bytes'](_0x322878['data']),null!=_0x322878['options']&&Object['hasOwnProperty']['call'](_0x322878,'options')&&_0x23eef7['uint32'](0x2a)['bytes'](_0x322878['options']),_0x23eef7;},_0xf53238['encodeDelimited']=function(_0x5da4d2,_0x51c01c){return this['encode'](_0x5da4d2,_0x51c01c)['ldelim']();},_0xf53238['decode']=function(_0x11eaa1,_0x4e9128,_0x2a6fd4,_0x3582d9){if(_0x11eaa1 instanceof _0x1f0e29||(_0x11eaa1=_0x1f0e29['create'](_0x11eaa1)),void 0x0===_0x3582d9&&(_0x3582d9=0x0),_0x3582d9>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x4971b8=void 0x0===_0x4e9128?_0x11eaa1['len']:_0x11eaa1['pos']+_0x4e9128,_0x37712e=new _0x34d3e2['PacketMessage']();_0x11eaa1['pos']<_0x4971b8;){var _0x40f2c8=_0x11eaa1['uint32']();if(_0x40f2c8===_0x2a6fd4)break;switch(_0x40f2c8>>>0x3){case 0x1:_0x37712e['type']=_0x11eaa1['uint32']();break;case 0x2:_0x37712e['id']=_0x11eaa1['uint32']();break;case 0x3:_0x37712e['nsp']=_0x11eaa1['string']();break;case 0x4:_0x37712e['data']=_0x11eaa1['bytes']();break;case 0x5:_0x37712e['options']=_0x11eaa1['bytes']();break;default:_0x11eaa1['skipType'](0x7&_0x40f2c8,_0x3582d9);}}return _0x37712e;},_0xf53238['decodeDelimited']=function(_0x4de528){return _0x4de528 instanceof _0x1f0e29||(_0x4de528=new _0x1f0e29(_0x4de528)),this['decode'](_0x4de528,_0x4de528['uint32']());},_0xf53238['verify']=function(_0x4189da,_0x39f335){return'object'!=typeof _0x4189da||null===_0x4189da?'object\x20expected':(void 0x0===_0x39f335&&(_0x39f335=0x0),_0x39f335>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x4189da['type']&&Object['hasOwnProperty']['call'](_0x4189da,'type')&&!_0x3bb2e6['isInteger'](_0x4189da['type'])?'type:\x20integer\x20expected':null!=_0x4189da['id']&&Object['hasOwnProperty']['call'](_0x4189da,'id')&&!_0x3bb2e6['isInteger'](_0x4189da['id'])?'id:\x20integer\x20expected':null!=_0x4189da['nsp']&&Object['hasOwnProperty']['call'](_0x4189da,'nsp')&&!_0x3bb2e6['isString'](_0x4189da['nsp'])?'nsp:\x20string\x20expected':null!=_0x4189da['data']&&Object['hasOwnProperty']['call'](_0x4189da,'data')&&!(_0x4189da['data']&&'number'==typeof _0x4189da['data']['length']||_0x3bb2e6['isString'](_0x4189da['data']))?'data:\x20buffer\x20expected':null!=_0x4189da['options']&&Object['hasOwnProperty']['call'](_0x4189da,'options')&&!(_0x4189da['options']&&'number'==typeof _0x4189da['options']['length']||_0x3bb2e6['isString'](_0x4189da['options']))?'options:\x20buffer\x20expected':null);},_0xf53238['fromObject']=function(_0x2ba88f,_0x59d1e8){if(_0x2ba88f instanceof _0x34d3e2['PacketMessage'])return _0x2ba88f;if(!_0x3bb2e6['isObject'](_0x2ba88f))throw TypeError('.PacketMessage:\x20object\x20expected');if(void 0x0===_0x59d1e8&&(_0x59d1e8=0x0),_0x59d1e8>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x398d5c=new _0x34d3e2['PacketMessage']();return null!=_0x2ba88f['type']&&(_0x398d5c['type']=_0x2ba88f['type']>>>0x0),null!=_0x2ba88f['id']&&(_0x398d5c['id']=_0x2ba88f['id']>>>0x0),null!=_0x2ba88f['nsp']&&(_0x398d5c['nsp']=String(_0x2ba88f['nsp'])),null!=_0x2ba88f['data']&&('string'==typeof _0x2ba88f['data']?_0x3bb2e6['base64']['decode'](_0x2ba88f['data'],_0x398d5c['data']=_0x3bb2e6['newBuffer'](_0x3bb2e6['base64']['length'](_0x2ba88f['data'])),0x0):_0x2ba88f['data']['length']>=0x0&&(_0x398d5c['data']=_0x2ba88f['data'])),null!=_0x2ba88f['options']&&('string'==typeof _0x2ba88f['options']?_0x3bb2e6['base64']['decode'](_0x2ba88f['options'],_0x398d5c['options']=_0x3bb2e6['newBuffer'](_0x3bb2e6['base64']['length'](_0x2ba88f['options'])),0x0):_0x2ba88f['options']['length']>=0x0&&(_0x398d5c['options']=_0x2ba88f['options'])),_0x398d5c;},_0xf53238['toObject']=function(_0x16e765,_0x2a1889,_0x3bc002){if(_0x2a1889||(_0x2a1889={}),void 0x0===_0x3bc002&&(_0x3bc002=0x0),_0x3bc002>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x5872c3={};return _0x2a1889['defaults']&&(_0x5872c3['type']=0x0,_0x5872c3['id']=0x0,_0x5872c3['nsp']='',_0x2a1889['bytes']===String?_0x5872c3['data']='':(_0x5872c3['data']=[],_0x2a1889['bytes']!==Array&&(_0x5872c3['data']=_0x3bb2e6['newBuffer'](_0x5872c3['data']))),_0x2a1889['bytes']===String?_0x5872c3['options']='':(_0x5872c3['options']=[],_0x2a1889['bytes']!==Array&&(_0x5872c3['options']=_0x3bb2e6['newBuffer'](_0x5872c3['options'])))),null!=_0x16e765['type']&&Object['hasOwnProperty']['call'](_0x16e765,'type')&&(_0x5872c3['type']=_0x16e765['type']),null!=_0x16e765['id']&&Object['hasOwnProperty']['call'](_0x16e765,'id')&&(_0x5872c3['id']=_0x16e765['id']),null!=_0x16e765['nsp']&&Object['hasOwnProperty']['call'](_0x16e765,'nsp')&&(_0x5872c3['nsp']=_0x16e765['nsp']),null!=_0x16e765['data']&&Object['hasOwnProperty']['call'](_0x16e765,'data')&&(_0x5872c3['data']=_0x2a1889['bytes']===String?_0x3bb2e6['base64']['encode'](_0x16e765['data'],0x0,_0x16e765['data']['length']):_0x2a1889['bytes']===Array?Array['prototype']['slice']['call'](_0x16e765['data']):_0x16e765['data']),null!=_0x16e765['options']&&Object['hasOwnProperty']['call'](_0x16e765,'options')&&(_0x5872c3['options']=_0x2a1889['bytes']===String?_0x3bb2e6['base64']['encode'](_0x16e765['options'],0x0,_0x16e765['options']['length']):_0x2a1889['bytes']===Array?Array['prototype']['slice']['call'](_0x16e765['options']):_0x16e765['options']),_0x5872c3;},_0xf53238['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0xf53238['getTypeUrl']=function(_0x3e61ed){return void 0x0===_0x3e61ed&&(_0x3e61ed='type.googleapis.com'),_0x3e61ed+'/PacketMessage';},_0xf53238;}()),_0x34d3e2['ObjectObjectPacketDataMessage']=(function(){function _0x22cfb4(_0x2c69d4){if(_0x2c69d4){for(var _0x5eb62e=Object['keys'](_0x2c69d4),_0x35af3f=0x0;_0x35af3f<_0x5eb62e['length'];++_0x35af3f)null!=_0x2c69d4[_0x5eb62e[_0x35af3f]]&&'__proto__'!==_0x5eb62e[_0x35af3f]&&(this[_0x5eb62e[_0x35af3f]]=_0x2c69d4[_0x5eb62e[_0x35af3f]]);}}return _0x22cfb4['prototype']['data']='',_0x22cfb4['prototype']['data1']='',_0x22cfb4['create']=function(_0x5cb6b6){return new _0x22cfb4(_0x5cb6b6);},_0x22cfb4['encode']=function(_0x5c5da8,_0x29dd4e,_0x449815){if(_0x29dd4e||(_0x29dd4e=_0x51052a['create']()),void 0x0===_0x449815&&(_0x449815=0x0),_0x449815>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x5c5da8['data']&&Object['hasOwnProperty']['call'](_0x5c5da8,'data')&&_0x29dd4e['uint32'](0xa)['string'](_0x5c5da8['data']),null!=_0x5c5da8['data1']&&Object['hasOwnProperty']['call'](_0x5c5da8,'data1')&&_0x29dd4e['uint32'](0x12)['string'](_0x5c5da8['data1']),_0x29dd4e;},_0x22cfb4['encodeDelimited']=function(_0x5415dd,_0x18acc7){return this['encode'](_0x5415dd,_0x18acc7)['ldelim']();},_0x22cfb4['decode']=function(_0x3ff3fd,_0xce7007,_0x37446f,_0x4106c8){if(_0x3ff3fd instanceof _0x1f0e29||(_0x3ff3fd=_0x1f0e29['create'](_0x3ff3fd)),void 0x0===_0x4106c8&&(_0x4106c8=0x0),_0x4106c8>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x20bdd6=void 0x0===_0xce7007?_0x3ff3fd['len']:_0x3ff3fd['pos']+_0xce7007,_0x938f5e=new _0x34d3e2['ObjectObjectPacketDataMessage']();_0x3ff3fd['pos']<_0x20bdd6;){var _0x34bc92=_0x3ff3fd['uint32']();if(_0x34bc92===_0x37446f)break;switch(_0x34bc92>>>0x3){case 0x1:_0x938f5e['data']=_0x3ff3fd['string']();break;case 0x2:_0x938f5e['data1']=_0x3ff3fd['string']();break;default:_0x3ff3fd['skipType'](0x7&_0x34bc92,_0x4106c8);}}return _0x938f5e;},_0x22cfb4['decodeDelimited']=function(_0x5a76c2){return _0x5a76c2 instanceof _0x1f0e29||(_0x5a76c2=new _0x1f0e29(_0x5a76c2)),this['decode'](_0x5a76c2,_0x5a76c2['uint32']());},_0x22cfb4['verify']=function(_0x41d261,_0x31bd6){return'object'!=typeof _0x41d261||null===_0x41d261?'object\x20expected':(void 0x0===_0x31bd6&&(_0x31bd6=0x0),_0x31bd6>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x41d261['data']&&Object['hasOwnProperty']['call'](_0x41d261,'data')&&!_0x3bb2e6['isString'](_0x41d261['data'])?'data:\x20string\x20expected':null!=_0x41d261['data1']&&Object['hasOwnProperty']['call'](_0x41d261,'data1')&&!_0x3bb2e6['isString'](_0x41d261['data1'])?'data1:\x20string\x20expected':null);},_0x22cfb4['fromObject']=function(_0x28a2a3,_0x3101b9){if(_0x28a2a3 instanceof _0x34d3e2['ObjectObjectPacketDataMessage'])return _0x28a2a3;if(!_0x3bb2e6['isObject'](_0x28a2a3))throw TypeError('.ObjectObjectPacketDataMessage:\x20object\x20expected');if(void 0x0===_0x3101b9&&(_0x3101b9=0x0),_0x3101b9>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x15cd18=new _0x34d3e2['ObjectObjectPacketDataMessage']();return null!=_0x28a2a3['data']&&(_0x15cd18['data']=String(_0x28a2a3['data'])),null!=_0x28a2a3['data1']&&(_0x15cd18['data1']=String(_0x28a2a3['data1'])),_0x15cd18;},_0x22cfb4['toObject']=function(_0xdcdb41,_0x42d756,_0x33cd99){if(_0x42d756||(_0x42d756={}),void 0x0===_0x33cd99&&(_0x33cd99=0x0),_0x33cd99>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x151666={};return _0x42d756['defaults']&&(_0x151666['data']='',_0x151666['data1']=''),null!=_0xdcdb41['data']&&Object['hasOwnProperty']['call'](_0xdcdb41,'data')&&(_0x151666['data']=_0xdcdb41['data']),null!=_0xdcdb41['data1']&&Object['hasOwnProperty']['call'](_0xdcdb41,'data1')&&(_0x151666['data1']=_0xdcdb41['data1']),_0x151666;},_0x22cfb4['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x22cfb4['getTypeUrl']=function(_0x3df39f){return void 0x0===_0x3df39f&&(_0x3df39f='type.googleapis.com'),_0x3df39f+'/ObjectObjectPacketDataMessage';},_0x22cfb4;}()),_0x34d3e2['ObjectBufferPacketDataMessage']=(function(){function _0x12ed2c(_0x245110){if(_0x245110){for(var _0x41adc8=Object['keys'](_0x245110),_0x2fa87e=0x0;_0x2fa87e<_0x41adc8['length'];++_0x2fa87e)null!=_0x245110[_0x41adc8[_0x2fa87e]]&&'__proto__'!==_0x41adc8[_0x2fa87e]&&(this[_0x41adc8[_0x2fa87e]]=_0x245110[_0x41adc8[_0x2fa87e]]);}}return _0x12ed2c['prototype']['data']='',_0x12ed2c['prototype']['data1']=_0x3bb2e6['newBuffer']([]),_0x12ed2c['create']=function(_0x4dac12){return new _0x12ed2c(_0x4dac12);},_0x12ed2c['encode']=function(_0xd1b583,_0x8ecfd8,_0x4c26f1){if(_0x8ecfd8||(_0x8ecfd8=_0x51052a['create']()),void 0x0===_0x4c26f1&&(_0x4c26f1=0x0),_0x4c26f1>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0xd1b583['data']&&Object['hasOwnProperty']['call'](_0xd1b583,'data')&&_0x8ecfd8['uint32'](0xa)['string'](_0xd1b583['data']),null!=_0xd1b583['data1']&&Object['hasOwnProperty']['call'](_0xd1b583,'data1')&&_0x8ecfd8['uint32'](0x12)['bytes'](_0xd1b583['data1']),_0x8ecfd8;},_0x12ed2c['encodeDelimited']=function(_0x8465ca,_0x7a4645){return this['encode'](_0x8465ca,_0x7a4645)['ldelim']();},_0x12ed2c['decode']=function(_0x5b3a04,_0x54a467,_0x33a1f3,_0x3c77b8){if(_0x5b3a04 instanceof _0x1f0e29||(_0x5b3a04=_0x1f0e29['create'](_0x5b3a04)),void 0x0===_0x3c77b8&&(_0x3c77b8=0x0),_0x3c77b8>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x56f02f=void 0x0===_0x54a467?_0x5b3a04['len']:_0x5b3a04['pos']+_0x54a467,_0x3fe733=new _0x34d3e2['ObjectBufferPacketDataMessage']();_0x5b3a04['pos']<_0x56f02f;){var _0x4ec636=_0x5b3a04['uint32']();if(_0x4ec636===_0x33a1f3)break;switch(_0x4ec636>>>0x3){case 0x1:_0x3fe733['data']=_0x5b3a04['string']();break;case 0x2:_0x3fe733['data1']=_0x5b3a04['bytes']();break;default:_0x5b3a04['skipType'](0x7&_0x4ec636,_0x3c77b8);}}return _0x3fe733;},_0x12ed2c['decodeDelimited']=function(_0x25203e){return _0x25203e instanceof _0x1f0e29||(_0x25203e=new _0x1f0e29(_0x25203e)),this['decode'](_0x25203e,_0x25203e['uint32']());},_0x12ed2c['verify']=function(_0x35e809,_0x4e2c0c){return'object'!=typeof _0x35e809||null===_0x35e809?'object\x20expected':(void 0x0===_0x4e2c0c&&(_0x4e2c0c=0x0),_0x4e2c0c>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x35e809['data']&&Object['hasOwnProperty']['call'](_0x35e809,'data')&&!_0x3bb2e6['isString'](_0x35e809['data'])?'data:\x20string\x20expected':null!=_0x35e809['data1']&&Object['hasOwnProperty']['call'](_0x35e809,'data1')&&!(_0x35e809['data1']&&'number'==typeof _0x35e809['data1']['length']||_0x3bb2e6['isString'](_0x35e809['data1']))?'data1:\x20buffer\x20expected':null);},_0x12ed2c['fromObject']=function(_0x49701e,_0x3f7951){if(_0x49701e instanceof _0x34d3e2['ObjectBufferPacketDataMessage'])return _0x49701e;if(!_0x3bb2e6['isObject'](_0x49701e))throw TypeError('.ObjectBufferPacketDataMessage:\x20object\x20expected');if(void 0x0===_0x3f7951&&(_0x3f7951=0x0),_0x3f7951>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x26b9cb=new _0x34d3e2['ObjectBufferPacketDataMessage']();return null!=_0x49701e['data']&&(_0x26b9cb['data']=String(_0x49701e['data'])),null!=_0x49701e['data1']&&('string'==typeof _0x49701e['data1']?_0x3bb2e6['base64']['decode'](_0x49701e['data1'],_0x26b9cb['data1']=_0x3bb2e6['newBuffer'](_0x3bb2e6['base64']['length'](_0x49701e['data1'])),0x0):_0x49701e['data1']['length']>=0x0&&(_0x26b9cb['data1']=_0x49701e['data1'])),_0x26b9cb;},_0x12ed2c['toObject']=function(_0x1b36f4,_0x206700,_0x432d8e){if(_0x206700||(_0x206700={}),void 0x0===_0x432d8e&&(_0x432d8e=0x0),_0x432d8e>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x85a9ad={};return _0x206700['defaults']&&(_0x85a9ad['data']='',_0x206700['bytes']===String?_0x85a9ad['data1']='':(_0x85a9ad['data1']=[],_0x206700['bytes']!==Array&&(_0x85a9ad['data1']=_0x3bb2e6['newBuffer'](_0x85a9ad['data1'])))),null!=_0x1b36f4['data']&&Object['hasOwnProperty']['call'](_0x1b36f4,'data')&&(_0x85a9ad['data']=_0x1b36f4['data']),null!=_0x1b36f4['data1']&&Object['hasOwnProperty']['call'](_0x1b36f4,'data1')&&(_0x85a9ad['data1']=_0x206700['bytes']===String?_0x3bb2e6['base64']['encode'](_0x1b36f4['data1'],0x0,_0x1b36f4['data1']['length']):_0x206700['bytes']===Array?Array['prototype']['slice']['call'](_0x1b36f4['data1']):_0x1b36f4['data1']),_0x85a9ad;},_0x12ed2c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x12ed2c['getTypeUrl']=function(_0x557b0e){return void 0x0===_0x557b0e&&(_0x557b0e='type.googleapis.com'),_0x557b0e+'/ObjectBufferPacketDataMessage';},_0x12ed2c;}()),_0x34d3e2['NumberStringPacketDataMessage']=(function(){function _0x24f468(_0x5267b2){if(_0x5267b2){for(var _0x4918dd=Object['keys'](_0x5267b2),_0x3733a6=0x0;_0x3733a6<_0x4918dd['length'];++_0x3733a6)null!=_0x5267b2[_0x4918dd[_0x3733a6]]&&'__proto__'!==_0x4918dd[_0x3733a6]&&(this[_0x4918dd[_0x3733a6]]=_0x5267b2[_0x4918dd[_0x3733a6]]);}}return _0x24f468['prototype']['data']=0x0,_0x24f468['prototype']['data1']='',_0x24f468['create']=function(_0x798a83){return new _0x24f468(_0x798a83);},_0x24f468['encode']=function(_0x275b10,_0x36dcd6,_0x4587e1){if(_0x36dcd6||(_0x36dcd6=_0x51052a['create']()),void 0x0===_0x4587e1&&(_0x4587e1=0x0),_0x4587e1>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x275b10['data']&&Object['hasOwnProperty']['call'](_0x275b10,'data')&&_0x36dcd6['uint32'](0x8)['uint32'](_0x275b10['data']),null!=_0x275b10['data1']&&Object['hasOwnProperty']['call'](_0x275b10,'data1')&&_0x36dcd6['uint32'](0x12)['string'](_0x275b10['data1']),_0x36dcd6;},_0x24f468['encodeDelimited']=function(_0x2ba08f,_0x5c1fdb){return this['encode'](_0x2ba08f,_0x5c1fdb)['ldelim']();},_0x24f468['decode']=function(_0x4c8361,_0x7af2ed,_0x5dc09c,_0x3e81e5){if(_0x4c8361 instanceof _0x1f0e29||(_0x4c8361=_0x1f0e29['create'](_0x4c8361)),void 0x0===_0x3e81e5&&(_0x3e81e5=0x0),_0x3e81e5>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x2ccad5=void 0x0===_0x7af2ed?_0x4c8361['len']:_0x4c8361['pos']+_0x7af2ed,_0x2b09e1=new _0x34d3e2['NumberStringPacketDataMessage']();_0x4c8361['pos']<_0x2ccad5;){var _0x271200=_0x4c8361['uint32']();if(_0x271200===_0x5dc09c)break;switch(_0x271200>>>0x3){case 0x1:_0x2b09e1['data']=_0x4c8361['uint32']();break;case 0x2:_0x2b09e1['data1']=_0x4c8361['string']();break;default:_0x4c8361['skipType'](0x7&_0x271200,_0x3e81e5);}}return _0x2b09e1;},_0x24f468['decodeDelimited']=function(_0x54cdf9){return _0x54cdf9 instanceof _0x1f0e29||(_0x54cdf9=new _0x1f0e29(_0x54cdf9)),this['decode'](_0x54cdf9,_0x54cdf9['uint32']());},_0x24f468['verify']=function(_0x3a9e32,_0x175ed6){return'object'!=typeof _0x3a9e32||null===_0x3a9e32?'object\x20expected':(void 0x0===_0x175ed6&&(_0x175ed6=0x0),_0x175ed6>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x3a9e32['data']&&Object['hasOwnProperty']['call'](_0x3a9e32,'data')&&!_0x3bb2e6['isInteger'](_0x3a9e32['data'])?'data:\x20integer\x20expected':null!=_0x3a9e32['data1']&&Object['hasOwnProperty']['call'](_0x3a9e32,'data1')&&!_0x3bb2e6['isString'](_0x3a9e32['data1'])?'data1:\x20string\x20expected':null);},_0x24f468['fromObject']=function(_0x3b811c,_0xeec146){if(_0x3b811c instanceof _0x34d3e2['NumberStringPacketDataMessage'])return _0x3b811c;if(!_0x3bb2e6['isObject'](_0x3b811c))throw TypeError('.NumberStringPacketDataMessage:\x20object\x20expected');if(void 0x0===_0xeec146&&(_0xeec146=0x0),_0xeec146>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x3b85e8=new _0x34d3e2['NumberStringPacketDataMessage']();return null!=_0x3b811c['data']&&(_0x3b85e8['data']=_0x3b811c['data']>>>0x0),null!=_0x3b811c['data1']&&(_0x3b85e8['data1']=String(_0x3b811c['data1'])),_0x3b85e8;},_0x24f468['toObject']=function(_0x1dad84,_0x3a7936,_0x376d82){if(_0x3a7936||(_0x3a7936={}),void 0x0===_0x376d82&&(_0x376d82=0x0),_0x376d82>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x3181a7={};return _0x3a7936['defaults']&&(_0x3181a7['data']=0x0,_0x3181a7['data1']=''),null!=_0x1dad84['data']&&Object['hasOwnProperty']['call'](_0x1dad84,'data')&&(_0x3181a7['data']=_0x1dad84['data']),null!=_0x1dad84['data1']&&Object['hasOwnProperty']['call'](_0x1dad84,'data1')&&(_0x3181a7['data1']=_0x1dad84['data1']),_0x3181a7;},_0x24f468['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x24f468['getTypeUrl']=function(_0x208fb9){return void 0x0===_0x208fb9&&(_0x208fb9='type.googleapis.com'),_0x208fb9+'/NumberStringPacketDataMessage';},_0x24f468;}()),_0x34d3e2['NumberObjectPacketDataMessage']=(function(){function _0x3e0035(_0x502e52){if(_0x502e52){for(var _0x47d952=Object['keys'](_0x502e52),_0x4e5d6e=0x0;_0x4e5d6e<_0x47d952['length'];++_0x4e5d6e)null!=_0x502e52[_0x47d952[_0x4e5d6e]]&&'__proto__'!==_0x47d952[_0x4e5d6e]&&(this[_0x47d952[_0x4e5d6e]]=_0x502e52[_0x47d952[_0x4e5d6e]]);}}return _0x3e0035['prototype']['data']=0x0,_0x3e0035['prototype']['data1']='',_0x3e0035['create']=function(_0x98c367){return new _0x3e0035(_0x98c367);},_0x3e0035['encode']=function(_0x1aae58,_0x5d123e,_0x1b87a5){if(_0x5d123e||(_0x5d123e=_0x51052a['create']()),void 0x0===_0x1b87a5&&(_0x1b87a5=0x0),_0x1b87a5>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x1aae58['data']&&Object['hasOwnProperty']['call'](_0x1aae58,'data')&&_0x5d123e['uint32'](0x8)['uint32'](_0x1aae58['data']),null!=_0x1aae58['data1']&&Object['hasOwnProperty']['call'](_0x1aae58,'data1')&&_0x5d123e['uint32'](0x12)['string'](_0x1aae58['data1']),_0x5d123e;},_0x3e0035['encodeDelimited']=function(_0xd2d3bd,_0x4bbc68){return this['encode'](_0xd2d3bd,_0x4bbc68)['ldelim']();},_0x3e0035['decode']=function(_0x4b9684,_0x9a931e,_0x19e68b,_0x24b6c8){if(_0x4b9684 instanceof _0x1f0e29||(_0x4b9684=_0x1f0e29['create'](_0x4b9684)),void 0x0===_0x24b6c8&&(_0x24b6c8=0x0),_0x24b6c8>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x5eaf10=void 0x0===_0x9a931e?_0x4b9684['len']:_0x4b9684['pos']+_0x9a931e,_0x2d0f7b=new _0x34d3e2['NumberObjectPacketDataMessage']();_0x4b9684['pos']<_0x5eaf10;){var _0x497ec4=_0x4b9684['uint32']();if(_0x497ec4===_0x19e68b)break;switch(_0x497ec4>>>0x3){case 0x1:_0x2d0f7b['data']=_0x4b9684['uint32']();break;case 0x2:_0x2d0f7b['data1']=_0x4b9684['string']();break;default:_0x4b9684['skipType'](0x7&_0x497ec4,_0x24b6c8);}}return _0x2d0f7b;},_0x3e0035['decodeDelimited']=function(_0x532cff){return _0x532cff instanceof _0x1f0e29||(_0x532cff=new _0x1f0e29(_0x532cff)),this['decode'](_0x532cff,_0x532cff['uint32']());},_0x3e0035['verify']=function(_0x355bda,_0x2db27d){return'object'!=typeof _0x355bda||null===_0x355bda?'object\x20expected':(void 0x0===_0x2db27d&&(_0x2db27d=0x0),_0x2db27d>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x355bda['data']&&Object['hasOwnProperty']['call'](_0x355bda,'data')&&!_0x3bb2e6['isInteger'](_0x355bda['data'])?'data:\x20integer\x20expected':null!=_0x355bda['data1']&&Object['hasOwnProperty']['call'](_0x355bda,'data1')&&!_0x3bb2e6['isString'](_0x355bda['data1'])?'data1:\x20string\x20expected':null);},_0x3e0035['fromObject']=function(_0x2da5dc,_0x5a4e5b){if(_0x2da5dc instanceof _0x34d3e2['NumberObjectPacketDataMessage'])return _0x2da5dc;if(!_0x3bb2e6['isObject'](_0x2da5dc))throw TypeError('.NumberObjectPacketDataMessage:\x20object\x20expected');if(void 0x0===_0x5a4e5b&&(_0x5a4e5b=0x0),_0x5a4e5b>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x24eff0=new _0x34d3e2['NumberObjectPacketDataMessage']();return null!=_0x2da5dc['data']&&(_0x24eff0['data']=_0x2da5dc['data']>>>0x0),null!=_0x2da5dc['data1']&&(_0x24eff0['data1']=String(_0x2da5dc['data1'])),_0x24eff0;},_0x3e0035['toObject']=function(_0x38a8e4,_0x19db53,_0x2d1257){if(_0x19db53||(_0x19db53={}),void 0x0===_0x2d1257&&(_0x2d1257=0x0),_0x2d1257>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x1e1cb4={};return _0x19db53['defaults']&&(_0x1e1cb4['data']=0x0,_0x1e1cb4['data1']=''),null!=_0x38a8e4['data']&&Object['hasOwnProperty']['call'](_0x38a8e4,'data')&&(_0x1e1cb4['data']=_0x38a8e4['data']),null!=_0x38a8e4['data1']&&Object['hasOwnProperty']['call'](_0x38a8e4,'data1')&&(_0x1e1cb4['data1']=_0x38a8e4['data1']),_0x1e1cb4;},_0x3e0035['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x3e0035['getTypeUrl']=function(_0x1ce3b6){return void 0x0===_0x1ce3b6&&(_0x1ce3b6='type.googleapis.com'),_0x1ce3b6+'/NumberObjectPacketDataMessage';},_0x3e0035;}()),_0x34d3e2['NumberNumberPacketDataMessage']=(function(){function _0x368071(_0x3f283b){if(_0x3f283b){for(var _0x3c515a=Object['keys'](_0x3f283b),_0x33ee97=0x0;_0x33ee97<_0x3c515a['length'];++_0x33ee97)null!=_0x3f283b[_0x3c515a[_0x33ee97]]&&'__proto__'!==_0x3c515a[_0x33ee97]&&(this[_0x3c515a[_0x33ee97]]=_0x3f283b[_0x3c515a[_0x33ee97]]);}}return _0x368071['prototype']['data']=0x0,_0x368071['prototype']['data1']=0x0,_0x368071['create']=function(_0x638467){return new _0x368071(_0x638467);},_0x368071['encode']=function(_0x4cfc51,_0x238c89,_0x2856e){if(_0x238c89||(_0x238c89=_0x51052a['create']()),void 0x0===_0x2856e&&(_0x2856e=0x0),_0x2856e>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x4cfc51['data']&&Object['hasOwnProperty']['call'](_0x4cfc51,'data')&&_0x238c89['uint32'](0x8)['uint32'](_0x4cfc51['data']),null!=_0x4cfc51['data1']&&Object['hasOwnProperty']['call'](_0x4cfc51,'data1')&&_0x238c89['uint32'](0x10)['uint32'](_0x4cfc51['data1']),_0x238c89;},_0x368071['encodeDelimited']=function(_0x110068,_0x3553bb){return this['encode'](_0x110068,_0x3553bb)['ldelim']();},_0x368071['decode']=function(_0x187102,_0x39ff2d,_0x25b706,_0x202a39){if(_0x187102 instanceof _0x1f0e29||(_0x187102=_0x1f0e29['create'](_0x187102)),void 0x0===_0x202a39&&(_0x202a39=0x0),_0x202a39>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x154bad=void 0x0===_0x39ff2d?_0x187102['len']:_0x187102['pos']+_0x39ff2d,_0xd8ed1f=new _0x34d3e2['NumberNumberPacketDataMessage']();_0x187102['pos']<_0x154bad;){var _0x39a39c=_0x187102['uint32']();if(_0x39a39c===_0x25b706)break;switch(_0x39a39c>>>0x3){case 0x1:_0xd8ed1f['data']=_0x187102['uint32']();break;case 0x2:_0xd8ed1f['data1']=_0x187102['uint32']();break;default:_0x187102['skipType'](0x7&_0x39a39c,_0x202a39);}}return _0xd8ed1f;},_0x368071['decodeDelimited']=function(_0x678e50){return _0x678e50 instanceof _0x1f0e29||(_0x678e50=new _0x1f0e29(_0x678e50)),this['decode'](_0x678e50,_0x678e50['uint32']());},_0x368071['verify']=function(_0x4ce8c7,_0x4d8c01){return'object'!=typeof _0x4ce8c7||null===_0x4ce8c7?'object\x20expected':(void 0x0===_0x4d8c01&&(_0x4d8c01=0x0),_0x4d8c01>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x4ce8c7['data']&&Object['hasOwnProperty']['call'](_0x4ce8c7,'data')&&!_0x3bb2e6['isInteger'](_0x4ce8c7['data'])?'data:\x20integer\x20expected':null!=_0x4ce8c7['data1']&&Object['hasOwnProperty']['call'](_0x4ce8c7,'data1')&&!_0x3bb2e6['isInteger'](_0x4ce8c7['data1'])?'data1:\x20integer\x20expected':null);},_0x368071['fromObject']=function(_0x14ce60,_0x497f5c){if(_0x14ce60 instanceof _0x34d3e2['NumberNumberPacketDataMessage'])return _0x14ce60;if(!_0x3bb2e6['isObject'](_0x14ce60))throw TypeError('.NumberNumberPacketDataMessage:\x20object\x20expected');if(void 0x0===_0x497f5c&&(_0x497f5c=0x0),_0x497f5c>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0xc2fe57=new _0x34d3e2['NumberNumberPacketDataMessage']();return null!=_0x14ce60['data']&&(_0xc2fe57['data']=_0x14ce60['data']>>>0x0),null!=_0x14ce60['data1']&&(_0xc2fe57['data1']=_0x14ce60['data1']>>>0x0),_0xc2fe57;},_0x368071['toObject']=function(_0x33904a,_0x3d21ed,_0x35c84d){if(_0x3d21ed||(_0x3d21ed={}),void 0x0===_0x35c84d&&(_0x35c84d=0x0),_0x35c84d>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x4bb6a6={};return _0x3d21ed['defaults']&&(_0x4bb6a6['data']=0x0,_0x4bb6a6['data1']=0x0),null!=_0x33904a['data']&&Object['hasOwnProperty']['call'](_0x33904a,'data')&&(_0x4bb6a6['data']=_0x33904a['data']),null!=_0x33904a['data1']&&Object['hasOwnProperty']['call'](_0x33904a,'data1')&&(_0x4bb6a6['data1']=_0x33904a['data1']),_0x4bb6a6;},_0x368071['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x368071['getTypeUrl']=function(_0x388ec2){return void 0x0===_0x388ec2&&(_0x388ec2='type.googleapis.com'),_0x388ec2+'/NumberNumberPacketDataMessage';},_0x368071;}()),_0x34d3e2['NumberBytesPacketDataMessage']=(function(){function _0x1d94c4(_0x36e50e){if(_0x36e50e){for(var _0x188cd0=Object['keys'](_0x36e50e),_0x193d7b=0x0;_0x193d7b<_0x188cd0['length'];++_0x193d7b)null!=_0x36e50e[_0x188cd0[_0x193d7b]]&&'__proto__'!==_0x188cd0[_0x193d7b]&&(this[_0x188cd0[_0x193d7b]]=_0x36e50e[_0x188cd0[_0x193d7b]]);}}return _0x1d94c4['prototype']['data']=0x0,_0x1d94c4['prototype']['data1']=_0x3bb2e6['newBuffer']([]),_0x1d94c4['create']=function(_0x5eb1a4){return new _0x1d94c4(_0x5eb1a4);},_0x1d94c4['encode']=function(_0x3b8153,_0x3d76b7,_0xeca4b2){if(_0x3d76b7||(_0x3d76b7=_0x51052a['create']()),void 0x0===_0xeca4b2&&(_0xeca4b2=0x0),_0xeca4b2>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x3b8153['data']&&Object['hasOwnProperty']['call'](_0x3b8153,'data')&&_0x3d76b7['uint32'](0x8)['uint32'](_0x3b8153['data']),null!=_0x3b8153['data1']&&Object['hasOwnProperty']['call'](_0x3b8153,'data1')&&_0x3d76b7['uint32'](0x12)['bytes'](_0x3b8153['data1']),_0x3d76b7;},_0x1d94c4['encodeDelimited']=function(_0x72731a,_0x2841fc){return this['encode'](_0x72731a,_0x2841fc)['ldelim']();},_0x1d94c4['decode']=function(_0x59f988,_0x112b38,_0x394898,_0x2af566){if(_0x59f988 instanceof _0x1f0e29||(_0x59f988=_0x1f0e29['create'](_0x59f988)),void 0x0===_0x2af566&&(_0x2af566=0x0),_0x2af566>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x329eb2=void 0x0===_0x112b38?_0x59f988['len']:_0x59f988['pos']+_0x112b38,_0x1f444c=new _0x34d3e2['NumberBytesPacketDataMessage']();_0x59f988['pos']<_0x329eb2;){var _0x18f634=_0x59f988['uint32']();if(_0x18f634===_0x394898)break;switch(_0x18f634>>>0x3){case 0x1:_0x1f444c['data']=_0x59f988['uint32']();break;case 0x2:_0x1f444c['data1']=_0x59f988['bytes']();break;default:_0x59f988['skipType'](0x7&_0x18f634,_0x2af566);}}return _0x1f444c;},_0x1d94c4['decodeDelimited']=function(_0x210c3c){return _0x210c3c instanceof _0x1f0e29||(_0x210c3c=new _0x1f0e29(_0x210c3c)),this['decode'](_0x210c3c,_0x210c3c['uint32']());},_0x1d94c4['verify']=function(_0x325bc2,_0x3d0cd5){return'object'!=typeof _0x325bc2||null===_0x325bc2?'object\x20expected':(void 0x0===_0x3d0cd5&&(_0x3d0cd5=0x0),_0x3d0cd5>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x325bc2['data']&&Object['hasOwnProperty']['call'](_0x325bc2,'data')&&!_0x3bb2e6['isInteger'](_0x325bc2['data'])?'data:\x20integer\x20expected':null!=_0x325bc2['data1']&&Object['hasOwnProperty']['call'](_0x325bc2,'data1')&&!(_0x325bc2['data1']&&'number'==typeof _0x325bc2['data1']['length']||_0x3bb2e6['isString'](_0x325bc2['data1']))?'data1:\x20buffer\x20expected':null);},_0x1d94c4['fromObject']=function(_0x34996d,_0x6e758b){if(_0x34996d instanceof _0x34d3e2['NumberBytesPacketDataMessage'])return _0x34996d;if(!_0x3bb2e6['isObject'](_0x34996d))throw TypeError('.NumberBytesPacketDataMessage:\x20object\x20expected');if(void 0x0===_0x6e758b&&(_0x6e758b=0x0),_0x6e758b>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x52160e=new _0x34d3e2['NumberBytesPacketDataMessage']();return null!=_0x34996d['data']&&(_0x52160e['data']=_0x34996d['data']>>>0x0),null!=_0x34996d['data1']&&('string'==typeof _0x34996d['data1']?_0x3bb2e6['base64']['decode'](_0x34996d['data1'],_0x52160e['data1']=_0x3bb2e6['newBuffer'](_0x3bb2e6['base64']['length'](_0x34996d['data1'])),0x0):_0x34996d['data1']['length']>=0x0&&(_0x52160e['data1']=_0x34996d['data1'])),_0x52160e;},_0x1d94c4['toObject']=function(_0x4e4e11,_0x5e5ab5,_0x5d9cf9){if(_0x5e5ab5||(_0x5e5ab5={}),void 0x0===_0x5d9cf9&&(_0x5d9cf9=0x0),_0x5d9cf9>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x50e621={};return _0x5e5ab5['defaults']&&(_0x50e621['data']=0x0,_0x5e5ab5['bytes']===String?_0x50e621['data1']='':(_0x50e621['data1']=[],_0x5e5ab5['bytes']!==Array&&(_0x50e621['data1']=_0x3bb2e6['newBuffer'](_0x50e621['data1'])))),null!=_0x4e4e11['data']&&Object['hasOwnProperty']['call'](_0x4e4e11,'data')&&(_0x50e621['data']=_0x4e4e11['data']),null!=_0x4e4e11['data1']&&Object['hasOwnProperty']['call'](_0x4e4e11,'data1')&&(_0x50e621['data1']=_0x5e5ab5['bytes']===String?_0x3bb2e6['base64']['encode'](_0x4e4e11['data1'],0x0,_0x4e4e11['data1']['length']):_0x5e5ab5['bytes']===Array?Array['prototype']['slice']['call'](_0x4e4e11['data1']):_0x4e4e11['data1']),_0x50e621;},_0x1d94c4['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x1d94c4['getTypeUrl']=function(_0x42c87b){return void 0x0===_0x42c87b&&(_0x42c87b='type.googleapis.com'),_0x42c87b+'/NumberBytesPacketDataMessage';},_0x1d94c4;}()),_0x34d3e2['BytesBytesPacketDataMessage']=(function(){function _0x4120e0(_0x54b88a){if(_0x54b88a){for(var _0x976bf4=Object['keys'](_0x54b88a),_0x5c1730=0x0;_0x5c1730<_0x976bf4['length'];++_0x5c1730)null!=_0x54b88a[_0x976bf4[_0x5c1730]]&&'__proto__'!==_0x976bf4[_0x5c1730]&&(this[_0x976bf4[_0x5c1730]]=_0x54b88a[_0x976bf4[_0x5c1730]]);}}return _0x4120e0['prototype']['data']=_0x3bb2e6['newBuffer']([]),_0x4120e0['prototype']['data1']=_0x3bb2e6['newBuffer']([]),_0x4120e0['create']=function(_0x555398){return new _0x4120e0(_0x555398);},_0x4120e0['encode']=function(_0x1e262a,_0x2f0fe0,_0x2b9192){if(_0x2f0fe0||(_0x2f0fe0=_0x51052a['create']()),void 0x0===_0x2b9192&&(_0x2b9192=0x0),_0x2b9192>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x1e262a['data']&&Object['hasOwnProperty']['call'](_0x1e262a,'data')&&_0x2f0fe0['uint32'](0xa)['bytes'](_0x1e262a['data']),null!=_0x1e262a['data1']&&Object['hasOwnProperty']['call'](_0x1e262a,'data1')&&_0x2f0fe0['uint32'](0x12)['bytes'](_0x1e262a['data1']),_0x2f0fe0;},_0x4120e0['encodeDelimited']=function(_0x3e7728,_0x2f2be1){return this['encode'](_0x3e7728,_0x2f2be1)['ldelim']();},_0x4120e0['decode']=function(_0x2759cb,_0x817860,_0x4ee693,_0x52c962){if(_0x2759cb instanceof _0x1f0e29||(_0x2759cb=_0x1f0e29['create'](_0x2759cb)),void 0x0===_0x52c962&&(_0x52c962=0x0),_0x52c962>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x2788e7=void 0x0===_0x817860?_0x2759cb['len']:_0x2759cb['pos']+_0x817860,_0x4f7976=new _0x34d3e2['BytesBytesPacketDataMessage']();_0x2759cb['pos']<_0x2788e7;){var _0x251f27=_0x2759cb['uint32']();if(_0x251f27===_0x4ee693)break;switch(_0x251f27>>>0x3){case 0x1:_0x4f7976['data']=_0x2759cb['bytes']();break;case 0x2:_0x4f7976['data1']=_0x2759cb['bytes']();break;default:_0x2759cb['skipType'](0x7&_0x251f27,_0x52c962);}}return _0x4f7976;},_0x4120e0['decodeDelimited']=function(_0x846ae6){return _0x846ae6 instanceof _0x1f0e29||(_0x846ae6=new _0x1f0e29(_0x846ae6)),this['decode'](_0x846ae6,_0x846ae6['uint32']());},_0x4120e0['verify']=function(_0x343b2d,_0x381bc8){return'object'!=typeof _0x343b2d||null===_0x343b2d?'object\x20expected':(void 0x0===_0x381bc8&&(_0x381bc8=0x0),_0x381bc8>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x343b2d['data']&&Object['hasOwnProperty']['call'](_0x343b2d,'data')&&!(_0x343b2d['data']&&'number'==typeof _0x343b2d['data']['length']||_0x3bb2e6['isString'](_0x343b2d['data']))?'data:\x20buffer\x20expected':null!=_0x343b2d['data1']&&Object['hasOwnProperty']['call'](_0x343b2d,'data1')&&!(_0x343b2d['data1']&&'number'==typeof _0x343b2d['data1']['length']||_0x3bb2e6['isString'](_0x343b2d['data1']))?'data1:\x20buffer\x20expected':null);},_0x4120e0['fromObject']=function(_0x2de943,_0x637c1){if(_0x2de943 instanceof _0x34d3e2['BytesBytesPacketDataMessage'])return _0x2de943;if(!_0x3bb2e6['isObject'](_0x2de943))throw TypeError('.BytesBytesPacketDataMessage:\x20object\x20expected');if(void 0x0===_0x637c1&&(_0x637c1=0x0),_0x637c1>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x6faab1=new _0x34d3e2['BytesBytesPacketDataMessage']();return null!=_0x2de943['data']&&('string'==typeof _0x2de943['data']?_0x3bb2e6['base64']['decode'](_0x2de943['data'],_0x6faab1['data']=_0x3bb2e6['newBuffer'](_0x3bb2e6['base64']['length'](_0x2de943['data'])),0x0):_0x2de943['data']['length']>=0x0&&(_0x6faab1['data']=_0x2de943['data'])),null!=_0x2de943['data1']&&('string'==typeof _0x2de943['data1']?_0x3bb2e6['base64']['decode'](_0x2de943['data1'],_0x6faab1['data1']=_0x3bb2e6['newBuffer'](_0x3bb2e6['base64']['length'](_0x2de943['data1'])),0x0):_0x2de943['data1']['length']>=0x0&&(_0x6faab1['data1']=_0x2de943['data1'])),_0x6faab1;},_0x4120e0['toObject']=function(_0x4a54ee,_0x29ef7a,_0x53f919){if(_0x29ef7a||(_0x29ef7a={}),void 0x0===_0x53f919&&(_0x53f919=0x0),_0x53f919>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x453b0a={};return _0x29ef7a['defaults']&&(_0x29ef7a['bytes']===String?_0x453b0a['data']='':(_0x453b0a['data']=[],_0x29ef7a['bytes']!==Array&&(_0x453b0a['data']=_0x3bb2e6['newBuffer'](_0x453b0a['data']))),_0x29ef7a['bytes']===String?_0x453b0a['data1']='':(_0x453b0a['data1']=[],_0x29ef7a['bytes']!==Array&&(_0x453b0a['data1']=_0x3bb2e6['newBuffer'](_0x453b0a['data1'])))),null!=_0x4a54ee['data']&&Object['hasOwnProperty']['call'](_0x4a54ee,'data')&&(_0x453b0a['data']=_0x29ef7a['bytes']===String?_0x3bb2e6['base64']['encode'](_0x4a54ee['data'],0x0,_0x4a54ee['data']['length']):_0x29ef7a['bytes']===Array?Array['prototype']['slice']['call'](_0x4a54ee['data']):_0x4a54ee['data']),null!=_0x4a54ee['data1']&&Object['hasOwnProperty']['call'](_0x4a54ee,'data1')&&(_0x453b0a['data1']=_0x29ef7a['bytes']===String?_0x3bb2e6['base64']['encode'](_0x4a54ee['data1'],0x0,_0x4a54ee['data1']['length']):_0x29ef7a['bytes']===Array?Array['prototype']['slice']['call'](_0x4a54ee['data1']):_0x4a54ee['data1']),_0x453b0a;},_0x4120e0['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x4120e0['getTypeUrl']=function(_0x45efca){return void 0x0===_0x45efca&&(_0x45efca='type.googleapis.com'),_0x45efca+'/BytesBytesPacketDataMessage';},_0x4120e0;}()),_0x34d3e2['ChannelMessage']=(function(){function _0x5281c3(_0x517dd6){if(_0x517dd6){for(var _0x181ea8=Object['keys'](_0x517dd6),_0x432794=0x0;_0x432794<_0x181ea8['length'];++_0x432794)null!=_0x517dd6[_0x181ea8[_0x432794]]&&'__proto__'!==_0x181ea8[_0x432794]&&(this[_0x181ea8[_0x432794]]=_0x517dd6[_0x181ea8[_0x432794]]);}}return _0x5281c3['prototype']['type']=0x0,_0x5281c3['prototype']['socketId']='',_0x5281c3['prototype']['data']=_0x3bb2e6['newBuffer']([]),_0x5281c3['create']=function(_0x17995a){return new _0x5281c3(_0x17995a);},_0x5281c3['encode']=function(_0x1417e7,_0x5ea6d,_0x5d898f){if(_0x5ea6d||(_0x5ea6d=_0x51052a['create']()),void 0x0===_0x5d898f&&(_0x5d898f=0x0),_0x5d898f>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x1417e7['type']&&Object['hasOwnProperty']['call'](_0x1417e7,'type')&&_0x5ea6d['uint32'](0x8)['uint32'](_0x1417e7['type']),null!=_0x1417e7['socketId']&&Object['hasOwnProperty']['call'](_0x1417e7,'socketId')&&_0x5ea6d['uint32'](0x12)['string'](_0x1417e7['socketId']),null!=_0x1417e7['data']&&Object['hasOwnProperty']['call'](_0x1417e7,'data')&&_0x5ea6d['uint32'](0x1a)['bytes'](_0x1417e7['data']),_0x5ea6d;},_0x5281c3['encodeDelimited']=function(_0x326a8f,_0x4ee56e){return this['encode'](_0x326a8f,_0x4ee56e)['ldelim']();},_0x5281c3['decode']=function(_0x3ca8d2,_0xc2d7e8,_0x2f1155,_0x533553){if(_0x3ca8d2 instanceof _0x1f0e29||(_0x3ca8d2=_0x1f0e29['create'](_0x3ca8d2)),void 0x0===_0x533553&&(_0x533553=0x0),_0x533553>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x5a791e=void 0x0===_0xc2d7e8?_0x3ca8d2['len']:_0x3ca8d2['pos']+_0xc2d7e8,_0x437f71=new _0x34d3e2['ChannelMessage']();_0x3ca8d2['pos']<_0x5a791e;){var _0x1cf37b=_0x3ca8d2['uint32']();if(_0x1cf37b===_0x2f1155)break;switch(_0x1cf37b>>>0x3){case 0x1:_0x437f71['type']=_0x3ca8d2['uint32']();break;case 0x2:_0x437f71['socketId']=_0x3ca8d2['string']();break;case 0x3:_0x437f71['data']=_0x3ca8d2['bytes']();break;default:_0x3ca8d2['skipType'](0x7&_0x1cf37b,_0x533553);}}return _0x437f71;},_0x5281c3['decodeDelimited']=function(_0x495da0){return _0x495da0 instanceof _0x1f0e29||(_0x495da0=new _0x1f0e29(_0x495da0)),this['decode'](_0x495da0,_0x495da0['uint32']());},_0x5281c3['verify']=function(_0x265c40,_0x37fe6b){return'object'!=typeof _0x265c40||null===_0x265c40?'object\x20expected':(void 0x0===_0x37fe6b&&(_0x37fe6b=0x0),_0x37fe6b>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x265c40['type']&&Object['hasOwnProperty']['call'](_0x265c40,'type')&&!_0x3bb2e6['isInteger'](_0x265c40['type'])?'type:\x20integer\x20expected':null!=_0x265c40['socketId']&&Object['hasOwnProperty']['call'](_0x265c40,'socketId')&&!_0x3bb2e6['isString'](_0x265c40['socketId'])?'socketId:\x20string\x20expected':null!=_0x265c40['data']&&Object['hasOwnProperty']['call'](_0x265c40,'data')&&!(_0x265c40['data']&&'number'==typeof _0x265c40['data']['length']||_0x3bb2e6['isString'](_0x265c40['data']))?'data:\x20buffer\x20expected':null);},_0x5281c3['fromObject']=function(_0xca6c18,_0x278018){if(_0xca6c18 instanceof _0x34d3e2['ChannelMessage'])return _0xca6c18;if(!_0x3bb2e6['isObject'](_0xca6c18))throw TypeError('.ChannelMessage:\x20object\x20expected');if(void 0x0===_0x278018&&(_0x278018=0x0),_0x278018>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x2392b2=new _0x34d3e2['ChannelMessage']();return null!=_0xca6c18['type']&&(_0x2392b2['type']=_0xca6c18['type']>>>0x0),null!=_0xca6c18['socketId']&&(_0x2392b2['socketId']=String(_0xca6c18['socketId'])),null!=_0xca6c18['data']&&('string'==typeof _0xca6c18['data']?_0x3bb2e6['base64']['decode'](_0xca6c18['data'],_0x2392b2['data']=_0x3bb2e6['newBuffer'](_0x3bb2e6['base64']['length'](_0xca6c18['data'])),0x0):_0xca6c18['data']['length']>=0x0&&(_0x2392b2['data']=_0xca6c18['data'])),_0x2392b2;},_0x5281c3['toObject']=function(_0x82e0c2,_0x1e7e40,_0x18cfef){if(_0x1e7e40||(_0x1e7e40={}),void 0x0===_0x18cfef&&(_0x18cfef=0x0),_0x18cfef>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x35597f={};return _0x1e7e40['defaults']&&(_0x35597f['type']=0x0,_0x35597f['socketId']='',_0x1e7e40['bytes']===String?_0x35597f['data']='':(_0x35597f['data']=[],_0x1e7e40['bytes']!==Array&&(_0x35597f['data']=_0x3bb2e6['newBuffer'](_0x35597f['data'])))),null!=_0x82e0c2['type']&&Object['hasOwnProperty']['call'](_0x82e0c2,'type')&&(_0x35597f['type']=_0x82e0c2['type']),null!=_0x82e0c2['socketId']&&Object['hasOwnProperty']['call'](_0x82e0c2,'socketId')&&(_0x35597f['socketId']=_0x82e0c2['socketId']),null!=_0x82e0c2['data']&&Object['hasOwnProperty']['call'](_0x82e0c2,'data')&&(_0x35597f['data']=_0x1e7e40['bytes']===String?_0x3bb2e6['base64']['encode'](_0x82e0c2['data'],0x0,_0x82e0c2['data']['length']):_0x1e7e40['bytes']===Array?Array['prototype']['slice']['call'](_0x82e0c2['data']):_0x82e0c2['data']),_0x35597f;},_0x5281c3['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x5281c3['getTypeUrl']=function(_0x19222e){return void 0x0===_0x19222e&&(_0x19222e='type.googleapis.com'),_0x19222e+'/ChannelMessage';},_0x5281c3;}()),_0x34d3e2['ChannelDisconnectedMessage']=(function(){function _0x13fecb(_0x2b162e){if(_0x2b162e){for(var _0x510699=Object['keys'](_0x2b162e),_0x2788e1=0x0;_0x2788e1<_0x510699['length'];++_0x2788e1)null!=_0x2b162e[_0x510699[_0x2788e1]]&&'__proto__'!==_0x510699[_0x2788e1]&&(this[_0x510699[_0x2788e1]]=_0x2b162e[_0x510699[_0x2788e1]]);}}return _0x13fecb['create']=function(_0x39ea25){return new _0x13fecb(_0x39ea25);},_0x13fecb['encode']=function(_0x84521a,_0x4ef4a8,_0x376497){if(_0x4ef4a8||(_0x4ef4a8=_0x51052a['create']()),void 0x0===_0x376497&&(_0x376497=0x0),_0x376497>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return _0x4ef4a8;},_0x13fecb['encodeDelimited']=function(_0x2c156f,_0x5aae23){return this['encode'](_0x2c156f,_0x5aae23)['ldelim']();},_0x13fecb['decode']=function(_0x2dfd75,_0x44ffb0,_0x76f831,_0xf02829){if(_0x2dfd75 instanceof _0x1f0e29||(_0x2dfd75=_0x1f0e29['create'](_0x2dfd75)),void 0x0===_0xf02829&&(_0xf02829=0x0),_0xf02829>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x44ec84=void 0x0===_0x44ffb0?_0x2dfd75['len']:_0x2dfd75['pos']+_0x44ffb0,_0x343074=new _0x34d3e2['ChannelDisconnectedMessage']();_0x2dfd75['pos']<_0x44ec84;){var _0x5a7ea5=_0x2dfd75['uint32']();if(_0x5a7ea5===_0x76f831)break;_0x2dfd75['skipType'](0x7&_0x5a7ea5,_0xf02829);}return _0x343074;},_0x13fecb['decodeDelimited']=function(_0x53c468){return _0x53c468 instanceof _0x1f0e29||(_0x53c468=new _0x1f0e29(_0x53c468)),this['decode'](_0x53c468,_0x53c468['uint32']());},_0x13fecb['verify']=function(_0x25e1e6,_0x41138b){return'object'!=typeof _0x25e1e6||null===_0x25e1e6?'object\x20expected':(void 0x0===_0x41138b&&(_0x41138b=0x0),_0x41138b>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null);},_0x13fecb['fromObject']=function(_0x3a20ed,_0x3d713a){return _0x3a20ed instanceof _0x34d3e2['ChannelDisconnectedMessage']?_0x3a20ed:new _0x34d3e2['ChannelDisconnectedMessage']();},_0x13fecb['toObject']=function(){return{};},_0x13fecb['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x13fecb['getTypeUrl']=function(_0x392ece){return void 0x0===_0x392ece&&(_0x392ece='type.googleapis.com'),_0x392ece+'/ChannelDisconnectedMessage';},_0x13fecb;}()),_0x34d3e2['GetUserResponse']=(function(){function _0x4cc2a7(_0x2c3958){if(this['attributes']=[],_0x2c3958){for(var _0x5fa80d=Object['keys'](_0x2c3958),_0x3249b0=0x0;_0x3249b0<_0x5fa80d['length'];++_0x3249b0)null!=_0x2c3958[_0x5fa80d[_0x3249b0]]&&'__proto__'!==_0x5fa80d[_0x3249b0]&&(this[_0x5fa80d[_0x3249b0]]=_0x2c3958[_0x5fa80d[_0x3249b0]]);}}return _0x4cc2a7['prototype']['attributes']=_0x3bb2e6['emptyArray'],_0x4cc2a7['create']=function(_0x409309){return new _0x4cc2a7(_0x409309);},_0x4cc2a7['encode']=function(_0x6a0ef0,_0x2ec097,_0x2001ae){if(_0x2ec097||(_0x2ec097=_0x51052a['create']()),void 0x0===_0x2001ae&&(_0x2001ae=0x0),_0x2001ae>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x6a0ef0['attributes']&&_0x6a0ef0['attributes']['length']){for(var _0x372917=0x0;_0x372917<_0x6a0ef0['attributes']['length'];++_0x372917)_0x34d3e2['KeyValueDescriptor']['encode'](_0x6a0ef0['attributes'][_0x372917],_0x2ec097['uint32'](0xa)['fork'](),_0x2001ae+0x1)['ldelim']();}return _0x2ec097;},_0x4cc2a7['encodeDelimited']=function(_0x478737,_0x3ecea9){return this['encode'](_0x478737,_0x3ecea9)['ldelim']();},_0x4cc2a7['decode']=function(_0x591e7c,_0x352659,_0x448524,_0x50abaa){if(_0x591e7c instanceof _0x1f0e29||(_0x591e7c=_0x1f0e29['create'](_0x591e7c)),void 0x0===_0x50abaa&&(_0x50abaa=0x0),_0x50abaa>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x30494f=void 0x0===_0x352659?_0x591e7c['len']:_0x591e7c['pos']+_0x352659,_0x4e204f=new _0x34d3e2['GetUserResponse']();_0x591e7c['pos']<_0x30494f;){var _0x1f5b18=_0x591e7c['uint32']();if(_0x1f5b18===_0x448524)break;_0x1f5b18>>>0x3==0x1?(_0x4e204f['attributes']&&_0x4e204f['attributes']['length']||(_0x4e204f['attributes']=[]),_0x4e204f['attributes']['push'](_0x34d3e2['KeyValueDescriptor']['decode'](_0x591e7c,_0x591e7c['uint32'](),void 0x0,_0x50abaa+0x1))):_0x591e7c['skipType'](0x7&_0x1f5b18,_0x50abaa);}return _0x4e204f;},_0x4cc2a7['decodeDelimited']=function(_0x207e23){return _0x207e23 instanceof _0x1f0e29||(_0x207e23=new _0x1f0e29(_0x207e23)),this['decode'](_0x207e23,_0x207e23['uint32']());},_0x4cc2a7['verify']=function(_0x5171ae,_0x1f85a0){if('object'!=typeof _0x5171ae||null===_0x5171ae)return'object\x20expected';if(void 0x0===_0x1f85a0&&(_0x1f85a0=0x0),_0x1f85a0>_0x3bb2e6['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x5171ae['attributes']&&Object['hasOwnProperty']['call'](_0x5171ae,'attributes')){if(!Array['isArray'](_0x5171ae['attributes']))return'attributes:\x20array\x20expected';for(var _0x5a875d=0x0;_0x5a875d<_0x5171ae['attributes']['length'];++_0x5a875d){var _0x101426=_0x34d3e2['KeyValueDescriptor']['verify'](_0x5171ae['attributes'][_0x5a875d],_0x1f85a0+0x1);if(_0x101426)return'attributes.'+_0x101426;}}return null;},_0x4cc2a7['fromObject']=function(_0x3f4b27,_0x381621){if(_0x3f4b27 instanceof _0x34d3e2['GetUserResponse'])return _0x3f4b27;if(!_0x3bb2e6['isObject'](_0x3f4b27))throw TypeError('.GetUserResponse:\x20object\x20expected');if(void 0x0===_0x381621&&(_0x381621=0x0),_0x381621>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x56ae54=new _0x34d3e2['GetUserResponse']();if(_0x3f4b27['attributes']){if(!Array['isArray'](_0x3f4b27['attributes']))throw TypeError('.GetUserResponse.attributes:\x20array\x20expected');_0x56ae54['attributes']=[];for(var _0x5af631=0x0;_0x5af631<_0x3f4b27['attributes']['length'];++_0x5af631){if(!_0x3bb2e6['isObject'](_0x3f4b27['attributes'][_0x5af631]))throw TypeError('.GetUserResponse.attributes:\x20object\x20expected');_0x56ae54['attributes'][_0x5af631]=_0x34d3e2['KeyValueDescriptor']['fromObject'](_0x3f4b27['attributes'][_0x5af631],_0x381621+0x1);}}return _0x56ae54;},_0x4cc2a7['toObject']=function(_0x2d2354,_0x5a4c52,_0x2fc86c){if(_0x5a4c52||(_0x5a4c52={}),void 0x0===_0x2fc86c&&(_0x2fc86c=0x0),_0x2fc86c>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x2cddcd={};if((_0x5a4c52['arrays']||_0x5a4c52['defaults'])&&(_0x2cddcd['attributes']=[]),_0x2d2354['attributes']&&_0x2d2354['attributes']['length']){_0x2cddcd['attributes']=[];for(var _0x558ed7=0x0;_0x558ed7<_0x2d2354['attributes']['length'];++_0x558ed7)_0x2cddcd['attributes'][_0x558ed7]=_0x34d3e2['KeyValueDescriptor']['toObject'](_0x2d2354['attributes'][_0x558ed7],_0x5a4c52,_0x2fc86c+0x1);}return _0x2cddcd;},_0x4cc2a7['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x4cc2a7['getTypeUrl']=function(_0x3d1151){return void 0x0===_0x3d1151&&(_0x3d1151='type.googleapis.com'),_0x3d1151+'/GetUserResponse';},_0x4cc2a7;}()),_0x34d3e2['GetManyUsersResponse']=(function(){function _0x1333ef(_0x3d6ec5){if(this['users']=[],_0x3d6ec5){for(var _0x5df140=Object['keys'](_0x3d6ec5),_0x1024cb=0x0;_0x1024cb<_0x5df140['length'];++_0x1024cb)null!=_0x3d6ec5[_0x5df140[_0x1024cb]]&&'__proto__'!==_0x5df140[_0x1024cb]&&(this[_0x5df140[_0x1024cb]]=_0x3d6ec5[_0x5df140[_0x1024cb]]);}}return _0x1333ef['prototype']['users']=_0x3bb2e6['emptyArray'],_0x1333ef['create']=function(_0x35296f){return new _0x1333ef(_0x35296f);},_0x1333ef['encode']=function(_0x1de6cf,_0x3eb8f2,_0x18980a){if(_0x3eb8f2||(_0x3eb8f2=_0x51052a['create']()),void 0x0===_0x18980a&&(_0x18980a=0x0),_0x18980a>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x1de6cf['users']&&_0x1de6cf['users']['length']){for(var _0x5b4ed1=0x0;_0x5b4ed1<_0x1de6cf['users']['length'];++_0x5b4ed1)_0x34d3e2['UserDescriptor']['encode'](_0x1de6cf['users'][_0x5b4ed1],_0x3eb8f2['uint32'](0xa)['fork'](),_0x18980a+0x1)['ldelim']();}return _0x3eb8f2;},_0x1333ef['encodeDelimited']=function(_0x3d8b91,_0x4b531a){return this['encode'](_0x3d8b91,_0x4b531a)['ldelim']();},_0x1333ef['decode']=function(_0x1376d0,_0x5dc556,_0x315c4e,_0x2f6083){if(_0x1376d0 instanceof _0x1f0e29||(_0x1376d0=_0x1f0e29['create'](_0x1376d0)),void 0x0===_0x2f6083&&(_0x2f6083=0x0),_0x2f6083>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x53eb99=void 0x0===_0x5dc556?_0x1376d0['len']:_0x1376d0['pos']+_0x5dc556,_0x5385fc=new _0x34d3e2['GetManyUsersResponse']();_0x1376d0['pos']<_0x53eb99;){var _0x56f298=_0x1376d0['uint32']();if(_0x56f298===_0x315c4e)break;_0x56f298>>>0x3==0x1?(_0x5385fc['users']&&_0x5385fc['users']['length']||(_0x5385fc['users']=[]),_0x5385fc['users']['push'](_0x34d3e2['UserDescriptor']['decode'](_0x1376d0,_0x1376d0['uint32'](),void 0x0,_0x2f6083+0x1))):_0x1376d0['skipType'](0x7&_0x56f298,_0x2f6083);}return _0x5385fc;},_0x1333ef['decodeDelimited']=function(_0x42743e){return _0x42743e instanceof _0x1f0e29||(_0x42743e=new _0x1f0e29(_0x42743e)),this['decode'](_0x42743e,_0x42743e['uint32']());},_0x1333ef['verify']=function(_0x1ab9c9,_0x3d0b8e){if('object'!=typeof _0x1ab9c9||null===_0x1ab9c9)return'object\x20expected';if(void 0x0===_0x3d0b8e&&(_0x3d0b8e=0x0),_0x3d0b8e>_0x3bb2e6['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x1ab9c9['users']&&Object['hasOwnProperty']['call'](_0x1ab9c9,'users')){if(!Array['isArray'](_0x1ab9c9['users']))return'users:\x20array\x20expected';for(var _0x243d64=0x0;_0x243d64<_0x1ab9c9['users']['length'];++_0x243d64){var _0x4bb62f=_0x34d3e2['UserDescriptor']['verify'](_0x1ab9c9['users'][_0x243d64],_0x3d0b8e+0x1);if(_0x4bb62f)return'users.'+_0x4bb62f;}}return null;},_0x1333ef['fromObject']=function(_0x23f857,_0x4aca27){if(_0x23f857 instanceof _0x34d3e2['GetManyUsersResponse'])return _0x23f857;if(!_0x3bb2e6['isObject'](_0x23f857))throw TypeError('.GetManyUsersResponse:\x20object\x20expected');if(void 0x0===_0x4aca27&&(_0x4aca27=0x0),_0x4aca27>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x956fd6=new _0x34d3e2['GetManyUsersResponse']();if(_0x23f857['users']){if(!Array['isArray'](_0x23f857['users']))throw TypeError('.GetManyUsersResponse.users:\x20array\x20expected');_0x956fd6['users']=[];for(var _0x2893cf=0x0;_0x2893cf<_0x23f857['users']['length'];++_0x2893cf){if(!_0x3bb2e6['isObject'](_0x23f857['users'][_0x2893cf]))throw TypeError('.GetManyUsersResponse.users:\x20object\x20expected');_0x956fd6['users'][_0x2893cf]=_0x34d3e2['UserDescriptor']['fromObject'](_0x23f857['users'][_0x2893cf],_0x4aca27+0x1);}}return _0x956fd6;},_0x1333ef['toObject']=function(_0x56a30d,_0x3fe467,_0xfe9332){if(_0x3fe467||(_0x3fe467={}),void 0x0===_0xfe9332&&(_0xfe9332=0x0),_0xfe9332>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x341fb7={};if((_0x3fe467['arrays']||_0x3fe467['defaults'])&&(_0x341fb7['users']=[]),_0x56a30d['users']&&_0x56a30d['users']['length']){_0x341fb7['users']=[];for(var _0x560f0b=0x0;_0x560f0b<_0x56a30d['users']['length'];++_0x560f0b)_0x341fb7['users'][_0x560f0b]=_0x34d3e2['UserDescriptor']['toObject'](_0x56a30d['users'][_0x560f0b],_0x3fe467,_0xfe9332+0x1);}return _0x341fb7;},_0x1333ef['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x1333ef['getTypeUrl']=function(_0x3ab33c){return void 0x0===_0x3ab33c&&(_0x3ab33c='type.googleapis.com'),_0x3ab33c+'/GetManyUsersResponse';},_0x1333ef;}()),_0x34d3e2['GetUserMessage']=(function(){function _0x4976fc(_0xc128be){if(_0xc128be){for(var _0x4ecce8=Object['keys'](_0xc128be),_0x57e9fb=0x0;_0x57e9fb<_0x4ecce8['length'];++_0x57e9fb)null!=_0xc128be[_0x4ecce8[_0x57e9fb]]&&'__proto__'!==_0x4ecce8[_0x57e9fb]&&(this[_0x4ecce8[_0x57e9fb]]=_0xc128be[_0x4ecce8[_0x57e9fb]]);}}return _0x4976fc['prototype']['id']='',_0x4976fc['create']=function(_0x38f94d){return new _0x4976fc(_0x38f94d);},_0x4976fc['encode']=function(_0x30fc21,_0x17cded,_0x555d2b){if(_0x17cded||(_0x17cded=_0x51052a['create']()),void 0x0===_0x555d2b&&(_0x555d2b=0x0),_0x555d2b>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x30fc21['id']&&Object['hasOwnProperty']['call'](_0x30fc21,'id')&&_0x17cded['uint32'](0xa)['string'](_0x30fc21['id']),_0x17cded;},_0x4976fc['encodeDelimited']=function(_0x20fd81,_0x56086b){return this['encode'](_0x20fd81,_0x56086b)['ldelim']();},_0x4976fc['decode']=function(_0x249cb1,_0x3adfd5,_0x1199eb,_0x202b9a){if(_0x249cb1 instanceof _0x1f0e29||(_0x249cb1=_0x1f0e29['create'](_0x249cb1)),void 0x0===_0x202b9a&&(_0x202b9a=0x0),_0x202b9a>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x25cd1b=void 0x0===_0x3adfd5?_0x249cb1['len']:_0x249cb1['pos']+_0x3adfd5,_0x463467=new _0x34d3e2['GetUserMessage']();_0x249cb1['pos']<_0x25cd1b;){var _0x344f72=_0x249cb1['uint32']();if(_0x344f72===_0x1199eb)break;_0x344f72>>>0x3==0x1?_0x463467['id']=_0x249cb1['string']():_0x249cb1['skipType'](0x7&_0x344f72,_0x202b9a);}return _0x463467;},_0x4976fc['decodeDelimited']=function(_0x91ef45){return _0x91ef45 instanceof _0x1f0e29||(_0x91ef45=new _0x1f0e29(_0x91ef45)),this['decode'](_0x91ef45,_0x91ef45['uint32']());},_0x4976fc['verify']=function(_0x417778,_0x3bd67f){return'object'!=typeof _0x417778||null===_0x417778?'object\x20expected':(void 0x0===_0x3bd67f&&(_0x3bd67f=0x0),_0x3bd67f>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x417778['id']&&Object['hasOwnProperty']['call'](_0x417778,'id')&&!_0x3bb2e6['isString'](_0x417778['id'])?'id:\x20string\x20expected':null);},_0x4976fc['fromObject']=function(_0x478b1a,_0xa3c89e){if(_0x478b1a instanceof _0x34d3e2['GetUserMessage'])return _0x478b1a;if(!_0x3bb2e6['isObject'](_0x478b1a))throw TypeError('.GetUserMessage:\x20object\x20expected');if(void 0x0===_0xa3c89e&&(_0xa3c89e=0x0),_0xa3c89e>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x36688f=new _0x34d3e2['GetUserMessage']();return null!=_0x478b1a['id']&&(_0x36688f['id']=String(_0x478b1a['id'])),_0x36688f;},_0x4976fc['toObject']=function(_0x5671d1,_0x574b7a,_0xc6eb03){if(_0x574b7a||(_0x574b7a={}),void 0x0===_0xc6eb03&&(_0xc6eb03=0x0),_0xc6eb03>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x55a401={};return _0x574b7a['defaults']&&(_0x55a401['id']=''),null!=_0x5671d1['id']&&Object['hasOwnProperty']['call'](_0x5671d1,'id')&&(_0x55a401['id']=_0x5671d1['id']),_0x55a401;},_0x4976fc['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x4976fc['getTypeUrl']=function(_0xa51416){return void 0x0===_0xa51416&&(_0xa51416='type.googleapis.com'),_0xa51416+'/GetUserMessage';},_0x4976fc;}()),_0x34d3e2['GetManyUsersMessage']=(function(){function _0xec6a75(_0x1a15c3){if(this['ids']=[],_0x1a15c3){for(var _0x27c5c8=Object['keys'](_0x1a15c3),_0x813ae1=0x0;_0x813ae1<_0x27c5c8['length'];++_0x813ae1)null!=_0x1a15c3[_0x27c5c8[_0x813ae1]]&&'__proto__'!==_0x27c5c8[_0x813ae1]&&(this[_0x27c5c8[_0x813ae1]]=_0x1a15c3[_0x27c5c8[_0x813ae1]]);}}return _0xec6a75['prototype']['ids']=_0x3bb2e6['emptyArray'],_0xec6a75['create']=function(_0x5b30a1){return new _0xec6a75(_0x5b30a1);},_0xec6a75['encode']=function(_0x160702,_0x558268,_0x2fbdf7){if(_0x558268||(_0x558268=_0x51052a['create']()),void 0x0===_0x2fbdf7&&(_0x2fbdf7=0x0),_0x2fbdf7>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x160702['ids']&&_0x160702['ids']['length']){for(var _0x29aa0e=0x0;_0x29aa0e<_0x160702['ids']['length'];++_0x29aa0e)_0x558268['uint32'](0xa)['string'](_0x160702['ids'][_0x29aa0e]);}return _0x558268;},_0xec6a75['encodeDelimited']=function(_0x44ec9e,_0x548501){return this['encode'](_0x44ec9e,_0x548501)['ldelim']();},_0xec6a75['decode']=function(_0x41b7fe,_0x20ec6f,_0x29c5e5,_0x4d4ce7){if(_0x41b7fe instanceof _0x1f0e29||(_0x41b7fe=_0x1f0e29['create'](_0x41b7fe)),void 0x0===_0x4d4ce7&&(_0x4d4ce7=0x0),_0x4d4ce7>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x9eb923=void 0x0===_0x20ec6f?_0x41b7fe['len']:_0x41b7fe['pos']+_0x20ec6f,_0x6a6c86=new _0x34d3e2['GetManyUsersMessage']();_0x41b7fe['pos']<_0x9eb923;){var _0x43caef=_0x41b7fe['uint32']();if(_0x43caef===_0x29c5e5)break;_0x43caef>>>0x3==0x1?(_0x6a6c86['ids']&&_0x6a6c86['ids']['length']||(_0x6a6c86['ids']=[]),_0x6a6c86['ids']['push'](_0x41b7fe['string']())):_0x41b7fe['skipType'](0x7&_0x43caef,_0x4d4ce7);}return _0x6a6c86;},_0xec6a75['decodeDelimited']=function(_0x4e274c){return _0x4e274c instanceof _0x1f0e29||(_0x4e274c=new _0x1f0e29(_0x4e274c)),this['decode'](_0x4e274c,_0x4e274c['uint32']());},_0xec6a75['verify']=function(_0x4d0ef6,_0x16a8ee){if('object'!=typeof _0x4d0ef6||null===_0x4d0ef6)return'object\x20expected';if(void 0x0===_0x16a8ee&&(_0x16a8ee=0x0),_0x16a8ee>_0x3bb2e6['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x4d0ef6['ids']&&Object['hasOwnProperty']['call'](_0x4d0ef6,'ids')){if(!Array['isArray'](_0x4d0ef6['ids']))return'ids:\x20array\x20expected';for(var _0x11e86b=0x0;_0x11e86b<_0x4d0ef6['ids']['length'];++_0x11e86b)if(!_0x3bb2e6['isString'](_0x4d0ef6['ids'][_0x11e86b]))return'ids:\x20string[]\x20expected';}return null;},_0xec6a75['fromObject']=function(_0x226f7f,_0x45f0d1){if(_0x226f7f instanceof _0x34d3e2['GetManyUsersMessage'])return _0x226f7f;if(!_0x3bb2e6['isObject'](_0x226f7f))throw TypeError('.GetManyUsersMessage:\x20object\x20expected');if(void 0x0===_0x45f0d1&&(_0x45f0d1=0x0),_0x45f0d1>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x1e4074=new _0x34d3e2['GetManyUsersMessage']();if(_0x226f7f['ids']){if(!Array['isArray'](_0x226f7f['ids']))throw TypeError('.GetManyUsersMessage.ids:\x20array\x20expected');_0x1e4074['ids']=[];for(var _0x497817=0x0;_0x497817<_0x226f7f['ids']['length'];++_0x497817)_0x1e4074['ids'][_0x497817]=String(_0x226f7f['ids'][_0x497817]);}return _0x1e4074;},_0xec6a75['toObject']=function(_0x4f3bc8,_0x2c4b1c,_0x405aa8){if(_0x2c4b1c||(_0x2c4b1c={}),void 0x0===_0x405aa8&&(_0x405aa8=0x0),_0x405aa8>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x1e3ca0={};if((_0x2c4b1c['arrays']||_0x2c4b1c['defaults'])&&(_0x1e3ca0['ids']=[]),_0x4f3bc8['ids']&&_0x4f3bc8['ids']['length']){_0x1e3ca0['ids']=[];for(var _0x3c05e7=0x0;_0x3c05e7<_0x4f3bc8['ids']['length'];++_0x3c05e7)_0x1e3ca0['ids'][_0x3c05e7]=_0x4f3bc8['ids'][_0x3c05e7];}return _0x1e3ca0;},_0xec6a75['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0xec6a75['getTypeUrl']=function(_0x9cf546){return void 0x0===_0x9cf546&&(_0x9cf546='type.googleapis.com'),_0x9cf546+'/GetManyUsersMessage';},_0xec6a75;}()),_0x34d3e2['UserDescriptor']=(function(){function _0x17e766(_0x32c2c2){if(this['attributes']=[],_0x32c2c2){for(var _0x397425=Object['keys'](_0x32c2c2),_0x19b873=0x0;_0x19b873<_0x397425['length'];++_0x19b873)null!=_0x32c2c2[_0x397425[_0x19b873]]&&'__proto__'!==_0x397425[_0x19b873]&&(this[_0x397425[_0x19b873]]=_0x32c2c2[_0x397425[_0x19b873]]);}}return _0x17e766['prototype']['attributes']=_0x3bb2e6['emptyArray'],_0x17e766['create']=function(_0x5c2e1c){return new _0x17e766(_0x5c2e1c);},_0x17e766['encode']=function(_0x2c97a9,_0x493e00,_0x30861f){if(_0x493e00||(_0x493e00=_0x51052a['create']()),void 0x0===_0x30861f&&(_0x30861f=0x0),_0x30861f>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x2c97a9['attributes']&&_0x2c97a9['attributes']['length']){for(var _0x334a6d=0x0;_0x334a6d<_0x2c97a9['attributes']['length'];++_0x334a6d)_0x34d3e2['KeyValueDescriptor']['encode'](_0x2c97a9['attributes'][_0x334a6d],_0x493e00['uint32'](0xa)['fork'](),_0x30861f+0x1)['ldelim']();}return _0x493e00;},_0x17e766['encodeDelimited']=function(_0x35bc64,_0x5b3c4e){return this['encode'](_0x35bc64,_0x5b3c4e)['ldelim']();},_0x17e766['decode']=function(_0x5b7165,_0x1135f8,_0x31efd8,_0x54d499){if(_0x5b7165 instanceof _0x1f0e29||(_0x5b7165=_0x1f0e29['create'](_0x5b7165)),void 0x0===_0x54d499&&(_0x54d499=0x0),_0x54d499>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x274f62=void 0x0===_0x1135f8?_0x5b7165['len']:_0x5b7165['pos']+_0x1135f8,_0x388e1d=new _0x34d3e2['UserDescriptor']();_0x5b7165['pos']<_0x274f62;){var _0x480e1a=_0x5b7165['uint32']();if(_0x480e1a===_0x31efd8)break;_0x480e1a>>>0x3==0x1?(_0x388e1d['attributes']&&_0x388e1d['attributes']['length']||(_0x388e1d['attributes']=[]),_0x388e1d['attributes']['push'](_0x34d3e2['KeyValueDescriptor']['decode'](_0x5b7165,_0x5b7165['uint32'](),void 0x0,_0x54d499+0x1))):_0x5b7165['skipType'](0x7&_0x480e1a,_0x54d499);}return _0x388e1d;},_0x17e766['decodeDelimited']=function(_0x4d7a8d){return _0x4d7a8d instanceof _0x1f0e29||(_0x4d7a8d=new _0x1f0e29(_0x4d7a8d)),this['decode'](_0x4d7a8d,_0x4d7a8d['uint32']());},_0x17e766['verify']=function(_0x4351a4,_0x497837){if('object'!=typeof _0x4351a4||null===_0x4351a4)return'object\x20expected';if(void 0x0===_0x497837&&(_0x497837=0x0),_0x497837>_0x3bb2e6['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x4351a4['attributes']&&Object['hasOwnProperty']['call'](_0x4351a4,'attributes')){if(!Array['isArray'](_0x4351a4['attributes']))return'attributes:\x20array\x20expected';for(var _0x5bbf24=0x0;_0x5bbf24<_0x4351a4['attributes']['length'];++_0x5bbf24){var _0x3fe86a=_0x34d3e2['KeyValueDescriptor']['verify'](_0x4351a4['attributes'][_0x5bbf24],_0x497837+0x1);if(_0x3fe86a)return'attributes.'+_0x3fe86a;}}return null;},_0x17e766['fromObject']=function(_0x186c33,_0x2661f7){if(_0x186c33 instanceof _0x34d3e2['UserDescriptor'])return _0x186c33;if(!_0x3bb2e6['isObject'](_0x186c33))throw TypeError('.UserDescriptor:\x20object\x20expected');if(void 0x0===_0x2661f7&&(_0x2661f7=0x0),_0x2661f7>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x5e504b=new _0x34d3e2['UserDescriptor']();if(_0x186c33['attributes']){if(!Array['isArray'](_0x186c33['attributes']))throw TypeError('.UserDescriptor.attributes:\x20array\x20expected');_0x5e504b['attributes']=[];for(var _0x5636e7=0x0;_0x5636e7<_0x186c33['attributes']['length'];++_0x5636e7){if(!_0x3bb2e6['isObject'](_0x186c33['attributes'][_0x5636e7]))throw TypeError('.UserDescriptor.attributes:\x20object\x20expected');_0x5e504b['attributes'][_0x5636e7]=_0x34d3e2['KeyValueDescriptor']['fromObject'](_0x186c33['attributes'][_0x5636e7],_0x2661f7+0x1);}}return _0x5e504b;},_0x17e766['toObject']=function(_0x1e0159,_0x48dcfa,_0x1c28c4){if(_0x48dcfa||(_0x48dcfa={}),void 0x0===_0x1c28c4&&(_0x1c28c4=0x0),_0x1c28c4>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0xb4b25a={};if((_0x48dcfa['arrays']||_0x48dcfa['defaults'])&&(_0xb4b25a['attributes']=[]),_0x1e0159['attributes']&&_0x1e0159['attributes']['length']){_0xb4b25a['attributes']=[];for(var _0x359b39=0x0;_0x359b39<_0x1e0159['attributes']['length'];++_0x359b39)_0xb4b25a['attributes'][_0x359b39]=_0x34d3e2['KeyValueDescriptor']['toObject'](_0x1e0159['attributes'][_0x359b39],_0x48dcfa,_0x1c28c4+0x1);}return _0xb4b25a;},_0x17e766['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x17e766['getTypeUrl']=function(_0x3ae40b){return void 0x0===_0x3ae40b&&(_0x3ae40b='type.googleapis.com'),_0x3ae40b+'/UserDescriptor';},_0x17e766;}()),_0x34d3e2['TrackChangesGetSuggestionResponse']=(function(){function _0x56d972(_0x586c8c){if(_0x586c8c){for(var _0x5cee67=Object['keys'](_0x586c8c),_0x2a109e=0x0;_0x2a109e<_0x5cee67['length'];++_0x2a109e)null!=_0x586c8c[_0x5cee67[_0x2a109e]]&&'__proto__'!==_0x5cee67[_0x2a109e]&&(this[_0x5cee67[_0x2a109e]]=_0x586c8c[_0x5cee67[_0x2a109e]]);}}return _0x56d972['prototype']['id']='',_0x56d972['prototype']['authorId']='',_0x56d972['prototype']['type']='',_0x56d972['prototype']['createdAt']='',_0x56d972['prototype']['data']='',_0x56d972['prototype']['hasComments']=!0x1,_0x56d972['prototype']['state']='',_0x56d972['prototype']['attributes']='',_0x56d972['create']=function(_0x4ab7de){return new _0x56d972(_0x4ab7de);},_0x56d972['encode']=function(_0xf8fea1,_0x15a929,_0xf95f43){if(_0x15a929||(_0x15a929=_0x51052a['create']()),void 0x0===_0xf95f43&&(_0xf95f43=0x0),_0xf95f43>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0xf8fea1['id']&&Object['hasOwnProperty']['call'](_0xf8fea1,'id')&&_0x15a929['uint32'](0xa)['string'](_0xf8fea1['id']),null!=_0xf8fea1['authorId']&&Object['hasOwnProperty']['call'](_0xf8fea1,'authorId')&&_0x15a929['uint32'](0x12)['string'](_0xf8fea1['authorId']),null!=_0xf8fea1['type']&&Object['hasOwnProperty']['call'](_0xf8fea1,'type')&&_0x15a929['uint32'](0x1a)['string'](_0xf8fea1['type']),null!=_0xf8fea1['createdAt']&&Object['hasOwnProperty']['call'](_0xf8fea1,'createdAt')&&_0x15a929['uint32'](0x22)['string'](_0xf8fea1['createdAt']),null!=_0xf8fea1['data']&&Object['hasOwnProperty']['call'](_0xf8fea1,'data')&&_0x15a929['uint32'](0x2a)['string'](_0xf8fea1['data']),null!=_0xf8fea1['hasComments']&&Object['hasOwnProperty']['call'](_0xf8fea1,'hasComments')&&_0x15a929['uint32'](0x30)['bool'](_0xf8fea1['hasComments']),null!=_0xf8fea1['state']&&Object['hasOwnProperty']['call'](_0xf8fea1,'state')&&_0x15a929['uint32'](0x3a)['string'](_0xf8fea1['state']),null!=_0xf8fea1['attributes']&&Object['hasOwnProperty']['call'](_0xf8fea1,'attributes')&&_0x15a929['uint32'](0x42)['string'](_0xf8fea1['attributes']),_0x15a929;},_0x56d972['encodeDelimited']=function(_0x4ab7f6,_0x2b9ce7){return this['encode'](_0x4ab7f6,_0x2b9ce7)['ldelim']();},_0x56d972['decode']=function(_0x1ed415,_0x466130,_0x172d32,_0x470528){if(_0x1ed415 instanceof _0x1f0e29||(_0x1ed415=_0x1f0e29['create'](_0x1ed415)),void 0x0===_0x470528&&(_0x470528=0x0),_0x470528>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x12da2e=void 0x0===_0x466130?_0x1ed415['len']:_0x1ed415['pos']+_0x466130,_0x751005=new _0x34d3e2['TrackChangesGetSuggestionResponse']();_0x1ed415['pos']<_0x12da2e;){var _0x198600=_0x1ed415['uint32']();if(_0x198600===_0x172d32)break;switch(_0x198600>>>0x3){case 0x1:_0x751005['id']=_0x1ed415['string']();break;case 0x2:_0x751005['authorId']=_0x1ed415['string']();break;case 0x3:_0x751005['type']=_0x1ed415['string']();break;case 0x4:_0x751005['createdAt']=_0x1ed415['string']();break;case 0x5:_0x751005['data']=_0x1ed415['string']();break;case 0x6:_0x751005['hasComments']=_0x1ed415['bool']();break;case 0x7:_0x751005['state']=_0x1ed415['string']();break;case 0x8:_0x751005['attributes']=_0x1ed415['string']();break;default:_0x1ed415['skipType'](0x7&_0x198600,_0x470528);}}return _0x751005;},_0x56d972['decodeDelimited']=function(_0x22dee7){return _0x22dee7 instanceof _0x1f0e29||(_0x22dee7=new _0x1f0e29(_0x22dee7)),this['decode'](_0x22dee7,_0x22dee7['uint32']());},_0x56d972['verify']=function(_0x471c02,_0x2b3f85){return'object'!=typeof _0x471c02||null===_0x471c02?'object\x20expected':(void 0x0===_0x2b3f85&&(_0x2b3f85=0x0),_0x2b3f85>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x471c02['id']&&Object['hasOwnProperty']['call'](_0x471c02,'id')&&!_0x3bb2e6['isString'](_0x471c02['id'])?'id:\x20string\x20expected':null!=_0x471c02['authorId']&&Object['hasOwnProperty']['call'](_0x471c02,'authorId')&&!_0x3bb2e6['isString'](_0x471c02['authorId'])?'authorId:\x20string\x20expected':null!=_0x471c02['type']&&Object['hasOwnProperty']['call'](_0x471c02,'type')&&!_0x3bb2e6['isString'](_0x471c02['type'])?'type:\x20string\x20expected':null!=_0x471c02['createdAt']&&Object['hasOwnProperty']['call'](_0x471c02,'createdAt')&&!_0x3bb2e6['isString'](_0x471c02['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x471c02['data']&&Object['hasOwnProperty']['call'](_0x471c02,'data')&&!_0x3bb2e6['isString'](_0x471c02['data'])?'data:\x20string\x20expected':null!=_0x471c02['hasComments']&&Object['hasOwnProperty']['call'](_0x471c02,'hasComments')&&'boolean'!=typeof _0x471c02['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x471c02['state']&&Object['hasOwnProperty']['call'](_0x471c02,'state')&&!_0x3bb2e6['isString'](_0x471c02['state'])?'state:\x20string\x20expected':null!=_0x471c02['attributes']&&Object['hasOwnProperty']['call'](_0x471c02,'attributes')&&!_0x3bb2e6['isString'](_0x471c02['attributes'])?'attributes:\x20string\x20expected':null);},_0x56d972['fromObject']=function(_0xbcd6b1,_0x16529f){if(_0xbcd6b1 instanceof _0x34d3e2['TrackChangesGetSuggestionResponse'])return _0xbcd6b1;if(!_0x3bb2e6['isObject'](_0xbcd6b1))throw TypeError('.TrackChangesGetSuggestionResponse:\x20object\x20expected');if(void 0x0===_0x16529f&&(_0x16529f=0x0),_0x16529f>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x5bc790=new _0x34d3e2['TrackChangesGetSuggestionResponse']();return null!=_0xbcd6b1['id']&&(_0x5bc790['id']=String(_0xbcd6b1['id'])),null!=_0xbcd6b1['authorId']&&(_0x5bc790['authorId']=String(_0xbcd6b1['authorId'])),null!=_0xbcd6b1['type']&&(_0x5bc790['type']=String(_0xbcd6b1['type'])),null!=_0xbcd6b1['createdAt']&&(_0x5bc790['createdAt']=String(_0xbcd6b1['createdAt'])),null!=_0xbcd6b1['data']&&(_0x5bc790['data']=String(_0xbcd6b1['data'])),null!=_0xbcd6b1['hasComments']&&(_0x5bc790['hasComments']=Boolean(_0xbcd6b1['hasComments'])),null!=_0xbcd6b1['state']&&(_0x5bc790['state']=String(_0xbcd6b1['state'])),null!=_0xbcd6b1['attributes']&&(_0x5bc790['attributes']=String(_0xbcd6b1['attributes'])),_0x5bc790;},_0x56d972['toObject']=function(_0x117e77,_0x46b563,_0x3f395e){if(_0x46b563||(_0x46b563={}),void 0x0===_0x3f395e&&(_0x3f395e=0x0),_0x3f395e>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x3ba609={};return _0x46b563['defaults']&&(_0x3ba609['id']='',_0x3ba609['authorId']='',_0x3ba609['type']='',_0x3ba609['createdAt']='',_0x3ba609['data']='',_0x3ba609['hasComments']=!0x1,_0x3ba609['state']='',_0x3ba609['attributes']=''),null!=_0x117e77['id']&&Object['hasOwnProperty']['call'](_0x117e77,'id')&&(_0x3ba609['id']=_0x117e77['id']),null!=_0x117e77['authorId']&&Object['hasOwnProperty']['call'](_0x117e77,'authorId')&&(_0x3ba609['authorId']=_0x117e77['authorId']),null!=_0x117e77['type']&&Object['hasOwnProperty']['call'](_0x117e77,'type')&&(_0x3ba609['type']=_0x117e77['type']),null!=_0x117e77['createdAt']&&Object['hasOwnProperty']['call'](_0x117e77,'createdAt')&&(_0x3ba609['createdAt']=_0x117e77['createdAt']),null!=_0x117e77['data']&&Object['hasOwnProperty']['call'](_0x117e77,'data')&&(_0x3ba609['data']=_0x117e77['data']),null!=_0x117e77['hasComments']&&Object['hasOwnProperty']['call'](_0x117e77,'hasComments')&&(_0x3ba609['hasComments']=_0x117e77['hasComments']),null!=_0x117e77['state']&&Object['hasOwnProperty']['call'](_0x117e77,'state')&&(_0x3ba609['state']=_0x117e77['state']),null!=_0x117e77['attributes']&&Object['hasOwnProperty']['call'](_0x117e77,'attributes')&&(_0x3ba609['attributes']=_0x117e77['attributes']),_0x3ba609;},_0x56d972['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x56d972['getTypeUrl']=function(_0x4b91c4){return void 0x0===_0x4b91c4&&(_0x4b91c4='type.googleapis.com'),_0x4b91c4+'/TrackChangesGetSuggestionResponse';},_0x56d972;}()),_0x34d3e2['TrackChangesGetAllSuggestionsResponse']=(function(){function _0x2d68e9(_0x35169b){if(this['suggestions']=[],this['suggestionsV2']=[],_0x35169b){for(var _0x5679ee=Object['keys'](_0x35169b),_0x4c9271=0x0;_0x4c9271<_0x5679ee['length'];++_0x4c9271)null!=_0x35169b[_0x5679ee[_0x4c9271]]&&'__proto__'!==_0x5679ee[_0x4c9271]&&(this[_0x5679ee[_0x4c9271]]=_0x35169b[_0x5679ee[_0x4c9271]]);}}return _0x2d68e9['prototype']['suggestions']=_0x3bb2e6['emptyArray'],_0x2d68e9['prototype']['suggestionsV2']=_0x3bb2e6['emptyArray'],_0x2d68e9['create']=function(_0x5461a2){return new _0x2d68e9(_0x5461a2);},_0x2d68e9['encode']=function(_0x558c73,_0x573ed7,_0x3ddc0e){if(_0x573ed7||(_0x573ed7=_0x51052a['create']()),void 0x0===_0x3ddc0e&&(_0x3ddc0e=0x0),_0x3ddc0e>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x558c73['suggestions']&&_0x558c73['suggestions']['length']){for(var _0x570dbf=0x0;_0x570dbf<_0x558c73['suggestions']['length'];++_0x570dbf)_0x573ed7['uint32'](0xa)['string'](_0x558c73['suggestions'][_0x570dbf]);}if(null!=_0x558c73['suggestionsV2']&&_0x558c73['suggestionsV2']['length']){for(_0x570dbf=0x0;_0x570dbf<_0x558c73['suggestionsV2']['length'];++_0x570dbf)_0x34d3e2['SuggestionDescriptor']['encode'](_0x558c73['suggestionsV2'][_0x570dbf],_0x573ed7['uint32'](0x12)['fork'](),_0x3ddc0e+0x1)['ldelim']();}return _0x573ed7;},_0x2d68e9['encodeDelimited']=function(_0x18bb76,_0x23aaa7){return this['encode'](_0x18bb76,_0x23aaa7)['ldelim']();},_0x2d68e9['decode']=function(_0x3b5af4,_0x34b104,_0x4ca025,_0x5d1575){if(_0x3b5af4 instanceof _0x1f0e29||(_0x3b5af4=_0x1f0e29['create'](_0x3b5af4)),void 0x0===_0x5d1575&&(_0x5d1575=0x0),_0x5d1575>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x9a3279=void 0x0===_0x34b104?_0x3b5af4['len']:_0x3b5af4['pos']+_0x34b104,_0x4ef693=new _0x34d3e2['TrackChangesGetAllSuggestionsResponse']();_0x3b5af4['pos']<_0x9a3279;){var _0x101fde=_0x3b5af4['uint32']();if(_0x101fde===_0x4ca025)break;switch(_0x101fde>>>0x3){case 0x1:_0x4ef693['suggestions']&&_0x4ef693['suggestions']['length']||(_0x4ef693['suggestions']=[]),_0x4ef693['suggestions']['push'](_0x3b5af4['string']());break;case 0x2:_0x4ef693['suggestionsV2']&&_0x4ef693['suggestionsV2']['length']||(_0x4ef693['suggestionsV2']=[]),_0x4ef693['suggestionsV2']['push'](_0x34d3e2['SuggestionDescriptor']['decode'](_0x3b5af4,_0x3b5af4['uint32'](),void 0x0,_0x5d1575+0x1));break;default:_0x3b5af4['skipType'](0x7&_0x101fde,_0x5d1575);}}return _0x4ef693;},_0x2d68e9['decodeDelimited']=function(_0xdb5359){return _0xdb5359 instanceof _0x1f0e29||(_0xdb5359=new _0x1f0e29(_0xdb5359)),this['decode'](_0xdb5359,_0xdb5359['uint32']());},_0x2d68e9['verify']=function(_0x5d742d,_0xf36858){if('object'!=typeof _0x5d742d||null===_0x5d742d)return'object\x20expected';if(void 0x0===_0xf36858&&(_0xf36858=0x0),_0xf36858>_0x3bb2e6['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x5d742d['suggestions']&&Object['hasOwnProperty']['call'](_0x5d742d,'suggestions')){if(!Array['isArray'](_0x5d742d['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x5f51de=0x0;_0x5f51de<_0x5d742d['suggestions']['length'];++_0x5f51de)if(!_0x3bb2e6['isString'](_0x5d742d['suggestions'][_0x5f51de]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x5d742d['suggestionsV2']&&Object['hasOwnProperty']['call'](_0x5d742d,'suggestionsV2')){if(!Array['isArray'](_0x5d742d['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x5f51de=0x0;_0x5f51de<_0x5d742d['suggestionsV2']['length'];++_0x5f51de){var _0x107d79=_0x34d3e2['SuggestionDescriptor']['verify'](_0x5d742d['suggestionsV2'][_0x5f51de],_0xf36858+0x1);if(_0x107d79)return'suggestionsV2.'+_0x107d79;}}return null;},_0x2d68e9['fromObject']=function(_0x17a349,_0x2fdb70){if(_0x17a349 instanceof _0x34d3e2['TrackChangesGetAllSuggestionsResponse'])return _0x17a349;if(!_0x3bb2e6['isObject'](_0x17a349))throw TypeError('.TrackChangesGetAllSuggestionsResponse:\x20object\x20expected');if(void 0x0===_0x2fdb70&&(_0x2fdb70=0x0),_0x2fdb70>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x178cde=new _0x34d3e2['TrackChangesGetAllSuggestionsResponse']();if(_0x17a349['suggestions']){if(!Array['isArray'](_0x17a349['suggestions']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestions:\x20array\x20expected');_0x178cde['suggestions']=[];for(var _0x4d9e76=0x0;_0x4d9e76<_0x17a349['suggestions']['length'];++_0x4d9e76)_0x178cde['suggestions'][_0x4d9e76]=String(_0x17a349['suggestions'][_0x4d9e76]);}if(_0x17a349['suggestionsV2']){if(!Array['isArray'](_0x17a349['suggestionsV2']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20array\x20expected');for(_0x178cde['suggestionsV2']=[],_0x4d9e76=0x0;_0x4d9e76<_0x17a349['suggestionsV2']['length'];++_0x4d9e76){if(!_0x3bb2e6['isObject'](_0x17a349['suggestionsV2'][_0x4d9e76]))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20object\x20expected');_0x178cde['suggestionsV2'][_0x4d9e76]=_0x34d3e2['SuggestionDescriptor']['fromObject'](_0x17a349['suggestionsV2'][_0x4d9e76],_0x2fdb70+0x1);}}return _0x178cde;},_0x2d68e9['toObject']=function(_0x37eac1,_0x53de6d,_0x16a73f){if(_0x53de6d||(_0x53de6d={}),void 0x0===_0x16a73f&&(_0x16a73f=0x0),_0x16a73f>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0xc9386e={};if((_0x53de6d['arrays']||_0x53de6d['defaults'])&&(_0xc9386e['suggestions']=[],_0xc9386e['suggestionsV2']=[]),_0x37eac1['suggestions']&&_0x37eac1['suggestions']['length']){_0xc9386e['suggestions']=[];for(var _0x9c0365=0x0;_0x9c0365<_0x37eac1['suggestions']['length'];++_0x9c0365)_0xc9386e['suggestions'][_0x9c0365]=_0x37eac1['suggestions'][_0x9c0365];}if(_0x37eac1['suggestionsV2']&&_0x37eac1['suggestionsV2']['length']){for(_0xc9386e['suggestionsV2']=[],_0x9c0365=0x0;_0x9c0365<_0x37eac1['suggestionsV2']['length'];++_0x9c0365)_0xc9386e['suggestionsV2'][_0x9c0365]=_0x34d3e2['SuggestionDescriptor']['toObject'](_0x37eac1['suggestionsV2'][_0x9c0365],_0x53de6d,_0x16a73f+0x1);}return _0xc9386e;},_0x2d68e9['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x2d68e9['getTypeUrl']=function(_0x2b40fc){return void 0x0===_0x2b40fc&&(_0x2b40fc='type.googleapis.com'),_0x2b40fc+'/TrackChangesGetAllSuggestionsResponse';},_0x2d68e9;}()),_0x34d3e2['TrackChangesConnectResponse']=(function(){function _0x2815b8(_0x3183a4){if(this['suggestions']=[],this['suggestionsV2']=[],_0x3183a4){for(var _0x4a4db4=Object['keys'](_0x3183a4),_0x1b0072=0x0;_0x1b0072<_0x4a4db4['length'];++_0x1b0072)null!=_0x3183a4[_0x4a4db4[_0x1b0072]]&&'__proto__'!==_0x4a4db4[_0x1b0072]&&(this[_0x4a4db4[_0x1b0072]]=_0x3183a4[_0x4a4db4[_0x1b0072]]);}}return _0x2815b8['prototype']['channel']='',_0x2815b8['prototype']['suggestions']=_0x3bb2e6['emptyArray'],_0x2815b8['prototype']['suggestionsV2']=_0x3bb2e6['emptyArray'],_0x2815b8['create']=function(_0x5e238d){return new _0x2815b8(_0x5e238d);},_0x2815b8['encode']=function(_0x1d61a1,_0x37a964,_0x17b23e){if(_0x37a964||(_0x37a964=_0x51052a['create']()),void 0x0===_0x17b23e&&(_0x17b23e=0x0),_0x17b23e>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x1d61a1['channel']&&Object['hasOwnProperty']['call'](_0x1d61a1,'channel')&&_0x37a964['uint32'](0xa)['string'](_0x1d61a1['channel']),null!=_0x1d61a1['suggestions']&&_0x1d61a1['suggestions']['length']){for(var _0x5f2d96=0x0;_0x5f2d96<_0x1d61a1['suggestions']['length'];++_0x5f2d96)_0x37a964['uint32'](0x12)['string'](_0x1d61a1['suggestions'][_0x5f2d96]);}if(null!=_0x1d61a1['suggestionsV2']&&_0x1d61a1['suggestionsV2']['length']){for(_0x5f2d96=0x0;_0x5f2d96<_0x1d61a1['suggestionsV2']['length'];++_0x5f2d96)_0x34d3e2['SuggestionDescriptor']['encode'](_0x1d61a1['suggestionsV2'][_0x5f2d96],_0x37a964['uint32'](0x1a)['fork'](),_0x17b23e+0x1)['ldelim']();}return _0x37a964;},_0x2815b8['encodeDelimited']=function(_0x2ab930,_0x53c75d){return this['encode'](_0x2ab930,_0x53c75d)['ldelim']();},_0x2815b8['decode']=function(_0x50298a,_0x2a992f,_0x3fac6c,_0x19a5d5){if(_0x50298a instanceof _0x1f0e29||(_0x50298a=_0x1f0e29['create'](_0x50298a)),void 0x0===_0x19a5d5&&(_0x19a5d5=0x0),_0x19a5d5>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0xe6d9d=void 0x0===_0x2a992f?_0x50298a['len']:_0x50298a['pos']+_0x2a992f,_0x287676=new _0x34d3e2['TrackChangesConnectResponse']();_0x50298a['pos']<_0xe6d9d;){var _0x3d8241=_0x50298a['uint32']();if(_0x3d8241===_0x3fac6c)break;switch(_0x3d8241>>>0x3){case 0x1:_0x287676['channel']=_0x50298a['string']();break;case 0x2:_0x287676['suggestions']&&_0x287676['suggestions']['length']||(_0x287676['suggestions']=[]),_0x287676['suggestions']['push'](_0x50298a['string']());break;case 0x3:_0x287676['suggestionsV2']&&_0x287676['suggestionsV2']['length']||(_0x287676['suggestionsV2']=[]),_0x287676['suggestionsV2']['push'](_0x34d3e2['SuggestionDescriptor']['decode'](_0x50298a,_0x50298a['uint32'](),void 0x0,_0x19a5d5+0x1));break;default:_0x50298a['skipType'](0x7&_0x3d8241,_0x19a5d5);}}return _0x287676;},_0x2815b8['decodeDelimited']=function(_0x43bb6d){return _0x43bb6d instanceof _0x1f0e29||(_0x43bb6d=new _0x1f0e29(_0x43bb6d)),this['decode'](_0x43bb6d,_0x43bb6d['uint32']());},_0x2815b8['verify']=function(_0x1cfbd6,_0x2d1755){if('object'!=typeof _0x1cfbd6||null===_0x1cfbd6)return'object\x20expected';if(void 0x0===_0x2d1755&&(_0x2d1755=0x0),_0x2d1755>_0x3bb2e6['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x1cfbd6['channel']&&Object['hasOwnProperty']['call'](_0x1cfbd6,'channel')&&!_0x3bb2e6['isString'](_0x1cfbd6['channel']))return'channel:\x20string\x20expected';if(null!=_0x1cfbd6['suggestions']&&Object['hasOwnProperty']['call'](_0x1cfbd6,'suggestions')){if(!Array['isArray'](_0x1cfbd6['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x5d6327=0x0;_0x5d6327<_0x1cfbd6['suggestions']['length'];++_0x5d6327)if(!_0x3bb2e6['isString'](_0x1cfbd6['suggestions'][_0x5d6327]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x1cfbd6['suggestionsV2']&&Object['hasOwnProperty']['call'](_0x1cfbd6,'suggestionsV2')){if(!Array['isArray'](_0x1cfbd6['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x5d6327=0x0;_0x5d6327<_0x1cfbd6['suggestionsV2']['length'];++_0x5d6327){var _0x591ddc=_0x34d3e2['SuggestionDescriptor']['verify'](_0x1cfbd6['suggestionsV2'][_0x5d6327],_0x2d1755+0x1);if(_0x591ddc)return'suggestionsV2.'+_0x591ddc;}}return null;},_0x2815b8['fromObject']=function(_0x1c3135,_0xea1aa){if(_0x1c3135 instanceof _0x34d3e2['TrackChangesConnectResponse'])return _0x1c3135;if(!_0x3bb2e6['isObject'](_0x1c3135))throw TypeError('.TrackChangesConnectResponse:\x20object\x20expected');if(void 0x0===_0xea1aa&&(_0xea1aa=0x0),_0xea1aa>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x153e85=new _0x34d3e2['TrackChangesConnectResponse']();if(null!=_0x1c3135['channel']&&(_0x153e85['channel']=String(_0x1c3135['channel'])),_0x1c3135['suggestions']){if(!Array['isArray'](_0x1c3135['suggestions']))throw TypeError('.TrackChangesConnectResponse.suggestions:\x20array\x20expected');_0x153e85['suggestions']=[];for(var _0x3c38e8=0x0;_0x3c38e8<_0x1c3135['suggestions']['length'];++_0x3c38e8)_0x153e85['suggestions'][_0x3c38e8]=String(_0x1c3135['suggestions'][_0x3c38e8]);}if(_0x1c3135['suggestionsV2']){if(!Array['isArray'](_0x1c3135['suggestionsV2']))throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20array\x20expected');for(_0x153e85['suggestionsV2']=[],_0x3c38e8=0x0;_0x3c38e8<_0x1c3135['suggestionsV2']['length'];++_0x3c38e8){if(!_0x3bb2e6['isObject'](_0x1c3135['suggestionsV2'][_0x3c38e8]))throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20object\x20expected');_0x153e85['suggestionsV2'][_0x3c38e8]=_0x34d3e2['SuggestionDescriptor']['fromObject'](_0x1c3135['suggestionsV2'][_0x3c38e8],_0xea1aa+0x1);}}return _0x153e85;},_0x2815b8['toObject']=function(_0x27accf,_0x36ea2c,_0x5d55b0){if(_0x36ea2c||(_0x36ea2c={}),void 0x0===_0x5d55b0&&(_0x5d55b0=0x0),_0x5d55b0>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x435673={};if((_0x36ea2c['arrays']||_0x36ea2c['defaults'])&&(_0x435673['suggestions']=[],_0x435673['suggestionsV2']=[]),_0x36ea2c['defaults']&&(_0x435673['channel']=''),null!=_0x27accf['channel']&&Object['hasOwnProperty']['call'](_0x27accf,'channel')&&(_0x435673['channel']=_0x27accf['channel']),_0x27accf['suggestions']&&_0x27accf['suggestions']['length']){_0x435673['suggestions']=[];for(var _0x134869=0x0;_0x134869<_0x27accf['suggestions']['length'];++_0x134869)_0x435673['suggestions'][_0x134869]=_0x27accf['suggestions'][_0x134869];}if(_0x27accf['suggestionsV2']&&_0x27accf['suggestionsV2']['length']){for(_0x435673['suggestionsV2']=[],_0x134869=0x0;_0x134869<_0x27accf['suggestionsV2']['length'];++_0x134869)_0x435673['suggestionsV2'][_0x134869]=_0x34d3e2['SuggestionDescriptor']['toObject'](_0x27accf['suggestionsV2'][_0x134869],_0x36ea2c,_0x5d55b0+0x1);}return _0x435673;},_0x2815b8['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x2815b8['getTypeUrl']=function(_0x3177cf){return void 0x0===_0x3177cf&&(_0x3177cf='type.googleapis.com'),_0x3177cf+'/TrackChangesConnectResponse';},_0x2815b8;}()),_0x34d3e2['TrackChangesAddSuggestionResponse']=(function(){function _0xea57db(_0x2f8a91){if(_0x2f8a91){for(var _0x3dae7a=Object['keys'](_0x2f8a91),_0x298854=0x0;_0x298854<_0x3dae7a['length'];++_0x298854)null!=_0x2f8a91[_0x3dae7a[_0x298854]]&&'__proto__'!==_0x3dae7a[_0x298854]&&(this[_0x3dae7a[_0x298854]]=_0x2f8a91[_0x3dae7a[_0x298854]]);}}return _0xea57db['prototype']['id']='',_0xea57db['prototype']['authorId']='',_0xea57db['prototype']['type']='',_0xea57db['prototype']['createdAt']='',_0xea57db['prototype']['data']='',_0xea57db['prototype']['hasComments']=!0x1,_0xea57db['prototype']['state']='',_0xea57db['prototype']['attributes']='',_0xea57db['create']=function(_0x13e70a){return new _0xea57db(_0x13e70a);},_0xea57db['encode']=function(_0x35ea81,_0x4763bf,_0x488f83){if(_0x4763bf||(_0x4763bf=_0x51052a['create']()),void 0x0===_0x488f83&&(_0x488f83=0x0),_0x488f83>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x35ea81['id']&&Object['hasOwnProperty']['call'](_0x35ea81,'id')&&_0x4763bf['uint32'](0xa)['string'](_0x35ea81['id']),null!=_0x35ea81['authorId']&&Object['hasOwnProperty']['call'](_0x35ea81,'authorId')&&_0x4763bf['uint32'](0x12)['string'](_0x35ea81['authorId']),null!=_0x35ea81['type']&&Object['hasOwnProperty']['call'](_0x35ea81,'type')&&_0x4763bf['uint32'](0x1a)['string'](_0x35ea81['type']),null!=_0x35ea81['createdAt']&&Object['hasOwnProperty']['call'](_0x35ea81,'createdAt')&&_0x4763bf['uint32'](0x22)['string'](_0x35ea81['createdAt']),null!=_0x35ea81['data']&&Object['hasOwnProperty']['call'](_0x35ea81,'data')&&_0x4763bf['uint32'](0x2a)['string'](_0x35ea81['data']),null!=_0x35ea81['hasComments']&&Object['hasOwnProperty']['call'](_0x35ea81,'hasComments')&&_0x4763bf['uint32'](0x30)['bool'](_0x35ea81['hasComments']),null!=_0x35ea81['state']&&Object['hasOwnProperty']['call'](_0x35ea81,'state')&&_0x4763bf['uint32'](0x3a)['string'](_0x35ea81['state']),null!=_0x35ea81['attributes']&&Object['hasOwnProperty']['call'](_0x35ea81,'attributes')&&_0x4763bf['uint32'](0x42)['string'](_0x35ea81['attributes']),_0x4763bf;},_0xea57db['encodeDelimited']=function(_0x2cf3c6,_0x1ec444){return this['encode'](_0x2cf3c6,_0x1ec444)['ldelim']();},_0xea57db['decode']=function(_0x4cbb97,_0x31276d,_0x34cce3,_0x454c72){if(_0x4cbb97 instanceof _0x1f0e29||(_0x4cbb97=_0x1f0e29['create'](_0x4cbb97)),void 0x0===_0x454c72&&(_0x454c72=0x0),_0x454c72>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x2c2209=void 0x0===_0x31276d?_0x4cbb97['len']:_0x4cbb97['pos']+_0x31276d,_0x285cc0=new _0x34d3e2['TrackChangesAddSuggestionResponse']();_0x4cbb97['pos']<_0x2c2209;){var _0x44cfa8=_0x4cbb97['uint32']();if(_0x44cfa8===_0x34cce3)break;switch(_0x44cfa8>>>0x3){case 0x1:_0x285cc0['id']=_0x4cbb97['string']();break;case 0x2:_0x285cc0['authorId']=_0x4cbb97['string']();break;case 0x3:_0x285cc0['type']=_0x4cbb97['string']();break;case 0x4:_0x285cc0['createdAt']=_0x4cbb97['string']();break;case 0x5:_0x285cc0['data']=_0x4cbb97['string']();break;case 0x6:_0x285cc0['hasComments']=_0x4cbb97['bool']();break;case 0x7:_0x285cc0['state']=_0x4cbb97['string']();break;case 0x8:_0x285cc0['attributes']=_0x4cbb97['string']();break;default:_0x4cbb97['skipType'](0x7&_0x44cfa8,_0x454c72);}}return _0x285cc0;},_0xea57db['decodeDelimited']=function(_0x30dfcd){return _0x30dfcd instanceof _0x1f0e29||(_0x30dfcd=new _0x1f0e29(_0x30dfcd)),this['decode'](_0x30dfcd,_0x30dfcd['uint32']());},_0xea57db['verify']=function(_0x4e9609,_0x5b46e8){return'object'!=typeof _0x4e9609||null===_0x4e9609?'object\x20expected':(void 0x0===_0x5b46e8&&(_0x5b46e8=0x0),_0x5b46e8>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x4e9609['id']&&Object['hasOwnProperty']['call'](_0x4e9609,'id')&&!_0x3bb2e6['isString'](_0x4e9609['id'])?'id:\x20string\x20expected':null!=_0x4e9609['authorId']&&Object['hasOwnProperty']['call'](_0x4e9609,'authorId')&&!_0x3bb2e6['isString'](_0x4e9609['authorId'])?'authorId:\x20string\x20expected':null!=_0x4e9609['type']&&Object['hasOwnProperty']['call'](_0x4e9609,'type')&&!_0x3bb2e6['isString'](_0x4e9609['type'])?'type:\x20string\x20expected':null!=_0x4e9609['createdAt']&&Object['hasOwnProperty']['call'](_0x4e9609,'createdAt')&&!_0x3bb2e6['isString'](_0x4e9609['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x4e9609['data']&&Object['hasOwnProperty']['call'](_0x4e9609,'data')&&!_0x3bb2e6['isString'](_0x4e9609['data'])?'data:\x20string\x20expected':null!=_0x4e9609['hasComments']&&Object['hasOwnProperty']['call'](_0x4e9609,'hasComments')&&'boolean'!=typeof _0x4e9609['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x4e9609['state']&&Object['hasOwnProperty']['call'](_0x4e9609,'state')&&!_0x3bb2e6['isString'](_0x4e9609['state'])?'state:\x20string\x20expected':null!=_0x4e9609['attributes']&&Object['hasOwnProperty']['call'](_0x4e9609,'attributes')&&!_0x3bb2e6['isString'](_0x4e9609['attributes'])?'attributes:\x20string\x20expected':null);},_0xea57db['fromObject']=function(_0x1818db,_0x58bf37){if(_0x1818db instanceof _0x34d3e2['TrackChangesAddSuggestionResponse'])return _0x1818db;if(!_0x3bb2e6['isObject'](_0x1818db))throw TypeError('.TrackChangesAddSuggestionResponse:\x20object\x20expected');if(void 0x0===_0x58bf37&&(_0x58bf37=0x0),_0x58bf37>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x492fc2=new _0x34d3e2['TrackChangesAddSuggestionResponse']();return null!=_0x1818db['id']&&(_0x492fc2['id']=String(_0x1818db['id'])),null!=_0x1818db['authorId']&&(_0x492fc2['authorId']=String(_0x1818db['authorId'])),null!=_0x1818db['type']&&(_0x492fc2['type']=String(_0x1818db['type'])),null!=_0x1818db['createdAt']&&(_0x492fc2['createdAt']=String(_0x1818db['createdAt'])),null!=_0x1818db['data']&&(_0x492fc2['data']=String(_0x1818db['data'])),null!=_0x1818db['hasComments']&&(_0x492fc2['hasComments']=Boolean(_0x1818db['hasComments'])),null!=_0x1818db['state']&&(_0x492fc2['state']=String(_0x1818db['state'])),null!=_0x1818db['attributes']&&(_0x492fc2['attributes']=String(_0x1818db['attributes'])),_0x492fc2;},_0xea57db['toObject']=function(_0x5e7ad8,_0xfa7175,_0x32e2e1){if(_0xfa7175||(_0xfa7175={}),void 0x0===_0x32e2e1&&(_0x32e2e1=0x0),_0x32e2e1>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x1b23ce={};return _0xfa7175['defaults']&&(_0x1b23ce['id']='',_0x1b23ce['authorId']='',_0x1b23ce['type']='',_0x1b23ce['createdAt']='',_0x1b23ce['data']='',_0x1b23ce['hasComments']=!0x1,_0x1b23ce['state']='',_0x1b23ce['attributes']=''),null!=_0x5e7ad8['id']&&Object['hasOwnProperty']['call'](_0x5e7ad8,'id')&&(_0x1b23ce['id']=_0x5e7ad8['id']),null!=_0x5e7ad8['authorId']&&Object['hasOwnProperty']['call'](_0x5e7ad8,'authorId')&&(_0x1b23ce['authorId']=_0x5e7ad8['authorId']),null!=_0x5e7ad8['type']&&Object['hasOwnProperty']['call'](_0x5e7ad8,'type')&&(_0x1b23ce['type']=_0x5e7ad8['type']),null!=_0x5e7ad8['createdAt']&&Object['hasOwnProperty']['call'](_0x5e7ad8,'createdAt')&&(_0x1b23ce['createdAt']=_0x5e7ad8['createdAt']),null!=_0x5e7ad8['data']&&Object['hasOwnProperty']['call'](_0x5e7ad8,'data')&&(_0x1b23ce['data']=_0x5e7ad8['data']),null!=_0x5e7ad8['hasComments']&&Object['hasOwnProperty']['call'](_0x5e7ad8,'hasComments')&&(_0x1b23ce['hasComments']=_0x5e7ad8['hasComments']),null!=_0x5e7ad8['state']&&Object['hasOwnProperty']['call'](_0x5e7ad8,'state')&&(_0x1b23ce['state']=_0x5e7ad8['state']),null!=_0x5e7ad8['attributes']&&Object['hasOwnProperty']['call'](_0x5e7ad8,'attributes')&&(_0x1b23ce['attributes']=_0x5e7ad8['attributes']),_0x1b23ce;},_0xea57db['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0xea57db['getTypeUrl']=function(_0x1d8aa2){return void 0x0===_0x1d8aa2&&(_0x1d8aa2='type.googleapis.com'),_0x1d8aa2+'/TrackChangesAddSuggestionResponse';},_0xea57db;}()),_0x34d3e2['TrackChangesUpdateSuggestionMessage']=(function(){function _0x17d37c(_0x43b68b){if(_0x43b68b){for(var _0x381708=Object['keys'](_0x43b68b),_0x2cc09d=0x0;_0x2cc09d<_0x381708['length'];++_0x2cc09d)null!=_0x43b68b[_0x381708[_0x2cc09d]]&&'__proto__'!==_0x381708[_0x2cc09d]&&(this[_0x381708[_0x2cc09d]]=_0x43b68b[_0x381708[_0x2cc09d]]);}}return _0x17d37c['prototype']['id']='',_0x17d37c['prototype']['documentId']='',_0x17d37c['prototype']['hasComments']=!0x1,_0x17d37c['prototype']['isHasCommentsModified']=!0x1,_0x17d37c['prototype']['state']='',_0x17d37c['prototype']['attributes']='',_0x17d37c['create']=function(_0x141a3f){return new _0x17d37c(_0x141a3f);},_0x17d37c['encode']=function(_0xb03bd9,_0x5bf772,_0xa77b7d){if(_0x5bf772||(_0x5bf772=_0x51052a['create']()),void 0x0===_0xa77b7d&&(_0xa77b7d=0x0),_0xa77b7d>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0xb03bd9['id']&&Object['hasOwnProperty']['call'](_0xb03bd9,'id')&&_0x5bf772['uint32'](0xa)['string'](_0xb03bd9['id']),null!=_0xb03bd9['documentId']&&Object['hasOwnProperty']['call'](_0xb03bd9,'documentId')&&_0x5bf772['uint32'](0x12)['string'](_0xb03bd9['documentId']),null!=_0xb03bd9['hasComments']&&Object['hasOwnProperty']['call'](_0xb03bd9,'hasComments')&&_0x5bf772['uint32'](0x18)['bool'](_0xb03bd9['hasComments']),null!=_0xb03bd9['isHasCommentsModified']&&Object['hasOwnProperty']['call'](_0xb03bd9,'isHasCommentsModified')&&_0x5bf772['uint32'](0x20)['bool'](_0xb03bd9['isHasCommentsModified']),null!=_0xb03bd9['state']&&Object['hasOwnProperty']['call'](_0xb03bd9,'state')&&_0x5bf772['uint32'](0x2a)['string'](_0xb03bd9['state']),null!=_0xb03bd9['attributes']&&Object['hasOwnProperty']['call'](_0xb03bd9,'attributes')&&_0x5bf772['uint32'](0x32)['string'](_0xb03bd9['attributes']),_0x5bf772;},_0x17d37c['encodeDelimited']=function(_0x2a164b,_0x2d9d37){return this['encode'](_0x2a164b,_0x2d9d37)['ldelim']();},_0x17d37c['decode']=function(_0x5d7e18,_0x3d9496,_0x4b5b0,_0x3e49f6){if(_0x5d7e18 instanceof _0x1f0e29||(_0x5d7e18=_0x1f0e29['create'](_0x5d7e18)),void 0x0===_0x3e49f6&&(_0x3e49f6=0x0),_0x3e49f6>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x35204d=void 0x0===_0x3d9496?_0x5d7e18['len']:_0x5d7e18['pos']+_0x3d9496,_0xd4f1f1=new _0x34d3e2['TrackChangesUpdateSuggestionMessage']();_0x5d7e18['pos']<_0x35204d;){var _0xa45a9e=_0x5d7e18['uint32']();if(_0xa45a9e===_0x4b5b0)break;switch(_0xa45a9e>>>0x3){case 0x1:_0xd4f1f1['id']=_0x5d7e18['string']();break;case 0x2:_0xd4f1f1['documentId']=_0x5d7e18['string']();break;case 0x3:_0xd4f1f1['hasComments']=_0x5d7e18['bool']();break;case 0x4:_0xd4f1f1['isHasCommentsModified']=_0x5d7e18['bool']();break;case 0x5:_0xd4f1f1['state']=_0x5d7e18['string']();break;case 0x6:_0xd4f1f1['attributes']=_0x5d7e18['string']();break;default:_0x5d7e18['skipType'](0x7&_0xa45a9e,_0x3e49f6);}}return _0xd4f1f1;},_0x17d37c['decodeDelimited']=function(_0x21bd0b){return _0x21bd0b instanceof _0x1f0e29||(_0x21bd0b=new _0x1f0e29(_0x21bd0b)),this['decode'](_0x21bd0b,_0x21bd0b['uint32']());},_0x17d37c['verify']=function(_0x244841,_0x55b110){return'object'!=typeof _0x244841||null===_0x244841?'object\x20expected':(void 0x0===_0x55b110&&(_0x55b110=0x0),_0x55b110>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x244841['id']&&Object['hasOwnProperty']['call'](_0x244841,'id')&&!_0x3bb2e6['isString'](_0x244841['id'])?'id:\x20string\x20expected':null!=_0x244841['documentId']&&Object['hasOwnProperty']['call'](_0x244841,'documentId')&&!_0x3bb2e6['isString'](_0x244841['documentId'])?'documentId:\x20string\x20expected':null!=_0x244841['hasComments']&&Object['hasOwnProperty']['call'](_0x244841,'hasComments')&&'boolean'!=typeof _0x244841['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x244841['isHasCommentsModified']&&Object['hasOwnProperty']['call'](_0x244841,'isHasCommentsModified')&&'boolean'!=typeof _0x244841['isHasCommentsModified']?'isHasCommentsModified:\x20boolean\x20expected':null!=_0x244841['state']&&Object['hasOwnProperty']['call'](_0x244841,'state')&&!_0x3bb2e6['isString'](_0x244841['state'])?'state:\x20string\x20expected':null!=_0x244841['attributes']&&Object['hasOwnProperty']['call'](_0x244841,'attributes')&&!_0x3bb2e6['isString'](_0x244841['attributes'])?'attributes:\x20string\x20expected':null);},_0x17d37c['fromObject']=function(_0x58bedf,_0x206651){if(_0x58bedf instanceof _0x34d3e2['TrackChangesUpdateSuggestionMessage'])return _0x58bedf;if(!_0x3bb2e6['isObject'](_0x58bedf))throw TypeError('.TrackChangesUpdateSuggestionMessage:\x20object\x20expected');if(void 0x0===_0x206651&&(_0x206651=0x0),_0x206651>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0xfefd21=new _0x34d3e2['TrackChangesUpdateSuggestionMessage']();return null!=_0x58bedf['id']&&(_0xfefd21['id']=String(_0x58bedf['id'])),null!=_0x58bedf['documentId']&&(_0xfefd21['documentId']=String(_0x58bedf['documentId'])),null!=_0x58bedf['hasComments']&&(_0xfefd21['hasComments']=Boolean(_0x58bedf['hasComments'])),null!=_0x58bedf['isHasCommentsModified']&&(_0xfefd21['isHasCommentsModified']=Boolean(_0x58bedf['isHasCommentsModified'])),null!=_0x58bedf['state']&&(_0xfefd21['state']=String(_0x58bedf['state'])),null!=_0x58bedf['attributes']&&(_0xfefd21['attributes']=String(_0x58bedf['attributes'])),_0xfefd21;},_0x17d37c['toObject']=function(_0x5e2146,_0x141c00,_0x34f3a5){if(_0x141c00||(_0x141c00={}),void 0x0===_0x34f3a5&&(_0x34f3a5=0x0),_0x34f3a5>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0xb53c7={};return _0x141c00['defaults']&&(_0xb53c7['id']='',_0xb53c7['documentId']='',_0xb53c7['hasComments']=!0x1,_0xb53c7['isHasCommentsModified']=!0x1,_0xb53c7['state']='',_0xb53c7['attributes']=''),null!=_0x5e2146['id']&&Object['hasOwnProperty']['call'](_0x5e2146,'id')&&(_0xb53c7['id']=_0x5e2146['id']),null!=_0x5e2146['documentId']&&Object['hasOwnProperty']['call'](_0x5e2146,'documentId')&&(_0xb53c7['documentId']=_0x5e2146['documentId']),null!=_0x5e2146['hasComments']&&Object['hasOwnProperty']['call'](_0x5e2146,'hasComments')&&(_0xb53c7['hasComments']=_0x5e2146['hasComments']),null!=_0x5e2146['isHasCommentsModified']&&Object['hasOwnProperty']['call'](_0x5e2146,'isHasCommentsModified')&&(_0xb53c7['isHasCommentsModified']=_0x5e2146['isHasCommentsModified']),null!=_0x5e2146['state']&&Object['hasOwnProperty']['call'](_0x5e2146,'state')&&(_0xb53c7['state']=_0x5e2146['state']),null!=_0x5e2146['attributes']&&Object['hasOwnProperty']['call'](_0x5e2146,'attributes')&&(_0xb53c7['attributes']=_0x5e2146['attributes']),_0xb53c7;},_0x17d37c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x17d37c['getTypeUrl']=function(_0x5cdf9d){return void 0x0===_0x5cdf9d&&(_0x5cdf9d='type.googleapis.com'),_0x5cdf9d+'/TrackChangesUpdateSuggestionMessage';},_0x17d37c;}()),_0x34d3e2['TrackChangesGetSuggestionMessage']=(function(){function _0xb0cca6(_0x38da99){if(_0x38da99){for(var _0x263f86=Object['keys'](_0x38da99),_0xac9491=0x0;_0xac9491<_0x263f86['length'];++_0xac9491)null!=_0x38da99[_0x263f86[_0xac9491]]&&'__proto__'!==_0x263f86[_0xac9491]&&(this[_0x263f86[_0xac9491]]=_0x38da99[_0x263f86[_0xac9491]]);}}return _0xb0cca6['prototype']['id']='',_0xb0cca6['prototype']['documentId']='',_0xb0cca6['create']=function(_0x563b3c){return new _0xb0cca6(_0x563b3c);},_0xb0cca6['encode']=function(_0x28868b,_0x505f89,_0x5d7673){if(_0x505f89||(_0x505f89=_0x51052a['create']()),void 0x0===_0x5d7673&&(_0x5d7673=0x0),_0x5d7673>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x28868b['id']&&Object['hasOwnProperty']['call'](_0x28868b,'id')&&_0x505f89['uint32'](0xa)['string'](_0x28868b['id']),null!=_0x28868b['documentId']&&Object['hasOwnProperty']['call'](_0x28868b,'documentId')&&_0x505f89['uint32'](0x12)['string'](_0x28868b['documentId']),_0x505f89;},_0xb0cca6['encodeDelimited']=function(_0x1ae385,_0x50f52c){return this['encode'](_0x1ae385,_0x50f52c)['ldelim']();},_0xb0cca6['decode']=function(_0x1eb566,_0x1c3d07,_0x121270,_0x43e225){if(_0x1eb566 instanceof _0x1f0e29||(_0x1eb566=_0x1f0e29['create'](_0x1eb566)),void 0x0===_0x43e225&&(_0x43e225=0x0),_0x43e225>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x293c11=void 0x0===_0x1c3d07?_0x1eb566['len']:_0x1eb566['pos']+_0x1c3d07,_0x3be50a=new _0x34d3e2['TrackChangesGetSuggestionMessage']();_0x1eb566['pos']<_0x293c11;){var _0x4e7569=_0x1eb566['uint32']();if(_0x4e7569===_0x121270)break;switch(_0x4e7569>>>0x3){case 0x1:_0x3be50a['id']=_0x1eb566['string']();break;case 0x2:_0x3be50a['documentId']=_0x1eb566['string']();break;default:_0x1eb566['skipType'](0x7&_0x4e7569,_0x43e225);}}return _0x3be50a;},_0xb0cca6['decodeDelimited']=function(_0x588d95){return _0x588d95 instanceof _0x1f0e29||(_0x588d95=new _0x1f0e29(_0x588d95)),this['decode'](_0x588d95,_0x588d95['uint32']());},_0xb0cca6['verify']=function(_0x559ad9,_0x4116b3){return'object'!=typeof _0x559ad9||null===_0x559ad9?'object\x20expected':(void 0x0===_0x4116b3&&(_0x4116b3=0x0),_0x4116b3>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x559ad9['id']&&Object['hasOwnProperty']['call'](_0x559ad9,'id')&&!_0x3bb2e6['isString'](_0x559ad9['id'])?'id:\x20string\x20expected':null!=_0x559ad9['documentId']&&Object['hasOwnProperty']['call'](_0x559ad9,'documentId')&&!_0x3bb2e6['isString'](_0x559ad9['documentId'])?'documentId:\x20string\x20expected':null);},_0xb0cca6['fromObject']=function(_0x4e78b2,_0x2d6c82){if(_0x4e78b2 instanceof _0x34d3e2['TrackChangesGetSuggestionMessage'])return _0x4e78b2;if(!_0x3bb2e6['isObject'](_0x4e78b2))throw TypeError('.TrackChangesGetSuggestionMessage:\x20object\x20expected');if(void 0x0===_0x2d6c82&&(_0x2d6c82=0x0),_0x2d6c82>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x4898e3=new _0x34d3e2['TrackChangesGetSuggestionMessage']();return null!=_0x4e78b2['id']&&(_0x4898e3['id']=String(_0x4e78b2['id'])),null!=_0x4e78b2['documentId']&&(_0x4898e3['documentId']=String(_0x4e78b2['documentId'])),_0x4898e3;},_0xb0cca6['toObject']=function(_0x55bbc8,_0x35c1a1,_0x3fe8ee){if(_0x35c1a1||(_0x35c1a1={}),void 0x0===_0x3fe8ee&&(_0x3fe8ee=0x0),_0x3fe8ee>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x51aabc={};return _0x35c1a1['defaults']&&(_0x51aabc['id']='',_0x51aabc['documentId']=''),null!=_0x55bbc8['id']&&Object['hasOwnProperty']['call'](_0x55bbc8,'id')&&(_0x51aabc['id']=_0x55bbc8['id']),null!=_0x55bbc8['documentId']&&Object['hasOwnProperty']['call'](_0x55bbc8,'documentId')&&(_0x51aabc['documentId']=_0x55bbc8['documentId']),_0x51aabc;},_0xb0cca6['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0xb0cca6['getTypeUrl']=function(_0x20b0af){return void 0x0===_0x20b0af&&(_0x20b0af='type.googleapis.com'),_0x20b0af+'/TrackChangesGetSuggestionMessage';},_0xb0cca6;}()),_0x34d3e2['TrackChangesGetAllSuggestionMessage']=(function(){function _0x1812a4(_0x4c3f55){if(_0x4c3f55){for(var _0x58793f=Object['keys'](_0x4c3f55),_0xb407a0=0x0;_0xb407a0<_0x58793f['length'];++_0xb407a0)null!=_0x4c3f55[_0x58793f[_0xb407a0]]&&'__proto__'!==_0x58793f[_0xb407a0]&&(this[_0x58793f[_0xb407a0]]=_0x4c3f55[_0x58793f[_0xb407a0]]);}}return _0x1812a4['prototype']['documentId']='',_0x1812a4['create']=function(_0x50c367){return new _0x1812a4(_0x50c367);},_0x1812a4['encode']=function(_0x72f0e7,_0x5f05be,_0x13b3ac){if(_0x5f05be||(_0x5f05be=_0x51052a['create']()),void 0x0===_0x13b3ac&&(_0x13b3ac=0x0),_0x13b3ac>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x72f0e7['documentId']&&Object['hasOwnProperty']['call'](_0x72f0e7,'documentId')&&_0x5f05be['uint32'](0xa)['string'](_0x72f0e7['documentId']),_0x5f05be;},_0x1812a4['encodeDelimited']=function(_0x586d18,_0x4ba809){return this['encode'](_0x586d18,_0x4ba809)['ldelim']();},_0x1812a4['decode']=function(_0x2ca191,_0x1f52eb,_0x498766,_0x8efb76){if(_0x2ca191 instanceof _0x1f0e29||(_0x2ca191=_0x1f0e29['create'](_0x2ca191)),void 0x0===_0x8efb76&&(_0x8efb76=0x0),_0x8efb76>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x137c7f=void 0x0===_0x1f52eb?_0x2ca191['len']:_0x2ca191['pos']+_0x1f52eb,_0x1f1ed5=new _0x34d3e2['TrackChangesGetAllSuggestionMessage']();_0x2ca191['pos']<_0x137c7f;){var _0x1455f9=_0x2ca191['uint32']();if(_0x1455f9===_0x498766)break;_0x1455f9>>>0x3==0x1?_0x1f1ed5['documentId']=_0x2ca191['string']():_0x2ca191['skipType'](0x7&_0x1455f9,_0x8efb76);}return _0x1f1ed5;},_0x1812a4['decodeDelimited']=function(_0x4cd626){return _0x4cd626 instanceof _0x1f0e29||(_0x4cd626=new _0x1f0e29(_0x4cd626)),this['decode'](_0x4cd626,_0x4cd626['uint32']());},_0x1812a4['verify']=function(_0x295c32,_0x3af304){return'object'!=typeof _0x295c32||null===_0x295c32?'object\x20expected':(void 0x0===_0x3af304&&(_0x3af304=0x0),_0x3af304>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x295c32['documentId']&&Object['hasOwnProperty']['call'](_0x295c32,'documentId')&&!_0x3bb2e6['isString'](_0x295c32['documentId'])?'documentId:\x20string\x20expected':null);},_0x1812a4['fromObject']=function(_0x2ac954,_0x4cbca9){if(_0x2ac954 instanceof _0x34d3e2['TrackChangesGetAllSuggestionMessage'])return _0x2ac954;if(!_0x3bb2e6['isObject'](_0x2ac954))throw TypeError('.TrackChangesGetAllSuggestionMessage:\x20object\x20expected');if(void 0x0===_0x4cbca9&&(_0x4cbca9=0x0),_0x4cbca9>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x90eff=new _0x34d3e2['TrackChangesGetAllSuggestionMessage']();return null!=_0x2ac954['documentId']&&(_0x90eff['documentId']=String(_0x2ac954['documentId'])),_0x90eff;},_0x1812a4['toObject']=function(_0x3a664c,_0xa7f936,_0x25beb6){if(_0xa7f936||(_0xa7f936={}),void 0x0===_0x25beb6&&(_0x25beb6=0x0),_0x25beb6>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x44a740={};return _0xa7f936['defaults']&&(_0x44a740['documentId']=''),null!=_0x3a664c['documentId']&&Object['hasOwnProperty']['call'](_0x3a664c,'documentId')&&(_0x44a740['documentId']=_0x3a664c['documentId']),_0x44a740;},_0x1812a4['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x1812a4['getTypeUrl']=function(_0xca8d46){return void 0x0===_0xca8d46&&(_0xca8d46='type.googleapis.com'),_0xca8d46+'/TrackChangesGetAllSuggestionMessage';},_0x1812a4;}()),_0x34d3e2['TrackChangesConnectMessage']=(function(){function _0x409108(_0x492305){if(_0x492305){for(var _0x35f3ff=Object['keys'](_0x492305),_0x540f7b=0x0;_0x540f7b<_0x35f3ff['length'];++_0x540f7b)null!=_0x492305[_0x35f3ff[_0x540f7b]]&&'__proto__'!==_0x35f3ff[_0x540f7b]&&(this[_0x35f3ff[_0x540f7b]]=_0x492305[_0x35f3ff[_0x540f7b]]);}}return _0x409108['prototype']['documentId']='',_0x409108['create']=function(_0x280808){return new _0x409108(_0x280808);},_0x409108['encode']=function(_0x559bfc,_0x2a47bd,_0x59d005){if(_0x2a47bd||(_0x2a47bd=_0x51052a['create']()),void 0x0===_0x59d005&&(_0x59d005=0x0),_0x59d005>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x559bfc['documentId']&&Object['hasOwnProperty']['call'](_0x559bfc,'documentId')&&_0x2a47bd['uint32'](0xa)['string'](_0x559bfc['documentId']),_0x2a47bd;},_0x409108['encodeDelimited']=function(_0x2e4a82,_0x9332fc){return this['encode'](_0x2e4a82,_0x9332fc)['ldelim']();},_0x409108['decode']=function(_0x3042f2,_0x42c85b,_0x3242f4,_0x3935f1){if(_0x3042f2 instanceof _0x1f0e29||(_0x3042f2=_0x1f0e29['create'](_0x3042f2)),void 0x0===_0x3935f1&&(_0x3935f1=0x0),_0x3935f1>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x21557c=void 0x0===_0x42c85b?_0x3042f2['len']:_0x3042f2['pos']+_0x42c85b,_0x54b071=new _0x34d3e2['TrackChangesConnectMessage']();_0x3042f2['pos']<_0x21557c;){var _0x5ea5e2=_0x3042f2['uint32']();if(_0x5ea5e2===_0x3242f4)break;_0x5ea5e2>>>0x3==0x1?_0x54b071['documentId']=_0x3042f2['string']():_0x3042f2['skipType'](0x7&_0x5ea5e2,_0x3935f1);}return _0x54b071;},_0x409108['decodeDelimited']=function(_0x26da1b){return _0x26da1b instanceof _0x1f0e29||(_0x26da1b=new _0x1f0e29(_0x26da1b)),this['decode'](_0x26da1b,_0x26da1b['uint32']());},_0x409108['verify']=function(_0x3ea284,_0x12b3d4){return'object'!=typeof _0x3ea284||null===_0x3ea284?'object\x20expected':(void 0x0===_0x12b3d4&&(_0x12b3d4=0x0),_0x12b3d4>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x3ea284['documentId']&&Object['hasOwnProperty']['call'](_0x3ea284,'documentId')&&!_0x3bb2e6['isString'](_0x3ea284['documentId'])?'documentId:\x20string\x20expected':null);},_0x409108['fromObject']=function(_0x12dbb7,_0x408b67){if(_0x12dbb7 instanceof _0x34d3e2['TrackChangesConnectMessage'])return _0x12dbb7;if(!_0x3bb2e6['isObject'](_0x12dbb7))throw TypeError('.TrackChangesConnectMessage:\x20object\x20expected');if(void 0x0===_0x408b67&&(_0x408b67=0x0),_0x408b67>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x20d3b1=new _0x34d3e2['TrackChangesConnectMessage']();return null!=_0x12dbb7['documentId']&&(_0x20d3b1['documentId']=String(_0x12dbb7['documentId'])),_0x20d3b1;},_0x409108['toObject']=function(_0x9611b7,_0x3d74a4,_0x13a7b0){if(_0x3d74a4||(_0x3d74a4={}),void 0x0===_0x13a7b0&&(_0x13a7b0=0x0),_0x13a7b0>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x2fe922={};return _0x3d74a4['defaults']&&(_0x2fe922['documentId']=''),null!=_0x9611b7['documentId']&&Object['hasOwnProperty']['call'](_0x9611b7,'documentId')&&(_0x2fe922['documentId']=_0x9611b7['documentId']),_0x2fe922;},_0x409108['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x409108['getTypeUrl']=function(_0x2691e7){return void 0x0===_0x2691e7&&(_0x2691e7='type.googleapis.com'),_0x2691e7+'/TrackChangesConnectMessage';},_0x409108;}()),_0x34d3e2['TrackChangesBatchUpdateSuggestionsStateMessage']=(function(){function _0x187bce(_0x4265fa){if(this['ids']=[],_0x4265fa){for(var _0x376b2b=Object['keys'](_0x4265fa),_0x3e42c4=0x0;_0x3e42c4<_0x376b2b['length'];++_0x3e42c4)null!=_0x4265fa[_0x376b2b[_0x3e42c4]]&&'__proto__'!==_0x376b2b[_0x3e42c4]&&(this[_0x376b2b[_0x3e42c4]]=_0x4265fa[_0x376b2b[_0x3e42c4]]);}}return _0x187bce['prototype']['ids']=_0x3bb2e6['emptyArray'],_0x187bce['prototype']['documentId']='',_0x187bce['prototype']['state']='',_0x187bce['create']=function(_0x4cd442){return new _0x187bce(_0x4cd442);},_0x187bce['encode']=function(_0x141008,_0x48042a,_0x169078){if(_0x48042a||(_0x48042a=_0x51052a['create']()),void 0x0===_0x169078&&(_0x169078=0x0),_0x169078>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x141008['ids']&&_0x141008['ids']['length']){for(var _0x2d2812=0x0;_0x2d2812<_0x141008['ids']['length'];++_0x2d2812)_0x48042a['uint32'](0xa)['string'](_0x141008['ids'][_0x2d2812]);}return null!=_0x141008['documentId']&&Object['hasOwnProperty']['call'](_0x141008,'documentId')&&_0x48042a['uint32'](0x12)['string'](_0x141008['documentId']),null!=_0x141008['state']&&Object['hasOwnProperty']['call'](_0x141008,'state')&&_0x48042a['uint32'](0x1a)['string'](_0x141008['state']),_0x48042a;},_0x187bce['encodeDelimited']=function(_0x254552,_0x9d120a){return this['encode'](_0x254552,_0x9d120a)['ldelim']();},_0x187bce['decode']=function(_0x3cf6c9,_0x11daff,_0x166c3b,_0x304708){if(_0x3cf6c9 instanceof _0x1f0e29||(_0x3cf6c9=_0x1f0e29['create'](_0x3cf6c9)),void 0x0===_0x304708&&(_0x304708=0x0),_0x304708>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x37b44e=void 0x0===_0x11daff?_0x3cf6c9['len']:_0x3cf6c9['pos']+_0x11daff,_0x586c2f=new _0x34d3e2['TrackChangesBatchUpdateSuggestionsStateMessage']();_0x3cf6c9['pos']<_0x37b44e;){var _0x1e1012=_0x3cf6c9['uint32']();if(_0x1e1012===_0x166c3b)break;switch(_0x1e1012>>>0x3){case 0x1:_0x586c2f['ids']&&_0x586c2f['ids']['length']||(_0x586c2f['ids']=[]),_0x586c2f['ids']['push'](_0x3cf6c9['string']());break;case 0x2:_0x586c2f['documentId']=_0x3cf6c9['string']();break;case 0x3:_0x586c2f['state']=_0x3cf6c9['string']();break;default:_0x3cf6c9['skipType'](0x7&_0x1e1012,_0x304708);}}return _0x586c2f;},_0x187bce['decodeDelimited']=function(_0x1f4b20){return _0x1f4b20 instanceof _0x1f0e29||(_0x1f4b20=new _0x1f0e29(_0x1f4b20)),this['decode'](_0x1f4b20,_0x1f4b20['uint32']());},_0x187bce['verify']=function(_0x49d06b,_0x22affc){if('object'!=typeof _0x49d06b||null===_0x49d06b)return'object\x20expected';if(void 0x0===_0x22affc&&(_0x22affc=0x0),_0x22affc>_0x3bb2e6['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x49d06b['ids']&&Object['hasOwnProperty']['call'](_0x49d06b,'ids')){if(!Array['isArray'](_0x49d06b['ids']))return'ids:\x20array\x20expected';for(var _0x305912=0x0;_0x305912<_0x49d06b['ids']['length'];++_0x305912)if(!_0x3bb2e6['isString'](_0x49d06b['ids'][_0x305912]))return'ids:\x20string[]\x20expected';}return null!=_0x49d06b['documentId']&&Object['hasOwnProperty']['call'](_0x49d06b,'documentId')&&!_0x3bb2e6['isString'](_0x49d06b['documentId'])?'documentId:\x20string\x20expected':null!=_0x49d06b['state']&&Object['hasOwnProperty']['call'](_0x49d06b,'state')&&!_0x3bb2e6['isString'](_0x49d06b['state'])?'state:\x20string\x20expected':null;},_0x187bce['fromObject']=function(_0x2a72f1,_0x19e5da){if(_0x2a72f1 instanceof _0x34d3e2['TrackChangesBatchUpdateSuggestionsStateMessage'])return _0x2a72f1;if(!_0x3bb2e6['isObject'](_0x2a72f1))throw TypeError('.TrackChangesBatchUpdateSuggestionsStateMessage:\x20object\x20expected');if(void 0x0===_0x19e5da&&(_0x19e5da=0x0),_0x19e5da>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x2fe702=new _0x34d3e2['TrackChangesBatchUpdateSuggestionsStateMessage']();if(_0x2a72f1['ids']){if(!Array['isArray'](_0x2a72f1['ids']))throw TypeError('.TrackChangesBatchUpdateSuggestionsStateMessage.ids:\x20array\x20expected');_0x2fe702['ids']=[];for(var _0x5b6044=0x0;_0x5b6044<_0x2a72f1['ids']['length'];++_0x5b6044)_0x2fe702['ids'][_0x5b6044]=String(_0x2a72f1['ids'][_0x5b6044]);}return null!=_0x2a72f1['documentId']&&(_0x2fe702['documentId']=String(_0x2a72f1['documentId'])),null!=_0x2a72f1['state']&&(_0x2fe702['state']=String(_0x2a72f1['state'])),_0x2fe702;},_0x187bce['toObject']=function(_0x4dbe3d,_0x49290d,_0x240f71){if(_0x49290d||(_0x49290d={}),void 0x0===_0x240f71&&(_0x240f71=0x0),_0x240f71>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x1ccb04={};if((_0x49290d['arrays']||_0x49290d['defaults'])&&(_0x1ccb04['ids']=[]),_0x49290d['defaults']&&(_0x1ccb04['documentId']='',_0x1ccb04['state']=''),_0x4dbe3d['ids']&&_0x4dbe3d['ids']['length']){_0x1ccb04['ids']=[];for(var _0x5cf236=0x0;_0x5cf236<_0x4dbe3d['ids']['length'];++_0x5cf236)_0x1ccb04['ids'][_0x5cf236]=_0x4dbe3d['ids'][_0x5cf236];}return null!=_0x4dbe3d['documentId']&&Object['hasOwnProperty']['call'](_0x4dbe3d,'documentId')&&(_0x1ccb04['documentId']=_0x4dbe3d['documentId']),null!=_0x4dbe3d['state']&&Object['hasOwnProperty']['call'](_0x4dbe3d,'state')&&(_0x1ccb04['state']=_0x4dbe3d['state']),_0x1ccb04;},_0x187bce['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x187bce['getTypeUrl']=function(_0x298a96){return void 0x0===_0x298a96&&(_0x298a96='type.googleapis.com'),_0x298a96+'/TrackChangesBatchUpdateSuggestionsStateMessage';},_0x187bce;}()),_0x34d3e2['TrackChangesAddSuggestionMessage']=(function(){function _0x3fbef3(_0x1b9765){if(_0x1b9765){for(var _0x28819e=Object['keys'](_0x1b9765),_0x1c8ff0=0x0;_0x1c8ff0<_0x28819e['length'];++_0x1c8ff0)null!=_0x1b9765[_0x28819e[_0x1c8ff0]]&&'__proto__'!==_0x28819e[_0x1c8ff0]&&(this[_0x28819e[_0x1c8ff0]]=_0x1b9765[_0x28819e[_0x1c8ff0]]);}}return _0x3fbef3['prototype']['id']='',_0x3fbef3['prototype']['documentId']='',_0x3fbef3['prototype']['type']='',_0x3fbef3['prototype']['data']='',_0x3fbef3['prototype']['originalSuggestionId']='',_0x3fbef3['prototype']['attributes']='',_0x3fbef3['create']=function(_0x4668dd){return new _0x3fbef3(_0x4668dd);},_0x3fbef3['encode']=function(_0x585834,_0x4eb8a6,_0x4d41f9){if(_0x4eb8a6||(_0x4eb8a6=_0x51052a['create']()),void 0x0===_0x4d41f9&&(_0x4d41f9=0x0),_0x4d41f9>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x585834['id']&&Object['hasOwnProperty']['call'](_0x585834,'id')&&_0x4eb8a6['uint32'](0xa)['string'](_0x585834['id']),null!=_0x585834['documentId']&&Object['hasOwnProperty']['call'](_0x585834,'documentId')&&_0x4eb8a6['uint32'](0x12)['string'](_0x585834['documentId']),null!=_0x585834['type']&&Object['hasOwnProperty']['call'](_0x585834,'type')&&_0x4eb8a6['uint32'](0x1a)['string'](_0x585834['type']),null!=_0x585834['data']&&Object['hasOwnProperty']['call'](_0x585834,'data')&&_0x4eb8a6['uint32'](0x22)['string'](_0x585834['data']),null!=_0x585834['originalSuggestionId']&&Object['hasOwnProperty']['call'](_0x585834,'originalSuggestionId')&&_0x4eb8a6['uint32'](0x2a)['string'](_0x585834['originalSuggestionId']),null!=_0x585834['attributes']&&Object['hasOwnProperty']['call'](_0x585834,'attributes')&&_0x4eb8a6['uint32'](0x32)['string'](_0x585834['attributes']),_0x4eb8a6;},_0x3fbef3['encodeDelimited']=function(_0x1ced75,_0x83e868){return this['encode'](_0x1ced75,_0x83e868)['ldelim']();},_0x3fbef3['decode']=function(_0x468c91,_0x48db43,_0x53548e,_0x4aa085){if(_0x468c91 instanceof _0x1f0e29||(_0x468c91=_0x1f0e29['create'](_0x468c91)),void 0x0===_0x4aa085&&(_0x4aa085=0x0),_0x4aa085>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0xd2ae37=void 0x0===_0x48db43?_0x468c91['len']:_0x468c91['pos']+_0x48db43,_0x1d544f=new _0x34d3e2['TrackChangesAddSuggestionMessage']();_0x468c91['pos']<_0xd2ae37;){var _0x3777df=_0x468c91['uint32']();if(_0x3777df===_0x53548e)break;switch(_0x3777df>>>0x3){case 0x1:_0x1d544f['id']=_0x468c91['string']();break;case 0x2:_0x1d544f['documentId']=_0x468c91['string']();break;case 0x3:_0x1d544f['type']=_0x468c91['string']();break;case 0x4:_0x1d544f['data']=_0x468c91['string']();break;case 0x5:_0x1d544f['originalSuggestionId']=_0x468c91['string']();break;case 0x6:_0x1d544f['attributes']=_0x468c91['string']();break;default:_0x468c91['skipType'](0x7&_0x3777df,_0x4aa085);}}return _0x1d544f;},_0x3fbef3['decodeDelimited']=function(_0x1f508f){return _0x1f508f instanceof _0x1f0e29||(_0x1f508f=new _0x1f0e29(_0x1f508f)),this['decode'](_0x1f508f,_0x1f508f['uint32']());},_0x3fbef3['verify']=function(_0xd1fa71,_0x40c105){return'object'!=typeof _0xd1fa71||null===_0xd1fa71?'object\x20expected':(void 0x0===_0x40c105&&(_0x40c105=0x0),_0x40c105>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0xd1fa71['id']&&Object['hasOwnProperty']['call'](_0xd1fa71,'id')&&!_0x3bb2e6['isString'](_0xd1fa71['id'])?'id:\x20string\x20expected':null!=_0xd1fa71['documentId']&&Object['hasOwnProperty']['call'](_0xd1fa71,'documentId')&&!_0x3bb2e6['isString'](_0xd1fa71['documentId'])?'documentId:\x20string\x20expected':null!=_0xd1fa71['type']&&Object['hasOwnProperty']['call'](_0xd1fa71,'type')&&!_0x3bb2e6['isString'](_0xd1fa71['type'])?'type:\x20string\x20expected':null!=_0xd1fa71['data']&&Object['hasOwnProperty']['call'](_0xd1fa71,'data')&&!_0x3bb2e6['isString'](_0xd1fa71['data'])?'data:\x20string\x20expected':null!=_0xd1fa71['originalSuggestionId']&&Object['hasOwnProperty']['call'](_0xd1fa71,'originalSuggestionId')&&!_0x3bb2e6['isString'](_0xd1fa71['originalSuggestionId'])?'originalSuggestionId:\x20string\x20expected':null!=_0xd1fa71['attributes']&&Object['hasOwnProperty']['call'](_0xd1fa71,'attributes')&&!_0x3bb2e6['isString'](_0xd1fa71['attributes'])?'attributes:\x20string\x20expected':null);},_0x3fbef3['fromObject']=function(_0x517f17,_0x1e1ab2){if(_0x517f17 instanceof _0x34d3e2['TrackChangesAddSuggestionMessage'])return _0x517f17;if(!_0x3bb2e6['isObject'](_0x517f17))throw TypeError('.TrackChangesAddSuggestionMessage:\x20object\x20expected');if(void 0x0===_0x1e1ab2&&(_0x1e1ab2=0x0),_0x1e1ab2>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x102d76=new _0x34d3e2['TrackChangesAddSuggestionMessage']();return null!=_0x517f17['id']&&(_0x102d76['id']=String(_0x517f17['id'])),null!=_0x517f17['documentId']&&(_0x102d76['documentId']=String(_0x517f17['documentId'])),null!=_0x517f17['type']&&(_0x102d76['type']=String(_0x517f17['type'])),null!=_0x517f17['data']&&(_0x102d76['data']=String(_0x517f17['data'])),null!=_0x517f17['originalSuggestionId']&&(_0x102d76['originalSuggestionId']=String(_0x517f17['originalSuggestionId'])),null!=_0x517f17['attributes']&&(_0x102d76['attributes']=String(_0x517f17['attributes'])),_0x102d76;},_0x3fbef3['toObject']=function(_0x21340e,_0x4461bd,_0xa2be35){if(_0x4461bd||(_0x4461bd={}),void 0x0===_0xa2be35&&(_0xa2be35=0x0),_0xa2be35>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x47f8f8={};return _0x4461bd['defaults']&&(_0x47f8f8['id']='',_0x47f8f8['documentId']='',_0x47f8f8['type']='',_0x47f8f8['data']='',_0x47f8f8['originalSuggestionId']='',_0x47f8f8['attributes']=''),null!=_0x21340e['id']&&Object['hasOwnProperty']['call'](_0x21340e,'id')&&(_0x47f8f8['id']=_0x21340e['id']),null!=_0x21340e['documentId']&&Object['hasOwnProperty']['call'](_0x21340e,'documentId')&&(_0x47f8f8['documentId']=_0x21340e['documentId']),null!=_0x21340e['type']&&Object['hasOwnProperty']['call'](_0x21340e,'type')&&(_0x47f8f8['type']=_0x21340e['type']),null!=_0x21340e['data']&&Object['hasOwnProperty']['call'](_0x21340e,'data')&&(_0x47f8f8['data']=_0x21340e['data']),null!=_0x21340e['originalSuggestionId']&&Object['hasOwnProperty']['call'](_0x21340e,'originalSuggestionId')&&(_0x47f8f8['originalSuggestionId']=_0x21340e['originalSuggestionId']),null!=_0x21340e['attributes']&&Object['hasOwnProperty']['call'](_0x21340e,'attributes')&&(_0x47f8f8['attributes']=_0x21340e['attributes']),_0x47f8f8;},_0x3fbef3['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x3fbef3['getTypeUrl']=function(_0x28d8d3){return void 0x0===_0x28d8d3&&(_0x28d8d3='type.googleapis.com'),_0x28d8d3+'/TrackChangesAddSuggestionMessage';},_0x3fbef3;}()),_0x34d3e2['SuggestionDescriptor']=(function(){function _0x31951b(_0x49eb80){if(_0x49eb80){for(var _0x1f6430=Object['keys'](_0x49eb80),_0x30ed1f=0x0;_0x30ed1f<_0x1f6430['length'];++_0x30ed1f)null!=_0x49eb80[_0x1f6430[_0x30ed1f]]&&'__proto__'!==_0x1f6430[_0x30ed1f]&&(this[_0x1f6430[_0x30ed1f]]=_0x49eb80[_0x1f6430[_0x30ed1f]]);}}return _0x31951b['prototype']['id']='',_0x31951b['prototype']['authorId']='',_0x31951b['prototype']['type']='',_0x31951b['prototype']['createdAt']='',_0x31951b['prototype']['data']='',_0x31951b['prototype']['hasComments']=!0x1,_0x31951b['prototype']['state']='',_0x31951b['prototype']['attributes']='',_0x31951b['create']=function(_0xb23a82){return new _0x31951b(_0xb23a82);},_0x31951b['encode']=function(_0x32faea,_0xba8ceb,_0x35ef8f){if(_0xba8ceb||(_0xba8ceb=_0x51052a['create']()),void 0x0===_0x35ef8f&&(_0x35ef8f=0x0),_0x35ef8f>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x32faea['id']&&Object['hasOwnProperty']['call'](_0x32faea,'id')&&_0xba8ceb['uint32'](0xa)['string'](_0x32faea['id']),null!=_0x32faea['authorId']&&Object['hasOwnProperty']['call'](_0x32faea,'authorId')&&_0xba8ceb['uint32'](0x12)['string'](_0x32faea['authorId']),null!=_0x32faea['type']&&Object['hasOwnProperty']['call'](_0x32faea,'type')&&_0xba8ceb['uint32'](0x1a)['string'](_0x32faea['type']),null!=_0x32faea['createdAt']&&Object['hasOwnProperty']['call'](_0x32faea,'createdAt')&&_0xba8ceb['uint32'](0x22)['string'](_0x32faea['createdAt']),null!=_0x32faea['data']&&Object['hasOwnProperty']['call'](_0x32faea,'data')&&_0xba8ceb['uint32'](0x2a)['string'](_0x32faea['data']),null!=_0x32faea['hasComments']&&Object['hasOwnProperty']['call'](_0x32faea,'hasComments')&&_0xba8ceb['uint32'](0x30)['bool'](_0x32faea['hasComments']),null!=_0x32faea['state']&&Object['hasOwnProperty']['call'](_0x32faea,'state')&&_0xba8ceb['uint32'](0x3a)['string'](_0x32faea['state']),null!=_0x32faea['attributes']&&Object['hasOwnProperty']['call'](_0x32faea,'attributes')&&_0xba8ceb['uint32'](0x42)['string'](_0x32faea['attributes']),_0xba8ceb;},_0x31951b['encodeDelimited']=function(_0x22a43a,_0x4112eb){return this['encode'](_0x22a43a,_0x4112eb)['ldelim']();},_0x31951b['decode']=function(_0x35c217,_0x1f0c71,_0x72eb,_0xaf1859){if(_0x35c217 instanceof _0x1f0e29||(_0x35c217=_0x1f0e29['create'](_0x35c217)),void 0x0===_0xaf1859&&(_0xaf1859=0x0),_0xaf1859>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x24dad4=void 0x0===_0x1f0c71?_0x35c217['len']:_0x35c217['pos']+_0x1f0c71,_0x3fbc35=new _0x34d3e2['SuggestionDescriptor']();_0x35c217['pos']<_0x24dad4;){var _0x5d294b=_0x35c217['uint32']();if(_0x5d294b===_0x72eb)break;switch(_0x5d294b>>>0x3){case 0x1:_0x3fbc35['id']=_0x35c217['string']();break;case 0x2:_0x3fbc35['authorId']=_0x35c217['string']();break;case 0x3:_0x3fbc35['type']=_0x35c217['string']();break;case 0x4:_0x3fbc35['createdAt']=_0x35c217['string']();break;case 0x5:_0x3fbc35['data']=_0x35c217['string']();break;case 0x6:_0x3fbc35['hasComments']=_0x35c217['bool']();break;case 0x7:_0x3fbc35['state']=_0x35c217['string']();break;case 0x8:_0x3fbc35['attributes']=_0x35c217['string']();break;default:_0x35c217['skipType'](0x7&_0x5d294b,_0xaf1859);}}return _0x3fbc35;},_0x31951b['decodeDelimited']=function(_0x1461e9){return _0x1461e9 instanceof _0x1f0e29||(_0x1461e9=new _0x1f0e29(_0x1461e9)),this['decode'](_0x1461e9,_0x1461e9['uint32']());},_0x31951b['verify']=function(_0x3de39b,_0x109252){return'object'!=typeof _0x3de39b||null===_0x3de39b?'object\x20expected':(void 0x0===_0x109252&&(_0x109252=0x0),_0x109252>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x3de39b['id']&&Object['hasOwnProperty']['call'](_0x3de39b,'id')&&!_0x3bb2e6['isString'](_0x3de39b['id'])?'id:\x20string\x20expected':null!=_0x3de39b['authorId']&&Object['hasOwnProperty']['call'](_0x3de39b,'authorId')&&!_0x3bb2e6['isString'](_0x3de39b['authorId'])?'authorId:\x20string\x20expected':null!=_0x3de39b['type']&&Object['hasOwnProperty']['call'](_0x3de39b,'type')&&!_0x3bb2e6['isString'](_0x3de39b['type'])?'type:\x20string\x20expected':null!=_0x3de39b['createdAt']&&Object['hasOwnProperty']['call'](_0x3de39b,'createdAt')&&!_0x3bb2e6['isString'](_0x3de39b['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x3de39b['data']&&Object['hasOwnProperty']['call'](_0x3de39b,'data')&&!_0x3bb2e6['isString'](_0x3de39b['data'])?'data:\x20string\x20expected':null!=_0x3de39b['hasComments']&&Object['hasOwnProperty']['call'](_0x3de39b,'hasComments')&&'boolean'!=typeof _0x3de39b['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x3de39b['state']&&Object['hasOwnProperty']['call'](_0x3de39b,'state')&&!_0x3bb2e6['isString'](_0x3de39b['state'])?'state:\x20string\x20expected':null!=_0x3de39b['attributes']&&Object['hasOwnProperty']['call'](_0x3de39b,'attributes')&&!_0x3bb2e6['isString'](_0x3de39b['attributes'])?'attributes:\x20string\x20expected':null);},_0x31951b['fromObject']=function(_0xb3e75e,_0x2d3b91){if(_0xb3e75e instanceof _0x34d3e2['SuggestionDescriptor'])return _0xb3e75e;if(!_0x3bb2e6['isObject'](_0xb3e75e))throw TypeError('.SuggestionDescriptor:\x20object\x20expected');if(void 0x0===_0x2d3b91&&(_0x2d3b91=0x0),_0x2d3b91>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x29043a=new _0x34d3e2['SuggestionDescriptor']();return null!=_0xb3e75e['id']&&(_0x29043a['id']=String(_0xb3e75e['id'])),null!=_0xb3e75e['authorId']&&(_0x29043a['authorId']=String(_0xb3e75e['authorId'])),null!=_0xb3e75e['type']&&(_0x29043a['type']=String(_0xb3e75e['type'])),null!=_0xb3e75e['createdAt']&&(_0x29043a['createdAt']=String(_0xb3e75e['createdAt'])),null!=_0xb3e75e['data']&&(_0x29043a['data']=String(_0xb3e75e['data'])),null!=_0xb3e75e['hasComments']&&(_0x29043a['hasComments']=Boolean(_0xb3e75e['hasComments'])),null!=_0xb3e75e['state']&&(_0x29043a['state']=String(_0xb3e75e['state'])),null!=_0xb3e75e['attributes']&&(_0x29043a['attributes']=String(_0xb3e75e['attributes'])),_0x29043a;},_0x31951b['toObject']=function(_0x546492,_0x5632b1,_0x43a717){if(_0x5632b1||(_0x5632b1={}),void 0x0===_0x43a717&&(_0x43a717=0x0),_0x43a717>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x48ba17={};return _0x5632b1['defaults']&&(_0x48ba17['id']='',_0x48ba17['authorId']='',_0x48ba17['type']='',_0x48ba17['createdAt']='',_0x48ba17['data']='',_0x48ba17['hasComments']=!0x1,_0x48ba17['state']='',_0x48ba17['attributes']=''),null!=_0x546492['id']&&Object['hasOwnProperty']['call'](_0x546492,'id')&&(_0x48ba17['id']=_0x546492['id']),null!=_0x546492['authorId']&&Object['hasOwnProperty']['call'](_0x546492,'authorId')&&(_0x48ba17['authorId']=_0x546492['authorId']),null!=_0x546492['type']&&Object['hasOwnProperty']['call'](_0x546492,'type')&&(_0x48ba17['type']=_0x546492['type']),null!=_0x546492['createdAt']&&Object['hasOwnProperty']['call'](_0x546492,'createdAt')&&(_0x48ba17['createdAt']=_0x546492['createdAt']),null!=_0x546492['data']&&Object['hasOwnProperty']['call'](_0x546492,'data')&&(_0x48ba17['data']=_0x546492['data']),null!=_0x546492['hasComments']&&Object['hasOwnProperty']['call'](_0x546492,'hasComments')&&(_0x48ba17['hasComments']=_0x546492['hasComments']),null!=_0x546492['state']&&Object['hasOwnProperty']['call'](_0x546492,'state')&&(_0x48ba17['state']=_0x546492['state']),null!=_0x546492['attributes']&&Object['hasOwnProperty']['call'](_0x546492,'attributes')&&(_0x48ba17['attributes']=_0x546492['attributes']),_0x48ba17;},_0x31951b['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x31951b['getTypeUrl']=function(_0x284844){return void 0x0===_0x284844&&(_0x284844='type.googleapis.com'),_0x284844+'/SuggestionDescriptor';},_0x31951b;}()),_0x34d3e2['SessionsConnectResponse']=(function(){function _0x4d0ec3(_0x23c5bf){if(this['sockets']=[],_0x23c5bf){for(var _0x3acc38=Object['keys'](_0x23c5bf),_0x43dda6=0x0;_0x43dda6<_0x3acc38['length'];++_0x43dda6)null!=_0x23c5bf[_0x3acc38[_0x43dda6]]&&'__proto__'!==_0x3acc38[_0x43dda6]&&(this[_0x3acc38[_0x43dda6]]=_0x23c5bf[_0x3acc38[_0x43dda6]]);}}return _0x4d0ec3['prototype']['channel']='',_0x4d0ec3['prototype']['sockets']=_0x3bb2e6['emptyArray'],_0x4d0ec3['create']=function(_0x270073){return new _0x4d0ec3(_0x270073);},_0x4d0ec3['encode']=function(_0x4d1453,_0x38c114,_0x2e119b){if(_0x38c114||(_0x38c114=_0x51052a['create']()),void 0x0===_0x2e119b&&(_0x2e119b=0x0),_0x2e119b>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x4d1453['channel']&&Object['hasOwnProperty']['call'](_0x4d1453,'channel')&&_0x38c114['uint32'](0xa)['string'](_0x4d1453['channel']),null!=_0x4d1453['sockets']&&_0x4d1453['sockets']['length']){for(var _0x2035af=0x0;_0x2035af<_0x4d1453['sockets']['length'];++_0x2035af)_0x34d3e2['SessionsSocketDescriptor']['encode'](_0x4d1453['sockets'][_0x2035af],_0x38c114['uint32'](0x12)['fork'](),_0x2e119b+0x1)['ldelim']();}return _0x38c114;},_0x4d0ec3['encodeDelimited']=function(_0x21b73d,_0x549109){return this['encode'](_0x21b73d,_0x549109)['ldelim']();},_0x4d0ec3['decode']=function(_0x218d84,_0x693057,_0x65b3b8,_0x1f518c){if(_0x218d84 instanceof _0x1f0e29||(_0x218d84=_0x1f0e29['create'](_0x218d84)),void 0x0===_0x1f518c&&(_0x1f518c=0x0),_0x1f518c>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x13c1d3=void 0x0===_0x693057?_0x218d84['len']:_0x218d84['pos']+_0x693057,_0x557cf7=new _0x34d3e2['SessionsConnectResponse']();_0x218d84['pos']<_0x13c1d3;){var _0x3dac6c=_0x218d84['uint32']();if(_0x3dac6c===_0x65b3b8)break;switch(_0x3dac6c>>>0x3){case 0x1:_0x557cf7['channel']=_0x218d84['string']();break;case 0x2:_0x557cf7['sockets']&&_0x557cf7['sockets']['length']||(_0x557cf7['sockets']=[]),_0x557cf7['sockets']['push'](_0x34d3e2['SessionsSocketDescriptor']['decode'](_0x218d84,_0x218d84['uint32'](),void 0x0,_0x1f518c+0x1));break;default:_0x218d84['skipType'](0x7&_0x3dac6c,_0x1f518c);}}return _0x557cf7;},_0x4d0ec3['decodeDelimited']=function(_0x5559ce){return _0x5559ce instanceof _0x1f0e29||(_0x5559ce=new _0x1f0e29(_0x5559ce)),this['decode'](_0x5559ce,_0x5559ce['uint32']());},_0x4d0ec3['verify']=function(_0x8b09d5,_0x3bd4cb){if('object'!=typeof _0x8b09d5||null===_0x8b09d5)return'object\x20expected';if(void 0x0===_0x3bd4cb&&(_0x3bd4cb=0x0),_0x3bd4cb>_0x3bb2e6['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x8b09d5['channel']&&Object['hasOwnProperty']['call'](_0x8b09d5,'channel')&&!_0x3bb2e6['isString'](_0x8b09d5['channel']))return'channel:\x20string\x20expected';if(null!=_0x8b09d5['sockets']&&Object['hasOwnProperty']['call'](_0x8b09d5,'sockets')){if(!Array['isArray'](_0x8b09d5['sockets']))return'sockets:\x20array\x20expected';for(var _0x5407c7=0x0;_0x5407c7<_0x8b09d5['sockets']['length'];++_0x5407c7){var _0x1cb2f4=_0x34d3e2['SessionsSocketDescriptor']['verify'](_0x8b09d5['sockets'][_0x5407c7],_0x3bd4cb+0x1);if(_0x1cb2f4)return'sockets.'+_0x1cb2f4;}}return null;},_0x4d0ec3['fromObject']=function(_0xf3f68e,_0x57f772){if(_0xf3f68e instanceof _0x34d3e2['SessionsConnectResponse'])return _0xf3f68e;if(!_0x3bb2e6['isObject'](_0xf3f68e))throw TypeError('.SessionsConnectResponse:\x20object\x20expected');if(void 0x0===_0x57f772&&(_0x57f772=0x0),_0x57f772>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x1ec75d=new _0x34d3e2['SessionsConnectResponse']();if(null!=_0xf3f68e['channel']&&(_0x1ec75d['channel']=String(_0xf3f68e['channel'])),_0xf3f68e['sockets']){if(!Array['isArray'](_0xf3f68e['sockets']))throw TypeError('.SessionsConnectResponse.sockets:\x20array\x20expected');_0x1ec75d['sockets']=[];for(var _0x1ab7f4=0x0;_0x1ab7f4<_0xf3f68e['sockets']['length'];++_0x1ab7f4){if(!_0x3bb2e6['isObject'](_0xf3f68e['sockets'][_0x1ab7f4]))throw TypeError('.SessionsConnectResponse.sockets:\x20object\x20expected');_0x1ec75d['sockets'][_0x1ab7f4]=_0x34d3e2['SessionsSocketDescriptor']['fromObject'](_0xf3f68e['sockets'][_0x1ab7f4],_0x57f772+0x1);}}return _0x1ec75d;},_0x4d0ec3['toObject']=function(_0x2792cd,_0x59cb83,_0x393a05){if(_0x59cb83||(_0x59cb83={}),void 0x0===_0x393a05&&(_0x393a05=0x0),_0x393a05>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x5c3ea2={};if((_0x59cb83['arrays']||_0x59cb83['defaults'])&&(_0x5c3ea2['sockets']=[]),_0x59cb83['defaults']&&(_0x5c3ea2['channel']=''),null!=_0x2792cd['channel']&&Object['hasOwnProperty']['call'](_0x2792cd,'channel')&&(_0x5c3ea2['channel']=_0x2792cd['channel']),_0x2792cd['sockets']&&_0x2792cd['sockets']['length']){_0x5c3ea2['sockets']=[];for(var _0x4194a2=0x0;_0x4194a2<_0x2792cd['sockets']['length'];++_0x4194a2)_0x5c3ea2['sockets'][_0x4194a2]=_0x34d3e2['SessionsSocketDescriptor']['toObject'](_0x2792cd['sockets'][_0x4194a2],_0x59cb83,_0x393a05+0x1);}return _0x5c3ea2;},_0x4d0ec3['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x4d0ec3['getTypeUrl']=function(_0x5a2f63){return void 0x0===_0x5a2f63&&(_0x5a2f63='type.googleapis.com'),_0x5a2f63+'/SessionsConnectResponse';},_0x4d0ec3;}()),_0x34d3e2['SocketDisconnectMessage']=(function(){function _0x1cb3ac(_0x29f290){if(_0x29f290){for(var _0x497957=Object['keys'](_0x29f290),_0x5058a5=0x0;_0x5058a5<_0x497957['length'];++_0x5058a5)null!=_0x29f290[_0x497957[_0x5058a5]]&&'__proto__'!==_0x497957[_0x5058a5]&&(this[_0x497957[_0x5058a5]]=_0x29f290[_0x497957[_0x5058a5]]);}}return _0x1cb3ac['prototype']['id']='',_0x1cb3ac['create']=function(_0x16087b){return new _0x1cb3ac(_0x16087b);},_0x1cb3ac['encode']=function(_0x48722a,_0x1a7277,_0x27aba0){if(_0x1a7277||(_0x1a7277=_0x51052a['create']()),void 0x0===_0x27aba0&&(_0x27aba0=0x0),_0x27aba0>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x48722a['id']&&Object['hasOwnProperty']['call'](_0x48722a,'id')&&_0x1a7277['uint32'](0xa)['string'](_0x48722a['id']),_0x1a7277;},_0x1cb3ac['encodeDelimited']=function(_0x3d97c6,_0x4e6bc3){return this['encode'](_0x3d97c6,_0x4e6bc3)['ldelim']();},_0x1cb3ac['decode']=function(_0x936d0b,_0x461c22,_0xd01902,_0x5b0571){if(_0x936d0b instanceof _0x1f0e29||(_0x936d0b=_0x1f0e29['create'](_0x936d0b)),void 0x0===_0x5b0571&&(_0x5b0571=0x0),_0x5b0571>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x4e705f=void 0x0===_0x461c22?_0x936d0b['len']:_0x936d0b['pos']+_0x461c22,_0x2babdc=new _0x34d3e2['SocketDisconnectMessage']();_0x936d0b['pos']<_0x4e705f;){var _0x423c6f=_0x936d0b['uint32']();if(_0x423c6f===_0xd01902)break;_0x423c6f>>>0x3==0x1?_0x2babdc['id']=_0x936d0b['string']():_0x936d0b['skipType'](0x7&_0x423c6f,_0x5b0571);}return _0x2babdc;},_0x1cb3ac['decodeDelimited']=function(_0x1fe1dd){return _0x1fe1dd instanceof _0x1f0e29||(_0x1fe1dd=new _0x1f0e29(_0x1fe1dd)),this['decode'](_0x1fe1dd,_0x1fe1dd['uint32']());},_0x1cb3ac['verify']=function(_0x213d5d,_0x3fdbc9){return'object'!=typeof _0x213d5d||null===_0x213d5d?'object\x20expected':(void 0x0===_0x3fdbc9&&(_0x3fdbc9=0x0),_0x3fdbc9>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x213d5d['id']&&Object['hasOwnProperty']['call'](_0x213d5d,'id')&&!_0x3bb2e6['isString'](_0x213d5d['id'])?'id:\x20string\x20expected':null);},_0x1cb3ac['fromObject']=function(_0x553541,_0x16d472){if(_0x553541 instanceof _0x34d3e2['SocketDisconnectMessage'])return _0x553541;if(!_0x3bb2e6['isObject'](_0x553541))throw TypeError('.SocketDisconnectMessage:\x20object\x20expected');if(void 0x0===_0x16d472&&(_0x16d472=0x0),_0x16d472>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0xb5df78=new _0x34d3e2['SocketDisconnectMessage']();return null!=_0x553541['id']&&(_0xb5df78['id']=String(_0x553541['id'])),_0xb5df78;},_0x1cb3ac['toObject']=function(_0x1e8d3a,_0x182920,_0x1714de){if(_0x182920||(_0x182920={}),void 0x0===_0x1714de&&(_0x1714de=0x0),_0x1714de>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x1f52dd={};return _0x182920['defaults']&&(_0x1f52dd['id']=''),null!=_0x1e8d3a['id']&&Object['hasOwnProperty']['call'](_0x1e8d3a,'id')&&(_0x1f52dd['id']=_0x1e8d3a['id']),_0x1f52dd;},_0x1cb3ac['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x1cb3ac['getTypeUrl']=function(_0x2862d1){return void 0x0===_0x2862d1&&(_0x2862d1='type.googleapis.com'),_0x2862d1+'/SocketDisconnectMessage';},_0x1cb3ac;}()),_0x34d3e2['SocketConnectMessage']=(function(){function _0x19f78c(_0x6922bc){if(this['permissions']=[],_0x6922bc){for(var _0x426339=Object['keys'](_0x6922bc),_0x34f6d6=0x0;_0x34f6d6<_0x426339['length'];++_0x34f6d6)null!=_0x6922bc[_0x426339[_0x34f6d6]]&&'__proto__'!==_0x426339[_0x34f6d6]&&(this[_0x426339[_0x34f6d6]]=_0x6922bc[_0x426339[_0x34f6d6]]);}}return _0x19f78c['prototype']['id']='',_0x19f78c['prototype']['userId']='',_0x19f78c['prototype']['role']='',_0x19f78c['prototype']['permissions']=_0x3bb2e6['emptyArray'],_0x19f78c['create']=function(_0x595a97){return new _0x19f78c(_0x595a97);},_0x19f78c['encode']=function(_0x5479ff,_0x391118,_0x20fabd){if(_0x391118||(_0x391118=_0x51052a['create']()),void 0x0===_0x20fabd&&(_0x20fabd=0x0),_0x20fabd>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x5479ff['id']&&Object['hasOwnProperty']['call'](_0x5479ff,'id')&&_0x391118['uint32'](0xa)['string'](_0x5479ff['id']),null!=_0x5479ff['userId']&&Object['hasOwnProperty']['call'](_0x5479ff,'userId')&&_0x391118['uint32'](0x12)['string'](_0x5479ff['userId']),null!=_0x5479ff['role']&&Object['hasOwnProperty']['call'](_0x5479ff,'role')&&_0x391118['uint32'](0x1a)['string'](_0x5479ff['role']),null!=_0x5479ff['permissions']&&_0x5479ff['permissions']['length']){for(var _0x344613=0x0;_0x344613<_0x5479ff['permissions']['length'];++_0x344613)_0x391118['uint32'](0x22)['string'](_0x5479ff['permissions'][_0x344613]);}return _0x391118;},_0x19f78c['encodeDelimited']=function(_0x3d3db6,_0x54ac35){return this['encode'](_0x3d3db6,_0x54ac35)['ldelim']();},_0x19f78c['decode']=function(_0x50feba,_0x543778,_0x4015ce,_0x35653d){if(_0x50feba instanceof _0x1f0e29||(_0x50feba=_0x1f0e29['create'](_0x50feba)),void 0x0===_0x35653d&&(_0x35653d=0x0),_0x35653d>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0xfcfdc3=void 0x0===_0x543778?_0x50feba['len']:_0x50feba['pos']+_0x543778,_0x1f503b=new _0x34d3e2['SocketConnectMessage']();_0x50feba['pos']<_0xfcfdc3;){var _0x3ec2d5=_0x50feba['uint32']();if(_0x3ec2d5===_0x4015ce)break;switch(_0x3ec2d5>>>0x3){case 0x1:_0x1f503b['id']=_0x50feba['string']();break;case 0x2:_0x1f503b['userId']=_0x50feba['string']();break;case 0x3:_0x1f503b['role']=_0x50feba['string']();break;case 0x4:_0x1f503b['permissions']&&_0x1f503b['permissions']['length']||(_0x1f503b['permissions']=[]),_0x1f503b['permissions']['push'](_0x50feba['string']());break;default:_0x50feba['skipType'](0x7&_0x3ec2d5,_0x35653d);}}return _0x1f503b;},_0x19f78c['decodeDelimited']=function(_0x126ff8){return _0x126ff8 instanceof _0x1f0e29||(_0x126ff8=new _0x1f0e29(_0x126ff8)),this['decode'](_0x126ff8,_0x126ff8['uint32']());},_0x19f78c['verify']=function(_0xef22e6,_0x2ed4e5){if('object'!=typeof _0xef22e6||null===_0xef22e6)return'object\x20expected';if(void 0x0===_0x2ed4e5&&(_0x2ed4e5=0x0),_0x2ed4e5>_0x3bb2e6['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0xef22e6['id']&&Object['hasOwnProperty']['call'](_0xef22e6,'id')&&!_0x3bb2e6['isString'](_0xef22e6['id']))return'id:\x20string\x20expected';if(null!=_0xef22e6['userId']&&Object['hasOwnProperty']['call'](_0xef22e6,'userId')&&!_0x3bb2e6['isString'](_0xef22e6['userId']))return'userId:\x20string\x20expected';if(null!=_0xef22e6['role']&&Object['hasOwnProperty']['call'](_0xef22e6,'role')&&!_0x3bb2e6['isString'](_0xef22e6['role']))return'role:\x20string\x20expected';if(null!=_0xef22e6['permissions']&&Object['hasOwnProperty']['call'](_0xef22e6,'permissions')){if(!Array['isArray'](_0xef22e6['permissions']))return'permissions:\x20array\x20expected';for(var _0x50e1c3=0x0;_0x50e1c3<_0xef22e6['permissions']['length'];++_0x50e1c3)if(!_0x3bb2e6['isString'](_0xef22e6['permissions'][_0x50e1c3]))return'permissions:\x20string[]\x20expected';}return null;},_0x19f78c['fromObject']=function(_0x464d43,_0x1b19b1){if(_0x464d43 instanceof _0x34d3e2['SocketConnectMessage'])return _0x464d43;if(!_0x3bb2e6['isObject'](_0x464d43))throw TypeError('.SocketConnectMessage:\x20object\x20expected');if(void 0x0===_0x1b19b1&&(_0x1b19b1=0x0),_0x1b19b1>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x5a2e08=new _0x34d3e2['SocketConnectMessage']();if(null!=_0x464d43['id']&&(_0x5a2e08['id']=String(_0x464d43['id'])),null!=_0x464d43['userId']&&(_0x5a2e08['userId']=String(_0x464d43['userId'])),null!=_0x464d43['role']&&(_0x5a2e08['role']=String(_0x464d43['role'])),_0x464d43['permissions']){if(!Array['isArray'](_0x464d43['permissions']))throw TypeError('.SocketConnectMessage.permissions:\x20array\x20expected');_0x5a2e08['permissions']=[];for(var _0x2713a8=0x0;_0x2713a8<_0x464d43['permissions']['length'];++_0x2713a8)_0x5a2e08['permissions'][_0x2713a8]=String(_0x464d43['permissions'][_0x2713a8]);}return _0x5a2e08;},_0x19f78c['toObject']=function(_0x117d3b,_0x3c8171,_0x491ac3){if(_0x3c8171||(_0x3c8171={}),void 0x0===_0x491ac3&&(_0x491ac3=0x0),_0x491ac3>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x5af305={};if((_0x3c8171['arrays']||_0x3c8171['defaults'])&&(_0x5af305['permissions']=[]),_0x3c8171['defaults']&&(_0x5af305['id']='',_0x5af305['userId']='',_0x5af305['role']=''),null!=_0x117d3b['id']&&Object['hasOwnProperty']['call'](_0x117d3b,'id')&&(_0x5af305['id']=_0x117d3b['id']),null!=_0x117d3b['userId']&&Object['hasOwnProperty']['call'](_0x117d3b,'userId')&&(_0x5af305['userId']=_0x117d3b['userId']),null!=_0x117d3b['role']&&Object['hasOwnProperty']['call'](_0x117d3b,'role')&&(_0x5af305['role']=_0x117d3b['role']),_0x117d3b['permissions']&&_0x117d3b['permissions']['length']){_0x5af305['permissions']=[];for(var _0x1b9ed4=0x0;_0x1b9ed4<_0x117d3b['permissions']['length'];++_0x1b9ed4)_0x5af305['permissions'][_0x1b9ed4]=_0x117d3b['permissions'][_0x1b9ed4];}return _0x5af305;},_0x19f78c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x19f78c['getTypeUrl']=function(_0x13c2f2){return void 0x0===_0x13c2f2&&(_0x13c2f2='type.googleapis.com'),_0x13c2f2+'/SocketConnectMessage';},_0x19f78c;}()),_0x34d3e2['SessionsConnectMessage']=(function(){function _0x7ef9c4(_0xf36645){if(_0xf36645){for(var _0x1f909a=Object['keys'](_0xf36645),_0x53a42a=0x0;_0x53a42a<_0x1f909a['length'];++_0x53a42a)null!=_0xf36645[_0x1f909a[_0x53a42a]]&&'__proto__'!==_0x1f909a[_0x53a42a]&&(this[_0x1f909a[_0x53a42a]]=_0xf36645[_0x1f909a[_0x53a42a]]);}}return _0x7ef9c4['prototype']['id']='',_0x7ef9c4['prototype']['sessionType']=0x0,_0x7ef9c4['create']=function(_0x1c2deb){return new _0x7ef9c4(_0x1c2deb);},_0x7ef9c4['encode']=function(_0x13e24b,_0x2a4c9a,_0x230a24){if(_0x2a4c9a||(_0x2a4c9a=_0x51052a['create']()),void 0x0===_0x230a24&&(_0x230a24=0x0),_0x230a24>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x13e24b['id']&&Object['hasOwnProperty']['call'](_0x13e24b,'id')&&_0x2a4c9a['uint32'](0xa)['string'](_0x13e24b['id']),null!=_0x13e24b['sessionType']&&Object['hasOwnProperty']['call'](_0x13e24b,'sessionType')&&_0x2a4c9a['uint32'](0x10)['uint32'](_0x13e24b['sessionType']),_0x2a4c9a;},_0x7ef9c4['encodeDelimited']=function(_0x4c88a0,_0x51c2dc){return this['encode'](_0x4c88a0,_0x51c2dc)['ldelim']();},_0x7ef9c4['decode']=function(_0x3557d4,_0x31f948,_0x179404,_0x41b408){if(_0x3557d4 instanceof _0x1f0e29||(_0x3557d4=_0x1f0e29['create'](_0x3557d4)),void 0x0===_0x41b408&&(_0x41b408=0x0),_0x41b408>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x2a68e4=void 0x0===_0x31f948?_0x3557d4['len']:_0x3557d4['pos']+_0x31f948,_0x5d2d69=new _0x34d3e2['SessionsConnectMessage']();_0x3557d4['pos']<_0x2a68e4;){var _0x3b36d9=_0x3557d4['uint32']();if(_0x3b36d9===_0x179404)break;switch(_0x3b36d9>>>0x3){case 0x1:_0x5d2d69['id']=_0x3557d4['string']();break;case 0x2:_0x5d2d69['sessionType']=_0x3557d4['uint32']();break;default:_0x3557d4['skipType'](0x7&_0x3b36d9,_0x41b408);}}return _0x5d2d69;},_0x7ef9c4['decodeDelimited']=function(_0x3a1796){return _0x3a1796 instanceof _0x1f0e29||(_0x3a1796=new _0x1f0e29(_0x3a1796)),this['decode'](_0x3a1796,_0x3a1796['uint32']());},_0x7ef9c4['verify']=function(_0x286ff4,_0xb46321){return'object'!=typeof _0x286ff4||null===_0x286ff4?'object\x20expected':(void 0x0===_0xb46321&&(_0xb46321=0x0),_0xb46321>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x286ff4['id']&&Object['hasOwnProperty']['call'](_0x286ff4,'id')&&!_0x3bb2e6['isString'](_0x286ff4['id'])?'id:\x20string\x20expected':null!=_0x286ff4['sessionType']&&Object['hasOwnProperty']['call'](_0x286ff4,'sessionType')&&!_0x3bb2e6['isInteger'](_0x286ff4['sessionType'])?'sessionType:\x20integer\x20expected':null);},_0x7ef9c4['fromObject']=function(_0x2cfd18,_0x9adbcc){if(_0x2cfd18 instanceof _0x34d3e2['SessionsConnectMessage'])return _0x2cfd18;if(!_0x3bb2e6['isObject'](_0x2cfd18))throw TypeError('.SessionsConnectMessage:\x20object\x20expected');if(void 0x0===_0x9adbcc&&(_0x9adbcc=0x0),_0x9adbcc>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x3f22b3=new _0x34d3e2['SessionsConnectMessage']();return null!=_0x2cfd18['id']&&(_0x3f22b3['id']=String(_0x2cfd18['id'])),null!=_0x2cfd18['sessionType']&&(_0x3f22b3['sessionType']=_0x2cfd18['sessionType']>>>0x0),_0x3f22b3;},_0x7ef9c4['toObject']=function(_0x347edc,_0x21c250,_0x5e9aa2){if(_0x21c250||(_0x21c250={}),void 0x0===_0x5e9aa2&&(_0x5e9aa2=0x0),_0x5e9aa2>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0xdf0a53={};return _0x21c250['defaults']&&(_0xdf0a53['id']='',_0xdf0a53['sessionType']=0x0),null!=_0x347edc['id']&&Object['hasOwnProperty']['call'](_0x347edc,'id')&&(_0xdf0a53['id']=_0x347edc['id']),null!=_0x347edc['sessionType']&&Object['hasOwnProperty']['call'](_0x347edc,'sessionType')&&(_0xdf0a53['sessionType']=_0x347edc['sessionType']),_0xdf0a53;},_0x7ef9c4['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x7ef9c4['getTypeUrl']=function(_0xd10fd2){return void 0x0===_0xd10fd2&&(_0xd10fd2='type.googleapis.com'),_0xd10fd2+'/SessionsConnectMessage';},_0x7ef9c4;}()),_0x34d3e2['SessionsSocketDescriptor']=(function(){function _0x34da6b(_0x847d56){if(this['permissions']=[],_0x847d56){for(var _0x53d85f=Object['keys'](_0x847d56),_0x18a605=0x0;_0x18a605<_0x53d85f['length'];++_0x18a605)null!=_0x847d56[_0x53d85f[_0x18a605]]&&'__proto__'!==_0x53d85f[_0x18a605]&&(this[_0x53d85f[_0x18a605]]=_0x847d56[_0x53d85f[_0x18a605]]);}}return _0x34da6b['prototype']['session']='',_0x34da6b['prototype']['user']='',_0x34da6b['prototype']['role']='',_0x34da6b['prototype']['permissions']=_0x3bb2e6['emptyArray'],_0x34da6b['create']=function(_0x41e931){return new _0x34da6b(_0x41e931);},_0x34da6b['encode']=function(_0x3d8f2d,_0x94d53c,_0x57d721){if(_0x94d53c||(_0x94d53c=_0x51052a['create']()),void 0x0===_0x57d721&&(_0x57d721=0x0),_0x57d721>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x3d8f2d['session']&&Object['hasOwnProperty']['call'](_0x3d8f2d,'session')&&_0x94d53c['uint32'](0xa)['string'](_0x3d8f2d['session']),null!=_0x3d8f2d['user']&&Object['hasOwnProperty']['call'](_0x3d8f2d,'user')&&_0x94d53c['uint32'](0x12)['string'](_0x3d8f2d['user']),null!=_0x3d8f2d['role']&&Object['hasOwnProperty']['call'](_0x3d8f2d,'role')&&_0x94d53c['uint32'](0x1a)['string'](_0x3d8f2d['role']),null!=_0x3d8f2d['permissions']&&_0x3d8f2d['permissions']['length']){for(var _0x53837c=0x0;_0x53837c<_0x3d8f2d['permissions']['length'];++_0x53837c)_0x94d53c['uint32'](0x22)['string'](_0x3d8f2d['permissions'][_0x53837c]);}return _0x94d53c;},_0x34da6b['encodeDelimited']=function(_0x5b4f35,_0x38e856){return this['encode'](_0x5b4f35,_0x38e856)['ldelim']();},_0x34da6b['decode']=function(_0x5a737f,_0x47b739,_0x4b3fc4,_0xe36057){if(_0x5a737f instanceof _0x1f0e29||(_0x5a737f=_0x1f0e29['create'](_0x5a737f)),void 0x0===_0xe36057&&(_0xe36057=0x0),_0xe36057>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x53d768=void 0x0===_0x47b739?_0x5a737f['len']:_0x5a737f['pos']+_0x47b739,_0x4f99bf=new _0x34d3e2['SessionsSocketDescriptor']();_0x5a737f['pos']<_0x53d768;){var _0x334ce6=_0x5a737f['uint32']();if(_0x334ce6===_0x4b3fc4)break;switch(_0x334ce6>>>0x3){case 0x1:_0x4f99bf['session']=_0x5a737f['string']();break;case 0x2:_0x4f99bf['user']=_0x5a737f['string']();break;case 0x3:_0x4f99bf['role']=_0x5a737f['string']();break;case 0x4:_0x4f99bf['permissions']&&_0x4f99bf['permissions']['length']||(_0x4f99bf['permissions']=[]),_0x4f99bf['permissions']['push'](_0x5a737f['string']());break;default:_0x5a737f['skipType'](0x7&_0x334ce6,_0xe36057);}}return _0x4f99bf;},_0x34da6b['decodeDelimited']=function(_0x4daed1){return _0x4daed1 instanceof _0x1f0e29||(_0x4daed1=new _0x1f0e29(_0x4daed1)),this['decode'](_0x4daed1,_0x4daed1['uint32']());},_0x34da6b['verify']=function(_0x4f54da,_0x59d83a){if('object'!=typeof _0x4f54da||null===_0x4f54da)return'object\x20expected';if(void 0x0===_0x59d83a&&(_0x59d83a=0x0),_0x59d83a>_0x3bb2e6['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x4f54da['session']&&Object['hasOwnProperty']['call'](_0x4f54da,'session')&&!_0x3bb2e6['isString'](_0x4f54da['session']))return'session:\x20string\x20expected';if(null!=_0x4f54da['user']&&Object['hasOwnProperty']['call'](_0x4f54da,'user')&&!_0x3bb2e6['isString'](_0x4f54da['user']))return'user:\x20string\x20expected';if(null!=_0x4f54da['role']&&Object['hasOwnProperty']['call'](_0x4f54da,'role')&&!_0x3bb2e6['isString'](_0x4f54da['role']))return'role:\x20string\x20expected';if(null!=_0x4f54da['permissions']&&Object['hasOwnProperty']['call'](_0x4f54da,'permissions')){if(!Array['isArray'](_0x4f54da['permissions']))return'permissions:\x20array\x20expected';for(var _0x25a9a7=0x0;_0x25a9a7<_0x4f54da['permissions']['length'];++_0x25a9a7)if(!_0x3bb2e6['isString'](_0x4f54da['permissions'][_0x25a9a7]))return'permissions:\x20string[]\x20expected';}return null;},_0x34da6b['fromObject']=function(_0x1d353b,_0x4a63e3){if(_0x1d353b instanceof _0x34d3e2['SessionsSocketDescriptor'])return _0x1d353b;if(!_0x3bb2e6['isObject'](_0x1d353b))throw TypeError('.SessionsSocketDescriptor:\x20object\x20expected');if(void 0x0===_0x4a63e3&&(_0x4a63e3=0x0),_0x4a63e3>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x38ee67=new _0x34d3e2['SessionsSocketDescriptor']();if(null!=_0x1d353b['session']&&(_0x38ee67['session']=String(_0x1d353b['session'])),null!=_0x1d353b['user']&&(_0x38ee67['user']=String(_0x1d353b['user'])),null!=_0x1d353b['role']&&(_0x38ee67['role']=String(_0x1d353b['role'])),_0x1d353b['permissions']){if(!Array['isArray'](_0x1d353b['permissions']))throw TypeError('.SessionsSocketDescriptor.permissions:\x20array\x20expected');_0x38ee67['permissions']=[];for(var _0x18d244=0x0;_0x18d244<_0x1d353b['permissions']['length'];++_0x18d244)_0x38ee67['permissions'][_0x18d244]=String(_0x1d353b['permissions'][_0x18d244]);}return _0x38ee67;},_0x34da6b['toObject']=function(_0x1dda4e,_0x4cf477,_0x476479){if(_0x4cf477||(_0x4cf477={}),void 0x0===_0x476479&&(_0x476479=0x0),_0x476479>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x1d1a31={};if((_0x4cf477['arrays']||_0x4cf477['defaults'])&&(_0x1d1a31['permissions']=[]),_0x4cf477['defaults']&&(_0x1d1a31['session']='',_0x1d1a31['user']='',_0x1d1a31['role']=''),null!=_0x1dda4e['session']&&Object['hasOwnProperty']['call'](_0x1dda4e,'session')&&(_0x1d1a31['session']=_0x1dda4e['session']),null!=_0x1dda4e['user']&&Object['hasOwnProperty']['call'](_0x1dda4e,'user')&&(_0x1d1a31['user']=_0x1dda4e['user']),null!=_0x1dda4e['role']&&Object['hasOwnProperty']['call'](_0x1dda4e,'role')&&(_0x1d1a31['role']=_0x1dda4e['role']),_0x1dda4e['permissions']&&_0x1dda4e['permissions']['length']){_0x1d1a31['permissions']=[];for(var _0xb87443=0x0;_0xb87443<_0x1dda4e['permissions']['length'];++_0xb87443)_0x1d1a31['permissions'][_0xb87443]=_0x1dda4e['permissions'][_0xb87443];}return _0x1d1a31;},_0x34da6b['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x34da6b['getTypeUrl']=function(_0x256e26){return void 0x0===_0x256e26&&(_0x256e26='type.googleapis.com'),_0x256e26+'/SessionsSocketDescriptor';},_0x34da6b;}()),_0x34d3e2['RevisionHistoryUpdateRevisionsResponse']=(function(){function _0x521ac2(_0x12b83c){if(_0x12b83c){for(var _0x13acf3=Object['keys'](_0x12b83c),_0x4a55bd=0x0;_0x4a55bd<_0x13acf3['length'];++_0x4a55bd)null!=_0x12b83c[_0x13acf3[_0x4a55bd]]&&'__proto__'!==_0x13acf3[_0x4a55bd]&&(this[_0x13acf3[_0x4a55bd]]=_0x12b83c[_0x13acf3[_0x4a55bd]]);}}return _0x521ac2['prototype']['requestId']=0x0,_0x521ac2['create']=function(_0x3051a5){return new _0x521ac2(_0x3051a5);},_0x521ac2['encode']=function(_0x4fa712,_0x7b6b44,_0x390e12){if(_0x7b6b44||(_0x7b6b44=_0x51052a['create']()),void 0x0===_0x390e12&&(_0x390e12=0x0),_0x390e12>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x4fa712['requestId']&&Object['hasOwnProperty']['call'](_0x4fa712,'requestId')&&_0x7b6b44['uint32'](0x8)['uint32'](_0x4fa712['requestId']),_0x7b6b44;},_0x521ac2['encodeDelimited']=function(_0x1789c7,_0x38c5aa){return this['encode'](_0x1789c7,_0x38c5aa)['ldelim']();},_0x521ac2['decode']=function(_0x13e2e8,_0xf13ff4,_0x2348cc,_0x39062a){if(_0x13e2e8 instanceof _0x1f0e29||(_0x13e2e8=_0x1f0e29['create'](_0x13e2e8)),void 0x0===_0x39062a&&(_0x39062a=0x0),_0x39062a>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x435d19=void 0x0===_0xf13ff4?_0x13e2e8['len']:_0x13e2e8['pos']+_0xf13ff4,_0x163c90=new _0x34d3e2['RevisionHistoryUpdateRevisionsResponse']();_0x13e2e8['pos']<_0x435d19;){var _0x85749d=_0x13e2e8['uint32']();if(_0x85749d===_0x2348cc)break;_0x85749d>>>0x3==0x1?_0x163c90['requestId']=_0x13e2e8['uint32']():_0x13e2e8['skipType'](0x7&_0x85749d,_0x39062a);}return _0x163c90;},_0x521ac2['decodeDelimited']=function(_0x507e98){return _0x507e98 instanceof _0x1f0e29||(_0x507e98=new _0x1f0e29(_0x507e98)),this['decode'](_0x507e98,_0x507e98['uint32']());},_0x521ac2['verify']=function(_0x473cc1,_0x213f00){return'object'!=typeof _0x473cc1||null===_0x473cc1?'object\x20expected':(void 0x0===_0x213f00&&(_0x213f00=0x0),_0x213f00>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x473cc1['requestId']&&Object['hasOwnProperty']['call'](_0x473cc1,'requestId')&&!_0x3bb2e6['isInteger'](_0x473cc1['requestId'])?'requestId:\x20integer\x20expected':null);},_0x521ac2['fromObject']=function(_0x78fe53,_0x30f3cd){if(_0x78fe53 instanceof _0x34d3e2['RevisionHistoryUpdateRevisionsResponse'])return _0x78fe53;if(!_0x3bb2e6['isObject'](_0x78fe53))throw TypeError('.RevisionHistoryUpdateRevisionsResponse:\x20object\x20expected');if(void 0x0===_0x30f3cd&&(_0x30f3cd=0x0),_0x30f3cd>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x471b57=new _0x34d3e2['RevisionHistoryUpdateRevisionsResponse']();return null!=_0x78fe53['requestId']&&(_0x471b57['requestId']=_0x78fe53['requestId']>>>0x0),_0x471b57;},_0x521ac2['toObject']=function(_0xd95ed3,_0xc58e69,_0x5cc1ed){if(_0xc58e69||(_0xc58e69={}),void 0x0===_0x5cc1ed&&(_0x5cc1ed=0x0),_0x5cc1ed>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x30ac34={};return _0xc58e69['defaults']&&(_0x30ac34['requestId']=0x0),null!=_0xd95ed3['requestId']&&Object['hasOwnProperty']['call'](_0xd95ed3,'requestId')&&(_0x30ac34['requestId']=_0xd95ed3['requestId']),_0x30ac34;},_0x521ac2['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x521ac2['getTypeUrl']=function(_0x4ebabd){return void 0x0===_0x4ebabd&&(_0x4ebabd='type.googleapis.com'),_0x4ebabd+'/RevisionHistoryUpdateRevisionsResponse';},_0x521ac2;}()),_0x34d3e2['RevisionHistoryGetRevisionResponse']=(function(){function _0x16bcd0(_0x89fec0){if(_0x89fec0){for(var _0x221008=Object['keys'](_0x89fec0),_0x538448=0x0;_0x538448<_0x221008['length'];++_0x538448)null!=_0x89fec0[_0x221008[_0x538448]]&&'__proto__'!==_0x221008[_0x538448]&&(this[_0x221008[_0x538448]]=_0x89fec0[_0x221008[_0x538448]]);}}return _0x16bcd0['prototype']['revisionId']='',_0x16bcd0['prototype']['name']='',_0x16bcd0['prototype']['creatorId']='',_0x16bcd0['prototype']['authorsIds']='',_0x16bcd0['prototype']['diffData']='',_0x16bcd0['prototype']['createdAt']='',_0x16bcd0['prototype']['attributes']='',_0x16bcd0['prototype']['toVersion']=0x0,_0x16bcd0['prototype']['fromVersion']=0x0,_0x16bcd0['prototype']['isEmptyCurrent']=!0x1,_0x16bcd0['create']=function(_0xe1ada8){return new _0x16bcd0(_0xe1ada8);},_0x16bcd0['encode']=function(_0x199288,_0x173bb7,_0x31b118){if(_0x173bb7||(_0x173bb7=_0x51052a['create']()),void 0x0===_0x31b118&&(_0x31b118=0x0),_0x31b118>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x199288['revisionId']&&Object['hasOwnProperty']['call'](_0x199288,'revisionId')&&_0x173bb7['uint32'](0xa)['string'](_0x199288['revisionId']),null!=_0x199288['name']&&Object['hasOwnProperty']['call'](_0x199288,'name')&&_0x173bb7['uint32'](0x12)['string'](_0x199288['name']),null!=_0x199288['creatorId']&&Object['hasOwnProperty']['call'](_0x199288,'creatorId')&&_0x173bb7['uint32'](0x1a)['string'](_0x199288['creatorId']),null!=_0x199288['authorsIds']&&Object['hasOwnProperty']['call'](_0x199288,'authorsIds')&&_0x173bb7['uint32'](0x22)['string'](_0x199288['authorsIds']),null!=_0x199288['diffData']&&Object['hasOwnProperty']['call'](_0x199288,'diffData')&&_0x173bb7['uint32'](0x2a)['string'](_0x199288['diffData']),null!=_0x199288['createdAt']&&Object['hasOwnProperty']['call'](_0x199288,'createdAt')&&_0x173bb7['uint32'](0x32)['string'](_0x199288['createdAt']),null!=_0x199288['attributes']&&Object['hasOwnProperty']['call'](_0x199288,'attributes')&&_0x173bb7['uint32'](0x3a)['string'](_0x199288['attributes']),null!=_0x199288['toVersion']&&Object['hasOwnProperty']['call'](_0x199288,'toVersion')&&_0x173bb7['uint32'](0x40)['uint32'](_0x199288['toVersion']),null!=_0x199288['fromVersion']&&Object['hasOwnProperty']['call'](_0x199288,'fromVersion')&&_0x173bb7['uint32'](0x48)['uint32'](_0x199288['fromVersion']),null!=_0x199288['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x199288,'isEmptyCurrent')&&_0x173bb7['uint32'](0x50)['bool'](_0x199288['isEmptyCurrent']),_0x173bb7;},_0x16bcd0['encodeDelimited']=function(_0x119583,_0x1b705a){return this['encode'](_0x119583,_0x1b705a)['ldelim']();},_0x16bcd0['decode']=function(_0x3ccb0c,_0x5ea9fa,_0x3a385d,_0x5574d5){if(_0x3ccb0c instanceof _0x1f0e29||(_0x3ccb0c=_0x1f0e29['create'](_0x3ccb0c)),void 0x0===_0x5574d5&&(_0x5574d5=0x0),_0x5574d5>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x314f68=void 0x0===_0x5ea9fa?_0x3ccb0c['len']:_0x3ccb0c['pos']+_0x5ea9fa,_0xe0e49=new _0x34d3e2['RevisionHistoryGetRevisionResponse']();_0x3ccb0c['pos']<_0x314f68;){var _0x2ba8e2=_0x3ccb0c['uint32']();if(_0x2ba8e2===_0x3a385d)break;switch(_0x2ba8e2>>>0x3){case 0x1:_0xe0e49['revisionId']=_0x3ccb0c['string']();break;case 0x2:_0xe0e49['name']=_0x3ccb0c['string']();break;case 0x3:_0xe0e49['creatorId']=_0x3ccb0c['string']();break;case 0x4:_0xe0e49['authorsIds']=_0x3ccb0c['string']();break;case 0x5:_0xe0e49['diffData']=_0x3ccb0c['string']();break;case 0x6:_0xe0e49['createdAt']=_0x3ccb0c['string']();break;case 0x7:_0xe0e49['attributes']=_0x3ccb0c['string']();break;case 0x8:_0xe0e49['toVersion']=_0x3ccb0c['uint32']();break;case 0x9:_0xe0e49['fromVersion']=_0x3ccb0c['uint32']();break;case 0xa:_0xe0e49['isEmptyCurrent']=_0x3ccb0c['bool']();break;default:_0x3ccb0c['skipType'](0x7&_0x2ba8e2,_0x5574d5);}}return _0xe0e49;},_0x16bcd0['decodeDelimited']=function(_0x3d6c0d){return _0x3d6c0d instanceof _0x1f0e29||(_0x3d6c0d=new _0x1f0e29(_0x3d6c0d)),this['decode'](_0x3d6c0d,_0x3d6c0d['uint32']());},_0x16bcd0['verify']=function(_0xef2f95,_0x346a38){return'object'!=typeof _0xef2f95||null===_0xef2f95?'object\x20expected':(void 0x0===_0x346a38&&(_0x346a38=0x0),_0x346a38>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0xef2f95['revisionId']&&Object['hasOwnProperty']['call'](_0xef2f95,'revisionId')&&!_0x3bb2e6['isString'](_0xef2f95['revisionId'])?'revisionId:\x20string\x20expected':null!=_0xef2f95['name']&&Object['hasOwnProperty']['call'](_0xef2f95,'name')&&!_0x3bb2e6['isString'](_0xef2f95['name'])?'name:\x20string\x20expected':null!=_0xef2f95['creatorId']&&Object['hasOwnProperty']['call'](_0xef2f95,'creatorId')&&!_0x3bb2e6['isString'](_0xef2f95['creatorId'])?'creatorId:\x20string\x20expected':null!=_0xef2f95['authorsIds']&&Object['hasOwnProperty']['call'](_0xef2f95,'authorsIds')&&!_0x3bb2e6['isString'](_0xef2f95['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0xef2f95['diffData']&&Object['hasOwnProperty']['call'](_0xef2f95,'diffData')&&!_0x3bb2e6['isString'](_0xef2f95['diffData'])?'diffData:\x20string\x20expected':null!=_0xef2f95['createdAt']&&Object['hasOwnProperty']['call'](_0xef2f95,'createdAt')&&!_0x3bb2e6['isString'](_0xef2f95['createdAt'])?'createdAt:\x20string\x20expected':null!=_0xef2f95['attributes']&&Object['hasOwnProperty']['call'](_0xef2f95,'attributes')&&!_0x3bb2e6['isString'](_0xef2f95['attributes'])?'attributes:\x20string\x20expected':null!=_0xef2f95['toVersion']&&Object['hasOwnProperty']['call'](_0xef2f95,'toVersion')&&!_0x3bb2e6['isInteger'](_0xef2f95['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0xef2f95['fromVersion']&&Object['hasOwnProperty']['call'](_0xef2f95,'fromVersion')&&!_0x3bb2e6['isInteger'](_0xef2f95['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0xef2f95['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0xef2f95,'isEmptyCurrent')&&'boolean'!=typeof _0xef2f95['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null);},_0x16bcd0['fromObject']=function(_0x326493,_0x1d0fcf){if(_0x326493 instanceof _0x34d3e2['RevisionHistoryGetRevisionResponse'])return _0x326493;if(!_0x3bb2e6['isObject'](_0x326493))throw TypeError('.RevisionHistoryGetRevisionResponse:\x20object\x20expected');if(void 0x0===_0x1d0fcf&&(_0x1d0fcf=0x0),_0x1d0fcf>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x41d5bd=new _0x34d3e2['RevisionHistoryGetRevisionResponse']();return null!=_0x326493['revisionId']&&(_0x41d5bd['revisionId']=String(_0x326493['revisionId'])),null!=_0x326493['name']&&(_0x41d5bd['name']=String(_0x326493['name'])),null!=_0x326493['creatorId']&&(_0x41d5bd['creatorId']=String(_0x326493['creatorId'])),null!=_0x326493['authorsIds']&&(_0x41d5bd['authorsIds']=String(_0x326493['authorsIds'])),null!=_0x326493['diffData']&&(_0x41d5bd['diffData']=String(_0x326493['diffData'])),null!=_0x326493['createdAt']&&(_0x41d5bd['createdAt']=String(_0x326493['createdAt'])),null!=_0x326493['attributes']&&(_0x41d5bd['attributes']=String(_0x326493['attributes'])),null!=_0x326493['toVersion']&&(_0x41d5bd['toVersion']=_0x326493['toVersion']>>>0x0),null!=_0x326493['fromVersion']&&(_0x41d5bd['fromVersion']=_0x326493['fromVersion']>>>0x0),null!=_0x326493['isEmptyCurrent']&&(_0x41d5bd['isEmptyCurrent']=Boolean(_0x326493['isEmptyCurrent'])),_0x41d5bd;},_0x16bcd0['toObject']=function(_0xb97ee2,_0x44f2ea,_0x4b37ee){if(_0x44f2ea||(_0x44f2ea={}),void 0x0===_0x4b37ee&&(_0x4b37ee=0x0),_0x4b37ee>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0xdf77e4={};return _0x44f2ea['defaults']&&(_0xdf77e4['revisionId']='',_0xdf77e4['name']='',_0xdf77e4['creatorId']='',_0xdf77e4['authorsIds']='',_0xdf77e4['diffData']='',_0xdf77e4['createdAt']='',_0xdf77e4['attributes']='',_0xdf77e4['toVersion']=0x0,_0xdf77e4['fromVersion']=0x0,_0xdf77e4['isEmptyCurrent']=!0x1),null!=_0xb97ee2['revisionId']&&Object['hasOwnProperty']['call'](_0xb97ee2,'revisionId')&&(_0xdf77e4['revisionId']=_0xb97ee2['revisionId']),null!=_0xb97ee2['name']&&Object['hasOwnProperty']['call'](_0xb97ee2,'name')&&(_0xdf77e4['name']=_0xb97ee2['name']),null!=_0xb97ee2['creatorId']&&Object['hasOwnProperty']['call'](_0xb97ee2,'creatorId')&&(_0xdf77e4['creatorId']=_0xb97ee2['creatorId']),null!=_0xb97ee2['authorsIds']&&Object['hasOwnProperty']['call'](_0xb97ee2,'authorsIds')&&(_0xdf77e4['authorsIds']=_0xb97ee2['authorsIds']),null!=_0xb97ee2['diffData']&&Object['hasOwnProperty']['call'](_0xb97ee2,'diffData')&&(_0xdf77e4['diffData']=_0xb97ee2['diffData']),null!=_0xb97ee2['createdAt']&&Object['hasOwnProperty']['call'](_0xb97ee2,'createdAt')&&(_0xdf77e4['createdAt']=_0xb97ee2['createdAt']),null!=_0xb97ee2['attributes']&&Object['hasOwnProperty']['call'](_0xb97ee2,'attributes')&&(_0xdf77e4['attributes']=_0xb97ee2['attributes']),null!=_0xb97ee2['toVersion']&&Object['hasOwnProperty']['call'](_0xb97ee2,'toVersion')&&(_0xdf77e4['toVersion']=_0xb97ee2['toVersion']),null!=_0xb97ee2['fromVersion']&&Object['hasOwnProperty']['call'](_0xb97ee2,'fromVersion')&&(_0xdf77e4['fromVersion']=_0xb97ee2['fromVersion']),null!=_0xb97ee2['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0xb97ee2,'isEmptyCurrent')&&(_0xdf77e4['isEmptyCurrent']=_0xb97ee2['isEmptyCurrent']),_0xdf77e4;},_0x16bcd0['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x16bcd0['getTypeUrl']=function(_0x145bb1){return void 0x0===_0x145bb1&&(_0x145bb1='type.googleapis.com'),_0x145bb1+'/RevisionHistoryGetRevisionResponse';},_0x16bcd0;}()),_0x34d3e2['RevisionHistoryConnectResponse']=(function(){function _0x15ad3e(_0x75f785){if(this['revisions']=[],_0x75f785){for(var _0x1f65e0=Object['keys'](_0x75f785),_0x2625a0=0x0;_0x2625a0<_0x1f65e0['length'];++_0x2625a0)null!=_0x75f785[_0x1f65e0[_0x2625a0]]&&'__proto__'!==_0x1f65e0[_0x2625a0]&&(this[_0x1f65e0[_0x2625a0]]=_0x75f785[_0x1f65e0[_0x2625a0]]);}}return _0x15ad3e['prototype']['channel']='',_0x15ad3e['prototype']['requestId']=0x0,_0x15ad3e['prototype']['revisions']=_0x3bb2e6['emptyArray'],_0x15ad3e['create']=function(_0x1aa28f){return new _0x15ad3e(_0x1aa28f);},_0x15ad3e['encode']=function(_0x1411e8,_0x4fbd9d,_0x3af66c){if(_0x4fbd9d||(_0x4fbd9d=_0x51052a['create']()),void 0x0===_0x3af66c&&(_0x3af66c=0x0),_0x3af66c>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x1411e8['channel']&&Object['hasOwnProperty']['call'](_0x1411e8,'channel')&&_0x4fbd9d['uint32'](0xa)['string'](_0x1411e8['channel']),null!=_0x1411e8['requestId']&&Object['hasOwnProperty']['call'](_0x1411e8,'requestId')&&_0x4fbd9d['uint32'](0x10)['uint32'](_0x1411e8['requestId']),null!=_0x1411e8['revisions']&&_0x1411e8['revisions']['length']){for(var _0x1264b3=0x0;_0x1264b3<_0x1411e8['revisions']['length'];++_0x1264b3)_0x34d3e2['RevisionDescriptor']['encode'](_0x1411e8['revisions'][_0x1264b3],_0x4fbd9d['uint32'](0x1a)['fork'](),_0x3af66c+0x1)['ldelim']();}return _0x4fbd9d;},_0x15ad3e['encodeDelimited']=function(_0x52b138,_0xf7cec3){return this['encode'](_0x52b138,_0xf7cec3)['ldelim']();},_0x15ad3e['decode']=function(_0x5e00dc,_0x560a95,_0x48a24d,_0x45144b){if(_0x5e00dc instanceof _0x1f0e29||(_0x5e00dc=_0x1f0e29['create'](_0x5e00dc)),void 0x0===_0x45144b&&(_0x45144b=0x0),_0x45144b>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x40f1f6=void 0x0===_0x560a95?_0x5e00dc['len']:_0x5e00dc['pos']+_0x560a95,_0x5b8c30=new _0x34d3e2['RevisionHistoryConnectResponse']();_0x5e00dc['pos']<_0x40f1f6;){var _0x11d5aa=_0x5e00dc['uint32']();if(_0x11d5aa===_0x48a24d)break;switch(_0x11d5aa>>>0x3){case 0x1:_0x5b8c30['channel']=_0x5e00dc['string']();break;case 0x2:_0x5b8c30['requestId']=_0x5e00dc['uint32']();break;case 0x3:_0x5b8c30['revisions']&&_0x5b8c30['revisions']['length']||(_0x5b8c30['revisions']=[]),_0x5b8c30['revisions']['push'](_0x34d3e2['RevisionDescriptor']['decode'](_0x5e00dc,_0x5e00dc['uint32'](),void 0x0,_0x45144b+0x1));break;default:_0x5e00dc['skipType'](0x7&_0x11d5aa,_0x45144b);}}return _0x5b8c30;},_0x15ad3e['decodeDelimited']=function(_0x4470bd){return _0x4470bd instanceof _0x1f0e29||(_0x4470bd=new _0x1f0e29(_0x4470bd)),this['decode'](_0x4470bd,_0x4470bd['uint32']());},_0x15ad3e['verify']=function(_0x2502ed,_0x330b78){if('object'!=typeof _0x2502ed||null===_0x2502ed)return'object\x20expected';if(void 0x0===_0x330b78&&(_0x330b78=0x0),_0x330b78>_0x3bb2e6['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x2502ed['channel']&&Object['hasOwnProperty']['call'](_0x2502ed,'channel')&&!_0x3bb2e6['isString'](_0x2502ed['channel']))return'channel:\x20string\x20expected';if(null!=_0x2502ed['requestId']&&Object['hasOwnProperty']['call'](_0x2502ed,'requestId')&&!_0x3bb2e6['isInteger'](_0x2502ed['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0x2502ed['revisions']&&Object['hasOwnProperty']['call'](_0x2502ed,'revisions')){if(!Array['isArray'](_0x2502ed['revisions']))return'revisions:\x20array\x20expected';for(var _0x4f4d7e=0x0;_0x4f4d7e<_0x2502ed['revisions']['length'];++_0x4f4d7e){var _0x22496d=_0x34d3e2['RevisionDescriptor']['verify'](_0x2502ed['revisions'][_0x4f4d7e],_0x330b78+0x1);if(_0x22496d)return'revisions.'+_0x22496d;}}return null;},_0x15ad3e['fromObject']=function(_0x4c2444,_0x1a375b){if(_0x4c2444 instanceof _0x34d3e2['RevisionHistoryConnectResponse'])return _0x4c2444;if(!_0x3bb2e6['isObject'](_0x4c2444))throw TypeError('.RevisionHistoryConnectResponse:\x20object\x20expected');if(void 0x0===_0x1a375b&&(_0x1a375b=0x0),_0x1a375b>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x24b089=new _0x34d3e2['RevisionHistoryConnectResponse']();if(null!=_0x4c2444['channel']&&(_0x24b089['channel']=String(_0x4c2444['channel'])),null!=_0x4c2444['requestId']&&(_0x24b089['requestId']=_0x4c2444['requestId']>>>0x0),_0x4c2444['revisions']){if(!Array['isArray'](_0x4c2444['revisions']))throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20array\x20expected');_0x24b089['revisions']=[];for(var _0x284a1e=0x0;_0x284a1e<_0x4c2444['revisions']['length'];++_0x284a1e){if(!_0x3bb2e6['isObject'](_0x4c2444['revisions'][_0x284a1e]))throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20object\x20expected');_0x24b089['revisions'][_0x284a1e]=_0x34d3e2['RevisionDescriptor']['fromObject'](_0x4c2444['revisions'][_0x284a1e],_0x1a375b+0x1);}}return _0x24b089;},_0x15ad3e['toObject']=function(_0x1aaf00,_0x221ae7,_0x1d8e73){if(_0x221ae7||(_0x221ae7={}),void 0x0===_0x1d8e73&&(_0x1d8e73=0x0),_0x1d8e73>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x13917b={};if((_0x221ae7['arrays']||_0x221ae7['defaults'])&&(_0x13917b['revisions']=[]),_0x221ae7['defaults']&&(_0x13917b['channel']='',_0x13917b['requestId']=0x0),null!=_0x1aaf00['channel']&&Object['hasOwnProperty']['call'](_0x1aaf00,'channel')&&(_0x13917b['channel']=_0x1aaf00['channel']),null!=_0x1aaf00['requestId']&&Object['hasOwnProperty']['call'](_0x1aaf00,'requestId')&&(_0x13917b['requestId']=_0x1aaf00['requestId']),_0x1aaf00['revisions']&&_0x1aaf00['revisions']['length']){_0x13917b['revisions']=[];for(var _0x51930b=0x0;_0x51930b<_0x1aaf00['revisions']['length'];++_0x51930b)_0x13917b['revisions'][_0x51930b]=_0x34d3e2['RevisionDescriptor']['toObject'](_0x1aaf00['revisions'][_0x51930b],_0x221ae7,_0x1d8e73+0x1);}return _0x13917b;},_0x15ad3e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x15ad3e['getTypeUrl']=function(_0x1991e4){return void 0x0===_0x1991e4&&(_0x1991e4='type.googleapis.com'),_0x1991e4+'/RevisionHistoryConnectResponse';},_0x15ad3e;}()),_0x34d3e2['RevisionHistoryUpdateRevisionsMessage']=(function(){function _0x371e79(_0x252163){if(this['revisions']=[],_0x252163){for(var _0x556e37=Object['keys'](_0x252163),_0x20ece7=0x0;_0x20ece7<_0x556e37['length'];++_0x20ece7)null!=_0x252163[_0x556e37[_0x20ece7]]&&'__proto__'!==_0x556e37[_0x20ece7]&&(this[_0x556e37[_0x20ece7]]=_0x252163[_0x556e37[_0x20ece7]]);}}return _0x371e79['prototype']['documentId']='',_0x371e79['prototype']['requestId']=0x0,_0x371e79['prototype']['revisions']=_0x3bb2e6['emptyArray'],_0x371e79['create']=function(_0x1d10b6){return new _0x371e79(_0x1d10b6);},_0x371e79['encode']=function(_0x1a6498,_0x5cedc1,_0x7e1828){if(_0x5cedc1||(_0x5cedc1=_0x51052a['create']()),void 0x0===_0x7e1828&&(_0x7e1828=0x0),_0x7e1828>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x1a6498['documentId']&&Object['hasOwnProperty']['call'](_0x1a6498,'documentId')&&_0x5cedc1['uint32'](0xa)['string'](_0x1a6498['documentId']),null!=_0x1a6498['requestId']&&Object['hasOwnProperty']['call'](_0x1a6498,'requestId')&&_0x5cedc1['uint32'](0x10)['uint32'](_0x1a6498['requestId']),null!=_0x1a6498['revisions']&&_0x1a6498['revisions']['length']){for(var _0x4f6d61=0x0;_0x4f6d61<_0x1a6498['revisions']['length'];++_0x4f6d61)_0x34d3e2['RevisionDescriptor']['encode'](_0x1a6498['revisions'][_0x4f6d61],_0x5cedc1['uint32'](0x1a)['fork'](),_0x7e1828+0x1)['ldelim']();}return _0x5cedc1;},_0x371e79['encodeDelimited']=function(_0x19c850,_0x3ed8b6){return this['encode'](_0x19c850,_0x3ed8b6)['ldelim']();},_0x371e79['decode']=function(_0x3b40cc,_0x7ccbab,_0x53d5b4,_0x3b9788){if(_0x3b40cc instanceof _0x1f0e29||(_0x3b40cc=_0x1f0e29['create'](_0x3b40cc)),void 0x0===_0x3b9788&&(_0x3b9788=0x0),_0x3b9788>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x103f26=void 0x0===_0x7ccbab?_0x3b40cc['len']:_0x3b40cc['pos']+_0x7ccbab,_0x101936=new _0x34d3e2['RevisionHistoryUpdateRevisionsMessage']();_0x3b40cc['pos']<_0x103f26;){var _0x42befe=_0x3b40cc['uint32']();if(_0x42befe===_0x53d5b4)break;switch(_0x42befe>>>0x3){case 0x1:_0x101936['documentId']=_0x3b40cc['string']();break;case 0x2:_0x101936['requestId']=_0x3b40cc['uint32']();break;case 0x3:_0x101936['revisions']&&_0x101936['revisions']['length']||(_0x101936['revisions']=[]),_0x101936['revisions']['push'](_0x34d3e2['RevisionDescriptor']['decode'](_0x3b40cc,_0x3b40cc['uint32'](),void 0x0,_0x3b9788+0x1));break;default:_0x3b40cc['skipType'](0x7&_0x42befe,_0x3b9788);}}return _0x101936;},_0x371e79['decodeDelimited']=function(_0x1af070){return _0x1af070 instanceof _0x1f0e29||(_0x1af070=new _0x1f0e29(_0x1af070)),this['decode'](_0x1af070,_0x1af070['uint32']());},_0x371e79['verify']=function(_0x2a4404,_0xd61cab){if('object'!=typeof _0x2a4404||null===_0x2a4404)return'object\x20expected';if(void 0x0===_0xd61cab&&(_0xd61cab=0x0),_0xd61cab>_0x3bb2e6['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x2a4404['documentId']&&Object['hasOwnProperty']['call'](_0x2a4404,'documentId')&&!_0x3bb2e6['isString'](_0x2a4404['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x2a4404['requestId']&&Object['hasOwnProperty']['call'](_0x2a4404,'requestId')&&!_0x3bb2e6['isInteger'](_0x2a4404['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0x2a4404['revisions']&&Object['hasOwnProperty']['call'](_0x2a4404,'revisions')){if(!Array['isArray'](_0x2a4404['revisions']))return'revisions:\x20array\x20expected';for(var _0x6ea4f9=0x0;_0x6ea4f9<_0x2a4404['revisions']['length'];++_0x6ea4f9){var _0x56fc11=_0x34d3e2['RevisionDescriptor']['verify'](_0x2a4404['revisions'][_0x6ea4f9],_0xd61cab+0x1);if(_0x56fc11)return'revisions.'+_0x56fc11;}}return null;},_0x371e79['fromObject']=function(_0x5daedc,_0x4e3468){if(_0x5daedc instanceof _0x34d3e2['RevisionHistoryUpdateRevisionsMessage'])return _0x5daedc;if(!_0x3bb2e6['isObject'](_0x5daedc))throw TypeError('.RevisionHistoryUpdateRevisionsMessage:\x20object\x20expected');if(void 0x0===_0x4e3468&&(_0x4e3468=0x0),_0x4e3468>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x268f65=new _0x34d3e2['RevisionHistoryUpdateRevisionsMessage']();if(null!=_0x5daedc['documentId']&&(_0x268f65['documentId']=String(_0x5daedc['documentId'])),null!=_0x5daedc['requestId']&&(_0x268f65['requestId']=_0x5daedc['requestId']>>>0x0),_0x5daedc['revisions']){if(!Array['isArray'](_0x5daedc['revisions']))throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20array\x20expected');_0x268f65['revisions']=[];for(var _0x26a597=0x0;_0x26a597<_0x5daedc['revisions']['length'];++_0x26a597){if(!_0x3bb2e6['isObject'](_0x5daedc['revisions'][_0x26a597]))throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20object\x20expected');_0x268f65['revisions'][_0x26a597]=_0x34d3e2['RevisionDescriptor']['fromObject'](_0x5daedc['revisions'][_0x26a597],_0x4e3468+0x1);}}return _0x268f65;},_0x371e79['toObject']=function(_0x213499,_0x61095,_0x474acf){if(_0x61095||(_0x61095={}),void 0x0===_0x474acf&&(_0x474acf=0x0),_0x474acf>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x5e0212={};if((_0x61095['arrays']||_0x61095['defaults'])&&(_0x5e0212['revisions']=[]),_0x61095['defaults']&&(_0x5e0212['documentId']='',_0x5e0212['requestId']=0x0),null!=_0x213499['documentId']&&Object['hasOwnProperty']['call'](_0x213499,'documentId')&&(_0x5e0212['documentId']=_0x213499['documentId']),null!=_0x213499['requestId']&&Object['hasOwnProperty']['call'](_0x213499,'requestId')&&(_0x5e0212['requestId']=_0x213499['requestId']),_0x213499['revisions']&&_0x213499['revisions']['length']){_0x5e0212['revisions']=[];for(var _0x32defc=0x0;_0x32defc<_0x213499['revisions']['length'];++_0x32defc)_0x5e0212['revisions'][_0x32defc]=_0x34d3e2['RevisionDescriptor']['toObject'](_0x213499['revisions'][_0x32defc],_0x61095,_0x474acf+0x1);}return _0x5e0212;},_0x371e79['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x371e79['getTypeUrl']=function(_0x434af6){return void 0x0===_0x434af6&&(_0x434af6='type.googleapis.com'),_0x434af6+'/RevisionHistoryUpdateRevisionsMessage';},_0x371e79;}()),_0x34d3e2['RevisionHistoryReconnectMessage']=(function(){function _0x5a0365(_0x98cc97){if(_0x98cc97){for(var _0x2027a5=Object['keys'](_0x98cc97),_0x306dd8=0x0;_0x306dd8<_0x2027a5['length'];++_0x306dd8)null!=_0x98cc97[_0x2027a5[_0x306dd8]]&&'__proto__'!==_0x2027a5[_0x306dd8]&&(this[_0x2027a5[_0x306dd8]]=_0x98cc97[_0x2027a5[_0x306dd8]]);}}return _0x5a0365['prototype']['documentId']='',_0x5a0365['prototype']['requestId']=0x0,_0x5a0365['create']=function(_0x67543f){return new _0x5a0365(_0x67543f);},_0x5a0365['encode']=function(_0x4c4f82,_0x7ab020,_0x58742e){if(_0x7ab020||(_0x7ab020=_0x51052a['create']()),void 0x0===_0x58742e&&(_0x58742e=0x0),_0x58742e>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x4c4f82['documentId']&&Object['hasOwnProperty']['call'](_0x4c4f82,'documentId')&&_0x7ab020['uint32'](0xa)['string'](_0x4c4f82['documentId']),null!=_0x4c4f82['requestId']&&Object['hasOwnProperty']['call'](_0x4c4f82,'requestId')&&_0x7ab020['uint32'](0x10)['uint32'](_0x4c4f82['requestId']),_0x7ab020;},_0x5a0365['encodeDelimited']=function(_0x2a0096,_0x19be1b){return this['encode'](_0x2a0096,_0x19be1b)['ldelim']();},_0x5a0365['decode']=function(_0x403c5c,_0x33d0a7,_0x196da9,_0x1fcd5e){if(_0x403c5c instanceof _0x1f0e29||(_0x403c5c=_0x1f0e29['create'](_0x403c5c)),void 0x0===_0x1fcd5e&&(_0x1fcd5e=0x0),_0x1fcd5e>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x3b90db=void 0x0===_0x33d0a7?_0x403c5c['len']:_0x403c5c['pos']+_0x33d0a7,_0x43f0eb=new _0x34d3e2['RevisionHistoryReconnectMessage']();_0x403c5c['pos']<_0x3b90db;){var _0x379a46=_0x403c5c['uint32']();if(_0x379a46===_0x196da9)break;switch(_0x379a46>>>0x3){case 0x1:_0x43f0eb['documentId']=_0x403c5c['string']();break;case 0x2:_0x43f0eb['requestId']=_0x403c5c['uint32']();break;default:_0x403c5c['skipType'](0x7&_0x379a46,_0x1fcd5e);}}return _0x43f0eb;},_0x5a0365['decodeDelimited']=function(_0x92bfc1){return _0x92bfc1 instanceof _0x1f0e29||(_0x92bfc1=new _0x1f0e29(_0x92bfc1)),this['decode'](_0x92bfc1,_0x92bfc1['uint32']());},_0x5a0365['verify']=function(_0x43306f,_0x45641c){return'object'!=typeof _0x43306f||null===_0x43306f?'object\x20expected':(void 0x0===_0x45641c&&(_0x45641c=0x0),_0x45641c>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x43306f['documentId']&&Object['hasOwnProperty']['call'](_0x43306f,'documentId')&&!_0x3bb2e6['isString'](_0x43306f['documentId'])?'documentId:\x20string\x20expected':null!=_0x43306f['requestId']&&Object['hasOwnProperty']['call'](_0x43306f,'requestId')&&!_0x3bb2e6['isInteger'](_0x43306f['requestId'])?'requestId:\x20integer\x20expected':null);},_0x5a0365['fromObject']=function(_0x5af56c,_0x1fbbbc){if(_0x5af56c instanceof _0x34d3e2['RevisionHistoryReconnectMessage'])return _0x5af56c;if(!_0x3bb2e6['isObject'](_0x5af56c))throw TypeError('.RevisionHistoryReconnectMessage:\x20object\x20expected');if(void 0x0===_0x1fbbbc&&(_0x1fbbbc=0x0),_0x1fbbbc>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x409f1e=new _0x34d3e2['RevisionHistoryReconnectMessage']();return null!=_0x5af56c['documentId']&&(_0x409f1e['documentId']=String(_0x5af56c['documentId'])),null!=_0x5af56c['requestId']&&(_0x409f1e['requestId']=_0x5af56c['requestId']>>>0x0),_0x409f1e;},_0x5a0365['toObject']=function(_0x50ff51,_0x1c607c,_0x47df82){if(_0x1c607c||(_0x1c607c={}),void 0x0===_0x47df82&&(_0x47df82=0x0),_0x47df82>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x4698cd={};return _0x1c607c['defaults']&&(_0x4698cd['documentId']='',_0x4698cd['requestId']=0x0),null!=_0x50ff51['documentId']&&Object['hasOwnProperty']['call'](_0x50ff51,'documentId')&&(_0x4698cd['documentId']=_0x50ff51['documentId']),null!=_0x50ff51['requestId']&&Object['hasOwnProperty']['call'](_0x50ff51,'requestId')&&(_0x4698cd['requestId']=_0x50ff51['requestId']),_0x4698cd;},_0x5a0365['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x5a0365['getTypeUrl']=function(_0x2cee58){return void 0x0===_0x2cee58&&(_0x2cee58='type.googleapis.com'),_0x2cee58+'/RevisionHistoryReconnectMessage';},_0x5a0365;}()),_0x34d3e2['RevisionHistoryGetRevisionMessage']=(function(){function _0x2d5c15(_0x548f60){if(_0x548f60){for(var _0x4be015=Object['keys'](_0x548f60),_0x134158=0x0;_0x134158<_0x4be015['length'];++_0x134158)null!=_0x548f60[_0x4be015[_0x134158]]&&'__proto__'!==_0x4be015[_0x134158]&&(this[_0x4be015[_0x134158]]=_0x548f60[_0x4be015[_0x134158]]);}}return _0x2d5c15['prototype']['documentId']='',_0x2d5c15['prototype']['revisionId']='',_0x2d5c15['create']=function(_0x576053){return new _0x2d5c15(_0x576053);},_0x2d5c15['encode']=function(_0x19da76,_0x3bf3e3,_0x2c326){if(_0x3bf3e3||(_0x3bf3e3=_0x51052a['create']()),void 0x0===_0x2c326&&(_0x2c326=0x0),_0x2c326>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x19da76['documentId']&&Object['hasOwnProperty']['call'](_0x19da76,'documentId')&&_0x3bf3e3['uint32'](0xa)['string'](_0x19da76['documentId']),null!=_0x19da76['revisionId']&&Object['hasOwnProperty']['call'](_0x19da76,'revisionId')&&_0x3bf3e3['uint32'](0x12)['string'](_0x19da76['revisionId']),_0x3bf3e3;},_0x2d5c15['encodeDelimited']=function(_0x549cb3,_0x23eb40){return this['encode'](_0x549cb3,_0x23eb40)['ldelim']();},_0x2d5c15['decode']=function(_0x3d366d,_0x4b4a9a,_0x11ce6c,_0xb75ef7){if(_0x3d366d instanceof _0x1f0e29||(_0x3d366d=_0x1f0e29['create'](_0x3d366d)),void 0x0===_0xb75ef7&&(_0xb75ef7=0x0),_0xb75ef7>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x3c5e04=void 0x0===_0x4b4a9a?_0x3d366d['len']:_0x3d366d['pos']+_0x4b4a9a,_0x5accee=new _0x34d3e2['RevisionHistoryGetRevisionMessage']();_0x3d366d['pos']<_0x3c5e04;){var _0x40fe1d=_0x3d366d['uint32']();if(_0x40fe1d===_0x11ce6c)break;switch(_0x40fe1d>>>0x3){case 0x1:_0x5accee['documentId']=_0x3d366d['string']();break;case 0x2:_0x5accee['revisionId']=_0x3d366d['string']();break;default:_0x3d366d['skipType'](0x7&_0x40fe1d,_0xb75ef7);}}return _0x5accee;},_0x2d5c15['decodeDelimited']=function(_0xdaf5e3){return _0xdaf5e3 instanceof _0x1f0e29||(_0xdaf5e3=new _0x1f0e29(_0xdaf5e3)),this['decode'](_0xdaf5e3,_0xdaf5e3['uint32']());},_0x2d5c15['verify']=function(_0x4a7f22,_0x2c0259){return'object'!=typeof _0x4a7f22||null===_0x4a7f22?'object\x20expected':(void 0x0===_0x2c0259&&(_0x2c0259=0x0),_0x2c0259>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x4a7f22['documentId']&&Object['hasOwnProperty']['call'](_0x4a7f22,'documentId')&&!_0x3bb2e6['isString'](_0x4a7f22['documentId'])?'documentId:\x20string\x20expected':null!=_0x4a7f22['revisionId']&&Object['hasOwnProperty']['call'](_0x4a7f22,'revisionId')&&!_0x3bb2e6['isString'](_0x4a7f22['revisionId'])?'revisionId:\x20string\x20expected':null);},_0x2d5c15['fromObject']=function(_0x2fc9d7,_0x36bfde){if(_0x2fc9d7 instanceof _0x34d3e2['RevisionHistoryGetRevisionMessage'])return _0x2fc9d7;if(!_0x3bb2e6['isObject'](_0x2fc9d7))throw TypeError('.RevisionHistoryGetRevisionMessage:\x20object\x20expected');if(void 0x0===_0x36bfde&&(_0x36bfde=0x0),_0x36bfde>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x1e76d7=new _0x34d3e2['RevisionHistoryGetRevisionMessage']();return null!=_0x2fc9d7['documentId']&&(_0x1e76d7['documentId']=String(_0x2fc9d7['documentId'])),null!=_0x2fc9d7['revisionId']&&(_0x1e76d7['revisionId']=String(_0x2fc9d7['revisionId'])),_0x1e76d7;},_0x2d5c15['toObject']=function(_0x40eaec,_0x29e6bc,_0x319837){if(_0x29e6bc||(_0x29e6bc={}),void 0x0===_0x319837&&(_0x319837=0x0),_0x319837>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x223ae6={};return _0x29e6bc['defaults']&&(_0x223ae6['documentId']='',_0x223ae6['revisionId']=''),null!=_0x40eaec['documentId']&&Object['hasOwnProperty']['call'](_0x40eaec,'documentId')&&(_0x223ae6['documentId']=_0x40eaec['documentId']),null!=_0x40eaec['revisionId']&&Object['hasOwnProperty']['call'](_0x40eaec,'revisionId')&&(_0x223ae6['revisionId']=_0x40eaec['revisionId']),_0x223ae6;},_0x2d5c15['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x2d5c15['getTypeUrl']=function(_0x2928f6){return void 0x0===_0x2928f6&&(_0x2928f6='type.googleapis.com'),_0x2928f6+'/RevisionHistoryGetRevisionMessage';},_0x2d5c15;}()),_0x34d3e2['RevisionHistoryConnectMessage']=(function(){function _0x180f5e(_0x294697){if(_0x294697){for(var _0x430b09=Object['keys'](_0x294697),_0x26d370=0x0;_0x26d370<_0x430b09['length'];++_0x26d370)null!=_0x294697[_0x430b09[_0x26d370]]&&'__proto__'!==_0x430b09[_0x26d370]&&(this[_0x430b09[_0x26d370]]=_0x294697[_0x430b09[_0x26d370]]);}}return _0x180f5e['prototype']['documentId']='',_0x180f5e['create']=function(_0x1e4f80){return new _0x180f5e(_0x1e4f80);},_0x180f5e['encode']=function(_0x2486fc,_0xf6da16,_0x168196){if(_0xf6da16||(_0xf6da16=_0x51052a['create']()),void 0x0===_0x168196&&(_0x168196=0x0),_0x168196>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x2486fc['documentId']&&Object['hasOwnProperty']['call'](_0x2486fc,'documentId')&&_0xf6da16['uint32'](0xa)['string'](_0x2486fc['documentId']),_0xf6da16;},_0x180f5e['encodeDelimited']=function(_0x457925,_0x265bf7){return this['encode'](_0x457925,_0x265bf7)['ldelim']();},_0x180f5e['decode']=function(_0xb421c5,_0x4dc2ee,_0x2218d1,_0x3132e8){if(_0xb421c5 instanceof _0x1f0e29||(_0xb421c5=_0x1f0e29['create'](_0xb421c5)),void 0x0===_0x3132e8&&(_0x3132e8=0x0),_0x3132e8>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x3add39=void 0x0===_0x4dc2ee?_0xb421c5['len']:_0xb421c5['pos']+_0x4dc2ee,_0x346765=new _0x34d3e2['RevisionHistoryConnectMessage']();_0xb421c5['pos']<_0x3add39;){var _0x292c31=_0xb421c5['uint32']();if(_0x292c31===_0x2218d1)break;_0x292c31>>>0x3==0x1?_0x346765['documentId']=_0xb421c5['string']():_0xb421c5['skipType'](0x7&_0x292c31,_0x3132e8);}return _0x346765;},_0x180f5e['decodeDelimited']=function(_0x497c58){return _0x497c58 instanceof _0x1f0e29||(_0x497c58=new _0x1f0e29(_0x497c58)),this['decode'](_0x497c58,_0x497c58['uint32']());},_0x180f5e['verify']=function(_0x1390d7,_0x5c76a){return'object'!=typeof _0x1390d7||null===_0x1390d7?'object\x20expected':(void 0x0===_0x5c76a&&(_0x5c76a=0x0),_0x5c76a>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x1390d7['documentId']&&Object['hasOwnProperty']['call'](_0x1390d7,'documentId')&&!_0x3bb2e6['isString'](_0x1390d7['documentId'])?'documentId:\x20string\x20expected':null);},_0x180f5e['fromObject']=function(_0x4eaaed,_0xac6988){if(_0x4eaaed instanceof _0x34d3e2['RevisionHistoryConnectMessage'])return _0x4eaaed;if(!_0x3bb2e6['isObject'](_0x4eaaed))throw TypeError('.RevisionHistoryConnectMessage:\x20object\x20expected');if(void 0x0===_0xac6988&&(_0xac6988=0x0),_0xac6988>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x56f012=new _0x34d3e2['RevisionHistoryConnectMessage']();return null!=_0x4eaaed['documentId']&&(_0x56f012['documentId']=String(_0x4eaaed['documentId'])),_0x56f012;},_0x180f5e['toObject']=function(_0xb5b367,_0x2ce9e0,_0x33b655){if(_0x2ce9e0||(_0x2ce9e0={}),void 0x0===_0x33b655&&(_0x33b655=0x0),_0x33b655>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x1c0961={};return _0x2ce9e0['defaults']&&(_0x1c0961['documentId']=''),null!=_0xb5b367['documentId']&&Object['hasOwnProperty']['call'](_0xb5b367,'documentId')&&(_0x1c0961['documentId']=_0xb5b367['documentId']),_0x1c0961;},_0x180f5e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x180f5e['getTypeUrl']=function(_0x5c6fea){return void 0x0===_0x5c6fea&&(_0x5c6fea='type.googleapis.com'),_0x5c6fea+'/RevisionHistoryConnectMessage';},_0x180f5e;}()),_0x34d3e2['RevisionDescriptor']=(function(){function _0xa1b096(_0x42b65e){if(_0x42b65e){for(var _0x45ef35=Object['keys'](_0x42b65e),_0x254ba7=0x0;_0x254ba7<_0x45ef35['length'];++_0x254ba7)null!=_0x42b65e[_0x45ef35[_0x254ba7]]&&'__proto__'!==_0x45ef35[_0x254ba7]&&(this[_0x45ef35[_0x254ba7]]=_0x42b65e[_0x45ef35[_0x254ba7]]);}}return _0xa1b096['prototype']['revisionId']='',_0xa1b096['prototype']['name']='',_0xa1b096['prototype']['creatorId']='',_0xa1b096['prototype']['authorsIds']='',_0xa1b096['prototype']['diffData']='',_0xa1b096['prototype']['createdAt']='',_0xa1b096['prototype']['attributes']='',_0xa1b096['prototype']['toVersion']=0x0,_0xa1b096['prototype']['fromVersion']=0x0,_0xa1b096['prototype']['isEmptyCurrent']=!0x1,_0xa1b096['create']=function(_0x466d95){return new _0xa1b096(_0x466d95);},_0xa1b096['encode']=function(_0x10792c,_0x3b4c2a,_0x2e0f15){if(_0x3b4c2a||(_0x3b4c2a=_0x51052a['create']()),void 0x0===_0x2e0f15&&(_0x2e0f15=0x0),_0x2e0f15>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x10792c['revisionId']&&Object['hasOwnProperty']['call'](_0x10792c,'revisionId')&&_0x3b4c2a['uint32'](0xa)['string'](_0x10792c['revisionId']),null!=_0x10792c['name']&&Object['hasOwnProperty']['call'](_0x10792c,'name')&&_0x3b4c2a['uint32'](0x12)['string'](_0x10792c['name']),null!=_0x10792c['creatorId']&&Object['hasOwnProperty']['call'](_0x10792c,'creatorId')&&_0x3b4c2a['uint32'](0x1a)['string'](_0x10792c['creatorId']),null!=_0x10792c['authorsIds']&&Object['hasOwnProperty']['call'](_0x10792c,'authorsIds')&&_0x3b4c2a['uint32'](0x22)['string'](_0x10792c['authorsIds']),null!=_0x10792c['diffData']&&Object['hasOwnProperty']['call'](_0x10792c,'diffData')&&_0x3b4c2a['uint32'](0x2a)['string'](_0x10792c['diffData']),null!=_0x10792c['createdAt']&&Object['hasOwnProperty']['call'](_0x10792c,'createdAt')&&_0x3b4c2a['uint32'](0x32)['string'](_0x10792c['createdAt']),null!=_0x10792c['attributes']&&Object['hasOwnProperty']['call'](_0x10792c,'attributes')&&_0x3b4c2a['uint32'](0x3a)['string'](_0x10792c['attributes']),null!=_0x10792c['toVersion']&&Object['hasOwnProperty']['call'](_0x10792c,'toVersion')&&_0x3b4c2a['uint32'](0x40)['uint32'](_0x10792c['toVersion']),null!=_0x10792c['fromVersion']&&Object['hasOwnProperty']['call'](_0x10792c,'fromVersion')&&_0x3b4c2a['uint32'](0x48)['uint32'](_0x10792c['fromVersion']),null!=_0x10792c['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x10792c,'isEmptyCurrent')&&_0x3b4c2a['uint32'](0x50)['bool'](_0x10792c['isEmptyCurrent']),_0x3b4c2a;},_0xa1b096['encodeDelimited']=function(_0x296894,_0x109f41){return this['encode'](_0x296894,_0x109f41)['ldelim']();},_0xa1b096['decode']=function(_0x28b2c7,_0x54b16a,_0xa2fdcc,_0x3028cf){if(_0x28b2c7 instanceof _0x1f0e29||(_0x28b2c7=_0x1f0e29['create'](_0x28b2c7)),void 0x0===_0x3028cf&&(_0x3028cf=0x0),_0x3028cf>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x1d70a6=void 0x0===_0x54b16a?_0x28b2c7['len']:_0x28b2c7['pos']+_0x54b16a,_0x3297ba=new _0x34d3e2['RevisionDescriptor']();_0x28b2c7['pos']<_0x1d70a6;){var _0x574a3d=_0x28b2c7['uint32']();if(_0x574a3d===_0xa2fdcc)break;switch(_0x574a3d>>>0x3){case 0x1:_0x3297ba['revisionId']=_0x28b2c7['string']();break;case 0x2:_0x3297ba['name']=_0x28b2c7['string']();break;case 0x3:_0x3297ba['creatorId']=_0x28b2c7['string']();break;case 0x4:_0x3297ba['authorsIds']=_0x28b2c7['string']();break;case 0x5:_0x3297ba['diffData']=_0x28b2c7['string']();break;case 0x6:_0x3297ba['createdAt']=_0x28b2c7['string']();break;case 0x7:_0x3297ba['attributes']=_0x28b2c7['string']();break;case 0x8:_0x3297ba['toVersion']=_0x28b2c7['uint32']();break;case 0x9:_0x3297ba['fromVersion']=_0x28b2c7['uint32']();break;case 0xa:_0x3297ba['isEmptyCurrent']=_0x28b2c7['bool']();break;default:_0x28b2c7['skipType'](0x7&_0x574a3d,_0x3028cf);}}return _0x3297ba;},_0xa1b096['decodeDelimited']=function(_0xff5ace){return _0xff5ace instanceof _0x1f0e29||(_0xff5ace=new _0x1f0e29(_0xff5ace)),this['decode'](_0xff5ace,_0xff5ace['uint32']());},_0xa1b096['verify']=function(_0x2bc8a2,_0xeef27e){return'object'!=typeof _0x2bc8a2||null===_0x2bc8a2?'object\x20expected':(void 0x0===_0xeef27e&&(_0xeef27e=0x0),_0xeef27e>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x2bc8a2['revisionId']&&Object['hasOwnProperty']['call'](_0x2bc8a2,'revisionId')&&!_0x3bb2e6['isString'](_0x2bc8a2['revisionId'])?'revisionId:\x20string\x20expected':null!=_0x2bc8a2['name']&&Object['hasOwnProperty']['call'](_0x2bc8a2,'name')&&!_0x3bb2e6['isString'](_0x2bc8a2['name'])?'name:\x20string\x20expected':null!=_0x2bc8a2['creatorId']&&Object['hasOwnProperty']['call'](_0x2bc8a2,'creatorId')&&!_0x3bb2e6['isString'](_0x2bc8a2['creatorId'])?'creatorId:\x20string\x20expected':null!=_0x2bc8a2['authorsIds']&&Object['hasOwnProperty']['call'](_0x2bc8a2,'authorsIds')&&!_0x3bb2e6['isString'](_0x2bc8a2['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0x2bc8a2['diffData']&&Object['hasOwnProperty']['call'](_0x2bc8a2,'diffData')&&!_0x3bb2e6['isString'](_0x2bc8a2['diffData'])?'diffData:\x20string\x20expected':null!=_0x2bc8a2['createdAt']&&Object['hasOwnProperty']['call'](_0x2bc8a2,'createdAt')&&!_0x3bb2e6['isString'](_0x2bc8a2['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x2bc8a2['attributes']&&Object['hasOwnProperty']['call'](_0x2bc8a2,'attributes')&&!_0x3bb2e6['isString'](_0x2bc8a2['attributes'])?'attributes:\x20string\x20expected':null!=_0x2bc8a2['toVersion']&&Object['hasOwnProperty']['call'](_0x2bc8a2,'toVersion')&&!_0x3bb2e6['isInteger'](_0x2bc8a2['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0x2bc8a2['fromVersion']&&Object['hasOwnProperty']['call'](_0x2bc8a2,'fromVersion')&&!_0x3bb2e6['isInteger'](_0x2bc8a2['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0x2bc8a2['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x2bc8a2,'isEmptyCurrent')&&'boolean'!=typeof _0x2bc8a2['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null);},_0xa1b096['fromObject']=function(_0x362153,_0x2115ce){if(_0x362153 instanceof _0x34d3e2['RevisionDescriptor'])return _0x362153;if(!_0x3bb2e6['isObject'](_0x362153))throw TypeError('.RevisionDescriptor:\x20object\x20expected');if(void 0x0===_0x2115ce&&(_0x2115ce=0x0),_0x2115ce>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x559987=new _0x34d3e2['RevisionDescriptor']();return null!=_0x362153['revisionId']&&(_0x559987['revisionId']=String(_0x362153['revisionId'])),null!=_0x362153['name']&&(_0x559987['name']=String(_0x362153['name'])),null!=_0x362153['creatorId']&&(_0x559987['creatorId']=String(_0x362153['creatorId'])),null!=_0x362153['authorsIds']&&(_0x559987['authorsIds']=String(_0x362153['authorsIds'])),null!=_0x362153['diffData']&&(_0x559987['diffData']=String(_0x362153['diffData'])),null!=_0x362153['createdAt']&&(_0x559987['createdAt']=String(_0x362153['createdAt'])),null!=_0x362153['attributes']&&(_0x559987['attributes']=String(_0x362153['attributes'])),null!=_0x362153['toVersion']&&(_0x559987['toVersion']=_0x362153['toVersion']>>>0x0),null!=_0x362153['fromVersion']&&(_0x559987['fromVersion']=_0x362153['fromVersion']>>>0x0),null!=_0x362153['isEmptyCurrent']&&(_0x559987['isEmptyCurrent']=Boolean(_0x362153['isEmptyCurrent'])),_0x559987;},_0xa1b096['toObject']=function(_0x2425d0,_0xb4d52d,_0x520da1){if(_0xb4d52d||(_0xb4d52d={}),void 0x0===_0x520da1&&(_0x520da1=0x0),_0x520da1>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x16915e={};return _0xb4d52d['defaults']&&(_0x16915e['revisionId']='',_0x16915e['name']='',_0x16915e['creatorId']='',_0x16915e['authorsIds']='',_0x16915e['diffData']='',_0x16915e['createdAt']='',_0x16915e['attributes']='',_0x16915e['toVersion']=0x0,_0x16915e['fromVersion']=0x0,_0x16915e['isEmptyCurrent']=!0x1),null!=_0x2425d0['revisionId']&&Object['hasOwnProperty']['call'](_0x2425d0,'revisionId')&&(_0x16915e['revisionId']=_0x2425d0['revisionId']),null!=_0x2425d0['name']&&Object['hasOwnProperty']['call'](_0x2425d0,'name')&&(_0x16915e['name']=_0x2425d0['name']),null!=_0x2425d0['creatorId']&&Object['hasOwnProperty']['call'](_0x2425d0,'creatorId')&&(_0x16915e['creatorId']=_0x2425d0['creatorId']),null!=_0x2425d0['authorsIds']&&Object['hasOwnProperty']['call'](_0x2425d0,'authorsIds')&&(_0x16915e['authorsIds']=_0x2425d0['authorsIds']),null!=_0x2425d0['diffData']&&Object['hasOwnProperty']['call'](_0x2425d0,'diffData')&&(_0x16915e['diffData']=_0x2425d0['diffData']),null!=_0x2425d0['createdAt']&&Object['hasOwnProperty']['call'](_0x2425d0,'createdAt')&&(_0x16915e['createdAt']=_0x2425d0['createdAt']),null!=_0x2425d0['attributes']&&Object['hasOwnProperty']['call'](_0x2425d0,'attributes')&&(_0x16915e['attributes']=_0x2425d0['attributes']),null!=_0x2425d0['toVersion']&&Object['hasOwnProperty']['call'](_0x2425d0,'toVersion')&&(_0x16915e['toVersion']=_0x2425d0['toVersion']),null!=_0x2425d0['fromVersion']&&Object['hasOwnProperty']['call'](_0x2425d0,'fromVersion')&&(_0x16915e['fromVersion']=_0x2425d0['fromVersion']),null!=_0x2425d0['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x2425d0,'isEmptyCurrent')&&(_0x16915e['isEmptyCurrent']=_0x2425d0['isEmptyCurrent']),_0x16915e;},_0xa1b096['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0xa1b096['getTypeUrl']=function(_0x547921){return void 0x0===_0x547921&&(_0x547921='type.googleapis.com'),_0x547921+'/RevisionDescriptor';},_0xa1b096;}()),_0x34d3e2['IsEditorBundleUploadedResponse']=(function(){function _0x3eb553(_0x4d782e){if(_0x4d782e){for(var _0x10386e=Object['keys'](_0x4d782e),_0x40eaed=0x0;_0x40eaed<_0x10386e['length'];++_0x40eaed)null!=_0x4d782e[_0x10386e[_0x40eaed]]&&'__proto__'!==_0x10386e[_0x40eaed]&&(this[_0x10386e[_0x40eaed]]=_0x4d782e[_0x10386e[_0x40eaed]]);}}return _0x3eb553['prototype']['isUploaded']=!0x1,_0x3eb553['create']=function(_0x404237){return new _0x3eb553(_0x404237);},_0x3eb553['encode']=function(_0x4c6894,_0x4ef290,_0x37d246){if(_0x4ef290||(_0x4ef290=_0x51052a['create']()),void 0x0===_0x37d246&&(_0x37d246=0x0),_0x37d246>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x4c6894['isUploaded']&&Object['hasOwnProperty']['call'](_0x4c6894,'isUploaded')&&_0x4ef290['uint32'](0x8)['bool'](_0x4c6894['isUploaded']),_0x4ef290;},_0x3eb553['encodeDelimited']=function(_0x4d96d8,_0xc9e3f0){return this['encode'](_0x4d96d8,_0xc9e3f0)['ldelim']();},_0x3eb553['decode']=function(_0x227b99,_0x46f886,_0x2df49d,_0x3f260b){if(_0x227b99 instanceof _0x1f0e29||(_0x227b99=_0x1f0e29['create'](_0x227b99)),void 0x0===_0x3f260b&&(_0x3f260b=0x0),_0x3f260b>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x34f29a=void 0x0===_0x46f886?_0x227b99['len']:_0x227b99['pos']+_0x46f886,_0x359f5f=new _0x34d3e2['IsEditorBundleUploadedResponse']();_0x227b99['pos']<_0x34f29a;){var _0x989b13=_0x227b99['uint32']();if(_0x989b13===_0x2df49d)break;_0x989b13>>>0x3==0x1?_0x359f5f['isUploaded']=_0x227b99['bool']():_0x227b99['skipType'](0x7&_0x989b13,_0x3f260b);}return _0x359f5f;},_0x3eb553['decodeDelimited']=function(_0x100a36){return _0x100a36 instanceof _0x1f0e29||(_0x100a36=new _0x1f0e29(_0x100a36)),this['decode'](_0x100a36,_0x100a36['uint32']());},_0x3eb553['verify']=function(_0x58a13e,_0x2ed53b){return'object'!=typeof _0x58a13e||null===_0x58a13e?'object\x20expected':(void 0x0===_0x2ed53b&&(_0x2ed53b=0x0),_0x2ed53b>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x58a13e['isUploaded']&&Object['hasOwnProperty']['call'](_0x58a13e,'isUploaded')&&'boolean'!=typeof _0x58a13e['isUploaded']?'isUploaded:\x20boolean\x20expected':null);},_0x3eb553['fromObject']=function(_0x2d440a,_0x4ab728){if(_0x2d440a instanceof _0x34d3e2['IsEditorBundleUploadedResponse'])return _0x2d440a;if(!_0x3bb2e6['isObject'](_0x2d440a))throw TypeError('.IsEditorBundleUploadedResponse:\x20object\x20expected');if(void 0x0===_0x4ab728&&(_0x4ab728=0x0),_0x4ab728>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x5c4dd8=new _0x34d3e2['IsEditorBundleUploadedResponse']();return null!=_0x2d440a['isUploaded']&&(_0x5c4dd8['isUploaded']=Boolean(_0x2d440a['isUploaded'])),_0x5c4dd8;},_0x3eb553['toObject']=function(_0x4df5cf,_0x52ccfe,_0x24b42e){if(_0x52ccfe||(_0x52ccfe={}),void 0x0===_0x24b42e&&(_0x24b42e=0x0),_0x24b42e>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x585ca8={};return _0x52ccfe['defaults']&&(_0x585ca8['isUploaded']=!0x1),null!=_0x4df5cf['isUploaded']&&Object['hasOwnProperty']['call'](_0x4df5cf,'isUploaded')&&(_0x585ca8['isUploaded']=_0x4df5cf['isUploaded']),_0x585ca8;},_0x3eb553['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x3eb553['getTypeUrl']=function(_0x354a8a){return void 0x0===_0x354a8a&&(_0x354a8a='type.googleapis.com'),_0x354a8a+'/IsEditorBundleUploadedResponse';},_0x3eb553;}()),_0x34d3e2['IsEditorBundleUploadedMessage']=(function(){function _0x493c2c(_0x3be0ce){if(_0x3be0ce){for(var _0x3a8c03=Object['keys'](_0x3be0ce),_0x3141f4=0x0;_0x3141f4<_0x3a8c03['length'];++_0x3141f4)null!=_0x3be0ce[_0x3a8c03[_0x3141f4]]&&'__proto__'!==_0x3a8c03[_0x3141f4]&&(this[_0x3a8c03[_0x3141f4]]=_0x3be0ce[_0x3a8c03[_0x3141f4]]);}}return _0x493c2c['prototype']['bundleVersion']='',_0x493c2c['create']=function(_0xb5d41f){return new _0x493c2c(_0xb5d41f);},_0x493c2c['encode']=function(_0x51cc7f,_0x476da2,_0x26fbb3){if(_0x476da2||(_0x476da2=_0x51052a['create']()),void 0x0===_0x26fbb3&&(_0x26fbb3=0x0),_0x26fbb3>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x51cc7f['bundleVersion']&&Object['hasOwnProperty']['call'](_0x51cc7f,'bundleVersion')&&_0x476da2['uint32'](0xa)['string'](_0x51cc7f['bundleVersion']),_0x476da2;},_0x493c2c['encodeDelimited']=function(_0x2bbeb2,_0x5a9b86){return this['encode'](_0x2bbeb2,_0x5a9b86)['ldelim']();},_0x493c2c['decode']=function(_0xcbf681,_0x5aa35f,_0x28787f,_0x31e454){if(_0xcbf681 instanceof _0x1f0e29||(_0xcbf681=_0x1f0e29['create'](_0xcbf681)),void 0x0===_0x31e454&&(_0x31e454=0x0),_0x31e454>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x1e7994=void 0x0===_0x5aa35f?_0xcbf681['len']:_0xcbf681['pos']+_0x5aa35f,_0x107989=new _0x34d3e2['IsEditorBundleUploadedMessage']();_0xcbf681['pos']<_0x1e7994;){var _0x22c98e=_0xcbf681['uint32']();if(_0x22c98e===_0x28787f)break;_0x22c98e>>>0x3==0x1?_0x107989['bundleVersion']=_0xcbf681['string']():_0xcbf681['skipType'](0x7&_0x22c98e,_0x31e454);}return _0x107989;},_0x493c2c['decodeDelimited']=function(_0x1759cc){return _0x1759cc instanceof _0x1f0e29||(_0x1759cc=new _0x1f0e29(_0x1759cc)),this['decode'](_0x1759cc,_0x1759cc['uint32']());},_0x493c2c['verify']=function(_0x2d3133,_0x37ef02){return'object'!=typeof _0x2d3133||null===_0x2d3133?'object\x20expected':(void 0x0===_0x37ef02&&(_0x37ef02=0x0),_0x37ef02>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x2d3133['bundleVersion']&&Object['hasOwnProperty']['call'](_0x2d3133,'bundleVersion')&&!_0x3bb2e6['isString'](_0x2d3133['bundleVersion'])?'bundleVersion:\x20string\x20expected':null);},_0x493c2c['fromObject']=function(_0x29cb99,_0x126fd9){if(_0x29cb99 instanceof _0x34d3e2['IsEditorBundleUploadedMessage'])return _0x29cb99;if(!_0x3bb2e6['isObject'](_0x29cb99))throw TypeError('.IsEditorBundleUploadedMessage:\x20object\x20expected');if(void 0x0===_0x126fd9&&(_0x126fd9=0x0),_0x126fd9>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x4a8608=new _0x34d3e2['IsEditorBundleUploadedMessage']();return null!=_0x29cb99['bundleVersion']&&(_0x4a8608['bundleVersion']=String(_0x29cb99['bundleVersion'])),_0x4a8608;},_0x493c2c['toObject']=function(_0x1c558f,_0x22ecca,_0xd669ba){if(_0x22ecca||(_0x22ecca={}),void 0x0===_0xd669ba&&(_0xd669ba=0x0),_0xd669ba>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0xadea1d={};return _0x22ecca['defaults']&&(_0xadea1d['bundleVersion']=''),null!=_0x1c558f['bundleVersion']&&Object['hasOwnProperty']['call'](_0x1c558f,'bundleVersion')&&(_0xadea1d['bundleVersion']=_0x1c558f['bundleVersion']),_0xadea1d;},_0x493c2c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x493c2c['getTypeUrl']=function(_0x5cdc86){return void 0x0===_0x5cdc86&&(_0x5cdc86='type.googleapis.com'),_0x5cdc86+'/IsEditorBundleUploadedMessage';},_0x493c2c;}()),_0x34d3e2['KeyValueDescriptor']=(function(){function _0x5be6f7(_0x37dcff){if(_0x37dcff){for(var _0x452159=Object['keys'](_0x37dcff),_0x3e7662=0x0;_0x3e7662<_0x452159['length'];++_0x3e7662)null!=_0x37dcff[_0x452159[_0x3e7662]]&&'__proto__'!==_0x452159[_0x3e7662]&&(this[_0x452159[_0x3e7662]]=_0x37dcff[_0x452159[_0x3e7662]]);}}return _0x5be6f7['prototype']['key']='',_0x5be6f7['prototype']['value']='',_0x5be6f7['create']=function(_0x4a0bcd){return new _0x5be6f7(_0x4a0bcd);},_0x5be6f7['encode']=function(_0xff8e63,_0x2ac6b8,_0x3fed24){if(_0x2ac6b8||(_0x2ac6b8=_0x51052a['create']()),void 0x0===_0x3fed24&&(_0x3fed24=0x0),_0x3fed24>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0xff8e63['key']&&Object['hasOwnProperty']['call'](_0xff8e63,'key')&&_0x2ac6b8['uint32'](0xa)['string'](_0xff8e63['key']),null!=_0xff8e63['value']&&Object['hasOwnProperty']['call'](_0xff8e63,'value')&&_0x2ac6b8['uint32'](0x12)['string'](_0xff8e63['value']),_0x2ac6b8;},_0x5be6f7['encodeDelimited']=function(_0x560b70,_0x207c25){return this['encode'](_0x560b70,_0x207c25)['ldelim']();},_0x5be6f7['decode']=function(_0xed608a,_0x2485e0,_0x544085,_0x2b509d){if(_0xed608a instanceof _0x1f0e29||(_0xed608a=_0x1f0e29['create'](_0xed608a)),void 0x0===_0x2b509d&&(_0x2b509d=0x0),_0x2b509d>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x1533ac=void 0x0===_0x2485e0?_0xed608a['len']:_0xed608a['pos']+_0x2485e0,_0x5f4e62=new _0x34d3e2['KeyValueDescriptor']();_0xed608a['pos']<_0x1533ac;){var _0x21efe6=_0xed608a['uint32']();if(_0x21efe6===_0x544085)break;switch(_0x21efe6>>>0x3){case 0x1:_0x5f4e62['key']=_0xed608a['string']();break;case 0x2:_0x5f4e62['value']=_0xed608a['string']();break;default:_0xed608a['skipType'](0x7&_0x21efe6,_0x2b509d);}}return _0x5f4e62;},_0x5be6f7['decodeDelimited']=function(_0x30a96b){return _0x30a96b instanceof _0x1f0e29||(_0x30a96b=new _0x1f0e29(_0x30a96b)),this['decode'](_0x30a96b,_0x30a96b['uint32']());},_0x5be6f7['verify']=function(_0x45b516,_0x36949e){return'object'!=typeof _0x45b516||null===_0x45b516?'object\x20expected':(void 0x0===_0x36949e&&(_0x36949e=0x0),_0x36949e>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x45b516['key']&&Object['hasOwnProperty']['call'](_0x45b516,'key')&&!_0x3bb2e6['isString'](_0x45b516['key'])?'key:\x20string\x20expected':null!=_0x45b516['value']&&Object['hasOwnProperty']['call'](_0x45b516,'value')&&!_0x3bb2e6['isString'](_0x45b516['value'])?'value:\x20string\x20expected':null);},_0x5be6f7['fromObject']=function(_0x42a406,_0x2e94bc){if(_0x42a406 instanceof _0x34d3e2['KeyValueDescriptor'])return _0x42a406;if(!_0x3bb2e6['isObject'](_0x42a406))throw TypeError('.KeyValueDescriptor:\x20object\x20expected');if(void 0x0===_0x2e94bc&&(_0x2e94bc=0x0),_0x2e94bc>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x193666=new _0x34d3e2['KeyValueDescriptor']();return null!=_0x42a406['key']&&(_0x193666['key']=String(_0x42a406['key'])),null!=_0x42a406['value']&&(_0x193666['value']=String(_0x42a406['value'])),_0x193666;},_0x5be6f7['toObject']=function(_0x1fea4a,_0x512911,_0x1a950b){if(_0x512911||(_0x512911={}),void 0x0===_0x1a950b&&(_0x1a950b=0x0),_0x1a950b>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x9fa954={};return _0x512911['defaults']&&(_0x9fa954['key']='',_0x9fa954['value']=''),null!=_0x1fea4a['key']&&Object['hasOwnProperty']['call'](_0x1fea4a,'key')&&(_0x9fa954['key']=_0x1fea4a['key']),null!=_0x1fea4a['value']&&Object['hasOwnProperty']['call'](_0x1fea4a,'value')&&(_0x9fa954['value']=_0x1fea4a['value']),_0x9fa954;},_0x5be6f7['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x5be6f7['getTypeUrl']=function(_0x232fee){return void 0x0===_0x232fee&&(_0x232fee='type.googleapis.com'),_0x232fee+'/KeyValueDescriptor';},_0x5be6f7;}()),_0x34d3e2['CommentsV2GetDocumentThreadsResponse']=(function(){function _0x17451e(_0x3f3d62){if(this['threads']=[],this['threadsV2']=[],_0x3f3d62){for(var _0x153828=Object['keys'](_0x3f3d62),_0x4c7aec=0x0;_0x4c7aec<_0x153828['length'];++_0x4c7aec)null!=_0x3f3d62[_0x153828[_0x4c7aec]]&&'__proto__'!==_0x153828[_0x4c7aec]&&(this[_0x153828[_0x4c7aec]]=_0x3f3d62[_0x153828[_0x4c7aec]]);}}return _0x17451e['prototype']['threads']=_0x3bb2e6['emptyArray'],_0x17451e['prototype']['threadsV2']=_0x3bb2e6['emptyArray'],_0x17451e['create']=function(_0x10144c){return new _0x17451e(_0x10144c);},_0x17451e['encode']=function(_0x35ca7d,_0x54fbf2,_0x3c68da){if(_0x54fbf2||(_0x54fbf2=_0x51052a['create']()),void 0x0===_0x3c68da&&(_0x3c68da=0x0),_0x3c68da>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x35ca7d['threads']&&_0x35ca7d['threads']['length']){for(var _0x87384b=0x0;_0x87384b<_0x35ca7d['threads']['length'];++_0x87384b)_0x54fbf2['uint32'](0xa)['string'](_0x35ca7d['threads'][_0x87384b]);}if(null!=_0x35ca7d['threadsV2']&&_0x35ca7d['threadsV2']['length']){for(_0x87384b=0x0;_0x87384b<_0x35ca7d['threadsV2']['length'];++_0x87384b)_0x34d3e2['CommentsThreadDescriptor']['encode'](_0x35ca7d['threadsV2'][_0x87384b],_0x54fbf2['uint32'](0x12)['fork'](),_0x3c68da+0x1)['ldelim']();}return _0x54fbf2;},_0x17451e['encodeDelimited']=function(_0x4d783b,_0x1e6437){return this['encode'](_0x4d783b,_0x1e6437)['ldelim']();},_0x17451e['decode']=function(_0x1fd11b,_0x1e344c,_0x2ec976,_0xb174cb){if(_0x1fd11b instanceof _0x1f0e29||(_0x1fd11b=_0x1f0e29['create'](_0x1fd11b)),void 0x0===_0xb174cb&&(_0xb174cb=0x0),_0xb174cb>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x14d02b=void 0x0===_0x1e344c?_0x1fd11b['len']:_0x1fd11b['pos']+_0x1e344c,_0x30e7c6=new _0x34d3e2['CommentsV2GetDocumentThreadsResponse']();_0x1fd11b['pos']<_0x14d02b;){var _0x2bd690=_0x1fd11b['uint32']();if(_0x2bd690===_0x2ec976)break;switch(_0x2bd690>>>0x3){case 0x1:_0x30e7c6['threads']&&_0x30e7c6['threads']['length']||(_0x30e7c6['threads']=[]),_0x30e7c6['threads']['push'](_0x1fd11b['string']());break;case 0x2:_0x30e7c6['threadsV2']&&_0x30e7c6['threadsV2']['length']||(_0x30e7c6['threadsV2']=[]),_0x30e7c6['threadsV2']['push'](_0x34d3e2['CommentsThreadDescriptor']['decode'](_0x1fd11b,_0x1fd11b['uint32'](),void 0x0,_0xb174cb+0x1));break;default:_0x1fd11b['skipType'](0x7&_0x2bd690,_0xb174cb);}}return _0x30e7c6;},_0x17451e['decodeDelimited']=function(_0x4c7ab1){return _0x4c7ab1 instanceof _0x1f0e29||(_0x4c7ab1=new _0x1f0e29(_0x4c7ab1)),this['decode'](_0x4c7ab1,_0x4c7ab1['uint32']());},_0x17451e['verify']=function(_0x33f6ba,_0x55d2c9){if('object'!=typeof _0x33f6ba||null===_0x33f6ba)return'object\x20expected';if(void 0x0===_0x55d2c9&&(_0x55d2c9=0x0),_0x55d2c9>_0x3bb2e6['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x33f6ba['threads']&&Object['hasOwnProperty']['call'](_0x33f6ba,'threads')){if(!Array['isArray'](_0x33f6ba['threads']))return'threads:\x20array\x20expected';for(var _0x3ee96b=0x0;_0x3ee96b<_0x33f6ba['threads']['length'];++_0x3ee96b)if(!_0x3bb2e6['isString'](_0x33f6ba['threads'][_0x3ee96b]))return'threads:\x20string[]\x20expected';}if(null!=_0x33f6ba['threadsV2']&&Object['hasOwnProperty']['call'](_0x33f6ba,'threadsV2')){if(!Array['isArray'](_0x33f6ba['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x3ee96b=0x0;_0x3ee96b<_0x33f6ba['threadsV2']['length'];++_0x3ee96b){var _0x2c31c4=_0x34d3e2['CommentsThreadDescriptor']['verify'](_0x33f6ba['threadsV2'][_0x3ee96b],_0x55d2c9+0x1);if(_0x2c31c4)return'threadsV2.'+_0x2c31c4;}}return null;},_0x17451e['fromObject']=function(_0xd1ccb6,_0x2cbc0a){if(_0xd1ccb6 instanceof _0x34d3e2['CommentsV2GetDocumentThreadsResponse'])return _0xd1ccb6;if(!_0x3bb2e6['isObject'](_0xd1ccb6))throw TypeError('.CommentsV2GetDocumentThreadsResponse:\x20object\x20expected');if(void 0x0===_0x2cbc0a&&(_0x2cbc0a=0x0),_0x2cbc0a>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x3ecbd4=new _0x34d3e2['CommentsV2GetDocumentThreadsResponse']();if(_0xd1ccb6['threads']){if(!Array['isArray'](_0xd1ccb6['threads']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threads:\x20array\x20expected');_0x3ecbd4['threads']=[];for(var _0x37d284=0x0;_0x37d284<_0xd1ccb6['threads']['length'];++_0x37d284)_0x3ecbd4['threads'][_0x37d284]=String(_0xd1ccb6['threads'][_0x37d284]);}if(_0xd1ccb6['threadsV2']){if(!Array['isArray'](_0xd1ccb6['threadsV2']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20array\x20expected');for(_0x3ecbd4['threadsV2']=[],_0x37d284=0x0;_0x37d284<_0xd1ccb6['threadsV2']['length'];++_0x37d284){if(!_0x3bb2e6['isObject'](_0xd1ccb6['threadsV2'][_0x37d284]))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20object\x20expected');_0x3ecbd4['threadsV2'][_0x37d284]=_0x34d3e2['CommentsThreadDescriptor']['fromObject'](_0xd1ccb6['threadsV2'][_0x37d284],_0x2cbc0a+0x1);}}return _0x3ecbd4;},_0x17451e['toObject']=function(_0x55aa44,_0x2f63b5,_0x38a0e5){if(_0x2f63b5||(_0x2f63b5={}),void 0x0===_0x38a0e5&&(_0x38a0e5=0x0),_0x38a0e5>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x3c9c74={};if((_0x2f63b5['arrays']||_0x2f63b5['defaults'])&&(_0x3c9c74['threads']=[],_0x3c9c74['threadsV2']=[]),_0x55aa44['threads']&&_0x55aa44['threads']['length']){_0x3c9c74['threads']=[];for(var _0xa38fbb=0x0;_0xa38fbb<_0x55aa44['threads']['length'];++_0xa38fbb)_0x3c9c74['threads'][_0xa38fbb]=_0x55aa44['threads'][_0xa38fbb];}if(_0x55aa44['threadsV2']&&_0x55aa44['threadsV2']['length']){for(_0x3c9c74['threadsV2']=[],_0xa38fbb=0x0;_0xa38fbb<_0x55aa44['threadsV2']['length'];++_0xa38fbb)_0x3c9c74['threadsV2'][_0xa38fbb]=_0x34d3e2['CommentsThreadDescriptor']['toObject'](_0x55aa44['threadsV2'][_0xa38fbb],_0x2f63b5,_0x38a0e5+0x1);}return _0x3c9c74;},_0x17451e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x17451e['getTypeUrl']=function(_0x4341e0){return void 0x0===_0x4341e0&&(_0x4341e0='type.googleapis.com'),_0x4341e0+'/CommentsV2GetDocumentThreadsResponse';},_0x17451e;}()),_0x34d3e2['CommentsV2GetCommentThreadResponse']=(function(){function _0x2315a4(_0x5c126f){if(this['comments']=[],this['commentsV2']=[],_0x5c126f){for(var _0x487ef3=Object['keys'](_0x5c126f),_0x496243=0x0;_0x496243<_0x487ef3['length'];++_0x496243)null!=_0x5c126f[_0x487ef3[_0x496243]]&&'__proto__'!==_0x487ef3[_0x496243]&&(this[_0x487ef3[_0x496243]]=_0x5c126f[_0x487ef3[_0x496243]]);}}return _0x2315a4['prototype']['commentThreadId']='',_0x2315a4['prototype']['comments']=_0x3bb2e6['emptyArray'],_0x2315a4['prototype']['commentsV2']=_0x3bb2e6['emptyArray'],_0x2315a4['prototype']['resolvedAt']='',_0x2315a4['prototype']['resolvedBy']='',_0x2315a4['prototype']['context']='',_0x2315a4['prototype']['createdAt']='',_0x2315a4['prototype']['deletedAt']='',_0x2315a4['prototype']['attributes']='',_0x2315a4['prototype']['unlinkedAt']='',_0x2315a4['create']=function(_0x17131c){return new _0x2315a4(_0x17131c);},_0x2315a4['encode']=function(_0x5b5328,_0x3e3806,_0x519bf0){if(_0x3e3806||(_0x3e3806=_0x51052a['create']()),void 0x0===_0x519bf0&&(_0x519bf0=0x0),_0x519bf0>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x5b5328['commentThreadId']&&Object['hasOwnProperty']['call'](_0x5b5328,'commentThreadId')&&_0x3e3806['uint32'](0xa)['string'](_0x5b5328['commentThreadId']),null!=_0x5b5328['comments']&&_0x5b5328['comments']['length']){for(var _0x40e830=0x0;_0x40e830<_0x5b5328['comments']['length'];++_0x40e830)_0x3e3806['uint32'](0x12)['string'](_0x5b5328['comments'][_0x40e830]);}if(null!=_0x5b5328['commentsV2']&&_0x5b5328['commentsV2']['length']){for(_0x40e830=0x0;_0x40e830<_0x5b5328['commentsV2']['length'];++_0x40e830)_0x34d3e2['CommentDescriptor']['encode'](_0x5b5328['commentsV2'][_0x40e830],_0x3e3806['uint32'](0x1a)['fork'](),_0x519bf0+0x1)['ldelim']();}return null!=_0x5b5328['resolvedAt']&&Object['hasOwnProperty']['call'](_0x5b5328,'resolvedAt')&&_0x3e3806['uint32'](0x22)['string'](_0x5b5328['resolvedAt']),null!=_0x5b5328['resolvedBy']&&Object['hasOwnProperty']['call'](_0x5b5328,'resolvedBy')&&_0x3e3806['uint32'](0x2a)['string'](_0x5b5328['resolvedBy']),null!=_0x5b5328['context']&&Object['hasOwnProperty']['call'](_0x5b5328,'context')&&_0x3e3806['uint32'](0x32)['string'](_0x5b5328['context']),null!=_0x5b5328['createdAt']&&Object['hasOwnProperty']['call'](_0x5b5328,'createdAt')&&_0x3e3806['uint32'](0x3a)['string'](_0x5b5328['createdAt']),null!=_0x5b5328['deletedAt']&&Object['hasOwnProperty']['call'](_0x5b5328,'deletedAt')&&_0x3e3806['uint32'](0x42)['string'](_0x5b5328['deletedAt']),null!=_0x5b5328['attributes']&&Object['hasOwnProperty']['call'](_0x5b5328,'attributes')&&_0x3e3806['uint32'](0x4a)['string'](_0x5b5328['attributes']),null!=_0x5b5328['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x5b5328,'unlinkedAt')&&_0x3e3806['uint32'](0x52)['string'](_0x5b5328['unlinkedAt']),_0x3e3806;},_0x2315a4['encodeDelimited']=function(_0x98b95c,_0x57dba9){return this['encode'](_0x98b95c,_0x57dba9)['ldelim']();},_0x2315a4['decode']=function(_0x360233,_0x11c934,_0x28bd4f,_0x4aea7c){if(_0x360233 instanceof _0x1f0e29||(_0x360233=_0x1f0e29['create'](_0x360233)),void 0x0===_0x4aea7c&&(_0x4aea7c=0x0),_0x4aea7c>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x50ac6a=void 0x0===_0x11c934?_0x360233['len']:_0x360233['pos']+_0x11c934,_0x57699c=new _0x34d3e2['CommentsV2GetCommentThreadResponse']();_0x360233['pos']<_0x50ac6a;){var _0xe26cbc=_0x360233['uint32']();if(_0xe26cbc===_0x28bd4f)break;switch(_0xe26cbc>>>0x3){case 0x1:_0x57699c['commentThreadId']=_0x360233['string']();break;case 0x2:_0x57699c['comments']&&_0x57699c['comments']['length']||(_0x57699c['comments']=[]),_0x57699c['comments']['push'](_0x360233['string']());break;case 0x3:_0x57699c['commentsV2']&&_0x57699c['commentsV2']['length']||(_0x57699c['commentsV2']=[]),_0x57699c['commentsV2']['push'](_0x34d3e2['CommentDescriptor']['decode'](_0x360233,_0x360233['uint32'](),void 0x0,_0x4aea7c+0x1));break;case 0x4:_0x57699c['resolvedAt']=_0x360233['string']();break;case 0x5:_0x57699c['resolvedBy']=_0x360233['string']();break;case 0x6:_0x57699c['context']=_0x360233['string']();break;case 0x7:_0x57699c['createdAt']=_0x360233['string']();break;case 0x8:_0x57699c['deletedAt']=_0x360233['string']();break;case 0x9:_0x57699c['attributes']=_0x360233['string']();break;case 0xa:_0x57699c['unlinkedAt']=_0x360233['string']();break;default:_0x360233['skipType'](0x7&_0xe26cbc,_0x4aea7c);}}return _0x57699c;},_0x2315a4['decodeDelimited']=function(_0x4286dc){return _0x4286dc instanceof _0x1f0e29||(_0x4286dc=new _0x1f0e29(_0x4286dc)),this['decode'](_0x4286dc,_0x4286dc['uint32']());},_0x2315a4['verify']=function(_0xd59482,_0x5e9d5b){if('object'!=typeof _0xd59482||null===_0xd59482)return'object\x20expected';if(void 0x0===_0x5e9d5b&&(_0x5e9d5b=0x0),_0x5e9d5b>_0x3bb2e6['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0xd59482['commentThreadId']&&Object['hasOwnProperty']['call'](_0xd59482,'commentThreadId')&&!_0x3bb2e6['isString'](_0xd59482['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0xd59482['comments']&&Object['hasOwnProperty']['call'](_0xd59482,'comments')){if(!Array['isArray'](_0xd59482['comments']))return'comments:\x20array\x20expected';for(var _0x2fd469=0x0;_0x2fd469<_0xd59482['comments']['length'];++_0x2fd469)if(!_0x3bb2e6['isString'](_0xd59482['comments'][_0x2fd469]))return'comments:\x20string[]\x20expected';}if(null!=_0xd59482['commentsV2']&&Object['hasOwnProperty']['call'](_0xd59482,'commentsV2')){if(!Array['isArray'](_0xd59482['commentsV2']))return'commentsV2:\x20array\x20expected';for(_0x2fd469=0x0;_0x2fd469<_0xd59482['commentsV2']['length'];++_0x2fd469){var _0x2a9620=_0x34d3e2['CommentDescriptor']['verify'](_0xd59482['commentsV2'][_0x2fd469],_0x5e9d5b+0x1);if(_0x2a9620)return'commentsV2.'+_0x2a9620;}}return null!=_0xd59482['resolvedAt']&&Object['hasOwnProperty']['call'](_0xd59482,'resolvedAt')&&!_0x3bb2e6['isString'](_0xd59482['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0xd59482['resolvedBy']&&Object['hasOwnProperty']['call'](_0xd59482,'resolvedBy')&&!_0x3bb2e6['isString'](_0xd59482['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0xd59482['context']&&Object['hasOwnProperty']['call'](_0xd59482,'context')&&!_0x3bb2e6['isString'](_0xd59482['context'])?'context:\x20string\x20expected':null!=_0xd59482['createdAt']&&Object['hasOwnProperty']['call'](_0xd59482,'createdAt')&&!_0x3bb2e6['isString'](_0xd59482['createdAt'])?'createdAt:\x20string\x20expected':null!=_0xd59482['deletedAt']&&Object['hasOwnProperty']['call'](_0xd59482,'deletedAt')&&!_0x3bb2e6['isString'](_0xd59482['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0xd59482['attributes']&&Object['hasOwnProperty']['call'](_0xd59482,'attributes')&&!_0x3bb2e6['isString'](_0xd59482['attributes'])?'attributes:\x20string\x20expected':null!=_0xd59482['unlinkedAt']&&Object['hasOwnProperty']['call'](_0xd59482,'unlinkedAt')&&!_0x3bb2e6['isString'](_0xd59482['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},_0x2315a4['fromObject']=function(_0x177496,_0x56779a){if(_0x177496 instanceof _0x34d3e2['CommentsV2GetCommentThreadResponse'])return _0x177496;if(!_0x3bb2e6['isObject'](_0x177496))throw TypeError('.CommentsV2GetCommentThreadResponse:\x20object\x20expected');if(void 0x0===_0x56779a&&(_0x56779a=0x0),_0x56779a>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x153fd3=new _0x34d3e2['CommentsV2GetCommentThreadResponse']();if(null!=_0x177496['commentThreadId']&&(_0x153fd3['commentThreadId']=String(_0x177496['commentThreadId'])),_0x177496['comments']){if(!Array['isArray'](_0x177496['comments']))throw TypeError('.CommentsV2GetCommentThreadResponse.comments:\x20array\x20expected');_0x153fd3['comments']=[];for(var _0x135cd1=0x0;_0x135cd1<_0x177496['comments']['length'];++_0x135cd1)_0x153fd3['comments'][_0x135cd1]=String(_0x177496['comments'][_0x135cd1]);}if(_0x177496['commentsV2']){if(!Array['isArray'](_0x177496['commentsV2']))throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20array\x20expected');for(_0x153fd3['commentsV2']=[],_0x135cd1=0x0;_0x135cd1<_0x177496['commentsV2']['length'];++_0x135cd1){if(!_0x3bb2e6['isObject'](_0x177496['commentsV2'][_0x135cd1]))throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20object\x20expected');_0x153fd3['commentsV2'][_0x135cd1]=_0x34d3e2['CommentDescriptor']['fromObject'](_0x177496['commentsV2'][_0x135cd1],_0x56779a+0x1);}}return null!=_0x177496['resolvedAt']&&(_0x153fd3['resolvedAt']=String(_0x177496['resolvedAt'])),null!=_0x177496['resolvedBy']&&(_0x153fd3['resolvedBy']=String(_0x177496['resolvedBy'])),null!=_0x177496['context']&&(_0x153fd3['context']=String(_0x177496['context'])),null!=_0x177496['createdAt']&&(_0x153fd3['createdAt']=String(_0x177496['createdAt'])),null!=_0x177496['deletedAt']&&(_0x153fd3['deletedAt']=String(_0x177496['deletedAt'])),null!=_0x177496['attributes']&&(_0x153fd3['attributes']=String(_0x177496['attributes'])),null!=_0x177496['unlinkedAt']&&(_0x153fd3['unlinkedAt']=String(_0x177496['unlinkedAt'])),_0x153fd3;},_0x2315a4['toObject']=function(_0x2c69fb,_0x1944a0,_0x500181){if(_0x1944a0||(_0x1944a0={}),void 0x0===_0x500181&&(_0x500181=0x0),_0x500181>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x3cba75={};if((_0x1944a0['arrays']||_0x1944a0['defaults'])&&(_0x3cba75['comments']=[],_0x3cba75['commentsV2']=[]),_0x1944a0['defaults']&&(_0x3cba75['commentThreadId']='',_0x3cba75['resolvedAt']='',_0x3cba75['resolvedBy']='',_0x3cba75['context']='',_0x3cba75['createdAt']='',_0x3cba75['deletedAt']='',_0x3cba75['attributes']='',_0x3cba75['unlinkedAt']=''),null!=_0x2c69fb['commentThreadId']&&Object['hasOwnProperty']['call'](_0x2c69fb,'commentThreadId')&&(_0x3cba75['commentThreadId']=_0x2c69fb['commentThreadId']),_0x2c69fb['comments']&&_0x2c69fb['comments']['length']){_0x3cba75['comments']=[];for(var _0x1be35f=0x0;_0x1be35f<_0x2c69fb['comments']['length'];++_0x1be35f)_0x3cba75['comments'][_0x1be35f]=_0x2c69fb['comments'][_0x1be35f];}if(_0x2c69fb['commentsV2']&&_0x2c69fb['commentsV2']['length']){for(_0x3cba75['commentsV2']=[],_0x1be35f=0x0;_0x1be35f<_0x2c69fb['commentsV2']['length'];++_0x1be35f)_0x3cba75['commentsV2'][_0x1be35f]=_0x34d3e2['CommentDescriptor']['toObject'](_0x2c69fb['commentsV2'][_0x1be35f],_0x1944a0,_0x500181+0x1);}return null!=_0x2c69fb['resolvedAt']&&Object['hasOwnProperty']['call'](_0x2c69fb,'resolvedAt')&&(_0x3cba75['resolvedAt']=_0x2c69fb['resolvedAt']),null!=_0x2c69fb['resolvedBy']&&Object['hasOwnProperty']['call'](_0x2c69fb,'resolvedBy')&&(_0x3cba75['resolvedBy']=_0x2c69fb['resolvedBy']),null!=_0x2c69fb['context']&&Object['hasOwnProperty']['call'](_0x2c69fb,'context')&&(_0x3cba75['context']=_0x2c69fb['context']),null!=_0x2c69fb['createdAt']&&Object['hasOwnProperty']['call'](_0x2c69fb,'createdAt')&&(_0x3cba75['createdAt']=_0x2c69fb['createdAt']),null!=_0x2c69fb['deletedAt']&&Object['hasOwnProperty']['call'](_0x2c69fb,'deletedAt')&&(_0x3cba75['deletedAt']=_0x2c69fb['deletedAt']),null!=_0x2c69fb['attributes']&&Object['hasOwnProperty']['call'](_0x2c69fb,'attributes')&&(_0x3cba75['attributes']=_0x2c69fb['attributes']),null!=_0x2c69fb['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x2c69fb,'unlinkedAt')&&(_0x3cba75['unlinkedAt']=_0x2c69fb['unlinkedAt']),_0x3cba75;},_0x2315a4['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x2315a4['getTypeUrl']=function(_0x4ef017){return void 0x0===_0x4ef017&&(_0x4ef017='type.googleapis.com'),_0x4ef017+'/CommentsV2GetCommentThreadResponse';},_0x2315a4;}()),_0x34d3e2['CommentsV2ConnectResponse']=(function(){function _0x425270(_0x3e66f4){if(this['threads']=[],this['threadsV2']=[],_0x3e66f4){for(var _0xba5c6a=Object['keys'](_0x3e66f4),_0x4b11ad=0x0;_0x4b11ad<_0xba5c6a['length'];++_0x4b11ad)null!=_0x3e66f4[_0xba5c6a[_0x4b11ad]]&&'__proto__'!==_0xba5c6a[_0x4b11ad]&&(this[_0xba5c6a[_0x4b11ad]]=_0x3e66f4[_0xba5c6a[_0x4b11ad]]);}}return _0x425270['prototype']['channel']='',_0x425270['prototype']['threads']=_0x3bb2e6['emptyArray'],_0x425270['prototype']['threadsV2']=_0x3bb2e6['emptyArray'],_0x425270['create']=function(_0x4733f7){return new _0x425270(_0x4733f7);},_0x425270['encode']=function(_0x4262cb,_0xbaa1f2,_0x3831ad){if(_0xbaa1f2||(_0xbaa1f2=_0x51052a['create']()),void 0x0===_0x3831ad&&(_0x3831ad=0x0),_0x3831ad>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x4262cb['channel']&&Object['hasOwnProperty']['call'](_0x4262cb,'channel')&&_0xbaa1f2['uint32'](0xa)['string'](_0x4262cb['channel']),null!=_0x4262cb['threads']&&_0x4262cb['threads']['length']){for(var _0x268c07=0x0;_0x268c07<_0x4262cb['threads']['length'];++_0x268c07)_0xbaa1f2['uint32'](0x12)['string'](_0x4262cb['threads'][_0x268c07]);}if(null!=_0x4262cb['threadsV2']&&_0x4262cb['threadsV2']['length']){for(_0x268c07=0x0;_0x268c07<_0x4262cb['threadsV2']['length'];++_0x268c07)_0x34d3e2['CommentsThreadDescriptor']['encode'](_0x4262cb['threadsV2'][_0x268c07],_0xbaa1f2['uint32'](0x1a)['fork'](),_0x3831ad+0x1)['ldelim']();}return _0xbaa1f2;},_0x425270['encodeDelimited']=function(_0x48c351,_0x17baae){return this['encode'](_0x48c351,_0x17baae)['ldelim']();},_0x425270['decode']=function(_0x532e4b,_0x1a6c8d,_0xe618e7,_0x35ecae){if(_0x532e4b instanceof _0x1f0e29||(_0x532e4b=_0x1f0e29['create'](_0x532e4b)),void 0x0===_0x35ecae&&(_0x35ecae=0x0),_0x35ecae>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0xa0cbc7=void 0x0===_0x1a6c8d?_0x532e4b['len']:_0x532e4b['pos']+_0x1a6c8d,_0x447182=new _0x34d3e2['CommentsV2ConnectResponse']();_0x532e4b['pos']<_0xa0cbc7;){var _0xb8f7b7=_0x532e4b['uint32']();if(_0xb8f7b7===_0xe618e7)break;switch(_0xb8f7b7>>>0x3){case 0x1:_0x447182['channel']=_0x532e4b['string']();break;case 0x2:_0x447182['threads']&&_0x447182['threads']['length']||(_0x447182['threads']=[]),_0x447182['threads']['push'](_0x532e4b['string']());break;case 0x3:_0x447182['threadsV2']&&_0x447182['threadsV2']['length']||(_0x447182['threadsV2']=[]),_0x447182['threadsV2']['push'](_0x34d3e2['CommentsThreadDescriptor']['decode'](_0x532e4b,_0x532e4b['uint32'](),void 0x0,_0x35ecae+0x1));break;default:_0x532e4b['skipType'](0x7&_0xb8f7b7,_0x35ecae);}}return _0x447182;},_0x425270['decodeDelimited']=function(_0x2111db){return _0x2111db instanceof _0x1f0e29||(_0x2111db=new _0x1f0e29(_0x2111db)),this['decode'](_0x2111db,_0x2111db['uint32']());},_0x425270['verify']=function(_0x3e209f,_0x4c31a2){if('object'!=typeof _0x3e209f||null===_0x3e209f)return'object\x20expected';if(void 0x0===_0x4c31a2&&(_0x4c31a2=0x0),_0x4c31a2>_0x3bb2e6['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x3e209f['channel']&&Object['hasOwnProperty']['call'](_0x3e209f,'channel')&&!_0x3bb2e6['isString'](_0x3e209f['channel']))return'channel:\x20string\x20expected';if(null!=_0x3e209f['threads']&&Object['hasOwnProperty']['call'](_0x3e209f,'threads')){if(!Array['isArray'](_0x3e209f['threads']))return'threads:\x20array\x20expected';for(var _0x52f423=0x0;_0x52f423<_0x3e209f['threads']['length'];++_0x52f423)if(!_0x3bb2e6['isString'](_0x3e209f['threads'][_0x52f423]))return'threads:\x20string[]\x20expected';}if(null!=_0x3e209f['threadsV2']&&Object['hasOwnProperty']['call'](_0x3e209f,'threadsV2')){if(!Array['isArray'](_0x3e209f['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x52f423=0x0;_0x52f423<_0x3e209f['threadsV2']['length'];++_0x52f423){var _0x11946c=_0x34d3e2['CommentsThreadDescriptor']['verify'](_0x3e209f['threadsV2'][_0x52f423],_0x4c31a2+0x1);if(_0x11946c)return'threadsV2.'+_0x11946c;}}return null;},_0x425270['fromObject']=function(_0x23ae9e,_0x155a7a){if(_0x23ae9e instanceof _0x34d3e2['CommentsV2ConnectResponse'])return _0x23ae9e;if(!_0x3bb2e6['isObject'](_0x23ae9e))throw TypeError('.CommentsV2ConnectResponse:\x20object\x20expected');if(void 0x0===_0x155a7a&&(_0x155a7a=0x0),_0x155a7a>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x89d68d=new _0x34d3e2['CommentsV2ConnectResponse']();if(null!=_0x23ae9e['channel']&&(_0x89d68d['channel']=String(_0x23ae9e['channel'])),_0x23ae9e['threads']){if(!Array['isArray'](_0x23ae9e['threads']))throw TypeError('.CommentsV2ConnectResponse.threads:\x20array\x20expected');_0x89d68d['threads']=[];for(var _0x4a7861=0x0;_0x4a7861<_0x23ae9e['threads']['length'];++_0x4a7861)_0x89d68d['threads'][_0x4a7861]=String(_0x23ae9e['threads'][_0x4a7861]);}if(_0x23ae9e['threadsV2']){if(!Array['isArray'](_0x23ae9e['threadsV2']))throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20array\x20expected');for(_0x89d68d['threadsV2']=[],_0x4a7861=0x0;_0x4a7861<_0x23ae9e['threadsV2']['length'];++_0x4a7861){if(!_0x3bb2e6['isObject'](_0x23ae9e['threadsV2'][_0x4a7861]))throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20object\x20expected');_0x89d68d['threadsV2'][_0x4a7861]=_0x34d3e2['CommentsThreadDescriptor']['fromObject'](_0x23ae9e['threadsV2'][_0x4a7861],_0x155a7a+0x1);}}return _0x89d68d;},_0x425270['toObject']=function(_0x38b77f,_0x2fcb51,_0x5f2e5b){if(_0x2fcb51||(_0x2fcb51={}),void 0x0===_0x5f2e5b&&(_0x5f2e5b=0x0),_0x5f2e5b>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x79ecfb={};if((_0x2fcb51['arrays']||_0x2fcb51['defaults'])&&(_0x79ecfb['threads']=[],_0x79ecfb['threadsV2']=[]),_0x2fcb51['defaults']&&(_0x79ecfb['channel']=''),null!=_0x38b77f['channel']&&Object['hasOwnProperty']['call'](_0x38b77f,'channel')&&(_0x79ecfb['channel']=_0x38b77f['channel']),_0x38b77f['threads']&&_0x38b77f['threads']['length']){_0x79ecfb['threads']=[];for(var _0x2e3490=0x0;_0x2e3490<_0x38b77f['threads']['length'];++_0x2e3490)_0x79ecfb['threads'][_0x2e3490]=_0x38b77f['threads'][_0x2e3490];}if(_0x38b77f['threadsV2']&&_0x38b77f['threadsV2']['length']){for(_0x79ecfb['threadsV2']=[],_0x2e3490=0x0;_0x2e3490<_0x38b77f['threadsV2']['length'];++_0x2e3490)_0x79ecfb['threadsV2'][_0x2e3490]=_0x34d3e2['CommentsThreadDescriptor']['toObject'](_0x38b77f['threadsV2'][_0x2e3490],_0x2fcb51,_0x5f2e5b+0x1);}return _0x79ecfb;},_0x425270['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x425270['getTypeUrl']=function(_0x54ca88){return void 0x0===_0x54ca88&&(_0x54ca88='type.googleapis.com'),_0x54ca88+'/CommentsV2ConnectResponse';},_0x425270;}()),_0x34d3e2['CommentsV2AddCommentResponse']=(function(){function _0x3bd759(_0x2e62cd){if(_0x2e62cd){for(var _0x39b4bb=Object['keys'](_0x2e62cd),_0x266841=0x0;_0x266841<_0x39b4bb['length'];++_0x266841)null!=_0x2e62cd[_0x39b4bb[_0x266841]]&&'__proto__'!==_0x39b4bb[_0x266841]&&(this[_0x39b4bb[_0x266841]]=_0x2e62cd[_0x39b4bb[_0x266841]]);}}return _0x3bd759['prototype']['commentThreadId']='',_0x3bd759['prototype']['commentId']='',_0x3bd759['prototype']['createdAt']='',_0x3bd759['create']=function(_0xde0887){return new _0x3bd759(_0xde0887);},_0x3bd759['encode']=function(_0x271146,_0x564e75,_0x2858c3){if(_0x564e75||(_0x564e75=_0x51052a['create']()),void 0x0===_0x2858c3&&(_0x2858c3=0x0),_0x2858c3>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x271146['commentThreadId']&&Object['hasOwnProperty']['call'](_0x271146,'commentThreadId')&&_0x564e75['uint32'](0xa)['string'](_0x271146['commentThreadId']),null!=_0x271146['commentId']&&Object['hasOwnProperty']['call'](_0x271146,'commentId')&&_0x564e75['uint32'](0x12)['string'](_0x271146['commentId']),null!=_0x271146['createdAt']&&Object['hasOwnProperty']['call'](_0x271146,'createdAt')&&_0x564e75['uint32'](0x1a)['string'](_0x271146['createdAt']),_0x564e75;},_0x3bd759['encodeDelimited']=function(_0x1958a9,_0xc21bfc){return this['encode'](_0x1958a9,_0xc21bfc)['ldelim']();},_0x3bd759['decode']=function(_0x208a6f,_0x5ef79f,_0x4f6d42,_0x201294){if(_0x208a6f instanceof _0x1f0e29||(_0x208a6f=_0x1f0e29['create'](_0x208a6f)),void 0x0===_0x201294&&(_0x201294=0x0),_0x201294>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x3b86a4=void 0x0===_0x5ef79f?_0x208a6f['len']:_0x208a6f['pos']+_0x5ef79f,_0x250974=new _0x34d3e2['CommentsV2AddCommentResponse']();_0x208a6f['pos']<_0x3b86a4;){var _0x5864b1=_0x208a6f['uint32']();if(_0x5864b1===_0x4f6d42)break;switch(_0x5864b1>>>0x3){case 0x1:_0x250974['commentThreadId']=_0x208a6f['string']();break;case 0x2:_0x250974['commentId']=_0x208a6f['string']();break;case 0x3:_0x250974['createdAt']=_0x208a6f['string']();break;default:_0x208a6f['skipType'](0x7&_0x5864b1,_0x201294);}}return _0x250974;},_0x3bd759['decodeDelimited']=function(_0x2d429c){return _0x2d429c instanceof _0x1f0e29||(_0x2d429c=new _0x1f0e29(_0x2d429c)),this['decode'](_0x2d429c,_0x2d429c['uint32']());},_0x3bd759['verify']=function(_0x32d1ae,_0x347797){return'object'!=typeof _0x32d1ae||null===_0x32d1ae?'object\x20expected':(void 0x0===_0x347797&&(_0x347797=0x0),_0x347797>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x32d1ae['commentThreadId']&&Object['hasOwnProperty']['call'](_0x32d1ae,'commentThreadId')&&!_0x3bb2e6['isString'](_0x32d1ae['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x32d1ae['commentId']&&Object['hasOwnProperty']['call'](_0x32d1ae,'commentId')&&!_0x3bb2e6['isString'](_0x32d1ae['commentId'])?'commentId:\x20string\x20expected':null!=_0x32d1ae['createdAt']&&Object['hasOwnProperty']['call'](_0x32d1ae,'createdAt')&&!_0x3bb2e6['isString'](_0x32d1ae['createdAt'])?'createdAt:\x20string\x20expected':null);},_0x3bd759['fromObject']=function(_0x3dc2f3,_0x2f5043){if(_0x3dc2f3 instanceof _0x34d3e2['CommentsV2AddCommentResponse'])return _0x3dc2f3;if(!_0x3bb2e6['isObject'](_0x3dc2f3))throw TypeError('.CommentsV2AddCommentResponse:\x20object\x20expected');if(void 0x0===_0x2f5043&&(_0x2f5043=0x0),_0x2f5043>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x56e4bc=new _0x34d3e2['CommentsV2AddCommentResponse']();return null!=_0x3dc2f3['commentThreadId']&&(_0x56e4bc['commentThreadId']=String(_0x3dc2f3['commentThreadId'])),null!=_0x3dc2f3['commentId']&&(_0x56e4bc['commentId']=String(_0x3dc2f3['commentId'])),null!=_0x3dc2f3['createdAt']&&(_0x56e4bc['createdAt']=String(_0x3dc2f3['createdAt'])),_0x56e4bc;},_0x3bd759['toObject']=function(_0x1c1a82,_0x1caf46,_0x11be1b){if(_0x1caf46||(_0x1caf46={}),void 0x0===_0x11be1b&&(_0x11be1b=0x0),_0x11be1b>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x326ce9={};return _0x1caf46['defaults']&&(_0x326ce9['commentThreadId']='',_0x326ce9['commentId']='',_0x326ce9['createdAt']=''),null!=_0x1c1a82['commentThreadId']&&Object['hasOwnProperty']['call'](_0x1c1a82,'commentThreadId')&&(_0x326ce9['commentThreadId']=_0x1c1a82['commentThreadId']),null!=_0x1c1a82['commentId']&&Object['hasOwnProperty']['call'](_0x1c1a82,'commentId')&&(_0x326ce9['commentId']=_0x1c1a82['commentId']),null!=_0x1c1a82['createdAt']&&Object['hasOwnProperty']['call'](_0x1c1a82,'createdAt')&&(_0x326ce9['createdAt']=_0x1c1a82['createdAt']),_0x326ce9;},_0x3bd759['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x3bd759['getTypeUrl']=function(_0x4ab083){return void 0x0===_0x4ab083&&(_0x4ab083='type.googleapis.com'),_0x4ab083+'/CommentsV2AddCommentResponse';},_0x3bd759;}()),_0x34d3e2['CommentsV2ResolveCommentThreadResponse']=(function(){function _0x8afba6(_0x512081){if(_0x512081){for(var _0x3b8a01=Object['keys'](_0x512081),_0x4d689f=0x0;_0x4d689f<_0x3b8a01['length'];++_0x4d689f)null!=_0x512081[_0x3b8a01[_0x4d689f]]&&'__proto__'!==_0x3b8a01[_0x4d689f]&&(this[_0x3b8a01[_0x4d689f]]=_0x512081[_0x3b8a01[_0x4d689f]]);}}return _0x8afba6['prototype']['commentThreadId']='',_0x8afba6['prototype']['documentId']='',_0x8afba6['prototype']['resolvedAt']='',_0x8afba6['prototype']['resolvedBy']='',_0x8afba6['create']=function(_0x3cf416){return new _0x8afba6(_0x3cf416);},_0x8afba6['encode']=function(_0x500ee6,_0x18b7ca,_0x26ff02){if(_0x18b7ca||(_0x18b7ca=_0x51052a['create']()),void 0x0===_0x26ff02&&(_0x26ff02=0x0),_0x26ff02>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x500ee6['commentThreadId']&&Object['hasOwnProperty']['call'](_0x500ee6,'commentThreadId')&&_0x18b7ca['uint32'](0xa)['string'](_0x500ee6['commentThreadId']),null!=_0x500ee6['documentId']&&Object['hasOwnProperty']['call'](_0x500ee6,'documentId')&&_0x18b7ca['uint32'](0x12)['string'](_0x500ee6['documentId']),null!=_0x500ee6['resolvedAt']&&Object['hasOwnProperty']['call'](_0x500ee6,'resolvedAt')&&_0x18b7ca['uint32'](0x1a)['string'](_0x500ee6['resolvedAt']),null!=_0x500ee6['resolvedBy']&&Object['hasOwnProperty']['call'](_0x500ee6,'resolvedBy')&&_0x18b7ca['uint32'](0x22)['string'](_0x500ee6['resolvedBy']),_0x18b7ca;},_0x8afba6['encodeDelimited']=function(_0x5bb5a1,_0x127275){return this['encode'](_0x5bb5a1,_0x127275)['ldelim']();},_0x8afba6['decode']=function(_0x153cb8,_0x4f7e1f,_0x4d6ed9,_0x4723d2){if(_0x153cb8 instanceof _0x1f0e29||(_0x153cb8=_0x1f0e29['create'](_0x153cb8)),void 0x0===_0x4723d2&&(_0x4723d2=0x0),_0x4723d2>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x48c259=void 0x0===_0x4f7e1f?_0x153cb8['len']:_0x153cb8['pos']+_0x4f7e1f,_0x7bb97b=new _0x34d3e2['CommentsV2ResolveCommentThreadResponse']();_0x153cb8['pos']<_0x48c259;){var _0x51f053=_0x153cb8['uint32']();if(_0x51f053===_0x4d6ed9)break;switch(_0x51f053>>>0x3){case 0x1:_0x7bb97b['commentThreadId']=_0x153cb8['string']();break;case 0x2:_0x7bb97b['documentId']=_0x153cb8['string']();break;case 0x3:_0x7bb97b['resolvedAt']=_0x153cb8['string']();break;case 0x4:_0x7bb97b['resolvedBy']=_0x153cb8['string']();break;default:_0x153cb8['skipType'](0x7&_0x51f053,_0x4723d2);}}return _0x7bb97b;},_0x8afba6['decodeDelimited']=function(_0x1c0533){return _0x1c0533 instanceof _0x1f0e29||(_0x1c0533=new _0x1f0e29(_0x1c0533)),this['decode'](_0x1c0533,_0x1c0533['uint32']());},_0x8afba6['verify']=function(_0x242037,_0x358d4c){return'object'!=typeof _0x242037||null===_0x242037?'object\x20expected':(void 0x0===_0x358d4c&&(_0x358d4c=0x0),_0x358d4c>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x242037['commentThreadId']&&Object['hasOwnProperty']['call'](_0x242037,'commentThreadId')&&!_0x3bb2e6['isString'](_0x242037['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x242037['documentId']&&Object['hasOwnProperty']['call'](_0x242037,'documentId')&&!_0x3bb2e6['isString'](_0x242037['documentId'])?'documentId:\x20string\x20expected':null!=_0x242037['resolvedAt']&&Object['hasOwnProperty']['call'](_0x242037,'resolvedAt')&&!_0x3bb2e6['isString'](_0x242037['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x242037['resolvedBy']&&Object['hasOwnProperty']['call'](_0x242037,'resolvedBy')&&!_0x3bb2e6['isString'](_0x242037['resolvedBy'])?'resolvedBy:\x20string\x20expected':null);},_0x8afba6['fromObject']=function(_0x29a1e9,_0x29f707){if(_0x29a1e9 instanceof _0x34d3e2['CommentsV2ResolveCommentThreadResponse'])return _0x29a1e9;if(!_0x3bb2e6['isObject'](_0x29a1e9))throw TypeError('.CommentsV2ResolveCommentThreadResponse:\x20object\x20expected');if(void 0x0===_0x29f707&&(_0x29f707=0x0),_0x29f707>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x29c8db=new _0x34d3e2['CommentsV2ResolveCommentThreadResponse']();return null!=_0x29a1e9['commentThreadId']&&(_0x29c8db['commentThreadId']=String(_0x29a1e9['commentThreadId'])),null!=_0x29a1e9['documentId']&&(_0x29c8db['documentId']=String(_0x29a1e9['documentId'])),null!=_0x29a1e9['resolvedAt']&&(_0x29c8db['resolvedAt']=String(_0x29a1e9['resolvedAt'])),null!=_0x29a1e9['resolvedBy']&&(_0x29c8db['resolvedBy']=String(_0x29a1e9['resolvedBy'])),_0x29c8db;},_0x8afba6['toObject']=function(_0x4f3b4f,_0x22d6d7,_0x442381){if(_0x22d6d7||(_0x22d6d7={}),void 0x0===_0x442381&&(_0x442381=0x0),_0x442381>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0xff72c3={};return _0x22d6d7['defaults']&&(_0xff72c3['commentThreadId']='',_0xff72c3['documentId']='',_0xff72c3['resolvedAt']='',_0xff72c3['resolvedBy']=''),null!=_0x4f3b4f['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4f3b4f,'commentThreadId')&&(_0xff72c3['commentThreadId']=_0x4f3b4f['commentThreadId']),null!=_0x4f3b4f['documentId']&&Object['hasOwnProperty']['call'](_0x4f3b4f,'documentId')&&(_0xff72c3['documentId']=_0x4f3b4f['documentId']),null!=_0x4f3b4f['resolvedAt']&&Object['hasOwnProperty']['call'](_0x4f3b4f,'resolvedAt')&&(_0xff72c3['resolvedAt']=_0x4f3b4f['resolvedAt']),null!=_0x4f3b4f['resolvedBy']&&Object['hasOwnProperty']['call'](_0x4f3b4f,'resolvedBy')&&(_0xff72c3['resolvedBy']=_0x4f3b4f['resolvedBy']),_0xff72c3;},_0x8afba6['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x8afba6['getTypeUrl']=function(_0x186962){return void 0x0===_0x186962&&(_0x186962='type.googleapis.com'),_0x186962+'/CommentsV2ResolveCommentThreadResponse';},_0x8afba6;}()),_0x34d3e2['CommentsV2AddCommentThreadResponse']=(function(){function _0x9b29b6(_0xd572da){if(this['comments']=[],_0xd572da){for(var _0x179080=Object['keys'](_0xd572da),_0x5b35d=0x0;_0x5b35d<_0x179080['length'];++_0x5b35d)null!=_0xd572da[_0x179080[_0x5b35d]]&&'__proto__'!==_0x179080[_0x5b35d]&&(this[_0x179080[_0x5b35d]]=_0xd572da[_0x179080[_0x5b35d]]);}}return _0x9b29b6['prototype']['commentThreadId']='',_0x9b29b6['prototype']['createdAt']='',_0x9b29b6['prototype']['comments']=_0x3bb2e6['emptyArray'],_0x9b29b6['create']=function(_0x1290f3){return new _0x9b29b6(_0x1290f3);},_0x9b29b6['encode']=function(_0x203d00,_0x1ee576,_0x58a8e4){if(_0x1ee576||(_0x1ee576=_0x51052a['create']()),void 0x0===_0x58a8e4&&(_0x58a8e4=0x0),_0x58a8e4>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x203d00['commentThreadId']&&Object['hasOwnProperty']['call'](_0x203d00,'commentThreadId')&&_0x1ee576['uint32'](0xa)['string'](_0x203d00['commentThreadId']),null!=_0x203d00['createdAt']&&Object['hasOwnProperty']['call'](_0x203d00,'createdAt')&&_0x1ee576['uint32'](0x12)['string'](_0x203d00['createdAt']),null!=_0x203d00['comments']&&_0x203d00['comments']['length']){for(var _0x3965c6=0x0;_0x3965c6<_0x203d00['comments']['length'];++_0x3965c6)_0x34d3e2['CommentThreadAddedCommentDescriptor']['encode'](_0x203d00['comments'][_0x3965c6],_0x1ee576['uint32'](0x1a)['fork'](),_0x58a8e4+0x1)['ldelim']();}return _0x1ee576;},_0x9b29b6['encodeDelimited']=function(_0x8f896d,_0x2d5ac7){return this['encode'](_0x8f896d,_0x2d5ac7)['ldelim']();},_0x9b29b6['decode']=function(_0x21da5a,_0x4f99a7,_0x4ee556,_0x25bb60){if(_0x21da5a instanceof _0x1f0e29||(_0x21da5a=_0x1f0e29['create'](_0x21da5a)),void 0x0===_0x25bb60&&(_0x25bb60=0x0),_0x25bb60>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x498ac2=void 0x0===_0x4f99a7?_0x21da5a['len']:_0x21da5a['pos']+_0x4f99a7,_0x597155=new _0x34d3e2['CommentsV2AddCommentThreadResponse']();_0x21da5a['pos']<_0x498ac2;){var _0x2bd656=_0x21da5a['uint32']();if(_0x2bd656===_0x4ee556)break;switch(_0x2bd656>>>0x3){case 0x1:_0x597155['commentThreadId']=_0x21da5a['string']();break;case 0x2:_0x597155['createdAt']=_0x21da5a['string']();break;case 0x3:_0x597155['comments']&&_0x597155['comments']['length']||(_0x597155['comments']=[]),_0x597155['comments']['push'](_0x34d3e2['CommentThreadAddedCommentDescriptor']['decode'](_0x21da5a,_0x21da5a['uint32'](),void 0x0,_0x25bb60+0x1));break;default:_0x21da5a['skipType'](0x7&_0x2bd656,_0x25bb60);}}return _0x597155;},_0x9b29b6['decodeDelimited']=function(_0x3ab732){return _0x3ab732 instanceof _0x1f0e29||(_0x3ab732=new _0x1f0e29(_0x3ab732)),this['decode'](_0x3ab732,_0x3ab732['uint32']());},_0x9b29b6['verify']=function(_0x4f39b8,_0x177c59){if('object'!=typeof _0x4f39b8||null===_0x4f39b8)return'object\x20expected';if(void 0x0===_0x177c59&&(_0x177c59=0x0),_0x177c59>_0x3bb2e6['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x4f39b8['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4f39b8,'commentThreadId')&&!_0x3bb2e6['isString'](_0x4f39b8['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x4f39b8['createdAt']&&Object['hasOwnProperty']['call'](_0x4f39b8,'createdAt')&&!_0x3bb2e6['isString'](_0x4f39b8['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x4f39b8['comments']&&Object['hasOwnProperty']['call'](_0x4f39b8,'comments')){if(!Array['isArray'](_0x4f39b8['comments']))return'comments:\x20array\x20expected';for(var _0x3dbabf=0x0;_0x3dbabf<_0x4f39b8['comments']['length'];++_0x3dbabf){var _0x8aa915=_0x34d3e2['CommentThreadAddedCommentDescriptor']['verify'](_0x4f39b8['comments'][_0x3dbabf],_0x177c59+0x1);if(_0x8aa915)return'comments.'+_0x8aa915;}}return null;},_0x9b29b6['fromObject']=function(_0x1622be,_0x34e26b){if(_0x1622be instanceof _0x34d3e2['CommentsV2AddCommentThreadResponse'])return _0x1622be;if(!_0x3bb2e6['isObject'](_0x1622be))throw TypeError('.CommentsV2AddCommentThreadResponse:\x20object\x20expected');if(void 0x0===_0x34e26b&&(_0x34e26b=0x0),_0x34e26b>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x4bd34d=new _0x34d3e2['CommentsV2AddCommentThreadResponse']();if(null!=_0x1622be['commentThreadId']&&(_0x4bd34d['commentThreadId']=String(_0x1622be['commentThreadId'])),null!=_0x1622be['createdAt']&&(_0x4bd34d['createdAt']=String(_0x1622be['createdAt'])),_0x1622be['comments']){if(!Array['isArray'](_0x1622be['comments']))throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20array\x20expected');_0x4bd34d['comments']=[];for(var _0x11d792=0x0;_0x11d792<_0x1622be['comments']['length'];++_0x11d792){if(!_0x3bb2e6['isObject'](_0x1622be['comments'][_0x11d792]))throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20object\x20expected');_0x4bd34d['comments'][_0x11d792]=_0x34d3e2['CommentThreadAddedCommentDescriptor']['fromObject'](_0x1622be['comments'][_0x11d792],_0x34e26b+0x1);}}return _0x4bd34d;},_0x9b29b6['toObject']=function(_0x369c89,_0x1db20d,_0x2fa1d8){if(_0x1db20d||(_0x1db20d={}),void 0x0===_0x2fa1d8&&(_0x2fa1d8=0x0),_0x2fa1d8>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x25cc92={};if((_0x1db20d['arrays']||_0x1db20d['defaults'])&&(_0x25cc92['comments']=[]),_0x1db20d['defaults']&&(_0x25cc92['commentThreadId']='',_0x25cc92['createdAt']=''),null!=_0x369c89['commentThreadId']&&Object['hasOwnProperty']['call'](_0x369c89,'commentThreadId')&&(_0x25cc92['commentThreadId']=_0x369c89['commentThreadId']),null!=_0x369c89['createdAt']&&Object['hasOwnProperty']['call'](_0x369c89,'createdAt')&&(_0x25cc92['createdAt']=_0x369c89['createdAt']),_0x369c89['comments']&&_0x369c89['comments']['length']){_0x25cc92['comments']=[];for(var _0x33d1d6=0x0;_0x33d1d6<_0x369c89['comments']['length'];++_0x33d1d6)_0x25cc92['comments'][_0x33d1d6]=_0x34d3e2['CommentThreadAddedCommentDescriptor']['toObject'](_0x369c89['comments'][_0x33d1d6],_0x1db20d,_0x2fa1d8+0x1);}return _0x25cc92;},_0x9b29b6['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x9b29b6['getTypeUrl']=function(_0x15ca2c){return void 0x0===_0x15ca2c&&(_0x15ca2c='type.googleapis.com'),_0x15ca2c+'/CommentsV2AddCommentThreadResponse';},_0x9b29b6;}()),_0x34d3e2['CommentsV2UpdateCommentMessage']=(function(){function _0x34d945(_0x1c2422){if(_0x1c2422){for(var _0x553822=Object['keys'](_0x1c2422),_0x515efe=0x0;_0x515efe<_0x553822['length'];++_0x515efe)null!=_0x1c2422[_0x553822[_0x515efe]]&&'__proto__'!==_0x553822[_0x515efe]&&(this[_0x553822[_0x515efe]]=_0x1c2422[_0x553822[_0x515efe]]);}}return _0x34d945['prototype']['commentThreadId']='',_0x34d945['prototype']['commentId']='',_0x34d945['prototype']['content']='',_0x34d945['prototype']['documentId']='',_0x34d945['prototype']['attributes']='',_0x34d945['prototype']['isAttributesUpdated']=!0x1,_0x34d945['prototype']['commentThread']=null,_0x34d945['create']=function(_0x44565c){return new _0x34d945(_0x44565c);},_0x34d945['encode']=function(_0x4d6f7b,_0x47c54d,_0x1f8a9c){if(_0x47c54d||(_0x47c54d=_0x51052a['create']()),void 0x0===_0x1f8a9c&&(_0x1f8a9c=0x0),_0x1f8a9c>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x4d6f7b['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4d6f7b,'commentThreadId')&&_0x47c54d['uint32'](0xa)['string'](_0x4d6f7b['commentThreadId']),null!=_0x4d6f7b['commentId']&&Object['hasOwnProperty']['call'](_0x4d6f7b,'commentId')&&_0x47c54d['uint32'](0x12)['string'](_0x4d6f7b['commentId']),null!=_0x4d6f7b['content']&&Object['hasOwnProperty']['call'](_0x4d6f7b,'content')&&_0x47c54d['uint32'](0x1a)['string'](_0x4d6f7b['content']),null!=_0x4d6f7b['documentId']&&Object['hasOwnProperty']['call'](_0x4d6f7b,'documentId')&&_0x47c54d['uint32'](0x22)['string'](_0x4d6f7b['documentId']),null!=_0x4d6f7b['attributes']&&Object['hasOwnProperty']['call'](_0x4d6f7b,'attributes')&&_0x47c54d['uint32'](0x2a)['string'](_0x4d6f7b['attributes']),null!=_0x4d6f7b['isAttributesUpdated']&&Object['hasOwnProperty']['call'](_0x4d6f7b,'isAttributesUpdated')&&_0x47c54d['uint32'](0x30)['bool'](_0x4d6f7b['isAttributesUpdated']),null!=_0x4d6f7b['commentThread']&&Object['hasOwnProperty']['call'](_0x4d6f7b,'commentThread')&&_0x34d3e2['CommentsThreadDescriptor']['encode'](_0x4d6f7b['commentThread'],_0x47c54d['uint32'](0x3a)['fork'](),_0x1f8a9c+0x1)['ldelim'](),_0x47c54d;},_0x34d945['encodeDelimited']=function(_0x2def8b,_0x538ea2){return this['encode'](_0x2def8b,_0x538ea2)['ldelim']();},_0x34d945['decode']=function(_0x25ff0d,_0x3b732e,_0x35e161,_0xe3bd23){if(_0x25ff0d instanceof _0x1f0e29||(_0x25ff0d=_0x1f0e29['create'](_0x25ff0d)),void 0x0===_0xe3bd23&&(_0xe3bd23=0x0),_0xe3bd23>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x231f61=void 0x0===_0x3b732e?_0x25ff0d['len']:_0x25ff0d['pos']+_0x3b732e,_0x49b9b0=new _0x34d3e2['CommentsV2UpdateCommentMessage']();_0x25ff0d['pos']<_0x231f61;){var _0xa8bcbf=_0x25ff0d['uint32']();if(_0xa8bcbf===_0x35e161)break;switch(_0xa8bcbf>>>0x3){case 0x1:_0x49b9b0['commentThreadId']=_0x25ff0d['string']();break;case 0x2:_0x49b9b0['commentId']=_0x25ff0d['string']();break;case 0x3:_0x49b9b0['content']=_0x25ff0d['string']();break;case 0x4:_0x49b9b0['documentId']=_0x25ff0d['string']();break;case 0x5:_0x49b9b0['attributes']=_0x25ff0d['string']();break;case 0x6:_0x49b9b0['isAttributesUpdated']=_0x25ff0d['bool']();break;case 0x7:_0x49b9b0['commentThread']=_0x34d3e2['CommentsThreadDescriptor']['decode'](_0x25ff0d,_0x25ff0d['uint32'](),void 0x0,_0xe3bd23+0x1);break;default:_0x25ff0d['skipType'](0x7&_0xa8bcbf,_0xe3bd23);}}return _0x49b9b0;},_0x34d945['decodeDelimited']=function(_0x1cf480){return _0x1cf480 instanceof _0x1f0e29||(_0x1cf480=new _0x1f0e29(_0x1cf480)),this['decode'](_0x1cf480,_0x1cf480['uint32']());},_0x34d945['verify']=function(_0x4238d5,_0x1e005e){if('object'!=typeof _0x4238d5||null===_0x4238d5)return'object\x20expected';if(void 0x0===_0x1e005e&&(_0x1e005e=0x0),_0x1e005e>_0x3bb2e6['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x4238d5['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4238d5,'commentThreadId')&&!_0x3bb2e6['isString'](_0x4238d5['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x4238d5['commentId']&&Object['hasOwnProperty']['call'](_0x4238d5,'commentId')&&!_0x3bb2e6['isString'](_0x4238d5['commentId']))return'commentId:\x20string\x20expected';if(null!=_0x4238d5['content']&&Object['hasOwnProperty']['call'](_0x4238d5,'content')&&!_0x3bb2e6['isString'](_0x4238d5['content']))return'content:\x20string\x20expected';if(null!=_0x4238d5['documentId']&&Object['hasOwnProperty']['call'](_0x4238d5,'documentId')&&!_0x3bb2e6['isString'](_0x4238d5['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x4238d5['attributes']&&Object['hasOwnProperty']['call'](_0x4238d5,'attributes')&&!_0x3bb2e6['isString'](_0x4238d5['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x4238d5['isAttributesUpdated']&&Object['hasOwnProperty']['call'](_0x4238d5,'isAttributesUpdated')&&'boolean'!=typeof _0x4238d5['isAttributesUpdated'])return'isAttributesUpdated:\x20boolean\x20expected';if(null!=_0x4238d5['commentThread']&&Object['hasOwnProperty']['call'](_0x4238d5,'commentThread')){var _0x524d89=_0x34d3e2['CommentsThreadDescriptor']['verify'](_0x4238d5['commentThread'],_0x1e005e+0x1);if(_0x524d89)return'commentThread.'+_0x524d89;}return null;},_0x34d945['fromObject']=function(_0xcbe75f,_0x564808){if(_0xcbe75f instanceof _0x34d3e2['CommentsV2UpdateCommentMessage'])return _0xcbe75f;if(!_0x3bb2e6['isObject'](_0xcbe75f))throw TypeError('.CommentsV2UpdateCommentMessage:\x20object\x20expected');if(void 0x0===_0x564808&&(_0x564808=0x0),_0x564808>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x9de9ca=new _0x34d3e2['CommentsV2UpdateCommentMessage']();if(null!=_0xcbe75f['commentThreadId']&&(_0x9de9ca['commentThreadId']=String(_0xcbe75f['commentThreadId'])),null!=_0xcbe75f['commentId']&&(_0x9de9ca['commentId']=String(_0xcbe75f['commentId'])),null!=_0xcbe75f['content']&&(_0x9de9ca['content']=String(_0xcbe75f['content'])),null!=_0xcbe75f['documentId']&&(_0x9de9ca['documentId']=String(_0xcbe75f['documentId'])),null!=_0xcbe75f['attributes']&&(_0x9de9ca['attributes']=String(_0xcbe75f['attributes'])),null!=_0xcbe75f['isAttributesUpdated']&&(_0x9de9ca['isAttributesUpdated']=Boolean(_0xcbe75f['isAttributesUpdated'])),null!=_0xcbe75f['commentThread']){if(!_0x3bb2e6['isObject'](_0xcbe75f['commentThread']))throw TypeError('.CommentsV2UpdateCommentMessage.commentThread:\x20object\x20expected');_0x9de9ca['commentThread']=_0x34d3e2['CommentsThreadDescriptor']['fromObject'](_0xcbe75f['commentThread'],_0x564808+0x1);}return _0x9de9ca;},_0x34d945['toObject']=function(_0x33b5e7,_0x3ce184,_0xdb30a1){if(_0x3ce184||(_0x3ce184={}),void 0x0===_0xdb30a1&&(_0xdb30a1=0x0),_0xdb30a1>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x355729={};return _0x3ce184['defaults']&&(_0x355729['commentThreadId']='',_0x355729['commentId']='',_0x355729['content']='',_0x355729['documentId']='',_0x355729['attributes']='',_0x355729['isAttributesUpdated']=!0x1,_0x355729['commentThread']=null),null!=_0x33b5e7['commentThreadId']&&Object['hasOwnProperty']['call'](_0x33b5e7,'commentThreadId')&&(_0x355729['commentThreadId']=_0x33b5e7['commentThreadId']),null!=_0x33b5e7['commentId']&&Object['hasOwnProperty']['call'](_0x33b5e7,'commentId')&&(_0x355729['commentId']=_0x33b5e7['commentId']),null!=_0x33b5e7['content']&&Object['hasOwnProperty']['call'](_0x33b5e7,'content')&&(_0x355729['content']=_0x33b5e7['content']),null!=_0x33b5e7['documentId']&&Object['hasOwnProperty']['call'](_0x33b5e7,'documentId')&&(_0x355729['documentId']=_0x33b5e7['documentId']),null!=_0x33b5e7['attributes']&&Object['hasOwnProperty']['call'](_0x33b5e7,'attributes')&&(_0x355729['attributes']=_0x33b5e7['attributes']),null!=_0x33b5e7['isAttributesUpdated']&&Object['hasOwnProperty']['call'](_0x33b5e7,'isAttributesUpdated')&&(_0x355729['isAttributesUpdated']=_0x33b5e7['isAttributesUpdated']),null!=_0x33b5e7['commentThread']&&Object['hasOwnProperty']['call'](_0x33b5e7,'commentThread')&&(_0x355729['commentThread']=_0x34d3e2['CommentsThreadDescriptor']['toObject'](_0x33b5e7['commentThread'],_0x3ce184,_0xdb30a1+0x1)),_0x355729;},_0x34d945['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x34d945['getTypeUrl']=function(_0x155585){return void 0x0===_0x155585&&(_0x155585='type.googleapis.com'),_0x155585+'/CommentsV2UpdateCommentMessage';},_0x34d945;}()),_0x34d3e2['CommentsV2RemoveCommentThreadMessage']=(function(){function _0xefdd8a(_0x2fc9fc){if(_0x2fc9fc){for(var _0x59ad57=Object['keys'](_0x2fc9fc),_0x40e05d=0x0;_0x40e05d<_0x59ad57['length'];++_0x40e05d)null!=_0x2fc9fc[_0x59ad57[_0x40e05d]]&&'__proto__'!==_0x59ad57[_0x40e05d]&&(this[_0x59ad57[_0x40e05d]]=_0x2fc9fc[_0x59ad57[_0x40e05d]]);}}return _0xefdd8a['prototype']['commentThreadId']='',_0xefdd8a['prototype']['documentId']='',_0xefdd8a['create']=function(_0x8bfcf){return new _0xefdd8a(_0x8bfcf);},_0xefdd8a['encode']=function(_0x52b728,_0x3c97bc,_0x3e76cc){if(_0x3c97bc||(_0x3c97bc=_0x51052a['create']()),void 0x0===_0x3e76cc&&(_0x3e76cc=0x0),_0x3e76cc>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x52b728['commentThreadId']&&Object['hasOwnProperty']['call'](_0x52b728,'commentThreadId')&&_0x3c97bc['uint32'](0xa)['string'](_0x52b728['commentThreadId']),null!=_0x52b728['documentId']&&Object['hasOwnProperty']['call'](_0x52b728,'documentId')&&_0x3c97bc['uint32'](0x12)['string'](_0x52b728['documentId']),_0x3c97bc;},_0xefdd8a['encodeDelimited']=function(_0x16f872,_0x5f2c82){return this['encode'](_0x16f872,_0x5f2c82)['ldelim']();},_0xefdd8a['decode']=function(_0x46b183,_0x140c22,_0x362a7d,_0x2cd8c6){if(_0x46b183 instanceof _0x1f0e29||(_0x46b183=_0x1f0e29['create'](_0x46b183)),void 0x0===_0x2cd8c6&&(_0x2cd8c6=0x0),_0x2cd8c6>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x619a64=void 0x0===_0x140c22?_0x46b183['len']:_0x46b183['pos']+_0x140c22,_0x3e2cf1=new _0x34d3e2['CommentsV2RemoveCommentThreadMessage']();_0x46b183['pos']<_0x619a64;){var _0xec0762=_0x46b183['uint32']();if(_0xec0762===_0x362a7d)break;switch(_0xec0762>>>0x3){case 0x1:_0x3e2cf1['commentThreadId']=_0x46b183['string']();break;case 0x2:_0x3e2cf1['documentId']=_0x46b183['string']();break;default:_0x46b183['skipType'](0x7&_0xec0762,_0x2cd8c6);}}return _0x3e2cf1;},_0xefdd8a['decodeDelimited']=function(_0x1a4cdc){return _0x1a4cdc instanceof _0x1f0e29||(_0x1a4cdc=new _0x1f0e29(_0x1a4cdc)),this['decode'](_0x1a4cdc,_0x1a4cdc['uint32']());},_0xefdd8a['verify']=function(_0x49bf3c,_0x41fc59){return'object'!=typeof _0x49bf3c||null===_0x49bf3c?'object\x20expected':(void 0x0===_0x41fc59&&(_0x41fc59=0x0),_0x41fc59>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x49bf3c['commentThreadId']&&Object['hasOwnProperty']['call'](_0x49bf3c,'commentThreadId')&&!_0x3bb2e6['isString'](_0x49bf3c['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x49bf3c['documentId']&&Object['hasOwnProperty']['call'](_0x49bf3c,'documentId')&&!_0x3bb2e6['isString'](_0x49bf3c['documentId'])?'documentId:\x20string\x20expected':null);},_0xefdd8a['fromObject']=function(_0x112588,_0x289980){if(_0x112588 instanceof _0x34d3e2['CommentsV2RemoveCommentThreadMessage'])return _0x112588;if(!_0x3bb2e6['isObject'](_0x112588))throw TypeError('.CommentsV2RemoveCommentThreadMessage:\x20object\x20expected');if(void 0x0===_0x289980&&(_0x289980=0x0),_0x289980>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x5eb6b4=new _0x34d3e2['CommentsV2RemoveCommentThreadMessage']();return null!=_0x112588['commentThreadId']&&(_0x5eb6b4['commentThreadId']=String(_0x112588['commentThreadId'])),null!=_0x112588['documentId']&&(_0x5eb6b4['documentId']=String(_0x112588['documentId'])),_0x5eb6b4;},_0xefdd8a['toObject']=function(_0xc6374c,_0x28a78a,_0x3d37b8){if(_0x28a78a||(_0x28a78a={}),void 0x0===_0x3d37b8&&(_0x3d37b8=0x0),_0x3d37b8>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x1b9f2e={};return _0x28a78a['defaults']&&(_0x1b9f2e['commentThreadId']='',_0x1b9f2e['documentId']=''),null!=_0xc6374c['commentThreadId']&&Object['hasOwnProperty']['call'](_0xc6374c,'commentThreadId')&&(_0x1b9f2e['commentThreadId']=_0xc6374c['commentThreadId']),null!=_0xc6374c['documentId']&&Object['hasOwnProperty']['call'](_0xc6374c,'documentId')&&(_0x1b9f2e['documentId']=_0xc6374c['documentId']),_0x1b9f2e;},_0xefdd8a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0xefdd8a['getTypeUrl']=function(_0x51e9e4){return void 0x0===_0x51e9e4&&(_0x51e9e4='type.googleapis.com'),_0x51e9e4+'/CommentsV2RemoveCommentThreadMessage';},_0xefdd8a;}()),_0x34d3e2['CommentsV2RemoveCommentMessage']=(function(){function _0x6a1e6c(_0x29a302){if(_0x29a302){for(var _0x36f8d0=Object['keys'](_0x29a302),_0x28ffe4=0x0;_0x28ffe4<_0x36f8d0['length'];++_0x28ffe4)null!=_0x29a302[_0x36f8d0[_0x28ffe4]]&&'__proto__'!==_0x36f8d0[_0x28ffe4]&&(this[_0x36f8d0[_0x28ffe4]]=_0x29a302[_0x36f8d0[_0x28ffe4]]);}}return _0x6a1e6c['prototype']['commentThreadId']='',_0x6a1e6c['prototype']['commentId']='',_0x6a1e6c['prototype']['documentId']='',_0x6a1e6c['create']=function(_0x502615){return new _0x6a1e6c(_0x502615);},_0x6a1e6c['encode']=function(_0x1f45ea,_0x38ac87,_0x2a0766){if(_0x38ac87||(_0x38ac87=_0x51052a['create']()),void 0x0===_0x2a0766&&(_0x2a0766=0x0),_0x2a0766>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x1f45ea['commentThreadId']&&Object['hasOwnProperty']['call'](_0x1f45ea,'commentThreadId')&&_0x38ac87['uint32'](0xa)['string'](_0x1f45ea['commentThreadId']),null!=_0x1f45ea['commentId']&&Object['hasOwnProperty']['call'](_0x1f45ea,'commentId')&&_0x38ac87['uint32'](0x12)['string'](_0x1f45ea['commentId']),null!=_0x1f45ea['documentId']&&Object['hasOwnProperty']['call'](_0x1f45ea,'documentId')&&_0x38ac87['uint32'](0x1a)['string'](_0x1f45ea['documentId']),_0x38ac87;},_0x6a1e6c['encodeDelimited']=function(_0x1b2246,_0x243d3e){return this['encode'](_0x1b2246,_0x243d3e)['ldelim']();},_0x6a1e6c['decode']=function(_0x18ad26,_0x3061d9,_0x5dadc1,_0xf01e06){if(_0x18ad26 instanceof _0x1f0e29||(_0x18ad26=_0x1f0e29['create'](_0x18ad26)),void 0x0===_0xf01e06&&(_0xf01e06=0x0),_0xf01e06>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x10103d=void 0x0===_0x3061d9?_0x18ad26['len']:_0x18ad26['pos']+_0x3061d9,_0x1222ce=new _0x34d3e2['CommentsV2RemoveCommentMessage']();_0x18ad26['pos']<_0x10103d;){var _0x439f26=_0x18ad26['uint32']();if(_0x439f26===_0x5dadc1)break;switch(_0x439f26>>>0x3){case 0x1:_0x1222ce['commentThreadId']=_0x18ad26['string']();break;case 0x2:_0x1222ce['commentId']=_0x18ad26['string']();break;case 0x3:_0x1222ce['documentId']=_0x18ad26['string']();break;default:_0x18ad26['skipType'](0x7&_0x439f26,_0xf01e06);}}return _0x1222ce;},_0x6a1e6c['decodeDelimited']=function(_0x3b2a69){return _0x3b2a69 instanceof _0x1f0e29||(_0x3b2a69=new _0x1f0e29(_0x3b2a69)),this['decode'](_0x3b2a69,_0x3b2a69['uint32']());},_0x6a1e6c['verify']=function(_0x3d84df,_0x235c6c){return'object'!=typeof _0x3d84df||null===_0x3d84df?'object\x20expected':(void 0x0===_0x235c6c&&(_0x235c6c=0x0),_0x235c6c>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x3d84df['commentThreadId']&&Object['hasOwnProperty']['call'](_0x3d84df,'commentThreadId')&&!_0x3bb2e6['isString'](_0x3d84df['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x3d84df['commentId']&&Object['hasOwnProperty']['call'](_0x3d84df,'commentId')&&!_0x3bb2e6['isString'](_0x3d84df['commentId'])?'commentId:\x20string\x20expected':null!=_0x3d84df['documentId']&&Object['hasOwnProperty']['call'](_0x3d84df,'documentId')&&!_0x3bb2e6['isString'](_0x3d84df['documentId'])?'documentId:\x20string\x20expected':null);},_0x6a1e6c['fromObject']=function(_0x1e659f,_0x49b934){if(_0x1e659f instanceof _0x34d3e2['CommentsV2RemoveCommentMessage'])return _0x1e659f;if(!_0x3bb2e6['isObject'](_0x1e659f))throw TypeError('.CommentsV2RemoveCommentMessage:\x20object\x20expected');if(void 0x0===_0x49b934&&(_0x49b934=0x0),_0x49b934>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x3b058c=new _0x34d3e2['CommentsV2RemoveCommentMessage']();return null!=_0x1e659f['commentThreadId']&&(_0x3b058c['commentThreadId']=String(_0x1e659f['commentThreadId'])),null!=_0x1e659f['commentId']&&(_0x3b058c['commentId']=String(_0x1e659f['commentId'])),null!=_0x1e659f['documentId']&&(_0x3b058c['documentId']=String(_0x1e659f['documentId'])),_0x3b058c;},_0x6a1e6c['toObject']=function(_0x46f04d,_0x31d338,_0x9a9e54){if(_0x31d338||(_0x31d338={}),void 0x0===_0x9a9e54&&(_0x9a9e54=0x0),_0x9a9e54>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x5406d8={};return _0x31d338['defaults']&&(_0x5406d8['commentThreadId']='',_0x5406d8['commentId']='',_0x5406d8['documentId']=''),null!=_0x46f04d['commentThreadId']&&Object['hasOwnProperty']['call'](_0x46f04d,'commentThreadId')&&(_0x5406d8['commentThreadId']=_0x46f04d['commentThreadId']),null!=_0x46f04d['commentId']&&Object['hasOwnProperty']['call'](_0x46f04d,'commentId')&&(_0x5406d8['commentId']=_0x46f04d['commentId']),null!=_0x46f04d['documentId']&&Object['hasOwnProperty']['call'](_0x46f04d,'documentId')&&(_0x5406d8['documentId']=_0x46f04d['documentId']),_0x5406d8;},_0x6a1e6c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x6a1e6c['getTypeUrl']=function(_0x148775){return void 0x0===_0x148775&&(_0x148775='type.googleapis.com'),_0x148775+'/CommentsV2RemoveCommentMessage';},_0x6a1e6c;}()),_0x34d3e2['CommentsV2GetDocumentThreadsMessage']=(function(){function _0x4f6863(_0x4c9dbf){if(_0x4c9dbf){for(var _0x5ebb63=Object['keys'](_0x4c9dbf),_0x37b237=0x0;_0x37b237<_0x5ebb63['length'];++_0x37b237)null!=_0x4c9dbf[_0x5ebb63[_0x37b237]]&&'__proto__'!==_0x5ebb63[_0x37b237]&&(this[_0x5ebb63[_0x37b237]]=_0x4c9dbf[_0x5ebb63[_0x37b237]]);}}return _0x4f6863['prototype']['documentId']='',_0x4f6863['create']=function(_0x5e96cf){return new _0x4f6863(_0x5e96cf);},_0x4f6863['encode']=function(_0x1a0a83,_0x162632,_0x2c531a){if(_0x162632||(_0x162632=_0x51052a['create']()),void 0x0===_0x2c531a&&(_0x2c531a=0x0),_0x2c531a>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x1a0a83['documentId']&&Object['hasOwnProperty']['call'](_0x1a0a83,'documentId')&&_0x162632['uint32'](0xa)['string'](_0x1a0a83['documentId']),_0x162632;},_0x4f6863['encodeDelimited']=function(_0x30250e,_0x47744a){return this['encode'](_0x30250e,_0x47744a)['ldelim']();},_0x4f6863['decode']=function(_0x412ee8,_0x284350,_0xafad71,_0x23d66f){if(_0x412ee8 instanceof _0x1f0e29||(_0x412ee8=_0x1f0e29['create'](_0x412ee8)),void 0x0===_0x23d66f&&(_0x23d66f=0x0),_0x23d66f>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x446021=void 0x0===_0x284350?_0x412ee8['len']:_0x412ee8['pos']+_0x284350,_0x46df01=new _0x34d3e2['CommentsV2GetDocumentThreadsMessage']();_0x412ee8['pos']<_0x446021;){var _0xf73495=_0x412ee8['uint32']();if(_0xf73495===_0xafad71)break;_0xf73495>>>0x3==0x1?_0x46df01['documentId']=_0x412ee8['string']():_0x412ee8['skipType'](0x7&_0xf73495,_0x23d66f);}return _0x46df01;},_0x4f6863['decodeDelimited']=function(_0x34e520){return _0x34e520 instanceof _0x1f0e29||(_0x34e520=new _0x1f0e29(_0x34e520)),this['decode'](_0x34e520,_0x34e520['uint32']());},_0x4f6863['verify']=function(_0x1776af,_0x344cd3){return'object'!=typeof _0x1776af||null===_0x1776af?'object\x20expected':(void 0x0===_0x344cd3&&(_0x344cd3=0x0),_0x344cd3>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x1776af['documentId']&&Object['hasOwnProperty']['call'](_0x1776af,'documentId')&&!_0x3bb2e6['isString'](_0x1776af['documentId'])?'documentId:\x20string\x20expected':null);},_0x4f6863['fromObject']=function(_0x46de0a,_0x84cc84){if(_0x46de0a instanceof _0x34d3e2['CommentsV2GetDocumentThreadsMessage'])return _0x46de0a;if(!_0x3bb2e6['isObject'](_0x46de0a))throw TypeError('.CommentsV2GetDocumentThreadsMessage:\x20object\x20expected');if(void 0x0===_0x84cc84&&(_0x84cc84=0x0),_0x84cc84>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x455901=new _0x34d3e2['CommentsV2GetDocumentThreadsMessage']();return null!=_0x46de0a['documentId']&&(_0x455901['documentId']=String(_0x46de0a['documentId'])),_0x455901;},_0x4f6863['toObject']=function(_0x236c5a,_0x162587,_0x29b35c){if(_0x162587||(_0x162587={}),void 0x0===_0x29b35c&&(_0x29b35c=0x0),_0x29b35c>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x244832={};return _0x162587['defaults']&&(_0x244832['documentId']=''),null!=_0x236c5a['documentId']&&Object['hasOwnProperty']['call'](_0x236c5a,'documentId')&&(_0x244832['documentId']=_0x236c5a['documentId']),_0x244832;},_0x4f6863['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x4f6863['getTypeUrl']=function(_0x502079){return void 0x0===_0x502079&&(_0x502079='type.googleapis.com'),_0x502079+'/CommentsV2GetDocumentThreadsMessage';},_0x4f6863;}()),_0x34d3e2['CommentsV2GetCommentThreadMessage']=(function(){function _0x3fd827(_0x274b15){if(_0x274b15){for(var _0x1e1f43=Object['keys'](_0x274b15),_0x471ac2=0x0;_0x471ac2<_0x1e1f43['length'];++_0x471ac2)null!=_0x274b15[_0x1e1f43[_0x471ac2]]&&'__proto__'!==_0x1e1f43[_0x471ac2]&&(this[_0x1e1f43[_0x471ac2]]=_0x274b15[_0x1e1f43[_0x471ac2]]);}}return _0x3fd827['prototype']['commentThreadId']='',_0x3fd827['prototype']['documentId']='',_0x3fd827['create']=function(_0x2cd0fa){return new _0x3fd827(_0x2cd0fa);},_0x3fd827['encode']=function(_0x928559,_0xbf890d,_0x18a8c1){if(_0xbf890d||(_0xbf890d=_0x51052a['create']()),void 0x0===_0x18a8c1&&(_0x18a8c1=0x0),_0x18a8c1>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x928559['commentThreadId']&&Object['hasOwnProperty']['call'](_0x928559,'commentThreadId')&&_0xbf890d['uint32'](0xa)['string'](_0x928559['commentThreadId']),null!=_0x928559['documentId']&&Object['hasOwnProperty']['call'](_0x928559,'documentId')&&_0xbf890d['uint32'](0x12)['string'](_0x928559['documentId']),_0xbf890d;},_0x3fd827['encodeDelimited']=function(_0x34432d,_0x525fcf){return this['encode'](_0x34432d,_0x525fcf)['ldelim']();},_0x3fd827['decode']=function(_0x5dd0a7,_0x68d124,_0x6060ba,_0x3165fc){if(_0x5dd0a7 instanceof _0x1f0e29||(_0x5dd0a7=_0x1f0e29['create'](_0x5dd0a7)),void 0x0===_0x3165fc&&(_0x3165fc=0x0),_0x3165fc>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x40278a=void 0x0===_0x68d124?_0x5dd0a7['len']:_0x5dd0a7['pos']+_0x68d124,_0x1b08a4=new _0x34d3e2['CommentsV2GetCommentThreadMessage']();_0x5dd0a7['pos']<_0x40278a;){var _0x3860d7=_0x5dd0a7['uint32']();if(_0x3860d7===_0x6060ba)break;switch(_0x3860d7>>>0x3){case 0x1:_0x1b08a4['commentThreadId']=_0x5dd0a7['string']();break;case 0x2:_0x1b08a4['documentId']=_0x5dd0a7['string']();break;default:_0x5dd0a7['skipType'](0x7&_0x3860d7,_0x3165fc);}}return _0x1b08a4;},_0x3fd827['decodeDelimited']=function(_0x27ef3a){return _0x27ef3a instanceof _0x1f0e29||(_0x27ef3a=new _0x1f0e29(_0x27ef3a)),this['decode'](_0x27ef3a,_0x27ef3a['uint32']());},_0x3fd827['verify']=function(_0x134de9,_0x3f5a2b){return'object'!=typeof _0x134de9||null===_0x134de9?'object\x20expected':(void 0x0===_0x3f5a2b&&(_0x3f5a2b=0x0),_0x3f5a2b>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x134de9['commentThreadId']&&Object['hasOwnProperty']['call'](_0x134de9,'commentThreadId')&&!_0x3bb2e6['isString'](_0x134de9['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x134de9['documentId']&&Object['hasOwnProperty']['call'](_0x134de9,'documentId')&&!_0x3bb2e6['isString'](_0x134de9['documentId'])?'documentId:\x20string\x20expected':null);},_0x3fd827['fromObject']=function(_0x5e9e1e,_0x3307cd){if(_0x5e9e1e instanceof _0x34d3e2['CommentsV2GetCommentThreadMessage'])return _0x5e9e1e;if(!_0x3bb2e6['isObject'](_0x5e9e1e))throw TypeError('.CommentsV2GetCommentThreadMessage:\x20object\x20expected');if(void 0x0===_0x3307cd&&(_0x3307cd=0x0),_0x3307cd>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x2068f3=new _0x34d3e2['CommentsV2GetCommentThreadMessage']();return null!=_0x5e9e1e['commentThreadId']&&(_0x2068f3['commentThreadId']=String(_0x5e9e1e['commentThreadId'])),null!=_0x5e9e1e['documentId']&&(_0x2068f3['documentId']=String(_0x5e9e1e['documentId'])),_0x2068f3;},_0x3fd827['toObject']=function(_0x14ce5b,_0x20d7df,_0x3e0ab5){if(_0x20d7df||(_0x20d7df={}),void 0x0===_0x3e0ab5&&(_0x3e0ab5=0x0),_0x3e0ab5>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x33eac9={};return _0x20d7df['defaults']&&(_0x33eac9['commentThreadId']='',_0x33eac9['documentId']=''),null!=_0x14ce5b['commentThreadId']&&Object['hasOwnProperty']['call'](_0x14ce5b,'commentThreadId')&&(_0x33eac9['commentThreadId']=_0x14ce5b['commentThreadId']),null!=_0x14ce5b['documentId']&&Object['hasOwnProperty']['call'](_0x14ce5b,'documentId')&&(_0x33eac9['documentId']=_0x14ce5b['documentId']),_0x33eac9;},_0x3fd827['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x3fd827['getTypeUrl']=function(_0x30b4e2){return void 0x0===_0x30b4e2&&(_0x30b4e2='type.googleapis.com'),_0x30b4e2+'/CommentsV2GetCommentThreadMessage';},_0x3fd827;}()),_0x34d3e2['CommentsV2ConnectMessage']=(function(){function _0xbee6d1(_0x3f7828){if(_0x3f7828){for(var _0x1b61fe=Object['keys'](_0x3f7828),_0x366b91=0x0;_0x366b91<_0x1b61fe['length'];++_0x366b91)null!=_0x3f7828[_0x1b61fe[_0x366b91]]&&'__proto__'!==_0x1b61fe[_0x366b91]&&(this[_0x1b61fe[_0x366b91]]=_0x3f7828[_0x1b61fe[_0x366b91]]);}}return _0xbee6d1['prototype']['documentId']='',_0xbee6d1['create']=function(_0x42476c){return new _0xbee6d1(_0x42476c);},_0xbee6d1['encode']=function(_0x40335b,_0x139f9e,_0xf51d30){if(_0x139f9e||(_0x139f9e=_0x51052a['create']()),void 0x0===_0xf51d30&&(_0xf51d30=0x0),_0xf51d30>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x40335b['documentId']&&Object['hasOwnProperty']['call'](_0x40335b,'documentId')&&_0x139f9e['uint32'](0xa)['string'](_0x40335b['documentId']),_0x139f9e;},_0xbee6d1['encodeDelimited']=function(_0x5e901b,_0x294f4a){return this['encode'](_0x5e901b,_0x294f4a)['ldelim']();},_0xbee6d1['decode']=function(_0x57bb4a,_0x3d6bbb,_0x594f1d,_0xd000a5){if(_0x57bb4a instanceof _0x1f0e29||(_0x57bb4a=_0x1f0e29['create'](_0x57bb4a)),void 0x0===_0xd000a5&&(_0xd000a5=0x0),_0xd000a5>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x1b9494=void 0x0===_0x3d6bbb?_0x57bb4a['len']:_0x57bb4a['pos']+_0x3d6bbb,_0xe303fb=new _0x34d3e2['CommentsV2ConnectMessage']();_0x57bb4a['pos']<_0x1b9494;){var _0x5e8923=_0x57bb4a['uint32']();if(_0x5e8923===_0x594f1d)break;_0x5e8923>>>0x3==0x1?_0xe303fb['documentId']=_0x57bb4a['string']():_0x57bb4a['skipType'](0x7&_0x5e8923,_0xd000a5);}return _0xe303fb;},_0xbee6d1['decodeDelimited']=function(_0x5132a5){return _0x5132a5 instanceof _0x1f0e29||(_0x5132a5=new _0x1f0e29(_0x5132a5)),this['decode'](_0x5132a5,_0x5132a5['uint32']());},_0xbee6d1['verify']=function(_0x43fa43,_0x3977b0){return'object'!=typeof _0x43fa43||null===_0x43fa43?'object\x20expected':(void 0x0===_0x3977b0&&(_0x3977b0=0x0),_0x3977b0>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x43fa43['documentId']&&Object['hasOwnProperty']['call'](_0x43fa43,'documentId')&&!_0x3bb2e6['isString'](_0x43fa43['documentId'])?'documentId:\x20string\x20expected':null);},_0xbee6d1['fromObject']=function(_0x642ba3,_0x430766){if(_0x642ba3 instanceof _0x34d3e2['CommentsV2ConnectMessage'])return _0x642ba3;if(!_0x3bb2e6['isObject'](_0x642ba3))throw TypeError('.CommentsV2ConnectMessage:\x20object\x20expected');if(void 0x0===_0x430766&&(_0x430766=0x0),_0x430766>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x2d2eee=new _0x34d3e2['CommentsV2ConnectMessage']();return null!=_0x642ba3['documentId']&&(_0x2d2eee['documentId']=String(_0x642ba3['documentId'])),_0x2d2eee;},_0xbee6d1['toObject']=function(_0x32ee54,_0x3b3765,_0x589431){if(_0x3b3765||(_0x3b3765={}),void 0x0===_0x589431&&(_0x589431=0x0),_0x589431>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x11d583={};return _0x3b3765['defaults']&&(_0x11d583['documentId']=''),null!=_0x32ee54['documentId']&&Object['hasOwnProperty']['call'](_0x32ee54,'documentId')&&(_0x11d583['documentId']=_0x32ee54['documentId']),_0x11d583;},_0xbee6d1['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0xbee6d1['getTypeUrl']=function(_0x1bb921){return void 0x0===_0x1bb921&&(_0x1bb921='type.googleapis.com'),_0x1bb921+'/CommentsV2ConnectMessage';},_0xbee6d1;}()),_0x34d3e2['CommentsV2AddCommentMessage']=(function(){function _0x481bb8(_0x428da5){if(_0x428da5){for(var _0xfcfe7d=Object['keys'](_0x428da5),_0x5a41a0=0x0;_0x5a41a0<_0xfcfe7d['length'];++_0x5a41a0)null!=_0x428da5[_0xfcfe7d[_0x5a41a0]]&&'__proto__'!==_0xfcfe7d[_0x5a41a0]&&(this[_0xfcfe7d[_0x5a41a0]]=_0x428da5[_0xfcfe7d[_0x5a41a0]]);}}return _0x481bb8['prototype']['commentThreadId']='',_0x481bb8['prototype']['content']='',_0x481bb8['prototype']['documentId']='',_0x481bb8['prototype']['commentId']='',_0x481bb8['prototype']['createdAt']='',_0x481bb8['prototype']['userId']='',_0x481bb8['prototype']['attributes']='',_0x481bb8['prototype']['commentThread']=null,_0x481bb8['create']=function(_0xf75a32){return new _0x481bb8(_0xf75a32);},_0x481bb8['encode']=function(_0x58e773,_0x5cfc0b,_0xeeb109){if(_0x5cfc0b||(_0x5cfc0b=_0x51052a['create']()),void 0x0===_0xeeb109&&(_0xeeb109=0x0),_0xeeb109>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x58e773['commentThreadId']&&Object['hasOwnProperty']['call'](_0x58e773,'commentThreadId')&&_0x5cfc0b['uint32'](0xa)['string'](_0x58e773['commentThreadId']),null!=_0x58e773['content']&&Object['hasOwnProperty']['call'](_0x58e773,'content')&&_0x5cfc0b['uint32'](0x12)['string'](_0x58e773['content']),null!=_0x58e773['documentId']&&Object['hasOwnProperty']['call'](_0x58e773,'documentId')&&_0x5cfc0b['uint32'](0x1a)['string'](_0x58e773['documentId']),null!=_0x58e773['commentId']&&Object['hasOwnProperty']['call'](_0x58e773,'commentId')&&_0x5cfc0b['uint32'](0x22)['string'](_0x58e773['commentId']),null!=_0x58e773['createdAt']&&Object['hasOwnProperty']['call'](_0x58e773,'createdAt')&&_0x5cfc0b['uint32'](0x2a)['string'](_0x58e773['createdAt']),null!=_0x58e773['userId']&&Object['hasOwnProperty']['call'](_0x58e773,'userId')&&_0x5cfc0b['uint32'](0x32)['string'](_0x58e773['userId']),null!=_0x58e773['attributes']&&Object['hasOwnProperty']['call'](_0x58e773,'attributes')&&_0x5cfc0b['uint32'](0x3a)['string'](_0x58e773['attributes']),null!=_0x58e773['commentThread']&&Object['hasOwnProperty']['call'](_0x58e773,'commentThread')&&_0x34d3e2['CommentsThreadDescriptor']['encode'](_0x58e773['commentThread'],_0x5cfc0b['uint32'](0x42)['fork'](),_0xeeb109+0x1)['ldelim'](),_0x5cfc0b;},_0x481bb8['encodeDelimited']=function(_0x26774b,_0x35feb2){return this['encode'](_0x26774b,_0x35feb2)['ldelim']();},_0x481bb8['decode']=function(_0x58aa93,_0x3455ab,_0x20736f,_0x49072a){if(_0x58aa93 instanceof _0x1f0e29||(_0x58aa93=_0x1f0e29['create'](_0x58aa93)),void 0x0===_0x49072a&&(_0x49072a=0x0),_0x49072a>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x5b4ace=void 0x0===_0x3455ab?_0x58aa93['len']:_0x58aa93['pos']+_0x3455ab,_0xb9b5d8=new _0x34d3e2['CommentsV2AddCommentMessage']();_0x58aa93['pos']<_0x5b4ace;){var _0x1e0646=_0x58aa93['uint32']();if(_0x1e0646===_0x20736f)break;switch(_0x1e0646>>>0x3){case 0x1:_0xb9b5d8['commentThreadId']=_0x58aa93['string']();break;case 0x2:_0xb9b5d8['content']=_0x58aa93['string']();break;case 0x3:_0xb9b5d8['documentId']=_0x58aa93['string']();break;case 0x4:_0xb9b5d8['commentId']=_0x58aa93['string']();break;case 0x5:_0xb9b5d8['createdAt']=_0x58aa93['string']();break;case 0x6:_0xb9b5d8['userId']=_0x58aa93['string']();break;case 0x7:_0xb9b5d8['attributes']=_0x58aa93['string']();break;case 0x8:_0xb9b5d8['commentThread']=_0x34d3e2['CommentsThreadDescriptor']['decode'](_0x58aa93,_0x58aa93['uint32'](),void 0x0,_0x49072a+0x1);break;default:_0x58aa93['skipType'](0x7&_0x1e0646,_0x49072a);}}return _0xb9b5d8;},_0x481bb8['decodeDelimited']=function(_0x44eb80){return _0x44eb80 instanceof _0x1f0e29||(_0x44eb80=new _0x1f0e29(_0x44eb80)),this['decode'](_0x44eb80,_0x44eb80['uint32']());},_0x481bb8['verify']=function(_0x325610,_0x1820a7){if('object'!=typeof _0x325610||null===_0x325610)return'object\x20expected';if(void 0x0===_0x1820a7&&(_0x1820a7=0x0),_0x1820a7>_0x3bb2e6['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x325610['commentThreadId']&&Object['hasOwnProperty']['call'](_0x325610,'commentThreadId')&&!_0x3bb2e6['isString'](_0x325610['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x325610['content']&&Object['hasOwnProperty']['call'](_0x325610,'content')&&!_0x3bb2e6['isString'](_0x325610['content']))return'content:\x20string\x20expected';if(null!=_0x325610['documentId']&&Object['hasOwnProperty']['call'](_0x325610,'documentId')&&!_0x3bb2e6['isString'](_0x325610['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x325610['commentId']&&Object['hasOwnProperty']['call'](_0x325610,'commentId')&&!_0x3bb2e6['isString'](_0x325610['commentId']))return'commentId:\x20string\x20expected';if(null!=_0x325610['createdAt']&&Object['hasOwnProperty']['call'](_0x325610,'createdAt')&&!_0x3bb2e6['isString'](_0x325610['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x325610['userId']&&Object['hasOwnProperty']['call'](_0x325610,'userId')&&!_0x3bb2e6['isString'](_0x325610['userId']))return'userId:\x20string\x20expected';if(null!=_0x325610['attributes']&&Object['hasOwnProperty']['call'](_0x325610,'attributes')&&!_0x3bb2e6['isString'](_0x325610['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x325610['commentThread']&&Object['hasOwnProperty']['call'](_0x325610,'commentThread')){var _0x2e5cd2=_0x34d3e2['CommentsThreadDescriptor']['verify'](_0x325610['commentThread'],_0x1820a7+0x1);if(_0x2e5cd2)return'commentThread.'+_0x2e5cd2;}return null;},_0x481bb8['fromObject']=function(_0x421f54,_0x9807b3){if(_0x421f54 instanceof _0x34d3e2['CommentsV2AddCommentMessage'])return _0x421f54;if(!_0x3bb2e6['isObject'](_0x421f54))throw TypeError('.CommentsV2AddCommentMessage:\x20object\x20expected');if(void 0x0===_0x9807b3&&(_0x9807b3=0x0),_0x9807b3>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0xd8d6ee=new _0x34d3e2['CommentsV2AddCommentMessage']();if(null!=_0x421f54['commentThreadId']&&(_0xd8d6ee['commentThreadId']=String(_0x421f54['commentThreadId'])),null!=_0x421f54['content']&&(_0xd8d6ee['content']=String(_0x421f54['content'])),null!=_0x421f54['documentId']&&(_0xd8d6ee['documentId']=String(_0x421f54['documentId'])),null!=_0x421f54['commentId']&&(_0xd8d6ee['commentId']=String(_0x421f54['commentId'])),null!=_0x421f54['createdAt']&&(_0xd8d6ee['createdAt']=String(_0x421f54['createdAt'])),null!=_0x421f54['userId']&&(_0xd8d6ee['userId']=String(_0x421f54['userId'])),null!=_0x421f54['attributes']&&(_0xd8d6ee['attributes']=String(_0x421f54['attributes'])),null!=_0x421f54['commentThread']){if(!_0x3bb2e6['isObject'](_0x421f54['commentThread']))throw TypeError('.CommentsV2AddCommentMessage.commentThread:\x20object\x20expected');_0xd8d6ee['commentThread']=_0x34d3e2['CommentsThreadDescriptor']['fromObject'](_0x421f54['commentThread'],_0x9807b3+0x1);}return _0xd8d6ee;},_0x481bb8['toObject']=function(_0x283be2,_0x2397cf,_0x2ae155){if(_0x2397cf||(_0x2397cf={}),void 0x0===_0x2ae155&&(_0x2ae155=0x0),_0x2ae155>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x1cbbcf={};return _0x2397cf['defaults']&&(_0x1cbbcf['commentThreadId']='',_0x1cbbcf['content']='',_0x1cbbcf['documentId']='',_0x1cbbcf['commentId']='',_0x1cbbcf['createdAt']='',_0x1cbbcf['userId']='',_0x1cbbcf['attributes']='',_0x1cbbcf['commentThread']=null),null!=_0x283be2['commentThreadId']&&Object['hasOwnProperty']['call'](_0x283be2,'commentThreadId')&&(_0x1cbbcf['commentThreadId']=_0x283be2['commentThreadId']),null!=_0x283be2['content']&&Object['hasOwnProperty']['call'](_0x283be2,'content')&&(_0x1cbbcf['content']=_0x283be2['content']),null!=_0x283be2['documentId']&&Object['hasOwnProperty']['call'](_0x283be2,'documentId')&&(_0x1cbbcf['documentId']=_0x283be2['documentId']),null!=_0x283be2['commentId']&&Object['hasOwnProperty']['call'](_0x283be2,'commentId')&&(_0x1cbbcf['commentId']=_0x283be2['commentId']),null!=_0x283be2['createdAt']&&Object['hasOwnProperty']['call'](_0x283be2,'createdAt')&&(_0x1cbbcf['createdAt']=_0x283be2['createdAt']),null!=_0x283be2['userId']&&Object['hasOwnProperty']['call'](_0x283be2,'userId')&&(_0x1cbbcf['userId']=_0x283be2['userId']),null!=_0x283be2['attributes']&&Object['hasOwnProperty']['call'](_0x283be2,'attributes')&&(_0x1cbbcf['attributes']=_0x283be2['attributes']),null!=_0x283be2['commentThread']&&Object['hasOwnProperty']['call'](_0x283be2,'commentThread')&&(_0x1cbbcf['commentThread']=_0x34d3e2['CommentsThreadDescriptor']['toObject'](_0x283be2['commentThread'],_0x2397cf,_0x2ae155+0x1)),_0x1cbbcf;},_0x481bb8['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x481bb8['getTypeUrl']=function(_0x3462e3){return void 0x0===_0x3462e3&&(_0x3462e3='type.googleapis.com'),_0x3462e3+'/CommentsV2AddCommentMessage';},_0x481bb8;}()),_0x34d3e2['CommentsV2UpdateCommentThreadMessage']=(function(){function _0x193172(_0x2a7d2a){if(_0x2a7d2a){for(var _0x26a391=Object['keys'](_0x2a7d2a),_0x587861=0x0;_0x587861<_0x26a391['length'];++_0x587861)null!=_0x2a7d2a[_0x26a391[_0x587861]]&&'__proto__'!==_0x26a391[_0x587861]&&(this[_0x26a391[_0x587861]]=_0x2a7d2a[_0x26a391[_0x587861]]);}}return _0x193172['prototype']['commentThreadId']='',_0x193172['prototype']['documentId']='',_0x193172['prototype']['context']='',_0x193172['prototype']['attributes']='',_0x193172['prototype']['unlinkedAt']='',_0x193172['create']=function(_0x6c82aa){return new _0x193172(_0x6c82aa);},_0x193172['encode']=function(_0x58abc1,_0x19fb7c,_0x4d3b6a){if(_0x19fb7c||(_0x19fb7c=_0x51052a['create']()),void 0x0===_0x4d3b6a&&(_0x4d3b6a=0x0),_0x4d3b6a>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x58abc1['commentThreadId']&&Object['hasOwnProperty']['call'](_0x58abc1,'commentThreadId')&&_0x19fb7c['uint32'](0xa)['string'](_0x58abc1['commentThreadId']),null!=_0x58abc1['documentId']&&Object['hasOwnProperty']['call'](_0x58abc1,'documentId')&&_0x19fb7c['uint32'](0x12)['string'](_0x58abc1['documentId']),null!=_0x58abc1['context']&&Object['hasOwnProperty']['call'](_0x58abc1,'context')&&_0x19fb7c['uint32'](0x1a)['string'](_0x58abc1['context']),null!=_0x58abc1['attributes']&&Object['hasOwnProperty']['call'](_0x58abc1,'attributes')&&_0x19fb7c['uint32'](0x22)['string'](_0x58abc1['attributes']),null!=_0x58abc1['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x58abc1,'unlinkedAt')&&_0x19fb7c['uint32'](0x2a)['string'](_0x58abc1['unlinkedAt']),_0x19fb7c;},_0x193172['encodeDelimited']=function(_0x878b77,_0x480bc1){return this['encode'](_0x878b77,_0x480bc1)['ldelim']();},_0x193172['decode']=function(_0x5e74a5,_0x41e4c1,_0x30a155,_0x460f06){if(_0x5e74a5 instanceof _0x1f0e29||(_0x5e74a5=_0x1f0e29['create'](_0x5e74a5)),void 0x0===_0x460f06&&(_0x460f06=0x0),_0x460f06>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x5d05ae=void 0x0===_0x41e4c1?_0x5e74a5['len']:_0x5e74a5['pos']+_0x41e4c1,_0x405660=new _0x34d3e2['CommentsV2UpdateCommentThreadMessage']();_0x5e74a5['pos']<_0x5d05ae;){var _0x21e7d8=_0x5e74a5['uint32']();if(_0x21e7d8===_0x30a155)break;switch(_0x21e7d8>>>0x3){case 0x1:_0x405660['commentThreadId']=_0x5e74a5['string']();break;case 0x2:_0x405660['documentId']=_0x5e74a5['string']();break;case 0x3:_0x405660['context']=_0x5e74a5['string']();break;case 0x4:_0x405660['attributes']=_0x5e74a5['string']();break;case 0x5:_0x405660['unlinkedAt']=_0x5e74a5['string']();break;default:_0x5e74a5['skipType'](0x7&_0x21e7d8,_0x460f06);}}return _0x405660;},_0x193172['decodeDelimited']=function(_0x1660e0){return _0x1660e0 instanceof _0x1f0e29||(_0x1660e0=new _0x1f0e29(_0x1660e0)),this['decode'](_0x1660e0,_0x1660e0['uint32']());},_0x193172['verify']=function(_0x3217d8,_0x44d0e0){return'object'!=typeof _0x3217d8||null===_0x3217d8?'object\x20expected':(void 0x0===_0x44d0e0&&(_0x44d0e0=0x0),_0x44d0e0>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x3217d8['commentThreadId']&&Object['hasOwnProperty']['call'](_0x3217d8,'commentThreadId')&&!_0x3bb2e6['isString'](_0x3217d8['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x3217d8['documentId']&&Object['hasOwnProperty']['call'](_0x3217d8,'documentId')&&!_0x3bb2e6['isString'](_0x3217d8['documentId'])?'documentId:\x20string\x20expected':null!=_0x3217d8['context']&&Object['hasOwnProperty']['call'](_0x3217d8,'context')&&!_0x3bb2e6['isString'](_0x3217d8['context'])?'context:\x20string\x20expected':null!=_0x3217d8['attributes']&&Object['hasOwnProperty']['call'](_0x3217d8,'attributes')&&!_0x3bb2e6['isString'](_0x3217d8['attributes'])?'attributes:\x20string\x20expected':null!=_0x3217d8['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x3217d8,'unlinkedAt')&&!_0x3bb2e6['isString'](_0x3217d8['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null);},_0x193172['fromObject']=function(_0x169720,_0x35aba9){if(_0x169720 instanceof _0x34d3e2['CommentsV2UpdateCommentThreadMessage'])return _0x169720;if(!_0x3bb2e6['isObject'](_0x169720))throw TypeError('.CommentsV2UpdateCommentThreadMessage:\x20object\x20expected');if(void 0x0===_0x35aba9&&(_0x35aba9=0x0),_0x35aba9>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x4b3fc3=new _0x34d3e2['CommentsV2UpdateCommentThreadMessage']();return null!=_0x169720['commentThreadId']&&(_0x4b3fc3['commentThreadId']=String(_0x169720['commentThreadId'])),null!=_0x169720['documentId']&&(_0x4b3fc3['documentId']=String(_0x169720['documentId'])),null!=_0x169720['context']&&(_0x4b3fc3['context']=String(_0x169720['context'])),null!=_0x169720['attributes']&&(_0x4b3fc3['attributes']=String(_0x169720['attributes'])),null!=_0x169720['unlinkedAt']&&(_0x4b3fc3['unlinkedAt']=String(_0x169720['unlinkedAt'])),_0x4b3fc3;},_0x193172['toObject']=function(_0x1390aa,_0x17e163,_0x1ef087){if(_0x17e163||(_0x17e163={}),void 0x0===_0x1ef087&&(_0x1ef087=0x0),_0x1ef087>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x3b5291={};return _0x17e163['defaults']&&(_0x3b5291['commentThreadId']='',_0x3b5291['documentId']='',_0x3b5291['context']='',_0x3b5291['attributes']='',_0x3b5291['unlinkedAt']=''),null!=_0x1390aa['commentThreadId']&&Object['hasOwnProperty']['call'](_0x1390aa,'commentThreadId')&&(_0x3b5291['commentThreadId']=_0x1390aa['commentThreadId']),null!=_0x1390aa['documentId']&&Object['hasOwnProperty']['call'](_0x1390aa,'documentId')&&(_0x3b5291['documentId']=_0x1390aa['documentId']),null!=_0x1390aa['context']&&Object['hasOwnProperty']['call'](_0x1390aa,'context')&&(_0x3b5291['context']=_0x1390aa['context']),null!=_0x1390aa['attributes']&&Object['hasOwnProperty']['call'](_0x1390aa,'attributes')&&(_0x3b5291['attributes']=_0x1390aa['attributes']),null!=_0x1390aa['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x1390aa,'unlinkedAt')&&(_0x3b5291['unlinkedAt']=_0x1390aa['unlinkedAt']),_0x3b5291;},_0x193172['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x193172['getTypeUrl']=function(_0x4f6314){return void 0x0===_0x4f6314&&(_0x4f6314='type.googleapis.com'),_0x4f6314+'/CommentsV2UpdateCommentThreadMessage';},_0x193172;}()),_0x34d3e2['CommentsV2ResolveCommentThreadMessage']=(function(){function _0x46c6e8(_0x4a7715){if(_0x4a7715){for(var _0xad487e=Object['keys'](_0x4a7715),_0x12f3b8=0x0;_0x12f3b8<_0xad487e['length'];++_0x12f3b8)null!=_0x4a7715[_0xad487e[_0x12f3b8]]&&'__proto__'!==_0xad487e[_0x12f3b8]&&(this[_0xad487e[_0x12f3b8]]=_0x4a7715[_0xad487e[_0x12f3b8]]);}}return _0x46c6e8['prototype']['commentThreadId']='',_0x46c6e8['prototype']['documentId']='',_0x46c6e8['prototype']['resolvedBy']='',_0x46c6e8['prototype']['resolvedAt']='',_0x46c6e8['create']=function(_0x1da875){return new _0x46c6e8(_0x1da875);},_0x46c6e8['encode']=function(_0x3f1bc8,_0x19843e,_0x1039a6){if(_0x19843e||(_0x19843e=_0x51052a['create']()),void 0x0===_0x1039a6&&(_0x1039a6=0x0),_0x1039a6>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x3f1bc8['commentThreadId']&&Object['hasOwnProperty']['call'](_0x3f1bc8,'commentThreadId')&&_0x19843e['uint32'](0xa)['string'](_0x3f1bc8['commentThreadId']),null!=_0x3f1bc8['documentId']&&Object['hasOwnProperty']['call'](_0x3f1bc8,'documentId')&&_0x19843e['uint32'](0x12)['string'](_0x3f1bc8['documentId']),null!=_0x3f1bc8['resolvedBy']&&Object['hasOwnProperty']['call'](_0x3f1bc8,'resolvedBy')&&_0x19843e['uint32'](0x1a)['string'](_0x3f1bc8['resolvedBy']),null!=_0x3f1bc8['resolvedAt']&&Object['hasOwnProperty']['call'](_0x3f1bc8,'resolvedAt')&&_0x19843e['uint32'](0x22)['string'](_0x3f1bc8['resolvedAt']),_0x19843e;},_0x46c6e8['encodeDelimited']=function(_0x136637,_0x40e3bf){return this['encode'](_0x136637,_0x40e3bf)['ldelim']();},_0x46c6e8['decode']=function(_0xa585f0,_0x43780a,_0x5ca457,_0xb09828){if(_0xa585f0 instanceof _0x1f0e29||(_0xa585f0=_0x1f0e29['create'](_0xa585f0)),void 0x0===_0xb09828&&(_0xb09828=0x0),_0xb09828>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x440777=void 0x0===_0x43780a?_0xa585f0['len']:_0xa585f0['pos']+_0x43780a,_0x51c5a9=new _0x34d3e2['CommentsV2ResolveCommentThreadMessage']();_0xa585f0['pos']<_0x440777;){var _0x2a6fa0=_0xa585f0['uint32']();if(_0x2a6fa0===_0x5ca457)break;switch(_0x2a6fa0>>>0x3){case 0x1:_0x51c5a9['commentThreadId']=_0xa585f0['string']();break;case 0x2:_0x51c5a9['documentId']=_0xa585f0['string']();break;case 0x3:_0x51c5a9['resolvedBy']=_0xa585f0['string']();break;case 0x4:_0x51c5a9['resolvedAt']=_0xa585f0['string']();break;default:_0xa585f0['skipType'](0x7&_0x2a6fa0,_0xb09828);}}return _0x51c5a9;},_0x46c6e8['decodeDelimited']=function(_0x3e6493){return _0x3e6493 instanceof _0x1f0e29||(_0x3e6493=new _0x1f0e29(_0x3e6493)),this['decode'](_0x3e6493,_0x3e6493['uint32']());},_0x46c6e8['verify']=function(_0x10ad00,_0x11fa85){return'object'!=typeof _0x10ad00||null===_0x10ad00?'object\x20expected':(void 0x0===_0x11fa85&&(_0x11fa85=0x0),_0x11fa85>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x10ad00['commentThreadId']&&Object['hasOwnProperty']['call'](_0x10ad00,'commentThreadId')&&!_0x3bb2e6['isString'](_0x10ad00['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x10ad00['documentId']&&Object['hasOwnProperty']['call'](_0x10ad00,'documentId')&&!_0x3bb2e6['isString'](_0x10ad00['documentId'])?'documentId:\x20string\x20expected':null!=_0x10ad00['resolvedBy']&&Object['hasOwnProperty']['call'](_0x10ad00,'resolvedBy')&&!_0x3bb2e6['isString'](_0x10ad00['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x10ad00['resolvedAt']&&Object['hasOwnProperty']['call'](_0x10ad00,'resolvedAt')&&!_0x3bb2e6['isString'](_0x10ad00['resolvedAt'])?'resolvedAt:\x20string\x20expected':null);},_0x46c6e8['fromObject']=function(_0x439388,_0x8478af){if(_0x439388 instanceof _0x34d3e2['CommentsV2ResolveCommentThreadMessage'])return _0x439388;if(!_0x3bb2e6['isObject'](_0x439388))throw TypeError('.CommentsV2ResolveCommentThreadMessage:\x20object\x20expected');if(void 0x0===_0x8478af&&(_0x8478af=0x0),_0x8478af>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x117adf=new _0x34d3e2['CommentsV2ResolveCommentThreadMessage']();return null!=_0x439388['commentThreadId']&&(_0x117adf['commentThreadId']=String(_0x439388['commentThreadId'])),null!=_0x439388['documentId']&&(_0x117adf['documentId']=String(_0x439388['documentId'])),null!=_0x439388['resolvedBy']&&(_0x117adf['resolvedBy']=String(_0x439388['resolvedBy'])),null!=_0x439388['resolvedAt']&&(_0x117adf['resolvedAt']=String(_0x439388['resolvedAt'])),_0x117adf;},_0x46c6e8['toObject']=function(_0x35c6e0,_0x57bb7d,_0x1a8a75){if(_0x57bb7d||(_0x57bb7d={}),void 0x0===_0x1a8a75&&(_0x1a8a75=0x0),_0x1a8a75>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x6f8c9={};return _0x57bb7d['defaults']&&(_0x6f8c9['commentThreadId']='',_0x6f8c9['documentId']='',_0x6f8c9['resolvedBy']='',_0x6f8c9['resolvedAt']=''),null!=_0x35c6e0['commentThreadId']&&Object['hasOwnProperty']['call'](_0x35c6e0,'commentThreadId')&&(_0x6f8c9['commentThreadId']=_0x35c6e0['commentThreadId']),null!=_0x35c6e0['documentId']&&Object['hasOwnProperty']['call'](_0x35c6e0,'documentId')&&(_0x6f8c9['documentId']=_0x35c6e0['documentId']),null!=_0x35c6e0['resolvedBy']&&Object['hasOwnProperty']['call'](_0x35c6e0,'resolvedBy')&&(_0x6f8c9['resolvedBy']=_0x35c6e0['resolvedBy']),null!=_0x35c6e0['resolvedAt']&&Object['hasOwnProperty']['call'](_0x35c6e0,'resolvedAt')&&(_0x6f8c9['resolvedAt']=_0x35c6e0['resolvedAt']),_0x6f8c9;},_0x46c6e8['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x46c6e8['getTypeUrl']=function(_0x561b04){return void 0x0===_0x561b04&&(_0x561b04='type.googleapis.com'),_0x561b04+'/CommentsV2ResolveCommentThreadMessage';},_0x46c6e8;}()),_0x34d3e2['CommentsV2ReopenCommentThreadMessage']=(function(){function _0x503279(_0x1714c9){if(_0x1714c9){for(var _0x57bb98=Object['keys'](_0x1714c9),_0x1d22b5=0x0;_0x1d22b5<_0x57bb98['length'];++_0x1d22b5)null!=_0x1714c9[_0x57bb98[_0x1d22b5]]&&'__proto__'!==_0x57bb98[_0x1d22b5]&&(this[_0x57bb98[_0x1d22b5]]=_0x1714c9[_0x57bb98[_0x1d22b5]]);}}return _0x503279['prototype']['commentThreadId']='',_0x503279['prototype']['documentId']='',_0x503279['create']=function(_0xc67c30){return new _0x503279(_0xc67c30);},_0x503279['encode']=function(_0x10ef05,_0x3d7a90,_0x46eb2b){if(_0x3d7a90||(_0x3d7a90=_0x51052a['create']()),void 0x0===_0x46eb2b&&(_0x46eb2b=0x0),_0x46eb2b>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x10ef05['commentThreadId']&&Object['hasOwnProperty']['call'](_0x10ef05,'commentThreadId')&&_0x3d7a90['uint32'](0xa)['string'](_0x10ef05['commentThreadId']),null!=_0x10ef05['documentId']&&Object['hasOwnProperty']['call'](_0x10ef05,'documentId')&&_0x3d7a90['uint32'](0x12)['string'](_0x10ef05['documentId']),_0x3d7a90;},_0x503279['encodeDelimited']=function(_0xdff6fd,_0x18ecc7){return this['encode'](_0xdff6fd,_0x18ecc7)['ldelim']();},_0x503279['decode']=function(_0x5bd26f,_0x8cfe3,_0x3b1013,_0x2adf42){if(_0x5bd26f instanceof _0x1f0e29||(_0x5bd26f=_0x1f0e29['create'](_0x5bd26f)),void 0x0===_0x2adf42&&(_0x2adf42=0x0),_0x2adf42>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x452f31=void 0x0===_0x8cfe3?_0x5bd26f['len']:_0x5bd26f['pos']+_0x8cfe3,_0x40136d=new _0x34d3e2['CommentsV2ReopenCommentThreadMessage']();_0x5bd26f['pos']<_0x452f31;){var _0x5530db=_0x5bd26f['uint32']();if(_0x5530db===_0x3b1013)break;switch(_0x5530db>>>0x3){case 0x1:_0x40136d['commentThreadId']=_0x5bd26f['string']();break;case 0x2:_0x40136d['documentId']=_0x5bd26f['string']();break;default:_0x5bd26f['skipType'](0x7&_0x5530db,_0x2adf42);}}return _0x40136d;},_0x503279['decodeDelimited']=function(_0x18ce0a){return _0x18ce0a instanceof _0x1f0e29||(_0x18ce0a=new _0x1f0e29(_0x18ce0a)),this['decode'](_0x18ce0a,_0x18ce0a['uint32']());},_0x503279['verify']=function(_0x3c27c7,_0x1fcaa2){return'object'!=typeof _0x3c27c7||null===_0x3c27c7?'object\x20expected':(void 0x0===_0x1fcaa2&&(_0x1fcaa2=0x0),_0x1fcaa2>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x3c27c7['commentThreadId']&&Object['hasOwnProperty']['call'](_0x3c27c7,'commentThreadId')&&!_0x3bb2e6['isString'](_0x3c27c7['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x3c27c7['documentId']&&Object['hasOwnProperty']['call'](_0x3c27c7,'documentId')&&!_0x3bb2e6['isString'](_0x3c27c7['documentId'])?'documentId:\x20string\x20expected':null);},_0x503279['fromObject']=function(_0x1921fe,_0x2931e){if(_0x1921fe instanceof _0x34d3e2['CommentsV2ReopenCommentThreadMessage'])return _0x1921fe;if(!_0x3bb2e6['isObject'](_0x1921fe))throw TypeError('.CommentsV2ReopenCommentThreadMessage:\x20object\x20expected');if(void 0x0===_0x2931e&&(_0x2931e=0x0),_0x2931e>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x58a8d4=new _0x34d3e2['CommentsV2ReopenCommentThreadMessage']();return null!=_0x1921fe['commentThreadId']&&(_0x58a8d4['commentThreadId']=String(_0x1921fe['commentThreadId'])),null!=_0x1921fe['documentId']&&(_0x58a8d4['documentId']=String(_0x1921fe['documentId'])),_0x58a8d4;},_0x503279['toObject']=function(_0x3b056f,_0x11792d,_0x5edb13){if(_0x11792d||(_0x11792d={}),void 0x0===_0x5edb13&&(_0x5edb13=0x0),_0x5edb13>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x276548={};return _0x11792d['defaults']&&(_0x276548['commentThreadId']='',_0x276548['documentId']=''),null!=_0x3b056f['commentThreadId']&&Object['hasOwnProperty']['call'](_0x3b056f,'commentThreadId')&&(_0x276548['commentThreadId']=_0x3b056f['commentThreadId']),null!=_0x3b056f['documentId']&&Object['hasOwnProperty']['call'](_0x3b056f,'documentId')&&(_0x276548['documentId']=_0x3b056f['documentId']),_0x276548;},_0x503279['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x503279['getTypeUrl']=function(_0x21a76a){return void 0x0===_0x21a76a&&(_0x21a76a='type.googleapis.com'),_0x21a76a+'/CommentsV2ReopenCommentThreadMessage';},_0x503279;}()),_0x34d3e2['CommentsV2AddCommentThreadMessage']=(function(){function _0x4b3c37(_0x4f0ef4){if(this['comments']=[],_0x4f0ef4){for(var _0x5169d2=Object['keys'](_0x4f0ef4),_0x5f1929=0x0;_0x5f1929<_0x5169d2['length'];++_0x5f1929)null!=_0x4f0ef4[_0x5169d2[_0x5f1929]]&&'__proto__'!==_0x5169d2[_0x5f1929]&&(this[_0x5169d2[_0x5f1929]]=_0x4f0ef4[_0x5169d2[_0x5f1929]]);}}return _0x4b3c37['prototype']['documentId']='',_0x4b3c37['prototype']['commentThreadId']='',_0x4b3c37['prototype']['context']='',_0x4b3c37['prototype']['createdAt']='',_0x4b3c37['prototype']['resolvedAt']='',_0x4b3c37['prototype']['resolvedBy']='',_0x4b3c37['prototype']['attributes']='',_0x4b3c37['prototype']['deletedAt']='',_0x4b3c37['prototype']['comments']=_0x3bb2e6['emptyArray'],_0x4b3c37['create']=function(_0x29c0ff){return new _0x4b3c37(_0x29c0ff);},_0x4b3c37['encode']=function(_0x2cb7f1,_0x4d3902,_0x348410){if(_0x4d3902||(_0x4d3902=_0x51052a['create']()),void 0x0===_0x348410&&(_0x348410=0x0),_0x348410>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x2cb7f1['documentId']&&Object['hasOwnProperty']['call'](_0x2cb7f1,'documentId')&&_0x4d3902['uint32'](0xa)['string'](_0x2cb7f1['documentId']),null!=_0x2cb7f1['commentThreadId']&&Object['hasOwnProperty']['call'](_0x2cb7f1,'commentThreadId')&&_0x4d3902['uint32'](0x12)['string'](_0x2cb7f1['commentThreadId']),null!=_0x2cb7f1['context']&&Object['hasOwnProperty']['call'](_0x2cb7f1,'context')&&_0x4d3902['uint32'](0x1a)['string'](_0x2cb7f1['context']),null!=_0x2cb7f1['createdAt']&&Object['hasOwnProperty']['call'](_0x2cb7f1,'createdAt')&&_0x4d3902['uint32'](0x22)['string'](_0x2cb7f1['createdAt']),null!=_0x2cb7f1['resolvedAt']&&Object['hasOwnProperty']['call'](_0x2cb7f1,'resolvedAt')&&_0x4d3902['uint32'](0x2a)['string'](_0x2cb7f1['resolvedAt']),null!=_0x2cb7f1['resolvedBy']&&Object['hasOwnProperty']['call'](_0x2cb7f1,'resolvedBy')&&_0x4d3902['uint32'](0x32)['string'](_0x2cb7f1['resolvedBy']),null!=_0x2cb7f1['attributes']&&Object['hasOwnProperty']['call'](_0x2cb7f1,'attributes')&&_0x4d3902['uint32'](0x3a)['string'](_0x2cb7f1['attributes']),null!=_0x2cb7f1['deletedAt']&&Object['hasOwnProperty']['call'](_0x2cb7f1,'deletedAt')&&_0x4d3902['uint32'](0x42)['string'](_0x2cb7f1['deletedAt']),null!=_0x2cb7f1['comments']&&_0x2cb7f1['comments']['length']){for(var _0x344087=0x0;_0x344087<_0x2cb7f1['comments']['length'];++_0x344087)_0x34d3e2['CommentDescriptor']['encode'](_0x2cb7f1['comments'][_0x344087],_0x4d3902['uint32'](0x4a)['fork'](),_0x348410+0x1)['ldelim']();}return _0x4d3902;},_0x4b3c37['encodeDelimited']=function(_0x3f7557,_0x40607d){return this['encode'](_0x3f7557,_0x40607d)['ldelim']();},_0x4b3c37['decode']=function(_0x1509e3,_0x5f2b52,_0x24f031,_0x42f836){if(_0x1509e3 instanceof _0x1f0e29||(_0x1509e3=_0x1f0e29['create'](_0x1509e3)),void 0x0===_0x42f836&&(_0x42f836=0x0),_0x42f836>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x4c0e4b=void 0x0===_0x5f2b52?_0x1509e3['len']:_0x1509e3['pos']+_0x5f2b52,_0x8bfef6=new _0x34d3e2['CommentsV2AddCommentThreadMessage']();_0x1509e3['pos']<_0x4c0e4b;){var _0x3c595a=_0x1509e3['uint32']();if(_0x3c595a===_0x24f031)break;switch(_0x3c595a>>>0x3){case 0x1:_0x8bfef6['documentId']=_0x1509e3['string']();break;case 0x2:_0x8bfef6['commentThreadId']=_0x1509e3['string']();break;case 0x3:_0x8bfef6['context']=_0x1509e3['string']();break;case 0x4:_0x8bfef6['createdAt']=_0x1509e3['string']();break;case 0x5:_0x8bfef6['resolvedAt']=_0x1509e3['string']();break;case 0x6:_0x8bfef6['resolvedBy']=_0x1509e3['string']();break;case 0x7:_0x8bfef6['attributes']=_0x1509e3['string']();break;case 0x8:_0x8bfef6['deletedAt']=_0x1509e3['string']();break;case 0x9:_0x8bfef6['comments']&&_0x8bfef6['comments']['length']||(_0x8bfef6['comments']=[]),_0x8bfef6['comments']['push'](_0x34d3e2['CommentDescriptor']['decode'](_0x1509e3,_0x1509e3['uint32'](),void 0x0,_0x42f836+0x1));break;default:_0x1509e3['skipType'](0x7&_0x3c595a,_0x42f836);}}return _0x8bfef6;},_0x4b3c37['decodeDelimited']=function(_0x12c12b){return _0x12c12b instanceof _0x1f0e29||(_0x12c12b=new _0x1f0e29(_0x12c12b)),this['decode'](_0x12c12b,_0x12c12b['uint32']());},_0x4b3c37['verify']=function(_0x17c32a,_0x3dc40b){if('object'!=typeof _0x17c32a||null===_0x17c32a)return'object\x20expected';if(void 0x0===_0x3dc40b&&(_0x3dc40b=0x0),_0x3dc40b>_0x3bb2e6['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x17c32a['documentId']&&Object['hasOwnProperty']['call'](_0x17c32a,'documentId')&&!_0x3bb2e6['isString'](_0x17c32a['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x17c32a['commentThreadId']&&Object['hasOwnProperty']['call'](_0x17c32a,'commentThreadId')&&!_0x3bb2e6['isString'](_0x17c32a['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x17c32a['context']&&Object['hasOwnProperty']['call'](_0x17c32a,'context')&&!_0x3bb2e6['isString'](_0x17c32a['context']))return'context:\x20string\x20expected';if(null!=_0x17c32a['createdAt']&&Object['hasOwnProperty']['call'](_0x17c32a,'createdAt')&&!_0x3bb2e6['isString'](_0x17c32a['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x17c32a['resolvedAt']&&Object['hasOwnProperty']['call'](_0x17c32a,'resolvedAt')&&!_0x3bb2e6['isString'](_0x17c32a['resolvedAt']))return'resolvedAt:\x20string\x20expected';if(null!=_0x17c32a['resolvedBy']&&Object['hasOwnProperty']['call'](_0x17c32a,'resolvedBy')&&!_0x3bb2e6['isString'](_0x17c32a['resolvedBy']))return'resolvedBy:\x20string\x20expected';if(null!=_0x17c32a['attributes']&&Object['hasOwnProperty']['call'](_0x17c32a,'attributes')&&!_0x3bb2e6['isString'](_0x17c32a['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x17c32a['deletedAt']&&Object['hasOwnProperty']['call'](_0x17c32a,'deletedAt')&&!_0x3bb2e6['isString'](_0x17c32a['deletedAt']))return'deletedAt:\x20string\x20expected';if(null!=_0x17c32a['comments']&&Object['hasOwnProperty']['call'](_0x17c32a,'comments')){if(!Array['isArray'](_0x17c32a['comments']))return'comments:\x20array\x20expected';for(var _0x19cfa6=0x0;_0x19cfa6<_0x17c32a['comments']['length'];++_0x19cfa6){var _0x3b7eaa=_0x34d3e2['CommentDescriptor']['verify'](_0x17c32a['comments'][_0x19cfa6],_0x3dc40b+0x1);if(_0x3b7eaa)return'comments.'+_0x3b7eaa;}}return null;},_0x4b3c37['fromObject']=function(_0x32d39b,_0x1c3ad0){if(_0x32d39b instanceof _0x34d3e2['CommentsV2AddCommentThreadMessage'])return _0x32d39b;if(!_0x3bb2e6['isObject'](_0x32d39b))throw TypeError('.CommentsV2AddCommentThreadMessage:\x20object\x20expected');if(void 0x0===_0x1c3ad0&&(_0x1c3ad0=0x0),_0x1c3ad0>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0xf7d28=new _0x34d3e2['CommentsV2AddCommentThreadMessage']();if(null!=_0x32d39b['documentId']&&(_0xf7d28['documentId']=String(_0x32d39b['documentId'])),null!=_0x32d39b['commentThreadId']&&(_0xf7d28['commentThreadId']=String(_0x32d39b['commentThreadId'])),null!=_0x32d39b['context']&&(_0xf7d28['context']=String(_0x32d39b['context'])),null!=_0x32d39b['createdAt']&&(_0xf7d28['createdAt']=String(_0x32d39b['createdAt'])),null!=_0x32d39b['resolvedAt']&&(_0xf7d28['resolvedAt']=String(_0x32d39b['resolvedAt'])),null!=_0x32d39b['resolvedBy']&&(_0xf7d28['resolvedBy']=String(_0x32d39b['resolvedBy'])),null!=_0x32d39b['attributes']&&(_0xf7d28['attributes']=String(_0x32d39b['attributes'])),null!=_0x32d39b['deletedAt']&&(_0xf7d28['deletedAt']=String(_0x32d39b['deletedAt'])),_0x32d39b['comments']){if(!Array['isArray'](_0x32d39b['comments']))throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20array\x20expected');_0xf7d28['comments']=[];for(var _0x2e791b=0x0;_0x2e791b<_0x32d39b['comments']['length'];++_0x2e791b){if(!_0x3bb2e6['isObject'](_0x32d39b['comments'][_0x2e791b]))throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20object\x20expected');_0xf7d28['comments'][_0x2e791b]=_0x34d3e2['CommentDescriptor']['fromObject'](_0x32d39b['comments'][_0x2e791b],_0x1c3ad0+0x1);}}return _0xf7d28;},_0x4b3c37['toObject']=function(_0x26509e,_0x1c3098,_0x342ebb){if(_0x1c3098||(_0x1c3098={}),void 0x0===_0x342ebb&&(_0x342ebb=0x0),_0x342ebb>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x4c3a98={};if((_0x1c3098['arrays']||_0x1c3098['defaults'])&&(_0x4c3a98['comments']=[]),_0x1c3098['defaults']&&(_0x4c3a98['documentId']='',_0x4c3a98['commentThreadId']='',_0x4c3a98['context']='',_0x4c3a98['createdAt']='',_0x4c3a98['resolvedAt']='',_0x4c3a98['resolvedBy']='',_0x4c3a98['attributes']='',_0x4c3a98['deletedAt']=''),null!=_0x26509e['documentId']&&Object['hasOwnProperty']['call'](_0x26509e,'documentId')&&(_0x4c3a98['documentId']=_0x26509e['documentId']),null!=_0x26509e['commentThreadId']&&Object['hasOwnProperty']['call'](_0x26509e,'commentThreadId')&&(_0x4c3a98['commentThreadId']=_0x26509e['commentThreadId']),null!=_0x26509e['context']&&Object['hasOwnProperty']['call'](_0x26509e,'context')&&(_0x4c3a98['context']=_0x26509e['context']),null!=_0x26509e['createdAt']&&Object['hasOwnProperty']['call'](_0x26509e,'createdAt')&&(_0x4c3a98['createdAt']=_0x26509e['createdAt']),null!=_0x26509e['resolvedAt']&&Object['hasOwnProperty']['call'](_0x26509e,'resolvedAt')&&(_0x4c3a98['resolvedAt']=_0x26509e['resolvedAt']),null!=_0x26509e['resolvedBy']&&Object['hasOwnProperty']['call'](_0x26509e,'resolvedBy')&&(_0x4c3a98['resolvedBy']=_0x26509e['resolvedBy']),null!=_0x26509e['attributes']&&Object['hasOwnProperty']['call'](_0x26509e,'attributes')&&(_0x4c3a98['attributes']=_0x26509e['attributes']),null!=_0x26509e['deletedAt']&&Object['hasOwnProperty']['call'](_0x26509e,'deletedAt')&&(_0x4c3a98['deletedAt']=_0x26509e['deletedAt']),_0x26509e['comments']&&_0x26509e['comments']['length']){_0x4c3a98['comments']=[];for(var _0x42581c=0x0;_0x42581c<_0x26509e['comments']['length'];++_0x42581c)_0x4c3a98['comments'][_0x42581c]=_0x34d3e2['CommentDescriptor']['toObject'](_0x26509e['comments'][_0x42581c],_0x1c3098,_0x342ebb+0x1);}return _0x4c3a98;},_0x4b3c37['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x4b3c37['getTypeUrl']=function(_0x2496b3){return void 0x0===_0x2496b3&&(_0x2496b3='type.googleapis.com'),_0x2496b3+'/CommentsV2AddCommentThreadMessage';},_0x4b3c37;}()),_0x34d3e2['CommentThreadAddedCommentDescriptor']=(function(){function _0x17b244(_0x23bdc0){if(_0x23bdc0){for(var _0x4a20ea=Object['keys'](_0x23bdc0),_0x38aaf9=0x0;_0x38aaf9<_0x4a20ea['length'];++_0x38aaf9)null!=_0x23bdc0[_0x4a20ea[_0x38aaf9]]&&'__proto__'!==_0x4a20ea[_0x38aaf9]&&(this[_0x4a20ea[_0x38aaf9]]=_0x23bdc0[_0x4a20ea[_0x38aaf9]]);}}return _0x17b244['prototype']['commentId']='',_0x17b244['prototype']['createdAt']='',_0x17b244['create']=function(_0x532516){return new _0x17b244(_0x532516);},_0x17b244['encode']=function(_0x4324c9,_0x12ae98,_0x4d5d13){if(_0x12ae98||(_0x12ae98=_0x51052a['create']()),void 0x0===_0x4d5d13&&(_0x4d5d13=0x0),_0x4d5d13>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x4324c9['commentId']&&Object['hasOwnProperty']['call'](_0x4324c9,'commentId')&&_0x12ae98['uint32'](0xa)['string'](_0x4324c9['commentId']),null!=_0x4324c9['createdAt']&&Object['hasOwnProperty']['call'](_0x4324c9,'createdAt')&&_0x12ae98['uint32'](0x12)['string'](_0x4324c9['createdAt']),_0x12ae98;},_0x17b244['encodeDelimited']=function(_0xf3ecf7,_0x4bb65c){return this['encode'](_0xf3ecf7,_0x4bb65c)['ldelim']();},_0x17b244['decode']=function(_0x897fea,_0x2f8565,_0x6c0013,_0x229ff4){if(_0x897fea instanceof _0x1f0e29||(_0x897fea=_0x1f0e29['create'](_0x897fea)),void 0x0===_0x229ff4&&(_0x229ff4=0x0),_0x229ff4>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0xade74a=void 0x0===_0x2f8565?_0x897fea['len']:_0x897fea['pos']+_0x2f8565,_0x59ee4c=new _0x34d3e2['CommentThreadAddedCommentDescriptor']();_0x897fea['pos']<_0xade74a;){var _0x4e904d=_0x897fea['uint32']();if(_0x4e904d===_0x6c0013)break;switch(_0x4e904d>>>0x3){case 0x1:_0x59ee4c['commentId']=_0x897fea['string']();break;case 0x2:_0x59ee4c['createdAt']=_0x897fea['string']();break;default:_0x897fea['skipType'](0x7&_0x4e904d,_0x229ff4);}}return _0x59ee4c;},_0x17b244['decodeDelimited']=function(_0x5a52b7){return _0x5a52b7 instanceof _0x1f0e29||(_0x5a52b7=new _0x1f0e29(_0x5a52b7)),this['decode'](_0x5a52b7,_0x5a52b7['uint32']());},_0x17b244['verify']=function(_0x459b9a,_0x7973b7){return'object'!=typeof _0x459b9a||null===_0x459b9a?'object\x20expected':(void 0x0===_0x7973b7&&(_0x7973b7=0x0),_0x7973b7>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x459b9a['commentId']&&Object['hasOwnProperty']['call'](_0x459b9a,'commentId')&&!_0x3bb2e6['isString'](_0x459b9a['commentId'])?'commentId:\x20string\x20expected':null!=_0x459b9a['createdAt']&&Object['hasOwnProperty']['call'](_0x459b9a,'createdAt')&&!_0x3bb2e6['isString'](_0x459b9a['createdAt'])?'createdAt:\x20string\x20expected':null);},_0x17b244['fromObject']=function(_0xe6fd8d,_0x29113f){if(_0xe6fd8d instanceof _0x34d3e2['CommentThreadAddedCommentDescriptor'])return _0xe6fd8d;if(!_0x3bb2e6['isObject'](_0xe6fd8d))throw TypeError('.CommentThreadAddedCommentDescriptor:\x20object\x20expected');if(void 0x0===_0x29113f&&(_0x29113f=0x0),_0x29113f>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x2fcdc9=new _0x34d3e2['CommentThreadAddedCommentDescriptor']();return null!=_0xe6fd8d['commentId']&&(_0x2fcdc9['commentId']=String(_0xe6fd8d['commentId'])),null!=_0xe6fd8d['createdAt']&&(_0x2fcdc9['createdAt']=String(_0xe6fd8d['createdAt'])),_0x2fcdc9;},_0x17b244['toObject']=function(_0x544f11,_0x5da683,_0x449fbd){if(_0x5da683||(_0x5da683={}),void 0x0===_0x449fbd&&(_0x449fbd=0x0),_0x449fbd>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0xbae3f3={};return _0x5da683['defaults']&&(_0xbae3f3['commentId']='',_0xbae3f3['createdAt']=''),null!=_0x544f11['commentId']&&Object['hasOwnProperty']['call'](_0x544f11,'commentId')&&(_0xbae3f3['commentId']=_0x544f11['commentId']),null!=_0x544f11['createdAt']&&Object['hasOwnProperty']['call'](_0x544f11,'createdAt')&&(_0xbae3f3['createdAt']=_0x544f11['createdAt']),_0xbae3f3;},_0x17b244['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x17b244['getTypeUrl']=function(_0x50771e){return void 0x0===_0x50771e&&(_0x50771e='type.googleapis.com'),_0x50771e+'/CommentThreadAddedCommentDescriptor';},_0x17b244;}()),_0x34d3e2['CommentsThreadDescriptor']=(function(){function _0x43d69e(_0x1f6c2b){if(this['comments']=[],_0x1f6c2b){for(var _0x40e2a7=Object['keys'](_0x1f6c2b),_0x586961=0x0;_0x586961<_0x40e2a7['length'];++_0x586961)null!=_0x1f6c2b[_0x40e2a7[_0x586961]]&&'__proto__'!==_0x40e2a7[_0x586961]&&(this[_0x40e2a7[_0x586961]]=_0x1f6c2b[_0x40e2a7[_0x586961]]);}}return _0x43d69e['prototype']['commentThreadId']='',_0x43d69e['prototype']['comments']=_0x3bb2e6['emptyArray'],_0x43d69e['prototype']['resolvedAt']='',_0x43d69e['prototype']['resolvedBy']='',_0x43d69e['prototype']['context']='',_0x43d69e['prototype']['createdAt']='',_0x43d69e['prototype']['deletedAt']='',_0x43d69e['prototype']['attributes']='',_0x43d69e['prototype']['unlinkedAt']='',_0x43d69e['create']=function(_0x4fbbda){return new _0x43d69e(_0x4fbbda);},_0x43d69e['encode']=function(_0x1dc79f,_0x1f2685,_0x4a6cae){if(_0x1f2685||(_0x1f2685=_0x51052a['create']()),void 0x0===_0x4a6cae&&(_0x4a6cae=0x0),_0x4a6cae>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x1dc79f['commentThreadId']&&Object['hasOwnProperty']['call'](_0x1dc79f,'commentThreadId')&&_0x1f2685['uint32'](0xa)['string'](_0x1dc79f['commentThreadId']),null!=_0x1dc79f['comments']&&_0x1dc79f['comments']['length']){for(var _0x4b93b7=0x0;_0x4b93b7<_0x1dc79f['comments']['length'];++_0x4b93b7)_0x34d3e2['CommentDescriptor']['encode'](_0x1dc79f['comments'][_0x4b93b7],_0x1f2685['uint32'](0x12)['fork'](),_0x4a6cae+0x1)['ldelim']();}return null!=_0x1dc79f['resolvedAt']&&Object['hasOwnProperty']['call'](_0x1dc79f,'resolvedAt')&&_0x1f2685['uint32'](0x1a)['string'](_0x1dc79f['resolvedAt']),null!=_0x1dc79f['resolvedBy']&&Object['hasOwnProperty']['call'](_0x1dc79f,'resolvedBy')&&_0x1f2685['uint32'](0x22)['string'](_0x1dc79f['resolvedBy']),null!=_0x1dc79f['context']&&Object['hasOwnProperty']['call'](_0x1dc79f,'context')&&_0x1f2685['uint32'](0x2a)['string'](_0x1dc79f['context']),null!=_0x1dc79f['createdAt']&&Object['hasOwnProperty']['call'](_0x1dc79f,'createdAt')&&_0x1f2685['uint32'](0x32)['string'](_0x1dc79f['createdAt']),null!=_0x1dc79f['deletedAt']&&Object['hasOwnProperty']['call'](_0x1dc79f,'deletedAt')&&_0x1f2685['uint32'](0x3a)['string'](_0x1dc79f['deletedAt']),null!=_0x1dc79f['attributes']&&Object['hasOwnProperty']['call'](_0x1dc79f,'attributes')&&_0x1f2685['uint32'](0x42)['string'](_0x1dc79f['attributes']),null!=_0x1dc79f['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x1dc79f,'unlinkedAt')&&_0x1f2685['uint32'](0x4a)['string'](_0x1dc79f['unlinkedAt']),_0x1f2685;},_0x43d69e['encodeDelimited']=function(_0x46e097,_0x4ea052){return this['encode'](_0x46e097,_0x4ea052)['ldelim']();},_0x43d69e['decode']=function(_0x532787,_0x12aebc,_0x5b0791,_0x45f12a){if(_0x532787 instanceof _0x1f0e29||(_0x532787=_0x1f0e29['create'](_0x532787)),void 0x0===_0x45f12a&&(_0x45f12a=0x0),_0x45f12a>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x29afb4=void 0x0===_0x12aebc?_0x532787['len']:_0x532787['pos']+_0x12aebc,_0x958724=new _0x34d3e2['CommentsThreadDescriptor']();_0x532787['pos']<_0x29afb4;){var _0x127730=_0x532787['uint32']();if(_0x127730===_0x5b0791)break;switch(_0x127730>>>0x3){case 0x1:_0x958724['commentThreadId']=_0x532787['string']();break;case 0x2:_0x958724['comments']&&_0x958724['comments']['length']||(_0x958724['comments']=[]),_0x958724['comments']['push'](_0x34d3e2['CommentDescriptor']['decode'](_0x532787,_0x532787['uint32'](),void 0x0,_0x45f12a+0x1));break;case 0x3:_0x958724['resolvedAt']=_0x532787['string']();break;case 0x4:_0x958724['resolvedBy']=_0x532787['string']();break;case 0x5:_0x958724['context']=_0x532787['string']();break;case 0x6:_0x958724['createdAt']=_0x532787['string']();break;case 0x7:_0x958724['deletedAt']=_0x532787['string']();break;case 0x8:_0x958724['attributes']=_0x532787['string']();break;case 0x9:_0x958724['unlinkedAt']=_0x532787['string']();break;default:_0x532787['skipType'](0x7&_0x127730,_0x45f12a);}}return _0x958724;},_0x43d69e['decodeDelimited']=function(_0x572095){return _0x572095 instanceof _0x1f0e29||(_0x572095=new _0x1f0e29(_0x572095)),this['decode'](_0x572095,_0x572095['uint32']());},_0x43d69e['verify']=function(_0xacda2f,_0x39ea3f){if('object'!=typeof _0xacda2f||null===_0xacda2f)return'object\x20expected';if(void 0x0===_0x39ea3f&&(_0x39ea3f=0x0),_0x39ea3f>_0x3bb2e6['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0xacda2f['commentThreadId']&&Object['hasOwnProperty']['call'](_0xacda2f,'commentThreadId')&&!_0x3bb2e6['isString'](_0xacda2f['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0xacda2f['comments']&&Object['hasOwnProperty']['call'](_0xacda2f,'comments')){if(!Array['isArray'](_0xacda2f['comments']))return'comments:\x20array\x20expected';for(var _0x20a08a=0x0;_0x20a08a<_0xacda2f['comments']['length'];++_0x20a08a){var _0x2e6b25=_0x34d3e2['CommentDescriptor']['verify'](_0xacda2f['comments'][_0x20a08a],_0x39ea3f+0x1);if(_0x2e6b25)return'comments.'+_0x2e6b25;}}return null!=_0xacda2f['resolvedAt']&&Object['hasOwnProperty']['call'](_0xacda2f,'resolvedAt')&&!_0x3bb2e6['isString'](_0xacda2f['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0xacda2f['resolvedBy']&&Object['hasOwnProperty']['call'](_0xacda2f,'resolvedBy')&&!_0x3bb2e6['isString'](_0xacda2f['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0xacda2f['context']&&Object['hasOwnProperty']['call'](_0xacda2f,'context')&&!_0x3bb2e6['isString'](_0xacda2f['context'])?'context:\x20string\x20expected':null!=_0xacda2f['createdAt']&&Object['hasOwnProperty']['call'](_0xacda2f,'createdAt')&&!_0x3bb2e6['isString'](_0xacda2f['createdAt'])?'createdAt:\x20string\x20expected':null!=_0xacda2f['deletedAt']&&Object['hasOwnProperty']['call'](_0xacda2f,'deletedAt')&&!_0x3bb2e6['isString'](_0xacda2f['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0xacda2f['attributes']&&Object['hasOwnProperty']['call'](_0xacda2f,'attributes')&&!_0x3bb2e6['isString'](_0xacda2f['attributes'])?'attributes:\x20string\x20expected':null!=_0xacda2f['unlinkedAt']&&Object['hasOwnProperty']['call'](_0xacda2f,'unlinkedAt')&&!_0x3bb2e6['isString'](_0xacda2f['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},_0x43d69e['fromObject']=function(_0x51dd2a,_0x31a4ca){if(_0x51dd2a instanceof _0x34d3e2['CommentsThreadDescriptor'])return _0x51dd2a;if(!_0x3bb2e6['isObject'](_0x51dd2a))throw TypeError('.CommentsThreadDescriptor:\x20object\x20expected');if(void 0x0===_0x31a4ca&&(_0x31a4ca=0x0),_0x31a4ca>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x2def35=new _0x34d3e2['CommentsThreadDescriptor']();if(null!=_0x51dd2a['commentThreadId']&&(_0x2def35['commentThreadId']=String(_0x51dd2a['commentThreadId'])),_0x51dd2a['comments']){if(!Array['isArray'](_0x51dd2a['comments']))throw TypeError('.CommentsThreadDescriptor.comments:\x20array\x20expected');_0x2def35['comments']=[];for(var _0x415ac6=0x0;_0x415ac6<_0x51dd2a['comments']['length'];++_0x415ac6){if(!_0x3bb2e6['isObject'](_0x51dd2a['comments'][_0x415ac6]))throw TypeError('.CommentsThreadDescriptor.comments:\x20object\x20expected');_0x2def35['comments'][_0x415ac6]=_0x34d3e2['CommentDescriptor']['fromObject'](_0x51dd2a['comments'][_0x415ac6],_0x31a4ca+0x1);}}return null!=_0x51dd2a['resolvedAt']&&(_0x2def35['resolvedAt']=String(_0x51dd2a['resolvedAt'])),null!=_0x51dd2a['resolvedBy']&&(_0x2def35['resolvedBy']=String(_0x51dd2a['resolvedBy'])),null!=_0x51dd2a['context']&&(_0x2def35['context']=String(_0x51dd2a['context'])),null!=_0x51dd2a['createdAt']&&(_0x2def35['createdAt']=String(_0x51dd2a['createdAt'])),null!=_0x51dd2a['deletedAt']&&(_0x2def35['deletedAt']=String(_0x51dd2a['deletedAt'])),null!=_0x51dd2a['attributes']&&(_0x2def35['attributes']=String(_0x51dd2a['attributes'])),null!=_0x51dd2a['unlinkedAt']&&(_0x2def35['unlinkedAt']=String(_0x51dd2a['unlinkedAt'])),_0x2def35;},_0x43d69e['toObject']=function(_0x167a43,_0x56e760,_0x151b7f){if(_0x56e760||(_0x56e760={}),void 0x0===_0x151b7f&&(_0x151b7f=0x0),_0x151b7f>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x134f13={};if((_0x56e760['arrays']||_0x56e760['defaults'])&&(_0x134f13['comments']=[]),_0x56e760['defaults']&&(_0x134f13['commentThreadId']='',_0x134f13['resolvedAt']='',_0x134f13['resolvedBy']='',_0x134f13['context']='',_0x134f13['createdAt']='',_0x134f13['deletedAt']='',_0x134f13['attributes']='',_0x134f13['unlinkedAt']=''),null!=_0x167a43['commentThreadId']&&Object['hasOwnProperty']['call'](_0x167a43,'commentThreadId')&&(_0x134f13['commentThreadId']=_0x167a43['commentThreadId']),_0x167a43['comments']&&_0x167a43['comments']['length']){_0x134f13['comments']=[];for(var _0x334aff=0x0;_0x334aff<_0x167a43['comments']['length'];++_0x334aff)_0x134f13['comments'][_0x334aff]=_0x34d3e2['CommentDescriptor']['toObject'](_0x167a43['comments'][_0x334aff],_0x56e760,_0x151b7f+0x1);}return null!=_0x167a43['resolvedAt']&&Object['hasOwnProperty']['call'](_0x167a43,'resolvedAt')&&(_0x134f13['resolvedAt']=_0x167a43['resolvedAt']),null!=_0x167a43['resolvedBy']&&Object['hasOwnProperty']['call'](_0x167a43,'resolvedBy')&&(_0x134f13['resolvedBy']=_0x167a43['resolvedBy']),null!=_0x167a43['context']&&Object['hasOwnProperty']['call'](_0x167a43,'context')&&(_0x134f13['context']=_0x167a43['context']),null!=_0x167a43['createdAt']&&Object['hasOwnProperty']['call'](_0x167a43,'createdAt')&&(_0x134f13['createdAt']=_0x167a43['createdAt']),null!=_0x167a43['deletedAt']&&Object['hasOwnProperty']['call'](_0x167a43,'deletedAt')&&(_0x134f13['deletedAt']=_0x167a43['deletedAt']),null!=_0x167a43['attributes']&&Object['hasOwnProperty']['call'](_0x167a43,'attributes')&&(_0x134f13['attributes']=_0x167a43['attributes']),null!=_0x167a43['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x167a43,'unlinkedAt')&&(_0x134f13['unlinkedAt']=_0x167a43['unlinkedAt']),_0x134f13;},_0x43d69e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x43d69e['getTypeUrl']=function(_0x2ddda7){return void 0x0===_0x2ddda7&&(_0x2ddda7='type.googleapis.com'),_0x2ddda7+'/CommentsThreadDescriptor';},_0x43d69e;}()),_0x34d3e2['CommentDescriptor']=(function(){function _0x2630cb(_0x224457){if(_0x224457){for(var _0x1f55e3=Object['keys'](_0x224457),_0x2e0d5f=0x0;_0x2e0d5f<_0x1f55e3['length'];++_0x2e0d5f)null!=_0x224457[_0x1f55e3[_0x2e0d5f]]&&'__proto__'!==_0x1f55e3[_0x2e0d5f]&&(this[_0x1f55e3[_0x2e0d5f]]=_0x224457[_0x1f55e3[_0x2e0d5f]]);}}return _0x2630cb['prototype']['commentId']='',_0x2630cb['prototype']['commentThreadId']='',_0x2630cb['prototype']['userId']='',_0x2630cb['prototype']['content']='',_0x2630cb['prototype']['documentId']='',_0x2630cb['prototype']['createdAt']='',_0x2630cb['prototype']['attributes']='',_0x2630cb['create']=function(_0x402989){return new _0x2630cb(_0x402989);},_0x2630cb['encode']=function(_0x4fcb88,_0x4ffa1d,_0x463a68){if(_0x4ffa1d||(_0x4ffa1d=_0x51052a['create']()),void 0x0===_0x463a68&&(_0x463a68=0x0),_0x463a68>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x4fcb88['commentId']&&Object['hasOwnProperty']['call'](_0x4fcb88,'commentId')&&_0x4ffa1d['uint32'](0xa)['string'](_0x4fcb88['commentId']),null!=_0x4fcb88['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4fcb88,'commentThreadId')&&_0x4ffa1d['uint32'](0x12)['string'](_0x4fcb88['commentThreadId']),null!=_0x4fcb88['userId']&&Object['hasOwnProperty']['call'](_0x4fcb88,'userId')&&_0x4ffa1d['uint32'](0x1a)['string'](_0x4fcb88['userId']),null!=_0x4fcb88['content']&&Object['hasOwnProperty']['call'](_0x4fcb88,'content')&&_0x4ffa1d['uint32'](0x22)['string'](_0x4fcb88['content']),null!=_0x4fcb88['documentId']&&Object['hasOwnProperty']['call'](_0x4fcb88,'documentId')&&_0x4ffa1d['uint32'](0x2a)['string'](_0x4fcb88['documentId']),null!=_0x4fcb88['createdAt']&&Object['hasOwnProperty']['call'](_0x4fcb88,'createdAt')&&_0x4ffa1d['uint32'](0x32)['string'](_0x4fcb88['createdAt']),null!=_0x4fcb88['attributes']&&Object['hasOwnProperty']['call'](_0x4fcb88,'attributes')&&_0x4ffa1d['uint32'](0x3a)['string'](_0x4fcb88['attributes']),_0x4ffa1d;},_0x2630cb['encodeDelimited']=function(_0x20dce2,_0x3b4073){return this['encode'](_0x20dce2,_0x3b4073)['ldelim']();},_0x2630cb['decode']=function(_0x425a05,_0x4a9852,_0x57949f,_0xf6e453){if(_0x425a05 instanceof _0x1f0e29||(_0x425a05=_0x1f0e29['create'](_0x425a05)),void 0x0===_0xf6e453&&(_0xf6e453=0x0),_0xf6e453>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x3dae36=void 0x0===_0x4a9852?_0x425a05['len']:_0x425a05['pos']+_0x4a9852,_0x20231e=new _0x34d3e2['CommentDescriptor']();_0x425a05['pos']<_0x3dae36;){var _0x54c0f3=_0x425a05['uint32']();if(_0x54c0f3===_0x57949f)break;switch(_0x54c0f3>>>0x3){case 0x1:_0x20231e['commentId']=_0x425a05['string']();break;case 0x2:_0x20231e['commentThreadId']=_0x425a05['string']();break;case 0x3:_0x20231e['userId']=_0x425a05['string']();break;case 0x4:_0x20231e['content']=_0x425a05['string']();break;case 0x5:_0x20231e['documentId']=_0x425a05['string']();break;case 0x6:_0x20231e['createdAt']=_0x425a05['string']();break;case 0x7:_0x20231e['attributes']=_0x425a05['string']();break;default:_0x425a05['skipType'](0x7&_0x54c0f3,_0xf6e453);}}return _0x20231e;},_0x2630cb['decodeDelimited']=function(_0x3d59dd){return _0x3d59dd instanceof _0x1f0e29||(_0x3d59dd=new _0x1f0e29(_0x3d59dd)),this['decode'](_0x3d59dd,_0x3d59dd['uint32']());},_0x2630cb['verify']=function(_0x35ac0b,_0x53ccc2){return'object'!=typeof _0x35ac0b||null===_0x35ac0b?'object\x20expected':(void 0x0===_0x53ccc2&&(_0x53ccc2=0x0),_0x53ccc2>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x35ac0b['commentId']&&Object['hasOwnProperty']['call'](_0x35ac0b,'commentId')&&!_0x3bb2e6['isString'](_0x35ac0b['commentId'])?'commentId:\x20string\x20expected':null!=_0x35ac0b['commentThreadId']&&Object['hasOwnProperty']['call'](_0x35ac0b,'commentThreadId')&&!_0x3bb2e6['isString'](_0x35ac0b['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x35ac0b['userId']&&Object['hasOwnProperty']['call'](_0x35ac0b,'userId')&&!_0x3bb2e6['isString'](_0x35ac0b['userId'])?'userId:\x20string\x20expected':null!=_0x35ac0b['content']&&Object['hasOwnProperty']['call'](_0x35ac0b,'content')&&!_0x3bb2e6['isString'](_0x35ac0b['content'])?'content:\x20string\x20expected':null!=_0x35ac0b['documentId']&&Object['hasOwnProperty']['call'](_0x35ac0b,'documentId')&&!_0x3bb2e6['isString'](_0x35ac0b['documentId'])?'documentId:\x20string\x20expected':null!=_0x35ac0b['createdAt']&&Object['hasOwnProperty']['call'](_0x35ac0b,'createdAt')&&!_0x3bb2e6['isString'](_0x35ac0b['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x35ac0b['attributes']&&Object['hasOwnProperty']['call'](_0x35ac0b,'attributes')&&!_0x3bb2e6['isString'](_0x35ac0b['attributes'])?'attributes:\x20string\x20expected':null);},_0x2630cb['fromObject']=function(_0x5f336d,_0x5c55fd){if(_0x5f336d instanceof _0x34d3e2['CommentDescriptor'])return _0x5f336d;if(!_0x3bb2e6['isObject'](_0x5f336d))throw TypeError('.CommentDescriptor:\x20object\x20expected');if(void 0x0===_0x5c55fd&&(_0x5c55fd=0x0),_0x5c55fd>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x344e12=new _0x34d3e2['CommentDescriptor']();return null!=_0x5f336d['commentId']&&(_0x344e12['commentId']=String(_0x5f336d['commentId'])),null!=_0x5f336d['commentThreadId']&&(_0x344e12['commentThreadId']=String(_0x5f336d['commentThreadId'])),null!=_0x5f336d['userId']&&(_0x344e12['userId']=String(_0x5f336d['userId'])),null!=_0x5f336d['content']&&(_0x344e12['content']=String(_0x5f336d['content'])),null!=_0x5f336d['documentId']&&(_0x344e12['documentId']=String(_0x5f336d['documentId'])),null!=_0x5f336d['createdAt']&&(_0x344e12['createdAt']=String(_0x5f336d['createdAt'])),null!=_0x5f336d['attributes']&&(_0x344e12['attributes']=String(_0x5f336d['attributes'])),_0x344e12;},_0x2630cb['toObject']=function(_0x4cdf2d,_0x52855c,_0x452369){if(_0x52855c||(_0x52855c={}),void 0x0===_0x452369&&(_0x452369=0x0),_0x452369>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x3ecc06={};return _0x52855c['defaults']&&(_0x3ecc06['commentId']='',_0x3ecc06['commentThreadId']='',_0x3ecc06['userId']='',_0x3ecc06['content']='',_0x3ecc06['documentId']='',_0x3ecc06['createdAt']='',_0x3ecc06['attributes']=''),null!=_0x4cdf2d['commentId']&&Object['hasOwnProperty']['call'](_0x4cdf2d,'commentId')&&(_0x3ecc06['commentId']=_0x4cdf2d['commentId']),null!=_0x4cdf2d['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4cdf2d,'commentThreadId')&&(_0x3ecc06['commentThreadId']=_0x4cdf2d['commentThreadId']),null!=_0x4cdf2d['userId']&&Object['hasOwnProperty']['call'](_0x4cdf2d,'userId')&&(_0x3ecc06['userId']=_0x4cdf2d['userId']),null!=_0x4cdf2d['content']&&Object['hasOwnProperty']['call'](_0x4cdf2d,'content')&&(_0x3ecc06['content']=_0x4cdf2d['content']),null!=_0x4cdf2d['documentId']&&Object['hasOwnProperty']['call'](_0x4cdf2d,'documentId')&&(_0x3ecc06['documentId']=_0x4cdf2d['documentId']),null!=_0x4cdf2d['createdAt']&&Object['hasOwnProperty']['call'](_0x4cdf2d,'createdAt')&&(_0x3ecc06['createdAt']=_0x4cdf2d['createdAt']),null!=_0x4cdf2d['attributes']&&Object['hasOwnProperty']['call'](_0x4cdf2d,'attributes')&&(_0x3ecc06['attributes']=_0x4cdf2d['attributes']),_0x3ecc06;},_0x2630cb['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x2630cb['getTypeUrl']=function(_0x4f9287){return void 0x0===_0x4f9287&&(_0x4f9287='type.googleapis.com'),_0x4f9287+'/CommentDescriptor';},_0x2630cb;}()),_0x34d3e2['GetDocumentDetailsResponse']=(function(){function _0x325e97(_0x46f970){if(_0x46f970){for(var _0x19a7c1=Object['keys'](_0x46f970),_0xf540a9=0x0;_0xf540a9<_0x19a7c1['length'];++_0xf540a9)null!=_0x46f970[_0x19a7c1[_0xf540a9]]&&'__proto__'!==_0x19a7c1[_0xf540a9]&&(this[_0x19a7c1[_0xf540a9]]=_0x46f970[_0x19a7c1[_0xf540a9]]);}}return _0x325e97['prototype']['lastDocumentSessionId']='',_0x325e97['prototype']['lastDocumentSessionOperationId']='',_0x325e97['prototype']['currentDocumentSessionId']='',_0x325e97['prototype']['currentDocumentSessionVersion']=0x0,_0x325e97['prototype']['currentDocumentSessionOperationId']='',_0x325e97['create']=function(_0x3039c6){return new _0x325e97(_0x3039c6);},_0x325e97['encode']=function(_0xe60d9,_0x535eea,_0x506c6c){if(_0x535eea||(_0x535eea=_0x51052a['create']()),void 0x0===_0x506c6c&&(_0x506c6c=0x0),_0x506c6c>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0xe60d9['lastDocumentSessionId']&&Object['hasOwnProperty']['call'](_0xe60d9,'lastDocumentSessionId')&&_0x535eea['uint32'](0xa)['string'](_0xe60d9['lastDocumentSessionId']),null!=_0xe60d9['lastDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0xe60d9,'lastDocumentSessionOperationId')&&_0x535eea['uint32'](0x12)['string'](_0xe60d9['lastDocumentSessionOperationId']),null!=_0xe60d9['currentDocumentSessionId']&&Object['hasOwnProperty']['call'](_0xe60d9,'currentDocumentSessionId')&&_0x535eea['uint32'](0x1a)['string'](_0xe60d9['currentDocumentSessionId']),null!=_0xe60d9['currentDocumentSessionVersion']&&Object['hasOwnProperty']['call'](_0xe60d9,'currentDocumentSessionVersion')&&_0x535eea['uint32'](0x20)['uint32'](_0xe60d9['currentDocumentSessionVersion']),null!=_0xe60d9['currentDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0xe60d9,'currentDocumentSessionOperationId')&&_0x535eea['uint32'](0x2a)['string'](_0xe60d9['currentDocumentSessionOperationId']),_0x535eea;},_0x325e97['encodeDelimited']=function(_0x12aba1,_0x4ce4e0){return this['encode'](_0x12aba1,_0x4ce4e0)['ldelim']();},_0x325e97['decode']=function(_0x43768a,_0x2b567c,_0x461c00,_0x36acbf){if(_0x43768a instanceof _0x1f0e29||(_0x43768a=_0x1f0e29['create'](_0x43768a)),void 0x0===_0x36acbf&&(_0x36acbf=0x0),_0x36acbf>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x1235f1=void 0x0===_0x2b567c?_0x43768a['len']:_0x43768a['pos']+_0x2b567c,_0x19de78=new _0x34d3e2['GetDocumentDetailsResponse']();_0x43768a['pos']<_0x1235f1;){var _0x2e2bc6=_0x43768a['uint32']();if(_0x2e2bc6===_0x461c00)break;switch(_0x2e2bc6>>>0x3){case 0x1:_0x19de78['lastDocumentSessionId']=_0x43768a['string']();break;case 0x2:_0x19de78['lastDocumentSessionOperationId']=_0x43768a['string']();break;case 0x3:_0x19de78['currentDocumentSessionId']=_0x43768a['string']();break;case 0x4:_0x19de78['currentDocumentSessionVersion']=_0x43768a['uint32']();break;case 0x5:_0x19de78['currentDocumentSessionOperationId']=_0x43768a['string']();break;default:_0x43768a['skipType'](0x7&_0x2e2bc6,_0x36acbf);}}return _0x19de78;},_0x325e97['decodeDelimited']=function(_0x733da8){return _0x733da8 instanceof _0x1f0e29||(_0x733da8=new _0x1f0e29(_0x733da8)),this['decode'](_0x733da8,_0x733da8['uint32']());},_0x325e97['verify']=function(_0x17f81f,_0xc08580){return'object'!=typeof _0x17f81f||null===_0x17f81f?'object\x20expected':(void 0x0===_0xc08580&&(_0xc08580=0x0),_0xc08580>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x17f81f['lastDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x17f81f,'lastDocumentSessionId')&&!_0x3bb2e6['isString'](_0x17f81f['lastDocumentSessionId'])?'lastDocumentSessionId:\x20string\x20expected':null!=_0x17f81f['lastDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x17f81f,'lastDocumentSessionOperationId')&&!_0x3bb2e6['isString'](_0x17f81f['lastDocumentSessionOperationId'])?'lastDocumentSessionOperationId:\x20string\x20expected':null!=_0x17f81f['currentDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x17f81f,'currentDocumentSessionId')&&!_0x3bb2e6['isString'](_0x17f81f['currentDocumentSessionId'])?'currentDocumentSessionId:\x20string\x20expected':null!=_0x17f81f['currentDocumentSessionVersion']&&Object['hasOwnProperty']['call'](_0x17f81f,'currentDocumentSessionVersion')&&!_0x3bb2e6['isInteger'](_0x17f81f['currentDocumentSessionVersion'])?'currentDocumentSessionVersion:\x20integer\x20expected':null!=_0x17f81f['currentDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x17f81f,'currentDocumentSessionOperationId')&&!_0x3bb2e6['isString'](_0x17f81f['currentDocumentSessionOperationId'])?'currentDocumentSessionOperationId:\x20string\x20expected':null);},_0x325e97['fromObject']=function(_0x24df9f,_0x428b7f){if(_0x24df9f instanceof _0x34d3e2['GetDocumentDetailsResponse'])return _0x24df9f;if(!_0x3bb2e6['isObject'](_0x24df9f))throw TypeError('.GetDocumentDetailsResponse:\x20object\x20expected');if(void 0x0===_0x428b7f&&(_0x428b7f=0x0),_0x428b7f>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x219b08=new _0x34d3e2['GetDocumentDetailsResponse']();return null!=_0x24df9f['lastDocumentSessionId']&&(_0x219b08['lastDocumentSessionId']=String(_0x24df9f['lastDocumentSessionId'])),null!=_0x24df9f['lastDocumentSessionOperationId']&&(_0x219b08['lastDocumentSessionOperationId']=String(_0x24df9f['lastDocumentSessionOperationId'])),null!=_0x24df9f['currentDocumentSessionId']&&(_0x219b08['currentDocumentSessionId']=String(_0x24df9f['currentDocumentSessionId'])),null!=_0x24df9f['currentDocumentSessionVersion']&&(_0x219b08['currentDocumentSessionVersion']=_0x24df9f['currentDocumentSessionVersion']>>>0x0),null!=_0x24df9f['currentDocumentSessionOperationId']&&(_0x219b08['currentDocumentSessionOperationId']=String(_0x24df9f['currentDocumentSessionOperationId'])),_0x219b08;},_0x325e97['toObject']=function(_0x39e262,_0x1442dd,_0x51f829){if(_0x1442dd||(_0x1442dd={}),void 0x0===_0x51f829&&(_0x51f829=0x0),_0x51f829>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x3d4816={};return _0x1442dd['defaults']&&(_0x3d4816['lastDocumentSessionId']='',_0x3d4816['lastDocumentSessionOperationId']='',_0x3d4816['currentDocumentSessionId']='',_0x3d4816['currentDocumentSessionVersion']=0x0,_0x3d4816['currentDocumentSessionOperationId']=''),null!=_0x39e262['lastDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x39e262,'lastDocumentSessionId')&&(_0x3d4816['lastDocumentSessionId']=_0x39e262['lastDocumentSessionId']),null!=_0x39e262['lastDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x39e262,'lastDocumentSessionOperationId')&&(_0x3d4816['lastDocumentSessionOperationId']=_0x39e262['lastDocumentSessionOperationId']),null!=_0x39e262['currentDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x39e262,'currentDocumentSessionId')&&(_0x3d4816['currentDocumentSessionId']=_0x39e262['currentDocumentSessionId']),null!=_0x39e262['currentDocumentSessionVersion']&&Object['hasOwnProperty']['call'](_0x39e262,'currentDocumentSessionVersion')&&(_0x3d4816['currentDocumentSessionVersion']=_0x39e262['currentDocumentSessionVersion']),null!=_0x39e262['currentDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x39e262,'currentDocumentSessionOperationId')&&(_0x3d4816['currentDocumentSessionOperationId']=_0x39e262['currentDocumentSessionOperationId']),_0x3d4816;},_0x325e97['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x325e97['getTypeUrl']=function(_0x46c76e){return void 0x0===_0x46c76e&&(_0x46c76e='type.googleapis.com'),_0x46c76e+'/GetDocumentDetailsResponse';},_0x325e97;}()),_0x34d3e2['CollaborativeEditingResponse']=(function(){function _0x36c402(_0x188f42){if(this['buffers']=[],this['types']=[],this['metadata']=[],_0x188f42){for(var _0x67d0a0=Object['keys'](_0x188f42),_0xebc5e0=0x0;_0xebc5e0<_0x67d0a0['length'];++_0xebc5e0)null!=_0x188f42[_0x67d0a0[_0xebc5e0]]&&'__proto__'!==_0x67d0a0[_0xebc5e0]&&(this[_0x67d0a0[_0xebc5e0]]=_0x188f42[_0x67d0a0[_0xebc5e0]]);}}return _0x36c402['prototype']['version']=0x0,_0x36c402['prototype']['buffers']=_0x3bb2e6['emptyArray'],_0x36c402['prototype']['types']=_0x3bb2e6['emptyArray'],_0x36c402['prototype']['metadata']=_0x3bb2e6['emptyArray'],_0x36c402['prototype']['lastOperationId']='',_0x36c402['prototype']['lastOperationAcceptedAt']='',_0x36c402['create']=function(_0x3807bc){return new _0x36c402(_0x3807bc);},_0x36c402['encode']=function(_0x20eb09,_0xf34bb3,_0x30cd52){if(_0xf34bb3||(_0xf34bb3=_0x51052a['create']()),void 0x0===_0x30cd52&&(_0x30cd52=0x0),_0x30cd52>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x20eb09['version']&&Object['hasOwnProperty']['call'](_0x20eb09,'version')&&_0xf34bb3['uint32'](0x8)['uint32'](_0x20eb09['version']),null!=_0x20eb09['buffers']&&_0x20eb09['buffers']['length']){for(var _0x917107=0x0;_0x917107<_0x20eb09['buffers']['length'];++_0x917107)_0xf34bb3['uint32'](0x12)['bytes'](_0x20eb09['buffers'][_0x917107]);}if(null!=_0x20eb09['types']&&_0x20eb09['types']['length']){for(_0xf34bb3['uint32'](0x1a)['fork'](),_0x917107=0x0;_0x917107<_0x20eb09['types']['length'];++_0x917107)_0xf34bb3['uint32'](_0x20eb09['types'][_0x917107]);_0xf34bb3['ldelim']();}if(null!=_0x20eb09['metadata']&&_0x20eb09['metadata']['length']){for(_0x917107=0x0;_0x917107<_0x20eb09['metadata']['length'];++_0x917107)_0x34d3e2['OperationMetadataDescriptor']['encode'](_0x20eb09['metadata'][_0x917107],_0xf34bb3['uint32'](0x2a)['fork'](),_0x30cd52+0x1)['ldelim']();}return null!=_0x20eb09['lastOperationId']&&Object['hasOwnProperty']['call'](_0x20eb09,'lastOperationId')&&_0xf34bb3['uint32'](0x32)['string'](_0x20eb09['lastOperationId']),null!=_0x20eb09['lastOperationAcceptedAt']&&Object['hasOwnProperty']['call'](_0x20eb09,'lastOperationAcceptedAt')&&_0xf34bb3['uint32'](0x3a)['string'](_0x20eb09['lastOperationAcceptedAt']),_0xf34bb3;},_0x36c402['encodeDelimited']=function(_0x14da68,_0x530fe5){return this['encode'](_0x14da68,_0x530fe5)['ldelim']();},_0x36c402['decode']=function(_0x1c909e,_0xd52810,_0x3773b7,_0x4167cc){if(_0x1c909e instanceof _0x1f0e29||(_0x1c909e=_0x1f0e29['create'](_0x1c909e)),void 0x0===_0x4167cc&&(_0x4167cc=0x0),_0x4167cc>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x4fcb51=void 0x0===_0xd52810?_0x1c909e['len']:_0x1c909e['pos']+_0xd52810,_0x206cd2=new _0x34d3e2['CollaborativeEditingResponse']();_0x1c909e['pos']<_0x4fcb51;){var _0x3eecc3=_0x1c909e['uint32']();if(_0x3eecc3===_0x3773b7)break;switch(_0x3eecc3>>>0x3){case 0x1:_0x206cd2['version']=_0x1c909e['uint32']();break;case 0x2:_0x206cd2['buffers']&&_0x206cd2['buffers']['length']||(_0x206cd2['buffers']=[]),_0x206cd2['buffers']['push'](_0x1c909e['bytes']());break;case 0x3:if(_0x206cd2['types']&&_0x206cd2['types']['length']||(_0x206cd2['types']=[]),0x2==(0x7&_0x3eecc3)){for(var _0x5470e2=_0x1c909e['uint32']()+_0x1c909e['pos'];_0x1c909e['pos']<_0x5470e2;)_0x206cd2['types']['push'](_0x1c909e['uint32']());}else _0x206cd2['types']['push'](_0x1c909e['uint32']());break;case 0x5:_0x206cd2['metadata']&&_0x206cd2['metadata']['length']||(_0x206cd2['metadata']=[]),_0x206cd2['metadata']['push'](_0x34d3e2['OperationMetadataDescriptor']['decode'](_0x1c909e,_0x1c909e['uint32'](),void 0x0,_0x4167cc+0x1));break;case 0x6:_0x206cd2['lastOperationId']=_0x1c909e['string']();break;case 0x7:_0x206cd2['lastOperationAcceptedAt']=_0x1c909e['string']();break;default:_0x1c909e['skipType'](0x7&_0x3eecc3,_0x4167cc);}}return _0x206cd2;},_0x36c402['decodeDelimited']=function(_0x1ce804){return _0x1ce804 instanceof _0x1f0e29||(_0x1ce804=new _0x1f0e29(_0x1ce804)),this['decode'](_0x1ce804,_0x1ce804['uint32']());},_0x36c402['verify']=function(_0x123979,_0x1b78ab){if('object'!=typeof _0x123979||null===_0x123979)return'object\x20expected';if(void 0x0===_0x1b78ab&&(_0x1b78ab=0x0),_0x1b78ab>_0x3bb2e6['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x123979['version']&&Object['hasOwnProperty']['call'](_0x123979,'version')&&!_0x3bb2e6['isInteger'](_0x123979['version']))return'version:\x20integer\x20expected';if(null!=_0x123979['buffers']&&Object['hasOwnProperty']['call'](_0x123979,'buffers')){if(!Array['isArray'](_0x123979['buffers']))return'buffers:\x20array\x20expected';for(var _0x4a7bbf=0x0;_0x4a7bbf<_0x123979['buffers']['length'];++_0x4a7bbf)if(!(_0x123979['buffers'][_0x4a7bbf]&&'number'==typeof _0x123979['buffers'][_0x4a7bbf]['length']||_0x3bb2e6['isString'](_0x123979['buffers'][_0x4a7bbf])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x123979['types']&&Object['hasOwnProperty']['call'](_0x123979,'types')){if(!Array['isArray'](_0x123979['types']))return'types:\x20array\x20expected';for(_0x4a7bbf=0x0;_0x4a7bbf<_0x123979['types']['length'];++_0x4a7bbf)if(!_0x3bb2e6['isInteger'](_0x123979['types'][_0x4a7bbf]))return'types:\x20integer[]\x20expected';}if(null!=_0x123979['metadata']&&Object['hasOwnProperty']['call'](_0x123979,'metadata')){if(!Array['isArray'](_0x123979['metadata']))return'metadata:\x20array\x20expected';for(_0x4a7bbf=0x0;_0x4a7bbf<_0x123979['metadata']['length'];++_0x4a7bbf){var _0x263ad4=_0x34d3e2['OperationMetadataDescriptor']['verify'](_0x123979['metadata'][_0x4a7bbf],_0x1b78ab+0x1);if(_0x263ad4)return'metadata.'+_0x263ad4;}}return null!=_0x123979['lastOperationId']&&Object['hasOwnProperty']['call'](_0x123979,'lastOperationId')&&!_0x3bb2e6['isString'](_0x123979['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0x123979['lastOperationAcceptedAt']&&Object['hasOwnProperty']['call'](_0x123979,'lastOperationAcceptedAt')&&!_0x3bb2e6['isString'](_0x123979['lastOperationAcceptedAt'])?'lastOperationAcceptedAt:\x20string\x20expected':null;},_0x36c402['fromObject']=function(_0x22ae96,_0x1ba773){if(_0x22ae96 instanceof _0x34d3e2['CollaborativeEditingResponse'])return _0x22ae96;if(!_0x3bb2e6['isObject'](_0x22ae96))throw TypeError('.CollaborativeEditingResponse:\x20object\x20expected');if(void 0x0===_0x1ba773&&(_0x1ba773=0x0),_0x1ba773>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x26daa8=new _0x34d3e2['CollaborativeEditingResponse']();if(null!=_0x22ae96['version']&&(_0x26daa8['version']=_0x22ae96['version']>>>0x0),_0x22ae96['buffers']){if(!Array['isArray'](_0x22ae96['buffers']))throw TypeError('.CollaborativeEditingResponse.buffers:\x20array\x20expected');_0x26daa8['buffers']=[];for(var _0x294ba9=0x0;_0x294ba9<_0x22ae96['buffers']['length'];++_0x294ba9)'string'==typeof _0x22ae96['buffers'][_0x294ba9]?_0x3bb2e6['base64']['decode'](_0x22ae96['buffers'][_0x294ba9],_0x26daa8['buffers'][_0x294ba9]=_0x3bb2e6['newBuffer'](_0x3bb2e6['base64']['length'](_0x22ae96['buffers'][_0x294ba9])),0x0):_0x22ae96['buffers'][_0x294ba9]['length']>=0x0&&(_0x26daa8['buffers'][_0x294ba9]=_0x22ae96['buffers'][_0x294ba9]);}if(_0x22ae96['types']){if(!Array['isArray'](_0x22ae96['types']))throw TypeError('.CollaborativeEditingResponse.types:\x20array\x20expected');for(_0x26daa8['types']=[],_0x294ba9=0x0;_0x294ba9<_0x22ae96['types']['length'];++_0x294ba9)_0x26daa8['types'][_0x294ba9]=_0x22ae96['types'][_0x294ba9]>>>0x0;}if(_0x22ae96['metadata']){if(!Array['isArray'](_0x22ae96['metadata']))throw TypeError('.CollaborativeEditingResponse.metadata:\x20array\x20expected');for(_0x26daa8['metadata']=[],_0x294ba9=0x0;_0x294ba9<_0x22ae96['metadata']['length'];++_0x294ba9){if(!_0x3bb2e6['isObject'](_0x22ae96['metadata'][_0x294ba9]))throw TypeError('.CollaborativeEditingResponse.metadata:\x20object\x20expected');_0x26daa8['metadata'][_0x294ba9]=_0x34d3e2['OperationMetadataDescriptor']['fromObject'](_0x22ae96['metadata'][_0x294ba9],_0x1ba773+0x1);}}return null!=_0x22ae96['lastOperationId']&&(_0x26daa8['lastOperationId']=String(_0x22ae96['lastOperationId'])),null!=_0x22ae96['lastOperationAcceptedAt']&&(_0x26daa8['lastOperationAcceptedAt']=String(_0x22ae96['lastOperationAcceptedAt'])),_0x26daa8;},_0x36c402['toObject']=function(_0x1594da,_0x38450a,_0x3cb11c){if(_0x38450a||(_0x38450a={}),void 0x0===_0x3cb11c&&(_0x3cb11c=0x0),_0x3cb11c>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x18a02a={};if((_0x38450a['arrays']||_0x38450a['defaults'])&&(_0x18a02a['buffers']=[],_0x18a02a['types']=[],_0x18a02a['metadata']=[]),_0x38450a['defaults']&&(_0x18a02a['version']=0x0,_0x18a02a['lastOperationId']='',_0x18a02a['lastOperationAcceptedAt']=''),null!=_0x1594da['version']&&Object['hasOwnProperty']['call'](_0x1594da,'version')&&(_0x18a02a['version']=_0x1594da['version']),_0x1594da['buffers']&&_0x1594da['buffers']['length']){_0x18a02a['buffers']=[];for(var _0x1db5ee=0x0;_0x1db5ee<_0x1594da['buffers']['length'];++_0x1db5ee)_0x18a02a['buffers'][_0x1db5ee]=_0x38450a['bytes']===String?_0x3bb2e6['base64']['encode'](_0x1594da['buffers'][_0x1db5ee],0x0,_0x1594da['buffers'][_0x1db5ee]['length']):_0x38450a['bytes']===Array?Array['prototype']['slice']['call'](_0x1594da['buffers'][_0x1db5ee]):_0x1594da['buffers'][_0x1db5ee];}if(_0x1594da['types']&&_0x1594da['types']['length']){for(_0x18a02a['types']=[],_0x1db5ee=0x0;_0x1db5ee<_0x1594da['types']['length'];++_0x1db5ee)_0x18a02a['types'][_0x1db5ee]=_0x1594da['types'][_0x1db5ee];}if(_0x1594da['metadata']&&_0x1594da['metadata']['length']){for(_0x18a02a['metadata']=[],_0x1db5ee=0x0;_0x1db5ee<_0x1594da['metadata']['length'];++_0x1db5ee)_0x18a02a['metadata'][_0x1db5ee]=_0x34d3e2['OperationMetadataDescriptor']['toObject'](_0x1594da['metadata'][_0x1db5ee],_0x38450a,_0x3cb11c+0x1);}return null!=_0x1594da['lastOperationId']&&Object['hasOwnProperty']['call'](_0x1594da,'lastOperationId')&&(_0x18a02a['lastOperationId']=_0x1594da['lastOperationId']),null!=_0x1594da['lastOperationAcceptedAt']&&Object['hasOwnProperty']['call'](_0x1594da,'lastOperationAcceptedAt')&&(_0x18a02a['lastOperationAcceptedAt']=_0x1594da['lastOperationAcceptedAt']),_0x18a02a;},_0x36c402['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x36c402['getTypeUrl']=function(_0x44df49){return void 0x0===_0x44df49&&(_0x44df49='type.googleapis.com'),_0x44df49+'/CollaborativeEditingResponse';},_0x36c402;}()),_0x34d3e2['CollaborativeEditingConnectResponse']=(function(){function _0x3a235f(_0x593254){if(this['buffers']=[],this['types']=[],this['metadata']=[],_0x593254){for(var _0xb922e9=Object['keys'](_0x593254),_0x394738=0x0;_0x394738<_0xb922e9['length'];++_0x394738)null!=_0x593254[_0xb922e9[_0x394738]]&&'__proto__'!==_0xb922e9[_0x394738]&&(this[_0xb922e9[_0x394738]]=_0x593254[_0xb922e9[_0x394738]]);}}return _0x3a235f['prototype']['channel']='',_0x3a235f['prototype']['offset']=0x0,_0x3a235f['prototype']['version']=0x0,_0x3a235f['prototype']['buffers']=_0x3bb2e6['emptyArray'],_0x3a235f['prototype']['types']=_0x3bb2e6['emptyArray'],_0x3a235f['prototype']['metadata']=_0x3bb2e6['emptyArray'],_0x3a235f['prototype']['initData']='',_0x3a235f['prototype']['isInitialized']=!0x1,_0x3a235f['prototype']['sessionId']='',_0x3a235f['prototype']['lastOperationId']='',_0x3a235f['prototype']['sessionCreatedAt']='',_0x3a235f['create']=function(_0x3b16e4){return new _0x3a235f(_0x3b16e4);},_0x3a235f['encode']=function(_0x12dacb,_0x4d7cd6,_0x3389af){if(_0x4d7cd6||(_0x4d7cd6=_0x51052a['create']()),void 0x0===_0x3389af&&(_0x3389af=0x0),_0x3389af>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x12dacb['channel']&&Object['hasOwnProperty']['call'](_0x12dacb,'channel')&&_0x4d7cd6['uint32'](0xa)['string'](_0x12dacb['channel']),null!=_0x12dacb['offset']&&Object['hasOwnProperty']['call'](_0x12dacb,'offset')&&_0x4d7cd6['uint32'](0x10)['uint32'](_0x12dacb['offset']),null!=_0x12dacb['version']&&Object['hasOwnProperty']['call'](_0x12dacb,'version')&&_0x4d7cd6['uint32'](0x18)['uint32'](_0x12dacb['version']),null!=_0x12dacb['buffers']&&_0x12dacb['buffers']['length']){for(var _0x1943fe=0x0;_0x1943fe<_0x12dacb['buffers']['length'];++_0x1943fe)_0x4d7cd6['uint32'](0x22)['bytes'](_0x12dacb['buffers'][_0x1943fe]);}if(null!=_0x12dacb['types']&&_0x12dacb['types']['length']){for(_0x4d7cd6['uint32'](0x2a)['fork'](),_0x1943fe=0x0;_0x1943fe<_0x12dacb['types']['length'];++_0x1943fe)_0x4d7cd6['uint32'](_0x12dacb['types'][_0x1943fe]);_0x4d7cd6['ldelim']();}if(null!=_0x12dacb['metadata']&&_0x12dacb['metadata']['length']){for(_0x1943fe=0x0;_0x1943fe<_0x12dacb['metadata']['length'];++_0x1943fe)_0x34d3e2['OperationMetadataDescriptor']['encode'](_0x12dacb['metadata'][_0x1943fe],_0x4d7cd6['uint32'](0x3a)['fork'](),_0x3389af+0x1)['ldelim']();}return null!=_0x12dacb['initData']&&Object['hasOwnProperty']['call'](_0x12dacb,'initData')&&_0x4d7cd6['uint32'](0x42)['string'](_0x12dacb['initData']),null!=_0x12dacb['isInitialized']&&Object['hasOwnProperty']['call'](_0x12dacb,'isInitialized')&&_0x4d7cd6['uint32'](0x48)['bool'](_0x12dacb['isInitialized']),null!=_0x12dacb['sessionId']&&Object['hasOwnProperty']['call'](_0x12dacb,'sessionId')&&_0x4d7cd6['uint32'](0x52)['string'](_0x12dacb['sessionId']),null!=_0x12dacb['lastOperationId']&&Object['hasOwnProperty']['call'](_0x12dacb,'lastOperationId')&&_0x4d7cd6['uint32'](0x5a)['string'](_0x12dacb['lastOperationId']),null!=_0x12dacb['sessionCreatedAt']&&Object['hasOwnProperty']['call'](_0x12dacb,'sessionCreatedAt')&&_0x4d7cd6['uint32'](0x62)['string'](_0x12dacb['sessionCreatedAt']),_0x4d7cd6;},_0x3a235f['encodeDelimited']=function(_0x150198,_0x40c067){return this['encode'](_0x150198,_0x40c067)['ldelim']();},_0x3a235f['decode']=function(_0x502164,_0x377339,_0x554403,_0x958f57){if(_0x502164 instanceof _0x1f0e29||(_0x502164=_0x1f0e29['create'](_0x502164)),void 0x0===_0x958f57&&(_0x958f57=0x0),_0x958f57>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x450e95=void 0x0===_0x377339?_0x502164['len']:_0x502164['pos']+_0x377339,_0x50a331=new _0x34d3e2['CollaborativeEditingConnectResponse']();_0x502164['pos']<_0x450e95;){var _0x4ff9b5=_0x502164['uint32']();if(_0x4ff9b5===_0x554403)break;switch(_0x4ff9b5>>>0x3){case 0x1:_0x50a331['channel']=_0x502164['string']();break;case 0x2:_0x50a331['offset']=_0x502164['uint32']();break;case 0x3:_0x50a331['version']=_0x502164['uint32']();break;case 0x4:_0x50a331['buffers']&&_0x50a331['buffers']['length']||(_0x50a331['buffers']=[]),_0x50a331['buffers']['push'](_0x502164['bytes']());break;case 0x5:if(_0x50a331['types']&&_0x50a331['types']['length']||(_0x50a331['types']=[]),0x2==(0x7&_0x4ff9b5)){for(var _0x247b94=_0x502164['uint32']()+_0x502164['pos'];_0x502164['pos']<_0x247b94;)_0x50a331['types']['push'](_0x502164['uint32']());}else _0x50a331['types']['push'](_0x502164['uint32']());break;case 0x7:_0x50a331['metadata']&&_0x50a331['metadata']['length']||(_0x50a331['metadata']=[]),_0x50a331['metadata']['push'](_0x34d3e2['OperationMetadataDescriptor']['decode'](_0x502164,_0x502164['uint32'](),void 0x0,_0x958f57+0x1));break;case 0x8:_0x50a331['initData']=_0x502164['string']();break;case 0x9:_0x50a331['isInitialized']=_0x502164['bool']();break;case 0xa:_0x50a331['sessionId']=_0x502164['string']();break;case 0xb:_0x50a331['lastOperationId']=_0x502164['string']();break;case 0xc:_0x50a331['sessionCreatedAt']=_0x502164['string']();break;default:_0x502164['skipType'](0x7&_0x4ff9b5,_0x958f57);}}return _0x50a331;},_0x3a235f['decodeDelimited']=function(_0x37e4ab){return _0x37e4ab instanceof _0x1f0e29||(_0x37e4ab=new _0x1f0e29(_0x37e4ab)),this['decode'](_0x37e4ab,_0x37e4ab['uint32']());},_0x3a235f['verify']=function(_0x51d961,_0xdafa8b){if('object'!=typeof _0x51d961||null===_0x51d961)return'object\x20expected';if(void 0x0===_0xdafa8b&&(_0xdafa8b=0x0),_0xdafa8b>_0x3bb2e6['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x51d961['channel']&&Object['hasOwnProperty']['call'](_0x51d961,'channel')&&!_0x3bb2e6['isString'](_0x51d961['channel']))return'channel:\x20string\x20expected';if(null!=_0x51d961['offset']&&Object['hasOwnProperty']['call'](_0x51d961,'offset')&&!_0x3bb2e6['isInteger'](_0x51d961['offset']))return'offset:\x20integer\x20expected';if(null!=_0x51d961['version']&&Object['hasOwnProperty']['call'](_0x51d961,'version')&&!_0x3bb2e6['isInteger'](_0x51d961['version']))return'version:\x20integer\x20expected';if(null!=_0x51d961['buffers']&&Object['hasOwnProperty']['call'](_0x51d961,'buffers')){if(!Array['isArray'](_0x51d961['buffers']))return'buffers:\x20array\x20expected';for(var _0xe1dbf8=0x0;_0xe1dbf8<_0x51d961['buffers']['length'];++_0xe1dbf8)if(!(_0x51d961['buffers'][_0xe1dbf8]&&'number'==typeof _0x51d961['buffers'][_0xe1dbf8]['length']||_0x3bb2e6['isString'](_0x51d961['buffers'][_0xe1dbf8])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x51d961['types']&&Object['hasOwnProperty']['call'](_0x51d961,'types')){if(!Array['isArray'](_0x51d961['types']))return'types:\x20array\x20expected';for(_0xe1dbf8=0x0;_0xe1dbf8<_0x51d961['types']['length'];++_0xe1dbf8)if(!_0x3bb2e6['isInteger'](_0x51d961['types'][_0xe1dbf8]))return'types:\x20integer[]\x20expected';}if(null!=_0x51d961['metadata']&&Object['hasOwnProperty']['call'](_0x51d961,'metadata')){if(!Array['isArray'](_0x51d961['metadata']))return'metadata:\x20array\x20expected';for(_0xe1dbf8=0x0;_0xe1dbf8<_0x51d961['metadata']['length'];++_0xe1dbf8){var _0x22b306=_0x34d3e2['OperationMetadataDescriptor']['verify'](_0x51d961['metadata'][_0xe1dbf8],_0xdafa8b+0x1);if(_0x22b306)return'metadata.'+_0x22b306;}}return null!=_0x51d961['initData']&&Object['hasOwnProperty']['call'](_0x51d961,'initData')&&!_0x3bb2e6['isString'](_0x51d961['initData'])?'initData:\x20string\x20expected':null!=_0x51d961['isInitialized']&&Object['hasOwnProperty']['call'](_0x51d961,'isInitialized')&&'boolean'!=typeof _0x51d961['isInitialized']?'isInitialized:\x20boolean\x20expected':null!=_0x51d961['sessionId']&&Object['hasOwnProperty']['call'](_0x51d961,'sessionId')&&!_0x3bb2e6['isString'](_0x51d961['sessionId'])?'sessionId:\x20string\x20expected':null!=_0x51d961['lastOperationId']&&Object['hasOwnProperty']['call'](_0x51d961,'lastOperationId')&&!_0x3bb2e6['isString'](_0x51d961['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0x51d961['sessionCreatedAt']&&Object['hasOwnProperty']['call'](_0x51d961,'sessionCreatedAt')&&!_0x3bb2e6['isString'](_0x51d961['sessionCreatedAt'])?'sessionCreatedAt:\x20string\x20expected':null;},_0x3a235f['fromObject']=function(_0x4b5518,_0x1b196d){if(_0x4b5518 instanceof _0x34d3e2['CollaborativeEditingConnectResponse'])return _0x4b5518;if(!_0x3bb2e6['isObject'](_0x4b5518))throw TypeError('.CollaborativeEditingConnectResponse:\x20object\x20expected');if(void 0x0===_0x1b196d&&(_0x1b196d=0x0),_0x1b196d>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x18131f=new _0x34d3e2['CollaborativeEditingConnectResponse']();if(null!=_0x4b5518['channel']&&(_0x18131f['channel']=String(_0x4b5518['channel'])),null!=_0x4b5518['offset']&&(_0x18131f['offset']=_0x4b5518['offset']>>>0x0),null!=_0x4b5518['version']&&(_0x18131f['version']=_0x4b5518['version']>>>0x0),_0x4b5518['buffers']){if(!Array['isArray'](_0x4b5518['buffers']))throw TypeError('.CollaborativeEditingConnectResponse.buffers:\x20array\x20expected');_0x18131f['buffers']=[];for(var _0x1dfa99=0x0;_0x1dfa99<_0x4b5518['buffers']['length'];++_0x1dfa99)'string'==typeof _0x4b5518['buffers'][_0x1dfa99]?_0x3bb2e6['base64']['decode'](_0x4b5518['buffers'][_0x1dfa99],_0x18131f['buffers'][_0x1dfa99]=_0x3bb2e6['newBuffer'](_0x3bb2e6['base64']['length'](_0x4b5518['buffers'][_0x1dfa99])),0x0):_0x4b5518['buffers'][_0x1dfa99]['length']>=0x0&&(_0x18131f['buffers'][_0x1dfa99]=_0x4b5518['buffers'][_0x1dfa99]);}if(_0x4b5518['types']){if(!Array['isArray'](_0x4b5518['types']))throw TypeError('.CollaborativeEditingConnectResponse.types:\x20array\x20expected');for(_0x18131f['types']=[],_0x1dfa99=0x0;_0x1dfa99<_0x4b5518['types']['length'];++_0x1dfa99)_0x18131f['types'][_0x1dfa99]=_0x4b5518['types'][_0x1dfa99]>>>0x0;}if(_0x4b5518['metadata']){if(!Array['isArray'](_0x4b5518['metadata']))throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20array\x20expected');for(_0x18131f['metadata']=[],_0x1dfa99=0x0;_0x1dfa99<_0x4b5518['metadata']['length'];++_0x1dfa99){if(!_0x3bb2e6['isObject'](_0x4b5518['metadata'][_0x1dfa99]))throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20object\x20expected');_0x18131f['metadata'][_0x1dfa99]=_0x34d3e2['OperationMetadataDescriptor']['fromObject'](_0x4b5518['metadata'][_0x1dfa99],_0x1b196d+0x1);}}return null!=_0x4b5518['initData']&&(_0x18131f['initData']=String(_0x4b5518['initData'])),null!=_0x4b5518['isInitialized']&&(_0x18131f['isInitialized']=Boolean(_0x4b5518['isInitialized'])),null!=_0x4b5518['sessionId']&&(_0x18131f['sessionId']=String(_0x4b5518['sessionId'])),null!=_0x4b5518['lastOperationId']&&(_0x18131f['lastOperationId']=String(_0x4b5518['lastOperationId'])),null!=_0x4b5518['sessionCreatedAt']&&(_0x18131f['sessionCreatedAt']=String(_0x4b5518['sessionCreatedAt'])),_0x18131f;},_0x3a235f['toObject']=function(_0x1ad9f5,_0xc2a44c,_0x485b12){if(_0xc2a44c||(_0xc2a44c={}),void 0x0===_0x485b12&&(_0x485b12=0x0),_0x485b12>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x355be3={};if((_0xc2a44c['arrays']||_0xc2a44c['defaults'])&&(_0x355be3['buffers']=[],_0x355be3['types']=[],_0x355be3['metadata']=[]),_0xc2a44c['defaults']&&(_0x355be3['channel']='',_0x355be3['offset']=0x0,_0x355be3['version']=0x0,_0x355be3['initData']='',_0x355be3['isInitialized']=!0x1,_0x355be3['sessionId']='',_0x355be3['lastOperationId']='',_0x355be3['sessionCreatedAt']=''),null!=_0x1ad9f5['channel']&&Object['hasOwnProperty']['call'](_0x1ad9f5,'channel')&&(_0x355be3['channel']=_0x1ad9f5['channel']),null!=_0x1ad9f5['offset']&&Object['hasOwnProperty']['call'](_0x1ad9f5,'offset')&&(_0x355be3['offset']=_0x1ad9f5['offset']),null!=_0x1ad9f5['version']&&Object['hasOwnProperty']['call'](_0x1ad9f5,'version')&&(_0x355be3['version']=_0x1ad9f5['version']),_0x1ad9f5['buffers']&&_0x1ad9f5['buffers']['length']){_0x355be3['buffers']=[];for(var _0x582f52=0x0;_0x582f52<_0x1ad9f5['buffers']['length'];++_0x582f52)_0x355be3['buffers'][_0x582f52]=_0xc2a44c['bytes']===String?_0x3bb2e6['base64']['encode'](_0x1ad9f5['buffers'][_0x582f52],0x0,_0x1ad9f5['buffers'][_0x582f52]['length']):_0xc2a44c['bytes']===Array?Array['prototype']['slice']['call'](_0x1ad9f5['buffers'][_0x582f52]):_0x1ad9f5['buffers'][_0x582f52];}if(_0x1ad9f5['types']&&_0x1ad9f5['types']['length']){for(_0x355be3['types']=[],_0x582f52=0x0;_0x582f52<_0x1ad9f5['types']['length'];++_0x582f52)_0x355be3['types'][_0x582f52]=_0x1ad9f5['types'][_0x582f52];}if(_0x1ad9f5['metadata']&&_0x1ad9f5['metadata']['length']){for(_0x355be3['metadata']=[],_0x582f52=0x0;_0x582f52<_0x1ad9f5['metadata']['length'];++_0x582f52)_0x355be3['metadata'][_0x582f52]=_0x34d3e2['OperationMetadataDescriptor']['toObject'](_0x1ad9f5['metadata'][_0x582f52],_0xc2a44c,_0x485b12+0x1);}return null!=_0x1ad9f5['initData']&&Object['hasOwnProperty']['call'](_0x1ad9f5,'initData')&&(_0x355be3['initData']=_0x1ad9f5['initData']),null!=_0x1ad9f5['isInitialized']&&Object['hasOwnProperty']['call'](_0x1ad9f5,'isInitialized')&&(_0x355be3['isInitialized']=_0x1ad9f5['isInitialized']),null!=_0x1ad9f5['sessionId']&&Object['hasOwnProperty']['call'](_0x1ad9f5,'sessionId')&&(_0x355be3['sessionId']=_0x1ad9f5['sessionId']),null!=_0x1ad9f5['lastOperationId']&&Object['hasOwnProperty']['call'](_0x1ad9f5,'lastOperationId')&&(_0x355be3['lastOperationId']=_0x1ad9f5['lastOperationId']),null!=_0x1ad9f5['sessionCreatedAt']&&Object['hasOwnProperty']['call'](_0x1ad9f5,'sessionCreatedAt')&&(_0x355be3['sessionCreatedAt']=_0x1ad9f5['sessionCreatedAt']),_0x355be3;},_0x3a235f['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x3a235f['getTypeUrl']=function(_0x250e33){return void 0x0===_0x250e33&&(_0x250e33='type.googleapis.com'),_0x250e33+'/CollaborativeEditingConnectResponse';},_0x3a235f;}()),_0x34d3e2['GetDocumentDetailsMessage']=(function(){function _0x88d108(_0x3f98ff){if(_0x3f98ff){for(var _0x229267=Object['keys'](_0x3f98ff),_0xb663fc=0x0;_0xb663fc<_0x229267['length'];++_0xb663fc)null!=_0x3f98ff[_0x229267[_0xb663fc]]&&'__proto__'!==_0x229267[_0xb663fc]&&(this[_0x229267[_0xb663fc]]=_0x3f98ff[_0x229267[_0xb663fc]]);}}return _0x88d108['prototype']['documentId']='',_0x88d108['prototype']['environmentId']='',_0x88d108['create']=function(_0x2a2ec4){return new _0x88d108(_0x2a2ec4);},_0x88d108['encode']=function(_0x170df4,_0x3dc413,_0x28bcbd){if(_0x3dc413||(_0x3dc413=_0x51052a['create']()),void 0x0===_0x28bcbd&&(_0x28bcbd=0x0),_0x28bcbd>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x170df4['documentId']&&Object['hasOwnProperty']['call'](_0x170df4,'documentId')&&_0x3dc413['uint32'](0xa)['string'](_0x170df4['documentId']),null!=_0x170df4['environmentId']&&Object['hasOwnProperty']['call'](_0x170df4,'environmentId')&&_0x3dc413['uint32'](0x12)['string'](_0x170df4['environmentId']),_0x3dc413;},_0x88d108['encodeDelimited']=function(_0x559cc,_0x388e5d){return this['encode'](_0x559cc,_0x388e5d)['ldelim']();},_0x88d108['decode']=function(_0xf9e94,_0x11c71e,_0x207d51,_0x434ec9){if(_0xf9e94 instanceof _0x1f0e29||(_0xf9e94=_0x1f0e29['create'](_0xf9e94)),void 0x0===_0x434ec9&&(_0x434ec9=0x0),_0x434ec9>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x4636be=void 0x0===_0x11c71e?_0xf9e94['len']:_0xf9e94['pos']+_0x11c71e,_0x194a6=new _0x34d3e2['GetDocumentDetailsMessage']();_0xf9e94['pos']<_0x4636be;){var _0x44f78f=_0xf9e94['uint32']();if(_0x44f78f===_0x207d51)break;switch(_0x44f78f>>>0x3){case 0x1:_0x194a6['documentId']=_0xf9e94['string']();break;case 0x2:_0x194a6['environmentId']=_0xf9e94['string']();break;default:_0xf9e94['skipType'](0x7&_0x44f78f,_0x434ec9);}}return _0x194a6;},_0x88d108['decodeDelimited']=function(_0x341359){return _0x341359 instanceof _0x1f0e29||(_0x341359=new _0x1f0e29(_0x341359)),this['decode'](_0x341359,_0x341359['uint32']());},_0x88d108['verify']=function(_0x54aba2,_0x2432c6){return'object'!=typeof _0x54aba2||null===_0x54aba2?'object\x20expected':(void 0x0===_0x2432c6&&(_0x2432c6=0x0),_0x2432c6>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x54aba2['documentId']&&Object['hasOwnProperty']['call'](_0x54aba2,'documentId')&&!_0x3bb2e6['isString'](_0x54aba2['documentId'])?'documentId:\x20string\x20expected':null!=_0x54aba2['environmentId']&&Object['hasOwnProperty']['call'](_0x54aba2,'environmentId')&&!_0x3bb2e6['isString'](_0x54aba2['environmentId'])?'environmentId:\x20string\x20expected':null);},_0x88d108['fromObject']=function(_0x5e316d,_0x15f227){if(_0x5e316d instanceof _0x34d3e2['GetDocumentDetailsMessage'])return _0x5e316d;if(!_0x3bb2e6['isObject'](_0x5e316d))throw TypeError('.GetDocumentDetailsMessage:\x20object\x20expected');if(void 0x0===_0x15f227&&(_0x15f227=0x0),_0x15f227>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x5418e7=new _0x34d3e2['GetDocumentDetailsMessage']();return null!=_0x5e316d['documentId']&&(_0x5418e7['documentId']=String(_0x5e316d['documentId'])),null!=_0x5e316d['environmentId']&&(_0x5418e7['environmentId']=String(_0x5e316d['environmentId'])),_0x5418e7;},_0x88d108['toObject']=function(_0x22f861,_0x5dfe7f,_0x3338b9){if(_0x5dfe7f||(_0x5dfe7f={}),void 0x0===_0x3338b9&&(_0x3338b9=0x0),_0x3338b9>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x3dfc39={};return _0x5dfe7f['defaults']&&(_0x3dfc39['documentId']='',_0x3dfc39['environmentId']=''),null!=_0x22f861['documentId']&&Object['hasOwnProperty']['call'](_0x22f861,'documentId')&&(_0x3dfc39['documentId']=_0x22f861['documentId']),null!=_0x22f861['environmentId']&&Object['hasOwnProperty']['call'](_0x22f861,'environmentId')&&(_0x3dfc39['environmentId']=_0x22f861['environmentId']),_0x3dfc39;},_0x88d108['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x88d108['getTypeUrl']=function(_0x2ba704){return void 0x0===_0x2ba704&&(_0x2ba704='type.googleapis.com'),_0x2ba704+'/GetDocumentDetailsMessage';},_0x88d108;}()),_0x34d3e2['CollaborativeEditingUpdateMessage']=(function(){function _0x2a1245(_0x42a34e){if(this['buffers']=[],this['types']=[],this['metadata']=[],_0x42a34e){for(var _0x49bfe0=Object['keys'](_0x42a34e),_0x2954c4=0x0;_0x2954c4<_0x49bfe0['length'];++_0x2954c4)null!=_0x42a34e[_0x49bfe0[_0x2954c4]]&&'__proto__'!==_0x49bfe0[_0x2954c4]&&(this[_0x49bfe0[_0x2954c4]]=_0x42a34e[_0x49bfe0[_0x2954c4]]);}}return _0x2a1245['prototype']['id']='',_0x2a1245['prototype']['baseVersion']=0x0,_0x2a1245['prototype']['buffers']=_0x3bb2e6['emptyArray'],_0x2a1245['prototype']['types']=_0x3bb2e6['emptyArray'],_0x2a1245['prototype']['metadata']=_0x3bb2e6['emptyArray'],_0x2a1245['prototype']['lastOperationId']='',_0x2a1245['create']=function(_0x3971d0){return new _0x2a1245(_0x3971d0);},_0x2a1245['encode']=function(_0x3c22a2,_0x54b287,_0x12a2cd){if(_0x54b287||(_0x54b287=_0x51052a['create']()),void 0x0===_0x12a2cd&&(_0x12a2cd=0x0),_0x12a2cd>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x3c22a2['id']&&Object['hasOwnProperty']['call'](_0x3c22a2,'id')&&_0x54b287['uint32'](0xa)['string'](_0x3c22a2['id']),null!=_0x3c22a2['baseVersion']&&Object['hasOwnProperty']['call'](_0x3c22a2,'baseVersion')&&_0x54b287['uint32'](0x10)['uint32'](_0x3c22a2['baseVersion']),null!=_0x3c22a2['buffers']&&_0x3c22a2['buffers']['length']){for(var _0x4b8258=0x0;_0x4b8258<_0x3c22a2['buffers']['length'];++_0x4b8258)_0x54b287['uint32'](0x1a)['bytes'](_0x3c22a2['buffers'][_0x4b8258]);}if(null!=_0x3c22a2['types']&&_0x3c22a2['types']['length']){for(_0x54b287['uint32'](0x22)['fork'](),_0x4b8258=0x0;_0x4b8258<_0x3c22a2['types']['length'];++_0x4b8258)_0x54b287['uint32'](_0x3c22a2['types'][_0x4b8258]);_0x54b287['ldelim']();}if(null!=_0x3c22a2['metadata']&&_0x3c22a2['metadata']['length']){for(_0x4b8258=0x0;_0x4b8258<_0x3c22a2['metadata']['length'];++_0x4b8258)_0x34d3e2['OperationMetadataDescriptor']['encode'](_0x3c22a2['metadata'][_0x4b8258],_0x54b287['uint32'](0x32)['fork'](),_0x12a2cd+0x1)['ldelim']();}return null!=_0x3c22a2['lastOperationId']&&Object['hasOwnProperty']['call'](_0x3c22a2,'lastOperationId')&&_0x54b287['uint32'](0x3a)['string'](_0x3c22a2['lastOperationId']),_0x54b287;},_0x2a1245['encodeDelimited']=function(_0x591992,_0x2f8f8d){return this['encode'](_0x591992,_0x2f8f8d)['ldelim']();},_0x2a1245['decode']=function(_0x57ccd1,_0x53f36e,_0x2c28ce,_0x336a41){if(_0x57ccd1 instanceof _0x1f0e29||(_0x57ccd1=_0x1f0e29['create'](_0x57ccd1)),void 0x0===_0x336a41&&(_0x336a41=0x0),_0x336a41>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x29a3b2=void 0x0===_0x53f36e?_0x57ccd1['len']:_0x57ccd1['pos']+_0x53f36e,_0x182e79=new _0x34d3e2['CollaborativeEditingUpdateMessage']();_0x57ccd1['pos']<_0x29a3b2;){var _0x1722c5=_0x57ccd1['uint32']();if(_0x1722c5===_0x2c28ce)break;switch(_0x1722c5>>>0x3){case 0x1:_0x182e79['id']=_0x57ccd1['string']();break;case 0x2:_0x182e79['baseVersion']=_0x57ccd1['uint32']();break;case 0x3:_0x182e79['buffers']&&_0x182e79['buffers']['length']||(_0x182e79['buffers']=[]),_0x182e79['buffers']['push'](_0x57ccd1['bytes']());break;case 0x4:if(_0x182e79['types']&&_0x182e79['types']['length']||(_0x182e79['types']=[]),0x2==(0x7&_0x1722c5)){for(var _0x4f1b16=_0x57ccd1['uint32']()+_0x57ccd1['pos'];_0x57ccd1['pos']<_0x4f1b16;)_0x182e79['types']['push'](_0x57ccd1['uint32']());}else _0x182e79['types']['push'](_0x57ccd1['uint32']());break;case 0x6:_0x182e79['metadata']&&_0x182e79['metadata']['length']||(_0x182e79['metadata']=[]),_0x182e79['metadata']['push'](_0x34d3e2['OperationMetadataDescriptor']['decode'](_0x57ccd1,_0x57ccd1['uint32'](),void 0x0,_0x336a41+0x1));break;case 0x7:_0x182e79['lastOperationId']=_0x57ccd1['string']();break;default:_0x57ccd1['skipType'](0x7&_0x1722c5,_0x336a41);}}return _0x182e79;},_0x2a1245['decodeDelimited']=function(_0xa409ac){return _0xa409ac instanceof _0x1f0e29||(_0xa409ac=new _0x1f0e29(_0xa409ac)),this['decode'](_0xa409ac,_0xa409ac['uint32']());},_0x2a1245['verify']=function(_0x26aa83,_0x49a5d9){if('object'!=typeof _0x26aa83||null===_0x26aa83)return'object\x20expected';if(void 0x0===_0x49a5d9&&(_0x49a5d9=0x0),_0x49a5d9>_0x3bb2e6['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x26aa83['id']&&Object['hasOwnProperty']['call'](_0x26aa83,'id')&&!_0x3bb2e6['isString'](_0x26aa83['id']))return'id:\x20string\x20expected';if(null!=_0x26aa83['baseVersion']&&Object['hasOwnProperty']['call'](_0x26aa83,'baseVersion')&&!_0x3bb2e6['isInteger'](_0x26aa83['baseVersion']))return'baseVersion:\x20integer\x20expected';if(null!=_0x26aa83['buffers']&&Object['hasOwnProperty']['call'](_0x26aa83,'buffers')){if(!Array['isArray'](_0x26aa83['buffers']))return'buffers:\x20array\x20expected';for(var _0x588e9f=0x0;_0x588e9f<_0x26aa83['buffers']['length'];++_0x588e9f)if(!(_0x26aa83['buffers'][_0x588e9f]&&'number'==typeof _0x26aa83['buffers'][_0x588e9f]['length']||_0x3bb2e6['isString'](_0x26aa83['buffers'][_0x588e9f])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x26aa83['types']&&Object['hasOwnProperty']['call'](_0x26aa83,'types')){if(!Array['isArray'](_0x26aa83['types']))return'types:\x20array\x20expected';for(_0x588e9f=0x0;_0x588e9f<_0x26aa83['types']['length'];++_0x588e9f)if(!_0x3bb2e6['isInteger'](_0x26aa83['types'][_0x588e9f]))return'types:\x20integer[]\x20expected';}if(null!=_0x26aa83['metadata']&&Object['hasOwnProperty']['call'](_0x26aa83,'metadata')){if(!Array['isArray'](_0x26aa83['metadata']))return'metadata:\x20array\x20expected';for(_0x588e9f=0x0;_0x588e9f<_0x26aa83['metadata']['length'];++_0x588e9f){var _0x36b9b2=_0x34d3e2['OperationMetadataDescriptor']['verify'](_0x26aa83['metadata'][_0x588e9f],_0x49a5d9+0x1);if(_0x36b9b2)return'metadata.'+_0x36b9b2;}}return null!=_0x26aa83['lastOperationId']&&Object['hasOwnProperty']['call'](_0x26aa83,'lastOperationId')&&!_0x3bb2e6['isString'](_0x26aa83['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},_0x2a1245['fromObject']=function(_0x420d5e,_0xd6db28){if(_0x420d5e instanceof _0x34d3e2['CollaborativeEditingUpdateMessage'])return _0x420d5e;if(!_0x3bb2e6['isObject'](_0x420d5e))throw TypeError('.CollaborativeEditingUpdateMessage:\x20object\x20expected');if(void 0x0===_0xd6db28&&(_0xd6db28=0x0),_0xd6db28>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x3bdf06=new _0x34d3e2['CollaborativeEditingUpdateMessage']();if(null!=_0x420d5e['id']&&(_0x3bdf06['id']=String(_0x420d5e['id'])),null!=_0x420d5e['baseVersion']&&(_0x3bdf06['baseVersion']=_0x420d5e['baseVersion']>>>0x0),_0x420d5e['buffers']){if(!Array['isArray'](_0x420d5e['buffers']))throw TypeError('.CollaborativeEditingUpdateMessage.buffers:\x20array\x20expected');_0x3bdf06['buffers']=[];for(var _0x5eefe0=0x0;_0x5eefe0<_0x420d5e['buffers']['length'];++_0x5eefe0)'string'==typeof _0x420d5e['buffers'][_0x5eefe0]?_0x3bb2e6['base64']['decode'](_0x420d5e['buffers'][_0x5eefe0],_0x3bdf06['buffers'][_0x5eefe0]=_0x3bb2e6['newBuffer'](_0x3bb2e6['base64']['length'](_0x420d5e['buffers'][_0x5eefe0])),0x0):_0x420d5e['buffers'][_0x5eefe0]['length']>=0x0&&(_0x3bdf06['buffers'][_0x5eefe0]=_0x420d5e['buffers'][_0x5eefe0]);}if(_0x420d5e['types']){if(!Array['isArray'](_0x420d5e['types']))throw TypeError('.CollaborativeEditingUpdateMessage.types:\x20array\x20expected');for(_0x3bdf06['types']=[],_0x5eefe0=0x0;_0x5eefe0<_0x420d5e['types']['length'];++_0x5eefe0)_0x3bdf06['types'][_0x5eefe0]=_0x420d5e['types'][_0x5eefe0]>>>0x0;}if(_0x420d5e['metadata']){if(!Array['isArray'](_0x420d5e['metadata']))throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20array\x20expected');for(_0x3bdf06['metadata']=[],_0x5eefe0=0x0;_0x5eefe0<_0x420d5e['metadata']['length'];++_0x5eefe0){if(!_0x3bb2e6['isObject'](_0x420d5e['metadata'][_0x5eefe0]))throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20object\x20expected');_0x3bdf06['metadata'][_0x5eefe0]=_0x34d3e2['OperationMetadataDescriptor']['fromObject'](_0x420d5e['metadata'][_0x5eefe0],_0xd6db28+0x1);}}return null!=_0x420d5e['lastOperationId']&&(_0x3bdf06['lastOperationId']=String(_0x420d5e['lastOperationId'])),_0x3bdf06;},_0x2a1245['toObject']=function(_0x3d369c,_0xaf33ab,_0x1bd9ed){if(_0xaf33ab||(_0xaf33ab={}),void 0x0===_0x1bd9ed&&(_0x1bd9ed=0x0),_0x1bd9ed>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0xe20ba1={};if((_0xaf33ab['arrays']||_0xaf33ab['defaults'])&&(_0xe20ba1['buffers']=[],_0xe20ba1['types']=[],_0xe20ba1['metadata']=[]),_0xaf33ab['defaults']&&(_0xe20ba1['id']='',_0xe20ba1['baseVersion']=0x0,_0xe20ba1['lastOperationId']=''),null!=_0x3d369c['id']&&Object['hasOwnProperty']['call'](_0x3d369c,'id')&&(_0xe20ba1['id']=_0x3d369c['id']),null!=_0x3d369c['baseVersion']&&Object['hasOwnProperty']['call'](_0x3d369c,'baseVersion')&&(_0xe20ba1['baseVersion']=_0x3d369c['baseVersion']),_0x3d369c['buffers']&&_0x3d369c['buffers']['length']){_0xe20ba1['buffers']=[];for(var _0x59c2f0=0x0;_0x59c2f0<_0x3d369c['buffers']['length'];++_0x59c2f0)_0xe20ba1['buffers'][_0x59c2f0]=_0xaf33ab['bytes']===String?_0x3bb2e6['base64']['encode'](_0x3d369c['buffers'][_0x59c2f0],0x0,_0x3d369c['buffers'][_0x59c2f0]['length']):_0xaf33ab['bytes']===Array?Array['prototype']['slice']['call'](_0x3d369c['buffers'][_0x59c2f0]):_0x3d369c['buffers'][_0x59c2f0];}if(_0x3d369c['types']&&_0x3d369c['types']['length']){for(_0xe20ba1['types']=[],_0x59c2f0=0x0;_0x59c2f0<_0x3d369c['types']['length'];++_0x59c2f0)_0xe20ba1['types'][_0x59c2f0]=_0x3d369c['types'][_0x59c2f0];}if(_0x3d369c['metadata']&&_0x3d369c['metadata']['length']){for(_0xe20ba1['metadata']=[],_0x59c2f0=0x0;_0x59c2f0<_0x3d369c['metadata']['length'];++_0x59c2f0)_0xe20ba1['metadata'][_0x59c2f0]=_0x34d3e2['OperationMetadataDescriptor']['toObject'](_0x3d369c['metadata'][_0x59c2f0],_0xaf33ab,_0x1bd9ed+0x1);}return null!=_0x3d369c['lastOperationId']&&Object['hasOwnProperty']['call'](_0x3d369c,'lastOperationId')&&(_0xe20ba1['lastOperationId']=_0x3d369c['lastOperationId']),_0xe20ba1;},_0x2a1245['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x2a1245['getTypeUrl']=function(_0x36c980){return void 0x0===_0x36c980&&(_0x36c980='type.googleapis.com'),_0x36c980+'/CollaborativeEditingUpdateMessage';},_0x2a1245;}()),_0x34d3e2['CollaborativeEditingReconnectMessage']=(function(){function _0x469a98(_0x41c332){if(_0x41c332){for(var _0x3cdc63=Object['keys'](_0x41c332),_0x29d5ee=0x0;_0x29d5ee<_0x3cdc63['length'];++_0x29d5ee)null!=_0x41c332[_0x3cdc63[_0x29d5ee]]&&'__proto__'!==_0x3cdc63[_0x29d5ee]&&(this[_0x3cdc63[_0x29d5ee]]=_0x41c332[_0x3cdc63[_0x29d5ee]]);}}return _0x469a98['prototype']['id']='',_0x469a98['prototype']['bundleVersion']='',_0x469a98['prototype']['lastKnowVersion']=0x0,_0x469a98['create']=function(_0x4fc38d){return new _0x469a98(_0x4fc38d);},_0x469a98['encode']=function(_0x42792a,_0x405879,_0x5bcc86){if(_0x405879||(_0x405879=_0x51052a['create']()),void 0x0===_0x5bcc86&&(_0x5bcc86=0x0),_0x5bcc86>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x42792a['id']&&Object['hasOwnProperty']['call'](_0x42792a,'id')&&_0x405879['uint32'](0xa)['string'](_0x42792a['id']),null!=_0x42792a['bundleVersion']&&Object['hasOwnProperty']['call'](_0x42792a,'bundleVersion')&&_0x405879['uint32'](0x12)['string'](_0x42792a['bundleVersion']),null!=_0x42792a['lastKnowVersion']&&Object['hasOwnProperty']['call'](_0x42792a,'lastKnowVersion')&&_0x405879['uint32'](0x18)['uint32'](_0x42792a['lastKnowVersion']),_0x405879;},_0x469a98['encodeDelimited']=function(_0x4b04ee,_0x3e0af0){return this['encode'](_0x4b04ee,_0x3e0af0)['ldelim']();},_0x469a98['decode']=function(_0x44c910,_0x8c14e4,_0x3be9e7,_0xf189ca){if(_0x44c910 instanceof _0x1f0e29||(_0x44c910=_0x1f0e29['create'](_0x44c910)),void 0x0===_0xf189ca&&(_0xf189ca=0x0),_0xf189ca>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x39b625=void 0x0===_0x8c14e4?_0x44c910['len']:_0x44c910['pos']+_0x8c14e4,_0x71fe8b=new _0x34d3e2['CollaborativeEditingReconnectMessage']();_0x44c910['pos']<_0x39b625;){var _0x220f52=_0x44c910['uint32']();if(_0x220f52===_0x3be9e7)break;switch(_0x220f52>>>0x3){case 0x1:_0x71fe8b['id']=_0x44c910['string']();break;case 0x2:_0x71fe8b['bundleVersion']=_0x44c910['string']();break;case 0x3:_0x71fe8b['lastKnowVersion']=_0x44c910['uint32']();break;default:_0x44c910['skipType'](0x7&_0x220f52,_0xf189ca);}}return _0x71fe8b;},_0x469a98['decodeDelimited']=function(_0x58f79b){return _0x58f79b instanceof _0x1f0e29||(_0x58f79b=new _0x1f0e29(_0x58f79b)),this['decode'](_0x58f79b,_0x58f79b['uint32']());},_0x469a98['verify']=function(_0x2c0372,_0x87c473){return'object'!=typeof _0x2c0372||null===_0x2c0372?'object\x20expected':(void 0x0===_0x87c473&&(_0x87c473=0x0),_0x87c473>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x2c0372['id']&&Object['hasOwnProperty']['call'](_0x2c0372,'id')&&!_0x3bb2e6['isString'](_0x2c0372['id'])?'id:\x20string\x20expected':null!=_0x2c0372['bundleVersion']&&Object['hasOwnProperty']['call'](_0x2c0372,'bundleVersion')&&!_0x3bb2e6['isString'](_0x2c0372['bundleVersion'])?'bundleVersion:\x20string\x20expected':null!=_0x2c0372['lastKnowVersion']&&Object['hasOwnProperty']['call'](_0x2c0372,'lastKnowVersion')&&!_0x3bb2e6['isInteger'](_0x2c0372['lastKnowVersion'])?'lastKnowVersion:\x20integer\x20expected':null);},_0x469a98['fromObject']=function(_0x56540d,_0x18aa4a){if(_0x56540d instanceof _0x34d3e2['CollaborativeEditingReconnectMessage'])return _0x56540d;if(!_0x3bb2e6['isObject'](_0x56540d))throw TypeError('.CollaborativeEditingReconnectMessage:\x20object\x20expected');if(void 0x0===_0x18aa4a&&(_0x18aa4a=0x0),_0x18aa4a>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x2221bc=new _0x34d3e2['CollaborativeEditingReconnectMessage']();return null!=_0x56540d['id']&&(_0x2221bc['id']=String(_0x56540d['id'])),null!=_0x56540d['bundleVersion']&&(_0x2221bc['bundleVersion']=String(_0x56540d['bundleVersion'])),null!=_0x56540d['lastKnowVersion']&&(_0x2221bc['lastKnowVersion']=_0x56540d['lastKnowVersion']>>>0x0),_0x2221bc;},_0x469a98['toObject']=function(_0x281cea,_0x38aebc,_0x435d5f){if(_0x38aebc||(_0x38aebc={}),void 0x0===_0x435d5f&&(_0x435d5f=0x0),_0x435d5f>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x104b65={};return _0x38aebc['defaults']&&(_0x104b65['id']='',_0x104b65['bundleVersion']='',_0x104b65['lastKnowVersion']=0x0),null!=_0x281cea['id']&&Object['hasOwnProperty']['call'](_0x281cea,'id')&&(_0x104b65['id']=_0x281cea['id']),null!=_0x281cea['bundleVersion']&&Object['hasOwnProperty']['call'](_0x281cea,'bundleVersion')&&(_0x104b65['bundleVersion']=_0x281cea['bundleVersion']),null!=_0x281cea['lastKnowVersion']&&Object['hasOwnProperty']['call'](_0x281cea,'lastKnowVersion')&&(_0x104b65['lastKnowVersion']=_0x281cea['lastKnowVersion']),_0x104b65;},_0x469a98['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x469a98['getTypeUrl']=function(_0x5c0913){return void 0x0===_0x5c0913&&(_0x5c0913='type.googleapis.com'),_0x5c0913+'/CollaborativeEditingReconnectMessage';},_0x469a98;}()),_0x34d3e2['CollaborativeEditingConnectMessage']=(function(){function _0x50d4ca(_0x13a6f9){if(this['buffers']=[],this['types']=[],_0x13a6f9){for(var _0x5d955a=Object['keys'](_0x13a6f9),_0x3b29b6=0x0;_0x3b29b6<_0x5d955a['length'];++_0x3b29b6)null!=_0x13a6f9[_0x5d955a[_0x3b29b6]]&&'__proto__'!==_0x5d955a[_0x3b29b6]&&(this[_0x5d955a[_0x3b29b6]]=_0x13a6f9[_0x5d955a[_0x3b29b6]]);}}return _0x50d4ca['prototype']['id']='',_0x50d4ca['prototype']['bundleVersion']='',_0x50d4ca['prototype']['buffers']=_0x3bb2e6['emptyArray'],_0x50d4ca['prototype']['types']=_0x3bb2e6['emptyArray'],_0x50d4ca['prototype']['lastOperationId']='',_0x50d4ca['create']=function(_0x2ec4e4){return new _0x50d4ca(_0x2ec4e4);},_0x50d4ca['encode']=function(_0x46ac8e,_0x4081e0,_0x315e7e){if(_0x4081e0||(_0x4081e0=_0x51052a['create']()),void 0x0===_0x315e7e&&(_0x315e7e=0x0),_0x315e7e>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');if(null!=_0x46ac8e['id']&&Object['hasOwnProperty']['call'](_0x46ac8e,'id')&&_0x4081e0['uint32'](0xa)['string'](_0x46ac8e['id']),null!=_0x46ac8e['bundleVersion']&&Object['hasOwnProperty']['call'](_0x46ac8e,'bundleVersion')&&_0x4081e0['uint32'](0x12)['string'](_0x46ac8e['bundleVersion']),null!=_0x46ac8e['buffers']&&_0x46ac8e['buffers']['length']){for(var _0x2dc9d6=0x0;_0x2dc9d6<_0x46ac8e['buffers']['length'];++_0x2dc9d6)_0x4081e0['uint32'](0x1a)['bytes'](_0x46ac8e['buffers'][_0x2dc9d6]);}if(null!=_0x46ac8e['types']&&_0x46ac8e['types']['length']){for(_0x4081e0['uint32'](0x22)['fork'](),_0x2dc9d6=0x0;_0x2dc9d6<_0x46ac8e['types']['length'];++_0x2dc9d6)_0x4081e0['uint32'](_0x46ac8e['types'][_0x2dc9d6]);_0x4081e0['ldelim']();}return null!=_0x46ac8e['lastOperationId']&&Object['hasOwnProperty']['call'](_0x46ac8e,'lastOperationId')&&_0x4081e0['uint32'](0x2a)['string'](_0x46ac8e['lastOperationId']),_0x4081e0;},_0x50d4ca['encodeDelimited']=function(_0x46dba8,_0x20f3f6){return this['encode'](_0x46dba8,_0x20f3f6)['ldelim']();},_0x50d4ca['decode']=function(_0x49f65c,_0x2eecae,_0x215ad1,_0xb89ad6){if(_0x49f65c instanceof _0x1f0e29||(_0x49f65c=_0x1f0e29['create'](_0x49f65c)),void 0x0===_0xb89ad6&&(_0xb89ad6=0x0),_0xb89ad6>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x3b832c=void 0x0===_0x2eecae?_0x49f65c['len']:_0x49f65c['pos']+_0x2eecae,_0x1dc9a6=new _0x34d3e2['CollaborativeEditingConnectMessage']();_0x49f65c['pos']<_0x3b832c;){var _0x5810a5=_0x49f65c['uint32']();if(_0x5810a5===_0x215ad1)break;switch(_0x5810a5>>>0x3){case 0x1:_0x1dc9a6['id']=_0x49f65c['string']();break;case 0x2:_0x1dc9a6['bundleVersion']=_0x49f65c['string']();break;case 0x3:_0x1dc9a6['buffers']&&_0x1dc9a6['buffers']['length']||(_0x1dc9a6['buffers']=[]),_0x1dc9a6['buffers']['push'](_0x49f65c['bytes']());break;case 0x4:if(_0x1dc9a6['types']&&_0x1dc9a6['types']['length']||(_0x1dc9a6['types']=[]),0x2==(0x7&_0x5810a5)){for(var _0x4b6f39=_0x49f65c['uint32']()+_0x49f65c['pos'];_0x49f65c['pos']<_0x4b6f39;)_0x1dc9a6['types']['push'](_0x49f65c['uint32']());}else _0x1dc9a6['types']['push'](_0x49f65c['uint32']());break;case 0x5:_0x1dc9a6['lastOperationId']=_0x49f65c['string']();break;default:_0x49f65c['skipType'](0x7&_0x5810a5,_0xb89ad6);}}return _0x1dc9a6;},_0x50d4ca['decodeDelimited']=function(_0x369f87){return _0x369f87 instanceof _0x1f0e29||(_0x369f87=new _0x1f0e29(_0x369f87)),this['decode'](_0x369f87,_0x369f87['uint32']());},_0x50d4ca['verify']=function(_0x42a7db,_0x40a475){if('object'!=typeof _0x42a7db||null===_0x42a7db)return'object\x20expected';if(void 0x0===_0x40a475&&(_0x40a475=0x0),_0x40a475>_0x3bb2e6['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x42a7db['id']&&Object['hasOwnProperty']['call'](_0x42a7db,'id')&&!_0x3bb2e6['isString'](_0x42a7db['id']))return'id:\x20string\x20expected';if(null!=_0x42a7db['bundleVersion']&&Object['hasOwnProperty']['call'](_0x42a7db,'bundleVersion')&&!_0x3bb2e6['isString'](_0x42a7db['bundleVersion']))return'bundleVersion:\x20string\x20expected';if(null!=_0x42a7db['buffers']&&Object['hasOwnProperty']['call'](_0x42a7db,'buffers')){if(!Array['isArray'](_0x42a7db['buffers']))return'buffers:\x20array\x20expected';for(var _0x123edd=0x0;_0x123edd<_0x42a7db['buffers']['length'];++_0x123edd)if(!(_0x42a7db['buffers'][_0x123edd]&&'number'==typeof _0x42a7db['buffers'][_0x123edd]['length']||_0x3bb2e6['isString'](_0x42a7db['buffers'][_0x123edd])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x42a7db['types']&&Object['hasOwnProperty']['call'](_0x42a7db,'types')){if(!Array['isArray'](_0x42a7db['types']))return'types:\x20array\x20expected';for(_0x123edd=0x0;_0x123edd<_0x42a7db['types']['length'];++_0x123edd)if(!_0x3bb2e6['isInteger'](_0x42a7db['types'][_0x123edd]))return'types:\x20integer[]\x20expected';}return null!=_0x42a7db['lastOperationId']&&Object['hasOwnProperty']['call'](_0x42a7db,'lastOperationId')&&!_0x3bb2e6['isString'](_0x42a7db['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},_0x50d4ca['fromObject']=function(_0x558efa,_0x7e7bb7){if(_0x558efa instanceof _0x34d3e2['CollaborativeEditingConnectMessage'])return _0x558efa;if(!_0x3bb2e6['isObject'](_0x558efa))throw TypeError('.CollaborativeEditingConnectMessage:\x20object\x20expected');if(void 0x0===_0x7e7bb7&&(_0x7e7bb7=0x0),_0x7e7bb7>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x347758=new _0x34d3e2['CollaborativeEditingConnectMessage']();if(null!=_0x558efa['id']&&(_0x347758['id']=String(_0x558efa['id'])),null!=_0x558efa['bundleVersion']&&(_0x347758['bundleVersion']=String(_0x558efa['bundleVersion'])),_0x558efa['buffers']){if(!Array['isArray'](_0x558efa['buffers']))throw TypeError('.CollaborativeEditingConnectMessage.buffers:\x20array\x20expected');_0x347758['buffers']=[];for(var _0x1173a5=0x0;_0x1173a5<_0x558efa['buffers']['length'];++_0x1173a5)'string'==typeof _0x558efa['buffers'][_0x1173a5]?_0x3bb2e6['base64']['decode'](_0x558efa['buffers'][_0x1173a5],_0x347758['buffers'][_0x1173a5]=_0x3bb2e6['newBuffer'](_0x3bb2e6['base64']['length'](_0x558efa['buffers'][_0x1173a5])),0x0):_0x558efa['buffers'][_0x1173a5]['length']>=0x0&&(_0x347758['buffers'][_0x1173a5]=_0x558efa['buffers'][_0x1173a5]);}if(_0x558efa['types']){if(!Array['isArray'](_0x558efa['types']))throw TypeError('.CollaborativeEditingConnectMessage.types:\x20array\x20expected');for(_0x347758['types']=[],_0x1173a5=0x0;_0x1173a5<_0x558efa['types']['length'];++_0x1173a5)_0x347758['types'][_0x1173a5]=_0x558efa['types'][_0x1173a5]>>>0x0;}return null!=_0x558efa['lastOperationId']&&(_0x347758['lastOperationId']=String(_0x558efa['lastOperationId'])),_0x347758;},_0x50d4ca['toObject']=function(_0x10d439,_0x395736,_0x491f8a){if(_0x395736||(_0x395736={}),void 0x0===_0x491f8a&&(_0x491f8a=0x0),_0x491f8a>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x1e9bb7={};if((_0x395736['arrays']||_0x395736['defaults'])&&(_0x1e9bb7['buffers']=[],_0x1e9bb7['types']=[]),_0x395736['defaults']&&(_0x1e9bb7['id']='',_0x1e9bb7['bundleVersion']='',_0x1e9bb7['lastOperationId']=''),null!=_0x10d439['id']&&Object['hasOwnProperty']['call'](_0x10d439,'id')&&(_0x1e9bb7['id']=_0x10d439['id']),null!=_0x10d439['bundleVersion']&&Object['hasOwnProperty']['call'](_0x10d439,'bundleVersion')&&(_0x1e9bb7['bundleVersion']=_0x10d439['bundleVersion']),_0x10d439['buffers']&&_0x10d439['buffers']['length']){_0x1e9bb7['buffers']=[];for(var _0x689627=0x0;_0x689627<_0x10d439['buffers']['length'];++_0x689627)_0x1e9bb7['buffers'][_0x689627]=_0x395736['bytes']===String?_0x3bb2e6['base64']['encode'](_0x10d439['buffers'][_0x689627],0x0,_0x10d439['buffers'][_0x689627]['length']):_0x395736['bytes']===Array?Array['prototype']['slice']['call'](_0x10d439['buffers'][_0x689627]):_0x10d439['buffers'][_0x689627];}if(_0x10d439['types']&&_0x10d439['types']['length']){for(_0x1e9bb7['types']=[],_0x689627=0x0;_0x689627<_0x10d439['types']['length'];++_0x689627)_0x1e9bb7['types'][_0x689627]=_0x10d439['types'][_0x689627];}return null!=_0x10d439['lastOperationId']&&Object['hasOwnProperty']['call'](_0x10d439,'lastOperationId')&&(_0x1e9bb7['lastOperationId']=_0x10d439['lastOperationId']),_0x1e9bb7;},_0x50d4ca['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x50d4ca['getTypeUrl']=function(_0x10e28){return void 0x0===_0x10e28&&(_0x10e28='type.googleapis.com'),_0x10e28+'/CollaborativeEditingConnectMessage';},_0x50d4ca;}()),_0x34d3e2['OperationMetadataDescriptor']=(function(){function _0x23e8c3(_0x55da72){if(_0x55da72){for(var _0x28925e=Object['keys'](_0x55da72),_0x1c4808=0x0;_0x1c4808<_0x28925e['length'];++_0x1c4808)null!=_0x55da72[_0x28925e[_0x1c4808]]&&'__proto__'!==_0x28925e[_0x1c4808]&&(this[_0x28925e[_0x1c4808]]=_0x55da72[_0x28925e[_0x1c4808]]);}}return _0x23e8c3['prototype']['userId']='',_0x23e8c3['prototype']['type']='',_0x23e8c3['prototype']['createdAt']='',_0x23e8c3['create']=function(_0x58f8e8){return new _0x23e8c3(_0x58f8e8);},_0x23e8c3['encode']=function(_0x2e89ea,_0x1bc06e,_0x2544eb){if(_0x1bc06e||(_0x1bc06e=_0x51052a['create']()),void 0x0===_0x2544eb&&(_0x2544eb=0x0),_0x2544eb>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');return null!=_0x2e89ea['userId']&&Object['hasOwnProperty']['call'](_0x2e89ea,'userId')&&_0x1bc06e['uint32'](0xa)['string'](_0x2e89ea['userId']),null!=_0x2e89ea['type']&&Object['hasOwnProperty']['call'](_0x2e89ea,'type')&&_0x1bc06e['uint32'](0x12)['string'](_0x2e89ea['type']),null!=_0x2e89ea['createdAt']&&Object['hasOwnProperty']['call'](_0x2e89ea,'createdAt')&&_0x1bc06e['uint32'](0x1a)['string'](_0x2e89ea['createdAt']),_0x1bc06e;},_0x23e8c3['encodeDelimited']=function(_0xb283d,_0x3f9b27){return this['encode'](_0xb283d,_0x3f9b27)['ldelim']();},_0x23e8c3['decode']=function(_0x31bdc9,_0x26b561,_0xa16ac9,_0x506262){if(_0x31bdc9 instanceof _0x1f0e29||(_0x31bdc9=_0x1f0e29['create'](_0x31bdc9)),void 0x0===_0x506262&&(_0x506262=0x0),_0x506262>_0x1f0e29['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x3916de=void 0x0===_0x26b561?_0x31bdc9['len']:_0x31bdc9['pos']+_0x26b561,_0x1e1016=new _0x34d3e2['OperationMetadataDescriptor']();_0x31bdc9['pos']<_0x3916de;){var _0xc259d6=_0x31bdc9['uint32']();if(_0xc259d6===_0xa16ac9)break;switch(_0xc259d6>>>0x3){case 0x1:_0x1e1016['userId']=_0x31bdc9['string']();break;case 0x2:_0x1e1016['type']=_0x31bdc9['string']();break;case 0x3:_0x1e1016['createdAt']=_0x31bdc9['string']();break;default:_0x31bdc9['skipType'](0x7&_0xc259d6,_0x506262);}}return _0x1e1016;},_0x23e8c3['decodeDelimited']=function(_0x2c3aa7){return _0x2c3aa7 instanceof _0x1f0e29||(_0x2c3aa7=new _0x1f0e29(_0x2c3aa7)),this['decode'](_0x2c3aa7,_0x2c3aa7['uint32']());},_0x23e8c3['verify']=function(_0x934210,_0x237a0b){return'object'!=typeof _0x934210||null===_0x934210?'object\x20expected':(void 0x0===_0x237a0b&&(_0x237a0b=0x0),_0x237a0b>_0x3bb2e6['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x934210['userId']&&Object['hasOwnProperty']['call'](_0x934210,'userId')&&!_0x3bb2e6['isString'](_0x934210['userId'])?'userId:\x20string\x20expected':null!=_0x934210['type']&&Object['hasOwnProperty']['call'](_0x934210,'type')&&!_0x3bb2e6['isString'](_0x934210['type'])?'type:\x20string\x20expected':null!=_0x934210['createdAt']&&Object['hasOwnProperty']['call'](_0x934210,'createdAt')&&!_0x3bb2e6['isString'](_0x934210['createdAt'])?'createdAt:\x20string\x20expected':null);},_0x23e8c3['fromObject']=function(_0x3b6a0f,_0x4e3160){if(_0x3b6a0f instanceof _0x34d3e2['OperationMetadataDescriptor'])return _0x3b6a0f;if(!_0x3bb2e6['isObject'](_0x3b6a0f))throw TypeError('.OperationMetadataDescriptor:\x20object\x20expected');if(void 0x0===_0x4e3160&&(_0x4e3160=0x0),_0x4e3160>_0x3bb2e6['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x5b133b=new _0x34d3e2['OperationMetadataDescriptor']();return null!=_0x3b6a0f['userId']&&(_0x5b133b['userId']=String(_0x3b6a0f['userId'])),null!=_0x3b6a0f['type']&&(_0x5b133b['type']=String(_0x3b6a0f['type'])),null!=_0x3b6a0f['createdAt']&&(_0x5b133b['createdAt']=String(_0x3b6a0f['createdAt'])),_0x5b133b;},_0x23e8c3['toObject']=function(_0xb2502f,_0x4497f3,_0x4dc4cc){if(_0x4497f3||(_0x4497f3={}),void 0x0===_0x4dc4cc&&(_0x4dc4cc=0x0),_0x4dc4cc>_0x3bb2e6['recursionLimit'])throw Error('max\x20depth\x20exceeded');var _0x5f3717={};return _0x4497f3['defaults']&&(_0x5f3717['userId']='',_0x5f3717['type']='',_0x5f3717['createdAt']=''),null!=_0xb2502f['userId']&&Object['hasOwnProperty']['call'](_0xb2502f,'userId')&&(_0x5f3717['userId']=_0xb2502f['userId']),null!=_0xb2502f['type']&&Object['hasOwnProperty']['call'](_0xb2502f,'type')&&(_0x5f3717['type']=_0xb2502f['type']),null!=_0xb2502f['createdAt']&&Object['hasOwnProperty']['call'](_0xb2502f,'createdAt')&&(_0x5f3717['createdAt']=_0xb2502f['createdAt']),_0x5f3717;},_0x23e8c3['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x23e8c3['getTypeUrl']=function(_0x2903db){return void 0x0===_0x2903db&&(_0x2903db='type.googleapis.com'),_0x2903db+'/OperationMetadataDescriptor';},_0x23e8c3;}()),_0x34d3e2;})());var Mk=class{static['decode'](_0xea6cec,_0x4186e6){const _0xc95c0c=Lk(_0x4186e6)['decode']('undefined'==typeof window?_0xea6cec:new Uint8Array(_0xea6cec));return _0x4186e6['fromJSON']({..._0xc95c0c});}static['encode'](_0x5816ab){const _0x583f4f=Lk(_0x5816ab['constructor']),_0x4842d1=_0x5816ab['toJSON'](),_0x1357db=_0x583f4f['verify'](_0x4842d1);if(_0x1357db)throw Error(_0x1357db);return _0x583f4f['encode'](_0x583f4f['create'](_0x4842d1))['finish']();}};function Lk(_0x10739a){return Nk[_0x10739a['DESCRIPTOR_NAME']];}var $k=class GetManyUsersMessage extends Ck{['ids'];static ['TYPE']='22';static ['READABLE_TYPE_NAME']='getManyUsers';static ['DESCRIPTOR_NAME']='GetManyUsersMessage';static ['DESCRIPTOR']={'fields':{'ids':{'id':0x1,'type':'string','rule':'repeated'}}};constructor(_0x2ef927){super(),this['ids']=_0x2ef927;}toJSON(){return{'ids':this['ids']};}static['fromJSON'](_0x5e7291){return new GetManyUsersMessage(_0x5e7291['ids']);}},Dk=class GetManyUsersResponse extends Ck{['users'];static ['DESCRIPTOR_NAME']='GetManyUsersResponse';static ['DESCRIPTOR']={'fields':{'users':{'rule':'repeated','type':'UserDescriptor','id':0x1}}};constructor(_0x16b438){super(),this['users']=_0x16b438;}toJSON(){return{'users':this['users']['map'](Qk)};}static['fromJSON'](_0x3d5abc){return new GetManyUsersResponse(_0x3d5abc['users']['map'](jk));}};function Qk(_0x62ff2a){return{'attributes':Object['keys'](_0x62ff2a)['map'](_0x9c1cc8=>({'key':_0x9c1cc8,'value':JSON['stringify'](_0x62ff2a[_0x9c1cc8])}))};}function jk(_0x914f3){return _0x914f3['attributes']['reduce']((_0xf919,_0x30a657)=>(_0xf919[_0x30a657['key']]=_0x30a657['value']?JSON['parse'](_0x30a657['value']):null,_0xf919),{});}var Uk=class User$1{static ['_SERVICE']=0x2;constructor(_0x532047={}){this['_attributes']=new Map();for(const _0x14d80f of Object['keys'](_0x532047))'id'!==_0x14d80f?(this['_attributes']['set'](_0x14d80f,_0x532047[_0x14d80f]),Object['defineProperty'](this,_0x14d80f,{'enumerable':!0x0,'configurable':!0x1,'get':()=>this['_attributes']['get'](_0x14d80f)})):this['id']=_0x532047['id'];}static fromData(_0x150fd8){return new User$1(_0x150fd8);}static async get(_0x38b37c,_0x24b427){const _0x369d23=new Rk(_0x24b427);try{const _0x369adc=await _0x38b37c['_sendRequest'](User$1['_SERVICE'],Rk['TYPE'],Mk['encode'](_0x369d23)),_0x19f1c3=Mk['decode'](_0x369adc,Pk);return new User$1(_0x19f1c3['attributes']);}catch{return new User$1({'id':_0x24b427});}}static async getMany(_0x47bb03,_0x876452){const _0x549cd3=new $k(_0x876452);try{const _0xd6a59c=await _0x47bb03['_sendRequest'](User$1['_SERVICE'],$k['TYPE'],Mk['encode'](_0x549cd3));return Mk['decode'](_0xd6a59c,Dk)['users']['map'](_0x29a3b8=>new User$1(_0x29a3b8));}catch{return _0x876452['map'](_0x153136=>new User$1({'id':_0x153136}));}}},Vk=class ChannelMessage extends Ck{type;socketId;data;static ['DESCRIPTOR_NAME']='ChannelMessage';static ['DESCRIPTOR']={'fields':{'type':{'type':'uint32','id':0x1},'socketId':{'type':'string','id':0x2},'data':{'type':'bytes','id':0x3}}};constructor(_0x38d9bb,_0x4735d9,_0x3a1c30){super(),this['type']=_0x38d9bb,this['socketId']=_0x4735d9,this['data']=_0x3a1c30;}toJSON(){return{'type':this['type'],'socketId':this['socketId'],'data':this['data']};}static['fromJSON'](_0x1bb59f){return new ChannelMessage(_0x1bb59f['type'],_0x1bb59f['socketId'],_0x1bb59f['data']);}},Bk=class extends _0x3e0c97(){['_channelName'];_wsGateway;_socket;constructor(_0x48a81f,_0x15536f,_0x4ebcf7){super(),this['_channelName']=_0x48a81f,this['_wsGateway']=_0x15536f,this['_socket']=_0x4ebcf7,this['_subscribeToChannel']();}['remove'](){this['_socket']['off'](this['_channelName']);}getEventName(_0x2b90db,_0x2e9cdf=!0x1){let _0x35a3dc='';return _0x2e9cdf&&(_0x35a3dc+='all:'),_0x35a3dc+='event',_0x2b90db&&(_0x35a3dc+=':'+_0x2b90db),_0x35a3dc;}['_subscribeToChannel'](){this['_socket']['on'](this['_channelName'],_0x359c5d=>{const _0x31cf17=Mk['decode'](_0x359c5d,Vk);this['fire'](this['getEventName'](_0x31cf17['type'],!0x0),_0x31cf17['data'],_0x31cf17['socketId']),_0x31cf17['socketId']!==this['_wsGateway']['socketId']&&this['fire'](this['getEventName'](_0x31cf17['type']),_0x31cf17['data'],_0x31cf17['socketId']);});}},Hk=class CKEditorCloudServicesError extends Error{context;['code'];data;constructor(_0x35af6e,_0x4224f3,_0x2c1d50=null,_0x283e5a={}){super('cloud-services-internal-error:\x20'+_0x35af6e),this['context']=_0x4224f3,this['code']=_0x2c1d50,this['data']=_0x283e5a,this['name']='CKEditorError';}static['fromPublicError'](_0x3d568e){return new CKEditorCloudServicesError(function(_0x5ed4d5){let _0x57c951='cloud-services-error:\x20'+_0x5ed4d5['message'];return _0x5ed4d5['data']&&(_0x57c951+='\x0aError\x20data:\x20'+JSON['stringify'](_0x5ed4d5['data'])),_0x5ed4d5['explanation']&&(_0x57c951+='\x0aExplanation:\x20'+_0x5ed4d5['explanation']),_0x5ed4d5['action']&&(_0x57c951+='\x0aAction:\x20'+_0x5ed4d5['action']),_0x5ed4d5['traceId']&&(_0x57c951+='\x0aTraceId:\x20'+_0x5ed4d5['traceId']),_0x5ed4d5['code']&&(_0x57c951+='\x0aCode:\x20'+_0x5ed4d5['code']),_0x57c951;}(_0x3d568e),_0x3d568e);}},Fk=class CKEditorCloudServicesServerError extends Error{['code'];traceId;data;constructor(_0x419184,_0x4dc3e7){super(),this['name']='CKEditorCloudServicesServerError',this['stack']=void 0x0,this['message']=_0x419184,this['code']=_0x4dc3e7['code'],this['traceId']=_0x4dc3e7['traceId'],this['data']=_0x4dc3e7['data'];}static['fromPublicError'](_0x59180b){return new CKEditorCloudServicesServerError(function(_0x56ab0b){let _0x18dcf0='cloud-services-server-error:\x20'+_0x56ab0b['message'];return _0x56ab0b['explanation']&&(_0x18dcf0+='\x0aExplanation:\x20'+_0x56ab0b['explanation']),_0x56ab0b['action']&&(_0x18dcf0+='\x0aAction:\x20'+_0x56ab0b['action']),_0x56ab0b['traceId']&&(_0x18dcf0+='\x0aTraceId:\x20'+_0x56ab0b['traceId']),_0x56ab0b['code']&&(_0x18dcf0+='\x0aCode:\x20'+_0x56ab0b['code']),_0x18dcf0;}(_0x59180b),_0x59180b);}},Zk=class PacketOptionsMessage extends Ck{['flags'];['rooms'];except;static ['TYPE']=0xb;static ['DESCRIPTOR_NAME']='PacketOptionsMessage';static ['DESCRIPTOR']=((()=>({'fields':{'flags':{'type':'string','id':0x1},'rooms':{'type':'string','id':0x2,'rule':'repeated'},'except':{'type':'string','id':0x3,'rule':'repeated'}}}))());constructor(_0x52ac2f,_0x30ab2d=[],_0x1ae4e5=[]){super(),this['flags']=_0x52ac2f,this['rooms']=_0x30ab2d,this['except']=_0x1ae4e5;}toJSON(){return{'flags':this['flags']?JSON['stringify'](this['flags']):void 0x0,'rooms':this['rooms']?.['length']?this['rooms']:void 0x0,'except':this['except']?.['length']?this['except']:void 0x0};}static['fromJSON'](_0x3a04a8){return new PacketOptionsMessage(_0x3a04a8['flags']&&JSON['parse'](_0x3a04a8['flags']),_0x3a04a8['rooms'],_0x3a04a8['except']);}};const Gk=((()=>!('undefined'==typeof process||!process['versions']?.['node']))());var Xk=class ParserUtils{static getPacketType(..._0x2e09d9){let _0x57de31=0x0;for(let _0x46147c=0x0;_0x46147c<_0x2e09d9['length'];_0x46147c++)_0x57de31+=_0x2e09d9[_0x46147c]*Math['pow'](0xa,_0x2e09d9['length']-_0x46147c-0x1);return _0x57de31;}static getType(_0x5559b2){if(ParserUtils['isBuffer'](_0x5559b2))return 0x1;const _0x292d02=typeof _0x5559b2;return'string'===_0x292d02?0x2:'number'===_0x292d02?0x3:0x4;}static['isBuffer'](_0x10ed30){return Gk&&Buffer['isBuffer'](_0x10ed30)||_0x10ed30 instanceof ArrayBuffer||_0x10ed30 instanceof Uint8Array||this['_isBufferView'](_0x10ed30);}static['_isBufferView'](_0x1d357f){return'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x1d357f):_0x1d357f['buffer']instanceof ArrayBuffer;}},qk=class extends Ck{data;data1;static create(_0x5168e3,_0x5197cb){throw new TypeError('Must\x20be\x20implemented\x20in\x20a\x20child\x20class!');}},Wk=class NumberBytesPacketDataMessage extends qk{data;data1;static ['TYPE']=((()=>Xk['getPacketType'](0x3,0x1))());static ['DESCRIPTOR_NAME']='NumberBytesPacketDataMessage';static ['DESCRIPTOR']=((()=>({'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'bytes','id':0x2}}}))());constructor(_0x1e29bc,_0x17ec6b){super(),this['data']=_0x1e29bc,this['data1']=_0x17ec6b;}toJSON(){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x49e112){return new NumberBytesPacketDataMessage(_0x49e112['data'],_0x49e112['data1']);}static create(_0x5abc74,_0xf26d7e){return new NumberBytesPacketDataMessage(_0x5abc74,_0xf26d7e);}},zk=class StringBytesPacketDataMessage extends qk{data;data1;static ['TYPE']=((()=>Xk['getPacketType'](0x2,0x1))());static ['DESCRIPTOR_NAME']='StringBytesPacketDataMessage';static ['DESCRIPTOR']=((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'bytes','id':0x2}}}))());constructor(_0x537a4f,_0xd45163){super(),this['data']=_0x537a4f,this['data1']=_0xd45163;}toJSON(){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x32b327){return new StringBytesPacketDataMessage(_0x32b327['data'],_0x32b327['data1']);}static create(_0x4e4e8d,_0x1bf804){return new StringBytesPacketDataMessage(_0x4e4e8d,_0x1bf804);}},Yk=class BytesBytesPacketDataMessage extends qk{data;data1;static ['TYPE']=((()=>Xk['getPacketType'](0x1,0x1))());static ['DESCRIPTOR_NAME']='BytesBytesPacketDataMessage';static ['DESCRIPTOR']=((()=>({'fields':{'data':{'type':'bytes','id':0x1},'data1':{'type':'bytes','id':0x2}}}))());constructor(_0x11d912,_0xa01f31){super(),this['data']=_0x11d912,this['data1']=_0xa01f31;}toJSON(){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x428815){return new BytesBytesPacketDataMessage(_0x428815['data'],_0x428815['data1']);}static create(_0x2aff50,_0x4471b6){return new BytesBytesPacketDataMessage(_0x2aff50,_0x4471b6);}},Kk=class StringObjectPacketDataMessage extends qk{data;data1;static ['TYPE']=((()=>Xk['getPacketType'](0x2,0x4))());static ['DESCRIPTOR_NAME']='StringObjectPacketDataMessage';static ['DESCRIPTOR']=((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(_0x301871,_0x2224f1){super(),this['data']=_0x301871,this['data1']=_0x2224f1;}toJSON(){return{'data':this['data'],'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](_0x463279){return new StringObjectPacketDataMessage(_0x463279['data'],_0x463279['data1']&&JSON['parse'](_0x463279['data1']));}static create(_0x2efe0f,_0x5e2ad0){return new StringObjectPacketDataMessage(_0x2efe0f,_0x5e2ad0);}},Jk=class NumberObjectPacketDataMessage extends qk{data;data1;static ['TYPE']=((()=>Xk['getPacketType'](0x3,0x4))());static ['DESCRIPTOR_NAME']='NumberObjectPacketDataMessage';static ['DESCRIPTOR']=((()=>({'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(_0x9c5a2a,_0x5297e4){super(),this['data']=_0x9c5a2a,this['data1']=_0x5297e4;}toJSON(){return{'data':this['data'],'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](_0x48329a){return new NumberObjectPacketDataMessage(_0x48329a['data'],_0x48329a['data1']&&JSON['parse'](_0x48329a['data1']));}static create(_0x557c4d,_0x296c01){return new NumberObjectPacketDataMessage(_0x557c4d,_0x296c01);}},tx=class ObjectObjectPacketDataMessage extends qk{data;data1;static ['TYPE']=((()=>Xk['getPacketType'](0x4,0x4))());static ['DESCRIPTOR_NAME']='ObjectObjectPacketDataMessage';static ['DESCRIPTOR']=((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(_0x24da9a,_0x22fca5){super(),this['data']=_0x24da9a,this['data1']=_0x22fca5;}toJSON(){return{'data':this['data']?JSON['stringify'](this['data']):void 0x0,'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](_0x36882f){return new ObjectObjectPacketDataMessage(_0x36882f['data']&&JSON['parse'](_0x36882f['data']),_0x36882f['data1']&&JSON['parse'](_0x36882f['data1']));}static create(_0x7621c4,_0xcdc3ee){return new ObjectObjectPacketDataMessage(_0x7621c4,_0xcdc3ee);}},ex=class ObjectBufferPacketDataMessage extends qk{data;data1;static ['TYPE']=((()=>Xk['getPacketType'](0x4,0x1))());static ['DESCRIPTOR_NAME']='ObjectBufferPacketDataMessage';static ['DESCRIPTOR']=((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'bytes','id':0x2}}}))());constructor(_0x273635,_0x278af9){super(),this['data']=_0x273635,this['data1']=_0x278af9;}toJSON(){return{'data':this['data']?JSON['stringify'](this['data']):void 0x0,'data1':this['data1']};}static['fromJSON'](_0x11c53a){return new ObjectBufferPacketDataMessage(_0x11c53a['data']&&JSON['parse'](_0x11c53a['data']),_0x11c53a['data1']);}static create(_0x555ae9,_0x2a690e){return new ObjectBufferPacketDataMessage(_0x555ae9,_0x2a690e);}},ix=class StringStringPacketDataMessage extends qk{data;data1;static ['TYPE']=((()=>Xk['getPacketType'](0x2,0x2))());static ['DESCRIPTOR_NAME']='StringStringPacketDataMessage';static ['DESCRIPTOR']=((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(_0x5c32df,_0x108b25){super(),this['data']=_0x5c32df,this['data1']=_0x108b25;}toJSON(){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x175210){return new StringStringPacketDataMessage(_0x175210['data'],_0x175210['data1']);}static create(_0xac9347,_0x58a1b2){return new StringStringPacketDataMessage(_0xac9347,_0x58a1b2);}},sx=class StringNumberPacketDataMessage extends qk{data;data1;static ['TYPE']=((()=>Xk['getPacketType'](0x2,0x3))());static ['DESCRIPTOR_NAME']='StringNumberPacketDataMessage';static ['DESCRIPTOR']=((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'uint32','id':0x2}}}))());constructor(_0x3e15ff,_0x1e8bbf){super(),this['data']=_0x3e15ff,this['data1']=_0x1e8bbf;}toJSON(){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x509fab){return new StringNumberPacketDataMessage(_0x509fab['data'],_0x509fab['data1']);}static create(_0x332e59,_0x29e6a9){return new StringNumberPacketDataMessage(_0x332e59,_0x29e6a9);}},nx=class NumberNumberPacketDataMessage extends qk{data;data1;static ['TYPE']=((()=>Xk['getPacketType'](0x3,0x3))());static ['DESCRIPTOR_NAME']='NumberNumberPacketDataMessage';static ['DESCRIPTOR']={'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'uint32','id':0x2}}};constructor(_0x1a6819,_0x13c7e4){super(),this['data']=_0x1a6819,this['data1']=_0x13c7e4;}toJSON(){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x5ca4c8){return new NumberNumberPacketDataMessage(_0x5ca4c8['data'],_0x5ca4c8['data1']);}static create(_0x5f7e3c,_0x14c0ef){return new NumberNumberPacketDataMessage(_0x5f7e3c,_0x14c0ef);}},rx=class NumberStringPacketDataMessage extends qk{data;data1;static ['TYPE']=((()=>Xk['getPacketType'](0x3,0x2))());static ['DESCRIPTOR_NAME']='NumberStringPacketDataMessage';static ['DESCRIPTOR']=((()=>({'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(_0x1ce214,_0x5a4b48){super(),this['data']=_0x1ce214,this['data1']=_0x5a4b48;}toJSON(){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x5c9408){return new NumberStringPacketDataMessage(_0x5c9408['data'],_0x5c9408['data1']);}static create(_0x3b3d95,_0x35d4f6){return new NumberStringPacketDataMessage(_0x3b3d95,_0x35d4f6);}};const ox=((()=>[Wk,zk,Yk,Kk,Jk,tx,ex,ix,sx,nx,rx]['reduce']((_0x324659,_0x14ae68)=>(_0x324659[_0x14ae68['TYPE']]=_0x14ae68,_0x324659),{}))());var ax=class PacketMessage extends Ck{type;data;['id'];['nsp'];options;static ['TYPE']=0xa;static ['DESCRIPTOR_NAME']='PacketMessage';static ['DESCRIPTOR']=((()=>({'fields':{'type':{'type':'uint32','id':0x1},'id':{'type':'uint32','id':0x2},'nsp':{'type':'string','id':0x3},'data':{'type':'bytes','id':0x4},'options':{'type':'bytes','id':0x5}}}))());constructor(_0x7a0249,_0x3732b9,_0x1f9e89,_0x292d21='/',_0x42c4bf){super(),this['type']=_0x7a0249,this['data']=_0x3732b9,this['id']=_0x1f9e89,this['nsp']=_0x292d21,this['options']=_0x42c4bf??new Zk();}get packetData(){return void 0x0===this['data']['data']&&void 0x0===this['data']['data1']?[]:this['data']['data']&&void 0x0===this['data']['data1']?[this['data']['data']]:[this['data']['data'],this['data']['data1']];}toJSON(){const _0x13f87c=Mk['encode'](this['options']),_0x1139e3=Mk['encode'](this['data']);return{'type':this['type']+0xa*this['data']['constructor']['TYPE'],'id':this['id'],'nsp':'/'===this['nsp']?void 0x0:this['nsp'],'data':_0x1139e3,'options':_0x13f87c};}static['fromJSON'](_0x1be5a2){const _0x109e94=Math['floor'](_0x1be5a2['type']/0xa);return new PacketMessage(_0x1be5a2['type']-0xa*_0x109e94,Mk['decode'](_0x1be5a2['data'],ox[_0x109e94]),_0x1be5a2['id'],_0x1be5a2['nsp'],_0x1be5a2['options']?Mk['decode'](_0x1be5a2['options'],Zk):new Zk());}static create(_0x158bbb,_0x1e9f05={}){const _0x51ad36=Xk['getPacketType'](Xk['getType'](_0x158bbb['data'][0x0]),Xk['getType'](_0x158bbb['data'][0x1]??_0x158bbb['data'][0x0]));return new PacketMessage(_0x158bbb['type'],ox[_0x51ad36]['create'](_0x158bbb['data'][0x0],_0x158bbb['data'][0x1]),_0x158bbb['id'],_0x158bbb['nsp'],new Zk(_0x1e9f05['flags'],_0x1e9f05['rooms'],_0x1e9f05['except']));}},cx=class{['encode'](_0x4d7f93,_0x1dcd19,_0x292a31,_0x4b0510='/',_0x37b254={}){if(_0x1dcd19['length']>0x2)throw new Error('PacketParser\x20supports\x20only\x202\x20elements\x20in\x20data');const _0x26c4f4={'type':_0x4d7f93,'data':_0x1dcd19,'id':_0x292a31,'nsp':_0x4b0510};return Mk['encode'](ax['create'](_0x26c4f4,_0x37b254));}['decode'](_0x3fffe7){const _0x4751fe=Mk['decode'](_0x3fffe7,ax);return{'packet':{'id':_0x4751fe['id'],'type':_0x4751fe['type'],'data':_0x4751fe['packetData'],'nsp':_0x4751fe['nsp']},'options':{'flags':_0x4751fe['options']['flags'],'rooms':_0x4751fe['options']['rooms'],'except':_0x4751fe['options']['except']}};}};const lx=((()=>[ck['EVENT'],ck['ACK'],ck['BINARY_ACK'],ck['BINARY_EVENT']])());var hx=class extends lk{_packetParser;constructor(_0x4eece1){super(),this['_packetParser']=_0x4eece1??new cx();}['encode'](_0x35ac7a){if(lx['includes'](_0x35ac7a['type']))try{return[this['_packetParser']['encode'](_0x35ac7a['type'],_0x35ac7a['data'],_0x35ac7a['id'],_0x35ac7a['nsp'])];}catch(_0x42049c){console['error']('Can\x20not\x20properly\x20serialize\x20or\x20deserialize\x20messages.\x20Check\x20the\x20original\x20error.',{'originalError':{'message':_0x42049c['message']}});}return super['encode'](_0x35ac7a);}},ux=class extends hk{_packetParser;constructor(_0x41c32f){super(),this['_packetParser']=_0x41c32f??new cx();}['add'](_0x41e119){if(!Xk['isBuffer'](_0x41e119))return super['add'](_0x41e119);let _0x356a9e;try{_0x356a9e=this['_packetParser']['decode'](_0x41e119)['packet'];}catch{return super['add'](_0x41e119);}super['emitReserved']('decoded',_0x356a9e);}},dx=class{_context;['_deferredPromise']=/* #__PURE__ -- @preserve */
mx();timeout;constructor(_0x98484c,_0x37641e){this['_context']=_0x98484c,this['timeout']=setTimeout(()=>this['error'](new Hk('Request\x20timeout.',this['_context'])),_0x37641e);}get['promise'](){return this['_deferredPromise']['promise'];}['response'](_0xcb4a3e){this['_deferredPromise']['resolve'](_0xcb4a3e);}['error'](_0x1c0e2c){this['_deferredPromise']['reject'](_0x1c0e2c);}},fx=class{_context;_requests=new Set();constructor(_0x319591){this['_context']=_0x319591;}async['send'](_0x37c2b0,_0x55ab77=0xafc8){const _0x5157fd=this['_createRequest'](_0x55ab77);try{return _0x37c2b0(_0x5157fd),await _0x5157fd['promise'];}finally{this['_finishRequest'](_0x5157fd);}}['errorAll'](_0x2c3a6a){for(const _0x5b3b31 of this['_requests'])_0x5b3b31['error'](_0x2c3a6a);}waitForAllRequests(_0x6737d4=0xafc8){return this['_waitForRequests'](_0x6737d4);}_createRequest(_0x5cbf62){const _0x51867c=new dx(this['_context'],_0x5cbf62);return this['_requests']['add'](_0x51867c),_0x51867c;}_finishRequest(_0x356708){this['_requests']['delete'](_0x356708),clearTimeout(_0x356708['timeout']);}async _waitForRequests(_0x589fe2=0x1388,_0x51a824=0x0){return!this['_requests']['size']||_0x51a824>=_0x589fe2/0x1f4?Promise['resolve']():(await new Promise(_0x2ef529=>{setTimeout(_0x2ef529,0x1f4);}),this['_waitForRequests'](_0x589fe2,_0x51a824++));}};function mx(){let _0x2a5eb6,_0x4a82b8;const _0x55ddc5=new Promise((_0x18d15f,_0x323658)=>{_0x2a5eb6=_0x18d15f,_0x4a82b8=_0x323658;});return{'resolve':_0x2a5eb6,'reject':_0x4a82b8,'promise':_0x55ddc5};}const px='disconnected',gx='connecting',Ox='connected';var wx=class WebSocketGateway$1 extends _0x356c1e(){_requestsManager;['_url'];_socket;_socketAuth;['_channels'];_connectionAttempt=0x0;_token;_options;_connectionProvider;_userFactory;static ['STATE_DISCONNECTED']=((()=>px)());static ['STATE_CONNECTING']=((()=>gx)());static ['STATE_CONNECTED']=((()=>Ox)());static ['_CHANGE_STATE_EVENT_PRIORITY']=((()=>_0x1a573c['get']('highest')+0xf423f)());constructor(_0x51f7b5,_0xd4b96c,_0x32ac79,_0x87d73e,_0x4c2039){if(super(),this['_token']=_0xd4b96c,this['_options']=_0x32ac79??{},this['_connectionProvider']=_0x87d73e??vk,this['_userFactory']=_0x4c2039??Uk['get'],this['_requestsManager']=new fx(this),this['_channels']=new Map(),!_0x51f7b5)throw new TypeError('Api\x20address\x20must\x20be\x20provided.');if(!this['_token'])throw new TypeError('Token\x20must\x20be\x20provided.');this['_options']['requestTimeout']??=0x4e20,this['_url']=(0x0,kk['default'])(_0x51f7b5['replace'](/^(?!(?:\w+:)?\/\/)/,'https://')),this['set']('state',px),this['set']('socketId',void 0x0),this['set']('me',void 0x0),this['on']('change:state',async(_0x157411,_0x5d629f,_0x36aa27)=>{if(this['_debugEvent']('ws-gw:change:state',_0x36aa27),_0x36aa27!==WebSocketGateway$1['STATE_CONNECTED']){if(_0x36aa27===WebSocketGateway$1['STATE_DISCONNECTED'])return this['_requestsManager']['errorAll'](new Hk('Not\x20connected.',this));}else try{this['me']=await this['_userFactory']['call'](Uk,this,this['_socketAuth']?.['userId']);}catch{}},{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['on']('error',(_0x4d0dd7,_0x3187c3)=>{this['_options']['onError']?this['_options']['onError'](_0x3187c3):console['error'](_0x3187c3);});}get['sessionId'](){return this['socketId'];}waitForAllRequests(_0x1c3dba){return this['_requestsManager']['waitForAllRequests'](_0x1c3dba);}disconnect(){this['state']!==px&&(this['_socket']?.['disconnect'](),this['_socket']=void 0x0,this['state']=px);}async reconnect(){this['_socket']||this['state']!==px||(await this['_token']['refreshToken'](),await this['_connect']());}static async connect(_0x180335,_0x627ca7='local.cs.dev:443/ws-v2',_0x4fca21={},_0x38809e=vk,_0x8d15ee=Uk['get']){const _0x7ae1e5=new this(_0x627ca7,_0x180335,_0x4fca21,_0x38809e,_0x8d15ee);return await _0x7ae1e5['_connect'](),_0x7ae1e5;}_sendRequest(_0x1adc1c,_0x3cc54d,_0x281bb2){if(!_0x1adc1c)throw new Hk('`serviceName`\x20must\x20be\x20provided.',this);if(this['state']!==WebSocketGateway$1['STATE_CONNECTED'])throw new Hk('Not\x20connected.',this);if(!this['_socketAuth']?.['isAuthenticated'])throw new Hk('Not\x20authenticated.',this);const _0x17e366=new ArrayBuffer(_0x281bb2['length']+0x2),_0x2732cb=new Uint8Array(_0x17e366);return _0x2732cb[0x0]=_0x1adc1c,_0x2732cb[0x1]=parseInt(_0x3cc54d),_0x2732cb['set'](_0x281bb2,0x2),this['_emit'](0x1,_0x2732cb);}_getChannel(_0x3e83b4,_0x10e42d){const _0x10bea5=''+_0x3e83b4+_0x10e42d;return!this['_channels']['has'](_0x10bea5)&&this['_socket']&&this['_channels']['set'](_0x10bea5,new Bk(_0x10bea5,this,this['_socket'])),this['_channels']['get'](_0x10bea5);}_connect(){return new Promise((_0x23968a,_0x74acf5)=>{const _0x2d80cc=this['_setupSocket']();!this['socketId']&&_0x2d80cc['io']['on']('reconnect_error',()=>{this['_debugEvent']('reconnect_error'),this['_reconnectionAttemptError'](_0x74acf5);}),_0x2d80cc['once']('connect',async()=>{this['_debugEvent']('once-connect');try{await this['_onConnect'](),_0x23968a();}catch(_0x357a88){_0x74acf5(_0x357a88);}}),_0x2d80cc['connect']();});}_getPortByProtocol(_0x29dda4){return['http:','ws:']['includes'](_0x29dda4)?0x50:0x1bb;}_setupSocket(){if(this['_socket'])return this['_socket'];const _0x3a351c=this['_url']['port']||this['_getPortByProtocol'](this['_url']['protocol']),_0xd1f9cb=(this['_url']['protocol']||'https:')+'//'+this['_url']['hostname']+':'+_0x3a351c,_0x79f886=this['_url']['pathname']['match'](/^\/.*\/ws/)?this['_url']['pathname']['split']('/ws')[0x0]:'',_0x490e6a=this['_connectionProvider'](_0xd1f9cb,{'parser':{'Encoder':hx,'Decoder':ux},'path':_0x79f886+'/ws-v2/ws','transports':['websocket'],'timeout':void 0x0!==this['_options']['timeout']?this['_options']['timeout']:0x1388,'reconnection':void 0x0===this['_options']['autoReconnect']||this['_options']['autoReconnect'],'reconnectionDelay':0x3e8,'reconnectionDelayMax':0x1388,'rejectUnauthorized':void 0x0===this['_options']['rejectUnauthorized']||this['_options']['rejectUnauthorized'],'query':{'version':'54.2.7'},'agent':this['_options']['agent']??!0x1,'closeOnBeforeunload':!0x1});return this['state']=gx,_0x490e6a['on']('connect',()=>{this['_debugEvent']('connect'),this['socketId']=_0x490e6a['id'];}),_0x490e6a['on']('connect_error',_0x14d3c9=>{this['_debugEvent']('connect_error',_0x14d3c9);}),_0x490e6a['on']('disconnect',()=>{this['_debugEvent']('disconnect'),this['_onDisconnect']();}),_0x490e6a['io']['on']('reconnect',async()=>{this['_debugEvent']('reconnect'),await this['_onReconnect']();}),_0x490e6a['io']['on']('reconnect_attempt',_0x3d7631=>{this['_debugEvent']('reconnect_attempt',_0x3d7631),this['state']=gx,this['_connectionAttempt']=_0x3d7631;}),_0x490e6a['on']('unauthorized',_0x31f4be=>{this['_debugEvent']('unauthorized'),this['_onUnauthorized'](_0x31f4be);}),_0x490e6a['on']('authenticationRequest',async _0x13502b=>{this['_debugEvent']('authenticationRequest',_0x13502b['attempt']),await this['_onReconnect']();}),this['_socket']=_0x490e6a,_0x490e6a;}_emit(_0x4d0149,_0x5dcf5a){const _0x316bce=this['_socket'];return this['_requestsManager']['send'](_0x5138ef=>{_0x316bce['emit'](_0x4d0149,_0x5dcf5a,(_0x1f0f66,_0x32b8f3)=>{if(_0x1f0f66)return _0x5138ef['error'](Fk['fromPublicError'](_0x1f0f66));_0x5138ef['response'](_0x32b8f3);});},this['_options']['requestTimeout']);}_addAuthData(_0x4c2c69,_0x3b5898){this['_socketAuth']={'environmentId':_0x4c2c69,'userId':_0x3b5898,'isAuthenticated':!0x0};}_removeAuthData(){this['_socketAuth']=void 0x0;}async _onConnect(){await this['_authenticate'](this['_token']['value']),this['state']=Ox;const _0x3f621c=async(_0x530dfa,_0x25afa7,_0x47b836)=>{this['_debugEvent']('token:value:change');try{await this['_authenticate'](_0x47b836);}catch{}};this['_token']['on']('change:value',_0x3f621c),this['_socket']['io']['off']('reconnect_error'),this['on']('disconnect',()=>{this['_token']['off']('change:value',_0x3f621c);});}async _onReconnect(){await this['_token']['refreshToken'](),await this['_onConnect']();}_onDisconnect(){this['state']=px,this['_connectionAttempt']=0x0,this['fire']('disconnect');for(const _0x4fdb0f of this['_channels']['values']())_0x4fdb0f['remove']();this['_channels']['clear'](),void 0x0===this['_options']['autoReconnect']||this['_options']['autoReconnect']||(this['_socket']=void 0x0);}_debugEvent(_0x50203b,_0xcaefa8){if(!this['_isDebugModeEnabled']())return;const _0x5a496b=void 0x0!==_0xcaefa8?',\x20data:\x20'+_0xcaefa8:'';console['info'](new Date()['toLocaleString']()+'\x20'+_0x50203b+_0x5a496b);}_reconnectionAttemptError(_0x15d69){this['_connectionAttempt']>=0x2&&(this['disconnect'](),_0x15d69(Hk['fromPublicError']({'message':'The\x20number\x20of\x20initial\x20connection\x20attempts\x20exceeded.','explanation':'Three\x20initial\x20connection\x20attempts\x20failed.\x20It\x20can\x20be\x20caused\x20by\x20a\x20slow,\x20unstable,\x20missing\x20or\x20blocked\x20Internet\x20connection.','action':'Please\x20verify\x20the\x20stability\x20of\x20your\x20Internet\x20connection\x20and\x20ensure\x20that\x20no\x20antivirus\x20or\x20firewall\x20software\x20blocks\x20the\x20Web\x20Socket\x20protocol\x20connections.'})));}_onUnauthorized({error:_0x33068d}){this['_removeAuthData'](),this['fire']('error',Fk['fromPublicError'](_0x33068d));}async _authenticate(_0x56c4fa){try{this['_debugEvent']('authenticate:start');const _0x35d90e=await this['_emit'](0x2,{'token':_0x56c4fa});this['_debugEvent']('authenticate:success','envId:\x20'+_0x35d90e['environmentId']+',\x20userId:\x20'+_0x35d90e['userId']),this['_addAuthData'](_0x35d90e['environmentId'],_0x35d90e['userId']);}catch(_0x5d26e2){throw this['_debugEvent']('authenticate:error',_0x5d26e2['message']),this['_removeAuthData'](),_0x5d26e2;}}['_isDebugModeEnabled'](){return!!_0x250afe['window']['localStorage']&&'true'===(_0x250afe['window']['localStorage']['getItem']('csClientDebugMode')??'false')['toLowerCase']();}},bx=class IsEditorBundleUploadedMessage extends Ck{['bundleVersion'];static ['TYPE']='131';static ['READABLE_TYPE_NAME']='isEditorBundleUploaded';static ['DESCRIPTOR_NAME']='IsEditorBundleUploadedMessage';static ['DESCRIPTOR']={'fields':{'bundleVersion':{'type':'string','id':0x1}}};constructor(_0x534a3b){super(),this['bundleVersion']=_0x534a3b;}toJSON(){return{'bundleVersion':this['bundleVersion']};}static['fromJSON'](_0x35091e){return new IsEditorBundleUploadedMessage(_0x35091e['bundleVersion']);}},yx=class IsEditorBundleUploadedResponse extends Ck{['isUploaded'];static ['DESCRIPTOR_NAME']='IsEditorBundleUploadedResponse';static ['DESCRIPTOR']={'fields':{'isUploaded':{'type':'bool','id':0x1}}};constructor(_0x45a83a){super(),this['isUploaded']=_0x45a83a;}toJSON(){return{'isUploaded':this['isUploaded']};}static['fromJSON'](_0x1def02){return new IsEditorBundleUploadedResponse(_0x1def02['isUploaded']);}},vx=class EditorService extends _0x3e0c97(){static ['_SERVICE']=0xd;static async['isBundleUploaded'](_0x3e9096,_0x37bc9e){const _0x4da2da=new bx(_0x37bc9e);if(_0x3e9096['state']!==Ox)throw new Hk('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x3e9096);const _0x5ab1dc=await _0x3e9096['_sendRequest'](EditorService['_SERVICE'],bx['TYPE'],Mk['encode'](_0x4da2da));return Mk['decode'](_0x5ab1dc,yx)['isUploaded'];}},_x=class RevisionHistoryGetRevisionMessage extends Ck{documentId;['revisionId'];static ['TYPE']='123';static ['READABLE_TYPE_NAME']='getRevision';static ['DESCRIPTOR_NAME']='RevisionHistoryGetRevisionMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'revisionId':{'type':'string','id':0x2}}};constructor(_0x2a66f8,_0x50de9f){super(),this['documentId']=_0x2a66f8,this['revisionId']=_0x50de9f;}toJSON(){return{'documentId':this['documentId'],'revisionId':this['revisionId']};}static['fromJSON'](_0x5083ad){return new RevisionHistoryGetRevisionMessage(_0x5083ad['documentId'],_0x5083ad['revisionId']);}},Ex=class extends xk{static ['DESCRIPTOR_NAME']='RevisionDescriptor';static ['DESCRIPTOR']=((()=>({'fields':{'revisionId':{'type':'string','id':0x1},'name':{'type':'string','id':0x2},'creatorId':{'type':'string','id':0x3},'authorsIds':{'type':'string','id':0x4},'diffData':{'type':'string','id':0x5},'createdAt':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'toVersion':{'type':'uint32','id':0x8},'fromVersion':{'type':'uint32','id':0x9},'isEmptyCurrent':{'type':'bool','id':0xa}}}))());static create(_0x4cdf16){return{'revisionId':_0x4cdf16['id'],'name':_0x4cdf16['name'],'creatorId':_0x4cdf16['creatorId'],'createdAt':_0x4cdf16['createdAt'],'fromVersion':_0x4cdf16['fromVersion'],'toVersion':_0x4cdf16['toVersion'],'isEmptyCurrent':_0x4cdf16['isEmptyCurrent'],'diffData':_0x4cdf16['diffData']?JSON['stringify'](_0x4cdf16['diffData']):void 0x0,'attributes':_0x4cdf16['attributes'],'authorsIds':_0x4cdf16['authorsIds']};}static toJSON(_0x352ca8){return{'revisionId':_0x352ca8['revisionId'],'name':_0x352ca8['name'],'creatorId':_0x352ca8['creatorId'],'authorsIds':_0x352ca8['authorsIds']?JSON['stringify'](_0x352ca8['authorsIds']):void 0x0,'diffData':_0x352ca8['diffData'],'createdAt':_0x352ca8['createdAt']?.['toISOString'](),'attributes':_0x352ca8['attributes']?JSON['stringify'](_0x352ca8['attributes']):void 0x0,'toVersion':_0x352ca8['toVersion'],'fromVersion':_0x352ca8['fromVersion'],'isEmptyCurrent':_0x352ca8['isEmptyCurrent']};}static['fromJSON'](_0x571cd3){return{'revisionId':(_0x571cd3={..._0x571cd3})['revisionId'],'name':_0x571cd3['name'],'creatorId':_0x571cd3['creatorId'],'authorsIds':_0x571cd3['authorsIds']?JSON['parse'](_0x571cd3['authorsIds']):void 0x0,'diffData':_0x571cd3['diffData'],'createdAt':_0x571cd3['createdAt']?new Date(_0x571cd3['createdAt']):void 0x0,'attributes':_0x571cd3['attributes']?JSON['parse'](_0x571cd3['attributes']):void 0x0,'toVersion':_0x571cd3['toVersion'],'fromVersion':_0x571cd3['fromVersion'],'isEmptyCurrent':_0x571cd3['isEmptyCurrent']};}static toObject(_0x1906b8){return function(_0x3a5635){for(const [_0x45897f,_0x5c48c9]of Object['entries'](_0x3a5635))void 0x0===_0x5c48c9&&delete _0x3a5635[_0x45897f];return _0x3a5635;}({'id':_0x1906b8['revisionId'],'name':_0x1906b8['name'],'creatorId':_0x1906b8['creatorId'],'createdAt':_0x1906b8['createdAt'],'fromVersion':_0x1906b8['fromVersion'],'toVersion':_0x1906b8['toVersion'],'isEmptyCurrent':_0x1906b8['isEmptyCurrent'],'diffData':_0x1906b8['diffData']?JSON['parse'](_0x1906b8['diffData']):void 0x0,'attributes':_0x1906b8['attributes'],'authorsIds':_0x1906b8['authorsIds']});}},Tx=class RevisionHistoryGetRevisionResponse extends Ck{['revisionId'];['name'];creatorId;authorsIds;createdAt;diffData;attributes;['fromVersion'];toVersion;isEmptyCurrent;static ['DESCRIPTOR_NAME']='RevisionHistoryGetRevisionResponse';static ['DESCRIPTOR']=((()=>Ex['DESCRIPTOR'])());constructor(_0x14b78e,_0x3facc2,_0x4109da,_0x14bfe5,_0x529ef0,_0x4d3937,_0x4d311b,_0x4fc077,_0x21ba6c,_0x54a1b7){super(),this['revisionId']=_0x14b78e,this['name']=_0x3facc2,this['creatorId']=_0x4109da,this['authorsIds']=_0x14bfe5,this['createdAt']=_0x529ef0,this['diffData']=_0x4d3937,this['attributes']=_0x4d311b,this['fromVersion']=_0x4fc077,this['toVersion']=_0x21ba6c,this['isEmptyCurrent']=_0x54a1b7;}toJSON(){return Ex['toJSON'](this);}toObject(){return Ex['toObject'](this);}static create(_0x1e23ee){return new RevisionHistoryGetRevisionResponse(_0x1e23ee['revisionId'],_0x1e23ee['name'],_0x1e23ee['creatorId'],_0x1e23ee['authorsIds'],_0x1e23ee['createdAt'],_0x1e23ee['diffData'],_0x1e23ee['attributes'],_0x1e23ee['fromVersion'],_0x1e23ee['toVersion'],_0x1e23ee['isEmptyCurrent']);}static['fromJSON'](_0x5807c7){return new RevisionHistoryGetRevisionResponse(_0x5807c7['revisionId'],_0x5807c7['name'],_0x5807c7['creatorId'],_0x5807c7['authorsIds']?JSON['parse'](_0x5807c7['authorsIds']):void 0x0,_0x5807c7['createdAt']?new Date(_0x5807c7['createdAt']):void 0x0,_0x5807c7['diffData'],_0x5807c7['attributes']?JSON['parse'](_0x5807c7['attributes']):void 0x0,_0x5807c7['fromVersion'],_0x5807c7['toVersion'],_0x5807c7['isEmptyCurrent']);}},Ax=class RevisionHistoryUpdateRevisionsMessage extends Ck{documentId;requestId;['revisions'];static ['TYPE']='124';static ['READABLE_TYPE_NAME']='updateRevisions';static ['DESCRIPTOR_NAME']='RevisionHistoryUpdateRevisionsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'requestId':{'type':'uint32','id':0x2},'revisions':{'type':'RevisionDescriptor','id':0x3,'rule':'repeated'}}};constructor(_0x306af0,_0x192c24,_0xd620d7){super(),this['documentId']=_0x306af0,this['requestId']=_0x192c24,this['revisions']=_0xd620d7;}toJSON(){return{'documentId':this['documentId'],'requestId':this['requestId'],'revisions':this['revisions']['map'](Ex['toJSON'])};}toObject(){return{'documentId':this['documentId'],'requestId':this['requestId'],'revisions':this['revisions']['map'](Ex['toObject'])};}static create(_0x5f254f){return new RevisionHistoryUpdateRevisionsMessage(_0x5f254f['documentId'],_0x5f254f['requestId'],_0x5f254f['revisions']['map'](Ex['create']));}static['fromJSON'](_0x1ac86e){return new RevisionHistoryUpdateRevisionsMessage(_0x1ac86e['documentId'],_0x1ac86e['requestId'],_0x1ac86e['revisions']['map'](Ex['fromJSON']));}},Sx=class RevisionHistoryUpdateRevisionsResponse extends Ck{requestId;static ['DESCRIPTOR_NAME']='RevisionHistoryUpdateRevisionsResponse';static ['DESCRIPTOR']={'fields':{'requestId':{'type':'uint32','id':0x1}}};constructor(_0x17a229){super(),this['requestId']=_0x17a229;}toJSON(){return{'requestId':this['requestId']};}static['fromJSON'](_0x4f2804){return new RevisionHistoryUpdateRevisionsResponse(_0x4f2804['requestId']);}},Ix=class RevisionHistoryConnectMessage extends Ck{documentId;static ['TYPE']='121';static ['READABLE_TYPE_NAME']='connectToRevisionHistory';static ['DESCRIPTOR_NAME']='RevisionHistoryConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x3492dc){super(),this['documentId']=_0x3492dc;}toJSON(){return{'documentId':this['documentId']};}static['fromJSON'](_0x2f623d){return new RevisionHistoryConnectMessage(_0x2f623d['documentId']);}},kx=class RevisionHistoryConnectResponse extends Ck{['channel'];requestId;['revisions'];static ['DESCRIPTOR_NAME']='RevisionHistoryConnectResponse';static ['DESCRIPTOR']=((()=>({'fields':{'channel':{'type':'string','id':0x1},'requestId':{'type':'uint32','id':0x2},'revisions':{'type':'RevisionDescriptor','id':0x3,'rule':'repeated'}}}))());constructor(_0x4fb3e4,_0xbdff46,_0x17a132){super(),this['channel']=_0x4fb3e4,this['requestId']=_0xbdff46,this['revisions']=_0x17a132;}toJSON(){return{'channel':this['channel'],'requestId':this['requestId'],'revisions':this['revisions']['map'](Ex['toJSON'])};}toObject(){return{'channel':this['channel'],'requestId':this['requestId'],'revisions':this['revisions']['map'](Ex['toObject'])};}static['fromJSON'](_0x50c60c){return new RevisionHistoryConnectResponse(_0x50c60c['channel'],_0x50c60c['requestId'],_0x50c60c['revisions']['map'](Ex['fromJSON']));}},xx=class RevisionHistoryReconnectMessage extends Ck{documentId;requestId;static ['TYPE']='122';static ['READABLE_TYPE_NAME']='reconnectToRevisionHistory';static ['DESCRIPTOR_NAME']='RevisionHistoryReconnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'requestId':{'type':'uint32','id':0x2}}};constructor(_0x349a44,_0x1806b6){super(),this['documentId']=_0x349a44,this['requestId']=_0x1806b6;}toJSON(){return{'documentId':this['documentId'],'requestId':this['requestId']};}static['fromJSON'](_0x72543){return new RevisionHistoryReconnectMessage(_0x72543['documentId'],_0x72543['requestId']);}},Cx=class ChannelDisconnectedMessage extends Ck{static ['TYPE']='15';static ['READABLE_TYPE_NAME']='channelDisconnected';static ['DESCRIPTOR_NAME']='ChannelDisconnectedMessage';static ['DESCRIPTOR']={'fields':{}};toJSON(){return{};}static['fromJSON'](){return new ChannelDisconnectedMessage();}},Rx=class extends Hk{constructor(_0x474d62,_0x7e7246){super(_0x474d62+'\x20Service\x20is\x20not\x20connected.',_0x7e7246);}},Px=class RevisionHistoryService extends _0x3e0c97(){_documentId;_isConnected=!0x1;_wsGateway;['_channel'];static ['_SERVICE']=0xc;constructor(_0x190e1f){super(),this['_documentId']=_0x190e1f;}get isConnected(){return this['_isConnected'];}connect(_0x3b279b){return this['_isConnected']?Promise['resolve']():this['_connect'](_0x3b279b,new Ix(this['_documentId']));}disconnect(){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['fire']('disconnected'),this['stopListening']());}reconnect(_0x1bc82e,_0x267081){if(this['isConnected'])throw new Hk('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0x1bc82e);return this['_connect'](_0x1bc82e,new xx(this['_documentId'],_0x267081));}async updateRevisions(_0x2ca650,_0x33aca7){const _0x3305b8=Ax['create']({'documentId':this['_documentId'],'requestId':_0x33aca7,'revisions':_0x2ca650}),_0x2aed9f=await this['_sendRequest'](Ax['TYPE'],_0x3305b8),{requestId:_0x58903f}=Mk['decode'](_0x2aed9f,Sx);return _0x58903f;}async getRevision(_0x5a3979){const _0xbf06da=new _x(this['_documentId'],_0x5a3979),_0xee2674=await this['_sendRequest'](_x['TYPE'],_0xbf06da);return Mk['decode'](_0xee2674,Tx)['toObject']();}async _connect(_0x52169b,_0x2f26af){if(_0x52169b['state']!==Ox)throw new Hk('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x52169b);this['_wsGateway']=_0x52169b,this['stopListening'](_0x52169b,'change:state');const _0x3f7783=await _0x52169b['_sendRequest'](0xc,_0x2f26af['constructor']['TYPE'],Mk['encode'](_0x2f26af)),{channel:_0x4c503f,requestId:_0x28f9e6,revisions:_0xae3b16}=Mk['decode'](_0x3f7783,kx)['toObject']();return this['listenTo'](_0x52169b,'change:state',(_0x1bdfa6,_0x5361f1,_0x370ef9)=>this['_onWsGatewayStateChange'](_0x370ef9),{'priority':wx['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x52169b,_0x4c503f),this['_isConnected']=!0x0,this['fire']('connected'),{'revisions':_0xae3b16,'requestId':_0x28f9e6};}_connectToChannel(_0x3ba849,_0x8a7b1a){this['_channel']=_0x3ba849['_getChannel'](RevisionHistoryService['_SERVICE'],_0x8a7b1a),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](Ax['TYPE']),(_0x53b1ca,_0x1fb313)=>{const {documentId:_0x4c651e,requestId:_0xfe6728,revisions:_0x2319bd}=Mk['decode'](_0x1fb313,Ax)['toObject']();this['fire']('revisionsUpdated',{'documentId':_0x4c651e,'requestId':_0xfe6728,'revisionsData':_0x2319bd});}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](Cx['TYPE']),()=>{this['disconnect']();}));}_onWsGatewayStateChange(_0x4d3327){_0x4d3327===px&&this['disconnect']();}_sendRequest(_0x10ab5a,_0x3b1a79){if(!this['_wsGateway']||!this['_isConnected'])throw new Rx('Revision\x20History',this);return this['_wsGateway']['_sendRequest'](0xc,_0x10ab5a,Mk['encode'](_0x3b1a79));}},Nx=class AddSuggestionMessage extends Ck{['id'];documentId;type;data;originalSuggestionId;attributes;static ['TYPE']='101';static ['READABLE_TYPE_NAME']='addSuggestion';static ['DESCRIPTOR_NAME']='TrackChangesAddSuggestionMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'type':{'type':'string','id':0x3},'data':{'type':'string','id':0x4},'originalSuggestionId':{'type':'string','id':0x5},'attributes':{'type':'string','id':0x6}}};constructor(_0x47b99f,_0x4356a9,_0x2b118e,_0xfe6bbb={},_0x645725=null,_0x12285c=null){super(),this['id']=_0x47b99f,this['documentId']=_0x4356a9,this['type']=_0x2b118e,this['data']=_0xfe6bbb,this['originalSuggestionId']=_0x645725,this['attributes']=_0x12285c;}toJSON(){return{'id':this['id'],'documentId':this['documentId'],'type':this['type'],'data':JSON['stringify'](this['data']),'originalSuggestionId':this['originalSuggestionId'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](_0x2a4e5c){return new AddSuggestionMessage(_0x2a4e5c['id'],_0x2a4e5c['documentId'],_0x2a4e5c['type'],JSON['parse'](_0x2a4e5c['data']),_0x2a4e5c['originalSuggestionId']??null,_0x2a4e5c['attributes']?JSON['parse'](_0x2a4e5c['attributes']):null);}},Mx=class AddSuggestionResponse extends Ck{['id'];authorId;type;hasComments;state;data;attributes;createdAt;static ['DESCRIPTOR_NAME']='TrackChangesAddSuggestionResponse';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'authorId':{'type':'string','id':0x2},'type':{'type':'string','id':0x3},'createdAt':{'type':'string','id':0x4},'data':{'type':'string','id':0x5},'hasComments':{'type':'bool','id':0x6},'state':{'type':'string','id':0x7},'attributes':{'type':'string','id':0x8}}};constructor(_0x22e90a,_0x1e1d40,_0xc80737,_0xb43d3c,_0x584871,_0x4bdaec,_0x1d724e={},_0x40a987=null){super(),this['id']=_0x22e90a,this['authorId']=_0x1e1d40,this['type']=_0xc80737,this['hasComments']=_0x584871,this['state']=_0x4bdaec,this['data']=_0x1d724e,this['attributes']=_0x40a987,this['createdAt']=_0xb43d3c?new Date(_0xb43d3c):void 0x0;}toJSON(){return{'id':this['id'],'authorId':this['authorId'],'type':this['type'],'createdAt':this['createdAt']?.['toISOString'](),'data':JSON['stringify'](this['data']),'hasComments':this['hasComments'],'state':this['state'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](_0x229576){return new AddSuggestionResponse(_0x229576['id'],_0x229576['authorId'],_0x229576['type'],_0x229576['createdAt'],_0x229576['hasComments'],_0x229576['state'],JSON['parse'](_0x229576['data']),_0x229576['attributes']?JSON['parse'](_0x229576['attributes']):null);}},Lx=class GetSuggestionMessage extends Ck{['id'];documentId;static ['TYPE']='103';static ['READABLE_TYPE_NAME']='getSuggestion';static ['DESCRIPTOR_NAME']='TrackChangesGetSuggestionMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0x5951c3,_0x372320){super(),this['id']=_0x5951c3,this['documentId']=_0x372320;}toJSON(){return{'id':this['id'],'documentId':this['documentId']};}static['fromJSON'](_0x5db33d){return new GetSuggestionMessage(_0x5db33d['id'],_0x5db33d['documentId']);}},$x=class GetSuggestionResponse extends Ck{['id'];authorId;type;hasComments;state;data;attributes;createdAt;static ['DESCRIPTOR_NAME']='TrackChangesGetSuggestionResponse';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'authorId':{'type':'string','id':0x2},'type':{'type':'string','id':0x3},'createdAt':{'type':'string','id':0x4},'data':{'type':'string','id':0x5},'hasComments':{'type':'bool','id':0x6},'state':{'type':'string','id':0x7},'attributes':{'type':'string','id':0x8}}};constructor(_0x522fa8,_0x4040f7,_0x54bf2a,_0x46e837,_0x4e7cec,_0x42877b,_0x422921={},_0x3b8824=null){super(),this['id']=_0x522fa8,this['authorId']=_0x4040f7,this['type']=_0x54bf2a,this['hasComments']=_0x4e7cec,this['state']=_0x42877b,this['data']=_0x422921,this['attributes']=_0x3b8824,this['createdAt']=new Date(_0x46e837);}toJSON(){return{'id':this['id'],'authorId':this['authorId'],'type':this['type'],'createdAt':this['createdAt']['toISOString'](),'data':JSON['stringify'](this['data']),'hasComments':this['hasComments'],'state':this['state'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](_0x57fa4f){return new GetSuggestionResponse(_0x57fa4f['id'],_0x57fa4f['authorId'],_0x57fa4f['type'],_0x57fa4f['createdAt'],_0x57fa4f['hasComments'],_0x57fa4f['state'],JSON['parse'](_0x57fa4f['data']),_0x57fa4f['attributes']?JSON['parse'](_0x57fa4f['attributes']):null);}},Dx=class GetAllSuggestionsMessage extends Ck{documentId;static ['TYPE']='102';static ['READABLE_TYPE_NAME']='getAllSuggestions';static ['DESCRIPTOR_NAME']='TrackChangesGetAllSuggestionMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x107cb3){super(),this['documentId']=_0x107cb3;}toJSON(){return{'documentId':this['documentId']};}static['fromJSON'](_0x368566){return new GetAllSuggestionsMessage(_0x368566['documentId']);}},Qx=class extends xk{static ['DESCRIPTOR_NAME']='SuggestionDescriptor';static ['DESCRIPTOR']={'fields':{'id':{'id':0x1,'type':'string'},'authorId':{'id':0x2,'type':'string'},'type':{'id':0x3,'type':'string'},'createdAt':{'id':0x4,'type':'string'},'data':{'id':0x5,'type':'string'},'hasComments':{'id':0x6,'type':'bool'},'state':{'id':0x7,'type':'string'},'attributes':{'id':0x8,'type':'string'}}};static toJSON(_0x175c34){return{..._0x175c34,'data':_0x175c34['data']?JSON['stringify'](_0x175c34['data']):_0x175c34['data'],'attributes':_0x175c34['attributes']?JSON['stringify'](_0x175c34['attributes']):_0x175c34['attributes'],'createdAt':_0x175c34['createdAt']?.['toISOString']()};}static['fromJSON'](_0x33dbb5){return{..._0x33dbb5,'data':_0x33dbb5['data']?JSON['parse'](_0x33dbb5['data']):_0x33dbb5['data'],'attributes':_0x33dbb5['attributes']?JSON['parse'](_0x33dbb5['attributes']):_0x33dbb5['attributes'],'createdAt':_0x33dbb5['createdAt']?new Date(_0x33dbb5['createdAt']):void 0x0};}},jx=class GetAllSuggestionResponse extends Ck{_suggestions;_suggestionsV2;suggestions;static ['DESCRIPTOR_NAME']='TrackChangesGetAllSuggestionsResponse';static ['DESCRIPTOR']={'fields':{'suggestions':{'type':'string','rule':'repeated','id':0x1},'suggestionsV2':{'type':'SuggestionDescriptor','rule':'repeated','id':0x2}}};constructor(_0xf4bf87,_0x4033be){super(),this['_suggestions']=_0xf4bf87,this['_suggestionsV2']=_0x4033be,this['suggestions']=_0x4033be?.['length']?_0x4033be:_0xf4bf87;}toJSON(){return{'suggestions':this['_suggestions']?.['map'](_0x145e38=>JSON['stringify'](_0x145e38)),'suggestionsV2':this['_suggestionsV2']?.['map'](Qx['toJSON'])};}static['fromJSON'](_0x44bc35){return new GetAllSuggestionResponse(_0x44bc35['suggestions']?.['map'](Ux),_0x44bc35['suggestionsV2']?.['map'](Qx['fromJSON']));}};function Ux(_0x3f60ea){const _0x4e9be9=JSON['parse'](_0x3f60ea);return _0x4e9be9['createdAt']=_0x4e9be9['createdAt']?new Date(_0x4e9be9['createdAt']):void 0x0,_0x4e9be9;}var Vx=class UpdateSuggestionMessage extends Ck{['id'];documentId;hasComments;isHasCommentsModified;state;attributes;static ['TYPE']='104';static ['READABLE_TYPE_NAME']='updateSuggestion';static ['DESCRIPTOR_NAME']='TrackChangesUpdateSuggestionMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'hasComments':{'type':'bool','id':0x3},'isHasCommentsModified':{'type':'bool','id':0x4},'state':{'type':'string','id':0x5},'attributes':{'type':'string','id':0x6}}};constructor(_0x141035,_0x3b1b71,_0x41f9e6,_0x10ab98,_0x3dbcfb,_0x52ce60=null){super(),this['id']=_0x141035,this['documentId']=_0x3b1b71,this['hasComments']=_0x41f9e6,this['isHasCommentsModified']=_0x10ab98,this['state']=_0x3dbcfb,this['attributes']=_0x52ce60;}toJSON(){return{'id':this['id'],'documentId':this['documentId'],'hasComments':this['hasComments'],'isHasCommentsModified':this['isHasCommentsModified'],'state':this['state'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](_0x4aa817){return new UpdateSuggestionMessage(_0x4aa817['id'],_0x4aa817['documentId'],_0x4aa817['hasComments'],_0x4aa817['isHasCommentsModified'],_0x4aa817['state'],_0x4aa817['attributes']?JSON['parse'](_0x4aa817['attributes']):null);}};let Bx=class ConnectMessage extends Ck{documentId;static ['TYPE']='105';static ['READABLE_TYPE_NAME']='connectToSuggestions';static ['DESCRIPTOR_NAME']='TrackChangesConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x356dec){super(),this['documentId']=_0x356dec;}toJSON(){return{'documentId':this['documentId']};}static['fromJSON'](_0x58fc2d){return new ConnectMessage(_0x58fc2d['documentId']);}},Hx=class ConnectResponse extends Ck{['channel'];_suggestions;_suggestionsV2;suggestions;static ['DESCRIPTOR_NAME']='TrackChangesConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'suggestions':{'type':'string','rule':'repeated','id':0x2},'suggestionsV2':{'type':'SuggestionDescriptor','rule':'repeated','id':0x3}}};constructor(_0x427543,_0x3588c2,_0x4ea626){super(),this['channel']=_0x427543,this['_suggestions']=_0x3588c2,this['_suggestionsV2']=_0x4ea626,this['suggestions']=_0x4ea626?.['length']?_0x4ea626:_0x3588c2;}toJSON(){return{'channel':this['channel'],'suggestions':this['_suggestions']?.['map'](_0x398af9=>JSON['stringify'](_0x398af9)),'suggestionsV2':this['_suggestionsV2']?.['map'](Qx['toJSON'])};}static['fromJSON'](_0x5448da){return new ConnectResponse(_0x5448da['channel'],_0x5448da['suggestions']?.['map'](_0x3ca423=>JSON['parse'](_0x3ca423)),_0x5448da['suggestionsV2']?.['map'](Qx['fromJSON']));}};var Fx=class BatchUpdateSuggestionsStateMessage extends Ck{['ids'];documentId;state;static ['TYPE']='106';static ['READABLE_TYPE_NAME']='batchUpdateSuggestionsState';static ['DESCRIPTOR_NAME']='TrackChangesBatchUpdateSuggestionsStateMessage';static ['DESCRIPTOR']={'fields':{'ids':{'type':'string','rule':'repeated','id':0x1},'documentId':{'type':'string','id':0x2},'state':{'type':'string','id':0x3}}};constructor(_0x5c3908,_0x4f67be,_0x3cdca5){super(),this['ids']=_0x5c3908,this['documentId']=_0x4f67be,this['state']=_0x3cdca5;}toJSON(){return{'ids':this['ids'],'documentId':this['documentId'],'state':this['state']};}static['fromJSON'](_0x114af2){return new BatchUpdateSuggestionsStateMessage(_0x114af2['ids'],_0x114af2['documentId'],_0x114af2['state']);}},Zx=class TrackChangesService extends _0x3e0c97(){_documentId;_isConnected=!0x1;_wsGateway;['_channel'];static ['_SERVICE']=0xa;constructor(_0x30a33c){super(),this['_documentId']=_0x30a33c;}get isConnected(){return this['_isConnected'];}async connect(_0x561d79){if(this['_isConnected'])return;if(_0x561d79['state']!==Ox)throw new Hk('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x561d79);const _0x3fea38=new Bx(this['_documentId']);this['_wsGateway']=_0x561d79,this['stopListening'](_0x561d79,'change:state');const _0x1e912f=await _0x561d79['_sendRequest'](0xa,Bx['TYPE'],Mk['encode'](_0x3fea38)),_0x5ef61f=Mk['decode'](_0x1e912f,Hx);return this['listenTo'](_0x561d79,'change:state',(_0x4e1fd4,_0x28171,_0x2fe447)=>this['_onWsGatewayStateChange'](_0x2fe447),{'priority':wx['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x561d79,_0x5ef61f['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0x5ef61f['suggestions'];}disconnect(){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['add'](_0x3fdd70,_0x21c9bc,_0x4365fc,_0x356f17=null,_0x4e0ce9){const _0x59a2e6=new Nx(_0x3fdd70,this['_documentId'],_0x21c9bc,_0x4365fc,_0x356f17,_0x4e0ce9),_0x2771e6=await this['_sendRequest'](Nx['TYPE'],_0x59a2e6);return Mk['decode'](_0x2771e6,Mx);}async get(_0x5183,_0x307a0f=0x1){const _0x196f2d=new Lx(_0x5183,this['_documentId']);try{const _0x5d9174=await this['_sendRequest'](Lx['TYPE'],_0x196f2d);return Mk['decode'](_0x5d9174,$x);}catch(_0x5b8d25){if('CKEditorCloudServicesServerError'===_0x5b8d25['name']&&'404'===_0x5b8d25['code']&&_0x307a0f<0x5)return await(_0x15ed0d=0x64*_0x307a0f,new Promise(_0x2d51bb=>{setTimeout(_0x2d51bb,_0x15ed0d);})),this['get'](_0x5183,_0x307a0f+0x1);if('CKEditorCloudServicesServerError'===_0x5b8d25['name'])throw _0x5b8d25;throw Fk['fromPublicError'](_0x5b8d25);}var _0x15ed0d;}async getAll(){const _0x2011f5=new Dx(this['_documentId']),_0x3eeafb=await this['_sendRequest'](Dx['TYPE'],_0x2011f5),{suggestions:_0x222ced}=Mk['decode'](_0x3eeafb,jx);return _0x222ced;}async update(_0x1fd636,_0x1a3aa7={}){const {hasComments:_0x393749,state:_0x45accd,attributes:_0x3300ce}=_0x1a3aa7,_0x4abace=void 0x0!==_0x393749,_0x437489=new Vx(_0x1fd636,this['_documentId'],_0x393749,_0x4abace,_0x45accd,_0x3300ce);await this['_sendRequest'](Vx['TYPE'],_0x437489);}async batchUpdateState(_0x15d400){const _0x226bbd=new Fx(_0x15d400['ids'],this['_documentId'],_0x15d400['state']);await this['_sendRequest'](Fx['TYPE'],_0x226bbd);}_connectToChannel(_0x36cf6e,_0x4e3608){this['_channel']=_0x36cf6e['_getChannel'](TrackChangesService['_SERVICE'],_0x4e3608),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](Vx['TYPE']),(_0x53f225,_0x11c7c8)=>{const _0x440e28=Mk['decode'](_0x11c7c8,Vx);this['fire']('suggestionUpdated',_0x440e28);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](Cx['TYPE']),()=>{this['disconnect']();}));}_onWsGatewayStateChange(_0x4063d9){_0x4063d9===px&&this['disconnect']();}_sendRequest(_0x115712,_0x50e854){if(!this['_wsGateway']||!this['_isConnected'])throw new Rx('Track\x20Changes',this);return this['_wsGateway']['_sendRequest'](0xa,_0x115712,Mk['encode'](_0x50e854));}},Gx=class SessionsConnectResponse extends Ck{['channel'];sockets;static ['DESCRIPTOR_NAME']='SessionsConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'sockets':{'rule':'repeated','type':'SessionsSocketDescriptor','id':0x2}}};constructor(_0x5ec54f,_0x24188f=[]){super(),this['channel']=_0x5ec54f,this['sockets']=_0x24188f;}toJSON(){return{'channel':this['channel'],'sockets':this['sockets']['map'](_0x12709d=>({'user':_0x12709d['userId'],'session':_0x12709d['id'],'role':_0x12709d['role'],'permissions':_0x12709d['permissions']}))};}static['fromJSON'](_0x15a46f){return new SessionsConnectResponse(_0x15a46f['channel'],_0x15a46f['sockets']['map'](_0x8d6f44=>({'id':_0x8d6f44['session'],'userId':_0x8d6f44['user'],'role':_0x8d6f44['role'],'permissions':_0x8d6f44['permissions']})));}},Xx=class SessionsConnectMessage extends Ck{['id'];['sessionType'];static ['TYPE']='31';static ['READABLE_TYPE_NAME']='getConnectedSockets';static ['DESCRIPTOR_NAME']='SessionsConnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'sessionType':{'type':'uint32','id':0x2}}};constructor(_0x687cfb,_0x162897){super(),this['id']=_0x687cfb,this['sessionType']=_0x162897;}toJSON(){return{'id':this['id'],'sessionType':this['sessionType']};}static['fromJSON'](_0x2d8889){return new SessionsConnectMessage(_0x2d8889['id'],_0x2d8889['sessionType']);}},qx=class SocketConnectMessage extends Ck{['id'];['userId'];['role'];['permissions'];static ['TYPE']='32';static ['READABLE_TYPE_NAME']='connectSocket';static ['DESCRIPTOR_NAME']='SocketConnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'userId':{'type':'string','id':0x2},'role':{'type':'string','id':0x3},'permissions':{'rule':'repeated','type':'string','id':0x4}}};constructor(_0x422286,_0x1894b5,_0x206a56,_0x123662){super(),this['id']=_0x422286,this['userId']=_0x1894b5,this['role']=_0x206a56,this['permissions']=_0x123662;}toJSON(){return{'id':this['id'],'userId':this['userId']??void 0x0,'role':this['role']??void 0x0,'permissions':this['permissions']??void 0x0};}static['fromJSON'](_0x3789ee){return new SocketConnectMessage(_0x3789ee['id'],_0x3789ee['userId'],_0x3789ee['role'],_0x3789ee['permissions']);}},Wx=class SocketDisconnectMessage extends Ck{['id'];static ['TYPE']='33';static ['READABLE_TYPE_NAME']='disconnectSocket';static ['DESCRIPTOR_NAME']='SocketDisconnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1}}};constructor(_0x787d35){super(),this['id']=_0x787d35;}toJSON(){return{'id':this['id']};}static['fromJSON'](_0x47aa03){return new SocketDisconnectMessage(_0x47aa03['id']);}},zx=class extends _0x2186b6{['_id'];['_sessionType'];['_handlers']=new Map();['_channel'];_wsGateway;_connected;_eventsQueue=[];['_isRunning']=!0x1;constructor(_0x494a4d,_0x5e54df){super({'idProperty':'id'}),this['_id']=_0x494a4d,this['_sessionType']=_0x5e54df;}async connect(_0x587421){this['_wsGateway']=_0x587421,this['stopListening'](_0x587421,'change:state');const _0x5d6c84=new Xx(this['_id'],this['_sessionType']);let _0x20d53e;try{const _0x1b1cdf=await this['_wsGateway']['_sendRequest'](0x3,Xx['TYPE'],Mk['encode'](_0x5d6c84));_0x20d53e=Mk['decode'](_0x1b1cdf,Gx);}catch{_0x20d53e=new Gx(this['_id'],[]);}this['_connectToChannel'](this['_wsGateway'],_0x20d53e['channel'],this['_sessionType']);const _0x4ab1c9=await async function(_0xc9e242,_0x1334b2){const _0xd9245f=_0x1334b2['map'](_0x1f5b04=>_0x1f5b04['userId']),_0x49b9ac=_0xd9245f['length']?await Uk['getMany'](_0xc9e242,_0xd9245f):[];return _0x1334b2['map'](_0x5f2d94=>{const _0x4dfc05={'id':_0x5f2d94['id'],'role':_0x5f2d94['role'],'permissions':_0x5f2d94['permissions']};return _0x4dfc05['user']=_0x5f2d94['userId']&&_0x49b9ac['find'](_0x133dd6=>_0x133dd6['id']===_0x5f2d94['userId'])||new Uk(),_0x4dfc05;});}(this['_wsGateway'],_0x20d53e['sockets']);for(const _0x593cbc of _0x4ab1c9)super['add'](_0x593cbc);this['_connected']=!0x0,this['fire']('connected'),this['listenTo'](this['_wsGateway'],'change:state',(_0x451ebe,_0x2bcdaf,_0xdc4f6d)=>this['_onWsGatewayStateChange'](_0xdc4f6d),{'priority':wx['_CHANGE_STATE_EVENT_PRIORITY']}),await this['_runQueue']();}disconnect(_0x4d4f4b=!0x0){if(this['_connected']){for(this['_connected']=!0x1,this['_eventsQueue']=[];this['length'];)super['remove'](0x0);this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_wsGateway']&&_0x4d4f4b&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['fire']('disconnected'),_0x4d4f4b&&this['stopListening']();}}['add'](_0x545128,_0x3f1ef4){throw new TypeError('The\x20collection\x20is\x20read-only.');}['remove'](_0x5d525b){throw new TypeError('The\x20collection\x20is\x20read-only.');}_connectToChannel(_0x3d54c2,_0x78837e,_0x51d960){this['_channel']=_0x3d54c2['_getChannel'](_0x51d960,_0x78837e),this['_channel']&&(this['_addHandler'](this['_channel'],qx['TYPE'],async _0x32dbaf=>{const _0x2d836d=Mk['decode'](_0x32dbaf,qx);if(-0x1===this['getIndex'](_0x2d836d['id'])){const _0xe0448c={'id':_0x2d836d['id'],'role':_0x2d836d['role'],'permissions':_0x2d836d['permissions']};_0x2d836d['userId']&&(_0xe0448c['user']=await Uk['get'](_0x3d54c2,_0x2d836d['userId'])),super['add'](_0xe0448c);}}),this['_addHandler'](this['_channel'],Wx['TYPE'],_0x19b0c6=>{const _0x1faf00=Mk['decode'](_0x19b0c6,Wx);-0x1!==this['getIndex'](_0x1faf00['id'])&&super['remove'](_0x1faf00['id']);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](Cx['TYPE']),()=>{this['disconnect']();}));}async _onWsGatewayStateChange(_0x9079a9){_0x9079a9===wx['STATE_DISCONNECTED']&&this['disconnect'](!0x1),_0x9079a9===wx['STATE_CONNECTED']&&await this['connect'](this['_wsGateway']);}async['_runQueue'](){if(this['_isRunning']||!this['_connected'])return;let _0x130bd5;for(this['_isRunning']=!0x0;_0x130bd5=this['_eventsQueue']['shift']();){const _0x131e0f=this['_handlers']['get'](_0x130bd5['eventName']);_0x131e0f&&await _0x131e0f(_0x130bd5['data']);}this['_isRunning']=!0x1;}['_addHandler'](_0x385a79,_0x619290,_0x23e100){const _0x454b2c=_0x385a79['getEventName'](_0x619290,!0x0);this['listenTo'](_0x385a79,_0x454b2c,async(_0x45953a,_0x460ee7)=>{const _0x3bf16e=_0x45953a['name'];this['_eventsQueue']['push']({'eventName':_0x3bf16e,'data':_0x460ee7}),await this['_runQueue']();}),this['_handlers']['set'](_0x454b2c,_0x23e100);}},Yx=class{static async getConnectedSessions(_0x40a360,_0x1aee1d,_0x44478a){const _0x21eb0b=new zx(_0x1aee1d,_0x44478a);return await _0x21eb0b['connect'](_0x40a360),_0x21eb0b;}},Kx=class CollaborativeEditingConnectMessage extends Ck{['id'];['buffers'];types;['bundleVersion'];lastOperationId;static ['TYPE']='11';static ['READABLE_TYPE_NAME']='connectToDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingConnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'bundleVersion':{'type':'string','id':0x2},'buffers':{'rule':'repeated','type':'bytes','id':0x3},'types':{'rule':'repeated','type':'uint32','id':0x4},'lastOperationId':{'type':'string','id':0x5}}};constructor(_0x2d52c5,_0x12405e,_0x515180,_0x32405a,_0x8f92a8=''){super(),this['id']=_0x2d52c5,this['buffers']=_0x12405e,this['types']=_0x515180,this['bundleVersion']=_0x32405a,this['lastOperationId']=_0x8f92a8;}toJSON(){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'bundleVersion':this['bundleVersion'],'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x362990){return new CollaborativeEditingConnectMessage(_0x362990['id'],_0x362990['buffers'],_0x362990['types'],_0x362990['bundleVersion'],_0x362990['lastOperationId']);}},Jx=class{static prepareMetadataForOperations(_0x459155,_0x2ac7cb){if(!_0x459155?.['length']||!_0x2ac7cb?.['length'])return[];const _0x57bc2c=[];let _0x2bf869=0x0;for(const _0x98cda of _0x459155)if(0x0!==_0x98cda){if(!_0x2ac7cb[_0x2bf869])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x57bc2c['push'](_0x2ac7cb[_0x2bf869]),_0x2bf869++;}else _0x57bc2c['push'](_0x57bc2c[_0x57bc2c['length']-0x1]);return _0x57bc2c;}static removeUnnecessaryMetadata(_0x44a501,_0x4047a4){if(!_0x44a501?.['length']||!_0x4047a4?.['length'])return[];const _0x49d59d=[];for(let _0x3b03f9=0x0;_0x3b03f9<_0x44a501['length'];_0x3b03f9++)if(0x0!==_0x44a501[_0x3b03f9]){if(!_0x4047a4[_0x3b03f9])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x49d59d['push'](_0x4047a4[_0x3b03f9]);}return _0x49d59d;}},tC=class extends xk{static ['DESCRIPTOR_NAME']='OperationMetadataDescriptor';static ['DESCRIPTOR']=((()=>({'fields':{'userId':{'type':'string','id':0x1},'type':{'type':'string','id':0x2},'createdAt':{'type':'string','id':0x3}}}))());static toJSON({createdAt:_0x54bef6,..._0x3617dc}){const _0x1d1465={..._0x3617dc};return _0x54bef6?.['toISOString']&&(_0x1d1465['createdAt']=_0x54bef6['toISOString']()),_0x1d1465;}static['fromJSON']({createdAt:_0x42fdef,..._0x469824}){const _0x15d225={..._0x469824};return _0x42fdef&&(_0x15d225['createdAt']=new Date(_0x42fdef)),_0x15d225;}},eC=class CollaborativeEditingUpdateMessage extends Ck{['id'];['buffers'];types;['baseVersion'];metadata;lastOperationId;static ['TYPE']='13';static ['READABLE_TYPE_NAME']='updateDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingUpdateMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'baseVersion':{'type':'uint32','id':0x2},'buffers':{'rule':'repeated','type':'bytes','id':0x3},'types':{'rule':'repeated','type':'uint32','id':0x4},'metadata':{'rule':'repeated','type':'OperationMetadataDescriptor','id':0x6},'lastOperationId':{'type':'string','id':0x7}}};constructor(_0x4de7ce,_0x10eaa0,_0x2e1690,_0x3d1e2e,_0x57a5a7=[],_0x1cfaf1=''){super(),this['id']=_0x4de7ce,this['buffers']=_0x10eaa0,this['types']=_0x2e1690,this['baseVersion']=_0x3d1e2e,this['metadata']=_0x57a5a7,this['lastOperationId']=_0x1cfaf1;}get data(){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['baseVersion'],'lastOperationId':this['lastOperationId']};}toJSON(){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'baseVersion':this['baseVersion'],'metadata':Jx['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](tC['toJSON']),'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x403e17){return new CollaborativeEditingUpdateMessage(_0x403e17['id'],_0x403e17['buffers'],_0x403e17['types'],_0x403e17['baseVersion'],Jx['prepareMetadataForOperations'](_0x403e17['types'],_0x403e17['metadata'])['map'](tC['fromJSON']),_0x403e17['lastOperationId']);}},iC=class CollaborativeEditingReconnectMessage extends Ck{['id'];lastKnowVersion;['bundleVersion'];static ['TYPE']='12';static ['READABLE_TYPE_NAME']='reconnectToDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingReconnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'bundleVersion':{'type':'string','id':0x2},'lastKnowVersion':{'type':'uint32','id':0x3}}};constructor(_0x22a673,_0xebc0f,_0xd3ddb3){super(),this['id']=_0x22a673,this['lastKnowVersion']=_0xebc0f,this['bundleVersion']=_0xd3ddb3;}toJSON(){return{'id':this['id'],'bundleVersion':this['bundleVersion'],'lastKnowVersion':this['lastKnowVersion']};}static['fromJSON'](_0x5997b1){return new CollaborativeEditingReconnectMessage(_0x5997b1['id'],_0x5997b1['lastKnowVersion'],_0x5997b1['bundleVersion']);}},sC=class CollaborativeEditingResponse extends Ck{['version'];['buffers'];types;metadata;lastOperationId;lastOperationAcceptedAt;static ['DESCRIPTOR_NAME']='CollaborativeEditingResponse';static ['DESCRIPTOR']={'fields':{'version':{'type':'uint32','id':0x1},'buffers':{'rule':'repeated','type':'bytes','id':0x2},'types':{'rule':'repeated','type':'uint32','id':0x3},'metadata':{'rule':'repeated','type':'OperationMetadataDescriptor','id':0x5},'lastOperationId':{'type':'string','id':0x6},'lastOperationAcceptedAt':{'type':'string','id':0x7}}};constructor(_0x4d9c53,_0x49d675=[],_0x13a4e4=[],_0x47f302=[],_0x4bca2d='',_0x3ed14a=null){super(),this['version']=_0x4d9c53,this['buffers']=_0x49d675,this['types']=_0x13a4e4,this['metadata']=_0x47f302,this['lastOperationId']=_0x4bca2d,this['lastOperationAcceptedAt']=_0x3ed14a;}get data(){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['version']-this['types']['length'],'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']};}get['wereChangesApplied'](){return!this['types']?.['length'];}toJSON(){return{'version':this['version'],'buffers':this['buffers'],'types':this['types'],'metadata':Jx['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](tC['toJSON']),'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']instanceof Date?this['lastOperationAcceptedAt']['toISOString']():this['lastOperationAcceptedAt']};}static['fromJSON'](_0x1f25d5){return new CollaborativeEditingResponse(_0x1f25d5['version'],_0x1f25d5['buffers'],_0x1f25d5['types'],Jx['prepareMetadataForOperations'](_0x1f25d5['types'],_0x1f25d5['metadata'])['map'](tC['fromJSON']),_0x1f25d5['lastOperationId'],_0x1f25d5['lastOperationAcceptedAt']?new Date(_0x1f25d5['lastOperationAcceptedAt']):null);}static create(_0x597be5){return new CollaborativeEditingResponse(_0x597be5['version'],_0x597be5['buffers'],_0x597be5['types'],_0x597be5['metadata'],_0x597be5['lastOperationId'],_0x597be5['lastOperationAcceptedAt']?new Date(_0x597be5['lastOperationAcceptedAt']):null);}},nC=class CollaborativeEditingConnectResponse extends Ck{['channel'];['version'];['buffers'];types;offset;metadata;initData;['sessionId'];lastOperationId;sessionCreatedAt;static ['DESCRIPTOR_NAME']='CollaborativeEditingConnectResponse';static ['DESCRIPTOR']=((()=>({'fields':{'channel':{'type':'string','id':0x1},'offset':{'type':'uint32','id':0x2},'version':{'type':'uint32','id':0x3},'buffers':{'rule':'repeated','type':'bytes','id':0x4},'types':{'rule':'repeated','type':'uint32','id':0x5},'metadata':{'rule':'repeated','type':tC['DESCRIPTOR_NAME'],'id':0x7},'initData':{'type':'string','id':0x8},'isInitialized':{'type':'bool','id':0x9},'sessionId':{'type':'string','id':0xa},'lastOperationId':{'type':'string','id':0xb},'sessionCreatedAt':{'type':'string','id':0xc}}}))());constructor(_0x2fa45b,_0x298303,_0x34ea87=[],_0x42b05f=[],_0x5eedb6=0x0,_0xe384e1=[],_0x35fdb3=null,_0x40e7f2='',_0x23005d='',_0x31876d=null){super(),this['channel']=_0x2fa45b,this['version']=_0x298303,this['buffers']=_0x34ea87,this['types']=_0x42b05f,this['offset']=_0x5eedb6,this['metadata']=_0xe384e1,this['initData']=_0x35fdb3,this['sessionId']=_0x40e7f2,this['lastOperationId']=_0x23005d,this['sessionCreatedAt']=_0x31876d;}get data(){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['version']-this['types']['length'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']};}get['wereChangesApplied'](){return!this['types']?.['length']&&null===this['initData'];}toJSON(){return{'channel':this['channel'],'version':this['version'],'sessionId':this['sessionId'],'buffers':this['buffers'],'types':this['types'],'offset':this['offset'],'metadata':Jx['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](tC['toJSON']),'initData':this['initData']??'','isInitialized':'string'==typeof this['initData'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']?this['sessionCreatedAt']['toISOString']():null};}static create(_0x54689e){return new CollaborativeEditingConnectResponse(_0x54689e['channel'],_0x54689e['version'],_0x54689e['buffers'],_0x54689e['types'],_0x54689e['offset'],_0x54689e['metadata'],_0x54689e['initData'],_0x54689e['sessionId'],_0x54689e['lastOperationId'],_0x54689e['sessionCreatedAt']);}static['fromJSON'](_0x1a4858){let _0x26c75a=null;return!0x0===_0x1a4858['isInitialized']?_0x26c75a=_0x1a4858['initData']??'':'boolean'!=typeof _0x1a4858['isInitialized']&&_0x1a4858['initData']&&(_0x26c75a=_0x1a4858['initData']),CollaborativeEditingConnectResponse['create']({'channel':_0x1a4858['channel'],'version':_0x1a4858['version'],'buffers':_0x1a4858['buffers'],'types':_0x1a4858['types'],'offset':_0x1a4858['offset'],'metadata':Jx['prepareMetadataForOperations'](_0x1a4858['types'],_0x1a4858['metadata'])['map'](tC['fromJSON']),'initData':_0x26c75a,'sessionId':_0x1a4858['sessionId'],'lastOperationId':_0x1a4858['lastOperationId'],'sessionCreatedAt':_0x1a4858['sessionCreatedAt']?new Date(_0x1a4858['sessionCreatedAt']):null});}},rC=class GetDocumentDetailsResponse extends Ck{lastDocumentSession;currentDocumentSession;static ['DESCRIPTOR_NAME']='GetDocumentDetailsResponse';static ['DESCRIPTOR']={'fields':{'lastDocumentSessionId':{'type':'string','id':0x1},'lastDocumentSessionOperationId':{'type':'string','id':0x2},'currentDocumentSessionId':{'type':'string','id':0x3},'currentDocumentSessionVersion':{'type':'uint32','id':0x4},'currentDocumentSessionOperationId':{'type':'string','id':0x5}}};constructor(_0x2179fc,_0x1298d2){super(),this['lastDocumentSession']=_0x2179fc,this['currentDocumentSession']=_0x1298d2;}get data(){return{'lastDocumentSessionId':this['lastDocumentSession']?.['id'],'lastDocumentSessionOperationId':this['lastDocumentSession']?.['lastOperationId'],'currentDocumentSessionId':this['currentDocumentSession']?.['id'],'currentDocumentSessionVersion':this['currentDocumentSession']?.['version'],'currentDocumentSessionOperationId':this['currentDocumentSession']?.['lastOperationId']};}toJSON(){return{'lastDocumentSessionId':this['lastDocumentSession']?.['id'],'lastDocumentSessionOperationId':this['lastDocumentSession']?.['lastOperationId'],'currentDocumentSessionId':this['currentDocumentSession']?.['id'],'currentDocumentSessionVersion':this['currentDocumentSession']?.['version'],'currentDocumentSessionOperationId':this['currentDocumentSession']?.['lastOperationId']};}static['fromJSON'](_0x6a52c3){const _0x1bee37=_0x6a52c3['lastDocumentSessionId']?{'id':_0x6a52c3['lastDocumentSessionId'],'lastOperationId':_0x6a52c3['lastDocumentSessionOperationId']}:void 0x0,_0x1bc7f0=_0x6a52c3['currentDocumentSessionId']?{'lastOperationId':_0x6a52c3['currentDocumentSessionOperationId'],'version':_0x6a52c3['currentDocumentSessionVersion'],'id':_0x6a52c3['currentDocumentSessionId']}:void 0x0;return new GetDocumentDetailsResponse(_0x1bee37,_0x1bc7f0);}},oC=class GetDocumentDetailsMessage extends Ck{documentId;static ['TYPE']='14';static ['READABLE_TYPE_NAME']='getDocumentDetails';static ['DESCRIPTOR_NAME']='GetDocumentDetailsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'environmentId':{'type':'string','id':0x2}}};constructor(_0x2a8f4c){super(),this['documentId']=_0x2a8f4c;}get data(){return{'documentId':this['documentId']};}toJSON(){return{'documentId':this['documentId']};}static['fromJSON'](_0x4c6645){return new GetDocumentDetailsMessage(_0x4c6645['documentId']);}},aC=class extends _0x3e0c97(){static ['_SERVICE']=0x1;['_bundleVersion'];['_id'];_isConnected;_wsGateway;['_channel'];_connectedSessions;constructor(_0x10e211,_0x5d8675){if(super(),!_0x10e211)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0x5d8675??Ik(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x10e211;}getId(){return this['_id'];}isConnected(){return this['_isConnected'];}connect(_0x25ad12,_0x4c82c9={'buffers':[],'types':[]},_0x17c413){const _0x28670c=new Kx(this['getId'](),_0x4c82c9['buffers'],_0x4c82c9['types'],this['_bundleVersion'],_0x17c413);return this['_connect'](_0x25ad12,_0x28670c);}reconnect(_0x352db8,_0x12a453){if(this['isConnected']())throw new Hk('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0x352db8);return this['_connect'](_0x352db8,new iC(this['getId'](),_0x12a453,this['_bundleVersion']));}disconnect(){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_connectedSessions']&&(this['_connectedSessions']['disconnect'](),this['_connectedSessions']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async getDocumentDetails(){const _0x4034c0=new oC(this['getId']());if(!this['_wsGateway'])throw new Rx('Collaborative\x20Editing',this);const _0x59b4ce=await this['_wsGateway']['_sendRequest'](0x1,oC['TYPE'],Mk['encode'](_0x4034c0));return Mk['decode'](_0x59b4ce,rC);}async sendOperations(_0x5360b6,_0x2c172d,_0x287079){if(!_0x5360b6?.['types']?.['length'])throw new Hk('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0x3d0fd3='number'==typeof _0x2c172d?_0x2c172d:parseInt(_0x2c172d);if(!Number['isInteger'](_0x3d0fd3)||_0x3d0fd3<0x0)throw new Hk('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0x41a19a=new eC(this['getId'](),_0x5360b6['buffers'],_0x5360b6['types'],_0x3d0fd3,[],_0x287079);if(!this['_wsGateway']||!this['_isConnected'])throw new Rx('Collaborative\x20Editing',this);const _0x13d57b=await this['_wsGateway']['_sendRequest'](0x1,eC['TYPE'],Mk['encode'](_0x41a19a));return Mk['decode'](_0x13d57b,sC);}async getConnectedSessions(){if(!this['_isConnected'])throw new Rx('Collaborative\x20Editing',this);return this['_connectedSessions']??=await Yx['getConnectedSessions'](this['_wsGateway'],this['_id'],0x1),this['_connectedSessions'];}static getConnectedSessions(_0x485c1a,_0x430a8f){return Yx['getConnectedSessions'](_0x485c1a,_0x430a8f,0x1);}async _connect(_0x4c922e,_0x2686ff){if(this['isConnected']())return;if(_0x4c922e['state']!==wx['STATE_CONNECTED'])throw new Hk('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x4c922e);this['_wsGateway']=_0x4c922e,this['stopListening'](_0x4c922e,'change:state');const _0x56a22f=await _0x4c922e['_sendRequest'](0x1,_0x2686ff['constructor']['TYPE'],Mk['encode'](_0x2686ff)),_0x148ef3=Mk['decode'](_0x56a22f,nC);return this['listenTo'](_0x4c922e,'change:state',(_0x1fad74,_0x1ceffb,_0x5dd093)=>this['_onWsGatewayStateChange'](_0x5dd093),{'priority':wx['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x4c922e,_0x148ef3['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0x148ef3;}_connectToChannel(_0x3d85d5,_0xf4df33){this['_channel']=_0x3d85d5['_getChannel'](0x1,_0xf4df33),this['listenTo'](this['_channel'],this['_channel']['getEventName'](eC['TYPE']),(_0x1c5f49,_0x4860d5)=>{const _0x47215b=Mk['decode'](_0x4860d5,eC);this['fire']('operationsReceived',_0x47215b['baseVersion'],_0x47215b['data'],_0x47215b['metadata']);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](Cx['TYPE']),()=>{this['disconnect']();});}_onWsGatewayStateChange(_0xe57784){_0xe57784===wx['STATE_DISCONNECTED']&&this['disconnect']();}},cC=class extends xk{static ['DESCRIPTOR_NAME']='CommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'commentThreadId':{'id':0x2,'type':'string'},'userId':{'id':0x3,'type':'string'},'content':{'id':0x4,'type':'string'},'documentId':{'id':0x5,'type':'string'},'createdAt':{'id':0x6,'type':'string'},'attributes':{'id':0x7,'type':'string'}}};static toJSON(_0x484b54){return{..._0x484b54,'createdAt':_0x484b54['createdAt']?.['toISOString'](),'attributes':_0x484b54['attributes']?JSON['stringify'](_0x484b54['attributes']):null};}static['fromJSON'](_0x1b16a3){return{..._0x1b16a3,'createdAt':new Date(_0x1b16a3['createdAt']),'attributes':_0x1b16a3['attributes']?JSON['parse'](_0x1b16a3['attributes']):null};}},lC=class extends xk{static ['DESCRIPTOR_NAME']='CommentsThreadDescriptor';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'comments':{'type':'CommentDescriptor','rule':'repeated','id':0x2},'resolvedAt':{'type':'string','id':0x3},'resolvedBy':{'type':'string','id':0x4},'context':{'type':'string','id':0x5},'createdAt':{'type':'string','id':0x6},'deletedAt':{'type':'string','id':0x7},'attributes':{'type':'string','id':0x8},'unlinkedAt':{'type':'string','id':0x9}}};static toJSON(_0x5579ba){return{..._0x5579ba,'createdAt':_0x5579ba['createdAt']?.['toISOString'](),'deletedAt':_0x5579ba['deletedAt']?.['toISOString'](),'resolvedAt':_0x5579ba['resolvedAt']?.['toISOString'](),'attributes':_0x5579ba['attributes']?JSON['stringify'](_0x5579ba['attributes']):null,'context':_0x5579ba['context']?JSON['stringify'](_0x5579ba['context']):_0x5579ba['context'],'comments':_0x5579ba['comments']?.['map'](cC['toJSON']),'unlinkedAt':_0x5579ba['unlinkedAt']?.['toISOString']()};}static['fromJSON'](_0x35d9ec){return{..._0x35d9ec,'createdAt':_0x35d9ec['createdAt']?new Date(_0x35d9ec['createdAt']):void 0x0,'deletedAt':_0x35d9ec['deletedAt']?new Date(_0x35d9ec['deletedAt']):void 0x0,'resolvedAt':_0x35d9ec['resolvedAt']?new Date(_0x35d9ec['resolvedAt']):void 0x0,'attributes':_0x35d9ec['attributes']?JSON['parse'](_0x35d9ec['attributes']):null,'context':_0x35d9ec['context']?JSON['parse'](_0x35d9ec['context']):void 0x0,'comments':_0x35d9ec['comments']?.['map'](cC['fromJSON']),'unlinkedAt':_0x35d9ec['unlinkedAt']?new Date(_0x35d9ec['unlinkedAt']):void 0x0};}},hC=class AddCommentMessage extends Ck{documentId;commentThreadId;content;commentId;['userId'];attributes;commentThread;createdAt;static ['TYPE']='91';static ['READABLE_TYPE_NAME']='addComment';static ['DESCRIPTOR_NAME']='CommentsV2AddCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'content':{'type':'string','id':0x2},'documentId':{'type':'string','id':0x3},'commentId':{'type':'string','id':0x4},'createdAt':{'type':'string','id':0x5},'userId':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'commentThread':{'type':'CommentsThreadDescriptor','id':0x8}}};constructor(_0x4f0102,_0x38e0b0,_0x404ad1,_0x55b56c='',_0x380af6,_0x140afe='',_0x2bb189=null,_0x368607){super(),this['documentId']=_0x4f0102,this['commentThreadId']=_0x38e0b0,this['content']=_0x404ad1,this['commentId']=_0x55b56c,this['userId']=_0x140afe,this['attributes']=_0x2bb189,this['commentThread']=_0x368607,this['createdAt']=_0x380af6?new Date(_0x380af6):'';}toJSON(){return{'commentThreadId':this['commentThreadId'],'content':this['content'],'documentId':this['documentId'],'commentId':this['commentId'],'createdAt':this['createdAt']instanceof Date?this['createdAt']['toISOString']():this['createdAt'],'userId':this['userId'],'attributes':JSON['stringify'](this['attributes']),'commentThread':this['commentThread']?lC['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x49c61b){return new AddCommentMessage(_0x49c61b['documentId'],_0x49c61b['commentThreadId'],_0x49c61b['content'],_0x49c61b['commentId']?_0x49c61b['commentId']:void 0x0,_0x49c61b['createdAt']?new Date(_0x49c61b['createdAt']):void 0x0,_0x49c61b['userId']?_0x49c61b['userId']:void 0x0,_0x49c61b['attributes']?JSON['parse'](_0x49c61b['attributes']):{},_0x49c61b['commentThread']?lC['fromJSON'](_0x49c61b['commentThread']):void 0x0);}},uC=class AddCommentResponse extends Ck{commentThreadId;commentId;createdAt;static ['DESCRIPTOR_NAME']='CommentsV2AddCommentResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'createdAt':{'type':'string','id':0x3}}};constructor(_0x39c559,_0x107c14,_0x3ecb13){super(),this['commentThreadId']=_0x39c559,this['commentId']=_0x107c14,this['createdAt']=new Date(_0x3ecb13);}toJSON(){return{'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'createdAt':this['createdAt']['toISOString']()};}static['fromJSON'](_0x347944){return new AddCommentResponse(_0x347944['commentThreadId'],_0x347944['commentId'],_0x347944['createdAt']);}},dC=class ConnectMessage extends Ck{documentId;static ['TYPE']='92';static ['READABLE_TYPE_NAME']='connectToComment';static ['DESCRIPTOR_NAME']='CommentsV2ConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x5b2672){super(),this['documentId']=_0x5b2672;}toJSON(){return{'documentId':this['documentId']};}static['fromJSON'](_0x4a211f){return new ConnectMessage(_0x4a211f['documentId']);}},fC=class ConnectResponse extends Ck{['channel'];_threads;_threadsV2;threads;static ['DESCRIPTOR_NAME']='CommentsV2ConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'threads':{'type':'string','rule':'repeated','id':0x2},'threadsV2':{'type':'CommentsThreadDescriptor','rule':'repeated','id':0x3}}};constructor(_0x49c032,_0xcfddce,_0x2d44c2){super(),this['channel']=_0x49c032,this['_threads']=_0xcfddce,this['_threadsV2']=_0x2d44c2,this['threads']=_0x2d44c2?.['length']?_0x2d44c2:_0xcfddce;}toJSON(){return{'channel':this['channel'],'threads':this['_threads']?.['map'](_0x1ab535=>JSON['stringify'](_0x1ab535)),'threadsV2':this['_threadsV2']?.['map'](lC['toJSON'])};}static['fromJSON'](_0x53cfa4){return new ConnectResponse(_0x53cfa4['channel'],_0x53cfa4['threads']?.['map'](_0x16eacf=>JSON['parse'](_0x16eacf)),_0x53cfa4['threadsV2']?.['map'](lC['fromJSON']));}},mC=class RemoveCommentMessage extends Ck{documentId;commentThreadId;commentId;static ['TYPE']='95';static ['READABLE_TYPE_NAME']='removeComment';static ['DESCRIPTOR_NAME']='CommentsV2RemoveCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'documentId':{'type':'string','id':0x3}}};constructor(_0xd3991d,_0x14c272,_0x2e63f7){super(),this['documentId']=_0xd3991d,this['commentThreadId']=_0x14c272,this['commentId']=_0x2e63f7;}toJSON(){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId']};}static['fromJSON'](_0x3b1baa){return new RemoveCommentMessage(_0x3b1baa['documentId'],_0x3b1baa['commentThreadId'],_0x3b1baa['commentId']);}},pC=class RemoveCommentThreadMessage extends Ck{documentId;commentThreadId;static ['TYPE']='97';static ['READABLE_TYPE_NAME']='removeCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2RemoveCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0xb89498,_0x4b6bb1){super(),this['documentId']=_0xb89498,this['commentThreadId']=_0x4b6bb1;}toJSON(){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x4d2a9d){return new RemoveCommentThreadMessage(_0x4d2a9d['documentId'],_0x4d2a9d['commentThreadId']);}},gC=class UpdateCommentMessage extends Ck{documentId;commentThreadId;commentId;content;attributes;isAttributesUpdated;commentThread;static ['TYPE']='96';static ['READABLE_TYPE_NAME']='updateComment';static ['DESCRIPTOR_NAME']='CommentsV2UpdateCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'content':{'type':'string','id':0x3},'documentId':{'type':'string','id':0x4},'attributes':{'type':'string','id':0x5},'isAttributesUpdated':{'type':'bool','id':0x6},'commentThread':{'type':'CommentsThreadDescriptor','id':0x7}}};constructor(_0x5f5cae,_0x4c6141,_0xdf4e51,_0x4ef46b,_0x1e45ed=null,_0x1677f1=!0x1,_0x4f2fd1){super(),this['documentId']=_0x5f5cae,this['commentThreadId']=_0x4c6141,this['commentId']=_0xdf4e51,this['content']=_0x4ef46b,this['attributes']=_0x1e45ed,this['isAttributesUpdated']=_0x1677f1,this['commentThread']=_0x4f2fd1;}toJSON(){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'content':this['content'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):null,'isAttributesUpdated':this['isAttributesUpdated'],'commentThread':this['commentThread']?lC['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x33ac6d){return new UpdateCommentMessage(_0x33ac6d['documentId'],_0x33ac6d['commentThreadId'],_0x33ac6d['commentId'],_0x33ac6d['content'],_0x33ac6d['attributes']?JSON['parse'](_0x33ac6d['attributes']):null,_0x33ac6d['isAttributesUpdated'],_0x33ac6d['commentThread']?lC['fromJSON'](_0x33ac6d['commentThread']):void 0x0);}},OC=class GetCommentThreadMessage extends Ck{commentThreadId;documentId;static ['TYPE']='93';static ['READABLE_TYPE_NAME']='getComment';static ['DESCRIPTOR_NAME']='CommentsV2GetCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0x318861,_0x321d7e){super(),this['commentThreadId']=_0x318861,this['documentId']=_0x321d7e;}toJSON(){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId']};}static['fromJSON'](_0x49a540){return new GetCommentThreadMessage(_0x49a540['commentThreadId'],_0x49a540['documentId']);}},wC=class GetCommentThreadResponse extends Ck{commentThreadId;_comments;_commentsV2;['resolvedBy'];comments;createdAt;deletedAt;resolvedAt;attributes;context;unlinkedAt;static ['DESCRIPTOR_NAME']='CommentsV2GetCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'comments':{'type':'string','rule':'repeated','id':0x2},'commentsV2':{'type':'CommentDescriptor','rule':'repeated','id':0x3},'resolvedAt':{'type':'string','id':0x4},'resolvedBy':{'type':'string','id':0x5},'context':{'type':'string','id':0x6},'createdAt':{'type':'string','id':0x7},'deletedAt':{'type':'string','id':0x8},'attributes':{'type':'string','id':0x9},'unlinkedAt':{'type':'string','id':0xa}}};constructor(_0x3fa932,_0x351b08,_0x1cdb09,_0x6cb7a6,_0x598369,_0x4c403a,_0x1f36f8,_0x2b6a99,_0x3e40d6,_0x8558fd){super(),this['commentThreadId']=_0x3fa932,this['_comments']=_0x351b08,this['_commentsV2']=_0x1cdb09,this['resolvedBy']=_0x598369,this['comments']=_0x1cdb09?.['length']?_0x1cdb09:_0x351b08,this['createdAt']=_0x1f36f8?new Date(_0x1f36f8):void 0x0,this['deletedAt']='string'==typeof _0x2b6a99?new Date(_0x2b6a99):_0x2b6a99,this['resolvedAt']='string'==typeof _0x3e40d6?new Date(_0x3e40d6):_0x3e40d6,this['unlinkedAt']='string'==typeof _0x8558fd?new Date(_0x8558fd):_0x8558fd,this['attributes']='string'==typeof _0x6cb7a6?JSON['parse'](_0x6cb7a6):_0x6cb7a6,this['context']='string'==typeof _0x4c403a?JSON['parse'](_0x4c403a):_0x4c403a;}toJSON(){return{'commentThreadId':this['commentThreadId'],'comments':this['_comments']?.['map'](_0x3f78c5=>JSON['stringify'](_0x3f78c5)),'commentsV2':this['_commentsV2']?.['map'](cC['toJSON']),'attributes':this['attributes']?JSON['stringify'](this['attributes']):this['attributes'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'resolvedBy':this['resolvedBy'],'createdAt':this['createdAt']?.['toISOString'](),'deletedAt':this['deletedAt']?.['toISOString'](),'resolvedAt':this['resolvedAt']?.['toISOString'](),'unlinkedAt':this['unlinkedAt']?.['toISOString']()};}static['fromJSON'](_0x389da0){return new GetCommentThreadResponse(_0x389da0['commentThreadId'],_0x389da0['comments']?.['map'](_0x2afac3=>function(_0x3da2dd){const _0x551dc1=JSON['parse'](_0x3da2dd);return{..._0x551dc1,'createdAt':new Date(_0x551dc1['createdAt'])};}(_0x2afac3)),_0x389da0['commentsV2']?.['map'](cC['fromJSON']),_0x389da0['attributes']?JSON['parse'](_0x389da0['attributes']):_0x389da0['attributes'],_0x389da0['resolvedBy'],_0x389da0['context']?JSON['parse'](_0x389da0['context']):_0x389da0['context'],_0x389da0['createdAt'],_0x389da0['deletedAt'],_0x389da0['resolvedAt'],_0x389da0['unlinkedAt']);}},bC=class GetDocumentThreadsMessage extends Ck{documentId;static ['TYPE']='94';static ['READABLE_TYPE_NAME']='getDocumentThreads';static ['DESCRIPTOR_NAME']='CommentsV2GetDocumentThreadsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x429b31){super(),this['documentId']=_0x429b31;}toJSON(){return{'documentId':this['documentId']};}static['fromJSON'](_0x24e5db){return new GetDocumentThreadsMessage(_0x24e5db['documentId']);}},yC=class GetDocumentThreadsResponse extends Ck{_threads;_threadsV2;threads;static ['DESCRIPTOR_NAME']='CommentsV2GetDocumentThreadsResponse';static ['DESCRIPTOR']={'fields':{'threads':{'type':'string','rule':'repeated','id':0x1},'threadsV2':{'type':'CommentsThreadDescriptor','rule':'repeated','id':0x2}}};constructor(_0x2971ae,_0x3af460){super(),this['_threads']=_0x2971ae,this['_threadsV2']=_0x3af460,this['threads']=_0x3af460?.['length']?_0x3af460:_0x2971ae;}toJSON(){return{'threads':this['_threads']?.['map'](_0x41a648=>JSON['stringify'](_0x41a648)),'threadsV2':this['_threadsV2']?.['map'](lC['toJSON'])};}static['fromJSON'](_0x5e0944){return new GetDocumentThreadsResponse(_0x5e0944['threads']?.['map'](_0x3aa01b=>function(_0x339058){const _0x975f42=JSON['parse'](_0x339058),_0x28dd98={..._0x975f42};return _0x975f42['comments']&&(_0x28dd98['comments']=_0x975f42['comments']?.['map'](_0x4ef2bc=>({..._0x4ef2bc,'createdAt':new Date(_0x4ef2bc['createdAt'])}))),_0x28dd98;}(_0x3aa01b)),_0x5e0944['threadsV2']?.['map'](lC['fromJSON']));}},vC=class extends xk{static ['DESCRIPTOR_NAME']='CommentThreadAddedCommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'createdAt':{'id':0x2,'type':'string'}}};static toJSON(_0x23a27f){return{'commentId':_0x23a27f['commentId'],'createdAt':_0x23a27f['createdAt']?.['toISOString']()};}static['fromJSON'](_0x21641b){return{'commentId':_0x21641b['commentId'],'createdAt':new Date(_0x21641b['createdAt'])};}},_C=class AddCommentThreadResponse extends Ck{commentThreadId;comments;createdAt;static ['DESCRIPTOR_NAME']='CommentsV2AddCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'createdAt':{'type':'string','id':0x2},'comments':{'type':'CommentThreadAddedCommentDescriptor','rule':'repeated','id':0x3}}};constructor(_0x27cb75,_0x205c4e,_0x1f5904=[]){super(),this['commentThreadId']=_0x27cb75,this['comments']=_0x1f5904,this['createdAt']=new Date(_0x205c4e);}toJSON(){return{'commentThreadId':this['commentThreadId'],'createdAt':this['createdAt']['toISOString'](),'comments':this['comments']['map'](_0xe4b278=>vC['toJSON'](_0xe4b278))};}static['fromJSON'](_0x450765){return new AddCommentThreadResponse(_0x450765['commentThreadId'],_0x450765['createdAt'],_0x450765['comments']['map'](_0x55c532=>vC['fromJSON'](_0x55c532)));}},EC=class AddCommentThreadMessage extends Ck{documentId;commentThreadId;comments;context;['resolvedBy'];attributes;createdAt;resolvedAt;deletedAt;static ['TYPE']='140';static ['READABLE_TYPE_NAME']='addCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2AddCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'commentThreadId':{'type':'string','id':0x2},'context':{'type':'string','id':0x3},'createdAt':{'type':'string','id':0x4},'resolvedAt':{'type':'string','id':0x5},'resolvedBy':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'deletedAt':{'type':'string','id':0x8},'comments':{'type':'CommentDescriptor','rule':'repeated','id':0x9}}};constructor(_0x1fc664,_0x3020ee,_0x5a437f=[],_0xe88277,_0x2c2e5f=null,_0x4c94ff=null,_0x3f25e7=null,_0x18205f=null,_0x3226c3=null){super(),this['documentId']=_0x1fc664,this['commentThreadId']=_0x3020ee,this['comments']=_0x5a437f,this['context']=_0xe88277,this['resolvedBy']=_0x2c2e5f,this['attributes']=_0x3226c3,this['createdAt']=_0x4c94ff?new Date(_0x4c94ff):'',this['resolvedAt']=_0x3f25e7?new Date(_0x3f25e7):'',this['deletedAt']=_0x18205f?new Date(_0x18205f):'';}toJSON(){return{'commentThreadId':this['commentThreadId'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']instanceof Date?this['resolvedAt']['toISOString']():this['resolvedAt'],'deletedAt':this['deletedAt']instanceof Date?this['deletedAt']['toISOString']():this['deletedAt'],'createdAt':this['createdAt']instanceof Date?this['createdAt']['toISOString']():this['createdAt'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):this['attributes'],'comments':this['comments']?.['map'](_0x1bf7e1=>cC['toJSON'](_0x1bf7e1))};}static['fromJSON'](_0x22b10a){return new AddCommentThreadMessage(_0x22b10a['documentId'],_0x22b10a['commentThreadId'],_0x22b10a['comments']?.['map'](_0x248de2=>cC['fromJSON']({..._0x248de2,'documentId':_0x22b10a['documentId'],'commentThreadId':_0x22b10a['commentThreadId']})),_0x22b10a['context']?JSON['parse'](_0x22b10a['context']):_0x22b10a['context'],_0x22b10a['resolvedBy'],_0x22b10a['createdAt']?new Date(_0x22b10a['createdAt']):void 0x0,_0x22b10a['resolvedAt']?new Date(_0x22b10a['resolvedAt']):void 0x0,_0x22b10a['deletedAt']?new Date(_0x22b10a['deletedAt']):void 0x0,_0x22b10a['attributes']?JSON['parse'](_0x22b10a['attributes']):_0x22b10a['attributes']);}},TC=class ResolveCommentThreadMessage extends Ck{commentThreadId;documentId;['resolvedBy'];resolvedAt;static ['TYPE']='142';static ['READABLE_TYPE_NAME']='resolveCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2ResolveCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'resolvedBy':{'type':'string','id':0x3},'resolvedAt':{'type':'string','id':0x4}}};constructor(_0x13622e,_0x165972,_0x4bd02c,_0x310209){super(),this['commentThreadId']=_0x13622e,this['documentId']=_0x165972,this['resolvedBy']=_0x4bd02c,this['resolvedAt']=_0x310209?new Date(_0x310209):void 0x0;}toJSON(){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']?.['toISOString']()};}static['fromJSON'](_0x1082dc){return new ResolveCommentThreadMessage(_0x1082dc['commentThreadId'],_0x1082dc['documentId'],_0x1082dc['resolvedBy'],_0x1082dc['resolvedAt']);}},AC=class ReopenCommentThreadMessage extends Ck{commentThreadId;documentId;static ['TYPE']='141';static ['READABLE_TYPE_NAME']='reopenCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2ReopenCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0x4e79eb,_0x535c8c){super(),this['commentThreadId']=_0x4e79eb,this['documentId']=_0x535c8c;}toJSON(){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x4c50fa){return new ReopenCommentThreadMessage(_0x4c50fa['commentThreadId'],_0x4c50fa['documentId']);}},SC=class UpdateCommentThreadMessage extends Ck{commentThreadId;documentId;context;attributes;unlinkedAt;static ['TYPE']='143';static ['READABLE_TYPE_NAME']='updateCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2UpdateCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'context':{'type':'string','id':0x3},'attributes':{'type':'string','id':0x4},'unlinkedAt':{'type':'string','id':0x5}}};constructor(_0x2c0075,_0x3c3668,_0x1b246c,_0x3eae75=null,_0x3334f7=null){super(),this['commentThreadId']=_0x2c0075,this['documentId']=_0x3c3668,this['context']=_0x1b246c,this['attributes']=_0x3eae75,this['unlinkedAt']=_0x3334f7?new Date(_0x3334f7):'';}toJSON(){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):null,'unlinkedAt':this['unlinkedAt']instanceof Date?this['unlinkedAt']['toISOString']():this['unlinkedAt']};}static['fromJSON'](_0x24b403){return new UpdateCommentThreadMessage(_0x24b403['commentThreadId'],_0x24b403['documentId'],_0x24b403['context']?JSON['parse'](_0x24b403['context']):_0x24b403['context'],_0x24b403['attributes']?JSON['parse'](_0x24b403['attributes']):null,_0x24b403['unlinkedAt']?new Date(_0x24b403['unlinkedAt']):null);}},IC=class ResolveCommentThreadResponse extends Ck{commentThreadId;documentId;['resolvedBy'];resolvedAt;static ['DESCRIPTOR_NAME']='CommentsV2ResolveCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'resolvedAt':{'type':'string','id':0x3},'resolvedBy':{'type':'string','id':0x4}}};constructor(_0x582e13,_0x1cc546,_0x1ea772,_0x17fd53){super(),this['commentThreadId']=_0x582e13,this['documentId']=_0x1cc546,this['resolvedBy']=_0x1ea772,this['resolvedAt']=new Date(_0x17fd53);}toJSON(){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']['toISOString']()};}static['fromJSON'](_0x92f228){return new ResolveCommentThreadResponse(_0x92f228['commentThreadId'],_0x92f228['documentId'],_0x92f228['resolvedBy'],_0x92f228['resolvedAt']);}},kC=class CommentsService extends _0x3e0c97(){_documentId;_isConnected=!0x1;_wsGateway;['_channel'];_connectedSessions;static ['_SERVICE']=0x9;constructor(_0x3c2887){super(),this['_documentId']=_0x3c2887;}get isConnected(){return this['_isConnected'];}async connect(_0x15f27e){if(this['_isConnected'])return;if(_0x15f27e['state']!==Ox)throw new Hk('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x15f27e);const _0x35cfbe=new dC(this['_documentId']);this['_wsGateway']=_0x15f27e,this['stopListening'](_0x15f27e,'change:state');const _0x354abf=await _0x15f27e['_sendRequest'](0x9,dC['TYPE'],Mk['encode'](_0x35cfbe)),{channel:_0x53b8eb,threads:_0x2ea35a}=Mk['decode'](_0x354abf,fC);return this['listenTo'](_0x15f27e,'change:state',(_0x5c5df2,_0x3fdd03,_0x114078)=>this['_onWsGatewayStateChange'](_0x114078),{'priority':wx['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x15f27e,_0x53b8eb),this['_isConnected']=!0x0,this['fire']('connected'),_0x2ea35a;}disconnect(){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_connectedSessions']&&(this['_connectedSessions']['disconnect'](),this['_connectedSessions']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async addComment(_0xd49c24,_0x2d111f,_0x495025,_0x488a0d){const _0x3cb5f6=new hC(this['_documentId'],_0xd49c24,_0x495025,_0x2d111f,void 0x0,void 0x0,_0x488a0d),_0x160fac=await this['_sendRequest'](hC['TYPE'],_0x3cb5f6);return Mk['decode'](_0x160fac,uC);}async updateComment(_0x11a479,_0x46c285,_0x30910b,_0x44e213){const _0x3012e0=void 0x0!==_0x44e213,_0x4d5737=new gC(this['_documentId'],_0x11a479,_0x46c285,_0x30910b,_0x44e213,_0x3012e0);await this['_sendRequest'](gC['TYPE'],_0x4d5737);}async removeComment(_0x582989,_0x5115ab){const _0x31dde0=new mC(this['_documentId'],_0x582989,_0x5115ab);await this['_sendRequest'](mC['TYPE'],_0x31dde0);}async removeCommentThread(_0x59bbbe){const _0x35de5a=new pC(this['_documentId'],_0x59bbbe);await this['_sendRequest'](pC['TYPE'],_0x35de5a);}async addCommentThread(_0xbc6292){const _0x2a6f20=new EC(this['_documentId'],_0xbc6292['commentThreadId'],_0xbc6292['comments']?.['map'](_0x34cecb=>({..._0x34cecb,'documentId':this['_documentId'],'commentThreadId':_0xbc6292['commentThreadId']})),_0xbc6292['context'],_0xbc6292['resolvedBy'],_0xbc6292['createdAt'],_0xbc6292['resolvedAt'],_0xbc6292['deletedAt'],_0xbc6292['attributes']),_0x3bf4ed=await this['_sendRequest'](EC['TYPE'],_0x2a6f20);return Mk['decode'](_0x3bf4ed,_C);}async resolveCommentThread(_0x3c3b7a){const _0x1eecad=new TC(_0x3c3b7a,this['_documentId']),_0x38411e=await this['_sendRequest'](TC['TYPE'],_0x1eecad);return Mk['decode'](_0x38411e,IC);}async reopenCommentThread(_0x3c135c){const _0x4e5d5a=new AC(_0x3c135c,this['_documentId']);await this['_sendRequest'](AC['TYPE'],_0x4e5d5a);}async updateCommentThread(_0x951ae8){const _0x41c6d0=new SC(_0x951ae8['commentThreadId'],this['_documentId'],_0x951ae8['context'],_0x951ae8['attributes'],_0x951ae8['unlinkedAt']);await this['_sendRequest'](SC['TYPE'],_0x41c6d0);}async getCommentThread(_0x320680,_0x3b8513=0x1){const _0x1f4f4f=new OC(_0x320680,this['_documentId']);try{const _0x413e12=await this['_sendRequest'](OC['TYPE'],_0x1f4f4f),_0x3510a2=Mk['decode'](_0x413e12,wC);return{'commentThreadId':_0x3510a2['commentThreadId'],'comments':_0x3510a2['comments'],'attributes':_0x3510a2['attributes'],'context':_0x3510a2['context'],'resolvedAt':_0x3510a2['resolvedAt'],'resolvedBy':_0x3510a2['resolvedBy'],'deletedAt':_0x3510a2['deletedAt'],'unlinkedAt':_0x3510a2['unlinkedAt']};}catch(_0x49e16e){if('CKEditorCloudServicesServerError'===_0x49e16e['name']&&'404'===_0x49e16e['code']&&_0x3b8513<0x5)return await(_0x2f320a=0x64*_0x3b8513,new Promise(_0x35421d=>{setTimeout(_0x35421d,_0x2f320a);})),this['getCommentThread'](_0x320680,_0x3b8513+0x1);if('CKEditorCloudServicesServerError'===_0x49e16e['name'])throw _0x49e16e;throw Fk['fromPublicError'](_0x49e16e);}var _0x2f320a;}async getDocumentThreads(){const _0x1de763=new bC(this['_documentId']),_0x89e3d2=await this['_sendRequest'](bC['TYPE'],_0x1de763),{threads:_0x4661cd}=Mk['decode'](_0x89e3d2,yC);return{'threads':_0x4661cd};}async getConnectedSessions(){if(!this['_isConnected'])throw new Rx('Comments',this);return this['_connectedSessions']??=await Yx['getConnectedSessions'](this['_wsGateway'],this['_documentId'],0x9),this['_connectedSessions'];}_connectToChannel(_0x1b4a95,_0x3687c1){this['_channel']=_0x1b4a95['_getChannel'](CommentsService['_SERVICE'],_0x3687c1),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](hC['TYPE']),(_0x516777,_0x192e41)=>{const _0x55f496=Mk['decode'](_0x192e41,hC);this['fire']('commentAdded',_0x55f496);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](mC['TYPE']),(_0x4bb2a8,_0x45fe1e)=>{const _0x27058b=Mk['decode'](_0x45fe1e,mC);this['fire']('commentRemoved',_0x27058b);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](gC['TYPE']),(_0x150e0a,_0x1cdbe5)=>{const _0x13e09a=Mk['decode'](_0x1cdbe5,gC);this['fire']('commentUpdated',_0x13e09a);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](pC['TYPE']),(_0x81b399,_0x2a2ba9)=>{const _0x161e24=Mk['decode'](_0x2a2ba9,pC);this['fire']('commentThreadRemoved',_0x161e24);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](EC['TYPE']),(_0x186d1b,_0x17648d)=>{const _0x247a53=Mk['decode'](_0x17648d,EC);this['fire']('commentThreadAdded',_0x247a53);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](SC['TYPE']),(_0x20e511,_0x32de7e)=>{const _0x138e91=Mk['decode'](_0x32de7e,SC);this['fire']('commentThreadUpdated',_0x138e91);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](TC['TYPE']),(_0x280bfa,_0x2424bf)=>{const _0x366ee3=Mk['decode'](_0x2424bf,TC);this['fire']('commentThreadResolved',_0x366ee3);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](AC['TYPE']),(_0x201f47,_0x57fc84)=>{const _0x333b09=Mk['decode'](_0x57fc84,AC);this['fire']('commentThreadReopened',_0x333b09);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](Cx['TYPE']),()=>{this['disconnect']();}));}_onWsGatewayStateChange(_0x25d4d3){_0x25d4d3===px&&this['disconnect']();}_sendRequest(_0x39da68,_0x48fea6){if(!this['_wsGateway']||!this['_isConnected'])throw new Rx('Comments',this);return this['_wsGateway']['_sendRequest'](0x9,_0x39da68,Mk['encode'](_0x48fea6));}},xC=class WebSocketGateway extends _0x4dd342{static WebSocketGateway=/* #__PURE__ -- @preserve */
((()=>wx)());static initialReconnectionInterval=0x3e8;connection;_reconnectionStack;_shouldPluginsReconnect;_domEmitter;static get requires(){return[_0x3bc91d,_0x362622];}static get['pluginName'](){return'WebSocketGateway';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24131b){super(_0x24131b),this['set']('state',Ox),this['set']('_isBrowserOffline',!0x1),this['_reconnectionStack']=new Set(),this['_shouldPluginsReconnect']=!0x1,this['_domEmitter']=new(_0x5c7b5e())();}init(){const _0x52dccd=this['context'],_0x2738ae=_0x52dccd['plugins']['get'](_0x3bc91d),_0x478e64=_0x52dccd['plugins']['get'](_0x362622);if(!_0x2738ae['token'])throw new _0x4242d4('websocketgateway-missing-token',this);if(!_0x2738ae['webSocketUrl'])throw new _0x4242d4('websocketgateway-missing-websocket-url',this);return this['_domEmitter']['listenTo'](window,'offline',()=>this['_isBrowserOffline']=!0x0),this['_domEmitter']['listenTo'](window,'online',()=>this['_isBrowserOffline']=!0x1),this['context']['config']['define']('cloudServices.connectionTimeout',0xa),this['context']['config']['define']('cloudServices.requestTimeout',0x14),WebSocketGateway['WebSocketGateway']['connect'](_0x2738ae['token'],_0x2738ae['webSocketUrl'],{'timeout':0x3e8*this['context']['config']['get']('cloudServices.connectionTimeout'),'requestTimeout':0x3e8*this['context']['config']['get']('cloudServices.requestTimeout')})['then'](_0x22de96=>{if(this['connection']=_0x22de96,this['bind']('state')['to'](_0x22de96,'state',this,'_isBrowserOffline',(_0x419859,_0x451f84)=>('connected'!==_0x419859&&(this['_shouldPluginsReconnect']=!0x0),_0x451f84||_0x419859!==Ox?px:this['state']==px&&this['_shouldPluginsReconnect']?(this['_shouldPluginsReconnect']=!0x1,this['_reconnect'](),gx):Ox)),this['connection']['on']('error',(_0x26552f,_0x1dd61e)=>{if('limitExceeded'!==_0x1dd61e['code'])throw console['error'](_0x1dd61e),new _0x4242d4('cloudservices-init',null,{'originalError':_0x1dd61e});_0x478e64['showWarning']('The\x20limit\x20of\x20maximum\x20concurrent\x20connections\x20that\x20the\x20collaboration\x20server\x20can\x20handle\x20has\x20been\x20reached.\x20Try\x20opening\x20the\x20document\x20again\x20in\x20a\x20few\x20minutes.\x20Please\x20contact\x20your\x20system\x20administrator\x20if\x20the\x20problem\x20persists.',{'title':'Connected\x20users\x20limit\x20exceeded','namespace':'real-time-collaboration'});}),!_0x22de96['me'])return new Promise(_0x7e8c26=>_0x22de96['on']('change:me',_0x7e8c26));})['catch'](_0x19ef66=>{throw console['error'](_0x19ef66),new _0x4242d4('cloudservices-init',null,{'originalError':_0x19ef66});});}addToReconnectionStack(_0x3b0b25){if('function'!=typeof _0x3b0b25['reconnect'])throw new _0x4242d4('websocketgateway-invalid-plugin-interface',this);if(this['isInReconnectionStack'](_0x3b0b25))throw new _0x4242d4('websocketgateway-plugin-already-registered',this,{'name':_0x3b0b25['constructor']['pluginName']});this['_reconnectionStack']['add'](_0x3b0b25);}removeFromReconnectionStack(_0x2b5ee5){this['_reconnectionStack']['delete'](_0x2b5ee5);}isInReconnectionStack(_0x336f4a){return this['_reconnectionStack']['has'](_0x336f4a);}_reconnect(){return this['connection']['reconnect']()['then'](()=>Promise['all'](Array['from'](this['_reconnectionStack'],_0xd8d193=>_0xd8d193['reconnect']())))['then'](()=>this['state']=Ox)['catch'](_0x1debd0=>{throw console['error'](_0x1debd0),new _0x4242d4('cloudservices-reconnection-error',this['context']);});}disconnect(){this['connection']&&this['connection']['disconnect'](),this['state']=px,this['_domEmitter']['stopListening']();}destroy(){this['disconnect'](),super['destroy']();}},CC=class extends _0x4dd342{['channelSessions'];channelConnectedUsers;allConnectedUsers;_registeredSessions;_uniqueUsersCount;['_users'];static get['pluginName'](){return'Sessions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[xC,Al];}constructor(_0x11a9c9){super(_0x11a9c9),this['channelSessions']=new Map(),this['channelConnectedUsers']=new Map(),this['allConnectedUsers']=new _0x2186b6(),this['_registeredSessions']=new Map(),this['_uniqueUsersCount']=0x0,this['_users']=this['context']['plugins']['get'](Al);}init(){const _0x3fd1da=this['context']['plugins']['get'](xC);this['listenTo'](_0x3fd1da,'change:state',(_0x47e96e,_0x9781b4,_0x2a1881)=>{if('connected'!==_0x2a1881)this['channelSessions']['forEach'](_0xc5b03d=>_0xc5b03d['clear']()),this['channelConnectedUsers']['forEach'](_0x4879b9=>_0x4879b9['clear']()),this['allConnectedUsers']['clear']();else{for(const [_0x8c9516,_0x4a87f7]of this['_registeredSessions'])for(const _0xc93af2 of _0x4a87f7)this['_handleSessionAdd'](_0x8c9516,_0xc93af2);}}),this['_createUser'](_0x3fd1da['connection']['me'],!0x0);}register(_0x59bce0,_0x251111){if(this['_registeredSessions']['has'](_0x59bce0))throw new _0x4242d4('sessions-register-already-registered',null,{'channelId':_0x59bce0});this['_registeredSessions']['set'](_0x59bce0,_0x251111),this['channelSessions']['set'](_0x59bce0,new _0x2186b6()),this['channelConnectedUsers']['set'](_0x59bce0,new _0x2186b6()),this['listenTo'](_0x251111,'add',(_0x2eca70,_0x5888f8)=>this['_handleSessionAdd'](_0x59bce0,_0x5888f8)),this['listenTo'](_0x251111,'remove',(_0x2fe276,_0x29ac90)=>this['_handleSessionRemove'](_0x59bce0,_0x29ac90));for(const _0xbbbb7e of _0x251111)this['_handleSessionAdd'](_0x59bce0,_0xbbbb7e);}unregister(_0x4e0276){if(!this['_registeredSessions']['has'](_0x4e0276))throw new _0x4242d4('sessions-unregister-not-exist',null,{'channelId':_0x4e0276});const _0xe746c7=this['_registeredSessions']['get'](_0x4e0276);this['stopListening'](_0xe746c7);for(const _0x200bed of _0xe746c7)'connected'===this['context']['plugins']['get'](xC)['state']&&this['_handleSessionRemove'](_0x4e0276,_0x200bed);this['_registeredSessions']['delete'](_0x4e0276),this['channelSessions']['delete'](_0x4e0276),this['channelConnectedUsers']['delete'](_0x4e0276);}get['mySessionId'](){return this['context']['plugins']['get'](xC)['connection']['sessionId'];}getUserBySessionId(_0x129069){for(const _0xa45e2c of this['channelSessions']['values']())for(const _0x20148b of _0xa45e2c)if(_0x20148b['id']===_0x129069)return _0x20148b['user'];}getUserSessions(_0x52135e,_0x132c05){const _0x52aa0e=_0x132c05?[this['channelSessions']['get'](_0x132c05)]:this['channelSessions']['values'](),_0x5eb424=new Set();for(const _0x2b7c3e of _0x52aa0e)for(const _0x49f207 of _0x2b7c3e)_0x49f207['user']['id']===_0x52135e['id']&&_0x5eb424['add'](_0x49f207['id']);return _0x5eb424;}getUserRole(_0x2a287b){for(const _0x5136ee of this['channelSessions']['values']())for(const _0x165461 of _0x5136ee)if(_0x165461['user']===_0x2a287b)return _0x165461['role'];}['_handleSessionAdd'](_0x2ef37,_0x475ce3){if('connected'!==this['context']['plugins']['get'](xC)['state'])return;const _0x2c32f0=_0x475ce3['user'],_0x5e9575=this['_users']['getUser'](_0x2c32f0['id'])||this['_createUser'](_0x2c32f0),_0x43c2a1=Object['assign']({},_0x475ce3,{'user':_0x5e9575});if(this['channelSessions']['get'](_0x2ef37)['add'](_0x43c2a1),!_0x2c32f0['hiddenInPresenceList']){const _0x431e23=this['channelConnectedUsers']['get'](_0x2ef37);_0x431e23['has'](_0x5e9575['id'])||_0x431e23['add'](_0x5e9575),this['allConnectedUsers']['has'](_0x5e9575['id'])||_0x2c32f0['hiddenInPresenceList']||this['allConnectedUsers']['add'](_0x5e9575,_0x5e9575['isMe']?0x0:void 0x0);}this['fire']('sessionAdd:'+_0x2ef37,{'channelId':_0x2ef37,'session':_0x43c2a1});}['_handleSessionRemove'](_0x395f3d,_0x3fd171){if('connected'!==this['context']['plugins']['get'](xC)['state'])return;const _0x59675a=this['channelConnectedUsers']['get'](_0x395f3d),_0x1dc0a1=_0x3fd171['user'];_0x1dc0a1['id']&&(this['channelSessions']['get'](_0x395f3d)['remove'](_0x3fd171['id']),_0x59675a['has'](_0x1dc0a1['id'])&&!this['getUserSessions'](_0x1dc0a1,_0x395f3d)['size']&&_0x59675a['remove'](_0x1dc0a1['id']),this['allConnectedUsers']['get'](_0x1dc0a1['id'])&&!this['getUserSessions'](_0x1dc0a1)['size']&&this['allConnectedUsers']['remove'](_0x1dc0a1['id']));}_createUser(_0xb71e1f,_0x523b47){const _0x3a7c77=this['_users']['addUser'](_0xb71e1f);return _0x523b47&&this['_users']['defineMe'](_0xb71e1f['id']),_0x3a7c77['orderNumber']=this['_uniqueUsersCount']++,_0x3a7c77;}},RC=class extends _0x11fe30{_domEmitter=new(_0x5c7b5e())();static get requires(){return[CC];}static get['pluginName'](){return'UserMarkers';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x2b3982=this['editor'],_0x53cf18=_0x2b3982['plugins']['get'](CC);_0x2b3982['conversion']['for']('editingDowncast')['markerToElement']({'model':'user:position','view':(_0x30ad52,{writer:_0x16e7a2})=>function(_0x13f1c4,_0x1df307,_0x1d00e5,_0x12cecb){const _0x429ac7=_0x13f1c4['markerName']['split'](':')[0x2],_0x16cc78=_0x1d00e5['getUserBySessionId'](_0x429ac7);if(!_0x16cc78||_0x429ac7===_0x1d00e5['mySessionId'])return;if(!_0x12cecb['model']['schema']['checkChild'](_0x13f1c4['markerRange']['start'],'$text'))return;const _0x296d2b={'class':'ck-user__marker\x20'+_0x16cc78['color']['getMarkerClass'](),'style':NC(_0x16cc78),'data-name':_0x16cc78['name'],'data-session-id':_0x429ac7},_0x4262d9=_0x12cecb['model']['markers']['get'](_0x13f1c4['markerName'])['getStart'](),_0x172e38=_0x4262d9['nodeAfter'],_0x3fc0be=_0x12cecb['model']['schema'];if(_0x172e38&&_0x3fc0be['isObject'](_0x172e38)&&_0x3fc0be['isInline'](_0x172e38)&&!_0x12cecb['model']['markers']['get']('user:range:'+_0x429ac7)['getRange']()['isCollapsed'])return;const _0x38d9ac=_0x4262d9['parent'];return _0x12cecb['model']['schema']['isLimit'](_0x38d9ac)&&!_0x12cecb['model']['hasContent'](_0x38d9ac)&&(_0x296d2b['contenteditable']=!0x1),function(_0x338c23,_0x335ba9,_0x1d3001){const _0x1291b5=_0x338c23['createUIElement']('span',_0x335ba9);return _0x338c23['setCustomProperty']('userPositionMarker',!0x0,_0x1291b5),_0x1291b5['render']=function(_0x5c2253){const _0x4fd114=this['toDomElement'](_0x5c2253),_0x119852=document['createElement']('span');return _0x119852['classList']['add']('ck-user__marker-tooltip'),_0x119852['setAttribute']('contenteditable','false'),_0x119852['setAttribute']('spellcheck','false'),_0x119852['textContent']=_0x1d3001['name'],_0x4fd114['innerHTML']='⁠<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>'+_0x119852['outerHTML']+'⁠',_0x4fd114['addEventListener']('mouseenter',()=>{_0x4fd114['classList']['add']('ck-user__marker_hovered');}),_0x4fd114['addEventListener']('mouseleave',()=>{_0x4fd114['classList']['remove']('ck-user__marker_hovered');}),_0x4fd114;},_0x1291b5['isSimilar']=function(_0xde212d){return!(!this['getCustomProperty']('userPositionMarker')||!_0xde212d['getCustomProperty']('userPositionMarker')||this['getAttribute']('data-session-id')!=_0xde212d['getAttribute']('data-session-id'));},_0x1291b5;}(_0x1df307,_0x296d2b,_0x16cc78);}(_0x30ad52,_0x16e7a2,_0x53cf18,_0x2b3982)}),_0x2b3982['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'user:range','view':_0x3a09c3=>function(_0x1c9b11,_0x5ba254){const _0x32595f=_0x1c9b11['markerName']['split'](':')[0x2];if(_0x32595f===_0x5ba254['mySessionId'])return null;const _0x57a3e6=_0x5ba254['getUserBySessionId'](_0x32595f);return _0x57a3e6?{'id':_0x32595f,'classes':['ck-user__selection',_0x57a3e6['color']['getSelectionClass']()],'attributes':{'style':NC(_0x57a3e6),'data-session-id':_0x32595f},'priority':0x7d0+_0x57a3e6['orderNumber']}:{'id':_0x32595f,'classes':[]};}(_0x3a09c3,_0x53cf18)}),function(_0xb089c2){const _0x57b4d1=_0xb089c2['model'],_0x1cf26a=new Map(),_0x31853e=_0xb089c2['plugins']['get'](CC);_0x57b4d1['markers']['on']('update:user:range',(_0x13e870,_0x3cb4cc,_0x482cb8,_0x28dc5c)=>{if(!_0x28dc5c&&_0x1cf26a['get'](_0x3cb4cc['name']))return _0x1cf26a['get'](_0x3cb4cc['name'])['detach'](),void _0x1cf26a['delete'](_0x3cb4cc['name']);const _0x52b522=_0x3cb4cc['name']['split'](':')[0x2];if(_0x52b522===_0x31853e['mySessionId'])return;const _0x160088='user:position:'+_0x52b522;_0x57b4d1['markers']['has'](_0x160088)&&_0xb089c2['editing']['reconvertMarker'](_0x160088),_0x3cb4cc['on']('change:range',(_0x376c7e,_0x1c4ec6,_0x4b1bae)=>{if('$graveyard'!=_0x1c4ec6['root']['rootName']&&'$graveyard'==_0x3cb4cc['getRange']()['root']['rootName']&&!_0x1cf26a['has'](_0x3cb4cc['name'])){const _0x5d4775=_0x57b4d1['schema']['getNearestSelectionRange'](_0x4b1bae['deletionPosition']);if(_0x5d4775){const _0x3df421=_0x2a6d0b['fromRange'](_0x5d4775);_0x1cf26a['set'](_0x3cb4cc['name'],_0x3df421),_0x3df421['on']('change:range',(_0x1e76c3,_0x370560,_0x16552e)=>{if('$graveyard'==_0x3df421['root']['rootName']){const _0x4efe64=_0x57b4d1['schema']['getNearestSelectionRange'](_0x16552e['deletionPosition']);_0x4efe64?(_0x3df421['start']=_0x4efe64['start'],_0x3df421['end']=_0x4efe64['end']):(_0x1cf26a['delete'](_0x3cb4cc['name']),_0x3df421['detach']());}});}}});}),_0x57b4d1['document']['on']('change',()=>{_0x1cf26a['size']>0x0&&_0x57b4d1['enqueueChange']({'isUndoable':!0x1},_0x4438cc=>{for(const [_0x4dffd1,_0x3d6f99]of _0x1cf26a)'$graveyard'==_0x57b4d1['markers']['get'](_0x4dffd1)['getRange']()['root']['rootName']&&(PC(_0x4dffd1['split'](':')[0x2],_0x3d6f99['toRange'](),_0x57b4d1,_0x4438cc),_0x3d6f99['detach']());_0x1cf26a['clear']();});});}(_0x2b3982),this['_domEmitter']['listenTo'](_0x250afe['document'],'keydown',(_0x2feafb,{key:_0x190f2e})=>{'Escape'===_0x190f2e&&function(_0x51bb5d){_0x51bb5d['editing']['view']['change'](_0xaeb9fa=>{for(const _0x1d28a8 of _0x51bb5d['model']['markers']){if(!_0x1d28a8['name']['startsWith']('user:position'))continue;const _0x59bd8b=_0x51bb5d['editing']['mapper']['markerNameToElements'](_0x1d28a8['name']);if(_0x59bd8b){for(const _0x23e7f5 of _0x59bd8b)_0xaeb9fa['removeClass']('ck-user__marker_hovered',_0x23e7f5);}}});}(_0x2b3982);},{'useCapture':!0x0});}afterInit(){const _0x132862=this['editor'],_0x51b8f4=_0x132862['commands']['get']('undo');_0x51b8f4&&_0x132862['model']['on']('applyOperation',(_0x522561,_0x1da805)=>{const _0x671c10=_0x1da805[0x0];if(!_0x671c10['isDocumentOperation'])return;if('marker'!=_0x671c10['type']||!_0x671c10['name']['startsWith']('user:'))return;const _0xe4f6bb=_0x671c10['batch'];_0x51b8f4['_createdBatches']['has'](_0xe4f6bb)&&(_0x671c10['newRange']=_0x671c10['oldRange']?_0x132862['model']['createRange'](_0x671c10['oldRange']['start'],_0x671c10['oldRange']['end']):null);},{'priority':'highest'});}destroy(){return this['_domEmitter']['stopListening'](),super['destroy']();}createUserMarkerOperations(){const _0x27374c=this['editor'],_0x501686=_0x27374c['model']['document'],_0x5cd5fc=_0x27374c['plugins']['get'](CC);_0x27374c['model']['enqueueChange']({'isUndoable':!0x1},_0xa71dd2=>{const _0x4b7ded='user:range:'+_0x5cd5fc['mySessionId'],_0x32e836='user:position:'+_0x5cd5fc['mySessionId'],_0x408b64=_0x27374c['model']['markers']['has'](_0x4b7ded);_0x27374c['editing']['view']['hasDomSelection']?PC(_0x5cd5fc['mySessionId'],_0x501686['selection']['getFirstRange'](),_0x27374c['model'],_0xa71dd2):_0x408b64&&(_0xa71dd2['removeMarker'](_0x4b7ded),_0xa71dd2['removeMarker'](_0x32e836));});}};function PC(_0x4fe8d1,_0xae4ac9,_0x1198e9,_0x183614){const _0x3a1dba='user:range:'+_0x4fe8d1,_0x2c0f4c='user:position:'+_0x4fe8d1,_0x515236=_0xae4ac9['getContainedElement']();let _0xfab41=_0xae4ac9['start'];if(_0x515236&&_0x515236['is']('element','tableCell')){const _0x3ccb47=function(_0x41bf53,_0x1eb7d2){for(const _0x10115c of _0x41bf53['getPositions']())if(_0x1eb7d2['schema']['checkChild'](_0x10115c,'$text'))return _0x10115c;}(_0xae4ac9,_0x1198e9);_0x3ccb47&&(_0xfab41=_0x3ccb47,_0xae4ac9=_0x183614['createRange'](_0xfab41));}const _0x3bb527=_0x183614['createRange'](_0xfab41);_0x1198e9['markers']['has'](_0x3a1dba)?(_0x183614['updateMarker'](_0x3a1dba,{'range':_0xae4ac9}),_0x183614['updateMarker'](_0x2c0f4c,{'range':_0x3bb527})):(_0x183614['addMarker'](_0x3a1dba,{'range':_0xae4ac9,'usingOperation':!0x0}),_0x183614['addMarker'](_0x2c0f4c,{'range':_0x3bb527,'usingOperation':!0x0}));}function NC(_0xc92ddb){return'--ck-user-color:'+_0xc92ddb['color']['getColorVariable']()+';--ck-user-color-alpha:'+_0xc92ddb['color']['getColorAlphaVariable']()+';';}function MC(_0x1402f4,_0xe0f952,_0x84c821){const _0x19c184=_0x1402f4['t'],t=_0x1402f4['t'];switch(_0xe0f952){case'PENDING_ACTION_SENDING_DATA':return t({'string':'Sending\x20data\x20to\x20the\x20server.','id':'PENDING_ACTION_SENDING_DATA'});case'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.':return t('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.');case'The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.':return t('The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');case'The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.':return t('The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');case'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.':return t('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.');case'Synchronization\x20issue':return t('Synchronization\x20issue');case'Connected\x20users\x20list\x20dropdown\x20menu':return t('Connected\x20users\x20list\x20dropdown\x20menu');case'Collapsed\x20connected\x20users\x20list\x20(press\x20ENTER\x20to\x20open\x20it)':return t('Collapsed\x20connected\x20users\x20list\x20(press\x20ENTER\x20to\x20open\x20it)');case'Connected\x20users\x20list':return t('Connected\x20users\x20list');case'PENDING_ACTION_REVISION_HISTORY':return _0x19c184({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'CONNECTED_USERS':return t({'string':'1\x20connected\x20user\x20(me)','plural':'%0\x20connected\x20users','id':'CONNECTED_USERS'},_0x84c821);default:return'';}}const LC=/* #__PURE__ -- @preserve */
((()=>{var _0x369241=YS['default']['Reader'],_0x5cde2b=YS['default']['Writer'],_0x1b2897=YS['default']['util'],_0x3ac948=YS['default']['roots']['default']||(YS['default']['roots']['default']={});return _0x3ac948['AttributeOperation']=(function(){function _0x13197a(_0x3cbb9b){if(_0x3cbb9b){for(var _0x4633a9=Object['keys'](_0x3cbb9b),_0x444d54=0x0;_0x444d54<_0x4633a9['length'];++_0x444d54)null!=_0x3cbb9b[_0x4633a9[_0x444d54]]&&'__proto__'!==_0x4633a9[_0x444d54]&&(this[_0x4633a9[_0x444d54]]=_0x3cbb9b[_0x4633a9[_0x444d54]]);}}return _0x13197a['prototype']['range']=null,_0x13197a['prototype']['key']='',_0x13197a['prototype']['oldValueBoolean']=!0x1,_0x13197a['prototype']['oldValueJson']='',_0x13197a['prototype']['newValueBoolean']=!0x1,_0x13197a['prototype']['newValueJson']='',_0x13197a['prototype']['wasUndone']=!0x1,_0x13197a['prototype']['_aiSource']='',_0x13197a['create']=function(_0x1a8f10){return new _0x13197a(_0x1a8f10);},_0x13197a['encode']=function(_0x4246fe,_0x507e3c){return _0x507e3c||(_0x507e3c=_0x5cde2b['create']()),null!=_0x4246fe['range']&&Object['hasOwnProperty']['call'](_0x4246fe,'range')&&_0x3ac948['Range']['encode'](_0x4246fe['range'],_0x507e3c['uint32'](0xa)['fork']())['ldelim'](),null!=_0x4246fe['key']&&Object['hasOwnProperty']['call'](_0x4246fe,'key')&&_0x507e3c['uint32'](0x12)['string'](_0x4246fe['key']),null!=_0x4246fe['oldValueBoolean']&&Object['hasOwnProperty']['call'](_0x4246fe,'oldValueBoolean')&&_0x507e3c['uint32'](0x18)['bool'](_0x4246fe['oldValueBoolean']),null!=_0x4246fe['oldValueJson']&&Object['hasOwnProperty']['call'](_0x4246fe,'oldValueJson')&&_0x507e3c['uint32'](0x22)['string'](_0x4246fe['oldValueJson']),null!=_0x4246fe['newValueBoolean']&&Object['hasOwnProperty']['call'](_0x4246fe,'newValueBoolean')&&_0x507e3c['uint32'](0x28)['bool'](_0x4246fe['newValueBoolean']),null!=_0x4246fe['newValueJson']&&Object['hasOwnProperty']['call'](_0x4246fe,'newValueJson')&&_0x507e3c['uint32'](0x32)['string'](_0x4246fe['newValueJson']),null!=_0x4246fe['wasUndone']&&Object['hasOwnProperty']['call'](_0x4246fe,'wasUndone')&&_0x507e3c['uint32'](0x38)['bool'](_0x4246fe['wasUndone']),null!=_0x4246fe['_aiSource']&&Object['hasOwnProperty']['call'](_0x4246fe,'_aiSource')&&_0x507e3c['uint32'](0x42)['string'](_0x4246fe['_aiSource']),_0x507e3c;},_0x13197a['encodeDelimited']=function(_0x59a80b,_0x245833){return this['encode'](_0x59a80b,_0x245833)['ldelim']();},_0x13197a['decode']=function(_0x420c74,_0x12014f,_0x370741,_0x22c312){if(_0x420c74 instanceof _0x369241||(_0x420c74=_0x369241['create'](_0x420c74)),void 0x0===_0x22c312&&(_0x22c312=0x0),_0x22c312>_0x369241['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x34a0ba=void 0x0===_0x12014f?_0x420c74['len']:_0x420c74['pos']+_0x12014f,_0x1bf71c=new _0x3ac948['AttributeOperation']();_0x420c74['pos']<_0x34a0ba;){var _0x20e789=_0x420c74['uint32']();if(_0x20e789===_0x370741)break;switch(_0x20e789>>>0x3){case 0x1:_0x1bf71c['range']=_0x3ac948['Range']['decode'](_0x420c74,_0x420c74['uint32'](),void 0x0,_0x22c312+0x1);break;case 0x2:_0x1bf71c['key']=_0x420c74['string']();break;case 0x3:_0x1bf71c['oldValueBoolean']=_0x420c74['bool']();break;case 0x4:_0x1bf71c['oldValueJson']=_0x420c74['string']();break;case 0x5:_0x1bf71c['newValueBoolean']=_0x420c74['bool']();break;case 0x6:_0x1bf71c['newValueJson']=_0x420c74['string']();break;case 0x7:_0x1bf71c['wasUndone']=_0x420c74['bool']();break;case 0x8:_0x1bf71c['_aiSource']=_0x420c74['string']();break;default:_0x420c74['skipType'](0x7&_0x20e789,_0x22c312);}}return _0x1bf71c;},_0x13197a['decodeDelimited']=function(_0x42c1f6){return _0x42c1f6 instanceof _0x369241||(_0x42c1f6=new _0x369241(_0x42c1f6)),this['decode'](_0x42c1f6,_0x42c1f6['uint32']());},_0x13197a['verify']=function(_0x8cb31c,_0x49f8b3){if('object'!=typeof _0x8cb31c||null===_0x8cb31c)return'object\x20expected';if(void 0x0===_0x49f8b3&&(_0x49f8b3=0x0),_0x49f8b3>_0x1b2897['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x8cb31c['range']&&_0x8cb31c['hasOwnProperty']('range')){var _0x2a3bbd=_0x3ac948['Range']['verify'](_0x8cb31c['range'],_0x49f8b3+0x1);if(_0x2a3bbd)return'range.'+_0x2a3bbd;}return null!=_0x8cb31c['key']&&_0x8cb31c['hasOwnProperty']('key')&&!_0x1b2897['isString'](_0x8cb31c['key'])?'key:\x20string\x20expected':null!=_0x8cb31c['oldValueBoolean']&&_0x8cb31c['hasOwnProperty']('oldValueBoolean')&&'boolean'!=typeof _0x8cb31c['oldValueBoolean']?'oldValueBoolean:\x20boolean\x20expected':null!=_0x8cb31c['oldValueJson']&&_0x8cb31c['hasOwnProperty']('oldValueJson')&&!_0x1b2897['isString'](_0x8cb31c['oldValueJson'])?'oldValueJson:\x20string\x20expected':null!=_0x8cb31c['newValueBoolean']&&_0x8cb31c['hasOwnProperty']('newValueBoolean')&&'boolean'!=typeof _0x8cb31c['newValueBoolean']?'newValueBoolean:\x20boolean\x20expected':null!=_0x8cb31c['newValueJson']&&_0x8cb31c['hasOwnProperty']('newValueJson')&&!_0x1b2897['isString'](_0x8cb31c['newValueJson'])?'newValueJson:\x20string\x20expected':null!=_0x8cb31c['wasUndone']&&_0x8cb31c['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x8cb31c['wasUndone']?'wasUndone:\x20boolean\x20expected':null!=_0x8cb31c['_aiSource']&&_0x8cb31c['hasOwnProperty']('_aiSource')&&!_0x1b2897['isString'](_0x8cb31c['_aiSource'])?'_aiSource:\x20string\x20expected':null;},_0x13197a['fromObject']=function(_0x1dad69,_0x5ed304){if(_0x1dad69 instanceof _0x3ac948['AttributeOperation'])return _0x1dad69;if(void 0x0===_0x5ed304&&(_0x5ed304=0x0),_0x5ed304>_0x1b2897['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0xd9aceb=new _0x3ac948['AttributeOperation']();if(null!=_0x1dad69['range']){if('object'!=typeof _0x1dad69['range'])throw TypeError('.AttributeOperation.range:\x20object\x20expected');_0xd9aceb['range']=_0x3ac948['Range']['fromObject'](_0x1dad69['range'],_0x5ed304+0x1);}return null!=_0x1dad69['key']&&(_0xd9aceb['key']=String(_0x1dad69['key'])),null!=_0x1dad69['oldValueBoolean']&&(_0xd9aceb['oldValueBoolean']=Boolean(_0x1dad69['oldValueBoolean'])),null!=_0x1dad69['oldValueJson']&&(_0xd9aceb['oldValueJson']=String(_0x1dad69['oldValueJson'])),null!=_0x1dad69['newValueBoolean']&&(_0xd9aceb['newValueBoolean']=Boolean(_0x1dad69['newValueBoolean'])),null!=_0x1dad69['newValueJson']&&(_0xd9aceb['newValueJson']=String(_0x1dad69['newValueJson'])),null!=_0x1dad69['wasUndone']&&(_0xd9aceb['wasUndone']=Boolean(_0x1dad69['wasUndone'])),null!=_0x1dad69['_aiSource']&&(_0xd9aceb['_aiSource']=String(_0x1dad69['_aiSource'])),_0xd9aceb;},_0x13197a['toObject']=function(_0x47a6d3,_0x2964c4){_0x2964c4||(_0x2964c4={});var _0x5f5120={};return _0x2964c4['defaults']&&(_0x5f5120['range']=null,_0x5f5120['key']='',_0x5f5120['oldValueBoolean']=!0x1,_0x5f5120['oldValueJson']='',_0x5f5120['newValueBoolean']=!0x1,_0x5f5120['newValueJson']='',_0x5f5120['wasUndone']=!0x1,_0x5f5120['_aiSource']=''),null!=_0x47a6d3['range']&&_0x47a6d3['hasOwnProperty']('range')&&(_0x5f5120['range']=_0x3ac948['Range']['toObject'](_0x47a6d3['range'],_0x2964c4)),null!=_0x47a6d3['key']&&_0x47a6d3['hasOwnProperty']('key')&&(_0x5f5120['key']=_0x47a6d3['key']),null!=_0x47a6d3['oldValueBoolean']&&_0x47a6d3['hasOwnProperty']('oldValueBoolean')&&(_0x5f5120['oldValueBoolean']=_0x47a6d3['oldValueBoolean']),null!=_0x47a6d3['oldValueJson']&&_0x47a6d3['hasOwnProperty']('oldValueJson')&&(_0x5f5120['oldValueJson']=_0x47a6d3['oldValueJson']),null!=_0x47a6d3['newValueBoolean']&&_0x47a6d3['hasOwnProperty']('newValueBoolean')&&(_0x5f5120['newValueBoolean']=_0x47a6d3['newValueBoolean']),null!=_0x47a6d3['newValueJson']&&_0x47a6d3['hasOwnProperty']('newValueJson')&&(_0x5f5120['newValueJson']=_0x47a6d3['newValueJson']),null!=_0x47a6d3['wasUndone']&&_0x47a6d3['hasOwnProperty']('wasUndone')&&(_0x5f5120['wasUndone']=_0x47a6d3['wasUndone']),null!=_0x47a6d3['_aiSource']&&_0x47a6d3['hasOwnProperty']('_aiSource')&&(_0x5f5120['_aiSource']=_0x47a6d3['_aiSource']),_0x5f5120;},_0x13197a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x13197a['getTypeUrl']=function(_0x4e51c9){return void 0x0===_0x4e51c9&&(_0x4e51c9='type.googleapis.com'),_0x4e51c9+'/AttributeOperation';},_0x13197a;}()),_0x3ac948['InsertOperation']=(function(){function _0x2c852a(_0x515b63){if(this['nodes']=[],_0x515b63){for(var _0xeb3038=Object['keys'](_0x515b63),_0x4ea307=0x0;_0x4ea307<_0xeb3038['length'];++_0x4ea307)null!=_0x515b63[_0xeb3038[_0x4ea307]]&&'__proto__'!==_0xeb3038[_0x4ea307]&&(this[_0xeb3038[_0x4ea307]]=_0x515b63[_0xeb3038[_0x4ea307]]);}}return _0x2c852a['prototype']['position']=null,_0x2c852a['prototype']['nodes']=_0x1b2897['emptyArray'],_0x2c852a['prototype']['shouldReceiveAttributes']=!0x1,_0x2c852a['prototype']['wasUndone']=!0x1,_0x2c852a['prototype']['_aiSource']='',_0x2c852a['create']=function(_0x1417f2){return new _0x2c852a(_0x1417f2);},_0x2c852a['encode']=function(_0x512a1b,_0x533ea9){if(_0x533ea9||(_0x533ea9=_0x5cde2b['create']()),null!=_0x512a1b['position']&&Object['hasOwnProperty']['call'](_0x512a1b,'position')&&_0x3ac948['Position']['encode'](_0x512a1b['position'],_0x533ea9['uint32'](0xa)['fork']())['ldelim'](),null!=_0x512a1b['nodes']&&_0x512a1b['nodes']['length']){for(var _0x5db5d0=0x0;_0x5db5d0<_0x512a1b['nodes']['length'];++_0x5db5d0)_0x3ac948['Element']['encode'](_0x512a1b['nodes'][_0x5db5d0],_0x533ea9['uint32'](0x12)['fork']())['ldelim']();}return null!=_0x512a1b['shouldReceiveAttributes']&&Object['hasOwnProperty']['call'](_0x512a1b,'shouldReceiveAttributes')&&_0x533ea9['uint32'](0x18)['bool'](_0x512a1b['shouldReceiveAttributes']),null!=_0x512a1b['wasUndone']&&Object['hasOwnProperty']['call'](_0x512a1b,'wasUndone')&&_0x533ea9['uint32'](0x20)['bool'](_0x512a1b['wasUndone']),null!=_0x512a1b['_aiSource']&&Object['hasOwnProperty']['call'](_0x512a1b,'_aiSource')&&_0x533ea9['uint32'](0x2a)['string'](_0x512a1b['_aiSource']),_0x533ea9;},_0x2c852a['encodeDelimited']=function(_0x27e56b,_0x444c51){return this['encode'](_0x27e56b,_0x444c51)['ldelim']();},_0x2c852a['decode']=function(_0x51c19d,_0x505491,_0x477090,_0x267f73){if(_0x51c19d instanceof _0x369241||(_0x51c19d=_0x369241['create'](_0x51c19d)),void 0x0===_0x267f73&&(_0x267f73=0x0),_0x267f73>_0x369241['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x250e95=void 0x0===_0x505491?_0x51c19d['len']:_0x51c19d['pos']+_0x505491,_0x4d7053=new _0x3ac948['InsertOperation']();_0x51c19d['pos']<_0x250e95;){var _0x368973=_0x51c19d['uint32']();if(_0x368973===_0x477090)break;switch(_0x368973>>>0x3){case 0x1:_0x4d7053['position']=_0x3ac948['Position']['decode'](_0x51c19d,_0x51c19d['uint32'](),void 0x0,_0x267f73+0x1);break;case 0x2:_0x4d7053['nodes']&&_0x4d7053['nodes']['length']||(_0x4d7053['nodes']=[]),_0x4d7053['nodes']['push'](_0x3ac948['Element']['decode'](_0x51c19d,_0x51c19d['uint32'](),void 0x0,_0x267f73+0x1));break;case 0x3:_0x4d7053['shouldReceiveAttributes']=_0x51c19d['bool']();break;case 0x4:_0x4d7053['wasUndone']=_0x51c19d['bool']();break;case 0x5:_0x4d7053['_aiSource']=_0x51c19d['string']();break;default:_0x51c19d['skipType'](0x7&_0x368973,_0x267f73);}}return _0x4d7053;},_0x2c852a['decodeDelimited']=function(_0x19408b){return _0x19408b instanceof _0x369241||(_0x19408b=new _0x369241(_0x19408b)),this['decode'](_0x19408b,_0x19408b['uint32']());},_0x2c852a['verify']=function(_0x37a294,_0x2c5dfd){if('object'!=typeof _0x37a294||null===_0x37a294)return'object\x20expected';if(void 0x0===_0x2c5dfd&&(_0x2c5dfd=0x0),_0x2c5dfd>_0x1b2897['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x37a294['position']&&_0x37a294['hasOwnProperty']('position')&&(_0x4156e1=_0x3ac948['Position']['verify'](_0x37a294['position'],_0x2c5dfd+0x1)))return'position.'+_0x4156e1;if(null!=_0x37a294['nodes']&&_0x37a294['hasOwnProperty']('nodes')){if(!Array['isArray'](_0x37a294['nodes']))return'nodes:\x20array\x20expected';for(var _0x31fc3f=0x0;_0x31fc3f<_0x37a294['nodes']['length'];++_0x31fc3f){var _0x4156e1;if(_0x4156e1=_0x3ac948['Element']['verify'](_0x37a294['nodes'][_0x31fc3f],_0x2c5dfd+0x1))return'nodes.'+_0x4156e1;}}return null!=_0x37a294['shouldReceiveAttributes']&&_0x37a294['hasOwnProperty']('shouldReceiveAttributes')&&'boolean'!=typeof _0x37a294['shouldReceiveAttributes']?'shouldReceiveAttributes:\x20boolean\x20expected':null!=_0x37a294['wasUndone']&&_0x37a294['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x37a294['wasUndone']?'wasUndone:\x20boolean\x20expected':null!=_0x37a294['_aiSource']&&_0x37a294['hasOwnProperty']('_aiSource')&&!_0x1b2897['isString'](_0x37a294['_aiSource'])?'_aiSource:\x20string\x20expected':null;},_0x2c852a['fromObject']=function(_0x2fa1eb,_0xb2d71c){if(_0x2fa1eb instanceof _0x3ac948['InsertOperation'])return _0x2fa1eb;if(void 0x0===_0xb2d71c&&(_0xb2d71c=0x0),_0xb2d71c>_0x1b2897['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x170808=new _0x3ac948['InsertOperation']();if(null!=_0x2fa1eb['position']){if('object'!=typeof _0x2fa1eb['position'])throw TypeError('.InsertOperation.position:\x20object\x20expected');_0x170808['position']=_0x3ac948['Position']['fromObject'](_0x2fa1eb['position'],_0xb2d71c+0x1);}if(_0x2fa1eb['nodes']){if(!Array['isArray'](_0x2fa1eb['nodes']))throw TypeError('.InsertOperation.nodes:\x20array\x20expected');_0x170808['nodes']=[];for(var _0x1fae4f=0x0;_0x1fae4f<_0x2fa1eb['nodes']['length'];++_0x1fae4f){if('object'!=typeof _0x2fa1eb['nodes'][_0x1fae4f])throw TypeError('.InsertOperation.nodes:\x20object\x20expected');_0x170808['nodes'][_0x1fae4f]=_0x3ac948['Element']['fromObject'](_0x2fa1eb['nodes'][_0x1fae4f],_0xb2d71c+0x1);}}return null!=_0x2fa1eb['shouldReceiveAttributes']&&(_0x170808['shouldReceiveAttributes']=Boolean(_0x2fa1eb['shouldReceiveAttributes'])),null!=_0x2fa1eb['wasUndone']&&(_0x170808['wasUndone']=Boolean(_0x2fa1eb['wasUndone'])),null!=_0x2fa1eb['_aiSource']&&(_0x170808['_aiSource']=String(_0x2fa1eb['_aiSource'])),_0x170808;},_0x2c852a['toObject']=function(_0x2d71e8,_0x450f30){_0x450f30||(_0x450f30={});var _0x40602c={};if((_0x450f30['arrays']||_0x450f30['defaults'])&&(_0x40602c['nodes']=[]),_0x450f30['defaults']&&(_0x40602c['position']=null,_0x40602c['shouldReceiveAttributes']=!0x1,_0x40602c['wasUndone']=!0x1,_0x40602c['_aiSource']=''),null!=_0x2d71e8['position']&&_0x2d71e8['hasOwnProperty']('position')&&(_0x40602c['position']=_0x3ac948['Position']['toObject'](_0x2d71e8['position'],_0x450f30)),_0x2d71e8['nodes']&&_0x2d71e8['nodes']['length']){_0x40602c['nodes']=[];for(var _0x3eee5a=0x0;_0x3eee5a<_0x2d71e8['nodes']['length'];++_0x3eee5a)_0x40602c['nodes'][_0x3eee5a]=_0x3ac948['Element']['toObject'](_0x2d71e8['nodes'][_0x3eee5a],_0x450f30);}return null!=_0x2d71e8['shouldReceiveAttributes']&&_0x2d71e8['hasOwnProperty']('shouldReceiveAttributes')&&(_0x40602c['shouldReceiveAttributes']=_0x2d71e8['shouldReceiveAttributes']),null!=_0x2d71e8['wasUndone']&&_0x2d71e8['hasOwnProperty']('wasUndone')&&(_0x40602c['wasUndone']=_0x2d71e8['wasUndone']),null!=_0x2d71e8['_aiSource']&&_0x2d71e8['hasOwnProperty']('_aiSource')&&(_0x40602c['_aiSource']=_0x2d71e8['_aiSource']),_0x40602c;},_0x2c852a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x2c852a['getTypeUrl']=function(_0x32dd3d){return void 0x0===_0x32dd3d&&(_0x32dd3d='type.googleapis.com'),_0x32dd3d+'/InsertOperation';},_0x2c852a;}()),_0x3ac948['MarkerOperation']=(function(){function _0x1e31e8(_0x4f6721){if(_0x4f6721){for(var _0x58832f=Object['keys'](_0x4f6721),_0x4b138c=0x0;_0x4b138c<_0x58832f['length'];++_0x4b138c)null!=_0x4f6721[_0x58832f[_0x4b138c]]&&'__proto__'!==_0x58832f[_0x4b138c]&&(this[_0x58832f[_0x4b138c]]=_0x4f6721[_0x58832f[_0x4b138c]]);}}return _0x1e31e8['prototype']['name']='',_0x1e31e8['prototype']['oldRange']=null,_0x1e31e8['prototype']['newRange']=null,_0x1e31e8['prototype']['affectsData']=!0x1,_0x1e31e8['prototype']['wasUndone']=!0x1,_0x1e31e8['prototype']['_aiSource']='',_0x1e31e8['create']=function(_0x1cdba3){return new _0x1e31e8(_0x1cdba3);},_0x1e31e8['encode']=function(_0x5a8aff,_0x5eeb3a){return _0x5eeb3a||(_0x5eeb3a=_0x5cde2b['create']()),null!=_0x5a8aff['name']&&Object['hasOwnProperty']['call'](_0x5a8aff,'name')&&_0x5eeb3a['uint32'](0xa)['string'](_0x5a8aff['name']),null!=_0x5a8aff['oldRange']&&Object['hasOwnProperty']['call'](_0x5a8aff,'oldRange')&&_0x3ac948['Range']['encode'](_0x5a8aff['oldRange'],_0x5eeb3a['uint32'](0x12)['fork']())['ldelim'](),null!=_0x5a8aff['newRange']&&Object['hasOwnProperty']['call'](_0x5a8aff,'newRange')&&_0x3ac948['Range']['encode'](_0x5a8aff['newRange'],_0x5eeb3a['uint32'](0x1a)['fork']())['ldelim'](),null!=_0x5a8aff['affectsData']&&Object['hasOwnProperty']['call'](_0x5a8aff,'affectsData')&&_0x5eeb3a['uint32'](0x20)['bool'](_0x5a8aff['affectsData']),null!=_0x5a8aff['wasUndone']&&Object['hasOwnProperty']['call'](_0x5a8aff,'wasUndone')&&_0x5eeb3a['uint32'](0x28)['bool'](_0x5a8aff['wasUndone']),null!=_0x5a8aff['_aiSource']&&Object['hasOwnProperty']['call'](_0x5a8aff,'_aiSource')&&_0x5eeb3a['uint32'](0x32)['string'](_0x5a8aff['_aiSource']),_0x5eeb3a;},_0x1e31e8['encodeDelimited']=function(_0x989eb7,_0x261218){return this['encode'](_0x989eb7,_0x261218)['ldelim']();},_0x1e31e8['decode']=function(_0x4e9bd7,_0x2b63eb,_0x192396,_0x71b941){if(_0x4e9bd7 instanceof _0x369241||(_0x4e9bd7=_0x369241['create'](_0x4e9bd7)),void 0x0===_0x71b941&&(_0x71b941=0x0),_0x71b941>_0x369241['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0xf15552=void 0x0===_0x2b63eb?_0x4e9bd7['len']:_0x4e9bd7['pos']+_0x2b63eb,_0x57f8fb=new _0x3ac948['MarkerOperation']();_0x4e9bd7['pos']<_0xf15552;){var _0x34170b=_0x4e9bd7['uint32']();if(_0x34170b===_0x192396)break;switch(_0x34170b>>>0x3){case 0x1:_0x57f8fb['name']=_0x4e9bd7['string']();break;case 0x2:_0x57f8fb['oldRange']=_0x3ac948['Range']['decode'](_0x4e9bd7,_0x4e9bd7['uint32'](),void 0x0,_0x71b941+0x1);break;case 0x3:_0x57f8fb['newRange']=_0x3ac948['Range']['decode'](_0x4e9bd7,_0x4e9bd7['uint32'](),void 0x0,_0x71b941+0x1);break;case 0x4:_0x57f8fb['affectsData']=_0x4e9bd7['bool']();break;case 0x5:_0x57f8fb['wasUndone']=_0x4e9bd7['bool']();break;case 0x6:_0x57f8fb['_aiSource']=_0x4e9bd7['string']();break;default:_0x4e9bd7['skipType'](0x7&_0x34170b,_0x71b941);}}return _0x57f8fb;},_0x1e31e8['decodeDelimited']=function(_0x3efca5){return _0x3efca5 instanceof _0x369241||(_0x3efca5=new _0x369241(_0x3efca5)),this['decode'](_0x3efca5,_0x3efca5['uint32']());},_0x1e31e8['verify']=function(_0x5d64e3,_0x2207ee){if('object'!=typeof _0x5d64e3||null===_0x5d64e3)return'object\x20expected';if(void 0x0===_0x2207ee&&(_0x2207ee=0x0),_0x2207ee>_0x1b2897['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x5d64e3['name']&&_0x5d64e3['hasOwnProperty']('name')&&!_0x1b2897['isString'](_0x5d64e3['name']))return'name:\x20string\x20expected';var _0x2433ef;if(null!=_0x5d64e3['oldRange']&&_0x5d64e3['hasOwnProperty']('oldRange')&&(_0x2433ef=_0x3ac948['Range']['verify'](_0x5d64e3['oldRange'],_0x2207ee+0x1)))return'oldRange.'+_0x2433ef;if(null!=_0x5d64e3['newRange']&&_0x5d64e3['hasOwnProperty']('newRange')&&(_0x2433ef=_0x3ac948['Range']['verify'](_0x5d64e3['newRange'],_0x2207ee+0x1)))return'newRange.'+_0x2433ef;return null!=_0x5d64e3['affectsData']&&_0x5d64e3['hasOwnProperty']('affectsData')&&'boolean'!=typeof _0x5d64e3['affectsData']?'affectsData:\x20boolean\x20expected':null!=_0x5d64e3['wasUndone']&&_0x5d64e3['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x5d64e3['wasUndone']?'wasUndone:\x20boolean\x20expected':null!=_0x5d64e3['_aiSource']&&_0x5d64e3['hasOwnProperty']('_aiSource')&&!_0x1b2897['isString'](_0x5d64e3['_aiSource'])?'_aiSource:\x20string\x20expected':null;},_0x1e31e8['fromObject']=function(_0x1610d1,_0x1a6bf2){if(_0x1610d1 instanceof _0x3ac948['MarkerOperation'])return _0x1610d1;if(void 0x0===_0x1a6bf2&&(_0x1a6bf2=0x0),_0x1a6bf2>_0x1b2897['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x5c2aa4=new _0x3ac948['MarkerOperation']();if(null!=_0x1610d1['name']&&(_0x5c2aa4['name']=String(_0x1610d1['name'])),null!=_0x1610d1['oldRange']){if('object'!=typeof _0x1610d1['oldRange'])throw TypeError('.MarkerOperation.oldRange:\x20object\x20expected');_0x5c2aa4['oldRange']=_0x3ac948['Range']['fromObject'](_0x1610d1['oldRange'],_0x1a6bf2+0x1);}if(null!=_0x1610d1['newRange']){if('object'!=typeof _0x1610d1['newRange'])throw TypeError('.MarkerOperation.newRange:\x20object\x20expected');_0x5c2aa4['newRange']=_0x3ac948['Range']['fromObject'](_0x1610d1['newRange'],_0x1a6bf2+0x1);}return null!=_0x1610d1['affectsData']&&(_0x5c2aa4['affectsData']=Boolean(_0x1610d1['affectsData'])),null!=_0x1610d1['wasUndone']&&(_0x5c2aa4['wasUndone']=Boolean(_0x1610d1['wasUndone'])),null!=_0x1610d1['_aiSource']&&(_0x5c2aa4['_aiSource']=String(_0x1610d1['_aiSource'])),_0x5c2aa4;},_0x1e31e8['toObject']=function(_0x5a9372,_0x392d07){_0x392d07||(_0x392d07={});var _0x2cb635={};return _0x392d07['defaults']&&(_0x2cb635['name']='',_0x2cb635['oldRange']=null,_0x2cb635['newRange']=null,_0x2cb635['affectsData']=!0x1,_0x2cb635['wasUndone']=!0x1,_0x2cb635['_aiSource']=''),null!=_0x5a9372['name']&&_0x5a9372['hasOwnProperty']('name')&&(_0x2cb635['name']=_0x5a9372['name']),null!=_0x5a9372['oldRange']&&_0x5a9372['hasOwnProperty']('oldRange')&&(_0x2cb635['oldRange']=_0x3ac948['Range']['toObject'](_0x5a9372['oldRange'],_0x392d07)),null!=_0x5a9372['newRange']&&_0x5a9372['hasOwnProperty']('newRange')&&(_0x2cb635['newRange']=_0x3ac948['Range']['toObject'](_0x5a9372['newRange'],_0x392d07)),null!=_0x5a9372['affectsData']&&_0x5a9372['hasOwnProperty']('affectsData')&&(_0x2cb635['affectsData']=_0x5a9372['affectsData']),null!=_0x5a9372['wasUndone']&&_0x5a9372['hasOwnProperty']('wasUndone')&&(_0x2cb635['wasUndone']=_0x5a9372['wasUndone']),null!=_0x5a9372['_aiSource']&&_0x5a9372['hasOwnProperty']('_aiSource')&&(_0x2cb635['_aiSource']=_0x5a9372['_aiSource']),_0x2cb635;},_0x1e31e8['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x1e31e8['getTypeUrl']=function(_0x45ae73){return void 0x0===_0x45ae73&&(_0x45ae73='type.googleapis.com'),_0x45ae73+'/MarkerOperation';},_0x1e31e8;}()),_0x3ac948['MergeOperation']=(function(){function _0x417484(_0x430741){if(_0x430741){for(var _0x4bd39f=Object['keys'](_0x430741),_0x312f2e=0x0;_0x312f2e<_0x4bd39f['length'];++_0x312f2e)null!=_0x430741[_0x4bd39f[_0x312f2e]]&&'__proto__'!==_0x4bd39f[_0x312f2e]&&(this[_0x4bd39f[_0x312f2e]]=_0x430741[_0x4bd39f[_0x312f2e]]);}}return _0x417484['prototype']['sourcePosition']=null,_0x417484['prototype']['targetPosition']=null,_0x417484['prototype']['graveyardPosition']=null,_0x417484['prototype']['howMany']=0x0,_0x417484['prototype']['wasUndone']=!0x1,_0x417484['prototype']['_aiSource']='',_0x417484['create']=function(_0x882ed1){return new _0x417484(_0x882ed1);},_0x417484['encode']=function(_0xbf5b57,_0x57db44){return _0x57db44||(_0x57db44=_0x5cde2b['create']()),null!=_0xbf5b57['sourcePosition']&&Object['hasOwnProperty']['call'](_0xbf5b57,'sourcePosition')&&_0x3ac948['Position']['encode'](_0xbf5b57['sourcePosition'],_0x57db44['uint32'](0xa)['fork']())['ldelim'](),null!=_0xbf5b57['targetPosition']&&Object['hasOwnProperty']['call'](_0xbf5b57,'targetPosition')&&_0x3ac948['Position']['encode'](_0xbf5b57['targetPosition'],_0x57db44['uint32'](0x12)['fork']())['ldelim'](),null!=_0xbf5b57['graveyardPosition']&&Object['hasOwnProperty']['call'](_0xbf5b57,'graveyardPosition')&&_0x3ac948['Position']['encode'](_0xbf5b57['graveyardPosition'],_0x57db44['uint32'](0x1a)['fork']())['ldelim'](),null!=_0xbf5b57['howMany']&&Object['hasOwnProperty']['call'](_0xbf5b57,'howMany')&&_0x57db44['uint32'](0x20)['uint32'](_0xbf5b57['howMany']),null!=_0xbf5b57['wasUndone']&&Object['hasOwnProperty']['call'](_0xbf5b57,'wasUndone')&&_0x57db44['uint32'](0x28)['bool'](_0xbf5b57['wasUndone']),null!=_0xbf5b57['_aiSource']&&Object['hasOwnProperty']['call'](_0xbf5b57,'_aiSource')&&_0x57db44['uint32'](0x32)['string'](_0xbf5b57['_aiSource']),_0x57db44;},_0x417484['encodeDelimited']=function(_0x12bd9b,_0xd05e63){return this['encode'](_0x12bd9b,_0xd05e63)['ldelim']();},_0x417484['decode']=function(_0x28ed88,_0x5649d0,_0x2a67be,_0x2aacd9){if(_0x28ed88 instanceof _0x369241||(_0x28ed88=_0x369241['create'](_0x28ed88)),void 0x0===_0x2aacd9&&(_0x2aacd9=0x0),_0x2aacd9>_0x369241['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x4c0364=void 0x0===_0x5649d0?_0x28ed88['len']:_0x28ed88['pos']+_0x5649d0,_0x195360=new _0x3ac948['MergeOperation']();_0x28ed88['pos']<_0x4c0364;){var _0x507dce=_0x28ed88['uint32']();if(_0x507dce===_0x2a67be)break;switch(_0x507dce>>>0x3){case 0x1:_0x195360['sourcePosition']=_0x3ac948['Position']['decode'](_0x28ed88,_0x28ed88['uint32'](),void 0x0,_0x2aacd9+0x1);break;case 0x2:_0x195360['targetPosition']=_0x3ac948['Position']['decode'](_0x28ed88,_0x28ed88['uint32'](),void 0x0,_0x2aacd9+0x1);break;case 0x3:_0x195360['graveyardPosition']=_0x3ac948['Position']['decode'](_0x28ed88,_0x28ed88['uint32'](),void 0x0,_0x2aacd9+0x1);break;case 0x4:_0x195360['howMany']=_0x28ed88['uint32']();break;case 0x5:_0x195360['wasUndone']=_0x28ed88['bool']();break;case 0x6:_0x195360['_aiSource']=_0x28ed88['string']();break;default:_0x28ed88['skipType'](0x7&_0x507dce,_0x2aacd9);}}return _0x195360;},_0x417484['decodeDelimited']=function(_0x321bc8){return _0x321bc8 instanceof _0x369241||(_0x321bc8=new _0x369241(_0x321bc8)),this['decode'](_0x321bc8,_0x321bc8['uint32']());},_0x417484['verify']=function(_0x50ceb5,_0x3fb246){if('object'!=typeof _0x50ceb5||null===_0x50ceb5)return'object\x20expected';if(void 0x0===_0x3fb246&&(_0x3fb246=0x0),_0x3fb246>_0x1b2897['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';var _0x1f8580;if(null!=_0x50ceb5['sourcePosition']&&_0x50ceb5['hasOwnProperty']('sourcePosition')&&(_0x1f8580=_0x3ac948['Position']['verify'](_0x50ceb5['sourcePosition'],_0x3fb246+0x1)))return'sourcePosition.'+_0x1f8580;if(null!=_0x50ceb5['targetPosition']&&_0x50ceb5['hasOwnProperty']('targetPosition')&&(_0x1f8580=_0x3ac948['Position']['verify'](_0x50ceb5['targetPosition'],_0x3fb246+0x1)))return'targetPosition.'+_0x1f8580;if(null!=_0x50ceb5['graveyardPosition']&&_0x50ceb5['hasOwnProperty']('graveyardPosition')&&(_0x1f8580=_0x3ac948['Position']['verify'](_0x50ceb5['graveyardPosition'],_0x3fb246+0x1)))return'graveyardPosition.'+_0x1f8580;return null!=_0x50ceb5['howMany']&&_0x50ceb5['hasOwnProperty']('howMany')&&!_0x1b2897['isInteger'](_0x50ceb5['howMany'])?'howMany:\x20integer\x20expected':null!=_0x50ceb5['wasUndone']&&_0x50ceb5['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x50ceb5['wasUndone']?'wasUndone:\x20boolean\x20expected':null!=_0x50ceb5['_aiSource']&&_0x50ceb5['hasOwnProperty']('_aiSource')&&!_0x1b2897['isString'](_0x50ceb5['_aiSource'])?'_aiSource:\x20string\x20expected':null;},_0x417484['fromObject']=function(_0x189964,_0x525b0f){if(_0x189964 instanceof _0x3ac948['MergeOperation'])return _0x189964;if(void 0x0===_0x525b0f&&(_0x525b0f=0x0),_0x525b0f>_0x1b2897['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x1d6136=new _0x3ac948['MergeOperation']();if(null!=_0x189964['sourcePosition']){if('object'!=typeof _0x189964['sourcePosition'])throw TypeError('.MergeOperation.sourcePosition:\x20object\x20expected');_0x1d6136['sourcePosition']=_0x3ac948['Position']['fromObject'](_0x189964['sourcePosition'],_0x525b0f+0x1);}if(null!=_0x189964['targetPosition']){if('object'!=typeof _0x189964['targetPosition'])throw TypeError('.MergeOperation.targetPosition:\x20object\x20expected');_0x1d6136['targetPosition']=_0x3ac948['Position']['fromObject'](_0x189964['targetPosition'],_0x525b0f+0x1);}if(null!=_0x189964['graveyardPosition']){if('object'!=typeof _0x189964['graveyardPosition'])throw TypeError('.MergeOperation.graveyardPosition:\x20object\x20expected');_0x1d6136['graveyardPosition']=_0x3ac948['Position']['fromObject'](_0x189964['graveyardPosition'],_0x525b0f+0x1);}return null!=_0x189964['howMany']&&(_0x1d6136['howMany']=_0x189964['howMany']>>>0x0),null!=_0x189964['wasUndone']&&(_0x1d6136['wasUndone']=Boolean(_0x189964['wasUndone'])),null!=_0x189964['_aiSource']&&(_0x1d6136['_aiSource']=String(_0x189964['_aiSource'])),_0x1d6136;},_0x417484['toObject']=function(_0x12ddd5,_0x19a7aa){_0x19a7aa||(_0x19a7aa={});var _0x1ec7af={};return _0x19a7aa['defaults']&&(_0x1ec7af['sourcePosition']=null,_0x1ec7af['targetPosition']=null,_0x1ec7af['graveyardPosition']=null,_0x1ec7af['howMany']=0x0,_0x1ec7af['wasUndone']=!0x1,_0x1ec7af['_aiSource']=''),null!=_0x12ddd5['sourcePosition']&&_0x12ddd5['hasOwnProperty']('sourcePosition')&&(_0x1ec7af['sourcePosition']=_0x3ac948['Position']['toObject'](_0x12ddd5['sourcePosition'],_0x19a7aa)),null!=_0x12ddd5['targetPosition']&&_0x12ddd5['hasOwnProperty']('targetPosition')&&(_0x1ec7af['targetPosition']=_0x3ac948['Position']['toObject'](_0x12ddd5['targetPosition'],_0x19a7aa)),null!=_0x12ddd5['graveyardPosition']&&_0x12ddd5['hasOwnProperty']('graveyardPosition')&&(_0x1ec7af['graveyardPosition']=_0x3ac948['Position']['toObject'](_0x12ddd5['graveyardPosition'],_0x19a7aa)),null!=_0x12ddd5['howMany']&&_0x12ddd5['hasOwnProperty']('howMany')&&(_0x1ec7af['howMany']=_0x12ddd5['howMany']),null!=_0x12ddd5['wasUndone']&&_0x12ddd5['hasOwnProperty']('wasUndone')&&(_0x1ec7af['wasUndone']=_0x12ddd5['wasUndone']),null!=_0x12ddd5['_aiSource']&&_0x12ddd5['hasOwnProperty']('_aiSource')&&(_0x1ec7af['_aiSource']=_0x12ddd5['_aiSource']),_0x1ec7af;},_0x417484['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x417484['getTypeUrl']=function(_0x272a40){return void 0x0===_0x272a40&&(_0x272a40='type.googleapis.com'),_0x272a40+'/MergeOperation';},_0x417484;}()),_0x3ac948['MoveOperation']=(function(){function _0x446dea(_0x5ddfd3){if(_0x5ddfd3){for(var _0x182e10=Object['keys'](_0x5ddfd3),_0x1eaaca=0x0;_0x1eaaca<_0x182e10['length'];++_0x1eaaca)null!=_0x5ddfd3[_0x182e10[_0x1eaaca]]&&'__proto__'!==_0x182e10[_0x1eaaca]&&(this[_0x182e10[_0x1eaaca]]=_0x5ddfd3[_0x182e10[_0x1eaaca]]);}}return _0x446dea['prototype']['sourcePosition']=null,_0x446dea['prototype']['howMany']=0x0,_0x446dea['prototype']['targetPosition']=null,_0x446dea['prototype']['wasUndone']=!0x1,_0x446dea['prototype']['_aiSource']='',_0x446dea['create']=function(_0x1662f4){return new _0x446dea(_0x1662f4);},_0x446dea['encode']=function(_0x3c5337,_0xe4c3dd){return _0xe4c3dd||(_0xe4c3dd=_0x5cde2b['create']()),null!=_0x3c5337['sourcePosition']&&Object['hasOwnProperty']['call'](_0x3c5337,'sourcePosition')&&_0x3ac948['Position']['encode'](_0x3c5337['sourcePosition'],_0xe4c3dd['uint32'](0xa)['fork']())['ldelim'](),null!=_0x3c5337['howMany']&&Object['hasOwnProperty']['call'](_0x3c5337,'howMany')&&_0xe4c3dd['uint32'](0x10)['uint32'](_0x3c5337['howMany']),null!=_0x3c5337['targetPosition']&&Object['hasOwnProperty']['call'](_0x3c5337,'targetPosition')&&_0x3ac948['Position']['encode'](_0x3c5337['targetPosition'],_0xe4c3dd['uint32'](0x1a)['fork']())['ldelim'](),null!=_0x3c5337['wasUndone']&&Object['hasOwnProperty']['call'](_0x3c5337,'wasUndone')&&_0xe4c3dd['uint32'](0x20)['bool'](_0x3c5337['wasUndone']),null!=_0x3c5337['_aiSource']&&Object['hasOwnProperty']['call'](_0x3c5337,'_aiSource')&&_0xe4c3dd['uint32'](0x2a)['string'](_0x3c5337['_aiSource']),_0xe4c3dd;},_0x446dea['encodeDelimited']=function(_0x436601,_0xe35880){return this['encode'](_0x436601,_0xe35880)['ldelim']();},_0x446dea['decode']=function(_0x1efea9,_0x3cf7c5,_0x2685ac,_0x358749){if(_0x1efea9 instanceof _0x369241||(_0x1efea9=_0x369241['create'](_0x1efea9)),void 0x0===_0x358749&&(_0x358749=0x0),_0x358749>_0x369241['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x24a4d6=void 0x0===_0x3cf7c5?_0x1efea9['len']:_0x1efea9['pos']+_0x3cf7c5,_0x436e2a=new _0x3ac948['MoveOperation']();_0x1efea9['pos']<_0x24a4d6;){var _0x5ac49e=_0x1efea9['uint32']();if(_0x5ac49e===_0x2685ac)break;switch(_0x5ac49e>>>0x3){case 0x1:_0x436e2a['sourcePosition']=_0x3ac948['Position']['decode'](_0x1efea9,_0x1efea9['uint32'](),void 0x0,_0x358749+0x1);break;case 0x2:_0x436e2a['howMany']=_0x1efea9['uint32']();break;case 0x3:_0x436e2a['targetPosition']=_0x3ac948['Position']['decode'](_0x1efea9,_0x1efea9['uint32'](),void 0x0,_0x358749+0x1);break;case 0x4:_0x436e2a['wasUndone']=_0x1efea9['bool']();break;case 0x5:_0x436e2a['_aiSource']=_0x1efea9['string']();break;default:_0x1efea9['skipType'](0x7&_0x5ac49e,_0x358749);}}return _0x436e2a;},_0x446dea['decodeDelimited']=function(_0x23261e){return _0x23261e instanceof _0x369241||(_0x23261e=new _0x369241(_0x23261e)),this['decode'](_0x23261e,_0x23261e['uint32']());},_0x446dea['verify']=function(_0x32c8f4,_0x84b7df){if('object'!=typeof _0x32c8f4||null===_0x32c8f4)return'object\x20expected';if(void 0x0===_0x84b7df&&(_0x84b7df=0x0),_0x84b7df>_0x1b2897['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';var _0xbca1e5;if(null!=_0x32c8f4['sourcePosition']&&_0x32c8f4['hasOwnProperty']('sourcePosition')&&(_0xbca1e5=_0x3ac948['Position']['verify'](_0x32c8f4['sourcePosition'],_0x84b7df+0x1)))return'sourcePosition.'+_0xbca1e5;if(null!=_0x32c8f4['howMany']&&_0x32c8f4['hasOwnProperty']('howMany')&&!_0x1b2897['isInteger'](_0x32c8f4['howMany']))return'howMany:\x20integer\x20expected';if(null!=_0x32c8f4['targetPosition']&&_0x32c8f4['hasOwnProperty']('targetPosition')&&(_0xbca1e5=_0x3ac948['Position']['verify'](_0x32c8f4['targetPosition'],_0x84b7df+0x1)))return'targetPosition.'+_0xbca1e5;return null!=_0x32c8f4['wasUndone']&&_0x32c8f4['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x32c8f4['wasUndone']?'wasUndone:\x20boolean\x20expected':null!=_0x32c8f4['_aiSource']&&_0x32c8f4['hasOwnProperty']('_aiSource')&&!_0x1b2897['isString'](_0x32c8f4['_aiSource'])?'_aiSource:\x20string\x20expected':null;},_0x446dea['fromObject']=function(_0x36c12c,_0x38d15e){if(_0x36c12c instanceof _0x3ac948['MoveOperation'])return _0x36c12c;if(void 0x0===_0x38d15e&&(_0x38d15e=0x0),_0x38d15e>_0x1b2897['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x19d5f2=new _0x3ac948['MoveOperation']();if(null!=_0x36c12c['sourcePosition']){if('object'!=typeof _0x36c12c['sourcePosition'])throw TypeError('.MoveOperation.sourcePosition:\x20object\x20expected');_0x19d5f2['sourcePosition']=_0x3ac948['Position']['fromObject'](_0x36c12c['sourcePosition'],_0x38d15e+0x1);}if(null!=_0x36c12c['howMany']&&(_0x19d5f2['howMany']=_0x36c12c['howMany']>>>0x0),null!=_0x36c12c['targetPosition']){if('object'!=typeof _0x36c12c['targetPosition'])throw TypeError('.MoveOperation.targetPosition:\x20object\x20expected');_0x19d5f2['targetPosition']=_0x3ac948['Position']['fromObject'](_0x36c12c['targetPosition'],_0x38d15e+0x1);}return null!=_0x36c12c['wasUndone']&&(_0x19d5f2['wasUndone']=Boolean(_0x36c12c['wasUndone'])),null!=_0x36c12c['_aiSource']&&(_0x19d5f2['_aiSource']=String(_0x36c12c['_aiSource'])),_0x19d5f2;},_0x446dea['toObject']=function(_0x4a1c14,_0x2a73ac){_0x2a73ac||(_0x2a73ac={});var _0x350a23={};return _0x2a73ac['defaults']&&(_0x350a23['sourcePosition']=null,_0x350a23['howMany']=0x0,_0x350a23['targetPosition']=null,_0x350a23['wasUndone']=!0x1,_0x350a23['_aiSource']=''),null!=_0x4a1c14['sourcePosition']&&_0x4a1c14['hasOwnProperty']('sourcePosition')&&(_0x350a23['sourcePosition']=_0x3ac948['Position']['toObject'](_0x4a1c14['sourcePosition'],_0x2a73ac)),null!=_0x4a1c14['howMany']&&_0x4a1c14['hasOwnProperty']('howMany')&&(_0x350a23['howMany']=_0x4a1c14['howMany']),null!=_0x4a1c14['targetPosition']&&_0x4a1c14['hasOwnProperty']('targetPosition')&&(_0x350a23['targetPosition']=_0x3ac948['Position']['toObject'](_0x4a1c14['targetPosition'],_0x2a73ac)),null!=_0x4a1c14['wasUndone']&&_0x4a1c14['hasOwnProperty']('wasUndone')&&(_0x350a23['wasUndone']=_0x4a1c14['wasUndone']),null!=_0x4a1c14['_aiSource']&&_0x4a1c14['hasOwnProperty']('_aiSource')&&(_0x350a23['_aiSource']=_0x4a1c14['_aiSource']),_0x350a23;},_0x446dea['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x446dea['getTypeUrl']=function(_0x24c211){return void 0x0===_0x24c211&&(_0x24c211='type.googleapis.com'),_0x24c211+'/MoveOperation';},_0x446dea;}()),_0x3ac948['RenameOperation']=(function(){function _0x3f8bca(_0x109351){if(_0x109351){for(var _0x235c76=Object['keys'](_0x109351),_0x32456b=0x0;_0x32456b<_0x235c76['length'];++_0x32456b)null!=_0x109351[_0x235c76[_0x32456b]]&&'__proto__'!==_0x235c76[_0x32456b]&&(this[_0x235c76[_0x32456b]]=_0x109351[_0x235c76[_0x32456b]]);}}return _0x3f8bca['prototype']['position']=null,_0x3f8bca['prototype']['oldName']='',_0x3f8bca['prototype']['newName']='',_0x3f8bca['prototype']['wasUndone']=!0x1,_0x3f8bca['prototype']['_aiSource']='',_0x3f8bca['create']=function(_0x42d53c){return new _0x3f8bca(_0x42d53c);},_0x3f8bca['encode']=function(_0x2c9b11,_0x449ecc){return _0x449ecc||(_0x449ecc=_0x5cde2b['create']()),null!=_0x2c9b11['position']&&Object['hasOwnProperty']['call'](_0x2c9b11,'position')&&_0x3ac948['Position']['encode'](_0x2c9b11['position'],_0x449ecc['uint32'](0xa)['fork']())['ldelim'](),null!=_0x2c9b11['oldName']&&Object['hasOwnProperty']['call'](_0x2c9b11,'oldName')&&_0x449ecc['uint32'](0x12)['string'](_0x2c9b11['oldName']),null!=_0x2c9b11['newName']&&Object['hasOwnProperty']['call'](_0x2c9b11,'newName')&&_0x449ecc['uint32'](0x1a)['string'](_0x2c9b11['newName']),null!=_0x2c9b11['wasUndone']&&Object['hasOwnProperty']['call'](_0x2c9b11,'wasUndone')&&_0x449ecc['uint32'](0x20)['bool'](_0x2c9b11['wasUndone']),null!=_0x2c9b11['_aiSource']&&Object['hasOwnProperty']['call'](_0x2c9b11,'_aiSource')&&_0x449ecc['uint32'](0x2a)['string'](_0x2c9b11['_aiSource']),_0x449ecc;},_0x3f8bca['encodeDelimited']=function(_0x195937,_0x293d79){return this['encode'](_0x195937,_0x293d79)['ldelim']();},_0x3f8bca['decode']=function(_0x5b8e7e,_0x30b38e,_0x3fff90,_0x158d11){if(_0x5b8e7e instanceof _0x369241||(_0x5b8e7e=_0x369241['create'](_0x5b8e7e)),void 0x0===_0x158d11&&(_0x158d11=0x0),_0x158d11>_0x369241['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x5ebb84=void 0x0===_0x30b38e?_0x5b8e7e['len']:_0x5b8e7e['pos']+_0x30b38e,_0x97d8ea=new _0x3ac948['RenameOperation']();_0x5b8e7e['pos']<_0x5ebb84;){var _0xe17314=_0x5b8e7e['uint32']();if(_0xe17314===_0x3fff90)break;switch(_0xe17314>>>0x3){case 0x1:_0x97d8ea['position']=_0x3ac948['Position']['decode'](_0x5b8e7e,_0x5b8e7e['uint32'](),void 0x0,_0x158d11+0x1);break;case 0x2:_0x97d8ea['oldName']=_0x5b8e7e['string']();break;case 0x3:_0x97d8ea['newName']=_0x5b8e7e['string']();break;case 0x4:_0x97d8ea['wasUndone']=_0x5b8e7e['bool']();break;case 0x5:_0x97d8ea['_aiSource']=_0x5b8e7e['string']();break;default:_0x5b8e7e['skipType'](0x7&_0xe17314,_0x158d11);}}return _0x97d8ea;},_0x3f8bca['decodeDelimited']=function(_0x4d965b){return _0x4d965b instanceof _0x369241||(_0x4d965b=new _0x369241(_0x4d965b)),this['decode'](_0x4d965b,_0x4d965b['uint32']());},_0x3f8bca['verify']=function(_0x5746cc,_0x2deffb){if('object'!=typeof _0x5746cc||null===_0x5746cc)return'object\x20expected';if(void 0x0===_0x2deffb&&(_0x2deffb=0x0),_0x2deffb>_0x1b2897['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x5746cc['position']&&_0x5746cc['hasOwnProperty']('position')){var _0x23e308=_0x3ac948['Position']['verify'](_0x5746cc['position'],_0x2deffb+0x1);if(_0x23e308)return'position.'+_0x23e308;}return null!=_0x5746cc['oldName']&&_0x5746cc['hasOwnProperty']('oldName')&&!_0x1b2897['isString'](_0x5746cc['oldName'])?'oldName:\x20string\x20expected':null!=_0x5746cc['newName']&&_0x5746cc['hasOwnProperty']('newName')&&!_0x1b2897['isString'](_0x5746cc['newName'])?'newName:\x20string\x20expected':null!=_0x5746cc['wasUndone']&&_0x5746cc['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x5746cc['wasUndone']?'wasUndone:\x20boolean\x20expected':null!=_0x5746cc['_aiSource']&&_0x5746cc['hasOwnProperty']('_aiSource')&&!_0x1b2897['isString'](_0x5746cc['_aiSource'])?'_aiSource:\x20string\x20expected':null;},_0x3f8bca['fromObject']=function(_0x3b4220,_0x338343){if(_0x3b4220 instanceof _0x3ac948['RenameOperation'])return _0x3b4220;if(void 0x0===_0x338343&&(_0x338343=0x0),_0x338343>_0x1b2897['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x4c33c6=new _0x3ac948['RenameOperation']();if(null!=_0x3b4220['position']){if('object'!=typeof _0x3b4220['position'])throw TypeError('.RenameOperation.position:\x20object\x20expected');_0x4c33c6['position']=_0x3ac948['Position']['fromObject'](_0x3b4220['position'],_0x338343+0x1);}return null!=_0x3b4220['oldName']&&(_0x4c33c6['oldName']=String(_0x3b4220['oldName'])),null!=_0x3b4220['newName']&&(_0x4c33c6['newName']=String(_0x3b4220['newName'])),null!=_0x3b4220['wasUndone']&&(_0x4c33c6['wasUndone']=Boolean(_0x3b4220['wasUndone'])),null!=_0x3b4220['_aiSource']&&(_0x4c33c6['_aiSource']=String(_0x3b4220['_aiSource'])),_0x4c33c6;},_0x3f8bca['toObject']=function(_0x22107c,_0x31a78d){_0x31a78d||(_0x31a78d={});var _0x554643={};return _0x31a78d['defaults']&&(_0x554643['position']=null,_0x554643['oldName']='',_0x554643['newName']='',_0x554643['wasUndone']=!0x1,_0x554643['_aiSource']=''),null!=_0x22107c['position']&&_0x22107c['hasOwnProperty']('position')&&(_0x554643['position']=_0x3ac948['Position']['toObject'](_0x22107c['position'],_0x31a78d)),null!=_0x22107c['oldName']&&_0x22107c['hasOwnProperty']('oldName')&&(_0x554643['oldName']=_0x22107c['oldName']),null!=_0x22107c['newName']&&_0x22107c['hasOwnProperty']('newName')&&(_0x554643['newName']=_0x22107c['newName']),null!=_0x22107c['wasUndone']&&_0x22107c['hasOwnProperty']('wasUndone')&&(_0x554643['wasUndone']=_0x22107c['wasUndone']),null!=_0x22107c['_aiSource']&&_0x22107c['hasOwnProperty']('_aiSource')&&(_0x554643['_aiSource']=_0x22107c['_aiSource']),_0x554643;},_0x3f8bca['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x3f8bca['getTypeUrl']=function(_0x4b9d18){return void 0x0===_0x4b9d18&&(_0x4b9d18='type.googleapis.com'),_0x4b9d18+'/RenameOperation';},_0x3f8bca;}()),_0x3ac948['RootAttributeOperation']=(function(){function _0x392535(_0x24fd74){if(_0x24fd74){for(var _0x3dec21=Object['keys'](_0x24fd74),_0x440d04=0x0;_0x440d04<_0x3dec21['length'];++_0x440d04)null!=_0x24fd74[_0x3dec21[_0x440d04]]&&'__proto__'!==_0x3dec21[_0x440d04]&&(this[_0x3dec21[_0x440d04]]=_0x24fd74[_0x3dec21[_0x440d04]]);}}return _0x392535['prototype']['root']='',_0x392535['prototype']['key']='',_0x392535['prototype']['oldValueBoolean']=!0x1,_0x392535['prototype']['oldValueJson']='',_0x392535['prototype']['newValueBoolean']=!0x1,_0x392535['prototype']['newValueJson']='',_0x392535['prototype']['wasUndone']=!0x1,_0x392535['prototype']['_aiSource']='',_0x392535['create']=function(_0x441abb){return new _0x392535(_0x441abb);},_0x392535['encode']=function(_0x553597,_0x2c1e12){return _0x2c1e12||(_0x2c1e12=_0x5cde2b['create']()),null!=_0x553597['root']&&Object['hasOwnProperty']['call'](_0x553597,'root')&&_0x2c1e12['uint32'](0xa)['string'](_0x553597['root']),null!=_0x553597['key']&&Object['hasOwnProperty']['call'](_0x553597,'key')&&_0x2c1e12['uint32'](0x12)['string'](_0x553597['key']),null!=_0x553597['oldValueBoolean']&&Object['hasOwnProperty']['call'](_0x553597,'oldValueBoolean')&&_0x2c1e12['uint32'](0x18)['bool'](_0x553597['oldValueBoolean']),null!=_0x553597['oldValueJson']&&Object['hasOwnProperty']['call'](_0x553597,'oldValueJson')&&_0x2c1e12['uint32'](0x22)['string'](_0x553597['oldValueJson']),null!=_0x553597['newValueBoolean']&&Object['hasOwnProperty']['call'](_0x553597,'newValueBoolean')&&_0x2c1e12['uint32'](0x28)['bool'](_0x553597['newValueBoolean']),null!=_0x553597['newValueJson']&&Object['hasOwnProperty']['call'](_0x553597,'newValueJson')&&_0x2c1e12['uint32'](0x32)['string'](_0x553597['newValueJson']),null!=_0x553597['wasUndone']&&Object['hasOwnProperty']['call'](_0x553597,'wasUndone')&&_0x2c1e12['uint32'](0x38)['bool'](_0x553597['wasUndone']),null!=_0x553597['_aiSource']&&Object['hasOwnProperty']['call'](_0x553597,'_aiSource')&&_0x2c1e12['uint32'](0x42)['string'](_0x553597['_aiSource']),_0x2c1e12;},_0x392535['encodeDelimited']=function(_0x43f58e,_0x372454){return this['encode'](_0x43f58e,_0x372454)['ldelim']();},_0x392535['decode']=function(_0x13af4c,_0x1719eb,_0x28d1a0,_0x3aa652){if(_0x13af4c instanceof _0x369241||(_0x13af4c=_0x369241['create'](_0x13af4c)),void 0x0===_0x3aa652&&(_0x3aa652=0x0),_0x3aa652>_0x369241['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x394c7b=void 0x0===_0x1719eb?_0x13af4c['len']:_0x13af4c['pos']+_0x1719eb,_0x5e9a6e=new _0x3ac948['RootAttributeOperation']();_0x13af4c['pos']<_0x394c7b;){var _0x382262=_0x13af4c['uint32']();if(_0x382262===_0x28d1a0)break;switch(_0x382262>>>0x3){case 0x1:_0x5e9a6e['root']=_0x13af4c['string']();break;case 0x2:_0x5e9a6e['key']=_0x13af4c['string']();break;case 0x3:_0x5e9a6e['oldValueBoolean']=_0x13af4c['bool']();break;case 0x4:_0x5e9a6e['oldValueJson']=_0x13af4c['string']();break;case 0x5:_0x5e9a6e['newValueBoolean']=_0x13af4c['bool']();break;case 0x6:_0x5e9a6e['newValueJson']=_0x13af4c['string']();break;case 0x7:_0x5e9a6e['wasUndone']=_0x13af4c['bool']();break;case 0x8:_0x5e9a6e['_aiSource']=_0x13af4c['string']();break;default:_0x13af4c['skipType'](0x7&_0x382262,_0x3aa652);}}return _0x5e9a6e;},_0x392535['decodeDelimited']=function(_0x4f6571){return _0x4f6571 instanceof _0x369241||(_0x4f6571=new _0x369241(_0x4f6571)),this['decode'](_0x4f6571,_0x4f6571['uint32']());},_0x392535['verify']=function(_0x7a4ec7,_0x52d385){return'object'!=typeof _0x7a4ec7||null===_0x7a4ec7?'object\x20expected':(void 0x0===_0x52d385&&(_0x52d385=0x0),_0x52d385>_0x1b2897['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x7a4ec7['root']&&_0x7a4ec7['hasOwnProperty']('root')&&!_0x1b2897['isString'](_0x7a4ec7['root'])?'root:\x20string\x20expected':null!=_0x7a4ec7['key']&&_0x7a4ec7['hasOwnProperty']('key')&&!_0x1b2897['isString'](_0x7a4ec7['key'])?'key:\x20string\x20expected':null!=_0x7a4ec7['oldValueBoolean']&&_0x7a4ec7['hasOwnProperty']('oldValueBoolean')&&'boolean'!=typeof _0x7a4ec7['oldValueBoolean']?'oldValueBoolean:\x20boolean\x20expected':null!=_0x7a4ec7['oldValueJson']&&_0x7a4ec7['hasOwnProperty']('oldValueJson')&&!_0x1b2897['isString'](_0x7a4ec7['oldValueJson'])?'oldValueJson:\x20string\x20expected':null!=_0x7a4ec7['newValueBoolean']&&_0x7a4ec7['hasOwnProperty']('newValueBoolean')&&'boolean'!=typeof _0x7a4ec7['newValueBoolean']?'newValueBoolean:\x20boolean\x20expected':null!=_0x7a4ec7['newValueJson']&&_0x7a4ec7['hasOwnProperty']('newValueJson')&&!_0x1b2897['isString'](_0x7a4ec7['newValueJson'])?'newValueJson:\x20string\x20expected':null!=_0x7a4ec7['wasUndone']&&_0x7a4ec7['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x7a4ec7['wasUndone']?'wasUndone:\x20boolean\x20expected':null!=_0x7a4ec7['_aiSource']&&_0x7a4ec7['hasOwnProperty']('_aiSource')&&!_0x1b2897['isString'](_0x7a4ec7['_aiSource'])?'_aiSource:\x20string\x20expected':null);},_0x392535['fromObject']=function(_0x4e3a42,_0x3f7141){if(_0x4e3a42 instanceof _0x3ac948['RootAttributeOperation'])return _0x4e3a42;if(void 0x0===_0x3f7141&&(_0x3f7141=0x0),_0x3f7141>_0x1b2897['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x1003fe=new _0x3ac948['RootAttributeOperation']();return null!=_0x4e3a42['root']&&(_0x1003fe['root']=String(_0x4e3a42['root'])),null!=_0x4e3a42['key']&&(_0x1003fe['key']=String(_0x4e3a42['key'])),null!=_0x4e3a42['oldValueBoolean']&&(_0x1003fe['oldValueBoolean']=Boolean(_0x4e3a42['oldValueBoolean'])),null!=_0x4e3a42['oldValueJson']&&(_0x1003fe['oldValueJson']=String(_0x4e3a42['oldValueJson'])),null!=_0x4e3a42['newValueBoolean']&&(_0x1003fe['newValueBoolean']=Boolean(_0x4e3a42['newValueBoolean'])),null!=_0x4e3a42['newValueJson']&&(_0x1003fe['newValueJson']=String(_0x4e3a42['newValueJson'])),null!=_0x4e3a42['wasUndone']&&(_0x1003fe['wasUndone']=Boolean(_0x4e3a42['wasUndone'])),null!=_0x4e3a42['_aiSource']&&(_0x1003fe['_aiSource']=String(_0x4e3a42['_aiSource'])),_0x1003fe;},_0x392535['toObject']=function(_0x59e8b6,_0x5cff1c){_0x5cff1c||(_0x5cff1c={});var _0x40c9b7={};return _0x5cff1c['defaults']&&(_0x40c9b7['root']='',_0x40c9b7['key']='',_0x40c9b7['oldValueBoolean']=!0x1,_0x40c9b7['oldValueJson']='',_0x40c9b7['newValueBoolean']=!0x1,_0x40c9b7['newValueJson']='',_0x40c9b7['wasUndone']=!0x1,_0x40c9b7['_aiSource']=''),null!=_0x59e8b6['root']&&_0x59e8b6['hasOwnProperty']('root')&&(_0x40c9b7['root']=_0x59e8b6['root']),null!=_0x59e8b6['key']&&_0x59e8b6['hasOwnProperty']('key')&&(_0x40c9b7['key']=_0x59e8b6['key']),null!=_0x59e8b6['oldValueBoolean']&&_0x59e8b6['hasOwnProperty']('oldValueBoolean')&&(_0x40c9b7['oldValueBoolean']=_0x59e8b6['oldValueBoolean']),null!=_0x59e8b6['oldValueJson']&&_0x59e8b6['hasOwnProperty']('oldValueJson')&&(_0x40c9b7['oldValueJson']=_0x59e8b6['oldValueJson']),null!=_0x59e8b6['newValueBoolean']&&_0x59e8b6['hasOwnProperty']('newValueBoolean')&&(_0x40c9b7['newValueBoolean']=_0x59e8b6['newValueBoolean']),null!=_0x59e8b6['newValueJson']&&_0x59e8b6['hasOwnProperty']('newValueJson')&&(_0x40c9b7['newValueJson']=_0x59e8b6['newValueJson']),null!=_0x59e8b6['wasUndone']&&_0x59e8b6['hasOwnProperty']('wasUndone')&&(_0x40c9b7['wasUndone']=_0x59e8b6['wasUndone']),null!=_0x59e8b6['_aiSource']&&_0x59e8b6['hasOwnProperty']('_aiSource')&&(_0x40c9b7['_aiSource']=_0x59e8b6['_aiSource']),_0x40c9b7;},_0x392535['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x392535['getTypeUrl']=function(_0x2765f0){return void 0x0===_0x2765f0&&(_0x2765f0='type.googleapis.com'),_0x2765f0+'/RootAttributeOperation';},_0x392535;}()),_0x3ac948['RootOperation']=(function(){function _0x22b70c(_0x5c93a7){if(_0x5c93a7){for(var _0x566c2e=Object['keys'](_0x5c93a7),_0xaabbf0=0x0;_0xaabbf0<_0x566c2e['length'];++_0xaabbf0)null!=_0x5c93a7[_0x566c2e[_0xaabbf0]]&&'__proto__'!==_0x566c2e[_0xaabbf0]&&(this[_0x566c2e[_0xaabbf0]]=_0x5c93a7[_0x566c2e[_0xaabbf0]]);}}return _0x22b70c['prototype']['rootName']='',_0x22b70c['prototype']['elementName']='',_0x22b70c['prototype']['isAdd']=!0x1,_0x22b70c['prototype']['wasUndone']=!0x1,_0x22b70c['prototype']['_aiSource']='',_0x22b70c['create']=function(_0x4f3b18){return new _0x22b70c(_0x4f3b18);},_0x22b70c['encode']=function(_0x355846,_0x3ae3b2){return _0x3ae3b2||(_0x3ae3b2=_0x5cde2b['create']()),null!=_0x355846['rootName']&&Object['hasOwnProperty']['call'](_0x355846,'rootName')&&_0x3ae3b2['uint32'](0xa)['string'](_0x355846['rootName']),null!=_0x355846['elementName']&&Object['hasOwnProperty']['call'](_0x355846,'elementName')&&_0x3ae3b2['uint32'](0x12)['string'](_0x355846['elementName']),null!=_0x355846['isAdd']&&Object['hasOwnProperty']['call'](_0x355846,'isAdd')&&_0x3ae3b2['uint32'](0x18)['bool'](_0x355846['isAdd']),null!=_0x355846['wasUndone']&&Object['hasOwnProperty']['call'](_0x355846,'wasUndone')&&_0x3ae3b2['uint32'](0x20)['bool'](_0x355846['wasUndone']),null!=_0x355846['_aiSource']&&Object['hasOwnProperty']['call'](_0x355846,'_aiSource')&&_0x3ae3b2['uint32'](0x2a)['string'](_0x355846['_aiSource']),_0x3ae3b2;},_0x22b70c['encodeDelimited']=function(_0x1ce8d8,_0x2f305d){return this['encode'](_0x1ce8d8,_0x2f305d)['ldelim']();},_0x22b70c['decode']=function(_0x509eb9,_0x24969e,_0x2ddf05,_0x42a5c7){if(_0x509eb9 instanceof _0x369241||(_0x509eb9=_0x369241['create'](_0x509eb9)),void 0x0===_0x42a5c7&&(_0x42a5c7=0x0),_0x42a5c7>_0x369241['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x1ef018=void 0x0===_0x24969e?_0x509eb9['len']:_0x509eb9['pos']+_0x24969e,_0x12df0c=new _0x3ac948['RootOperation']();_0x509eb9['pos']<_0x1ef018;){var _0x337d8a=_0x509eb9['uint32']();if(_0x337d8a===_0x2ddf05)break;switch(_0x337d8a>>>0x3){case 0x1:_0x12df0c['rootName']=_0x509eb9['string']();break;case 0x2:_0x12df0c['elementName']=_0x509eb9['string']();break;case 0x3:_0x12df0c['isAdd']=_0x509eb9['bool']();break;case 0x4:_0x12df0c['wasUndone']=_0x509eb9['bool']();break;case 0x5:_0x12df0c['_aiSource']=_0x509eb9['string']();break;default:_0x509eb9['skipType'](0x7&_0x337d8a,_0x42a5c7);}}return _0x12df0c;},_0x22b70c['decodeDelimited']=function(_0x1f26e8){return _0x1f26e8 instanceof _0x369241||(_0x1f26e8=new _0x369241(_0x1f26e8)),this['decode'](_0x1f26e8,_0x1f26e8['uint32']());},_0x22b70c['verify']=function(_0x1c5b68,_0x5196be){return'object'!=typeof _0x1c5b68||null===_0x1c5b68?'object\x20expected':(void 0x0===_0x5196be&&(_0x5196be=0x0),_0x5196be>_0x1b2897['recursionLimit']?'maximum\x20nesting\x20depth\x20exceeded':null!=_0x1c5b68['rootName']&&_0x1c5b68['hasOwnProperty']('rootName')&&!_0x1b2897['isString'](_0x1c5b68['rootName'])?'rootName:\x20string\x20expected':null!=_0x1c5b68['elementName']&&_0x1c5b68['hasOwnProperty']('elementName')&&!_0x1b2897['isString'](_0x1c5b68['elementName'])?'elementName:\x20string\x20expected':null!=_0x1c5b68['isAdd']&&_0x1c5b68['hasOwnProperty']('isAdd')&&'boolean'!=typeof _0x1c5b68['isAdd']?'isAdd:\x20boolean\x20expected':null!=_0x1c5b68['wasUndone']&&_0x1c5b68['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x1c5b68['wasUndone']?'wasUndone:\x20boolean\x20expected':null!=_0x1c5b68['_aiSource']&&_0x1c5b68['hasOwnProperty']('_aiSource')&&!_0x1b2897['isString'](_0x1c5b68['_aiSource'])?'_aiSource:\x20string\x20expected':null);},_0x22b70c['fromObject']=function(_0x2f0265,_0x32e336){if(_0x2f0265 instanceof _0x3ac948['RootOperation'])return _0x2f0265;if(void 0x0===_0x32e336&&(_0x32e336=0x0),_0x32e336>_0x1b2897['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x33a6d5=new _0x3ac948['RootOperation']();return null!=_0x2f0265['rootName']&&(_0x33a6d5['rootName']=String(_0x2f0265['rootName'])),null!=_0x2f0265['elementName']&&(_0x33a6d5['elementName']=String(_0x2f0265['elementName'])),null!=_0x2f0265['isAdd']&&(_0x33a6d5['isAdd']=Boolean(_0x2f0265['isAdd'])),null!=_0x2f0265['wasUndone']&&(_0x33a6d5['wasUndone']=Boolean(_0x2f0265['wasUndone'])),null!=_0x2f0265['_aiSource']&&(_0x33a6d5['_aiSource']=String(_0x2f0265['_aiSource'])),_0x33a6d5;},_0x22b70c['toObject']=function(_0x273ff2,_0x5cbb6e){_0x5cbb6e||(_0x5cbb6e={});var _0x2a0ce6={};return _0x5cbb6e['defaults']&&(_0x2a0ce6['rootName']='',_0x2a0ce6['elementName']='',_0x2a0ce6['isAdd']=!0x1,_0x2a0ce6['wasUndone']=!0x1,_0x2a0ce6['_aiSource']=''),null!=_0x273ff2['rootName']&&_0x273ff2['hasOwnProperty']('rootName')&&(_0x2a0ce6['rootName']=_0x273ff2['rootName']),null!=_0x273ff2['elementName']&&_0x273ff2['hasOwnProperty']('elementName')&&(_0x2a0ce6['elementName']=_0x273ff2['elementName']),null!=_0x273ff2['isAdd']&&_0x273ff2['hasOwnProperty']('isAdd')&&(_0x2a0ce6['isAdd']=_0x273ff2['isAdd']),null!=_0x273ff2['wasUndone']&&_0x273ff2['hasOwnProperty']('wasUndone')&&(_0x2a0ce6['wasUndone']=_0x273ff2['wasUndone']),null!=_0x273ff2['_aiSource']&&_0x273ff2['hasOwnProperty']('_aiSource')&&(_0x2a0ce6['_aiSource']=_0x273ff2['_aiSource']),_0x2a0ce6;},_0x22b70c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x22b70c['getTypeUrl']=function(_0x1656f8){return void 0x0===_0x1656f8&&(_0x1656f8='type.googleapis.com'),_0x1656f8+'/RootOperation';},_0x22b70c;}()),_0x3ac948['SplitOperation']=(function(){function _0x1d2a95(_0x593e61){if(_0x593e61){for(var _0x3cc18b=Object['keys'](_0x593e61),_0x320b51=0x0;_0x320b51<_0x3cc18b['length'];++_0x320b51)null!=_0x593e61[_0x3cc18b[_0x320b51]]&&'__proto__'!==_0x3cc18b[_0x320b51]&&(this[_0x3cc18b[_0x320b51]]=_0x593e61[_0x3cc18b[_0x320b51]]);}}return _0x1d2a95['prototype']['splitPosition']=null,_0x1d2a95['prototype']['graveyardPosition']=null,_0x1d2a95['prototype']['howMany']=0x0,_0x1d2a95['prototype']['insertionPosition']=null,_0x1d2a95['prototype']['wasUndone']=!0x1,_0x1d2a95['prototype']['_aiSource']='',_0x1d2a95['create']=function(_0x8dec25){return new _0x1d2a95(_0x8dec25);},_0x1d2a95['encode']=function(_0x212f56,_0x2c55e6){return _0x2c55e6||(_0x2c55e6=_0x5cde2b['create']()),null!=_0x212f56['splitPosition']&&Object['hasOwnProperty']['call'](_0x212f56,'splitPosition')&&_0x3ac948['Position']['encode'](_0x212f56['splitPosition'],_0x2c55e6['uint32'](0xa)['fork']())['ldelim'](),null!=_0x212f56['graveyardPosition']&&Object['hasOwnProperty']['call'](_0x212f56,'graveyardPosition')&&_0x3ac948['Position']['encode'](_0x212f56['graveyardPosition'],_0x2c55e6['uint32'](0x12)['fork']())['ldelim'](),null!=_0x212f56['howMany']&&Object['hasOwnProperty']['call'](_0x212f56,'howMany')&&_0x2c55e6['uint32'](0x18)['uint32'](_0x212f56['howMany']),null!=_0x212f56['insertionPosition']&&Object['hasOwnProperty']['call'](_0x212f56,'insertionPosition')&&_0x3ac948['Position']['encode'](_0x212f56['insertionPosition'],_0x2c55e6['uint32'](0x22)['fork']())['ldelim'](),null!=_0x212f56['wasUndone']&&Object['hasOwnProperty']['call'](_0x212f56,'wasUndone')&&_0x2c55e6['uint32'](0x28)['bool'](_0x212f56['wasUndone']),null!=_0x212f56['_aiSource']&&Object['hasOwnProperty']['call'](_0x212f56,'_aiSource')&&_0x2c55e6['uint32'](0x32)['string'](_0x212f56['_aiSource']),_0x2c55e6;},_0x1d2a95['encodeDelimited']=function(_0xb08321,_0x51479c){return this['encode'](_0xb08321,_0x51479c)['ldelim']();},_0x1d2a95['decode']=function(_0x47e9c0,_0x46ced0,_0x4ce4aa,_0x2dc0f4){if(_0x47e9c0 instanceof _0x369241||(_0x47e9c0=_0x369241['create'](_0x47e9c0)),void 0x0===_0x2dc0f4&&(_0x2dc0f4=0x0),_0x2dc0f4>_0x369241['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x409bef=void 0x0===_0x46ced0?_0x47e9c0['len']:_0x47e9c0['pos']+_0x46ced0,_0x2e8a1d=new _0x3ac948['SplitOperation']();_0x47e9c0['pos']<_0x409bef;){var _0x3246a9=_0x47e9c0['uint32']();if(_0x3246a9===_0x4ce4aa)break;switch(_0x3246a9>>>0x3){case 0x1:_0x2e8a1d['splitPosition']=_0x3ac948['Position']['decode'](_0x47e9c0,_0x47e9c0['uint32'](),void 0x0,_0x2dc0f4+0x1);break;case 0x2:_0x2e8a1d['graveyardPosition']=_0x3ac948['Position']['decode'](_0x47e9c0,_0x47e9c0['uint32'](),void 0x0,_0x2dc0f4+0x1);break;case 0x3:_0x2e8a1d['howMany']=_0x47e9c0['uint32']();break;case 0x4:_0x2e8a1d['insertionPosition']=_0x3ac948['Position']['decode'](_0x47e9c0,_0x47e9c0['uint32'](),void 0x0,_0x2dc0f4+0x1);break;case 0x5:_0x2e8a1d['wasUndone']=_0x47e9c0['bool']();break;case 0x6:_0x2e8a1d['_aiSource']=_0x47e9c0['string']();break;default:_0x47e9c0['skipType'](0x7&_0x3246a9,_0x2dc0f4);}}return _0x2e8a1d;},_0x1d2a95['decodeDelimited']=function(_0x2de23c){return _0x2de23c instanceof _0x369241||(_0x2de23c=new _0x369241(_0x2de23c)),this['decode'](_0x2de23c,_0x2de23c['uint32']());},_0x1d2a95['verify']=function(_0xc7dfcb,_0x239ba5){if('object'!=typeof _0xc7dfcb||null===_0xc7dfcb)return'object\x20expected';if(void 0x0===_0x239ba5&&(_0x239ba5=0x0),_0x239ba5>_0x1b2897['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';var _0x1dc88d;if(null!=_0xc7dfcb['splitPosition']&&_0xc7dfcb['hasOwnProperty']('splitPosition')&&(_0x1dc88d=_0x3ac948['Position']['verify'](_0xc7dfcb['splitPosition'],_0x239ba5+0x1)))return'splitPosition.'+_0x1dc88d;if(null!=_0xc7dfcb['graveyardPosition']&&_0xc7dfcb['hasOwnProperty']('graveyardPosition')&&(_0x1dc88d=_0x3ac948['Position']['verify'](_0xc7dfcb['graveyardPosition'],_0x239ba5+0x1)))return'graveyardPosition.'+_0x1dc88d;if(null!=_0xc7dfcb['howMany']&&_0xc7dfcb['hasOwnProperty']('howMany')&&!_0x1b2897['isInteger'](_0xc7dfcb['howMany']))return'howMany:\x20integer\x20expected';if(null!=_0xc7dfcb['insertionPosition']&&_0xc7dfcb['hasOwnProperty']('insertionPosition')&&(_0x1dc88d=_0x3ac948['Position']['verify'](_0xc7dfcb['insertionPosition'],_0x239ba5+0x1)))return'insertionPosition.'+_0x1dc88d;return null!=_0xc7dfcb['wasUndone']&&_0xc7dfcb['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0xc7dfcb['wasUndone']?'wasUndone:\x20boolean\x20expected':null!=_0xc7dfcb['_aiSource']&&_0xc7dfcb['hasOwnProperty']('_aiSource')&&!_0x1b2897['isString'](_0xc7dfcb['_aiSource'])?'_aiSource:\x20string\x20expected':null;},_0x1d2a95['fromObject']=function(_0x1e4904,_0x54fc70){if(_0x1e4904 instanceof _0x3ac948['SplitOperation'])return _0x1e4904;if(void 0x0===_0x54fc70&&(_0x54fc70=0x0),_0x54fc70>_0x1b2897['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x2111c1=new _0x3ac948['SplitOperation']();if(null!=_0x1e4904['splitPosition']){if('object'!=typeof _0x1e4904['splitPosition'])throw TypeError('.SplitOperation.splitPosition:\x20object\x20expected');_0x2111c1['splitPosition']=_0x3ac948['Position']['fromObject'](_0x1e4904['splitPosition'],_0x54fc70+0x1);}if(null!=_0x1e4904['graveyardPosition']){if('object'!=typeof _0x1e4904['graveyardPosition'])throw TypeError('.SplitOperation.graveyardPosition:\x20object\x20expected');_0x2111c1['graveyardPosition']=_0x3ac948['Position']['fromObject'](_0x1e4904['graveyardPosition'],_0x54fc70+0x1);}if(null!=_0x1e4904['howMany']&&(_0x2111c1['howMany']=_0x1e4904['howMany']>>>0x0),null!=_0x1e4904['insertionPosition']){if('object'!=typeof _0x1e4904['insertionPosition'])throw TypeError('.SplitOperation.insertionPosition:\x20object\x20expected');_0x2111c1['insertionPosition']=_0x3ac948['Position']['fromObject'](_0x1e4904['insertionPosition'],_0x54fc70+0x1);}return null!=_0x1e4904['wasUndone']&&(_0x2111c1['wasUndone']=Boolean(_0x1e4904['wasUndone'])),null!=_0x1e4904['_aiSource']&&(_0x2111c1['_aiSource']=String(_0x1e4904['_aiSource'])),_0x2111c1;},_0x1d2a95['toObject']=function(_0x12e02,_0x85ea43){_0x85ea43||(_0x85ea43={});var _0x89aa15={};return _0x85ea43['defaults']&&(_0x89aa15['splitPosition']=null,_0x89aa15['graveyardPosition']=null,_0x89aa15['howMany']=0x0,_0x89aa15['insertionPosition']=null,_0x89aa15['wasUndone']=!0x1,_0x89aa15['_aiSource']=''),null!=_0x12e02['splitPosition']&&_0x12e02['hasOwnProperty']('splitPosition')&&(_0x89aa15['splitPosition']=_0x3ac948['Position']['toObject'](_0x12e02['splitPosition'],_0x85ea43)),null!=_0x12e02['graveyardPosition']&&_0x12e02['hasOwnProperty']('graveyardPosition')&&(_0x89aa15['graveyardPosition']=_0x3ac948['Position']['toObject'](_0x12e02['graveyardPosition'],_0x85ea43)),null!=_0x12e02['howMany']&&_0x12e02['hasOwnProperty']('howMany')&&(_0x89aa15['howMany']=_0x12e02['howMany']),null!=_0x12e02['insertionPosition']&&_0x12e02['hasOwnProperty']('insertionPosition')&&(_0x89aa15['insertionPosition']=_0x3ac948['Position']['toObject'](_0x12e02['insertionPosition'],_0x85ea43)),null!=_0x12e02['wasUndone']&&_0x12e02['hasOwnProperty']('wasUndone')&&(_0x89aa15['wasUndone']=_0x12e02['wasUndone']),null!=_0x12e02['_aiSource']&&_0x12e02['hasOwnProperty']('_aiSource')&&(_0x89aa15['_aiSource']=_0x12e02['_aiSource']),_0x89aa15;},_0x1d2a95['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x1d2a95['getTypeUrl']=function(_0x3ac196){return void 0x0===_0x3ac196&&(_0x3ac196='type.googleapis.com'),_0x3ac196+'/SplitOperation';},_0x1d2a95;}()),_0x3ac948['Position']=(function(){function _0x3715d9(_0x13e872){if(this['path']=[],_0x13e872){for(var _0x1468d6=Object['keys'](_0x13e872),_0x2a5c57=0x0;_0x2a5c57<_0x1468d6['length'];++_0x2a5c57)null!=_0x13e872[_0x1468d6[_0x2a5c57]]&&'__proto__'!==_0x1468d6[_0x2a5c57]&&(this[_0x1468d6[_0x2a5c57]]=_0x13e872[_0x1468d6[_0x2a5c57]]);}}return _0x3715d9['prototype']['root']='',_0x3715d9['prototype']['rootMain']=!0x1,_0x3715d9['prototype']['rootGraveyard']=!0x1,_0x3715d9['prototype']['path']=_0x1b2897['emptyArray'],_0x3715d9['prototype']['stickiness']='',_0x3715d9['create']=function(_0x4051e5){return new _0x3715d9(_0x4051e5);},_0x3715d9['encode']=function(_0x44b574,_0x245950){if(_0x245950||(_0x245950=_0x5cde2b['create']()),null!=_0x44b574['root']&&Object['hasOwnProperty']['call'](_0x44b574,'root')&&_0x245950['uint32'](0xa)['string'](_0x44b574['root']),null!=_0x44b574['rootMain']&&Object['hasOwnProperty']['call'](_0x44b574,'rootMain')&&_0x245950['uint32'](0x10)['bool'](_0x44b574['rootMain']),null!=_0x44b574['rootGraveyard']&&Object['hasOwnProperty']['call'](_0x44b574,'rootGraveyard')&&_0x245950['uint32'](0x18)['bool'](_0x44b574['rootGraveyard']),null!=_0x44b574['path']&&_0x44b574['path']['length']){_0x245950['uint32'](0x22)['fork']();for(var _0x3b98a9=0x0;_0x3b98a9<_0x44b574['path']['length'];++_0x3b98a9)_0x245950['uint32'](_0x44b574['path'][_0x3b98a9]);_0x245950['ldelim']();}return null!=_0x44b574['stickiness']&&Object['hasOwnProperty']['call'](_0x44b574,'stickiness')&&_0x245950['uint32'](0x2a)['string'](_0x44b574['stickiness']),_0x245950;},_0x3715d9['encodeDelimited']=function(_0x5e8eaa,_0x1358d0){return this['encode'](_0x5e8eaa,_0x1358d0)['ldelim']();},_0x3715d9['decode']=function(_0x49ec03,_0x5c3457,_0x4fdc59,_0x5e0864){if(_0x49ec03 instanceof _0x369241||(_0x49ec03=_0x369241['create'](_0x49ec03)),void 0x0===_0x5e0864&&(_0x5e0864=0x0),_0x5e0864>_0x369241['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x238ed3=void 0x0===_0x5c3457?_0x49ec03['len']:_0x49ec03['pos']+_0x5c3457,_0x2d5fb6=new _0x3ac948['Position']();_0x49ec03['pos']<_0x238ed3;){var _0x441ce5=_0x49ec03['uint32']();if(_0x441ce5===_0x4fdc59)break;switch(_0x441ce5>>>0x3){case 0x1:_0x2d5fb6['root']=_0x49ec03['string']();break;case 0x2:_0x2d5fb6['rootMain']=_0x49ec03['bool']();break;case 0x3:_0x2d5fb6['rootGraveyard']=_0x49ec03['bool']();break;case 0x4:if(_0x2d5fb6['path']&&_0x2d5fb6['path']['length']||(_0x2d5fb6['path']=[]),0x2==(0x7&_0x441ce5)){for(var _0x5ec11f=_0x49ec03['uint32']()+_0x49ec03['pos'];_0x49ec03['pos']<_0x5ec11f;)_0x2d5fb6['path']['push'](_0x49ec03['uint32']());}else _0x2d5fb6['path']['push'](_0x49ec03['uint32']());break;case 0x5:_0x2d5fb6['stickiness']=_0x49ec03['string']();break;default:_0x49ec03['skipType'](0x7&_0x441ce5,_0x5e0864);}}return _0x2d5fb6;},_0x3715d9['decodeDelimited']=function(_0x5a63c9){return _0x5a63c9 instanceof _0x369241||(_0x5a63c9=new _0x369241(_0x5a63c9)),this['decode'](_0x5a63c9,_0x5a63c9['uint32']());},_0x3715d9['verify']=function(_0x3b10c6,_0x3b4262){if('object'!=typeof _0x3b10c6||null===_0x3b10c6)return'object\x20expected';if(void 0x0===_0x3b4262&&(_0x3b4262=0x0),_0x3b4262>_0x1b2897['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x3b10c6['root']&&_0x3b10c6['hasOwnProperty']('root')&&!_0x1b2897['isString'](_0x3b10c6['root']))return'root:\x20string\x20expected';if(null!=_0x3b10c6['rootMain']&&_0x3b10c6['hasOwnProperty']('rootMain')&&'boolean'!=typeof _0x3b10c6['rootMain'])return'rootMain:\x20boolean\x20expected';if(null!=_0x3b10c6['rootGraveyard']&&_0x3b10c6['hasOwnProperty']('rootGraveyard')&&'boolean'!=typeof _0x3b10c6['rootGraveyard'])return'rootGraveyard:\x20boolean\x20expected';if(null!=_0x3b10c6['path']&&_0x3b10c6['hasOwnProperty']('path')){if(!Array['isArray'](_0x3b10c6['path']))return'path:\x20array\x20expected';for(var _0x3e4cb6=0x0;_0x3e4cb6<_0x3b10c6['path']['length'];++_0x3e4cb6)if(!_0x1b2897['isInteger'](_0x3b10c6['path'][_0x3e4cb6]))return'path:\x20integer[]\x20expected';}return null!=_0x3b10c6['stickiness']&&_0x3b10c6['hasOwnProperty']('stickiness')&&!_0x1b2897['isString'](_0x3b10c6['stickiness'])?'stickiness:\x20string\x20expected':null;},_0x3715d9['fromObject']=function(_0x4d03f5,_0x275754){if(_0x4d03f5 instanceof _0x3ac948['Position'])return _0x4d03f5;if(void 0x0===_0x275754&&(_0x275754=0x0),_0x275754>_0x1b2897['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x1e2ece=new _0x3ac948['Position']();if(null!=_0x4d03f5['root']&&(_0x1e2ece['root']=String(_0x4d03f5['root'])),null!=_0x4d03f5['rootMain']&&(_0x1e2ece['rootMain']=Boolean(_0x4d03f5['rootMain'])),null!=_0x4d03f5['rootGraveyard']&&(_0x1e2ece['rootGraveyard']=Boolean(_0x4d03f5['rootGraveyard'])),_0x4d03f5['path']){if(!Array['isArray'](_0x4d03f5['path']))throw TypeError('.Position.path:\x20array\x20expected');_0x1e2ece['path']=[];for(var _0x1a7760=0x0;_0x1a7760<_0x4d03f5['path']['length'];++_0x1a7760)_0x1e2ece['path'][_0x1a7760]=_0x4d03f5['path'][_0x1a7760]>>>0x0;}return null!=_0x4d03f5['stickiness']&&(_0x1e2ece['stickiness']=String(_0x4d03f5['stickiness'])),_0x1e2ece;},_0x3715d9['toObject']=function(_0x1c8ee2,_0xa6a299){_0xa6a299||(_0xa6a299={});var _0x154c0a={};if((_0xa6a299['arrays']||_0xa6a299['defaults'])&&(_0x154c0a['path']=[]),_0xa6a299['defaults']&&(_0x154c0a['root']='',_0x154c0a['rootMain']=!0x1,_0x154c0a['rootGraveyard']=!0x1,_0x154c0a['stickiness']=''),null!=_0x1c8ee2['root']&&_0x1c8ee2['hasOwnProperty']('root')&&(_0x154c0a['root']=_0x1c8ee2['root']),null!=_0x1c8ee2['rootMain']&&_0x1c8ee2['hasOwnProperty']('rootMain')&&(_0x154c0a['rootMain']=_0x1c8ee2['rootMain']),null!=_0x1c8ee2['rootGraveyard']&&_0x1c8ee2['hasOwnProperty']('rootGraveyard')&&(_0x154c0a['rootGraveyard']=_0x1c8ee2['rootGraveyard']),_0x1c8ee2['path']&&_0x1c8ee2['path']['length']){_0x154c0a['path']=[];for(var _0x4a385d=0x0;_0x4a385d<_0x1c8ee2['path']['length'];++_0x4a385d)_0x154c0a['path'][_0x4a385d]=_0x1c8ee2['path'][_0x4a385d];}return null!=_0x1c8ee2['stickiness']&&_0x1c8ee2['hasOwnProperty']('stickiness')&&(_0x154c0a['stickiness']=_0x1c8ee2['stickiness']),_0x154c0a;},_0x3715d9['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x3715d9['getTypeUrl']=function(_0x382384){return void 0x0===_0x382384&&(_0x382384='type.googleapis.com'),_0x382384+'/Position';},_0x3715d9;}()),_0x3ac948['Range']=(function(){function _0xcf7555(_0xf5c689){if(_0xf5c689){for(var _0x31b2ce=Object['keys'](_0xf5c689),_0x4651ab=0x0;_0x4651ab<_0x31b2ce['length'];++_0x4651ab)null!=_0xf5c689[_0x31b2ce[_0x4651ab]]&&'__proto__'!==_0x31b2ce[_0x4651ab]&&(this[_0x31b2ce[_0x4651ab]]=_0xf5c689[_0x31b2ce[_0x4651ab]]);}}return _0xcf7555['prototype']['start']=null,_0xcf7555['prototype']['end']=null,_0xcf7555['create']=function(_0x119f3f){return new _0xcf7555(_0x119f3f);},_0xcf7555['encode']=function(_0x5677fa,_0x11cd6a){return _0x11cd6a||(_0x11cd6a=_0x5cde2b['create']()),null!=_0x5677fa['start']&&Object['hasOwnProperty']['call'](_0x5677fa,'start')&&_0x3ac948['Position']['encode'](_0x5677fa['start'],_0x11cd6a['uint32'](0xa)['fork']())['ldelim'](),null!=_0x5677fa['end']&&Object['hasOwnProperty']['call'](_0x5677fa,'end')&&_0x3ac948['Position']['encode'](_0x5677fa['end'],_0x11cd6a['uint32'](0x12)['fork']())['ldelim'](),_0x11cd6a;},_0xcf7555['encodeDelimited']=function(_0x415626,_0x13c46f){return this['encode'](_0x415626,_0x13c46f)['ldelim']();},_0xcf7555['decode']=function(_0x28311e,_0x45ea61,_0x33906b,_0x19090c){if(_0x28311e instanceof _0x369241||(_0x28311e=_0x369241['create'](_0x28311e)),void 0x0===_0x19090c&&(_0x19090c=0x0),_0x19090c>_0x369241['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x26315a=void 0x0===_0x45ea61?_0x28311e['len']:_0x28311e['pos']+_0x45ea61,_0x2f4502=new _0x3ac948['Range']();_0x28311e['pos']<_0x26315a;){var _0x531c60=_0x28311e['uint32']();if(_0x531c60===_0x33906b)break;switch(_0x531c60>>>0x3){case 0x1:_0x2f4502['start']=_0x3ac948['Position']['decode'](_0x28311e,_0x28311e['uint32'](),void 0x0,_0x19090c+0x1);break;case 0x2:_0x2f4502['end']=_0x3ac948['Position']['decode'](_0x28311e,_0x28311e['uint32'](),void 0x0,_0x19090c+0x1);break;default:_0x28311e['skipType'](0x7&_0x531c60,_0x19090c);}}return _0x2f4502;},_0xcf7555['decodeDelimited']=function(_0x1c8ca4){return _0x1c8ca4 instanceof _0x369241||(_0x1c8ca4=new _0x369241(_0x1c8ca4)),this['decode'](_0x1c8ca4,_0x1c8ca4['uint32']());},_0xcf7555['verify']=function(_0x277035,_0x46a9fa){if('object'!=typeof _0x277035||null===_0x277035)return'object\x20expected';if(void 0x0===_0x46a9fa&&(_0x46a9fa=0x0),_0x46a9fa>_0x1b2897['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';var _0x55ffc5;if(null!=_0x277035['start']&&_0x277035['hasOwnProperty']('start')&&(_0x55ffc5=_0x3ac948['Position']['verify'](_0x277035['start'],_0x46a9fa+0x1)))return'start.'+_0x55ffc5;if(null!=_0x277035['end']&&_0x277035['hasOwnProperty']('end')&&(_0x55ffc5=_0x3ac948['Position']['verify'](_0x277035['end'],_0x46a9fa+0x1)))return'end.'+_0x55ffc5;return null;},_0xcf7555['fromObject']=function(_0x36643e,_0x27bfe0){if(_0x36643e instanceof _0x3ac948['Range'])return _0x36643e;if(void 0x0===_0x27bfe0&&(_0x27bfe0=0x0),_0x27bfe0>_0x1b2897['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x21d5de=new _0x3ac948['Range']();if(null!=_0x36643e['start']){if('object'!=typeof _0x36643e['start'])throw TypeError('.Range.start:\x20object\x20expected');_0x21d5de['start']=_0x3ac948['Position']['fromObject'](_0x36643e['start'],_0x27bfe0+0x1);}if(null!=_0x36643e['end']){if('object'!=typeof _0x36643e['end'])throw TypeError('.Range.end:\x20object\x20expected');_0x21d5de['end']=_0x3ac948['Position']['fromObject'](_0x36643e['end'],_0x27bfe0+0x1);}return _0x21d5de;},_0xcf7555['toObject']=function(_0x214e87,_0x520d57){_0x520d57||(_0x520d57={});var _0x4ac7de={};return _0x520d57['defaults']&&(_0x4ac7de['start']=null,_0x4ac7de['end']=null),null!=_0x214e87['start']&&_0x214e87['hasOwnProperty']('start')&&(_0x4ac7de['start']=_0x3ac948['Position']['toObject'](_0x214e87['start'],_0x520d57)),null!=_0x214e87['end']&&_0x214e87['hasOwnProperty']('end')&&(_0x4ac7de['end']=_0x3ac948['Position']['toObject'](_0x214e87['end'],_0x520d57)),_0x4ac7de;},_0xcf7555['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0xcf7555['getTypeUrl']=function(_0x36fd43){return void 0x0===_0x36fd43&&(_0x36fd43='type.googleapis.com'),_0x36fd43+'/Range';},_0xcf7555;}()),_0x3ac948['Element']=(function(){function _0x135599(_0x352ab9){if(this['children']=[],this['attributesBoolean']={},_0x352ab9){for(var _0x360970=Object['keys'](_0x352ab9),_0x3f3efe=0x0;_0x3f3efe<_0x360970['length'];++_0x3f3efe)null!=_0x352ab9[_0x360970[_0x3f3efe]]&&'__proto__'!==_0x360970[_0x3f3efe]&&(this[_0x360970[_0x3f3efe]]=_0x352ab9[_0x360970[_0x3f3efe]]);}}return _0x135599['prototype']['name']='',_0x135599['prototype']['children']=_0x1b2897['emptyArray'],_0x135599['prototype']['data']='',_0x135599['prototype']['attributesBoolean']=_0x1b2897['emptyObject'],_0x135599['prototype']['attributesJson']='',_0x135599['create']=function(_0x1e7bd6){return new _0x135599(_0x1e7bd6);},_0x135599['encode']=function(_0x300d60,_0x432234){if(_0x432234||(_0x432234=_0x5cde2b['create']()),null!=_0x300d60['name']&&Object['hasOwnProperty']['call'](_0x300d60,'name')&&_0x432234['uint32'](0xa)['string'](_0x300d60['name']),null!=_0x300d60['children']&&_0x300d60['children']['length']){for(var _0x3f7cc3=0x0;_0x3f7cc3<_0x300d60['children']['length'];++_0x3f7cc3)_0x3ac948['Element']['encode'](_0x300d60['children'][_0x3f7cc3],_0x432234['uint32'](0x12)['fork']())['ldelim']();}if(null!=_0x300d60['data']&&Object['hasOwnProperty']['call'](_0x300d60,'data')&&_0x432234['uint32'](0x1a)['string'](_0x300d60['data']),null!=_0x300d60['attributesBoolean']&&Object['hasOwnProperty']['call'](_0x300d60,'attributesBoolean')){var _0x256dc1=Object['keys'](_0x300d60['attributesBoolean']);for(_0x3f7cc3=0x0;_0x3f7cc3<_0x256dc1['length'];++_0x3f7cc3)_0x432234['uint32'](0x22)['fork']()['uint32'](0xa)['string'](_0x256dc1[_0x3f7cc3])['uint32'](0x10)['bool'](_0x300d60['attributesBoolean'][_0x256dc1[_0x3f7cc3]])['ldelim']();}return null!=_0x300d60['attributesJson']&&Object['hasOwnProperty']['call'](_0x300d60,'attributesJson')&&_0x432234['uint32'](0x2a)['string'](_0x300d60['attributesJson']),_0x432234;},_0x135599['encodeDelimited']=function(_0x58148b,_0x2ae004){return this['encode'](_0x58148b,_0x2ae004)['ldelim']();},_0x135599['decode']=function(_0x1c1542,_0x4bc405,_0x557c02,_0x3a3081){if(_0x1c1542 instanceof _0x369241||(_0x1c1542=_0x369241['create'](_0x1c1542)),void 0x0===_0x3a3081&&(_0x3a3081=0x0),_0x3a3081>_0x369241['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');for(var _0x46938a,_0xa62021,_0x194063=void 0x0===_0x4bc405?_0x1c1542['len']:_0x1c1542['pos']+_0x4bc405,_0x1743f4=new _0x3ac948['Element']();_0x1c1542['pos']<_0x194063;){var _0x4dd55c=_0x1c1542['uint32']();if(_0x4dd55c===_0x557c02)break;switch(_0x4dd55c>>>0x3){case 0x1:_0x1743f4['name']=_0x1c1542['string']();break;case 0x2:_0x1743f4['children']&&_0x1743f4['children']['length']||(_0x1743f4['children']=[]),_0x1743f4['children']['push'](_0x3ac948['Element']['decode'](_0x1c1542,_0x1c1542['uint32'](),void 0x0,_0x3a3081+0x1));break;case 0x3:_0x1743f4['data']=_0x1c1542['string']();break;case 0x4:_0x1743f4['attributesBoolean']===_0x1b2897['emptyObject']&&(_0x1743f4['attributesBoolean']={});var _0x5828fe=_0x1c1542['uint32']()+_0x1c1542['pos'];for(_0x46938a='',_0xa62021=!0x1;_0x1c1542['pos']<_0x5828fe;){var _0x544311=_0x1c1542['uint32']();switch(_0x544311>>>0x3){case 0x1:_0x46938a=_0x1c1542['string']();break;case 0x2:_0xa62021=_0x1c1542['bool']();break;default:_0x1c1542['skipType'](0x7&_0x544311,_0x3a3081);}}'__proto__'===_0x46938a&&_0x1b2897['makeProp'](_0x1743f4['attributesBoolean'],_0x46938a),_0x1743f4['attributesBoolean'][_0x46938a]=_0xa62021;break;case 0x5:_0x1743f4['attributesJson']=_0x1c1542['string']();break;default:_0x1c1542['skipType'](0x7&_0x4dd55c,_0x3a3081);}}return _0x1743f4;},_0x135599['decodeDelimited']=function(_0x27cefc){return _0x27cefc instanceof _0x369241||(_0x27cefc=new _0x369241(_0x27cefc)),this['decode'](_0x27cefc,_0x27cefc['uint32']());},_0x135599['verify']=function(_0x1e9e73,_0x284769){if('object'!=typeof _0x1e9e73||null===_0x1e9e73)return'object\x20expected';if(void 0x0===_0x284769&&(_0x284769=0x0),_0x284769>_0x1b2897['recursionLimit'])return'maximum\x20nesting\x20depth\x20exceeded';if(null!=_0x1e9e73['name']&&_0x1e9e73['hasOwnProperty']('name')&&!_0x1b2897['isString'](_0x1e9e73['name']))return'name:\x20string\x20expected';if(null!=_0x1e9e73['children']&&_0x1e9e73['hasOwnProperty']('children')){if(!Array['isArray'](_0x1e9e73['children']))return'children:\x20array\x20expected';for(var _0x29df14=0x0;_0x29df14<_0x1e9e73['children']['length'];++_0x29df14){var _0x5431c4=_0x3ac948['Element']['verify'](_0x1e9e73['children'][_0x29df14],_0x284769+0x1);if(_0x5431c4)return'children.'+_0x5431c4;}}if(null!=_0x1e9e73['data']&&_0x1e9e73['hasOwnProperty']('data')&&!_0x1b2897['isString'](_0x1e9e73['data']))return'data:\x20string\x20expected';if(null!=_0x1e9e73['attributesBoolean']&&_0x1e9e73['hasOwnProperty']('attributesBoolean')){if(!_0x1b2897['isObject'](_0x1e9e73['attributesBoolean']))return'attributesBoolean:\x20object\x20expected';var _0x50616d=Object['keys'](_0x1e9e73['attributesBoolean']);for(_0x29df14=0x0;_0x29df14<_0x50616d['length'];++_0x29df14)if('boolean'!=typeof _0x1e9e73['attributesBoolean'][_0x50616d[_0x29df14]])return'attributesBoolean:\x20boolean{k:string}\x20expected';}return null!=_0x1e9e73['attributesJson']&&_0x1e9e73['hasOwnProperty']('attributesJson')&&!_0x1b2897['isString'](_0x1e9e73['attributesJson'])?'attributesJson:\x20string\x20expected':null;},_0x135599['fromObject']=function(_0x3dee9a,_0x24b91f){if(_0x3dee9a instanceof _0x3ac948['Element'])return _0x3dee9a;if(void 0x0===_0x24b91f&&(_0x24b91f=0x0),_0x24b91f>_0x1b2897['recursionLimit'])throw Error('maximum\x20nesting\x20depth\x20exceeded');var _0x3d4334=new _0x3ac948['Element']();if(null!=_0x3dee9a['name']&&(_0x3d4334['name']=String(_0x3dee9a['name'])),_0x3dee9a['children']){if(!Array['isArray'](_0x3dee9a['children']))throw TypeError('.Element.children:\x20array\x20expected');_0x3d4334['children']=[];for(var _0x75f86f=0x0;_0x75f86f<_0x3dee9a['children']['length'];++_0x75f86f){if('object'!=typeof _0x3dee9a['children'][_0x75f86f])throw TypeError('.Element.children:\x20object\x20expected');_0x3d4334['children'][_0x75f86f]=_0x3ac948['Element']['fromObject'](_0x3dee9a['children'][_0x75f86f],_0x24b91f+0x1);}}if(null!=_0x3dee9a['data']&&(_0x3d4334['data']=String(_0x3dee9a['data'])),_0x3dee9a['attributesBoolean']){if('object'!=typeof _0x3dee9a['attributesBoolean'])throw TypeError('.Element.attributesBoolean:\x20object\x20expected');_0x3d4334['attributesBoolean']={};var _0x101281=Object['keys'](_0x3dee9a['attributesBoolean']);for(_0x75f86f=0x0;_0x75f86f<_0x101281['length'];++_0x75f86f)'__proto__'===_0x101281[_0x75f86f]&&_0x1b2897['makeProp'](_0x3d4334['attributesBoolean'],_0x101281[_0x75f86f]),_0x3d4334['attributesBoolean'][_0x101281[_0x75f86f]]=Boolean(_0x3dee9a['attributesBoolean'][_0x101281[_0x75f86f]]);}return null!=_0x3dee9a['attributesJson']&&(_0x3d4334['attributesJson']=String(_0x3dee9a['attributesJson'])),_0x3d4334;},_0x135599['toObject']=function(_0x4c4899,_0x389dfa){_0x389dfa||(_0x389dfa={});var _0xcdf8f8,_0x358c33={};if((_0x389dfa['arrays']||_0x389dfa['defaults'])&&(_0x358c33['children']=[]),(_0x389dfa['objects']||_0x389dfa['defaults'])&&(_0x358c33['attributesBoolean']={}),_0x389dfa['defaults']&&(_0x358c33['name']='',_0x358c33['data']='',_0x358c33['attributesJson']=''),null!=_0x4c4899['name']&&_0x4c4899['hasOwnProperty']('name')&&(_0x358c33['name']=_0x4c4899['name']),_0x4c4899['children']&&_0x4c4899['children']['length']){_0x358c33['children']=[];for(var _0x436ad9=0x0;_0x436ad9<_0x4c4899['children']['length'];++_0x436ad9)_0x358c33['children'][_0x436ad9]=_0x3ac948['Element']['toObject'](_0x4c4899['children'][_0x436ad9],_0x389dfa);}if(null!=_0x4c4899['data']&&_0x4c4899['hasOwnProperty']('data')&&(_0x358c33['data']=_0x4c4899['data']),_0x4c4899['attributesBoolean']&&(_0xcdf8f8=Object['keys'](_0x4c4899['attributesBoolean']))['length']){_0x358c33['attributesBoolean']={};for(_0x436ad9=0x0;_0x436ad9<_0xcdf8f8['length'];++_0x436ad9)'__proto__'===_0xcdf8f8[_0x436ad9]&&_0x1b2897['makeProp'](_0x358c33['attributesBoolean'],_0xcdf8f8[_0x436ad9]),_0x358c33['attributesBoolean'][_0xcdf8f8[_0x436ad9]]=_0x4c4899['attributesBoolean'][_0xcdf8f8[_0x436ad9]];}return null!=_0x4c4899['attributesJson']&&_0x4c4899['hasOwnProperty']('attributesJson')&&(_0x358c33['attributesJson']=_0x4c4899['attributesJson']),_0x358c33;},_0x135599['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,YS['default']['util']['toJSONOptions']);},_0x135599['getTypeUrl']=function(_0x2f8f5b){return void 0x0===_0x2f8f5b&&(_0x2f8f5b='type.googleapis.com'),_0x2f8f5b+'/Element';},_0x135599;}()),_0x3ac948;})());var $C=class{_protobufRoot;constructor(){this['_protobufRoot']=LC;}getDescriptor(_0x50d060){return new DC(this['_protobufRoot'][_0x50d060]);}},DC=class{_protobuf;constructor(_0x59c069){this['_protobuf']=_0x59c069;}['compress'](_0x454197){const _0x24b83f=this['_protobuf']['verify'](_0x454197);if(_0x24b83f)throw Error(_0x24b83f);return this['_protobuf']['encode'](this['_protobuf']['create'](_0x454197))['finish']();}['decompress'](_0x2cd51c){return this['_protobuf']['toObject'](this['_protobuf']['decode'](_0x2cd51c),{'oneofs':!0x0});}};function QC(_0x2a4daf,_0x10647d){const _0x537bd6=so(_0x2a4daf);return _0x537bd6['path'][_0x537bd6['path']['length']-0x1]+=_0x10647d,_0x537bd6;}function jC(_0x42ad2e,_0x13bcd9){return _0x42ad2e['root']===_0x13bcd9['root']&&Kr(_0x42ad2e['path'],_0x13bcd9['path']);}function UC(_0x457326){BC(_0x457326,_0x29d17a=>('main'==_0x29d17a['root']?(_0x29d17a['rootMain']=!0x0,delete _0x29d17a['root']):'$graveyard'==_0x29d17a['root']&&(_0x29d17a['rootGraveyard']=!0x0,delete _0x29d17a['root']),_0x29d17a));}function VC(_0x5d7d56){BC(_0x5d7d56,_0x270879=>(_0x270879['rootMain']?(_0x270879['root']='main',delete _0x270879['rootMain']):_0x270879['rootGraveyard']&&(_0x270879['root']='$graveyard',delete _0x270879['rootGraveyard']),_0x270879));}function BC(_0x15406d,_0x53e33b){for(const _0x4a985d in _0x15406d){const _0x2eb5df=_0x15406d[_0x4a985d];'nodes'!==_0x4a985d&&Io(_0x2eb5df)&&(_0x2eb5df['path']&&(_0x2eb5df['root']||_0x2eb5df['rootMain']||_0x2eb5df['rootGraveyard'])?_0x15406d[_0x4a985d]=_0x53e33b(_0x2eb5df):BC(_0x2eb5df,_0x53e33b));}return _0x15406d;}var HC=class{['_id'];_operationName;_protobufDescriptor;constructor(_0x3f18df,_0x31bab9,_0x22508a){this['_id']=_0x3f18df,this['_operationName']=_0x31bab9,this['_protobufDescriptor']=_0x22508a;}['compress'](_0x5c19a7,_0x5224e1){const _0x334403=_0x5224e1['operations'][_0x5224e1['index']++];return UC(_0x334403),_0x5c19a7['buffers']['push'](this['_protobufDescriptor']['compress'](_0x334403)),_0x5c19a7['types']['push'](this['_id']),!0x0;}['decompress'](_0x1f05f8,_0x41044b){_0x41044b['typeIndex']++;const _0x32e1af=_0x41044b['buffers'][_0x41044b['bufferIndex']++],_0x2d9a5a=this['_protobufDescriptor']['decompress'](_0x32e1af);VC(_0x2d9a5a),_0x2d9a5a['__className']=this['_operationName'],_0x1f05f8['push'](_0x2d9a5a);}},FC=class extends HC{['compress'](_0x418daa,_0x80ff16){const _0x18de2c=_0x80ff16['operations'][_0x80ff16['index']++];return this['_serializeOneOf']('oldValue',_0x18de2c),this['_serializeOneOf']('newValue',_0x18de2c),UC(_0x18de2c),_0x418daa['buffers']['push'](this['_protobufDescriptor']['compress'](_0x18de2c)),_0x418daa['types']['push'](this['_id']),!0x0;}['decompress'](_0x149923,_0x1cce6f){_0x1cce6f['typeIndex']++;const _0x4a0a04=_0x1cce6f['buffers'][_0x1cce6f['bufferIndex']++],_0x109e75=this['_protobufDescriptor']['decompress'](_0x4a0a04);this['_deserializeOneOf']('oldValue',_0x109e75),this['_deserializeOneOf']('newValue',_0x109e75),VC(_0x109e75),_0x109e75['__className']=this['_operationName'],_0x149923['push'](_0x109e75);}['_serializeOneOf'](_0x2d940e,_0x4dbe9a){const _0x3832dd=_0x4dbe9a[_0x2d940e];'boolean'==typeof _0x3832dd?_0x4dbe9a[_0x2d940e+'Boolean']=_0x3832dd:_0x4dbe9a[_0x2d940e+'Json']=JSON['stringify'](_0x3832dd);}['_deserializeOneOf'](_0xfd38ca,_0x4be94c){const _0x4c8fe1=_0xfd38ca+'Json';_0x4be94c[_0x4c8fe1]?(_0x4be94c[_0xfd38ca]=JSON['parse'](_0x4be94c[_0x4c8fe1]),delete _0x4be94c[_0x4c8fe1]):(_0x4be94c[_0xfd38ca]=_0x4be94c[_0xfd38ca+'Boolean'],delete _0x4be94c[_0xfd38ca+'Boolean']);}},ZC=class extends HC{['compress'](_0x3d0437,_0x1a8414){const _0x4abff0=_0x1a8414['operations'][_0x1a8414['index']++];return this['_serializeNodesAttributes'](_0x4abff0['nodes']),UC(_0x4abff0),_0x3d0437['buffers']['push'](this['_protobufDescriptor']['compress'](_0x4abff0)),_0x3d0437['types']['push'](this['_id']),!0x0;}['decompress'](_0x2ef883,_0x241350){_0x241350['typeIndex']++;const _0x4b2efd=_0x241350['buffers'][_0x241350['bufferIndex']++],_0x4db944=this['_protobufDescriptor']['decompress'](_0x4b2efd);_0x4db944['nodes']||(_0x4db944['nodes']=[]),this['_deserializeNodesAttributes'](_0x4db944['nodes']),VC(_0x4db944),_0x4db944['__className']=this['_operationName'],_0x2ef883['push'](_0x4db944);}_serializeNodesAttributes(_0x3f2d6b){for(const _0x511377 of _0x3f2d6b){if(_0x511377['attributes']){const _0x28258a=_0x511377['attributes'];this['_areValuesBoolean'](_0x28258a)?_0x511377['attributesBoolean']=_0x28258a:_0x511377['attributesJson']=JSON['stringify'](_0x28258a);}_0x511377['children']&&this['_serializeNodesAttributes'](_0x511377['children']);}}_deserializeNodesAttributes(_0x14af73){for(const _0x1a6ae1 of _0x14af73)(_0x1a6ae1['attributesBoolean']||_0x1a6ae1['attributesJson'])&&(_0x1a6ae1['attributesBoolean']?(_0x1a6ae1['attributes']=_0x1a6ae1['attributesBoolean'],delete _0x1a6ae1['attributesBoolean']):(_0x1a6ae1['attributes']=JSON['parse'](_0x1a6ae1['attributesJson']),delete _0x1a6ae1['attributesJson'])),_0x1a6ae1['children']&&this['_deserializeNodesAttributes'](_0x1a6ae1['children']);}['_areValuesBoolean'](_0x48482a){return Object['keys'](_0x48482a)['every'](_0x3de3ab=>'boolean'==typeof _0x48482a[_0x3de3ab]);}},GC=class extends HC{['decompress'](_0x2460f2,_0x3b1b74){super['decompress'](_0x2460f2,_0x3b1b74);const _0x193871=_0x2460f2[_0x2460f2['length']-0x1];_0x193871['oldRange']||(_0x193871['oldRange']=null),_0x193871['newRange']||(_0x193871['newRange']=null);}},XC=class extends HC{['compress'](_0x449630,_0x22b7b1){return _0x22b7b1['index']++,_0x449630['types']['push'](this['_id']),!0x0;}['decompress'](_0x385cc7,_0x163629){_0x163629['typeIndex']++,_0x385cc7['push']({'__className':this['_operationName']});}},qC=class extends GC{_omittedNamespace;constructor(_0x151259,_0x2de7e5,_0x3a07d6,_0xa92312){super(_0x151259,_0x2de7e5,_0x3a07d6),this['_omittedNamespace']=_0xa92312+':';}['compress'](_0x11749d,_0x52846e){const _0xa6872f=_0x52846e['operations'][_0x52846e['index']];return!('MarkerOperation'!=_0xa6872f['__className']||!_0xa6872f['name']['startsWith'](this['_omittedNamespace']))&&(_0xa6872f['name']=_0xa6872f['name']['replace'](new RegExp('^'+this['_omittedNamespace']),''),super['compress'](_0x11749d,_0x52846e),!0x0);}['decompress'](_0xc61eed,_0x5e287){super['decompress'](_0xc61eed,_0x5e287);const _0x39f2d2=_0xc61eed[_0xc61eed['length']-0x1];_0x39f2d2['name']=this['_omittedNamespace']+_0x39f2d2['name'];}},WC=class{['_id'];_context;constructor(_0x2f91e1,_0x529bd4){this['_id']=_0x2f91e1,this['_context']=_0x529bd4;}['compress'](_0x175efb,_0xe2a05d){let _0x3b287a,_0x34c331=_0xe2a05d['operations'][_0xe2a05d['index']],_0x50816a=_0xe2a05d['operations'][_0xe2a05d['index']+0x1];for(;_0x50816a&&this['_compareOperations'](_0x34c331,_0x50816a);)_0x3b287a?(_0x3b287a=this['_combineNext'](_0x34c331,_0x3b287a),_0x175efb['types']['push'](0x0)):(_0x3b287a=so(_0x34c331),_0x175efb['types']['push'](this['_id'])),_0xe2a05d['index']++,_0x34c331=_0xe2a05d['operations'][_0xe2a05d['index']],_0x50816a=_0xe2a05d['operations'][_0xe2a05d['index']+0x1];return!!_0x3b287a&&(_0x3b287a=this['_combineNext'](_0xe2a05d['operations'][_0xe2a05d['index']++],_0x3b287a),_0x175efb['types']['push'](0x0),_0x175efb['buffers']['push'](this['_compressSingleOperation'](_0x3b287a)),!0x0);}['decompress'](_0x4aa5ae,_0x53c6c7){const _0x14ca32=this['_decompressSingleOperation'](_0x53c6c7);for(;0x0==_0x53c6c7['types'][_0x53c6c7['typeIndex']];)_0x53c6c7['typeIndex']++,_0x4aa5ae['push'](this['_splitCurrent'](_0x14ca32));_0x4aa5ae['push'](_0x14ca32);}},zC=class extends WC{_combineNext(_0x29d8b8,_0x2559a4){return _0x2559a4['nodes'][0x0]['data']+=_0x29d8b8['nodes'][0x0]['data'],_0x2559a4;}_splitCurrent(_0x7fd8c9){const _0x54c423=so(_0x7fd8c9),_0x49f013=_0x54c423['nodes'][0x0],_0x1e146d=_0x7fd8c9['nodes'][0x0],_0x28e4fb=_0x1e146d['data'][Symbol['iterator']]()['next']()['value'],_0x26bef0=_0x28e4fb['length'];return _0x49f013['data']=_0x28e4fb,_0x1e146d['data']=_0x1e146d['data']['substr'](_0x26bef0),_0x7fd8c9['position']=QC(_0x7fd8c9['position'],_0x26bef0),_0x54c423;}_compareOperations(_0x350be1,_0x45de0e){if(this['_checkOperation'](_0x350be1)&&this['_checkOperation'](_0x45de0e)){const _0x1602b5=_0x350be1['nodes'][0x0]['data']['length'],_0x32d869=jC(QC(_0x350be1['position'],_0x1602b5),_0x45de0e['position']),_0x16b6c8=_0x350be1['nodes'][0x0],_0x11e6d5=_0x45de0e['nodes'][0x0];return _0x32d869&&this['_compareAttributes'](_0x16b6c8,_0x11e6d5)&&_0x350be1['_aiSource']==_0x45de0e['_aiSource'];}return!0x1;}_compressSingleOperation(_0x4713de){const _0x31316a={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('InsertOperation')['compress'](_0x31316a,{'operations':[_0x4713de],'index':0x0}),_0x31316a['buffers'][0x0];}_decompressSingleOperation(_0xec0d61){const _0x4ae466=[];return this['_context']['_getCompressorByName']('InsertOperation')['decompress'](_0x4ae466,_0xec0d61),_0x4ae466[0x0];}_checkOperation(_0x466a10){return'InsertOperation'==_0x466a10['__className']&&0x1==_0x466a10['nodes']['length']&&_0x466a10['nodes'][0x0]['data']&&!_0x466a10['wasUndone']&&0x1==Array['from'](_0x466a10['nodes'][0x0]['data'])['length'];}_compareAttributes(_0xc7bc34,_0x40f62b){const _0x6e07ea=Object['keys'](_0xc7bc34['attributes']||{}),_0x2d6555=Object['keys'](_0x40f62b['attributes']||{});return _0x6e07ea['length']===_0x2d6555['length']&&_0x6e07ea['every'](_0x42f656=>_0x40f62b['attributes'][_0x42f656]&&_0x40f62b['attributes'][_0x42f656]===_0xc7bc34['attributes'][_0x42f656]);}},YC=class extends WC{_combineNext(_0x1e3c7e,_0xd0c7d8){return _0xd0c7d8['howMany']++,_0xd0c7d8['sourcePosition']=so(_0x1e3c7e['sourcePosition']),_0xd0c7d8;}_splitCurrent(_0x24b87f){const _0x32b883=so(_0x24b87f);return _0x24b87f['howMany']--,_0x32b883['howMany']=0x1,_0x32b883['sourcePosition']=QC(_0x32b883['sourcePosition'],_0x24b87f['howMany']),_0x32b883;}_compareOperations(_0x30f56e,_0x172ce0){return!(!this['_checkOperation'](_0x30f56e)||!this['_checkOperation'](_0x172ce0))&&(jC(QC(_0x30f56e['sourcePosition'],-0x1),_0x172ce0['sourcePosition'])&&jC(_0x30f56e['targetPosition'],_0x172ce0['targetPosition'])&&_0x30f56e['_aiSource']==_0x172ce0['_aiSource']);}_compressSingleOperation(_0x5f4270){const _0x410ab6={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MoveOperation')['compress'](_0x410ab6,{'operations':[_0x5f4270],'index':0x0}),_0x410ab6['buffers'][0x0];}_decompressSingleOperation(_0x471f82){const _0x5ecf4d=[];return this['_context']['_getCompressorByName']('MoveOperation')['decompress'](_0x5ecf4d,_0x471f82),_0x5ecf4d[0x0];}_checkOperation(_0x2f13f5){return'MoveOperation'==_0x2f13f5['__className']&&'$graveyard'==_0x2f13f5['targetPosition']['root']&&0x1==_0x2f13f5['howMany']&&!_0x2f13f5['wasUndone'];}},KC=class extends WC{_combineNext(_0x5bc373,_0x235bf0){return _0x235bf0['howMany']++,_0x235bf0;}_splitCurrent(_0x32af31){const _0xe1a803=so(_0x32af31);return _0xe1a803['howMany']=0x1,_0x32af31['howMany']--,_0xe1a803;}_compareOperations(_0x54ca1c,_0x3668f3){return!(!this['_checkOperation'](_0x54ca1c)||!this['_checkOperation'](_0x3668f3))&&(jC(_0x54ca1c['sourcePosition'],_0x3668f3['sourcePosition'])&&jC(_0x54ca1c['targetPosition'],_0x3668f3['targetPosition'])&&_0x54ca1c['_aiSource']==_0x3668f3['_aiSource']);}_compressSingleOperation(_0x4fa2ad){const _0x437520={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MoveOperation')['compress'](_0x437520,{'operations':[_0x4fa2ad],'index':0x0}),_0x437520['buffers'][0x0];}_decompressSingleOperation(_0x1a4fb0){const _0x8f1b53=[];return this['_context']['_getCompressorByName']('MoveOperation')['decompress'](_0x8f1b53,_0x1a4fb0),_0x8f1b53[0x0];}_checkOperation(_0x446173){return'MoveOperation'==_0x446173['__className']&&'$graveyard'==_0x446173['targetPosition']['root']&&0x1==_0x446173['howMany']&&!_0x446173['wasUndone'];}},JC=class extends WC{['compress'](_0x17b884,_0x571ca6){if(!this['_compareOperations'](_0x571ca6['operations'][_0x571ca6['index']],_0x571ca6['operations'][_0x571ca6['index']+0x1]))return!0x1;const _0x5b0124=_0x571ca6['operations'][_0x571ca6['index']++];return _0x5b0124['oldRange']=null,_0x5b0124['newRange']&&jC(_0x5b0124['newRange']['start'],_0x5b0124['newRange']['end'])&&(_0x5b0124['newRange']['end']=null),_0x571ca6['index']++,_0x17b884['types']['push'](this['_id']),_0x17b884['types']['push'](0x0),_0x17b884['buffers']['push'](this['_compressSingleOperation'](_0x5b0124)),!0x0;}['decompress'](_0x2731e5,_0x1e33c3){const _0x4481c4=this['_decompressSingleOperation'](_0x1e33c3);_0x4481c4['newRange']&&!_0x4481c4['newRange']['end']&&(_0x4481c4['newRange']['end']=so(_0x4481c4['newRange']['start']));const _0xed65de=so(_0x4481c4);_0xed65de['newRange']&&(_0xed65de['newRange']['start']['stickiness']='toNone',_0xed65de['newRange']['end']=so(_0xed65de['newRange']['start'])),_0xed65de['name']='user:position:'+_0xed65de['name']['split'](':')[0x2],_0x1e33c3['typeIndex']++,_0x2731e5['push'](_0x4481c4),_0x2731e5['push'](_0xed65de);}_compressSingleOperation(_0x325cd0){const _0x564518={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MarkerOperation')['compress'](_0x564518,{'operations':[_0x325cd0],'index':0x0}),_0x564518['buffers'][0x0];}_decompressSingleOperation(_0x2d4e75){const _0x26cf81=[];return this['_context']['_getCompressorByName']('MarkerOperation')['decompress'](_0x26cf81,_0x2d4e75),_0x26cf81[0x0];}_compareOperations(_0x34995d,_0x33eb48){return!(!_0x34995d||!_0x33eb48)&&('MarkerOperation'==_0x34995d['__className']&&'MarkerOperation'==_0x33eb48['__className']&&!(!_0x34995d['name']['startsWith']('user:')||!_0x33eb48['name']['startsWith']('user:')||_0x34995d['name']==_0x33eb48['name']));}},tR=class{['_compressorById'];['_compressorByName'];_protobufFactory;constructor(){this['_compressorById']=new Map(),this['_compressorByName']=new Map(),this['_protobufFactory']=new $C();const _0x2ddf8c=this['_protobufFactory']['getDescriptor']('MarkerOperation');this['_registerCompressor'](0x1,'NoOperation',new XC(0x1,'NoOperation',void 0x0)),this['_registerOperationCompressor'](0xa,'AttributeOperation',FC),this['_registerOperationCompressor'](0xb,'InsertOperation',ZC),this['_registerOperationCompressor'](0xc,'MarkerOperation',GC),this['_registerOperationCompressor'](0xd,'MergeOperation',HC),this['_registerOperationCompressor'](0xe,'MoveOperation',HC),this['_registerOperationCompressor'](0xf,'RenameOperation',HC),this['_registerOperationCompressor'](0x10,'RootAttributeOperation',FC),this['_registerOperationCompressor'](0x11,'SplitOperation',HC),this['_registerCompressor'](0x12,'CommentMarkerOperation',new qC(0x12,'MarkerOperation',_0x2ddf8c,'comment')),this['_registerCompressor'](0x13,'SuggestionMarkerOperation',new qC(0x13,'MarkerOperation',_0x2ddf8c,'suggestion')),this['_registerOperationCompressor'](0x14,'RootOperation',HC),this['_registerActionCompressor'](0x64,'TypingAction',zC),this['_registerActionCompressor'](0x65,'DeletingAction',YC),this['_registerActionCompressor'](0x66,'ForwardDeletingAction',KC),this['_registerActionCompressor'](0x67,'UserSelectionAction',JC);}['compress'](_0x17fb54){if(!_0x17fb54||!_0x17fb54[0x0])throw new _0x4242d4('no-operations-provided',this);const _0x1eb6ad={'operations':_0x17fb54,'index':0x0},_0x57cf83={'types':[],'buffers':[],'baseVersion':_0x17fb54[0x0]['baseVersion']};for(;_0x1eb6ad['index']<_0x1eb6ad['operations']['length'];){if(this['_getCompressorByName']('UserSelectionAction')['compress'](_0x57cf83,_0x1eb6ad))continue;if(this['_getCompressorByName']('TypingAction')['compress'](_0x57cf83,_0x1eb6ad))continue;if(this['_getCompressorByName']('DeletingAction')['compress'](_0x57cf83,_0x1eb6ad))continue;if(this['_getCompressorByName']('ForwardDeletingAction')['compress'](_0x57cf83,_0x1eb6ad))continue;if(this['_getCompressorByName']('CommentMarkerOperation')['compress'](_0x57cf83,_0x1eb6ad))continue;if(this['_getCompressorByName']('SuggestionMarkerOperation')['compress'](_0x57cf83,_0x1eb6ad))continue;const _0x5e1b40=_0x1eb6ad['operations'][_0x1eb6ad['index']]['__className'];this['_getCompressorByName'](_0x5e1b40)['compress'](_0x57cf83,_0x1eb6ad);}return _0x57cf83;}['decompress'](_0x2cc638){const _0x3a987d=[],_0x3d0f3e={'types':_0x2cc638['types'],'buffers':_0x2cc638['buffers'],'baseVersion':_0x2cc638['baseVersion'],'typeIndex':0x0,'bufferIndex':0x0};for(;_0x3d0f3e['typeIndex']<_0x3d0f3e['types']['length'];){const _0x55787f=_0x3d0f3e['types'][_0x3d0f3e['typeIndex']],_0x504c60=this['_compressorById']['get'](_0x55787f);if(!_0x504c60)throw new _0x4242d4('decompress-compressor-not-found',this,{'type':_0x55787f});_0x504c60['decompress'](_0x3a987d,_0x3d0f3e);}return _0x3a987d['forEach']((_0x32fa2f,_0x29ba07)=>_0x32fa2f['baseVersion']=_0x2cc638['baseVersion']+_0x29ba07),_0x3a987d;}_getCompressorByName(_0x4e34c8){return this['_compressorByName']['get'](_0x4e34c8);}_registerOperationCompressor(_0x642d16,_0x14c04c,_0x659735){const _0x2730dd=new _0x659735(_0x642d16,_0x14c04c,this['_protobufFactory']['getDescriptor'](_0x14c04c));this['_registerCompressor'](_0x642d16,_0x14c04c,_0x2730dd);}_registerActionCompressor(_0x130613,_0x4170ed,_0x52860c){const _0x1cc741=new _0x52860c(_0x130613,this);this['_registerCompressor'](_0x130613,_0x4170ed,_0x1cc741);}_registerCompressor(_0x3d0d43,_0x32dda5,_0x4e2405){this['_compressorById']['set'](_0x3d0d43,_0x4e2405),this['_compressorByName']['set'](_0x32dda5,_0x4e2405);}};let eR=0x1;var iR=class RealTimeCollaborationClient extends _0x11fe30{static CollaborativeEditingService=/* #__PURE__ -- @preserve */
((()=>aC)());_offset;['sessionId'];serverHistory;['_channelId'];['_service'];_document;['_compressor'];_bufferedOperations;_knownOperations;_knownRootNames;_pendingAction;_hasSelectionChanged;_sendBufferedOperationsDelayId;['_baseBufferDelay'];_currentBufferDelay;_lastSyncedOperationId;_disconnectionOperations;_operationIdentifier;static get requires(){return[xC,CC,RC,_0x88e4e2,Al,_0x362622];}static get['pluginName'](){return'RealTimeCollaborationClient';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get cloudDocumentVersion(){return this['_lastServerVersion']+this['_offset'];}get _lastServerVersion(){return this['serverHistory']['version']-this['_offset'];}get lastSyncVersion(){const _0x1ac9e3=this['serverHistory']['getOperations']();for(let _0x33b559=_0x1ac9e3['length']-0x1;_0x33b559>=0x0;_0x33b559--){const _0x26cc9e=_0x1ac9e3[_0x33b559];if(!this['_disconnectionOperations']['has'](_0x26cc9e))return _0x26cc9e['baseVersion']+0x1-this['_offset'];}return 0x0;}constructor(_0x5e470e){if(super(_0x5e470e),this['_offset']=0x0,this['sessionId']=null,this['serverHistory']=new _0x47bebe(),this['editor']['config']['define']('collaboration',{}),this['_channelId']=this['editor']['config']['get']('collaboration.channelId'),!this['_channelId'])throw new _0x4242d4('collaboration-missing-channelid',this);const _0x352e31=_0x5e470e['config']['get']('cloudServices.bundleVersion')||_0x291c35;this['_service']=new RealTimeCollaborationClient['CollaborativeEditingService'](_0x352e31,this['_channelId']),this['_document']=this['editor']['model']['document'],this['_compressor']=new tR(),this['_bufferedOperations']=[],this['_knownOperations']=new WeakSet(),this['_knownRootNames']=new Set(),this['set']('_isPendingUpdate',!0x1),this['set']('_hasSynchronizationProblem',!0x1),this['_pendingAction']=null,this['_hasSelectionChanged']=!0x1,this['_sendBufferedOperationsDelayId']=null,this['_baseBufferDelay']=0x12c,this['_currentBufferDelay']=this['_baseBufferDelay'],this['_lastSyncedOperationId']=null,this['_disconnectionOperations']=new WeakSet(),this['_operationIdentifier']=new rR(this['_disconnectionOperations']);}init(){const _0x57ef37=this['editor'],_0x40c796=_0x57ef37['plugins']['get'](Al),_0x2b0ff9=_0x57ef37['plugins']['get'](xC);this['listenTo'](_0x40c796,'getOperationAuthor',(_0x97ade5,_0x7d4f57)=>{const _0x2c3a47=_0x7d4f57[0x0];_0x2c3a47['_authorId']&&(_0x97ade5['return']=_0x40c796['getUser'](_0x2c3a47['_authorId']),_0x97ade5['stop']()),null===_0x2c3a47['_authorId']&&(_0x97ade5['return']=null,_0x97ade5['stop']());},{'priority':'high'}),this['listenTo'](_0x57ef37['model']['document']['selection'],'change:range',(_0x585069,_0x29f051)=>{_0x29f051['directChange']&&this['_refreshUserSelectionMarkers']();}),this['listenTo'](_0x57ef37['editing']['view'],'change:hasDomSelection',()=>{this['_refreshUserSelectionMarkers']();}),this['_initThrowingOnDataSet'](),_0x57ef37['model']['on']('applyOperation',(_0x470aa1,_0x5ce781)=>{const _0x4e964f=_0x5ce781[0x0];_0x4e964f['isDocumentOperation']&&(this['_saveOperationInBuffer'](_0x4e964f),this['_shouldSendUpdate']()&&this['_sendBufferedOperationsDelayed']());}),this['_setUpDataInit'](),this['set']('_isChannelFlushed',!0x1),this['bind']('_isEditingAllowed')['to'](_0x2b0ff9,'state',this,'_hasSynchronizationProblem',this,'_isChannelFlushed',(_0x1b2c76,_0x3da24d,_0xa08fe1)=>'connected'===_0x1b2c76&&!_0x3da24d&&!_0xa08fe1),this['on']('change:_isEditingAllowed',()=>{this['_isEditingAllowed']?_0x57ef37['disableReadOnlyMode']('rtc-offline'):_0x57ef37['enableReadOnlyMode']('rtc-offline');}),this['_isEditingAllowed']?_0x57ef37['disableReadOnlyMode']('rtc-offline'):_0x57ef37['enableReadOnlyMode']('rtc-offline'),this['set']('_isConnected',!0x1);}async reconnect(){const _0x40e7d7=this['editor']['plugins']['get'](CC),_0x2bf0d7=this['editor']['plugins']['get'](xC);try{this['_isPendingUpdate']=!0x0,_0x40e7d7['unregister'](this['_channelId']);const _0x4d0132=await this['_service']['reconnect'](_0x2bf0d7['connection'],this['lastSyncVersion']);await this['_handleReconnectionResponse'](_0x4d0132)&&(this['_isPendingUpdate']=!0x1,this['_clearPendingAction']());const _0x57c69b=await this['_service']['getConnectedSessions']();_0x40e7d7['register'](this['_channelId'],_0x57c69b),this['_handleSendingSelectionMarkers'](),this['_isConnected']=!0x0;}catch(_0x5200a6){if(function(_0x3c76cd){return'404'===_0x3c76cd['code'];}(_0x5200a6)&&this['sessionId'])await this['_connectAfterSessionHasBeenFlushed']();else{if(function(_0x261c6f){return'409'===_0x261c6f['code'];}(_0x5200a6)){const _0x2d3ea0=MC(this['editor']['locale'],'The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');this['_handleReconnectionError'](_0x2d3ea0);}else{if(!(_0x5200a6 instanceof sR))throw _0x5200a6;this['_handleReconnectionError']();}}}}destroy(){const _0x16df3c=this['editor']['plugins']['get'](xC),_0x41c388=this['editor']['plugins']['get'](CC);this['editor']['enableReadOnlyMode']('rtc-destroyed'),_0x41c388['channelSessions']['has'](this['_channelId'])&&_0x41c388['unregister'](this['_channelId']),_0x16df3c['removeFromReconnectionStack'](this),this['_disconnectService'](),super['destroy']();}async _handleReconnectionResponse(_0x947cb){if(this['sessionId']!==_0x947cb['sessionId']&&this['_lastSyncedOperationId']!==_0x947cb['lastOperationId'])throw new sR();return this['sessionId']=_0x947cb['sessionId'],this['_handleServerResponse']([],{..._0x947cb,'wereChangesApplied':!0x1,'data':_0x947cb['data']},'reconnect');}async _connectService(_0x5de3f8,_0x9dd82=!0x1){const {connection:_0x824a3a}=this['editor']['plugins']['get'](xC);RealTimeCollaborationClient['CollaborativeEditingService']['getConnectedSessions'](_0x824a3a,this['_channelId'])['then'](_0xd26a29=>this['_initSessionsHandling'](_0xd26a29))['catch'](_0x3d770f=>{this['_crash']('realtimecollaborationclient-init-session-connection-error',_0x3d770f);}),this['listenTo'](this['_service'],'operationsReceived',this['_handleReceivedOperations']['bind'](this)),this['listenTo'](this['_service'],'error',(_0xfa6cc5,_0xc041ec)=>{this['_crash']('realtimecollaborationclient-init-service-internal-error',_0xc041ec);}),this['listenTo'](this['_service'],'disconnected',()=>{this['_handleChannelDisconnected']();});const _0x4af8db=this['_operationIdentifier']['getIdOfTheLastOperation'](_0x5de3f8);this['_isPendingUpdate']=!0x0;const _0x344b6d=await this['_service']['connect'](_0x824a3a,this['_compressOperations'](_0x5de3f8),_0x4af8db);if(this['sessionId']=_0x344b6d['sessionId'],_0x9dd82){if(!_0x344b6d['wereChangesApplied'])return void this['_handleReconnectionError']();this['_isPendingUpdate']=!0x1,this['_clearPendingAction'](),this['serverHistory']['reset'](),this['_offset']=_0x344b6d['offset'],this['serverHistory']['version']=this['_offset'],await this['_handleServerResponse'](_0x5de3f8,_0x344b6d,'reconnection:\x20flushed\x20session');}else await this['_handleInitialConnectionData'](_0x344b6d,_0x5de3f8);this['_handleSendingSelectionMarkers'](),this['_isConnected']=!0x0;}_handleSendingSelectionMarkers(){const _0x568120=this['editor']['plugins']['get'](CC),_0x2d0b7e=this['editor']['plugins']['get'](RC),_0x90abfb=_0x568120['channelSessions']['get'](this['_channelId']);_0x90abfb&&_0x90abfb['length']>0x1?_0x2d0b7e['createUserMarkerOperations']():this['listenTo'](_0x568120,'sessionAdd:'+this['_channelId'],()=>{0x2===_0x568120['channelSessions']['get'](this['_channelId'])['length']&&_0x2d0b7e['createUserMarkerOperations']();});}async _handleReceivedOperations(_0x2bc87b,_0x425e0d,_0x10ddba,_0x8bba87){if(!this['_isPendingUpdate']&&this['_document']['version']==_0x425e0d){const _0x22cb00=this['_decompressOperations'](_0x10ddba,_0x8bba87);await this['_fetchMissingUsers'](_0x22cb00),this['_handleExternalOperations'](_0x22cb00,_0x425e0d,_0x10ddba['lastOperationId'])||this['_crash']('realtimecollaborationclient-init-service-incorrect-server-operation');}}async _connectAfterSessionHasBeenFlushed(){this['_disconnectService']();const {locale:_0x40c043}=this['editor'];let _0x53d41e;try{_0x53d41e=await this['_service']['getDocumentDetails']();}catch{const _0x459dfc=MC(_0x40c043,'The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');return void this['_handleReconnectionError'](_0x459dfc);}const _0x521489=_0x53d41e['currentDocumentSession']||_0x53d41e['lastDocumentSession'];if(this['_lastSyncedOperationId']!==_0x521489['lastOperationId']){const _0x2d2e0e=MC(_0x40c043,'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.');return void this['_handleReconnectionError'](_0x2d2e0e);}await this['_connectService'](this['editor']['model']['document']['history']['getOperations'](),!0x0);}_handleChannelDisconnected(){const _0x49b7b9=this['editor']['plugins']['get'](xC);if(this['_isConnected']=!0x1,!_0x49b7b9['connection']||'connected'!==_0x49b7b9['connection']['state'])return;this['_isChannelFlushed']=!0x0;const _0x3ed83e=this['editor']['plugins']['get'](CC);_0x3ed83e['channelSessions']['has'](this['_channelId'])&&_0x3ed83e['unregister'](this['_channelId']),_0x49b7b9['removeFromReconnectionStack'](this),this['_disconnectService']();}_disconnectService(){this['_service']['disconnect'](),this['_bufferedOperations']=[],clearTimeout(this['_sendBufferedOperationsDelayId']),this['_isPendingUpdate']=!0x1,this['_clearPendingAction'](),this['stopListening'](this['_service']);}_initSessionsHandling(_0x38ad58){const _0x4b726e=this['editor']['plugins']['get'](CC);this['listenTo'](_0x4b726e,'sessionAdd:'+this['_channelId'],(_0x493cb7,{session:_0x3202dd})=>{if(_0x3202dd['id']===_0x4b726e['mySessionId']){_0x493cb7['off']();const _0x574295=this['editor']['plugins']['has']('CommentsOnly')&&this['editor']['plugins']['get']('CommentsOnly');let _0x12cda7=_0x3202dd['permissions'];_0x574295&&_0x574295['isEnabled']&&(_0x12cda7=_0x12cda7['filter'](_0x42b4dd=>'document:write'!==_0x42b4dd)),this['editor']['plugins']['get']('Permissions')['setPermissions'](_0x12cda7,this['_channelId']);}}),_0x4b726e['register'](this['_channelId'],_0x38ad58);}_initThrowingOnDataSet(){const _0x2611fe=this['editor']['data']['set'];this['editor']['data']['set']=(..._0x377b71)=>{if(!_0x377b71[_0x377b71['length']-0x1]['suppressErrorInCollaboration'])throw new _0x4242d4('realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration',this);_0x2611fe['apply'](this['editor']['data'],_0x377b71);};}_setUpDataInit(){this['editor']['data']['on']('init',(_0x4a7fd8,[_0x5f8ea7])=>{if(this['_document']['version'])throw new _0x4242d4('realtimecollaborationclient-init-document-already-initialized',this);_0x4a7fd8['stop'](),this['_setPendingAction']();const _0x3c2d57=Object['fromEntries'](Object['entries'](this['editor']['config']['get']('roots')||{})['filter'](([,_0x42a17c])=>!_0x42a17c['lazyLoad'])['map'](([_0x30360b,_0x2e4bcb])=>[_0x30360b,_0x2e4bcb['modelAttributes']||{}])),_0x346864=this['_getOperationsFromInitData'](_0x5f8ea7,_0x3c2d57);0x0==_0x346864['length']&&_0x346864['push'](new _0x9201d0(0x0)),_0x4a7fd8['return']=this['_connectService'](_0x346864)['then'](()=>{this['editor']['plugins']['get'](xC)['addToReconnectionStack'](this),this['editor']['data']['fire']('ready');})['catch'](_0x293ba0=>this['_crash']('realtimecollaborationclient-init-connection-failed',_0x293ba0))['finally'](()=>this['_clearPendingAction']());},{'priority':'high'}),this['editor']['on']('loadRoot',async(_0xc32312,[_0x5943ae,_0x13cf50])=>{_0xc32312['stop']();const _0x3676fe=this['editor']['model']['document']['getRoot'](_0x5943ae);if(!this['_knownRootNames']['has'](_0x5943ae)){const _0x40f532=_0x13cf50&&_0x13cf50['data']?_0x13cf50['data']:'',_0x38e0e6=_0x13cf50&&_0x13cf50['attributes']?_0x13cf50['attributes']:{};await this['_loadRoot'](_0x5943ae,_0x40f532,_0x38e0e6);}this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3676fe['_isLoaded']=!0x0,this['editor']['model']['document']['differ']['_bufferRootLoad'](_0x3676fe);});},{'priority':'high'});}async _fetchMissingUsers(_0x5ec467){const _0x426115=this['editor']['plugins']['get'](Al),{connection:_0x1c8e50}=this['editor']['plugins']['get'](xC),_0x54a3de=new Set();for(const _0x413f8f of _0x5ec467){const _0x2e72f5=_0x413f8f['_authorId'];_0x2e72f5&&!_0x426115['getUser'](_0x2e72f5)&&_0x54a3de['add'](_0x2e72f5);}if(0x0===_0x54a3de['size'])return;const _0x47ea5a=await Uk['getMany'](_0x1c8e50,Array['from'](_0x54a3de));for(const _0x1db390 of _0x47ea5a)_0x426115['getUser'](_0x1db390['id'])||_0x426115['addUser'](_0x1db390);}_getOperationsFromInitData(_0x59c91e,_0x211385={}){const _0x4cd0d5=this['editor']['model'],_0x4129bb=[];let _0x448e83=0x0;const _0x42fc98='string'==typeof _0x59c91e?{'main':_0x59c91e}:_0x59c91e;for(const _0x2abc41 of Object['keys'](_0x42fc98)){if(!this['_document']['roots']['has'](_0x2abc41))throw new _0x4242d4('realtimecollaborationclient-init-non-existent-root',this);const _0x59443e=this['_document']['getRoot'](_0x2abc41),_0x34b4c4=this['editor']['data']['parse'](_0x42fc98[_0x2abc41],_0x59443e),_0x57cb03=new _0x144d3a(_0x4cd0d5['createPositionAt'](_0x59443e,0x0),_0x34b4c4,_0x448e83++);_0x4129bb['push'](_0x57cb03);for(const [_0x4e854b,_0x46d4a5]of _0x34b4c4['markers']){const _0x203feb=new _0x365d2c(_0x4e854b,null,_0x4cd0d5['createRange'](_0x4cd0d5['createPositionFromPath'](_0x59443e,_0x46d4a5['start']['path']['slice']()),_0x4cd0d5['createPositionFromPath'](_0x59443e,_0x46d4a5['end']['path']['slice']())),_0x4cd0d5['markers'],!0x0,_0x448e83++);_0x4129bb['push'](_0x203feb);}}if(_0x211385)for(const [_0x4365fd,_0x26e34b]of Object['entries'](_0x211385)){const _0x55002f=_0x4cd0d5['document']['getRoot'](_0x4365fd);if(!_0x55002f)throw new _0x4242d4('multi-root-editor-root-attributes-no-root',null);for(const [_0x58688,_0x243922]of Object['entries'](_0x26e34b))if(null!==_0x243922){const _0x6e874=new _0x4a0894(_0x55002f,_0x58688,null,_0x243922,_0x448e83++);_0x4129bb['push'](_0x6e874);}}return _0x4129bb;}async _loadRoot(_0x56162f,_0x4a3260,_0xfe8625){this['_getOperationsFromInitData']({[_0x56162f]:_0x4a3260},{[_0x56162f]:_0xfe8625})['forEach']((_0x3048e2,_0x1f0746)=>{_0x3048e2['baseVersion']=this['_document']['version']+_0x1f0746,_0x3048e2['_isInit']=!0x0,this['_saveOperationInBuffer'](_0x3048e2);}),this['_sendBufferedOperationsDelayed'](),await this['_waitUntilSynced']();}async _handleInitialConnectionData(_0x2f314f,_0x1df48f){let _0x29fcbc;this['_offset']=_0x2f314f['offset'];const _0x55b33d=_0x2f314f['wereChangesApplied']&&!_0x2f314f['initData'],_0x3ddec8=_0x55b33d?0x0:_0x2f314f['data']['baseVersion'];if(_0x1df48f['forEach'](_0x44197f=>{_0x44197f['_isInit']=!0x0,_0x44197f['createdAt']=_0x2f314f['sessionCreatedAt'],_0x44197f['_authorId']=null;}),_0x55b33d)_0x29fcbc=_0x1df48f,this['_applyOperationsSet'](_0x29fcbc,_0x55b33d);else{if(_0x2f314f['initData']){const _0x511514=this['_getOperationsFromInitData'](_0x2f314f['initData']);this['_document']['history']['version']=-_0x511514['length'],_0x511514['forEach'](_0x392643=>{_0x392643['baseVersion']-=_0x511514['length'],_0x392643['createdAt']=_0x2f314f['sessionCreatedAt'],_0x392643['_isInit']=!0x0,_0x392643['_authorId']=null;}),this['_applyOperationsSet'](_0x511514,!0x0),this['serverHistory']['version']=-_0x511514['length']+this['_offset'],this['_updateServerHistory'](_0x511514);}this['_document']['history']['version']=_0x3ddec8,_0x29fcbc=this['_decompressOperations'](_0x2f314f['data'],_0x2f314f['metadata']),await this['_fetchMissingUsers'](_0x29fcbc),this['_applyOperationsSet'](_0x29fcbc,_0x55b33d);}_0x2f314f['lastOperationId']&&(this['_operationIdentifier']['setIdForTheLastOperation'](_0x29fcbc,_0x2f314f['lastOperationId']),this['_lastSyncedOperationId']=_0x2f314f['lastOperationId']),this['serverHistory']['version']=_0x3ddec8+this['_offset'],this['_updateServerHistory'](_0x29fcbc),_0x1df48f['filter'](_0x409539=>{const _0x48a1cc=this['_getAffectedRoot'](_0x409539);return _0x48a1cc&&!this['_knownRootNames']['has'](_0x48a1cc);})['forEach']((_0x2ebf31,_0x27a299)=>{_0x2ebf31['baseVersion']=this['_document']['version']+_0x27a299,this['_saveOperationInBuffer'](_0x2ebf31);}),this['_shouldSendUpdate']()?(this['_currentBufferDelay']=0x0,this['_sendBufferedOperationsDelayed'](!0x0),await this['_waitUntilSynced']()):(this['_isPendingUpdate']=!0x1,this['_clearPendingAction']());}['_crash'](_0x1c00ef,_0x5e9e22){const _0x3134fc=_0x5e9e22&&_0x5e9e22['message'];if(_0x3134fc&&_0x3134fc['startsWith']('realtimecollaborationclient'))throw _0x5e9e22;const _0x13b06b=this['editor']['plugins']['get'](xC);throw this['_isPendingUpdate']=!0x0,_0x13b06b['disconnect'](),this['editor']['enableReadOnlyMode']('realtimecollaborationclient-error'),new _0x4242d4(_0x1c00ef,this['editor'],_0x3134fc?{'originalError':_0x3134fc}:void 0x0);}_saveOperationInBuffer(_0x5cf53b){this['_knownOperations']['has'](_0x5cf53b)||(this['_knownOperations']['add'](_0x5cf53b),this['_bufferedOperations']['push'](_0x5cf53b),this['_pendingAction']||'marker'==_0x5cf53b['type']&&!_0x5cf53b['affectsData']||this['_setPendingAction']());}_sendBufferedOperationsDelayed(_0x30c8e2=!0x1){!_0x30c8e2&&this['_isPendingUpdate']||(this['_isPendingUpdate']=!0x0,clearTimeout(this['_sendBufferedOperationsDelayId']),this['_sendBufferedOperationsDelayId']=setTimeout(()=>{this['_sendBufferedOperations']()['then'](_0x23e489=>{_0x23e489&&(this['_clearPendingAction'](),this['_isPendingUpdate']=!0x1);})['catch'](_0x583ef3=>{this['_clearPendingAction'](),this['_isPendingUpdate']=!0x1,function(_0x3aa0e6){return _0x3aa0e6['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x3aa0e6['message']['startsWith']('cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.')||_0x3aa0e6['message']['startsWith']('cloud-services-internal-error:\x20Request\x20timeout.');}(_0x583ef3)||this['_crash'](_0x583ef3['message'],_0x583ef3);});},this['_currentBufferDelay']));}_waitUntilSynced(){return new Promise(_0x4e7bfa=>{this['on']('change:_isPendingUpdate',()=>{_0x4e7bfa();});});}async _sendBufferedOperations(){const _0x219652=this['editor']['plugins']['get'](RC);if(this['_shouldSendSelectionUpdate']()&&(_0x219652['createUserMarkerOperations'](),this['_hasSelectionChanged']=!0x1),!this['_shouldSendUpdate']())return!0x0;const _0x5c4406=[...this['_bufferedOperations']];for(const _0x1b9f4a of _0x5c4406)_0x1b9f4a['wasUndone']=this['_document']['history']['isUndoneOperation'](_0x1b9f4a);const _0x2ce70a=this['_operationIdentifier']['getIdOfTheLastOperation'](_0x5c4406),_0x5591f4=eR++,_0x38a42b=this['_compressOperations'](_0x5c4406),_0x37ce9b=await this['_service']['sendOperations'](_0x38a42b,_0x38a42b['baseVersion'],_0x2ce70a);try{return await this['_handleServerResponse'](_0x5c4406,_0x37ce9b,_0x5591f4);}catch(_0xb65579){return this['_crash']('realtimecollaborationclient-sendbufferedoperations',_0xb65579);}}async['_handleServerResponse'](_0x14d972,_0x4d2003,_0x26a13f){if('error'in _0x4d2003)throw _0x4d2003['error'];let _0xb7c05;if(_0x4d2003['wereChangesApplied']){_0x4d2003['lastOperationId']&&(this['_lastSyncedOperationId']=_0x4d2003['lastOperationId']),this['_bufferedOperations']=this['_bufferedOperations']['filter'](_0x16fe6e=>!_0x14d972['includes'](_0x16fe6e));for(const _0x18befe of _0x14d972)_0x18befe['createdAt']='lastOperationAcceptedAt'in _0x4d2003&&_0x4d2003['lastOperationAcceptedAt']||void 0x0;nR(_0x14d972,_0x4d2003['version']-_0x14d972['length']),this['_updateServerHistory'](_0x14d972);const _0x5bbdea=_0x14d972['filter'](_0x14ea1c=>{if(!_0x14ea1c['_isInit'])return!0x1;const _0x40a793=this['_getAffectedRoot'](_0x14ea1c);return _0x40a793&&!this['_knownRootNames']['has'](_0x40a793);});nR(_0x5bbdea,this['_document']['version']),this['_applyOperationsSet'](_0x5bbdea),_0xb7c05=!0x0,this['_currentBufferDelay']=this['_baseBufferDelay'];}else{const _0x1710ac=this['_decompressOperations'](_0x4d2003['data'],_0x4d2003['metadata'])['filter'](_0x4edd6b=>_0x4edd6b['baseVersion']>=this['_lastServerVersion']);_0x1710ac['forEach'](_0x646333=>this['_addKnownRoot'](_0x646333)),this['_bufferedOperations']=this['_bufferedOperations']['filter'](_0x2d3a6d=>!_0x2d3a6d['_isInit']||!this['_knownRootNames']['has'](this['_getAffectedRoot'](_0x2d3a6d))),this['_bufferedOperations']['length']&&nR(this['_bufferedOperations'],this['_bufferedOperations'][0x0]['baseVersion']),await this['_fetchMissingUsers'](_0x1710ac),_0xb7c05=this['_handleExternalOperations'](_0x1710ac,_0x4d2003['version'],_0x4d2003['lastOperationId']),this['_currentBufferDelay']=Math['round'](this['_currentBufferDelay']/0x2);}return _0xb7c05?!this['_shouldSendUpdate']()||(this['_sendBufferedOperationsDelayed'](!0x0),!0x1):this['_crash']('realtimecollaborationclient-handleserverresponse');}_handleExternalOperations(_0x35d4b6,_0x4a04b8,_0x3721d4){try{const _0x351359={'document':this['_document'],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x205aec,operationsB:_0x187cf4,originalOperations:_0x568b85}=_0x4e362f(_0x35d4b6,this['_bufferedOperations'],_0x351359);nR(_0x205aec,this['_document']['version']),nR(_0x187cf4,_0x4a04b8);for(const _0x475635 of _0x205aec){const _0x398305=_0x568b85['get'](_0x475635);_0x398305?(_0x475635['_authorId']=_0x398305['_authorId'],'noop'!==_0x475635['type']&&(_0x475635['_aiSource']=_0x398305['_aiSource'])):_0x475635['_authorId']=null;}for(const _0x57c28a of _0x187cf4)'noop'!==_0x57c28a['type']&&(_0x57c28a['_aiSource']=_0x568b85['get'](_0x57c28a)?.['_aiSource']);_0x3721d4&&(this['_operationIdentifier']['setIdForTheLastOperation'](_0x35d4b6,_0x3721d4),this['_lastSyncedOperationId']=_0x3721d4),this['_bufferedOperations']=[..._0x187cf4],this['_applyOperationsSet'](_0x205aec),this['_updateServerHistory'](_0x35d4b6);}catch(_0x179788){return console['error'](_0x179788),!0x1;}return!0x0;}_applyOperationsSet(_0x586a82,_0xa0d4b0=!0x1){this['editor']['model']['enqueueChange']({'isUndoable':!0x1,'isLocal':!0x1},_0x4833d5=>{for(const _0x124be3 of _0x586a82)this['_knownOperations']['add'](_0x124be3),this['_addKnownRoot'](_0x124be3),_0x4833d5['batch']['addOperation'](_0x124be3),this['editor']['model']['applyOperation'](_0x124be3);});}_addKnownRoot(_0x39d233){const _0x3e0d43=this['_getAffectedRoot'](_0x39d233);_0x3e0d43&&this['_knownRootNames']['add'](_0x3e0d43);}_getAffectedRoot(_0xd508e4){let _0x5df973,_0x5b2e86;switch(_0xd508e4['type']){case'insert':_0x5df973=_0xd508e4['position']['root'];break;case'marker':if(_0x5b2e86=_0xd508e4['newRange'],!_0x5b2e86)return null;_0x5df973=_0x5b2e86['root'];break;case'addRootAttribute':_0x5df973=_0xd508e4['root'];break;case'addRoot':_0x5df973=_0xd508e4['affectedSelectable'];break;case'move':_0x5df973=_0xd508e4['targetPosition']['root'];break;default:return null;}return _0x5df973['rootName'];}_updateServerHistory(_0x3e697c){_0x3e697c['forEach'](_0x5064e9=>{const _0x1b877a=_0x5064e9['clone']();_0x1b877a['_authorId']=_0x5064e9['_authorId'],_0x1b877a['_isInit']=!!_0x5064e9['_isInit'],_0x1b877a['_aiSource']=_0x5064e9['_aiSource'],_0x1b877a['createdAt']=_0x5064e9['createdAt'],_0x1b877a['baseVersion']+=this['_offset'],_0x5064e9['_isDisconnection']&&this['_disconnectionOperations']['add'](_0x1b877a),this['serverHistory']['addOperation'](_0x1b877a);});}_handleReconnectionError(_0x21f2dc){const _0x59eed6=this['editor']['plugins']['get']('Notification'),_0x1bcbc4=this['editor']['locale'];_0x21f2dc||(_0x21f2dc=MC(_0x1bcbc4,'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.')),_0x59eed6['showWarning'](_0x21f2dc,{'title':MC(_0x1bcbc4,'Synchronization\x20issue'),'namespace':'real-time-collaboration'}),this['_hasSynchronizationProblem']=!0x0,clearTimeout(this['_sendBufferedOperationsDelayId']),this['_bufferedOperations']=[],this['editor']['plugins']['get'](xC)['disconnect']();}_setPendingAction(){this['_pendingAction']||(this['_pendingAction']=this['editor']['plugins']['get'](_0x88e4e2)['add'](MC(this['editor']['locale'],'PENDING_ACTION_SENDING_DATA')));}_clearPendingAction(){this['_pendingAction']&&(this['editor']['plugins']['get'](_0x88e4e2)['remove'](this['_pendingAction']),this['_pendingAction']=null);}_compressOperations(_0x7c33f6){const _0x2280a7=_0x7c33f6['map'](_0x57c853=>_0x57c853['toJSON']());return this['_compressor']['compress'](_0x2280a7);}_decompressOperations(_0x1fe630,_0x247f6c){return this['_compressor']['decompress'](_0x1fe630)['map']((_0x1170ac,_0x30290d)=>{const _0x36cfc8='init'==_0x247f6c[_0x30290d]['type'];if('InsertOperation'==_0x1170ac['__className']){const _0x44dfb7=_0x1170ac['position']['root'];!this['_document']['getRoot'](_0x44dfb7)&&(this['_document']['createRoot']('$unknown',_0x44dfb7)['_isAttached']=!0x1);}else{if('RootOperation'==_0x1170ac['__className']){const _0x2be2a0=this['_document']['getRoot'](_0x1170ac['rootName']);_0x2be2a0&&'$unknown'==_0x2be2a0['name']&&_0x1170ac['elementName']!=_0x2be2a0['name']&&(_0x2be2a0['name']=_0x1170ac['elementName']);}}const _0x24920c=_0x3b4771['fromJSON'](_0x1170ac,this['_document']);return _0x24920c['wasUndone']=_0x1170ac['wasUndone'],_0x24920c['_isInit']=_0x36cfc8,_0x24920c['_authorId']=_0x36cfc8?null:_0x247f6c[_0x30290d]['userId'],_0x24920c['_isDisconnection']='cs:removeUser'===_0x247f6c[_0x30290d]['type'],_0x24920c['_aiSource']=_0x1170ac['_aiSource']||void 0x0,_0x24920c['createdAt']=_0x247f6c[_0x30290d]['createdAt'],_0x24920c;});}_refreshUserSelectionMarkers(){this['_hasSelectionChanged']=!0x0,this['_shouldSendSelectionUpdate']()?this['_sendBufferedOperationsDelayed']():this['_hasSelectionChanged']=!0x1;}_shouldSendSelectionUpdate(){const _0x4365b2=this['editor']['plugins']['get'](CC)['channelSessions']['get'](this['_channelId']);return!this['editor']['isReadOnly']&&!!_0x4365b2&&_0x4365b2['length']>0x1&&this['_hasSelectionChanged'];}_shouldSendUpdate(){return this['_bufferedOperations']['length']>0x0||this['_shouldSendSelectionUpdate']();}},sR=class extends Error{};function nR(_0x49eb2e,_0x1655bb){for(const _0x4af1e0 of _0x49eb2e)_0x4af1e0['baseVersion']=_0x1655bb++;}var rR=class{_ignoredOperations;_operationToId;constructor(_0x4d9740){this['_ignoredOperations']=_0x4d9740,this['_operationToId']=new WeakMap();}getIdOfTheLastOperation(_0x317753){let _0x31c1a0=_0x317753['length'];for(;_0x31c1a0--;){const _0x2b444c=_0x317753[_0x31c1a0];if(!this['_ignoredOperations']['has'](_0x2b444c)){if(!this['_operationToId']['has'](_0x2b444c)){const _0x2f4ac7=_0xea66bb()['slice'](0x1,0x12);this['_operationToId']['set'](_0x2b444c,_0x2f4ac7);}return this['_operationToId']['get'](_0x2b444c);}}}setIdForTheLastOperation(_0x55e123,_0x160527){if(!_0x160527)return;let _0x5d3f4c=_0x55e123['length'];for(;_0x5d3f4c--;){const _0x3d533c=_0x55e123[_0x5d3f4c];this['_ignoredOperations']['has'](_0x3d533c)||this['_operationToId']['set'](_0x3d533c,_0x160527);}}},oR=class extends _0x11fe30{static get requires(){return[iR];}static get['pluginName'](){return'RealTimeCollaborativeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}},aR=class extends _0x44d8e7{['_enabledCommands'];constructor(_0x5de381,_0x312e79){super(_0x5de381),this['_enabledCommands']=_0x312e79,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}_disableUnsupportedCommands(){for(const _0x52154d of this['editor']['commands']['commands']())_0x52154d['affectsData']&&!this['_enabledCommands']['has'](_0x52154d)&&_0x52154d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x46c2a2 of this['editor']['commands']['commands']())_0x46c2a2['affectsData']&&!this['_enabledCommands']['has'](_0x46c2a2)&&_0x46c2a2['clearForceDisabled']('TrackChangesCommand');}},cR=class extends _0x44d8e7{_suggestions;constructor(_0x41d3ce,_0xcd9cb1){super(_0x41d3ce),this['_suggestions']=_0xcd9cb1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x359450){const _0x5e1b70=this['_suggestions']['get'](_0x359450);if(!_0x5e1b70)throw new _0x4242d4('track-changes-accept-suggestion-not-found',this);const _0x854789=_0x5e1b70['getRanges']();this['editor']['model']['canEditAt'](_0x854789)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5e1b70);}},lR=class extends _0x44d8e7{_suggestions;constructor(_0x569eda,_0x5537b3){super(_0x569eda),this['_suggestions']=_0x5537b3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x42ced6){const _0x110812=this['_suggestions']['get'](_0x42ced6);if(!_0x110812)throw new _0x4242d4('track-changes-discard-suggestion-not-found',this);const _0x24f3ac=_0x110812['getRanges']();this['editor']['model']['canEditAt'](_0x24f3ac)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x110812);}};function hR(_0x393dc9,_0x536371){let _0x269657='';return _0x269657+=_0x393dc9['split']('*')['map']((_0x4f393a,_0xeed66e)=>_0xeed66e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+uR(_0x4f393a)+'</span>':uR(_0x4f393a))['join'](''),_0x536371&&(_0x269657+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x536371['value']+'\x22\x20title=\x22'+_0x536371['title']+'\x22></span>'),_0x269657;}function uR(_0x17667b){const _0x225bad=document['createElement']('span');return _0x225bad['innerText']=_0x17667b,_0x225bad['innerHTML'];}function dR(_0x9dfcf8){return _0x9dfcf8['sort']((_0x4f104c,_0x296779)=>'attribute'===_0x4f104c['type']&&'attribute'!==_0x296779['type']?-0x1:'attribute'!==_0x4f104c['type']&&'attribute'===_0x296779['type']?0x1:'deletion'==_0x4f104c['type']&&'deletion'!=_0x296779['type']?-0x1:'deletion'!=_0x4f104c['type']&&'deletion'==_0x296779['type']?0x1:0x0);}function fR(_0x15bbc6,_0x5304e1){let _0x2b7555,_0x262904=0x0;const _0x3ea536=[],_0x2ecdbb=_0x5304e1['schema'];for(;_0x262904<_0x15bbc6['length'];){const _0x307c09=_0x15bbc6[_0x262904],_0x53d042=_0x15bbc6[_0x262904+0x1];_0x2b7555||(_0x2b7555=_0x5304e1['createPositionBefore'](_0x307c09)),mR(_0x5304e1,_0x307c09,_0x53d042)||(_0x3ea536['push'](_0x5304e1['createRange'](_0x2b7555,_0x2ecdbb['isObject'](_0x307c09)?_0x5304e1['createPositionAfter'](_0x307c09):_0x5304e1['createPositionAt'](_0x307c09,'end'))),_0x2b7555=null),_0x262904++;}return _0x3ea536;}function mR(_0x4cf49a,_0x5cb4aa,_0xf7fac2){if(!_0xf7fac2)return!0x1;const _0x3558bb=_0x4cf49a['createPositionAfter'](_0x5cb4aa),_0x1a6333=_0x4cf49a['createPositionBefore'](_0xf7fac2);return _0x3558bb['isTouching'](_0x1a6333);}function pR(_0x155047,_0x4f1746,_0x7c69fb){for(;_0x7c69fb['length'];){const _0x52308d=_0x7c69fb['splice'](0x0,0x64);_0x155047['change'](()=>{for(const _0x56bcf3 of _0x52308d)_0x56bcf3['isInContent']&&_0x4f1746['execute'](_0x56bcf3['id']);});}}var gR=class extends _0x44d8e7{['_command'];_suggestions;constructor(_0x23871a,_0x431d92,_0x26a99b){super(_0x23871a),this['_command']=_0x431d92,this['_suggestions']=_0x26a99b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x46d565=Array['from'](this['_suggestions']['values']())['some'](_0x4fcb43=>_0x4fcb43['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x46d565;}execute(){const _0x46c573=dR(Array['from'](this['_suggestions']['values']()));for(const _0x57bffa of _0x46c573){const _0xecd44f=_0x57bffa['getRanges']();if(!this['editor']['model']['canEditAt'](_0xecd44f))return;}pR(this['editor']['model'],this['_command'],_0x46c573);}},OR=class extends _0x44d8e7{['_command'];_suggestions;_selectedSuggestions;constructor(_0x347b34,_0x48c7e8,_0x57caeb){super(_0x347b34),this['_command']=_0x48c7e8,this['_suggestions']=_0x57caeb,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3b4841=this['editor']['model']['document']['selection'],_0x5d70fa=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5f0cf1,_0x30a7a5){const _0x5a891d=Array['from'](_0x5f0cf1['getRanges']()),_0x1d1d60=new Set();for(const _0x43f241 of _0x30a7a5)if(_0x43f241['isInContent']){for(const _0x39861c of _0x5a891d)for(const _0x438228 of _0x43f241['getRanges']())(_0x39861c['isIntersecting'](_0x438228)||_0x5f0cf1['isCollapsed']&&!_0x43f241['isMultiRange']&&_0x43f241['next']&&_0x438228['end']['isTouching'](_0x39861c['start']))&&_0x1d1d60['add'](_0x43f241);}return _0x1d1d60;}(_0x3b4841,_0x5d70fa),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x538d1f=dR(Array['from'](this['_selectedSuggestions']));for(const _0x4c4bf7 of _0x538d1f){const _0x2007f5=_0x4c4bf7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2007f5))return;}pR(this['editor']['model'],this['_command'],_0x538d1f);}};const wR=/* #__PURE__ -- @preserve */
_0x356c1e();var bR=class Suggestion extends wR{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x8a1ea9,_0x383d08){super(),this['id']=_0x383d08['id'],this['type']=_0x383d08['type'],this['subType']=_0x383d08['subType']||null,this['author']=_0x383d08['author'],this['creator']=_0x383d08['creator']||_0x383d08['author'],this['data']=null,this['_originalSuggestionId']=_0x383d08['originalSuggestionId']||null,this['_model']=_0x8a1ea9,this['_onAccept']=_0x383d08['onAccept'],this['_onDiscard']=_0x383d08['onDiscard'],this['_onAttributesChange']=_0x383d08['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x383d08['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x15d6fd=this;for(;_0x15d6fd['previous'];)_0x15d6fd=_0x15d6fd['previous'];return _0x15d6fd;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0x478603){this['_markerNames']['add'](_0x478603);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x4bc7df=>this['_model']['markers']['get'](_0x4bc7df))['filter'](_0x3c1078=>_0x3c1078);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4a56e8=>{for(const _0x5103f4 of this['getMarkers']())_0x4a56e8['removeMarker'](_0x5103f4);}),this['_markerNames']['clear']();}['removeMarker'](_0x949c47){this['_model']['change'](_0x39d49a=>{_0x39d49a['removeMarker'](_0x949c47);}),this['_markerNames']['delete'](_0x949c47);}['addRange'](_0x55269f){const _0xd4ea6='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0xd4ea6),this['_model']['change'](_0x1dc3a9=>{_0x1dc3a9['addMarker'](_0xd4ea6,{'range':_0x55269f,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0xe38d27){for(const _0x59e758 of this['getRanges']())if(_0x59e758['isIntersecting'](_0xe38d27))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x62acee=>_0x62acee['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x40e708,_0x40d414)=>[..._0x40e708,..._0x40d414['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x3d72f5=this['getRanges']();if(0x1!=_0x3d72f5['length'])return null;const _0x17043c=_0x3d72f5[0x0],_0x4e6704=_0x17043c['start']['nodeAfter'],_0x473970=_0x17043c['end']['nodeBefore'];return _0x4e6704 instanceof _0x284373?_0x4e6704!=_0x473970?null:_0x4e6704:null;}accept(){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}getAllAdjacentSuggestions(){const _0xaec237=[];let _0x465319=this['head'];for(;_0x465319;)_0xaec237['push'](_0x465319),_0x465319=_0x465319['next'];return _0xaec237;}setAttribute(_0x4d6c26,_0x371d05){const _0x11fbbc=so(this['attributes']);xo(_0x11fbbc,_0x4d6c26,_0x371d05),Kr(_0x11fbbc,this['attributes'])||(this['attributes']=_0x11fbbc,this['_onAttributesChange'](_0x11fbbc));}removeAttribute(_0x212448){const _0x422a28=so(this['attributes']);Oo(_0x422a28,_0x212448),Kr(_0x422a28,this['attributes'])||(this['attributes']=_0x422a28,this['_onAttributesChange'](this['attributes']));}toJSON(){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static getMultiRangeId(){return _0xea66bb()['substr'](0x1,0x5);}};function yR(_0x4580da,_0x7f7324,_0x5c66b5){const _0x54e584=_0x4580da['t'],t=_0x4580da['t'];switch(_0x7f7324){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x5c66b5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5c66b5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5c66b5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5c66b5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5c66b5);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x5c66b5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5c66b5);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5c66b5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5c66b5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5c66b5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5c66b5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5c66b5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5c66b5);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5c66b5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5c66b5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5c66b5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5c66b5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5c66b5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5c66b5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5c66b5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5c66b5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5c66b5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5c66b5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5c66b5);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5c66b5);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x5c66b5);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5c66b5);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5c66b5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5c66b5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5c66b5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5c66b5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5c66b5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5c66b5);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x5c66b5);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x5c66b5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5c66b5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5c66b5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5c66b5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5c66b5);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x5c66b5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5c66b5);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x5c66b5);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x5c66b5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5c66b5);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x5c66b5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5c66b5);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x5c66b5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5c66b5);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x5c66b5);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x5c66b5);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x5c66b5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5c66b5);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x5c66b5);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5c66b5);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x54e584({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5c66b5);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x54e584({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5c66b5);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5c66b5);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x5c66b5);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x5c66b5);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x5c66b5);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x7f7324;}}var vR=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x1b31a3,_0x3b017b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1b31a3,this['_locale']=_0x3b017b;}getDescriptions(_0x5999f5){const _0xed5ff9=[],_0x4beb03=new Set(),_0x5a2c31=new Set();for(let _0x314269=0x0;_0x314269<_0x5999f5['length'];_0x314269++){const _0x2bf93f=_0x5999f5[_0x314269];if(!_0x2bf93f['isInContent'])continue;const _0x49a18c=this['_handleCustomCallbackDescription'](_0x2bf93f);if(_0x49a18c){if(null!=_0x2bf93f['subType']){if(_0x4beb03['has'](_0x2bf93f['subType']))continue;_0x4beb03['add'](_0x2bf93f['subType']);}_0xed5ff9['push'](_0x49a18c);}else{if('attribute'==_0x2bf93f['type']){const _0x432ffe=_0x2bf93f['data']['key'];if(_0x5a2c31['has'](_0x432ffe))continue;_0x5a2c31['add'](_0x2bf93f['data']['key']),'$elementName'==_0x432ffe?this['_handleRenameSuggestionDescription'](_0xed5ff9,_0x2bf93f):this['_handleAttributeSuggestionDescription'](_0xed5ff9,_0x2bf93f);continue;}'insertion'!=_0x2bf93f['type']&&'deletion'!=_0x2bf93f['type']||this['_handleInsertRemoveSuggestionDescription'](_0xed5ff9,_0x2bf93f,_0x5999f5[_0x314269+0x1]);}}return this['_resolveDescriptionItems'](_0xed5ff9);}registerDescriptionCallback(_0x15aebf){this['_customCallbacks']['push'](_0x15aebf);}registerElementLabel(_0x186426,_0x9f3e1b,_0x2c4ce1=_0x1a573c['normal']){'function'==typeof _0x186426?_0x5e09c0(this['_itemLabelsCallbacks'],{'matchingCallback':_0x186426,'label':_0x9f3e1b,'priority':_0x2c4ce1}):this['_itemLabels']['set'](_0x186426,_0x9f3e1b);}registerAttributeLabel(_0x5676bf,_0x3fe553){this['_attributeLabels']['set'](_0x5676bf,_0x3fe553);}getItemLabel(_0x2e7568,_0x11cebe=0x1){let _0x3877cc;for(const _0x39513e of this['_itemLabelsCallbacks'])if(_0x39513e['matchingCallback'](_0x2e7568)){_0x3877cc=_0x39513e['label'];break;}return _0x3877cc||(_0x3877cc=this['_itemLabels']['get'](_0x2e7568['name'])),_0x3877cc?_0x3877cc(_0x11cebe):0x1!==_0x11cebe?_0x11cebe+'\x20'+_0x2e7568['name']+'s':''+_0x2e7568['name'];}_addDescriptionItems(_0xdea539,_0xf3d9c7){const _0x4a8248=_0xf3d9c7['getFirstRange']()['getWalker'](),_0x3e94c7='insertion'==_0xf3d9c7['type']?'add':'remove';for(const _0x19f6d0 of _0x4a8248){const _0xcfac9e=_0x19f6d0['item'],_0x2529af=_0xdea539[_0xdea539['length']-0x1];if(_0xcfac9e['is']('$textProxy'))_0x2529af&&_0x2529af['type']['indexOf']('Container')>-0x1&&_0xdea539['pop'](),_0x2529af&&'text'==_0x2529af['type']?_0x2529af[_0x3e94c7]+=_0xcfac9e['data']:_0xdea539['push']({'type':'text','add':'add'==_0x3e94c7?_0xcfac9e['data']:'','remove':'remove'==_0x3e94c7?_0xcfac9e['data']:''});else{if(this['_schema']['isObject'](_0xcfac9e)){const _0x1e28f0=_0xcfac9e;if(_0x2529af&&_0x2529af['type']['indexOf']('Container')>-0x1&&_0xdea539['pop'](),'elementEnd'==_0x19f6d0['type'])continue;_0x2529af&&_0x2529af['type']==_0x3e94c7+'Object'&&_0x2529af['element']['name']==_0x1e28f0['name']?_0x2529af['quantity']++:_0xdea539['push']({'type':_0x3e94c7+'Object','element':_0x1e28f0,'quantity':0x1}),_0x4a8248['skip'](_0x26e008=>!('elementEnd'==_0x26e008['type']&&_0x26e008['item']==_0xcfac9e));}else{if(this['_schema']['checkChild'](_0xcfac9e,'$text')||_0xcfac9e['is']('element','softBreak')){const _0x3554dd=_0xcfac9e;if('add'==_0x3e94c7&&'elementStart'==_0x19f6d0['type']||'remove'==_0x3e94c7&&'elementEnd'==_0x19f6d0['type'])continue;if(_0x2529af&&-0x1==_0x2529af['type']['indexOf']('Container')){'text'==_0x2529af['type']&&(_0x2529af[_0x3e94c7]+='\x0a');continue;}let _0x12d9d9;if(_0x12d9d9='add'==_0x3e94c7?_0x3554dd['nextSibling']&&!this['_schema']['isObject'](_0x3554dd['nextSibling'])?_0x3554dd['nextSibling']:null:_0x3554dd['previousSibling']&&!this['_schema']['isObject'](_0x3554dd['previousSibling'])?_0x3554dd['previousSibling']:null,_0x3554dd['isEmpty']||_0x12d9d9&&_0x12d9d9['isEmpty']){const _0xf8fb87=_0x12d9d9&&_0x12d9d9['isEmpty']?_0x12d9d9:_0x3554dd;_0x2529af&&_0x2529af['type']==_0x3e94c7+'EmptyContainer'&&_0x2529af['element']['name']==_0xf8fb87['name']?_0x2529af['quantity']++:_0xdea539['push']({'type':_0x3e94c7+'EmptyContainer','element':_0xf8fb87,'quantity':0x1});}else _0xdea539['push']({'type':_0x3e94c7+'Container','element':_0x3554dd});}}}}}_resolveDescriptionItems(_0x146ab0){const _0x27d714=this['_locale'],_0x249680=[],_0x388449=[],_0x2d32ae=[];for(const _0x547953 of _0x146ab0)switch(_0x547953['type']){case'text':if(_0x547953['add']=_0x547953['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x547953['remove']=_0x547953['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x547953['add']&&''!=_0x547953['remove']){_0x249680['push']({'type':'replace','content':yR(_0x27d714,'REPLACE_TEXT',['\x22'+_0x547953['remove']+'\x22','\x22'+_0x547953['add']+'\x22'])});continue;}if(null!=_0x547953['add']['match'](/^ +$/)){_0x249680['push']({'type':'insertion','content':yR(_0x27d714,'*Insert:*\x20%0',yR(_0x27d714,'ELEMENT_SPACE',_0x547953['add']['length']))});continue;}if(null!=_0x547953['remove']['match'](/^ +$/)){_0x249680['push']({'type':'deletion','content':yR(_0x27d714,'*Remove:*\x20%0',yR(_0x27d714,'ELEMENT_SPACE',_0x547953['remove']['length']))});continue;}if(''!=_0x547953['add']){_0x249680['push']({'type':'insertion','content':yR(_0x27d714,'*Insert:*\x20%0','\x22'+_0x547953['add']+'\x22')});continue;}_0x249680['push']({'type':'deletion','content':yR(_0x27d714,'*Remove:*\x20%0','\x22'+_0x547953['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x249680['push']({'type':'insertion','content':yR(_0x27d714,'*Insert:*\x20%0',this['getItemLabel'](_0x547953['element'],_0x547953['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x249680['push']({'type':'deletion','content':yR(_0x27d714,'*Remove:*\x20%0',this['getItemLabel'](_0x547953['element'],_0x547953['quantity']))});continue;case'addContainer':_0x249680['push']({'type':'insertion','content':yR(_0x27d714,'*Split:*\x20%0',this['getItemLabel'](_0x547953['element'],_0x547953['quantity']))});continue;case'removeContainer':_0x249680['push']({'type':'deletion','content':yR(_0x27d714,'*Merge:*\x20%0',this['getItemLabel'](_0x547953['element'],_0x547953['quantity']))});continue;case'addFormat':_0x388449['push'](_0x547953['key']);continue;case'removeFormat':_0x2d32ae['push'](_0x547953['key']);continue;default:_0x249680['push'](_0x547953);}if(_0x388449['length']){const _0x4e1bec=_0x388449['map'](_0xa10620=>this['_attributeLabels']['has'](_0xa10620)?this['_attributeLabels']['get'](_0xa10620):_0xa10620)['join'](',\x20');_0x249680['push']({'type':'format','content':yR(this['_locale'],'*Set\x20format:*\x20%0',_0x4e1bec)});}if(_0x2d32ae['length']){const _0x317965=_0x2d32ae['map'](_0x1fa59a=>this['_attributeLabels']['has'](_0x1fa59a)?this['_attributeLabels']['get'](_0x1fa59a):_0x1fa59a)['join'](',\x20');_0x249680['push']({'type':'format','content':yR(this['_locale'],'*Remove\x20format:*\x20%0',_0x317965)});}return _0x249680;}_handleCustomCallbackDescription(_0x51205f){for(const _0x5f2740 of this['_customCallbacks']){const _0x45b140=_0x5f2740(_0x51205f);if(_0x45b140&&'type'in _0x45b140)return _0x45b140;}}_handleAttributeSuggestionDescription(_0x5e9124,_0x851783){const _0x1ab4f5=_0x851783['data'],_0x2340f5=void 0x0===_0x1ab4f5['newValue']?'removeFormat':'addFormat';_0x5e9124['push']({'type':_0x2340f5,'key':_0x1ab4f5['key']});}_handleRenameSuggestionDescription(_0x417adb,_0x3a5902){_0x417adb['push']({'type':'format','content':yR(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3a5902['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x15bcd6,_0x42b976,_0x13c534){if(this['_addDescriptionItems'](_0x15bcd6,_0x42b976),_0x13c534&&_0x13c534['getFirstRange']()&&!_0x42b976['getFirstRange']()['end']['isEqual'](_0x13c534['getFirstRange']()['start'])){const _0x97266=_0x15bcd6[_0x15bcd6['length']-0x1],_0x537a5c='insertion'==_0x42b976['type']?'add':'remove';_0x97266&&'text'==_0x97266['type']&&(_0x97266[_0x537a5c]+='\x0a');}}},_R=class extends _0x11fe30{afterInit(){const _0x40000d=this['editor'],_0x507983=_0x40000d['plugins']['get']('TrackChangesEditing');_0x40000d['commands']['get']('showAIAssistant')&&_0x507983['enableCommand']('showAIAssistant');}},ER=class extends _0x11fe30{afterInit(){const _0x1fac00=this['editor'],_0x3e7b75=_0x1fac00['plugins']['get']('TrackChangesEditing');_0x1fac00['commands']['get']('toggleAi')&&_0x3e7b75['enableCommand']('toggleAi');}},TR=class extends _0x11fe30{afterInit(){const _0xd31882=this['editor'],_0x3f1d66=_0xd31882['plugins']['get']('TrackChangesEditing');_0xd31882['commands']['get']('aiQuickAction')&&_0x3f1d66['enableCommand']('aiQuickAction');}},AR=class extends _0x11fe30{afterInit(){const _0x492ff2=this['editor'],_0x2d366c=_0x492ff2['locale'];if(!_0x492ff2['plugins']['has']('AlignmentEditing'))return;const _0x21c9ce=_0x492ff2['plugins']['get']('TrackChangesEditing');_0x21c9ce['enableDefaultAttributesIntegration']('alignment'),_0x21c9ce['descriptionFactory']['registerAttributeLabel']('alignment',yR(_0x2d366c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1dad1f=this['editor'],_0x5f47f4=_0x1dad1f['locale'];_0x1dad1f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b769f=>{if('formatBlock'!=_0x1b769f['type'])return;const {data:_0x242b4a}=_0x1b769f;if(_0x242b4a&&'alignment'==_0x242b4a['commandName']){const _0x3e30fe=_0x242b4a['commandParams'][0x0]['value'];return{'type':'format','content':yR(_0x5f47f4,'*Format:*\x20%0',function(_0x3b3df9){switch(_0x3b3df9){case'left':return yR(_0x5f47f4,'FORMAT_ALIGN_TO_LEFT');case'right':return yR(_0x5f47f4,'FORMAT_ALIGN_TO_RIGHT');case'center':return yR(_0x5f47f4,'FORMAT_ALIGN_TO_CENTER');case'justify':return yR(_0x5f47f4,'FORMAT_JUSTIFY_TEXT');}}(_0x3e30fe))};}});}};const SR=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var IR=class extends _0x11fe30{afterInit(){const _0x5b7af7=this['editor'],_0x461cf2=_0x5b7af7['plugins']['get']('TrackChangesEditing'),_0x2aeec3=_0x5b7af7['locale'];for(const _0x47c84e of SR){if(!_0x5b7af7['plugins']['has'](_0x47c84e))continue;const _0x293207=_0x47c84e['slice'](0x0,-0x7)['toLowerCase'](),_0x599dc5='FORMAT_'+_0x293207['toUpperCase']();_0x461cf2['enableDefaultAttributesIntegration'](_0x293207),_0x461cf2['descriptionFactory']['registerAttributeLabel'](_0x293207,yR(_0x2aeec3,_0x599dc5));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3bc4f6=this['editor'],_0x4e4474=_0x3bc4f6['locale'],_0x7c4bb=_0x3bc4f6['plugins']['get']('TrackChangesEditing');function _0x2a5625(_0x5652b6,_0x3288ac){_0x7c4bb['descriptionFactory']['registerDescriptionCallback'](_0x239553=>{if('formatInline'!=_0x239553['type'])return;const {data:_0x57b790}=_0x239553;return _0x57b790&&_0x57b790['commandName']===_0x5652b6?_0x57b790['commandParams'][0x0]['forceValue']?{'type':'format','content':yR(_0x4e4474,'*Format:*\x20%0',_0x3288ac)}:{'type':'format','content':yR(_0x4e4474,'*Remove\x20format:*\x20%0',_0x3288ac)}:void 0x0;});}_0x2a5625('bold',yR(_0x4e4474,'FORMAT_BOLD')),_0x2a5625('italic',yR(_0x4e4474,'FORMAT_ITALIC')),_0x2a5625('underline',yR(_0x4e4474,'FORMAT_UNDERLINE')),_0x2a5625('code',yR(_0x4e4474,'FORMAT_CODE')),_0x2a5625('strikethrough',yR(_0x4e4474,'FORMAT_STRIKETHROUGH')),_0x2a5625('subscript',yR(_0x4e4474,'FORMAT_SUBSCRIPT')),_0x2a5625('superscript',yR(_0x4e4474,'FORMAT_SUPERSCRIPT'));}},kR=class extends _0x11fe30{afterInit(){const _0x3f4569=this['editor'],_0x13879e=_0x3f4569['locale'];if(!_0x3f4569['plugins']['has']('BlockQuoteEditing'))return;const _0x62ca59=_0x3f4569['plugins']['get']('TrackChangesEditing'),_0x51fdbe=this['editor']['commands']['get']('blockQuote');_0x62ca59['enableCommand']('blockQuote',(_0x1af417,_0x5385ee={})=>{const _0x11bdf2=this['editor']['model']['document']['selection'],_0x19a5b1=_0x5385ee&&void 0x0!==_0x5385ee['forceValue']?_0x5385ee['forceValue']:!_0x51fdbe['value'];let _0x63f5e2=[];_0x63f5e2=fR(_0x19a5b1?Array['from'](_0x11bdf2['getSelectedBlocks']())['filter'](_0x5bd48b=>xR(_0x5bd48b)||function(_0x3207ff,_0x193faa){const _0x3be242=_0x193faa['createContext'](_0x3207ff['parent']);return!!_0x193faa['checkChild'](_0x3be242,'blockQuote')&&!!_0x193faa['checkChild'](_0x3be242['push']('blockQuote'),_0x3207ff);}(_0x5bd48b,this['editor']['model']['schema'])):Array['from'](_0x11bdf2['getSelectedBlocks']())['filter'](_0x3ad613=>xR(_0x3ad613)),_0x3f4569['model']),_0x3f4569['model']['change'](()=>{for(const _0x5e9cc4 of _0x63f5e2)_0x62ca59['markBlockFormat'](_0x5e9cc4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x19a5b1}]});});}),_0x62ca59['descriptionFactory']['registerDescriptionCallback'](_0x58fa8b=>{const {data:_0x56a315}=_0x58fa8b;if(_0x56a315&&'blockQuote'==_0x56a315['commandName']){const _0x3acbf3=yR(_0x13879e,'ELEMENT_BLOCK_QUOTE');return _0x56a315['commandParams'][0x0]['forceValue']?{'type':'format','content':yR(_0x13879e,'*Set\x20format:*\x20%0',_0x3acbf3)}:{'type':'format','content':yR(_0x13879e,'*Remove\x20format:*\x20%0',_0x3acbf3)};}});}};function xR(_0x46757f){return'blockQuote'==_0x46757f['parent']['name'];}var CR=class extends _0x11fe30{afterInit(){const _0x3c787c=this['editor'],_0x24ba85=_0x3c787c['locale'],_0x34bf3c=_0x3c787c['plugins']['get']('TrackChangesEditing');_0x3c787c['plugins']['has']('BookmarkEditing')&&(_0x34bf3c['enableCommand']('insertBookmark'),_0x34bf3c['enableDefaultAttributesIntegration']('updateBookmark'),_0x34bf3c['descriptionFactory']['registerDescriptionCallback'](_0x289ff0=>{if('insertion'!=_0x289ff0['type']&&'deletion'!=_0x289ff0['type']&&'attribute'!=_0x289ff0['type'])return;const _0x12ea3c=_0x289ff0['getContainedElement']();if(null==_0x12ea3c)return;if(!_0x12ea3c['is']('element','bookmark'))return;const _0x6fe883=_0x12ea3c['getAttribute']('bookmarkId');if('insertion'==_0x289ff0['type'])return{'type':'insertion','content':yR(_0x24ba85,'*Insert:*\x20%0','\x22'+_0x6fe883+'\x22\x20'+yR(_0x24ba85,'ELEMENT_BOOKMARK'))};if('deletion'==_0x289ff0['type'])return{'type':'deletion','content':yR(_0x24ba85,'*Remove:*\x20%0','\x22'+_0x6fe883+'\x22\x20'+yR(_0x24ba85,'ELEMENT_BOOKMARK'))};const {data:_0x125996}=_0x289ff0;return _0x125996&&'bookmarkId'==_0x125996['key']?{'type':'format','content':yR(_0x24ba85,'*Set\x20bookmark:*\x20%0','\x22'+_0x125996['newValue']+'\x22')}:void 0x0;}));}},RR=class extends _0x11fe30{afterInit(){const _0x6db3fd=this['editor'];_0x6db3fd['plugins']['has']('CaseChange')&&(_0x6db3fd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x6db3fd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x6db3fd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},PR=class extends _0x11fe30{afterInit(){const _0x5297d3=this['editor'];_0x5297d3['commands']['get']('ckbox')&&_0x5297d3['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},NR=class extends _0x11fe30{static get requires(){return[_0x36137f,_0x4b8e01];}constructor(_0x616860){super(_0x616860),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x5c3543=this['editor'],_0x48c394=_0x5c3543['plugins']['get']('ClipboardMarkersUtils'),_0x56250d=_0x5c3543['plugins']['get'](_0x4b8e01);_0x48c394['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x56250d['on']('outputTransformation',(_0x4f9c8b,_0x387f18)=>{const _0x594594=this['_getSuggestionEntries'](_0x387f18);for(const [_0x12440d,_0x503bce]of _0x387f18['content']['markers']){const _0x47a9c7=_0x2a6d0b['_fromRangeInDocumentFragment'](_0x503bce,_0x5c3543['model']);function _0x5d31c8(){_0x47a9c7['detach'](),_0x387f18['content']['markers']['delete'](_0x12440d);}_0x47a9c7['on']('change:drop',_0x5d31c8),(_0x12440d['startsWith']('suggestion:')||_0x12440d['startsWith']('comment:'))&&_0x47a9c7['on']('change:range',()=>{_0x47a9c7['isCollapsed']&&_0x5d31c8();}),_0x387f18['content']['markers']['set'](_0x12440d,_0x47a9c7);}const _0x15ff2c=_0x594594['filter'](_0x2494df=>'deletion'===_0x2494df['meta']['type'])['map'](_0x552bc1=>_0x552bc1['modelRange']);if(this['_shouldSkipDeletions'](_0x15ff2c,_0x387f18['content']))return[..._0x594594]['forEach'](_0x1fd982=>{_0x387f18['content']['markers']['get'](_0x1fd982['markerName'])['detach'](),_0x387f18['content']['markers']['delete'](_0x1fd982['markerName']);}),void this['_restoreRegularRanges'](_0x387f18['content']['markers']);[..._0x594594]['forEach'](_0x1194bf=>{const _0x1613bd=_0x5c3543['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x1194bf['meta']['type'],_0x1194bf['meta']['subType'],'accept'),{markerName:_0x44cb29,meta:_0x35be7e}=_0x1194bf;if(_0x387f18['content']['markers']['has'](_0x44cb29)){switch(_0x35be7e['type']){case'deletion':if('tableRow'===_0x35be7e['subType']||'tableColumn'===_0x35be7e['subType']){if(!_0x5c3543['plugins']['has']('TableUtils'))break;const _0x2e2622=_0x5c3543['plugins']['get']('TableUtils'),_0x2cad98=_0x2e2622['getSelectionAffectedTableCells'](_0x5c3543['model']['createSelection'](_0x387f18['content']['markers']['get'](_0x44cb29))),_0x2a91e0=_0x2cad98[0x0]['findAncestor']('table');if('tableRow'===_0x35be7e['subType']){const {first:_0x2e804a,last:_0x4b0499}=_0x2e2622['getRowIndexes'](_0x2cad98);_0x2e2622['removeRows'](_0x2a91e0,{'at':_0x2e804a,'rows':_0x4b0499-_0x2e804a+0x1});}else{const {first:_0x1be5af,last:_0x182f87}=_0x2e2622['getColumnIndexes'](_0x2cad98);_0x2e2622['removeColumns'](_0x2a91e0,{'at':_0x1be5af,'columns':_0x182f87-_0x1be5af+0x1});}break;}_0x1613bd([_0x387f18['content']['markers']['get'](_0x44cb29)]);}_0x387f18['content']['markers']['has'](_0x44cb29)&&(_0x387f18['content']['markers']['get'](_0x44cb29)['detach'](),_0x387f18['content']['markers']['delete'](_0x44cb29));}}),this['_restoreRegularRanges'](_0x387f18['content']['markers']);});}_getSuggestionEntries(_0x2663cd){const _0xf2d805=_0x322b8c=>'dragstart'===_0x2663cd['method']?_0x322b8c['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x322b8c;return Array['from'](_0x2663cd['content']['markers'])['map'](([_0x1207d5,_0x3f169b])=>({'markerName':_0x1207d5,'modelRange':_0x3f169b,'meta':Ll(_0xf2d805(_0x1207d5))}))['filter'](({meta:_0x258236})=>'suggestion'===_0x258236['group']);}_shouldSkipDeletions(_0x4827ec,_0x170d59){if(!_0x4827ec['length'])return!0x1;let _0xe4f860=[this['editor']['model']['createRangeIn'](_0x170d59)];for(const _0x20b15e of _0x4827ec)_0xe4f860=_0xe4f860['flatMap'](_0x3d60ad=>_0x3d60ad['getDifference'](_0x20b15e));return!_0xe4f860['some'](_0x49a9e8=>this['editor']['model']['hasContent'](_0x49a9e8,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x174868){[..._0x174868['keys']()]['forEach'](_0x1d6f28=>{const _0x4e1a98=_0x174868['get'](_0x1d6f28);_0x4e1a98['detach'](),_0x174868['set'](_0x1d6f28,_0x4e1a98['toRange']());});}},MR=class extends _0x11fe30{afterInit(){const _0x393ecf=this['editor'];if(!_0x393ecf['plugins']['has']('CodeBlock'))return;const _0x5c82e7=_0x393ecf['plugins']['get']('TrackChangesEditing'),_0x38f9af=_0x393ecf['locale'],_0x567add=_0x393ecf['config']['get']('codeBlock')['languages'],_0x396cd7=_0x393ecf['commands']['get']('codeBlock');_0x5c82e7['enableCommand']('indentCodeBlock'),_0x5c82e7['enableCommand']('outdentCodeBlock'),_0x5c82e7['enableCommand']('codeBlock',(_0x4dd0a4,_0x264474={})=>{const _0xcbd19d=_0x393ecf['model'],_0x14bddc=_0x393ecf['model']['document']['selection'],_0x79ae94=_0x264474&&void 0x0!==_0x264474['forceValue']?_0x264474['forceValue']:!_0x396cd7['value'];let _0x31df90;_0x264474['language']||(_0x264474['language']=_0x567add[0x0]['language']),_0x31df90=_0x79ae94?Array['from'](_0x14bddc['getSelectedBlocks']())['filter'](_0x454861=>LR(_0x454861)||function(_0x3757c4,_0x4e13b6){return!_0x3757c4['is']('rootElement')&&!_0x4e13b6['isLimit'](_0x3757c4)&&_0x4e13b6['checkChild'](_0x3757c4['parent'],'codeBlock');}(_0x454861,_0xcbd19d['schema'])):Array['from'](_0x14bddc['getSelectedBlocks']())['filter'](_0x22197f=>LR(_0x22197f));const _0x5f2d02=fR(_0x31df90,_0xcbd19d);_0xcbd19d['change'](()=>{for(const _0x897208 of _0x5f2d02)_0x5c82e7['markBlockFormat'](_0x897208,{'commandName':'codeBlock','commandParams':[{..._0x264474,'forceValue':_0x79ae94}],'formatGroupId':'blockName'});});}),(_0x5c82e7['descriptionFactory']['registerElementLabel']('codeBlock',_0x36179e=>yR(_0x38f9af,'ELEMENT_CODE_BLOCK',_0x36179e)),_0x5c82e7['descriptionFactory']['registerDescriptionCallback'](_0x2df0e4=>{if('formatBlock'!=_0x2df0e4['type'])return;const _0x3534a7=_0x38f9af['t'],{data:_0x4cec40}=_0x2df0e4;if(!_0x4cec40||'codeBlock'!=_0x4cec40['commandName'])return;const _0x3b913e=_0x4cec40['commandParams'][0x0]['language'],_0x47ac2a=_0x567add['find'](_0x4dfbe6=>_0x4dfbe6['language']===_0x3b913e)['label'],_0x1e1865=_0x3534a7(_0x47ac2a)['toLowerCase']();return _0x4cec40['commandParams'][0x0]['forceValue']?{'type':'format','content':yR(_0x38f9af,'*Set\x20format:*\x20%0',yR(_0x38f9af,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1e1865+')')}:{'type':'format','content':yR(_0x38f9af,'*Remove\x20format:*\x20%0',yR(_0x38f9af,'ELEMENT_CODE_BLOCK',0x1))};}));}};function LR(_0x2e9654){return'codeBlock'==_0x2e9654['name'];}var $R=class extends _0x11fe30{afterInit(){const _0x2d22f1=this['editor'];_0x2d22f1['plugins']['has']('CommentsEditing')&&_0x2d22f1['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},DR=class extends _0x11fe30{static get requires(){return[_0x2e4156];}init(){const _0x6bb536=this['editor'],_0x15d159=_0x6bb536['plugins']['get']('TrackChangesEditing');_0x15d159['enableCommand']('delete');const _0xab6025=_0x6bb536['commands']['get']('deleteForward');_0x15d159['enableCommand']('deleteForward',(_0xa1da69,_0x166eb3={})=>{const _0x109730=_0x6bb536['model']['createSelection'](_0x6bb536['model']['document']['selection']);_0x109730['isCollapsed']&&_0x6bb536['model']['modifySelection'](_0x109730,{'direction':'forward','unit':_0x166eb3['unit']});const _0x529f2e=_0x109730['getFirstRange'](),_0x336197=_0x2a6d0b['fromRange'](_0x529f2e);let _0x2ca921;_0xa1da69(_0x166eb3),_0x2ca921='$graveyard'==_0x336197['root']['rootName']?_0x6bb536['model']['createRange'](_0x529f2e['start']):_0x6bb536['model']['createRange'](_0x336197['start'],_0x336197['end']),_0x336197['detach'](),_0x6bb536['model']['enqueueChange'](_0xab6025['buffer']['batch'],_0x39d022=>{_0xab6025['buffer']['lock'](),_0x39d022['setSelection'](_0x39d022['createRange'](_0x2ca921['end'])),_0xab6025['buffer']['unlock']();});});}},QR=class extends _0x11fe30{afterInit(){const _0x5604dc=this['editor'];if(!_0x5604dc['plugins']['has']('ListEditing'))return;const _0x595c19=_0x5604dc['locale'],_0x5cfb7e=_0x5604dc['plugins']['get']('TrackChangesEditing'),_0x3d51a2=_0x5604dc['plugins']['has']('TodoListEditing'),_0x5ebfa6=!!_0x5604dc['config']['get']('list.multiBlock');function _0x19a675(_0x40caf5){return{'type':'format','content':''+yR(_0x595c19,'*Set\x20format:*\x20%0',_0x40caf5)};}function _0x154246(_0x21baed){return{'type':'format','content':''+yR(_0x595c19,'*Remove\x20format:*\x20%0',_0x21baed)};}_0x5cfb7e['enableDefaultAttributesIntegration']('numberedList'),_0x5cfb7e['enableDefaultAttributesIntegration']('bulletedList'),_0x5cfb7e['enableDefaultAttributesIntegration']('customNumberedList'),_0x5cfb7e['enableDefaultAttributesIntegration']('customBulletedList'),_0x5cfb7e['enableDefaultAttributesIntegration']('indentList'),_0x5cfb7e['enableDefaultAttributesIntegration']('outdentList'),_0x5cfb7e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5cfb7e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5ebfa6&&(_0x5cfb7e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5cfb7e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3d51a2&&(_0x5cfb7e['enableDefaultAttributesIntegration']('todoList'),_0x5cfb7e['enableDefaultAttributesIntegration']('checkTodoList'),_0x5cfb7e['descriptionFactory']['registerDescriptionCallback'](_0x26d5f0=>{const {data:_0x111cc6}=_0x26d5f0;if(_0x111cc6&&'todoListChecked'==_0x111cc6['key'])return{'type':'format','content':_0x111cc6['newValue']?yR(_0x595c19,'*Check\x20item*'):yR(_0x595c19,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xe2e0c6=>{if(_0xe2e0c6['batch']['isUndo'])return!0x1;let _0xebb7e0=!0x1;const _0x1dfdea=_0x5cfb7e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5cbd0f=>'todoListChecked'===_0x5cfb7e['_getAttributeKey'](_0x5cbd0f));for(const _0x581b76 of _0x1dfdea)'todo'!=_0x581b76['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5cfb7e['_findSuggestions'](_0x581b76['getFirstRange'](),'attribute')['find'](_0x250a1a=>'listType'===_0x5cfb7e['_getAttributeKey'](_0x250a1a['suggestion']))||(_0xe2e0c6['removeMarker'](_0x581b76['getFirstMarker']()),_0xebb7e0=!0x0));return _0xebb7e0;})),_0x5cfb7e['descriptionFactory']['registerAttributeLabel']('listIndent',yR(_0x595c19,'FORMAT_INDENT'));const _0x30b18f={'type':'format','content':''};_0x5cfb7e['descriptionFactory']['registerDescriptionCallback'](_0x15ddf5=>{const {data:_0x3533de}=_0x15ddf5;if(!_0x3533de||'listType'!=_0x3533de['key'])return;let _0x5e4918=_0x15ddf5['head'];for(;_0x5e4918;){if(_0x5e4918['data']&&(('listStyle'==_0x5e4918['data']['key']||'listMarkerStyle'==_0x5e4918['data']['key'])&&(_0x5e4918['data']['newValue']&&'default'!=_0x5e4918['data']['newValue']||'default'!=_0x5e4918['data']['oldValue']&&!_0x3533de['newValue'])||!_0x5ebfa6&&'$elementName'==_0x5e4918['data']['key']))return _0x30b18f;_0x5e4918=_0x5e4918['next'];}if(null==_0x3533de['newValue'])switch(_0x3533de['oldValue']){case'bulleted':return _0x154246(yR(_0x595c19,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x154246(yR(_0x595c19,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x154246(yR(_0x595c19,'ELEMENT_TODO_LIST'));}switch(_0x3533de['newValue']){case'bulleted':return _0x19a675(yR(_0x595c19,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x19a675(yR(_0x595c19,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x19a675(yR(_0x595c19,'ELEMENT_TODO_LIST'));}}),_0x5cfb7e['descriptionFactory']['registerDescriptionCallback'](_0x48dae8=>{const {data:_0x37e4ad}=_0x48dae8;if(_0x37e4ad&&'listIndent'==_0x37e4ad['key'])return null==_0x37e4ad['newValue']||null==_0x37e4ad['oldValue']&&0x0==_0x37e4ad['newValue']?_0x30b18f:void 0x0;}),_0x5cfb7e['descriptionFactory']['registerDescriptionCallback'](_0x5b3284=>{if('attribute'!=_0x5b3284['type'])return;const {data:_0x3a9b23}=_0x5b3284;if(!_0x3a9b23||'listItemId'!=_0x3a9b23['key'])return;const _0x49c99f=jR(_0x5b3284);return'newValue'==_0x49c99f?{'type':'format','content':yR(_0x595c19,'*Merge:*\x20list\x20item')}:'oldValue'==_0x49c99f?{'type':'format','content':yR(_0x595c19,'*Split:*\x20list\x20item')}:_0x30b18f;}),_0x5604dc['model']['document']['registerPostFixer'](_0x55efea=>this['listItemIdFixer'](_0x55efea)),_0x5604dc['model']['document']['registerPostFixer'](_0x32ce27=>this['noTrackChangesFixer'](_0x32ce27)),_0x5604dc['model']['document']['on']('change:data',(_0x335d0e,_0x35ee45)=>{if(_0x35ee45['isUndo']||!_0x35ee45['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x36efb9){if(_0x36efb9['batch']['isUndo']||!_0x36efb9['batch']['isLocal'])return!0x1;let _0x528eb4=!0x1;const _0xe287a6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18803e=>_0x18803e['data']&&'listItemId'==_0x18803e['data']['key'])['filter'](_0x36c973=>_0x36c973['data']['newValue']&&_0x36c973['data']['oldValue']);for(const _0x17b55f of _0xe287a6)jR(_0x17b55f)||(_0x36efb9['removeMarker'](_0x17b55f['getFirstMarker']()),_0x528eb4=!0x0);return _0x528eb4;}['noTrackChangesFixer'](_0x314949){if(_0x314949['batch']['isUndo']||!_0x314949['batch']['isLocal'])return!0x1;const _0x1e3192=this['editor']['model']['document']['differ'],_0x245330=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x245330['trackChangesCommand']['value'])return!0x1;let _0x494492=!0x1;const _0x382eec=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x4ec8e8=_0x1e3192['getChanges']()['filter'](_0x5051bd=>'attribute'==_0x5051bd['type'])['filter'](_0x2e14ed=>_0x382eec['has'](_0x2e14ed['attributeKey']));if(0x0==_0x4ec8e8['length'])return _0x494492;const _0x2b5212=new Set(_0x1e3192['getMarkersToAdd']()['filter'](_0x5411ef=>{if(!_0x5411ef['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x4c6a0f=Ll(_0x5411ef['name'])['subType']['split']('|')[0x0];return _0x382eec['has'](_0x4c6a0f);})['map'](_0x1ddb8a=>Ll(_0x1ddb8a['name'])['id']));for(const _0x16f6b3 of _0x4ec8e8){const _0x44a2cf=_0x245330['_findSuggestions'](_0x16f6b3['range'],'attribute')['filter'](_0x272499=>{if(_0x272499['meta']['isNextTo'])return!0x1;if(_0x2b5212['has'](_0x272499['suggestion']['id']))return!0x1;const _0x2019e1=_0x245330['_getAttributeKey'](_0x272499['suggestion']);return _0x382eec['has'](_0x2019e1);})['map'](_0x18e0a6=>_0x18e0a6['suggestion']);if(_0x44a2cf['length']){for(const _0x3b410a of _0x44a2cf)_0x314949['removeMarker'](_0x3b410a['getFirstMarker']());_0x494492=!0x0;}}return _0x494492;}['assureChains'](){const _0x3329d7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x207311=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x4a5f0d;const _0x2c4c0f=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x15bd3d=>{if(_0x15bd3d['data']['oldRange']||!_0x15bd3d['data']['newRange'])return null;if(!_0x15bd3d['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x41d064}=Ll(_0x15bd3d['name']);if(!_0x3329d7['hasSuggestion'](_0x41d064))return null;const _0x5fa52=_0x3329d7['getSuggestion'](_0x41d064);return _0x207311['includes'](_0x5fa52['data']['key']);})['map'](_0x5e2336=>{const {id:_0x4cf393}=Ll(_0x5e2336['name']),_0x696ae2=_0x3329d7['getSuggestion'](_0x4cf393);return _0x4a5f0d=_0x696ae2['attributes']['groupId'],_0x696ae2['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2c4c0f['size'])return;const _0x2cf67d=_0x3329d7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ad6d8=>'attribute'==_0x2ad6d8['type']&&_0x2ad6d8['data']&&_0x207311['includes'](_0x2ad6d8['data']['key'])&&_0x2ad6d8['attributes']['groupId']!=_0x4a5f0d)['map'](_0x2a6c22=>({'listItem':_0x2a6c22['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2a6c22['attributes']['groupId']})),_0x1da563=new Set();for(const {groupId:_0x5321b1,listItem:_0x222a0f}of _0x2cf67d)_0x2c4c0f['has'](_0x222a0f)&&_0x1da563['add'](_0x5321b1);for(const _0x1ab87e of _0x3329d7['getSuggestions']())_0x1da563['has'](_0x1ab87e['attributes']['groupId'])&&_0x1ab87e['setAttribute']('groupId',_0x4a5f0d);}_supportLegacySuggestions(){const _0x3cbf85=this['editor'],_0x310e69=_0x3cbf85['locale'],_0xde4631=_0x3cbf85['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xde4631['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x450e5f,_0x1b3157){const _0x5e2917=[];for(let _0x1dbc0a of _0x450e5f)_0x1dbc0a['start']['nodeAfter']===_0x1dbc0a['end']['parent']&&(_0x1dbc0a=_0x3cbf85['model']['createRange'](_0x3cbf85['model']['createPositionAt'](_0x1dbc0a['start']['nodeAfter'],0x0))),_0x5e2917['push'](_0x1dbc0a);_0x3cbf85['model']['change'](_0x473e24=>{const _0x259e5c=_0x3cbf85['model']['document']['selection'],_0x4a1fda=Array['from'](_0x259e5c['getRanges']())['map'](_0x43032a=>_0x2a6d0b['fromRange'](_0x43032a));_0x473e24['setSelection'](_0x5e2917),_0x3cbf85['commands']['get'](_0x1b3157['commandName'])['refresh'](),_0x1b3157['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3cbf85['execute'](_0x1b3157['commandName'],..._0x1b3157['commandParams']),_0x473e24['setSelection'](_0x4a1fda);for(const _0x50d616 of _0x4a1fda)_0x50d616['detach']();});}),_0xde4631['descriptionFactory']['registerElementLabel'](function(_0x1b9933){const _0x410721=!_0x3cbf85['model']['schema']['isObject'](_0x1b9933),_0x4b51cf=_0x1b9933['previousSibling'],_0x33b695=_0x1b9933['nextSibling'],_0xf7b2a5=_0x1b9933['getAttribute']('listItemId'),_0x5687e8=!_0x4b51cf||_0x4b51cf['getAttribute']('listItemId')!==_0xf7b2a5,_0x5dc7a2=!_0x33b695||_0x33b695['getAttribute']('listItemId')!==_0xf7b2a5;return _0x410721&&Boolean(_0xf7b2a5)&&_0x5687e8&&_0x5dc7a2;},_0x3a8cfb=>yR(_0x310e69,'ELEMENT_LIST_ITEM',_0x3a8cfb));}_registerLegacyDescription(){const _0x15a4dc=this['editor'],_0x3320da=_0x15a4dc['locale'];function _0x208d0a(_0xd4299){const _0x4022c3=_0x15a4dc['commands']['get']('bulletedList')['value'],_0x38f8ac=_0x15a4dc['commands']['get']('numberedList')['value'];return'numberedList'===_0xd4299?_0x4022c3:_0x38f8ac;}_0x15a4dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1ccf63){if('formatBlock'!=_0x1ccf63['type'])return;const {data:_0x11f654}=_0x1ccf63;if(!_0x11f654)return;let _0x191d48,_0x3e16c9,_0x6528b9,_0x1f640e;switch(_0x11f654['commandName']){case'bulletedList':_0x6528b9=_0x11f654['commandParams'][0x0]['forceValue'],_0x1f640e=_0x208d0a(_0x11f654['commandName']),_0x191d48=_0x6528b9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1f640e&&_0x15a4dc['config']['get']('list.multiBlock')||(_0x191d48='*Change\x20to:*\x20%0'),_0x3e16c9={'type':'format','content':yR(_0x3320da,_0x191d48,yR(_0x3320da,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x6528b9=_0x11f654['commandParams'][0x0]['forceValue'],_0x1f640e=_0x208d0a(_0x11f654['commandName']),_0x191d48=_0x6528b9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1f640e&&_0x15a4dc['config']['get']('list.multiBlock')||(_0x191d48='*Change\x20to:*\x20%0'),_0x3e16c9={'type':'format','content':yR(_0x3320da,_0x191d48,yR(_0x3320da,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x191d48='*Indent:*\x20%0',_0x3e16c9={'type':'format','content':yR(_0x3320da,_0x191d48,yR(_0x3320da,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x191d48=function(_0x32d852){const _0x3f25aa=_0x32d852['getFirstRange']();let _0x5caaad=_0x3f25aa['start']['nodeAfter'];for(;_0x5caaad&&_0x3f25aa['containsItem'](_0x5caaad);){if(_0x5caaad['getAttribute']('listIndent')>0x0)return!0x1;_0x5caaad=_0x5caaad['nextSibling'];}return!0x0;}(_0x1ccf63)?yR(_0x3320da,'*Format:*\x20remove\x20from\x20%0',yR(_0x3320da,function(_0x6fac1c){return'ELEMENT_'+_0x6fac1c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1ccf63))):yR(_0x3320da,'*Outdent:*\x20%0',yR(_0x3320da,'ELEMENT_LIST_ITEM')),_0x3e16c9={'type':'format','content':_0x191d48};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x11f654['multipleBlocks']&&(_0x191d48='*Merge:*\x20%0',_0x3e16c9={'type':'deletion','content':yR(_0x3320da,_0x191d48,yR(_0x3320da,'ELEMENT_LIST_ITEM'))});}return _0x3e16c9;});}};function jR(_0x185d36){let _0x493d43=_0x185d36['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x493d43;){const _0x28de04=_0x493d43['getAttribute']('listItemId');if(!_0x28de04)return!0x1;if(_0x28de04==_0x185d36['data']['newValue'])return'newValue';if(_0x28de04==_0x185d36['data']['oldValue'])return'oldValue';_0x493d43=_0x493d43['previousSibling'];}return!0x1;}var UR=class extends _0x11fe30{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x179499=this['editor']['config']['get']('list.properties'),_0xc0df7b=this['editor']['plugins']['get']('TrackChangesEditing');_0x179499['styles']&&_0xc0df7b['enableDefaultAttributesIntegration']('listStyle'),_0x179499['reversed']&&_0xc0df7b['enableDefaultAttributesIntegration']('listReversed'),_0x179499['startIndex']&&_0xc0df7b['enableDefaultAttributesIntegration']('listStart');const _0x28a2de={'type':'format','content':''};_0xc0df7b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xf50b90=this['editor']['locale'];_0xc0df7b['descriptionFactory']['registerAttributeLabel']('listReversed',yR(_0xf50b90,'FORMAT_LIST_REVERSED')),_0xc0df7b['descriptionFactory']['registerDescriptionCallback'](_0x3f9fc4=>{const {data:_0x12dfb1}=_0x3f9fc4;if(_0x12dfb1&&'listReversed'==_0x12dfb1['key'])return null==_0x12dfb1['newValue']||0x0==_0x12dfb1['newValue']&&null==_0x12dfb1['oldValue']?_0x28a2de:void 0x0;}),_0xc0df7b['descriptionFactory']['registerAttributeLabel']('listStart',yR(_0xf50b90,'FORMAT_LIST_START')),_0xc0df7b['descriptionFactory']['registerDescriptionCallback'](_0x3826ff=>{const {data:_0x2889c9}=_0x3826ff;if(_0x2889c9&&'listStart'==_0x2889c9['key'])return null==_0x2889c9['newValue']||0x1==_0x2889c9['newValue']&&null==_0x2889c9['oldValue']?_0x28a2de:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x725841=>{if(_0x725841['batch']['isUndo'])return!0x1;let _0x50d175=!0x1;const _0xbb5e0d=_0xc0df7b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31075a=>{const _0x5ee657=_0xc0df7b['_getAttributeKey'](_0x31075a);return'listStart'==_0x5ee657||'listReversed'==_0x5ee657;});for(const _0x4397fb of _0xbb5e0d){const _0x4d9ef2=_0x4397fb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x4d9ef2&&'customNumbered'!=_0x4d9ef2&&(_0xc0df7b['_findSuggestions'](_0x4397fb['getFirstRange'](),'attribute')['find'](_0x5b7aa2=>'listType'==_0xc0df7b['_getAttributeKey'](_0x5b7aa2['suggestion']))||(_0x725841['removeMarker'](_0x4397fb['getFirstMarker']()),_0x50d175=!0x0));}return _0x50d175;}),this['_registerLegacyDescription']();}handleDescriptions(_0x3cfff0){const _0x3d010e=this['editor']['locale'],{data:_0x161e95}=_0x3cfff0,_0x3cb100={'type':'format','content':''};if(!_0x161e95||'listStyle'!=_0x161e95['key'])return;if(!_0x161e95['oldValue'])return'default'==_0x161e95['newValue']?_0x3cb100:{'type':'format','content':''+yR(_0x3d010e,'*Set\x20format:*\x20%0',yR(_0x3d010e,this['_getTranslationKeyForListStyle'](_0x161e95['newValue'])))};if(!_0x161e95['newValue']){if('default'==_0x161e95['oldValue'])return _0x3cb100;let _0x3fe88a=_0x3cfff0['head'];for(;_0x3fe88a;){if(_0x3fe88a['data']&&'listType'==_0x3fe88a['data']['key']&&_0x3fe88a['data']['newValue'])return _0x3cb100;_0x3fe88a=_0x3fe88a['next'];}return{'type':'format','content':''+yR(_0x3d010e,'*Remove\x20format:*\x20%0',yR(_0x3d010e,this['_getTranslationKeyForListStyle'](_0x161e95['oldValue'])))};}if('default'!=_0x161e95['newValue'])return{'type':'format','content':''+yR(_0x3d010e,'*Set\x20format:*\x20%0',yR(_0x3d010e,this['_getTranslationKeyForListStyle'](_0x161e95['newValue'])))};let _0x413001=_0x3cfff0['head'];for(;_0x413001;){if(_0x413001['data']&&'listType'==_0x413001['data']['key']&&_0x413001['data']['newValue']&&_0x413001['data']['oldValue'])return _0x3cb100;_0x413001=_0x413001['next'];}return{'type':'format','content':yR(_0x3d010e,'*Set\x20format:*\x20%0',yR(_0x3d010e,'ELEMENT_'+_0x3cfff0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x39f53b=this['editor'],_0x3eac2a=_0x39f53b['locale'];_0x39f53b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40d827=>{if('formatBlock'!=_0x40d827['type'])return;const {data:_0x282b20}=_0x40d827;if(!_0x282b20)return;let _0x3d76de,_0x3f2896;switch(_0x282b20['commandName']){case'listStyle':_0x3d76de='*Change\x20to:*\x20%0',_0x3f2896={'type':'format','content':yR(_0x3eac2a,_0x3d76de,yR(_0x3eac2a,this['_getTranslationKeyForListStyle'](_0x282b20['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3d76de=_0x282b20['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3f2896={'type':'format','content':yR(_0x3eac2a,_0x3d76de)};break;case'listStart':_0x3d76de='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3f2896={'type':'format','content':yR(_0x3eac2a,_0x3d76de,_0x282b20['commandParams'][0x0]['startIndex'])};}return _0x3f2896;});}_getTranslationKeyForListStyle(_0x4997bc){return'ELEMENT_'+(_0x1b3936=_0x4997bc,VR['includes'](_0x1b3936)?'bulleted':BR['includes'](_0x1b3936)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x4997bc['toUpperCase']()['replace'](/-/g,'_');var _0x1b3936;}};const VR=['disc','circle','square'],BR=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var HR=class extends _0x11fe30{afterInit(){const _0x543b9a=this['editor'];_0x543b9a['commands']['get']('emoji')&&_0x543b9a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},FR=class extends _0x11fe30{static get requires(){return[_0x32f1b6];}init(){const _0x53e8e9=this['editor'],_0x52f935=_0x53e8e9['plugins']['get']('TrackChangesEditing'),_0x57aad0=_0x53e8e9['commands']['get']('enter');_0x52f935['enableCommand']('enter',()=>{_0x53e8e9['model']['change'](_0x5a582c=>{const _0x3f08f1=_0x53e8e9['model']['document']['selection'],_0x37f0e1=_0x3f08f1['getFirstPosition'](),_0x1093c1=_0x2a6d0b['fromRange'](_0x3f08f1['getFirstRange']());if(_0x57aad0['enterBlock'](_0x5a582c)){const _0xe005b9=_0x53e8e9['model']['createPositionAt'](_0x37f0e1['parent']['nextSibling'],0x0),_0x3fe259=_0x5a582c['createRange'](_0x37f0e1,_0xe005b9);_0x52f935['markInsertion'](_0x3fe259);}else _0x5a582c['setSelection'](_0x5a582c['createRange'](_0x1093c1['end']));_0x1093c1['detach'](),_0x57aad0['fire']('afterExecute',{'writer':_0x5a582c});});});}},ZR=class extends _0x11fe30{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1996bf=this['editor']['plugins']['get']('TrackChangesEditing');_0x1996bf['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1996bf['enableCommand']('findNext'),_0x1996bf['enableCommand']('findPrevious'),_0x1996bf['enableCommand']('replace'),_0x1996bf['enableCommand']('replaceAll');}['handleFindCommand'](_0x36af6a,_0x3ddead,_0x48b4d0={}){const _0x5419e2=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x36af6a(_0x287405=>{let _0x451eae=('string'==typeof _0x3ddead?_0x5419e2['findByTextCallback'](_0x3ddead,_0x48b4d0):_0x3ddead)(_0x287405);Array['isArray'](_0x451eae)&&(_0x451eae={'results':_0x451eae,'searchText':'string'==typeof _0x3ddead?_0x3ddead:''});const _0x3f4ef4=_0x451eae['results']['filter'](_0x5677ac=>!0x1===this['_isInDeletionRange'](_0x5677ac,_0x287405['item']));return{..._0x451eae,'results':_0x3f4ef4};},_0x48b4d0);}_isInDeletionRange(_0x24bead,_0x2916ae){const _0x5751ce=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2916ae,_0x24bead['start']),this['editor']['model']['createPositionAt'](_0x2916ae,_0x24bead['end']));for(const _0x365a53 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5751ce['getIntersection'](_0x365a53['getRange']()))return!0x0;return!0x1;}};const GR=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var XR=class extends _0x11fe30{afterInit(){const _0x41552d=this['editor']['locale'],_0x31cc69=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5b7d0d,commandName:_0xbe7604}of GR)this['editor']['plugins']['has'](_0x5b7d0d)&&_0x31cc69['enableDefaultAttributesIntegration'](_0xbe7604);_0x31cc69['descriptionFactory']['registerAttributeLabel']('fontSize',yR(_0x41552d,'FORMAT_FONT_SIZE')),_0x31cc69['descriptionFactory']['registerAttributeLabel']('fontFamily',yR(_0x41552d,'FORMAT_FONT_FAMILY')),_0x31cc69['descriptionFactory']['registerAttributeLabel']('fontColor',yR(_0x41552d,'FORMAT_FONT_COLOR')),_0x31cc69['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',yR(_0x41552d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xc20ea2=this['editor'],_0x53ca99=_0xc20ea2['locale'];_0xc20ea2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa5df4=>{const _0x5d6900=_0x53ca99['t'];if('formatInline'!=_0xa5df4['type'])return;const {data:_0x3dd6cf}=_0xa5df4;if(null!=_0x3dd6cf){if('fontSize'==_0x3dd6cf['commandName']){const _0x460429=_0x3dd6cf['commandParams'][0x0]['value'];if(_0x460429){const _0x2a8293=_0x5d6900(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x439d10=>_0x439d10['model']==_0x460429)['title'])['toLowerCase']();return{'type':'format','content':yR(_0x53ca99,'*Set\x20font\x20size:*\x20%0',_0x2a8293)};}return{'type':'format','content':yR(_0x53ca99,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3dd6cf['commandName']){const _0x569079=_0x3dd6cf['commandParams'][0x0]['value'];return _0x569079?{'type':'format','content':yR(_0x53ca99,'*Set\x20font\x20family:*\x20%0',_0x569079)}:{'type':'format','content':yR(_0x53ca99,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3dd6cf['commandName']){const _0x313baf=_0x3dd6cf['commandParams'][0x0]['value'];if(_0x313baf){const _0x592b08=_0x4fccd5(this['editor']['config']['get']('fontColor.colors'))['find'](_0x84356f=>_0x84356f['model']==_0x313baf);let _0x201d14=_0x313baf,_0x3028a7='';return _0x592b08&&(_0x201d14=_0x592b08['label'],_0x3028a7=_0x5d6900(_0x201d14)['toLowerCase']()),{'type':'format','content':yR(_0x53ca99,'*Set\x20font\x20color:*\x20%0',_0x3028a7)['trim'](),'color':{'value':_0x313baf,'title':_0x3028a7||_0x201d14}};}return{'type':'format','content':yR(_0x53ca99,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3dd6cf['commandName']){const _0x586c6=_0x3dd6cf['commandParams'][0x0]['value'];if(_0x586c6){const _0x4b63ee=_0x4fccd5(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x282689=>_0x282689['model']==_0x586c6);let _0x3d5c2f=_0x586c6,_0x4027a1='';return _0x4b63ee&&(_0x3d5c2f=_0x4b63ee['label'],_0x4027a1=_0x5d6900(_0x3d5c2f)['toLowerCase']()),{'type':'format','content':yR(_0x53ca99,'*Set\x20font\x20background\x20color:*\x20%0',_0x4027a1)['trim'](),'color':{'value':_0x586c6,'title':_0x4027a1||_0x3d5c2f}};}return{'type':'format','content':yR(_0x53ca99,'*Reset\x20font\x20background\x20color*')};}}});}},qR=class extends _0x11fe30{afterInit(){const {plugins:_0x5e2570}=this['editor'];_0x5e2570['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x5e2570['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x4c55ee,plugins:_0x5885e6,commands:_0x1d304c}=this['editor'],_0x90bcb6=_0x5885e6['get']('TrackChangesEditing');_0x1d304c['get']('footnotesStyle')&&_0x90bcb6['enableDefaultAttributesIntegration']('footnotesStyle'),_0x1d304c['get']('footnotesStart')&&_0x90bcb6['enableDefaultAttributesIntegration']('footnotesStart'),_0x90bcb6['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',yR(_0x4c55ee,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x90bcb6['descriptionFactory']['registerAttributeLabel']('footnotesListStart',yR(_0x4c55ee,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x1e47c8=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0xd65b82,commands:_0x52bef1}=this['editor'];_0x52bef1['get']('insertFootnote')&&_0x1e47c8['enableCommand']('insertFootnote'),_0x1e47c8['descriptionFactory']['registerElementLabel']('footnoteRef',_0x4977c6=>yR(_0xd65b82,'ELEMENT_FOOTNOTE_REF',_0x4977c6)),_0x1e47c8['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x56f9f0=>yR(_0xd65b82,'ELEMENT_FOOTNOTE_DEFINITION',_0x56f9f0)),_0x1e47c8['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0xb66fe7=>yR(_0xd65b82,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0xb66fe7));}},WR=class extends _0x11fe30{afterInit(){const _0x470a8b=this['editor'],_0x46c983=_0x470a8b['plugins']['get']('TrackChangesEditing'),_0x38e814=_0x470a8b['commands']['get']('copyFormat'),_0x79c232=_0x470a8b['commands']['get']('pasteFormat');_0x38e814&&_0x79c232&&(_0x46c983['enableDefaultAttributesIntegration']('pasteFormat'),_0x46c983['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x30c48c=this['editor'],_0x30bd74=_0x30c48c['locale'];_0x30c48c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x323f09=>{if('formatBlock'!=_0x323f09['type']&&'formatInline'!=_0x323f09['type'])return;const {data:_0x248961}=_0x323f09;if(_0x248961&&'pasteFormat'===_0x248961['commandName']){const _0x192bac=[],_0x574e7d=_0x248961['commandParams'][0x0];for(const [_0x176b64,_0x18a0b8]of Object['entries'](_0x574e7d))_0x192bac['push'](zR(_0x30c48c,_0x176b64,_0x18a0b8));return _0x192bac['length']?{'type':'format','content':yR(_0x30bd74,'*Set\x20format\x20to:*\x20%0',_0x192bac['join'](',\x20'))}:{'type':'format','content':yR(_0x30bd74,'*Remove\x20all\x20formatting*')};}});}};function zR(_0x635e09,_0x6648d6,_0x59caef){const _0xfb6e89=_0x635e09['locale']['t'],_0x2bf2d8=_0x6648d6['split'](/(?=[A-Z])/)['join']('\x20'),_0x16f6c9=_0xfb6e89(_0x2bf2d8['charAt'](0x0)['toUpperCase']()+_0x2bf2d8['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x59caef)return _0x16f6c9;if('fontColor'===_0x6648d6||'fontBackgroundColor'===_0x6648d6){const _0x2d6650=_0x4fccd5(_0x635e09['config']['get']('fontColor.colors'))['find'](_0x37b685=>_0x37b685['model']==_0x59caef);return _0x16f6c9+'\x20('+(_0x2d6650?_0xfb6e89(_0x2d6650['label'])['toLowerCase']():_0x59caef)+')';}if('fontSize'===_0x6648d6&&isNaN(parseFloat(_0x59caef))){const _0x598151=_0x635e09['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x635e09['config']['get']('fontSize.options'))['find'](_0x5a194b=>_0x5a194b['model']==_0x59caef);return _0x16f6c9+'\x20('+(_0x598151?_0xfb6e89(_0x598151['title'])['toLowerCase']():_0x59caef)+')';}return _0x16f6c9+'\x20('+_0x59caef+')';}var YR=class extends _0x11fe30{afterInit(){const _0x3eeb51=this['editor'];if(!_0x3eeb51['plugins']['has']('GeneralHtmlSupport')||!_0x3eeb51['plugins']['has']('DataSchema'))return;const _0x2652ee=_0x3eeb51['plugins']['get']('TrackChangesEditing'),_0x34e59e=_0x3eeb51['plugins']['get']('GeneralHtmlSupport'),_0x35d692=_0x3eeb51['plugins']['get']('DataSchema'),_0x499942=_0x3eeb51['locale'],_0x2d9bf7=new Set(['htmlContent']);for(const _0x5dff3b of _0x35d692['getDefinitionsForView'](/.*/,!0x1)){const _0x139a11=_0x5dff3b['view'],_0x463061=_0x34e59e['getGhsAttributeNameForElement'](_0x139a11);_0x2d9bf7['add'](_0x463061),!_0x5dff3b['isInline']||_0x5dff3b['isObject']||'appliesToBlock'in _0x5dff3b&&_0x5dff3b['appliesToBlock']||_0x2652ee['descriptionFactory']['registerAttributeLabel'](_0x463061,_0x139a11),_0x5dff3b['model']['startsWith']('html')&&_0x2652ee['descriptionFactory']['registerElementLabel'](_0x5dff3b['model'],_0x243bd9=>yR(_0x499942,'ELEMENT_HTML_TAG',[_0x243bd9,_0x139a11]));}_0x2652ee['descriptionFactory']['registerAttributeLabel']('htmlContent',yR(_0x499942,'FORMAT_RAW_HTML_CONTENT')),_0x2652ee['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',yR(_0x499942,'FORMAT_HTML_LIST_ITEM')),_0x2652ee['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',yR(_0x499942,'FORMAT_HTML_BULLETED_LIST')),_0x2652ee['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',yR(_0x499942,'FORMAT_HTML_NUMBERED_LIST')),_0x2652ee['descriptionFactory']['registerDescriptionCallback'](_0x354288=>{if('attribute'!==_0x354288['type'])return;const _0x4b80ec=_0x354288['data'];if(!_0x4b80ec||!_0x2d9bf7['has'](_0x4b80ec['key']))return;if('htmlContent'===_0x4b80ec['key'])return{'type':'format','content':yR(_0x499942,'*Change\x20%0\x20content*',yR(_0x499942,'ELEMENT_RAW_HTML'))};const {setItems:_0xf65524,removeItems:_0x2cc1c5}=function(_0x3eeb81,_0x41f24e,_0x5a0e8f){const _0x508013=[],_0x1ed4bb=[],_0x17198b=_0x3eeb81['styles']??{},_0x43bcee=_0x41f24e['styles']??{};for(const _0x4b3153 of new Set([...Object['keys'](_0x17198b),...Object['keys'](_0x43bcee)]))_0x17198b[_0x4b3153]!==_0x43bcee[_0x4b3153]&&(void 0x0===_0x43bcee[_0x4b3153]?_0x1ed4bb['push'](_0x4b3153):_0x508013['push'](_0x4b3153+'\x20('+_0x43bcee[_0x4b3153]+')'));const _0x1ede09=yR(_0x5a0e8f,'FORMAT_HTML_CLASS'),_0x5362c8=new Set(_0x3eeb81['classes']??[]),_0x4f6b59=new Set(_0x41f24e['classes']??[]),_0x47a137=[..._0x4f6b59]['some'](_0x38b9c2=>!_0x5362c8['has'](_0x38b9c2)),_0x5da031=[..._0x5362c8]['some'](_0x32d22d=>!_0x4f6b59['has'](_0x32d22d));_0x47a137&&_0x508013['push'](_0x1ede09),_0x5da031&&_0x1ed4bb['push'](_0x1ede09);const _0x5f2e04=yR(_0x5a0e8f,'FORMAT_HTML_ATTRIBUTE'),_0x264d75=_0x3eeb81['attributes']??{},_0x1214e9=_0x41f24e['attributes']??{};let _0x481001=!0x1,_0x597015=!0x1;for(const _0x321fc7 of new Set([...Object['keys'](_0x264d75),...Object['keys'](_0x1214e9)]))_0x264d75[_0x321fc7]!==_0x1214e9[_0x321fc7]&&(void 0x0===_0x1214e9[_0x321fc7]?_0x597015=!0x0:_0x481001=!0x0);return _0x481001&&_0x508013['push'](_0x5f2e04),_0x597015&&_0x1ed4bb['push'](_0x5f2e04),{'setItems':_0x508013,'removeItems':_0x1ed4bb};}(_0x4b80ec['oldValue']??{},_0x4b80ec['newValue']??{},_0x499942);if(!_0xf65524['length']&&!_0x2cc1c5['length'])return;const _0x2491a6=[];return _0xf65524['length']&&_0x2491a6['push'](yR(_0x499942,'*Set\x20format:*\x20%0',_0xf65524['join'](',\x20'))),_0x2cc1c5['length']&&_0x2491a6['push'](yR(_0x499942,'*Remove\x20format:*\x20%0',_0x2cc1c5['join'](',\x20'))),{'type':'format','content':_0x2491a6['join']('\x0a')};});}},KR=class extends _0x11fe30{_headingOptions;afterInit(){const _0x38d0d2=this['editor'];if(!_0x38d0d2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x38d0d2['config']['get']('heading.options');const _0x34baf5=_0x38d0d2['locale'],_0x3b90e7=_0x38d0d2['plugins']['get']('TrackChangesEditing');_0x3b90e7['enableDefaultAttributesIntegration']('heading');for(const _0x44b5dc of this['_headingOptions'])'paragraph'!=_0x44b5dc['model']&&_0x3b90e7['descriptionFactory']['registerElementLabel'](_0x44b5dc['model'],_0x185e88=>{const _0xa07205=this['_getHeadingLevel'](_0x44b5dc['model']);return null!==_0xa07205?_0x44f73b(_0x185e88,_0xa07205):_0x3aad67(_0x185e88,_0x44b5dc['title']);});function _0x44f73b(_0x28a13f,_0x531d8c){return yR(_0x34baf5,'ELEMENT_HEADING',[_0x28a13f,_0x531d8c]);}function _0x3aad67(_0xd787ca,_0x5ab040){return yR(_0x34baf5,'ELEMENT_HEADING_CUSTOM',[_0xd787ca,_0x5ab040]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x22e71d=this['editor'],_0xc8ad07=_0x22e71d['locale'];function _0x122d73(_0x463a07,_0x97e040){return yR(_0xc8ad07,'ELEMENT_HEADING_CUSTOM',[_0x463a07,_0x97e040]);}_0x22e71d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17067e=>{if('formatBlock'!=_0x17067e['type'])return;const {data:_0xe51910}=_0x17067e;if(_0xe51910&&'heading'==_0xe51910['commandName']){const _0x587478=_0xe51910['commandParams'][0x0]['value'],_0x4f669d=this['_getHeadingLevel'](_0x587478);if(null!==_0x4f669d)return{'type':'format','content':yR(_0xc8ad07,'*Change\x20to:*\x20%0',(_0x5e6eb7=0x1,_0x25f4af=_0x4f669d,yR(_0xc8ad07,'ELEMENT_HEADING',[_0x5e6eb7,_0x25f4af])))};const _0x100390=this['_headingOptions']['find'](_0x158a07=>_0x158a07['model']===_0x587478)['title'];return{'type':'format','content':yR(_0xc8ad07,'*Change\x20to:*\x20%0',_0x122d73(0x1,_0x100390))};}var _0x5e6eb7,_0x25f4af;});}_getHeadingLevel(_0xa9cc03){const _0x3f3f16=_0xa9cc03['match'](/^heading(\d+)/);if(_0x3f3f16)return _0x3f3f16[0x1];const _0x117765=this['_headingOptions']?.['find'](_0x713d2a=>_0x713d2a['model']==_0xa9cc03);if(_0x117765&&_0x117765['view']){const _0x286f70=_0x117765['view'],_0x294a0f=(_0x286f70['name']??_0x286f70)['match'](/^h(\d+)/);if(_0x294a0f)return _0x294a0f[0x1];}return null;}},JR=class extends _0x11fe30{afterInit(){const _0x37c6d4=this['editor'];if(!_0x37c6d4['plugins']['has']('HighlightEditing'))return;const _0x555ca8=_0x37c6d4['plugins']['get']('TrackChangesEditing'),_0xb93d6f=_0x37c6d4['locale'];_0x555ca8['enableDefaultAttributesIntegration']('highlight'),_0x555ca8['descriptionFactory']['registerAttributeLabel']('highlight',yR(_0xb93d6f,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2974db=this['editor'],_0x4175e3=_0x2974db['locale'];_0x2974db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5476a9=>{if('formatInline'!=_0x5476a9['type'])return;const {data:_0x1cc313}=_0x5476a9;if(_0x1cc313&&'highlight'==_0x1cc313['commandName']){const _0x257b2b=_0x4175e3['t'],_0x42e8d5=_0x1cc313['commandParams'][0x0]['value'];if(_0x42e8d5){const _0xf2fcfb=_0x2974db['config']['get']('highlight.options')['find'](_0x18cd7a=>_0x18cd7a['model']==_0x42e8d5),_0x4d1725=_0x257b2b(_0xf2fcfb['title'])['toLowerCase']();return{'type':'format','content':yR(_0x4175e3,'*Set\x20highlight:*\x20%0',_0x4d1725),'color':{'value':_0xf2fcfb['color'],'title':_0xf2fcfb['title']}};}return{'type':'format','content':yR(_0x4175e3,'*Remove\x20highlight*',yR(_0x4175e3,'FORMAT_HIGHLIGHT'))};}});}},tP=class extends _0x11fe30{afterInit(){const _0x185678=this['editor'];if(!_0x185678['plugins']['has']('HorizontalLineEditing'))return;_0x185678['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1cbea9=_0x185678['plugins']['get']('TrackChangesEditing'),_0x263d5e=_0x185678['locale'];_0x1cbea9['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1ffa92=>yR(_0x263d5e,'ELEMENT_HORIZONTAL_LINE',_0x1ffa92));}},eP=class extends _0x11fe30{afterInit(){const _0x223fac=this['editor'];if(!_0x223fac['plugins']['has']('HtmlEmbed'))return;const _0x171972=_0x223fac['plugins']['get']('TrackChangesEditing'),_0x20ad78=_0x223fac['locale'];_0x171972['descriptionFactory']['registerElementLabel']('rawHtml',_0x2de17c=>yR(_0x20ad78,'ELEMENT_HTML_EMBED',_0x2de17c)),_0x171972['enableDefaultAttributesIntegration']('htmlEmbed'),_0x171972['descriptionFactory']['registerDescriptionCallback'](_0x5b8be7=>{if('attribute'!=_0x5b8be7['type'])return;const {data:_0x1a7aa3}=_0x5b8be7;if(_0x1a7aa3&&'value'==_0x1a7aa3['key']&&_0x5b8be7['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x393a47=yR(_0x20ad78,'ELEMENT_HTML_EMBED');return{'type':'format','content':yR(_0x20ad78,'*Change\x20%0\x20content*',_0x393a47)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3a3198=this['editor'],_0x381c86=_0x3a3198['locale'];_0x3a3198['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3188a0=>{if('formatBlock'!=_0x3188a0['type'])return;const {data:_0x5a954a}=_0x3188a0;if(_0x5a954a&&'htmlEmbed'==_0x5a954a['commandName']){const _0x34534f=yR(_0x381c86,'ELEMENT_HTML_EMBED');return{'type':'format','content':yR(_0x381c86,'*Change\x20%0\x20content*',_0x34534f)};}});}},iP=class extends _0x11fe30{afterInit(){const _0x181acf=this['editor'];if(!_0x181acf['plugins']['has']('ImageEditing'))return;const _0x20f52f=_0x181acf['plugins']['get']('TrackChangesEditing'),_0x1c1411=_0x181acf['plugins']['get']('ImageUtils'),_0x4a23f6=_0x181acf['locale'];_0x20f52f['enableCommand']('insertImage'),_0x20f52f['descriptionFactory']['registerElementLabel']('imageBlock',_0x1e9b01=>yR(_0x4a23f6,'ELEMENT_IMAGE',_0x1e9b01)),_0x20f52f['descriptionFactory']['registerElementLabel']('imageInline',_0x54b6b7=>yR(_0x4a23f6,'ELEMENT_INLINE_IMAGE',_0x54b6b7)),_0x20f52f['descriptionFactory']['registerElementLabel']('caption',()=>yR(_0x4a23f6,'ELEMENT_CAPTION')),_0x181acf['plugins']['has']('ImageUploadEditing')&&_0x20f52f['enableCommand']('uploadImage'),_0x181acf['plugins']['has']('ImageBlockEditing')&&_0x181acf['plugins']['has']('ImageInlineEditing')&&(_0x20f52f['enableCommand']('imageTypeInline',(_0x171941,_0x101296)=>{const _0x56401f=_0x1c1411['getClosestSelectedImageElement'](_0x181acf['model']['document']['selection']);_0x181acf['model']['change'](()=>{_0x20f52f['markBlockFormat'](_0x56401f,{'commandName':'imageTypeInline','commandParams':[_0x101296]},[],'convertBlockImageToInline');});}),_0x20f52f['enableCommand']('imageTypeBlock',(_0x45d81c,_0x49f439)=>{_0x181acf['model']['change'](_0xfe3be7=>{let _0x1e93de=_0x1c1411['getClosestSelectedImageElement'](_0x181acf['model']['document']['selection']),_0x24e66d=_0xfe3be7['createRangeOn'](_0x1e93de);const _0x54a592=_0x56e15a['fromPosition'](_0x24e66d['start'],'toPrevious'),_0x505932=_0x56e15a['fromPosition'](_0x24e66d['end'],'toNext');_0x20f52f['forceDefaultExecution'](()=>_0x45d81c(_0x49f439)),_0x1e93de=_0x1c1411['getClosestSelectedImageElement'](_0x181acf['model']['document']['selection']),_0x24e66d=_0xfe3be7['createRangeOn'](_0x1e93de);const _0x5723b7=_0xfe3be7['createRange'](_0x54a592,_0x505932);_0x54a592['detach'](),_0x505932['detach'](),_0x20f52f['markBlockFormat'](_0x1e93de,{'commandName':'imageTypeInline','commandParams':[_0x49f439]},[],'convertInlineImageToBlock'),_0x5723b7['start']['isBefore'](_0x24e66d['start'])&&_0x20f52f['markInsertion'](_0xfe3be7['createRange'](_0x5723b7['start'],_0x24e66d['start']),'convertInlineImageToBlock'),_0x24e66d['end']['isBefore'](_0x5723b7['end'])&&_0x20f52f['markInsertion'](_0xfe3be7['createRange'](_0x24e66d['end'],_0x5723b7['end']),'convertInlineImageToBlock');});}),_0x20f52f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x20f52f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x20f52f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x20f52f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x20f52f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x20f52f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x239d08])=>{const _0x8039d3=_0x20f52f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x52310d=_0x239d08['start'],_0x2769a5=_0x239d08['end'];const _0x172bf4=_0x181acf['model']['schema']['getNearestSelectionRange'](_0x52310d,'backward'),_0x38d50a=_0x181acf['model']['schema']['getNearestSelectionRange'](_0x2769a5,'forward');_0x172bf4['isCollapsed']&&(_0x52310d=_0x172bf4['start']),_0x38d50a['isCollapsed']&&(_0x2769a5=_0x38d50a['end']),_0x8039d3([_0x181acf['model']['createRange'](_0x52310d,_0x2769a5)]);}),_0x20f52f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x156ab6),_0x20f52f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x156ab6)),_0x181acf['plugins']['has']('ImageCaptionEditing')&&(_0x20f52f['enableCommand']('toggleImageCaption',(_0x50e009,_0xa08fa9)=>{const _0x1ac29d=_0x181acf['plugins']['get']('ImageCaptionUtils');let _0xcfa0db=_0x1c1411['getClosestSelectedImageElement'](_0x181acf['model']['document']['selection']),_0x28b25f=_0x1ac29d['getCaptionFromImageModelElement'](_0xcfa0db);_0x181acf['model']['change'](()=>{if(_0x28b25f)return void _0x20f52f['markDeletion'](_0x181acf['model']['createRangeOn'](_0x28b25f));const _0x1f9ff0=_0x1c1411['isBlockImage'](_0xcfa0db);_0x50e009(_0xa08fa9),_0xcfa0db=_0x1c1411['getClosestSelectedImageElement'](_0x181acf['model']['document']['selection']),_0x28b25f=_0x1ac29d['getCaptionFromImageModelElement'](_0xcfa0db),_0x20f52f['markInsertion'](_0x181acf['model']['createRangeOn'](_0x28b25f),_0x1f9ff0?null:'imageCaption');});}),_0x20f52f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x156ab6));const _0x4ff7fd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1620b1(_0x4e9f11,_0x4ac407){const _0x18761a=_0x4ff7fd['findIndex'](({type:_0xa52320,subType:_0x19351c})=>_0x4e9f11['type']==_0xa52320&&_0x4e9f11['subType']==_0x19351c),_0x58b614=_0x4ff7fd['findIndex'](({type:_0x42caa0,subType:_0x52190f})=>_0x4ac407['type']==_0x42caa0&&_0x4ac407['subType']==_0x52190f);if(_0x18761a<0x0||_0x58b614<0x0)return!0x1;const _0x5929d3=_0x4e9f11['getFirstRange'](),_0xc80dbb=_0x4ac407['getFirstRange']();if((0x0==_0x18761a||0x1==_0x18761a)&&0x2==_0x58b614&&_0x5929d3['isIntersecting'](_0xc80dbb))return!0x0;if(0x2==_0x18761a&&0x3==_0x58b614){const _0x38dc2a=_0x20f52f['_findSuggestions'](_0x5929d3,'insertion')['filter'](({suggestion:_0x5b80a3,meta:_0x4e6688})=>_0x4e6688['isOwn']&&'convertInlineImageToBlock'==_0x5b80a3['subType']);if(_0x38dc2a['length']>0x1&&_0xc80dbb['end']['isEqual'](_0x5929d3['start']))return!0x0;if(0x1==_0x38dc2a['length']&&(_0x5929d3['start']['isEqual'](_0xc80dbb['end'])||_0x5929d3['end']['isEqual'](_0xc80dbb['start'])))return!0x0;}if(0x3==_0x18761a&&0x3==_0x58b614&&_0x5929d3['start']['isBefore'](_0xc80dbb['start'])){const _0x2c4bd9=_0x5929d3['end']['nodeAfter'],_0x2079be=_0xc80dbb['start']['nodeBefore'];return _0x1c1411['isBlockImage'](_0x2c4bd9)&&_0x2c4bd9===_0x2079be;}return!0x1;}function _0x156ab6(_0x28b062,_0x275ff5){return _0x1620b1(_0x28b062,_0x275ff5)?[_0x28b062,_0x275ff5]:_0x1620b1(_0x275ff5,_0x28b062)?[_0x275ff5,_0x28b062]:null;}_0x181acf['plugins']['has']('ImageResize')&&(_0x20f52f['enableDefaultAttributesIntegration']('resizeImage'),_0x20f52f['descriptionFactory']['registerAttributeLabel']('resizedWidth',yR(_0x4a23f6,'FORMAT_IMAGE_SIZE'))),_0x181acf['plugins']['has']('ImageTextAlternativeEditing')&&_0x20f52f['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x181acf['plugins']['has']('PictureEditing')&&_0x20f52f['descriptionFactory']['registerDescriptionCallback'](_0x54d8cc=>{if('attribute'!=_0x54d8cc['type'])return;const {data:_0x49a94b}=_0x54d8cc;return _0x49a94b&&'sources'==_0x49a94b['key']?{'type':'format','content':''}:void 0x0;}),_0x181acf['plugins']['has']('ImageSizeAttributes')&&_0x20f52f['descriptionFactory']['registerDescriptionCallback'](_0x12d29a=>{if('attribute'!=_0x12d29a['type'])return;const {data:_0x20be73}=_0x12d29a;return!_0x20be73||'width'!=_0x20be73['key']&&'height'!=_0x20be73['key']?void 0x0:{'type':'format','content':''};}),_0x20f52f['descriptionFactory']['registerDescriptionCallback'](_0x50886e=>{if(_0x4ff7fd['find'](({type:_0x4197e0,subType:_0x58ccff})=>_0x50886e['type']==_0x4197e0&&_0x50886e['subType']==_0x58ccff))return _0x50886e['previous']?{}:void 0x0;}),_0x20f52f['descriptionFactory']['registerDescriptionCallback'](_0x3fa744=>{if('insertion'==_0x3fa744['type']||'deletion'==_0x3fa744['type']){const _0x4b6523=_0x3fa744['getContainedElement']();if(_0x4b6523&&_0x4b6523['is']('element','caption'))return{'type':'insertion'==_0x3fa744['type']?'addObject':'removeObject','element':_0x4b6523,'quantity':0x1};}}),_0x20f52f['descriptionFactory']['registerDescriptionCallback'](_0x2ea21c=>'formatBlock'==_0x2ea21c['type']&&'convertInlineImageToBlock'==_0x2ea21c['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2ea21c['type']&&'convertBlockImageToInline'==_0x2ea21c['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x20f52f['descriptionFactory']['registerDescriptionCallback'](_0xd15e30=>{if('attribute'!=_0xd15e30['type'])return;const {data:_0x1d3c3b}=_0xd15e30;if(!_0x1d3c3b||'alt'!=_0x1d3c3b['key'])return;const _0x1b2d4a=_0x1d3c3b['newValue'];return _0x1b2d4a?{'type':'format','content':yR(_0x4a23f6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1b2d4a+'\x22')}:{'type':'format','content':yR(_0x4a23f6,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5165c4=this['editor'],_0x342aa2=_0x5165c4['locale'];_0x5165c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc76d=>{if('formatBlock'!=_0xc76d['type']&&'formatInline'!=_0xc76d['type'])return;const {data:_0x2504ef}=_0xc76d;if(_0x2504ef){if('imageTextAlternative'==_0x2504ef['commandName']){const _0x4ac557=_0x2504ef['commandParams'][0x0]['newValue'];return _0x4ac557?{'type':'format','content':yR(_0x342aa2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4ac557+'\x22')}:{'type':'format','content':yR(_0x342aa2,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2504ef['commandName']){const _0x357765=_0x2504ef['commandParams'][0x0]['width'];return _0x357765?{'type':'format','content':yR(_0x342aa2,'*Set\x20image\x20width:*\x20%0',_0x357765)}:{'type':'format','content':yR(_0x342aa2,'*Reset\x20image\x20width*')};}}});}},sP=class extends _0x11fe30{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3ad062=this['editor']['locale'],_0x3e9f0a=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e9f0a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3e9f0a['descriptionFactory']['registerDescriptionCallback'](_0x5eaa83=>{if('attribute'!=_0x5eaa83['type'])return;const {data:_0x11bb3e}=_0x5eaa83;return _0x11bb3e&&'src'==_0x11bb3e['key']?_0x11bb3e['newValue']&&_0x11bb3e['oldValue']?{'type':'format','content':yR(_0x3ad062,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x404145=this['editor']['plugins']['get']('TrackChangesEditing');_0x404145['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x404145['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x404145['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x404145['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x346e65=this['editor'],_0x590fed=_0x346e65['locale'];_0x346e65['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5934e7=>{if('formatBlock'!=_0x5934e7['type']&&'formatInline'!=_0x5934e7['type'])return;const {data:_0x39ec9b}=_0x5934e7;return _0x39ec9b&&'replaceImageSource'==_0x39ec9b['commandName']?{'type':'format','content':yR(_0x590fed,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},nP=class extends _0x11fe30{afterInit(){const _0x4d064c=this['editor'];if(!_0x4d064c['plugins']['has']('ImageStyleEditing'))return;const _0x891b9b=_0x4d064c['plugins']['get']('TrackChangesEditing'),_0x440ccf=_0x4d064c['plugins']['get']('ImageUtils'),_0x1be771={};_0x891b9b['enableCommand']('imageStyle',(_0x2b2eba,_0x4a448b)=>{const _0x1661b8=_0x4d064c['plugins']['get']('Users')['me'],_0x322075=_0x4d064c['commands']['get']('imageStyle');let _0x39f29a=_0x440ccf['getClosestSelectedImageElement'](_0x4d064c['model']['document']['selection']),_0x1bd7dd=_0x4d064c['model']['createRangeOn'](_0x39f29a),_0x342e52=_0x322075['value'];if(_0x342e52==_0x4a448b['value'])return;if(_0x4a448b['value']&&_0x440ccf['isInlineImage'](_0x39f29a)&&!_0x322075['isStyleEnabled'](_0x4a448b['value']))return;const _0x3f729c={'commandName':'imageStyle','commandParams':[_0x4a448b],'formatGroupId':_0xea66bb()};_0x4d064c['model']['change'](()=>{if(_0x891b9b['getSuggestions']()['filter'](_0x1df92a=>_0x1df92a['isInContent']&&_0x1661b8==_0x1df92a['author']&&('formatBlock'==_0x1df92a['type']||'formatInline'==_0x1df92a['type'])&&('imageStylePreApply'==_0x1df92a['subType']||'imageStylePostApply'==_0x1df92a['subType'])&&_0x1df92a['getFirstRange']()['isEqual'](_0x1bd7dd))['forEach'](_0x4ea87e=>_0x891b9b['discardSuggestion'](_0x4ea87e['head'])),_0x39f29a=_0x440ccf['getClosestSelectedImageElement'](_0x4d064c['model']['document']['selection']),_0x1bd7dd=_0x4d064c['model']['createRangeOn'](_0x39f29a),_0x322075['refresh'](),_0x4d064c['commands']['get']('imageTypeInline')['refresh'](),_0x4d064c['commands']['get']('imageTypeBlock')['refresh'](),_0x342e52=_0x322075['value'],_0x342e52!=_0x4a448b['value'])return _0x440ccf['isInlineImage'](_0x39f29a)&&_0x322075['shouldConvertImageType'](_0x4a448b['value'],_0x39f29a)?(_0x2b2eba({..._0x4a448b,'setImageSizes':!0x1}),_0x39f29a=_0x440ccf['getClosestSelectedImageElement'](_0x4d064c['model']['document']['selection']),void _0x891b9b['markBlockFormat'](_0x39f29a,{..._0x3f729c,'commandReversedParams':[{'value':_0x342e52||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x440ccf['isBlockImage'](_0x39f29a)?_0x891b9b['markBlockFormat'](_0x39f29a,_0x3f729c,[],'imageStylePostApply'):_0x891b9b['markInlineFormat'](_0x1bd7dd,_0x3f729c,'imageStylePostApply'));});});for(const _0x1f5ad3 of _0x4d064c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1be771[_0x1f5ad3['name']]=_0x1f5ad3['title']['toLowerCase']();_0x891b9b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x891b9b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x891b9b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x891b9b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4d9927])=>{_0x440ccf['setImageNaturalSizeAttributes'](_0x4d9927['getContainedElement']());}),_0x891b9b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1bd915,_0x2ab14d)=>{_0x891b9b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1bd915,{'commandName':_0x2ab14d['commandName'],'commandParams':_0x2ab14d['commandReversedParams']});}),_0x891b9b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5df150,_0x3d453c){return _0x37fda1(_0x5df150,_0x3d453c)?[_0x5df150,_0x3d453c]:_0x37fda1(_0x3d453c,_0x5df150)?[_0x3d453c,_0x5df150]:null;});const _0x27dbed=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x37fda1(_0x31f1fd,_0x11ef2b){const _0xf90799=_0x27dbed['findIndex'](({type:_0x449eda,subType:_0x3eefdf})=>_0x31f1fd['type']==_0x449eda&&_0x31f1fd['subType']==_0x3eefdf),_0x3178d8=_0x27dbed['findIndex'](({type:_0x5e2fd4,subType:_0x3119f7})=>_0x11ef2b['type']==_0x5e2fd4&&_0x11ef2b['subType']==_0x3119f7);if(_0xf90799<0x0||_0x3178d8<0x0)return!0x1;const _0x5c3a54=_0x31f1fd['getFirstRange'](),_0x7001dc=_0x11ef2b['getFirstRange']();if((0x0==_0xf90799||0x1==_0xf90799)&&0x2==_0x3178d8&&_0x5c3a54['isIntersecting'](_0x7001dc))return!0x0;if(0x2==_0xf90799&&0x3==_0x3178d8){const _0x223a9a=_0x891b9b['_findSuggestions'](_0x5c3a54,'insertion')['filter'](({suggestion:_0x390325,meta:_0x38061a})=>_0x38061a['isOwn']&&'convertInlineImageToBlock'==_0x390325['subType']);if(_0x223a9a['length']>0x1&&_0x7001dc['end']['isEqual'](_0x5c3a54['start']))return!0x0;if(0x1==_0x223a9a['length']&&(_0x5c3a54['start']['isEqual'](_0x7001dc['end'])||_0x5c3a54['end']['isEqual'](_0x7001dc['start'])))return!0x0;}if(0x3==_0xf90799&&0x3==_0x3178d8&&_0x5c3a54['start']['isBefore'](_0x7001dc['start'])){const _0x586337=_0x5c3a54['end']['nodeAfter'],_0x353b56=_0x7001dc['start']['nodeBefore'];return _0x440ccf['isBlockImage'](_0x586337)&&_0x586337===_0x353b56;}return!0x1;}_0x4d064c['model']['document']['registerPostFixer'](()=>{let _0x2ebf99=!0x1;const _0x11148c=Array['from'](_0x4d064c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1f8fa7,data:_0xfcb69}of _0x11148c){const {group:_0x2b5462,type:_0x9d5088,subType:_0x2f7098,id:_0x96fa4}=Ll(_0x1f8fa7);if('suggestion'==_0x2b5462&&_0x891b9b['hasSuggestion'](_0x96fa4)){if('formatBlock'==_0x9d5088&&('imageStylePreApply'==_0x2f7098||'imageStylePostApply'==_0x2f7098)){const _0x157750=_0x891b9b['getSuggestion'](_0x96fa4);if(_0xfcb69['newRange']){const _0x34e2ce=_0x157750['getFirstRange']()['getContainedElement']();if(_0x440ccf['isBlockImage'](_0x34e2ce))continue;_0x891b9b['discardSuggestion'](_0x157750),_0x2ebf99=!0x0;}}if('insertion'==_0x9d5088&&'imageCaption'==_0x2f7098&&!_0xfcb69['newRange']){const _0x4dd74e=_0x891b9b['getSuggestion'](_0x96fa4);_0x4dd74e['next']&&_0x4dd74e['next']['isInContent']&&(_0x891b9b['discardSuggestion'](_0x4dd74e['next']),_0x2ebf99=!0x0);}}}return _0x2ebf99;}),this['_registerLegacyDescription'](_0x1be771);}_registerLegacyDescription(_0x1b85d8){const _0x87fca6=this['editor'],_0x6526e=_0x87fca6['locale'];_0x87fca6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x443f8a=>{if('formatBlock'!=_0x443f8a['type']&&'formatInline'!=_0x443f8a['type'])return;const {data:_0x43d086}=_0x443f8a;if(!_0x43d086||'imageStyle'!=_0x43d086['commandName'])return;const _0x15e8ba=_0x43d086['commandParams'][0x0]['value'];return _0x1c2b6b('side'===_0x15e8ba?yR(_0x6526e,'FORMAT_SIDE_IMAGE'):_0x1b85d8[_0x15e8ba]||_0x15e8ba);function _0x1c2b6b(_0x2b70dd){return{'type':'format','content':yR(_0x6526e,'*Format:*\x20%0',_0x2b70dd)};}});}},rP=class extends _0x11fe30{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0xd9ba35){super(_0xd9ba35),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x502aea=this['editor'],_0x23c0b7=_0x502aea['commands']['get']('importWord'),_0x5cef01=_0x502aea['commands']['get']('trackChanges');_0x23c0b7&&(_0x23c0b7['on']('execute',(_0x5787ea,[,_0x16ccf5])=>{this['_trackChangesValueDuringImport']=_0x5cef01['value'],_0x16ccf5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x23c0b7,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x23c0b7,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5cef01['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x502aea['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x50dcce,_0x2d1cc0){const {suggestions:_0x309540}=_0x2d1cc0,_0x3f8a6c=this['editor']['commands']['get']('trackChanges'),_0xda02b6=_0x3f8a6c['value'];this['_trackChangesValueDuringImport']!==_0xda02b6&&(_0x3f8a6c['execute'](),this['_trackChangesExecuted']=!0x0),_0x309540&&_0x309540['forEach'](({id:_0x27ac72,type:_0x8c970d,author:_0x23a6ad,created_at:_0x218776})=>{const _0x34fbca={'id':_0x27ac72,'type':_0x8c970d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x23a6ad,'createdAt':_0x218776?new Date(_0x218776):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x34fbca);});}},oP=class extends _0x11fe30{afterInit(){const _0x30695d=this['editor'],_0x896e14=_0x30695d['plugins']['get']('TrackChangesEditing');if(_0x30695d['plugins']['has']('IndentEditing')&&(_0x896e14['enableCommand']('indent'),_0x896e14['enableCommand']('outdent')),_0x30695d['plugins']['has']('IndentBlock')){for(const _0x240818 of['indentBlock','outdentBlock'])_0x896e14['enableDefaultAttributesIntegration'](_0x240818);if(_0x30695d['plugins']['has']('ListEditing')){for(const _0x57570c of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x896e14['enableDefaultAttributesIntegration'](_0x57570c);}}const _0x50f8c5=_0x30695d['locale'];_0x896e14['descriptionFactory']['registerAttributeLabel']('blockIndent',yR(_0x50f8c5,'FORMAT_INDENT')),_0x896e14['descriptionFactory']['registerAttributeLabel']('blockIndentList',yR(_0x50f8c5,'FORMAT_INDENT')),_0x896e14['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',yR(_0x50f8c5,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x231975=this['editor'],_0x3bdf79=_0x231975['locale'],_0x243284=_0x231975['plugins']['get']('TrackChangesEditing');_0x243284['descriptionFactory']['registerDescriptionCallback'](_0x38074b=>{if('formatBlock'!=_0x38074b['type'])return;const {data:_0xcf352c}=_0x38074b;if(!_0xcf352c)return;if('indentBlock'!=_0xcf352c['commandName']&&'outdentBlock'!=_0xcf352c['commandName'])return;const _0x4a008b=_0x38074b['getItems']()[0x0],_0x47d95f=_0x243284['descriptionFactory']['getItemLabel'](_0x4a008b);return'indentBlock'==_0xcf352c['commandName']?{'type':'format','content':yR(_0x3bdf79,'*Indent:*\x20%0',_0x47d95f)}:'outdentBlock'==_0xcf352c['commandName']?{'type':'format','content':yR(_0x3bdf79,'*Outdent:*\x20%0',_0x47d95f)}:void 0x0;});}},aP=class extends _0x11fe30{static get requires(){return[_0x3f2b41];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},cP=class extends _0x11fe30{afterInit(){const _0xe0f627=this['editor'];if(!_0xe0f627['plugins']['has']('LinkEditing'))return;const _0x1962dd=_0xe0f627['plugins']['get']('TrackChangesEditing'),_0x29867e=_0xe0f627['commands']['get']('link');_0x1962dd['enableDefaultAttributesIntegration']('link'),_0x1962dd['enableDefaultAttributesIntegration']('unlink');for(const _0x4dea28 of _0x29867e['manualDecorators'])_0x1962dd['descriptionFactory']['registerAttributeLabel'](_0x4dea28['id'],'link\x20('+_0x4dea28['label']['toLowerCase']()+')');_0x1962dd['descriptionFactory']['registerDescriptionCallback'](_0x5b1481=>{if('attribute'!=_0x5b1481['type'])return;const {data:_0x17d405}=_0x5b1481;if(!_0x17d405||'linkHref'!=_0x17d405['key'])return;const _0x2f6d4c=_0x17d405['newValue'],_0x38458a=_0xe0f627['locale'];return{'type':'format','content':null==_0x2f6d4c?yR(_0x38458a,'*Remove\x20link*'):yR(_0x38458a,'*Set\x20link:*\x20%0','\x22'+_0x2f6d4c+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x475a79=this['editor'],_0x48cbf2=_0x475a79['locale'];_0x475a79['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43ae72=>{if('formatInline'!=_0x43ae72['type'])return;const {data:_0x41b2c3}=_0x43ae72;if(_0x41b2c3){if('link'==_0x41b2c3['commandName']){const _0x233fd5=_0x41b2c3['commandParams'][0x0];return{'type':'format','content':yR(_0x48cbf2,'*Set\x20link:*\x20%0','\x22'+_0x233fd5+'\x22')};}return'unlink'==_0x41b2c3['commandName']?{'type':'format','content':yR(_0x48cbf2,'*Remove\x20link*')}:void 0x0;}});}},lP=class extends _0x11fe30{afterInit(){const _0x4ed862=this['editor'],_0x349d8f=_0x4ed862['locale'];if(!_0x4ed862['plugins']['has']('LegacyListEditing'))return;const _0x2490a3=_0x4ed862['plugins']['get']('TrackChangesEditing'),_0x2cb57=_0x4ed862['plugins']['has']('LegacyTodoListEditing');function _0x2f6dff(_0x5e3f8c){return()=>{const _0x5a6a55=_0x4ed862['model']['document']['selection'],_0x1aa8cc=_0x4ed862['commands']['get'](_0x5e3f8c);if(_0x1aa8cc['value'])return void _0x4ed862['execute']('paragraph',{});const _0xe543a=_0x5e3f8c['slice'](0x0,-0x4),_0x430973=function(_0x142d97,_0x4e2cc8,_0x337589){let _0x33ce8e=Array['from'](_0x142d97)['filter'](_0x2abd4e=>function(_0x5c33f2,_0x4b1c3c){return _0x4b1c3c['checkChild'](_0x5c33f2['parent'],'listItem')&&!_0x4b1c3c['isObject'](_0x5c33f2);}(_0x2abd4e,_0x337589));_0x33ce8e=_0x33ce8e['filter'](_0x22aa41=>!_0x22aa41['is']('element','listItem')||_0x22aa41['getAttribute']('listType')!=_0x4e2cc8);const _0x27be64=new Set();for(const _0x1e62a1 of _0x33ce8e)_0x1e62a1['is']('element','listItem')?_0x27be64['add'](hP(_0x1e62a1)):_0x27be64['add'](_0x1e62a1);return Array['from'](_0x27be64);}(_0x5a6a55['getSelectedBlocks'](),_0xe543a,_0x4ed862['model']['schema']);_0x4ed862['model']['change'](()=>{for(const _0x5e41d3 of _0x430973)_0x2490a3['markBlockFormat'](_0x5e41d3,{'commandName':_0x5e3f8c,'commandParams':[{'forceValue':!_0x1aa8cc['value']}],'formatGroupId':'blockName'},uP(_0x5e41d3));});};}function _0x593bf7(_0xc99530){return()=>{const _0x3e6e54=function(_0x2f9783){let _0x3ed320=Array['from'](_0x2f9783);const _0xc78737=_0x3ed320['findIndex'](_0x5d896c=>'listItem'!=_0x5d896c['name']);return _0xc78737>-0x1&&(_0x3ed320=_0x3ed320['slice'](0x0,_0xc78737)),_0x3ed320;}(_0x4ed862['model']['document']['selection']['getSelectedBlocks']()),_0x322e74=_0x4ed862['model']['createRange'](_0x4ed862['model']['createPositionAt'](_0x3e6e54[0x0],'before'),_0x4ed862['model']['createPositionAt'](_0x3e6e54[_0x3e6e54['length']-0x1],'end'));_0x4ed862['model']['change'](()=>{_0x2490a3['markBlockFormat'](_0x322e74,{'commandName':_0xc99530,'commandParams':[],'formatGroupId':'listIndent'},function(_0xf6105f){const _0x5e7957=new Set();for(const _0x16391b of _0xf6105f){let _0x21b025=_0x16391b['nextSibling'];for(;_0x21b025&&_0x21b025['getAttribute']('listIndent')>_0x16391b['getAttribute']('listIndent');)_0x5e7957['add'](_0x21b025),_0x21b025=_0x21b025['nextSibling'];}return Array['from'](_0x5e7957);}(_0x3e6e54));});};}_0x2490a3['enableCommand']('numberedList',_0x2f6dff('numberedList')),_0x2490a3['enableCommand']('bulletedList',_0x2f6dff('bulletedList')),_0x2cb57&&_0x2490a3['enableCommand']('todoList',_0x2f6dff('todoList')),_0x2490a3['enableCommand']('indentList',_0x593bf7('indentList')),_0x2490a3['enableCommand']('outdentList',_0x593bf7('outdentList')),_0x2cb57&&_0x2490a3['enableCommand']('checkTodoList',()=>{const _0x3af854=_0x4ed862['commands']['get']('checkTodoList'),_0x48202a=Array['from'](_0x3af854['_selectedElements']);_0x48202a['filter'](_0x3acf04=>_0x3acf04['getAttribute']('todoListChecked')!=_0x3af854['value']),_0x4ed862['model']['change'](()=>{for(const _0x2f126d of _0x48202a)_0x2490a3['markBlockFormat'](_0x2f126d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3af854['value']}]});});}),_0x2490a3['descriptionFactory']['registerElementLabel']('listItem',_0x2edfa0=>yR(_0x349d8f,'ELEMENT_LIST_ITEM',_0x2edfa0)),_0x2490a3['descriptionFactory']['registerDescriptionCallback'](_0x5d1a85=>{if('formatBlock'!=_0x5d1a85['type']&&'formatInline'!=_0x5d1a85['type'])return;const {data:_0x2aeb9c}=_0x5d1a85;if(_0x2aeb9c){if('numberedList'==_0x2aeb9c['commandName']||'bulletedList'==_0x2aeb9c['commandName']||'todoList'==_0x2aeb9c['commandName'])switch(_0x2aeb9c['commandName']['replace']('List','')){case'bulleted':return _0x2b32a9(yR(_0x349d8f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b32a9(yR(_0x349d8f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b32a9(yR(_0x349d8f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2aeb9c['commandName'])return{'type':'format','content':yR(_0x349d8f,'*Indent:*\x20%0',yR(_0x349d8f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2aeb9c['commandName'])return{'type':'format','content':yR(_0x349d8f,'*Outdent:*\x20%0',yR(_0x349d8f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2aeb9c['commandName'])return _0x2aeb9c['commandParams'][0x0]['forceValue']?{'type':'format','content':yR(_0x349d8f,'*Check\x20item*')}:{'type':'format','content':yR(_0x349d8f,'*Uncheck\x20item*')};}function _0x2b32a9(_0x5bbe9b){return{'type':'format','content':yR(_0x349d8f,'*Change\x20to:*\x20%0',_0x5bbe9b)};}});}};function hP(_0x29f624){const _0xf1c85a=_0x29f624['getAttribute']('listIndent');if(0x0==_0xf1c85a)return _0x29f624;let _0x271cd6=_0x29f624;for(;_0x29f624['previousSibling']&&_0x29f624['previousSibling']['is']('element','listItem');){const _0x2a9cfd=_0x29f624['previousSibling']['getAttribute']('listIndent');if(_0x2a9cfd==_0xf1c85a)_0x271cd6=_0x29f624['previousSibling'];else{if(_0x2a9cfd<_0xf1c85a)break;}_0x29f624=_0x29f624['previousSibling'];}return _0x271cd6;}function uP(_0x3e9dbc){const _0x388456=[];if(_0x3e9dbc['is']('element','listItem')&&_0x3e9dbc['getAttribute']('listIndent')>0x0){let _0x1bae53=_0x3e9dbc['nextSibling'];for(;_0x1bae53&&'listItem'==_0x1bae53['name']&&_0x1bae53['getAttribute']('listIndent')==_0x3e9dbc['getAttribute']('listIndent');)_0x388456['push'](_0x1bae53),_0x1bae53=_0x1bae53['nextSibling'];}return _0x388456;}var dP=class extends _0x11fe30{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x22a023=this['editor']['config']['get']('list.properties'),_0xbd98e6=this['editor']['plugins']['get']('TrackChangesEditing');_0x22a023['styles']&&_0xbd98e6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x22a023['reversed']&&_0xbd98e6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x22a023['startIndex']&&_0xbd98e6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xbd98e6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x3c73fd,_0x4e88c5={}){const _0x2f962e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x203b2c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2f962e['markMultiRangeBlockFormat'](_0x203b2c,{'commandName':'listStyle','commandParams':[{'type':_0x4e88c5['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x4f0c9c,_0x4a7ad5={}){const _0x272816=this['editor']['plugins']['get']('TrackChangesEditing'),_0x268cd0=this['_getSuggestionBlocks'](_0x2ee679=>_0x2ee679['is']('element','listItem')&&'numbered'===_0x2ee679['getAttribute']('listType'));if(_0x268cd0['length']<0x1)return;const _0x7dc662=_0x268cd0['map'](_0x11be24=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x11be24,'before'),this['editor']['model']['createPositionAt'](_0x11be24,0x0)));this['editor']['model']['change'](()=>{_0x272816['markMultiRangeBlockFormat'](_0x7dc662,{'commandName':'listReversed','commandParams':[{'reversed':_0x4a7ad5['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x2430df,_0x35235a={}){const _0x3ab1b6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ece0a=this['_getSuggestionBlocks'](_0x423c17=>_0x423c17['is']('element','listItem')&&'numbered'===_0x423c17['getAttribute']('listType'));if(_0x1ece0a['length']<0x1)return;const _0x2637e1=_0x1ece0a['map'](_0x5439dc=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5439dc,'before'),this['editor']['model']['createPositionAt'](_0x5439dc,0x0)));this['editor']['model']['change'](()=>{_0x3ab1b6['markMultiRangeBlockFormat'](_0x2637e1,{'commandName':'listStart','commandParams':[{'startIndex':_0x35235a['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x4df657){if('formatBlock'!=_0x4df657['type']&&'formatInline'!=_0x4df657['type'])return;const _0x32a77e=this['editor']['locale'],{data:_0x567fb5}=_0x4df657;if(!_0x567fb5)return;let _0x1987c1,_0x8a7449;switch(_0x567fb5['commandName']){case'listStyle':_0x1987c1='*Change\x20to:*\x20%0',_0x8a7449={'type':'format','content':yR(_0x32a77e,_0x1987c1,yR(_0x32a77e,this['_getTranslationKeyForListStyle'](_0x567fb5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1987c1=_0x567fb5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x8a7449={'type':'format','content':yR(_0x32a77e,_0x1987c1)};break;case'listStart':_0x1987c1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x8a7449={'type':'format','content':yR(_0x32a77e,_0x1987c1,_0x567fb5['commandParams'][0x0]['startIndex'])};}return _0x8a7449;}_getSuggestionBlocksForListStyle(){const _0x5c471e=this['editor']['plugins']['get']('LegacyListUtils');let _0x309e70=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x309e70[0x0]?.['is']('element','listItem')&&_0x309e70['unshift'](..._0x5c471e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x309e70[_0x309e70['length']-0x1]?.['is']('element','listItem')&&_0x309e70['push'](..._0x5c471e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x309e70=[...new Set(_0x309e70)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x309e70=_0x309e70['filter'](_0x2090aa=>_0x2090aa['is']('element','listItem'))),_0x309e70;}_getSuggestionBlocks(_0x328c33){const _0x2f8b77=this['editor']['plugins']['get']('LegacyListUtils');let _0x3c74e9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x328c33)['map'](_0xb2f007=>{const _0x2bbd07=this['editor']['model']['createPositionAt'](_0xb2f007,0x0);return[..._0x2f8b77['getSiblingNodes'](_0x2bbd07,'backward'),..._0x2f8b77['getSiblingNodes'](_0x2bbd07,'forward')];})['flat']();return _0x3c74e9=[...new Set(_0x3c74e9)],_0x3c74e9;}_getTranslationKeyForListStyle(_0x1f673f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1f673f)||'default')['toUpperCase']()+'_LIST_'+_0x1f673f['toUpperCase']()['replace'](/-/g,'_');}},fP=class extends _0x11fe30{afterInit(){const _0x52eac=this['editor'];if(!_0x52eac['plugins']['has']('MediaEmbedEditing'))return;const _0x47a47b=_0x52eac['plugins']['get']('TrackChangesEditing'),_0x134f12=_0x52eac['locale'];_0x47a47b['enableCommand']('mediaEmbed'),_0x47a47b['descriptionFactory']['registerElementLabel']('media',_0x522c9b=>yR(_0x134f12,'ELEMENT_MEDIA',_0x522c9b)),_0x52eac['plugins']['has']('MediaEmbedResizeEditing')&&(_0x47a47b['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x47a47b['descriptionFactory']['registerDescriptionCallback'](_0x3fb54c=>{if('attribute'!=_0x3fb54c['type'])return;const {data:_0x2ae04c}=_0x3fb54c;if(!_0x2ae04c||'resizedWidth'!=_0x2ae04c['key'])return;const _0x3c24e2=_0x3fb54c['getContainedElement']();if(!_0x3c24e2||!_0x3c24e2['is']('element','media'))return;const _0x20329e=yR(_0x134f12,'FORMAT_MEDIA_SIZE');return{'type':'format','content':yR(_0x134f12,'*Set\x20format:*\x20%0',_0x20329e)};}));}},mP=class extends _0x11fe30{afterInit(){const _0x5e4bad=this['editor'];if(!_0x5e4bad['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x1a62da=_0x5e4bad['plugins']['get']('TrackChangesEditing'),_0x465701=_0x5e4bad['locale'],_0xfb0cbe=_0x5e4bad['plugins']['get']('MediaEmbedStyleEditing'),_0x5371a4={};for(const _0x595048 of _0xfb0cbe['normalizedStyles'])_0x5371a4[_0x595048['name']]=_0x595048['title']['toLowerCase']();const _0x545a30=_0xfb0cbe['normalizedStyles']['find'](_0x9d900a=>_0x9d900a['isDefault'])?.['name'];_0x1a62da['enableCommand']('mediaStyle',(_0x5a7b4f,_0x5862ad)=>{const _0x2b187f=_0x5e4bad['plugins']['get']('Users')['me'],_0x7ce342=_0x5e4bad['commands']['get']('mediaStyle'),_0x36fe83=function(_0x5d5e23){const _0xf711e=_0x5d5e23['model']['document']['selection']['getSelectedElement']();return _0xf711e&&_0xf711e['is']('element','media')?_0xf711e:null;}(_0x5e4bad);if(!_0x36fe83)return;const _0x5ab787=_0x5e4bad['model']['createRangeOn'](_0x36fe83);let _0x1b3e59=_0x7ce342['value'];if(_0x1b3e59==_0x5862ad['value'])return;const _0x17becd={'commandName':'mediaStyle','commandParams':[_0x5862ad],'formatGroupId':_0xea66bb()};_0x5e4bad['model']['change'](()=>{_0x1a62da['getSuggestions']()['filter'](_0x1d04f8=>_0x1d04f8['isInContent']&&_0x2b187f==_0x1d04f8['author']&&'formatBlock'==_0x1d04f8['type']&&'mediaStylePostApply'==_0x1d04f8['subType']&&_0x1d04f8['getFirstRange']()['isEqual'](_0x5ab787))['forEach'](_0x57d728=>_0x1a62da['discardSuggestion'](_0x57d728['head'])),_0x7ce342['refresh'](),_0x1b3e59=_0x7ce342['value'],_0x1b3e59!=_0x5862ad['value']&&_0x1a62da['markBlockFormat'](_0x36fe83,{..._0x17becd,'commandReversedParams':[{'value':'string'==typeof _0x1b3e59?_0x1b3e59:null}]},[],'mediaStylePostApply');});}),_0x1a62da['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x1a62da['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x20a92c,_0x298164)=>{_0x1a62da['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x20a92c,{'commandName':_0x298164['commandName'],'commandParams':_0x298164['commandReversedParams']});}),_0x1a62da['descriptionFactory']['registerDescriptionCallback'](_0x5d209a=>{if('formatBlock'!=_0x5d209a['type'])return;const {data:_0x2bdb1b}=_0x5d209a;if(!_0x2bdb1b||'mediaStyle'!=_0x2bdb1b['commandName'])return;const _0x157bc2=_0x2bdb1b['commandParams'][0x0]['value']||_0x545a30;if(!_0x157bc2)return;const _0x437b23=_0x5371a4[_0x157bc2]||_0x157bc2;return{'type':'format','content':yR(_0x465701,'*Format:*\x20%0',_0x437b23)};});}},pP=class extends _0x11fe30{afterInit(){const _0x4f48a5=this['editor'];_0x4f48a5['plugins']['has']('MentionEditing')&&_0x4f48a5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},gP=class extends _0x11fe30{afterInit(){const _0x312816=this['editor'];if(!_0x312816['plugins']['has']('MergeFieldsEditing'))return;const _0x1c08c3=_0x312816['plugins']['get']('TrackChangesEditing'),_0xf16a0=_0x312816['locale'];_0x1c08c3['enableCommand']('insertMergeField'),_0x1c08c3['enableCommand']('insertMergeFieldBlock'),_0x1c08c3['enableCommand']('insertMergeFieldImage'),_0x1c08c3['descriptionFactory']['registerElementLabel']('mergeField',_0x41ac62=>yR(_0xf16a0,'ELEMENT_MERGE_FIELD',_0x41ac62)),_0x1c08c3['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2ce523=>yR(_0xf16a0,'ELEMENT_MERGE_FIELD',_0x2ce523)),_0x1c08c3['descriptionFactory']['registerDescriptionCallback'](_0x1d78ae=>{if('insertion'!=_0x1d78ae['type']&&'deletion'!=_0x1d78ae['type'])return;const _0x52e4ce=_0x1d78ae['getContainedElement']();if(null==_0x52e4ce)return;const _0x2a9e05=_0x312816['plugins']['get']('MergeFieldsEditing');let _0x3e7947;switch(_0x2a9e05['getMergeFieldType'](_0x52e4ce)){case null:return;case'image':{const _0xbcf43=_0x2a9e05['unwrapAffixes'](_0x52e4ce['getAttribute']('src'));_0x3e7947=_0x2a9e05['getLabel'](_0xbcf43)||_0xbcf43;break;}default:{const _0x59cfb9=_0x52e4ce['getAttribute']('id');_0x3e7947=_0x2a9e05['getLabel'](_0x59cfb9)||_0x59cfb9;break;}}return'insertion'==_0x1d78ae['type']?{'type':'insertion','content':yR(_0xf16a0,'*Insert:*\x20%0','\x22'+_0x3e7947+'\x22\x20'+yR(_0xf16a0,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':yR(_0xf16a0,'*Remove:*\x20%0','\x22'+_0x3e7947+'\x22\x20'+yR(_0xf16a0,'ELEMENT_MERGE_FIELD'))};});}},OP=class extends _0x11fe30{afterInit(){const _0x5b620c=this['editor'],_0x15031b=_0x5b620c['plugins']['get']('TrackChangesEditing');_0x5b620c['plugins']['has']('MultiLevelList')&&(_0x15031b['enableDefaultAttributesIntegration']('multiLevelList'),_0x15031b['descriptionFactory']['registerDescriptionCallback'](_0x4fc524=>this['handleDescriptions'](_0x4fc524)));}handleDescriptions(_0x1e9cd4){const _0x4a0782=this['editor']['locale'],{data:_0x3c5f65}=_0x1e9cd4,_0x5aa560={'type':'format','content':''};if(_0x3c5f65&&'listMarkerStyle'==_0x3c5f65['key']){if(!_0x3c5f65['oldValue'])return{'type':'format','content':yR(_0x4a0782,'*Set\x20format:*\x20%0',yR(_0x4a0782,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3c5f65['newValue']+')'};if(!_0x3c5f65['newValue']){let _0x214e13=_0x1e9cd4['head'];for(;_0x214e13;){if(_0x214e13['data']&&'listType'==_0x214e13['data']['key']&&_0x214e13['data']['newValue'])return _0x5aa560;_0x214e13=_0x214e13['next'];}return{'type':'format','content':yR(_0x4a0782,'*Remove\x20format:*\x20%0',yR(_0x4a0782,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3c5f65['oldValue']+')'};}}}},wP=class extends _0x11fe30{afterInit(){const _0x22d627=this['editor'];if(!_0x22d627['plugins']['has']('PageBreakEditing'))return;_0x22d627['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3b822d=_0x22d627['plugins']['get']('TrackChangesEditing'),_0x88e77d=_0x22d627['locale'];_0x3b822d['descriptionFactory']['registerElementLabel']('pageBreak',_0x349ce0=>yR(_0x88e77d,'ELEMENT_PAGE_BREAK',_0x349ce0));}},bP=class extends _0x11fe30{afterInit(){const _0x3f7e6b=this['editor'];if(!_0x3f7e6b['plugins']['has']('Paragraph'))return;const _0x325c43=_0x3f7e6b['locale'],_0x176b6c=_0x3f7e6b['plugins']['get']('TrackChangesEditing');_0x176b6c['descriptionFactory']['registerElementLabel']('paragraph',_0x50a8ed=>yR(_0x325c43,'ELEMENT_PARAGRAPH',_0x50a8ed)),_0x176b6c['enableDefaultAttributesIntegration']('paragraph'),_0x176b6c['enableCommand']('insertParagraph');const _0x33b5c4=_0x176b6c['descriptionFactory'];_0x33b5c4['registerDescriptionCallback'](_0x17bfaa=>{if('insertion'!==_0x17bfaa['type'])return;const {start:_0x59b3d7,end:_0x1f5725}=_0x17bfaa['getFirstRange']();if(!_0x59b3d7['isTouching'](_0x1f5725)||!_0x59b3d7['nodeAfter'])return;const _0x22ea11=_0x3f7e6b['model']['schema'],_0x3df26b=_0x59b3d7['nodeAfter'];return _0x22ea11['isBlock'](_0x3df26b)&&!_0x22ea11['isLimit'](_0x3df26b)&&_0x22ea11['checkChild'](_0x3df26b,'$text')?{'type':'insertion','content':yR(_0x325c43,'*Insert:*\x20%0',_0x33b5c4['getItemLabel'](_0x3df26b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x595325=this['editor'],_0x1fc1b3=_0x595325['locale'];_0x595325['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2176bd=>{if('formatBlock'!=_0x2176bd['type'])return;const {data:_0x59a112}=_0x2176bd;return _0x59a112&&'paragraph'==_0x59a112['commandName']?{'type':'format','content':yR(_0x1fc1b3,'*Change\x20to:*\x20%0',yR(_0x1fc1b3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},yP=class extends _0x11fe30{afterInit(){const _0x238602=this['editor'];_0x238602['commands']['get']('replaceSource')&&_0x238602['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},vP=class extends _0x11fe30{afterInit(){const _0x521fed=this['editor'];_0x521fed['plugins']['has']('RemoveFormatEditing')&&(_0x521fed['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x12dc60=this['editor'];_0x12dc60['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb783=>{if('formatBlock'!=_0xb783['type']&&'formatInline'!=_0xb783['type'])return;const {data:_0x32a6c5}=_0xb783;return _0x32a6c5&&'removeFormat'==_0x32a6c5['commandName']?{'type':'format','content':yR(_0x12dc60['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},_P=class extends _0x11fe30{afterInit(){const _0x513ef8=this['editor'];if(!_0x513ef8['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3f3395=_0x513ef8['plugins']['get']('TrackChangesEditing');_0x3f3395['enableCommand']('goToPreviousRestrictedEditingException'),_0x3f3395['enableCommand']('goToNextRestrictedEditingException');const _0x251b70=_0x513ef8['plugins']['get']('RestrictedEditingModeEditing');_0x251b70['enableCommand']('trackChanges'),_0x251b70['enableCommand']('acceptSuggestion'),_0x251b70['enableCommand']('discardSuggestion'),_0x251b70['enableCommand']('acceptAllSuggestions'),_0x251b70['enableCommand']('discardAllSuggestions'),_0x251b70['enableCommand']('acceptSelectedSuggestions'),_0x251b70['enableCommand']('discardSelectedSuggestions');}},EP=class extends _0x11fe30{afterInit(){const _0x574362=this['editor'];if(!_0x574362['plugins']['has']('ShiftEnter'))return;const _0x5d8adf=_0x574362['plugins']['get']('TrackChangesEditing');_0x5d8adf['enableCommand']('shiftEnter'),_0x5d8adf['descriptionFactory']['registerElementLabel']('softBreak',_0x28ef8b=>yR(_0x574362['locale'],'ELEMENT_LINE_BREAK',_0x28ef8b));}};function TP(_0x4bed8f,_0x387bca,_0x3c7aa4){const _0x1ce545=[];for(const _0x5d7b76 of _0x387bca['getItems']())_0x5d7b76['hasAttribute'](_0x4bed8f)&&_0x1ce545['push'](_0x3c7aa4['createRangeOn'](_0x5d7b76));return _0x1ce545;}var AP=class extends _0x11fe30{afterInit(){const _0x524f45=this['editor'],_0x26544f=_0x524f45['plugins']['get']('TrackChangesEditing');_0x524f45['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x26544f['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x398433=this['editor'],_0x2ef04f=_0x398433['model'],_0x442cd1=_0x398433['locale'],_0x364687=_0x398433['plugins']['get']('TrackChangesEditing'),_0x3f4bcb='restrictedEditingException',_0x423518=_0x398433['commands']['get'](_0x3f4bcb);_0x364687['enableCommand'](_0x3f4bcb,(_0x17b0e9,_0x59f3e5={})=>{const _0x1294d3=_0x2ef04f['document']['selection'];if(_0x1294d3['isCollapsed'])return void _0x17b0e9(_0x59f3e5);const _0x316a1a=void 0x0!==_0x59f3e5['forceValue']?_0x59f3e5['forceValue']:!_0x423518['value'];_0x2ef04f['change'](()=>{const _0x315466=Array['from'](_0x1294d3['getRanges']());for(const _0x1012dc of _0x315466){const _0xb8c865=_0x316a1a?[_0x1012dc]:TP(_0x3f4bcb,_0x1012dc,_0x2ef04f);for(const _0x3974e7 of _0xb8c865)_0x364687['markInlineFormat'](_0x3974e7,{'commandName':_0x3f4bcb,'commandParams':[{'forceValue':_0x316a1a}]});}});}),_0x364687['descriptionFactory']['registerDescriptionCallback'](_0x489174=>{if('formatBlock'!=_0x489174['type']&&'formatInline'!=_0x489174['type'])return;const {data:_0x584fdf}=_0x489174;return _0x584fdf&&_0x584fdf['commandName']==_0x3f4bcb?_0x584fdf['commandParams'][0x0]['forceValue']?{'type':'format','content':yR(_0x442cd1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':yR(_0x442cd1,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x2787ff=this['editor'],_0x568de3=_0x2787ff['locale'],_0x4f57d8=_0x2787ff['plugins']['get']('TrackChangesEditing'),_0x191f7e='restrictedEditingExceptionBlock',_0x2d99d3=this['editor']['commands']['get'](_0x191f7e);_0x4f57d8['enableCommand'](_0x191f7e,(_0x58b9df,_0x3d1df3={})=>{const _0x32a995=this['editor']['model']['document']['selection'],_0x3ff1f2=_0x3d1df3&&void 0x0!==_0x3d1df3['forceValue']?_0x3d1df3['forceValue']:!_0x2d99d3['value'];let _0x2c5db2=[];_0x2c5db2=fR(_0x3ff1f2?Array['from'](_0x32a995['getSelectedBlocks']())['filter'](_0x3dea9a=>function(_0xfab230){return!!_0xfab230['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x3dea9a)||function(_0x130dd9,_0x2d7a06){const _0x25cd44=_0x2d7a06['createContext'](_0x130dd9['parent']);return!!_0x2d7a06['checkChild'](_0x25cd44,'restrictedEditingException')&&!!_0x2d7a06['checkChild'](_0x25cd44['push']('restrictedEditingException'),_0x130dd9);}(_0x3dea9a,this['editor']['model']['schema'])):Array['from'](_0x32a995['getSelectedBlocks']())['map'](_0x2a6e80=>function(_0x3279d2){let _0x35f7c8=_0x3279d2;for(;_0x35f7c8['parent'];){if('restrictedEditingException'==_0x35f7c8['parent']['name'])return _0x35f7c8;_0x35f7c8=_0x35f7c8['parent'];}return null;}(_0x2a6e80))['filter'](_0x29488d=>!!_0x29488d),_0x2787ff['model']),_0x2787ff['model']['change'](()=>{for(const _0x307de2 of _0x2c5db2)_0x4f57d8['markBlockFormat'](_0x307de2,{'commandName':_0x191f7e,'commandParams':[{'forceValue':_0x3ff1f2}]});});}),_0x4f57d8['descriptionFactory']['registerDescriptionCallback'](_0x1d9c3a=>{const {data:_0x3392f3}=_0x1d9c3a;if(_0x3392f3&&_0x3392f3['commandName']==_0x191f7e)return _0x3392f3['commandParams'][0x0]['forceValue']?{'type':'format','content':yR(_0x568de3,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':yR(_0x568de3,'FORMAT_RESTRICTED_DISABLED')};});}},SP=class extends _0x11fe30{afterInit(){const _0x144c52=this['editor'];_0x144c52['plugins']['has']('Style')&&_0x144c52['plugins']['has']('DataSchema')&&(_0x144c52['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x3bca24=this['editor'],_0x184039=_0x3bca24['locale'];_0x3bca24['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5eb29b=>{if('formatBlock'!=_0x5eb29b['type']&&'formatInline'!=_0x5eb29b['type'])return;const {data:_0x2bdbf6}=_0x5eb29b;return _0x2bdbf6&&'style'===_0x2bdbf6['commandName']?_0x2bdbf6['commandParams'][0x0]['forceValue']?{'type':'format','content':yR(_0x184039,'*Set\x20format:*\x20%0',_0x2bdbf6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':yR(_0x184039,'*Remove\x20format:*\x20%0',_0x2bdbf6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},IP=class extends _0x11fe30{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x403730){super(_0x403730),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x278d0e=this['editor'],_0x118bdc=_0x278d0e['model']['document']['selection'];if(!_0x278d0e['plugins']['has']('TableEditing'))return;const _0x30e778=_0x278d0e['locale'],_0x108eaf=_0x278d0e['plugins']['get']('TrackChangesEditing'),_0x49bec1=_0x278d0e['plugins']['get']('TableUtils');_0x108eaf['descriptionFactory']['registerElementLabel']('table',_0x57c498=>yR(_0x30e778,'ELEMENT_TABLE',_0x57c498)),this['_setupColumnsRowsFixing'](),_0x108eaf['enableCommand']('insertTable'),_0x108eaf['enableCommand']('selectTableRow'),_0x108eaf['enableCommand']('selectTableColumn');for(const _0x4e047c of['insertTableRowAbove','insertTableRowBelow']){const _0x984e71=_0x278d0e['commands']['get'](_0x4e047c);_0x108eaf['enableCommand'](_0x4e047c,_0x2c2d61=>{_0x278d0e['model']['change'](_0x5551fc=>{_0x2c2d61();const _0x432ee0='above'===_0x984e71['order'],_0x5b2b59=_0x49bec1['getSelectionAffectedTableCells'](_0x118bdc),_0xbc3fd8=_0x49bec1['getRowIndexes'](_0x5b2b59),_0x3a8e2e=_0x432ee0?_0xbc3fd8['first']-0x1:_0xbc3fd8['last']+0x1,_0x338716=_0x5b2b59[0x0]['findAncestor']('table'),_0x172dab=_0x49bec1['createTableWalker'](_0x338716,{'startRow':_0x3a8e2e,'endRow':_0x3a8e2e}),_0x5b51fd=Array['from'](_0x172dab)['map'](_0x5b8d7b=>_0x5551fc['createRangeOn'](_0x5b8d7b['cell']));_0x108eaf['markMultiRangeInsertion'](_0x5b51fd,'tableRow');});});}for(const _0x5d8239 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2152b7=_0x278d0e['commands']['get'](_0x5d8239);_0x108eaf['enableCommand'](_0x5d8239,_0x643b80=>{_0x278d0e['model']['change'](_0x5c85d0=>{_0x643b80();const _0x1d18a8='left'===_0x2152b7['order'],_0x58dd53=_0x49bec1['getSelectionAffectedTableCells'](_0x118bdc),_0x4dde8b=_0x49bec1['getColumnIndexes'](_0x58dd53),_0x2aba62=_0x1d18a8?_0x4dde8b['first']-0x1:_0x4dde8b['last']+0x1,_0x23106d=_0x58dd53[0x0]['findAncestor']('table'),_0x3c0afc=_0x49bec1['createTableWalker'](_0x23106d,{'startRow':0x0,'column':_0x2aba62,'includeAllSlots':!0x1}),_0x3346af=Array['from'](_0x3c0afc)['map'](_0x92f488=>_0x5c85d0['createRangeOn'](_0x92f488['cell']));_0x108eaf['markMultiRangeInsertion'](_0x3346af,'tableColumn');});});}for(const _0x96344f of['removeTableRow','removeTableColumn']){const _0x1a979a=_0x96344f['substr'](0xb),_0x3a5d7e=_0x1a979a['toLowerCase'](),_0x3a43c7=_0x3a5d7e['substr'](0x0,0x3)+'span',_0x114a9f='table'+_0x1a979a,_0x3e55ae='min'+_0x1a979a,_0x413159='max'+_0x1a979a;_0x108eaf['enableCommand'](_0x96344f,()=>{_0x278d0e['model']['change'](_0x38cbe0=>{const _0x183225=_0x49bec1['getSelectionAffectedTableCells'](_0x118bdc),_0x1ff066=_0x183225[0x0]['findAncestor']('table');let _0xd2d364;if('removeTableRow'==_0x96344f){const _0x35643c=_0x49bec1['getRowIndexes'](_0x183225);_0xd2d364={'startRow':_0x35643c['first'],'endRow':_0x35643c['last'],'includeAllSlots':!0x0};}else{const _0x23e4d8=_0x49bec1['getColumnIndexes'](_0x183225);_0xd2d364={'startColumn':_0x23e4d8['first'],'endColumn':_0x23e4d8['last'],'includeAllSlots':!0x0};}const _0x1cebad=_0x49bec1['createTableWalker'](_0x1ff066,_0xd2d364),_0xaec5ae=Array['from'](_0x1cebad)['map'](({cell:_0x3b8fc6})=>_0x3b8fc6),_0x5c2032=kP(_0xaec5ae['filter'](_0x495c72=>_0x495c72['hasAttribute'](_0x3a43c7))),_0x1cfe57=kP(_0xaec5ae['filter'](_0x52ad79=>!_0x52ad79['hasAttribute'](_0x3a43c7)))['map'](_0x54ce27=>_0x38cbe0['createRangeOn'](_0x54ce27)),_0x4606f1=_0x108eaf['markMultiRangeDeletion'](_0x1cfe57,_0x114a9f);if(_0x4606f1&&('tableRow'==_0x4606f1['subType']||'tableColumn'==_0x4606f1['subType'])){const _0xd64a92=this['_getSuggestionCoords'](_0x4606f1);for(const _0xa2f8df of _0x5c2032){const _0x537178=_0x38cbe0['createRangeOn'](_0xa2f8df),_0x5dc8af=_0x49bec1['getCellLocation'](_0xa2f8df),_0x24eb42=_0xa2f8df['getAttribute'](_0x3a43c7)-0x1,_0x37216f=_0xd64a92[_0x3e55ae],_0x16dd81=_0xd64a92[_0x413159];_0x37216f<=_0x5dc8af[_0x3a5d7e]&&_0x5dc8af[_0x3a5d7e]+_0x24eb42<=_0x16dd81&&_0x4606f1['addRange'](_0x537178);}}});});}function _0x32e3b3(_0x3038d3){const _0x320112=Array['from'](_0x118bdc['getRanges']())['map'](_0x57f25c=>_0x2a6d0b['fromRange'](_0x57f25c));_0x278d0e['model']['change'](_0x28fbcf=>{const _0x498654=_0x28fbcf['batch'];_0x3038d3=_0x3038d3['filter'](_0x4ed061=>'$graveyard'!=_0x4ed061['root']['rootName']),_0x28fbcf['setSelection'](_0x3038d3),_0x278d0e['commands']['get']('removeTableRow')['refresh'](),_0x278d0e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x278d0e['model']['enqueueChange'](()=>{_0x278d0e['model']['enqueueChange'](_0x498654,_0x5c1686=>{const _0x15446c=_0x320112['filter'](_0x2c8668=>'$graveyard'!=_0x2c8668['root']['rootName']);_0x15446c['length']>0x0&&_0x5c1686['setSelection'](_0x15446c);for(const _0x1a7ad2 of _0x320112)_0x1a7ad2['detach']();});});});}function _0x561467(_0x4237f1){_0x278d0e['model']['change'](_0x4940a6=>{const _0x5e46cc=Array['from'](_0x118bdc['getRanges']())['map'](_0x3174da=>_0x2a6d0b['fromRange'](_0x3174da)),_0x5d75df=[];for(const _0x5517bd of _0x4237f1)for(const _0x333f62 of _0x5517bd['getItems']({'shallow':!0x0}))_0x5d75df['push'](_0x333f62);for(const _0x3f9ab5 of _0x5d75df)'$graveyard'!=_0x3f9ab5['root']['rootName']&&(_0x4940a6['setSelection'](_0x4940a6['createPositionAt'](_0x3f9ab5,0x0)),_0x278d0e['commands']['get']('removeTableColumn')['refresh'](),_0x278d0e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2f2e6b=_0x5e46cc['filter'](_0x2e5613=>'$graveyard'!=_0x2e5613['root']['rootName']);_0x2f2e6b['length']>0x0&&_0x4940a6['setSelection'](_0x2f2e6b);for(const _0x3672da of _0x5e46cc)_0x3672da['detach']();});}function _0x3b634a(_0xfdb7c,_0x635f52){return _0x635f52['every'](_0x9dbe61=>_0xfdb7c['some'](_0x3a0aab=>_0x3a0aab['end']['isEqual'](_0x9dbe61['start'])||_0x9dbe61['end']['isEqual'](_0x3a0aab['start'])));}function _0x59c9b8(_0x4b7d6b,_0x33d2ce){return!_0x4b7d6b['some'](_0x392991=>_0x33d2ce['some'](_0x1cf28e=>_0x392991['isIntersecting'](_0x1cf28e)))&&_0x4b7d6b['some'](_0x3b49e1=>_0x33d2ce['some'](_0x4e87e7=>_0x3b49e1['end']['isTouching'](_0x4e87e7['start'])));}_0x108eaf['descriptionFactory']['registerDescriptionCallback'](_0x350e2a=>{if('insertion'!=_0x350e2a['type']&&'deletion'!=_0x350e2a['type'])return;const _0x42fdbc=_0x350e2a['getContainedElement']();if(null!=_0x42fdbc&&_0x42fdbc['is']('element','table')){if('insertion'==_0x350e2a['type']){const _0x15b5ba=_0x350e2a['getItems']()['filter'](_0x5e2937=>_0x5e2937['is']('$textProxy'))['map'](_0x592f29=>_0x592f29['data']);if(_0x15b5ba['length'])return{'type':'insertion','content':yR(_0x30e778,'*Insert:*\x20%0',yR(_0x30e778,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x15b5ba['join']('\x20')+'\x22'))};}if('deletion'==_0x350e2a['type']){const _0x50bd33=_0x350e2a['getItems']()['filter'](_0x3c91c8=>_0x3c91c8['is']('$textProxy'))['map'](_0x40058a=>_0x40058a['data']);if(_0x50bd33['length'])return{'type':'deletion','content':yR(_0x30e778,'*Remove:*\x20%0',yR(_0x30e778,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x50bd33['join']('\x20')+'\x22'))};}}}),_0x108eaf['descriptionFactory']['registerDescriptionCallback'](_0x225f4=>{if('tableRow'==_0x225f4['subType']){const _0x55b122=_0x225f4['getItems']()['filter'](_0x1cb173=>_0x1cb173['is']('$textProxy'))['map'](_0x4874a9=>_0x4874a9['data']),_0x44e5a5=this['_getSuggestionCoords'](_0x225f4),_0x3220d5=_0x44e5a5['maxRow']-_0x44e5a5['minRow']+0x1;if('insertion'==_0x225f4['type'])return _0x55b122['length']?{'type':'insertion','content':yR(_0x30e778,'*Insert:*\x20%0',yR(_0x30e778,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3220d5,'\x22'+_0x55b122['join']('\x20')+'\x22']))}:{'type':'insertion','content':yR(_0x30e778,'*Insert:*\x20%0',yR(_0x30e778,'ELEMENT_TABLE_ROW',_0x3220d5))};if('deletion'==_0x225f4['type'])return _0x55b122['length']?{'type':'deletion','content':yR(_0x30e778,'*Remove:*\x20%0',yR(_0x30e778,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3220d5,'\x22'+_0x55b122['join']('\x20')+'\x22']))}:{'type':'deletion','content':yR(_0x30e778,'*Remove:*\x20%0',yR(_0x30e778,'ELEMENT_TABLE_ROW',_0x3220d5))};}if('tableColumn'==_0x225f4['subType']){const _0x2742ee=_0x225f4['getItems']()['filter'](_0x5d5e9d=>_0x5d5e9d['is']('$textProxy'))['map'](_0x188ac6=>_0x188ac6['data']),_0x78026c=this['_getSuggestionCoords'](_0x225f4),_0x3bb8e2=_0x78026c['maxColumn']-_0x78026c['minColumn']+0x1;if('insertion'==_0x225f4['type'])return _0x2742ee['length']?{'type':'insertion','content':yR(_0x30e778,'*Insert:*\x20%0',yR(_0x30e778,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3bb8e2,'\x22'+_0x2742ee['join']('\x20')+'\x22']))}:{'type':'insertion','content':yR(_0x30e778,'*Insert:*\x20%0',yR(_0x30e778,'ELEMENT_TABLE_COLUMN',_0x3bb8e2))};if('deletion'==_0x225f4['type'])return _0x2742ee['length']?{'type':'deletion','content':yR(_0x30e778,'*Remove:*\x20%0',yR(_0x30e778,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3bb8e2,'\x22'+_0x2742ee['join']('\x20')+'\x22']))}:{'type':'deletion','content':yR(_0x30e778,'*Remove:*\x20%0',yR(_0x30e778,'ELEMENT_TABLE_COLUMN',_0x3bb8e2))};}}),_0x108eaf['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x32e3b3),_0x108eaf['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x32e3b3),_0x108eaf['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x561467),_0x108eaf['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x561467),_0x108eaf['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3b634a),_0x108eaf['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3b634a),_0x108eaf['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x59c9b8),_0x108eaf['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x59c9b8);}_acceptFormatSuggestionCallbackFactory(){const _0x3589ab=this['editor'],_0x57c06e=_0x3589ab['model']['document']['selection'];return(_0x3cb529,_0xc64605)=>{_0x3589ab['model']['change'](_0x4bd3a2=>{const {commandName:_0x5e229c,commandParams:_0x3345cd}=_0xc64605;let _0x45bf9c=_0x3cb529[0x0]['end']['nodeBefore'];_0x3345cd&&_0x3345cd[0x0]&&!0x1===_0x3345cd[0x0]['forceValue']&&(_0x45bf9c=_0x3cb529[0x0]['start']['nodeAfter']);const _0x48d8e1=_0x4bd3a2['createRangeIn'](_0x45bf9c);if('$graveyard'==_0x48d8e1['root']['rootName'])return;const _0x475ef9=Array['from'](_0x57c06e['getRanges']())['map'](_0x528d8b=>_0x2a6d0b['fromRange'](_0x528d8b));_0x4bd3a2['setSelection'](_0x48d8e1),_0x3589ab['commands']['get'](_0x5e229c)['refresh'](),_0x3345cd['push']({'forceDefaultExecution':!0x0}),_0x3589ab['execute'](_0x5e229c,..._0x3345cd);const _0x27c032=_0x475ef9['filter'](_0x543ff6=>'$graveyard'!=_0x543ff6['root']['rootName']);_0x27c032['length']>0x0&&_0x4bd3a2['setSelection'](_0x27c032);for(const _0x567368 of _0x475ef9)_0x567368['detach']();});};}_getCoordsForCells(_0x5c6780){const _0x3a8033=this['editor']['plugins']['get']('TableUtils');let _0x33c25b=Number['MAX_SAFE_INTEGER'],_0x5e74f1=Number['MIN_SAFE_INTEGER'],_0x8520da=Number['MAX_SAFE_INTEGER'],_0x100bc1=Number['MIN_SAFE_INTEGER'];for(const _0x3871fe of _0x5c6780){if('$graveyard'==_0x3871fe['root']['rootName'])continue;const {row:_0x31b54d,column:_0x10d453}=_0x3a8033['getCellLocation'](_0x3871fe),_0x21a404=_0x3871fe['hasAttribute']('rowspan')?_0x3871fe['getAttribute']('rowspan')-0x1:0x0,_0x488860=_0x3871fe['hasAttribute']('colspan')?_0x3871fe['getAttribute']('colspan')-0x1:0x0;_0x33c25b=_0x31b54d<_0x33c25b?_0x31b54d:_0x33c25b,_0x5e74f1=_0x31b54d+_0x21a404>_0x5e74f1?_0x31b54d+_0x21a404:_0x5e74f1,_0x8520da=_0x10d453<_0x8520da?_0x10d453:_0x8520da,_0x100bc1=_0x10d453+_0x488860>_0x100bc1?_0x10d453+_0x488860:_0x100bc1;}return{'minRow':_0x33c25b,'maxRow':_0x5e74f1,'minColumn':_0x8520da,'maxColumn':_0x100bc1};}_setupColumnsRowsFixing(){const _0x22a413=this['editor'],_0x560ebe=_0x22a413['plugins']['get']('TrackChangesEditing'),_0x3ca016=_0x22a413['plugins']['get']('TableUtils');_0x22a413['model']['document']['on']('change:data',()=>{const _0x4e3053=Array['from'](_0x22a413['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d60f1,data:_0xc21628}of _0x4e3053){const {group:_0x17d779,id:_0x1d84a5,subType:_0x3d45a8}=Ll(_0x2d60f1);if('suggestion'!=_0x17d779)continue;if(null!=_0xc21628['oldRange'])continue;const _0x459826=_0x560ebe['getSuggestion'](_0x1d84a5);this['_tablePostFixingSubtypes']['includes'](_0x3d45a8)&&this['_tableSuggestions']['add'](_0x459826);}},{'priority':'low'});const _0x3b5197=(_0xfe6cfc,_0x446340)=>{let _0x3729e2=!0x1;const _0x532e98=_0x446340['createRangeOn'](_0xfe6cfc),_0x5798e3=_0xfe6cfc['findAncestor']('table'),_0x18b0c2=_0x3ca016['getCellLocation'](_0xfe6cfc);for(const _0x262903 of this['_tableSuggestions']){const _0x570942=_0x262903['subType'],_0x1ef66c=_0x570942['startsWith']('tablePaste'),_0x2bec70=_0x570942['substr'](_0x1ef66c?0xa:0x5),_0x4547cf=_0x2bec70['toLowerCase'](),_0x3f071e=_0x4547cf['substr'](0x0,0x3)+'span',_0x23ab13='min'+_0x2bec70,_0x202db1='max'+_0x2bec70;if(!_0x262903['isInContent'])continue;if(_0x5798e3!=_0x262903['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x262903['isIntersectingWithRange'](_0x532e98))continue;const _0x40cf94=_0xfe6cfc['hasAttribute'](_0x3f071e)?_0xfe6cfc['getAttribute'](_0x3f071e)-0x1:0x0,_0x395b6b=this['_getSuggestionCoords'](_0x262903),_0x2fbc2c=_0x395b6b[_0x23ab13],_0x1c61aa=_0x395b6b[_0x202db1];_0x2fbc2c<=_0x18b0c2[_0x4547cf]&&_0x18b0c2[_0x4547cf]+_0x40cf94<=_0x1c61aa&&(_0x262903['addRange'](_0x532e98),_0x3729e2=!0x0);}return _0x3729e2;};_0x22a413['model']['document']['registerPostFixer'](_0x1f454e=>{let _0x28b057=!0x1;for(const _0x456987 of _0x22a413['model']['document']['differ']['getChanges']())if('insert'==_0x456987['type']){if('tableRow'==_0x456987['name']){for(const _0x362b3b of _0x456987['position']['nodeAfter']['getChildren']())_0x28b057=_0x28b057||_0x3b5197(_0x362b3b,_0x1f454e);}else'tableCell'==_0x456987['name']&&(_0x28b057=_0x28b057||_0x3b5197(_0x456987['position']['nodeAfter'],_0x1f454e));}return _0x28b057;});}_getSuggestionCoords(_0x4b79b7){return this['_getCoordsForCells'](_0x4b79b7['getRanges']()['map'](_0x1a8f01=>_0x1a8f01['start']['nodeAfter']));}};function kP(_0x35c738){return Array['from'](new Set(_0x35c738)['values']());}var xP=class extends _0x11fe30{static get requires(){return[IP];}afterInit(){const _0x3130d0=this['editor'],_0x54788b=_0x3130d0['model']['document']['selection'],_0xe4fbd3=_0x3130d0['locale'];if(!_0x3130d0['plugins']['has']('TableEditing'))return;const _0x39aaac=_0x3130d0['plugins']['get']('TrackChangesEditing'),_0x454f8d=_0x3130d0['plugins']['get']('TableUtils'),_0x15da99=_0x3130d0['plugins']['get'](IP);_0x15da99['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x39aaac['enableCommand']('mergeTableCells',()=>{const _0xb1ccb7=_0x454f8d['getSelectionAffectedTableCells'](_0x3130d0['model']['document']['selection']);_0x3130d0['model']['change'](()=>{_0x39aaac['markMultiRangeBlockFormat'](_0xb1ccb7,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3130d0['commands']['get']('mergeTableCells')['on']('execute',(_0x3bc55a,_0x30e665)=>{_0x3130d0['commands']['get']('trackChanges')['value']&&(_0x30e665['length']>0x0&&_0x30e665[_0x30e665['length']-0x1]&&_0x30e665[_0x30e665['length']-0x1]['forceDefaultExecution']||_0x39aaac['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3bc55a['stop']());},{'priority':'highest'});for(const _0x2b8493 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x57b388=_0x3130d0['commands']['get'](_0x2b8493);_0x39aaac['enableCommand'](_0x2b8493,()=>{const _0x20fdc7=_0x3130d0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3fd016=>_0x3fd016['is']('element','tableCell')),_0x5abb0b=_0x57b388['value'];_0x3130d0['model']['change'](()=>{_0x39aaac['markMultiRangeBlockFormat']([_0x20fdc7,_0x5abb0b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x30cde2 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x29c159=_0x3130d0['commands']['get'](_0x30cde2);_0x39aaac['enableCommand'](_0x30cde2,()=>{const _0x446abe=_0x454f8d['getSelectionAffectedTableCells'](_0x3130d0['model']['document']['selection']),_0x3367a6=_0x446abe[0x0]['findAncestor']('table'),_0x5b1aa4=new Set();for(const _0x3745b3 of _0x446abe){const {column:_0x36c5c3,row:_0x51a970}=_0x454f8d['getCellLocation'](_0x3745b3),_0x549dfd='horizontally'==_0x29c159['direction']?_0x454f8d['createTableWalker'](_0x3367a6,{'startRow':_0x51a970,'endRow':_0x51a970,'includeAllSlots':!0x0}):_0x454f8d['createTableWalker'](_0x3367a6,{'column':_0x36c5c3,'includeAllSlots':!0x0});for(const {cell:_0x3f6d3a}of _0x549dfd)_0x5b1aa4['add'](_0x3f6d3a);}_0x3130d0['model']['change'](()=>{_0x39aaac['markMultiRangeBlockFormat'](_0x446abe,{'commandName':_0x30cde2,'commandParams':[]},Array['from'](_0x5b1aa4),_0x30cde2);});});}_0x39aaac['descriptionFactory']['registerDescriptionCallback'](_0x3d6720=>{if('formatBlock'!=_0x3d6720['type']&&'formatInline'!=_0x3d6720['type'])return;const {data:_0x28daae}=_0x3d6720;return _0x28daae&&'mergeTableCells'==_0x28daae['commandName']?{'type':'format','content':yR(_0xe4fbd3,'*Merge\x20cells*')}:void 0x0;}),_0x39aaac['descriptionFactory']['registerDescriptionCallback'](_0x483043=>{if('formatBlock'!=_0x483043['type']&&'formatInline'!=_0x483043['type'])return;const {data:_0x5399be}=_0x483043;return _0x5399be?'splitTableCellVertically'==_0x5399be['commandName']?{'type':'format','content':yR(_0xe4fbd3,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5399be['commandName']?{'type':'format','content':yR(_0xe4fbd3,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2ff367=_0x15da99['_acceptFormatSuggestionCallbackFactory']();for(const _0x4e972c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x39aaac['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4e972c,'accept',_0x2ff367);for(const _0x5db9b3 of['splitTableCellVertically','splitTableCellHorizontally'])_0x39aaac['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5db9b3,'accept',_0x8be10c=>{_0x3130d0['model']['change'](_0x4063ee=>{const _0x2cb264=Array['from'](_0x8be10c)['filter'](_0x33e84e=>'$graveyard'!=_0x33e84e['root']['rootName']&&!!_0x33e84e['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x2cb264['length'])return;const _0x7356cd=Array['from'](_0x54788b['getRanges']())['map'](_0xa5421d=>_0x2a6d0b['fromRange'](_0xa5421d));_0x4063ee['setSelection'](_0x2cb264),_0x3130d0['commands']['get'](_0x5db9b3)['refresh'](),_0x3130d0['execute'](_0x5db9b3,{'forceDefaultExecution':!0x0});const _0x2b9298=_0x7356cd['filter'](_0x35a185=>'$graveyard'!=_0x35a185['root']['rootName']);_0x2b9298['length']>0x0&&_0x4063ee['setSelection'](_0x2b9298);for(const _0x518496 of _0x7356cd)_0x518496['detach']();});});_0x39aaac['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x16a1c4=>{_0x3130d0['model']['change'](_0x261355=>{const _0xef1e75=Array['from'](_0x54788b['getRanges']())['map'](_0x699d4=>_0x2a6d0b['fromRange'](_0x699d4));_0x261355['setSelection'](_0x16a1c4),_0x3130d0['commands']['get']('mergeTableCells')['refresh'](),_0x3130d0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1ab823=_0xef1e75['filter'](_0x58f9eb=>'$graveyard'!=_0x58f9eb['root']['rootName']);_0x1ab823['length']>0x0&&_0x261355['setSelection'](_0x1ab823);for(const _0x1957a0 of _0xef1e75)_0x1957a0['detach']();});});for(const _0x48b7d8 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x11f63d=_0x3130d0['commands']['get'](_0x48b7d8);_0x11f63d['on']('set:isEnabled',(_0x3b195e,_0x17533e,_0x4e0cc4)=>{if(_0x4e0cc4){const _0x1f3b55=_0x3130d0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2d52e8=>_0x2d52e8['is']('element','tableCell'));this['_areMergableCells'](_0x11f63d['value'],_0x1f3b55)||(_0x3b195e['return']=!0x1,_0x3b195e['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x30ad95=this['editor']['commands']['get']('mergeTableCells'),_0x2c35d5=this['editor']['plugins']['get']('TableUtils');if(!_0x30ad95['isEnabled'])return!0x1;const _0x26c9c1=_0x2c35d5['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x28f571 of _0x26c9c1)for(const _0x5c12cb of _0x26c9c1)if(_0x28f571!=_0x5c12cb&&!this['_areMergableCells'](_0x28f571,_0x5c12cb))return!0x1;return!0x0;}['_areMergableCells'](_0x53e7a0,_0x369bc7){const _0x3888e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ec82e=this['editor']['model']['createRangeOn'](_0x53e7a0),_0x44fd9d=this['editor']['model']['createRangeOn'](_0x369bc7),_0x52924b=new Set(),_0x94bbf8=new Set();for(const _0x4ed2d0 of _0x3888e5['getSuggestions']())if(('insertion'==_0x4ed2d0['type']||'deletion'==_0x4ed2d0['type']||'mergeTableCells'==_0x4ed2d0['subType'])&&_0x4ed2d0['isInContent']){for(const _0xc88907 of _0x4ed2d0['getRanges']())_0xc88907['containsRange'](_0x1ec82e,!0x0)&&_0x52924b['add'](_0x4ed2d0['type']+':'+_0x4ed2d0['author']['id']),_0xc88907['containsRange'](_0x44fd9d,!0x0)&&_0x94bbf8['add'](_0x4ed2d0['type']+':'+_0x4ed2d0['author']['id']);}if(_0x52924b['size']!=_0x94bbf8['size'])return!0x1;for(const _0x14c921 of _0x52924b)if(!_0x94bbf8['has'](_0x14c921))return!0x1;return!0x0;}},CP=class extends _0x11fe30{static get requires(){return[IP];}afterInit(){const _0x394fdd=this['editor'];if(!_0x394fdd['plugins']['has']('TableEditing'))return;const _0x23ae96=_0x394fdd['locale'],_0x30a92f=_0x394fdd['plugins']['get']('TrackChangesEditing');_0x30a92f['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x30a92f['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x30a92f['descriptionFactory']['registerAttributeLabel']('headingRows',yR(_0x23ae96,'FORMAT_HEADER_ROW')),_0x30a92f['descriptionFactory']['registerAttributeLabel']('headingColumns',yR(_0x23ae96,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x31b8b8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35d771=this['editor']['plugins']['get'](IP)['_acceptFormatSuggestionCallbackFactory']();_0x31b8b8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x35d771),_0x31b8b8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x35d771),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x5082cd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x150536=this['editor']['plugins']['get']('TableUtils');function _0xd5be3b({showActiveMarker:_0x320d51=!0x0,setDataAttribute:_0x2d5bc2=!0x0}={}){return(_0x286243,_0x1bd08c,_0x2369ea)=>{const {type:_0x45ae15,id:_0x589e54}=Ll(_0x1bd08c['markerName']);if(!_0x5082cd['hasSuggestion'](_0x589e54))return;const _0x5d4632=_0x5082cd['getSuggestion'](_0x589e54),_0x15984e=_0x5d4632['data'];if('formatBlock'!=_0x5d4632['type']||!_0x15984e||'setTableColumnHeader'!=_0x15984e['commandName'])return;if(_0x1bd08c['item'])return void _0x286243['stop']();if(!_0x2369ea['consumable']['consume'](_0x1bd08c['markerRange'],_0x286243['name']))return;const _0x19f272=_0x1bd08c['markerRange']['start']['nodeAfter'],_0x1ac487=_0x1bd08c['markerRange']['end']['nodeBefore'],_0x1efbf2=_0x19f272['parent']['parent'],{column:_0x42f5d1}=_0x150536['getCellLocation'](_0x19f272),{column:_0x3cc5da}=_0x150536['getCellLocation'](_0x1ac487);for(let _0x10f036=_0x42f5d1;_0x10f036<=_0x3cc5da;_0x10f036++){const _0x2a0544=_0x150536['createTableWalker'](_0x1efbf2,{'column':_0x10f036,'includeAllSlots':!0x1});for(const _0x580912 of _0x2a0544){const _0xfdf108=_0x580912['cell'],_0x510a46=_0x2369ea['mapper']['toViewElement'](_0xfdf108);_0x2369ea['writer']['addClass']('ck-suggestion-marker-'+_0x45ae15,_0x510a46),_0x2d5bc2&&_0x2369ea['writer']['setAttribute']('data-suggestion',_0x589e54,_0x510a46),_0x2369ea['mapper']['bindElementToMarker'](_0x510a46,_0x1bd08c['markerName']),_0x320d51&&(_0x5082cd['activeMarkers']['includes'](_0x1bd08c['markerName'])?_0x2369ea['writer']['addClass']('ck-suggestion-marker--active',_0x510a46):_0x2369ea['writer']['removeClass']('ck-suggestion-marker--active',_0x510a46));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xd5be3b(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x10530a,_0x42ef28,_0x212093)=>{_0x212093['options']['showSuggestionHighlights']&&_0xd5be3b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x10530a,_0x42ef28,_0x212093);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x369734,_0x8caac,_0x7edfd0)=>{const {type:_0x123a7b,id:_0x9eff81}=Ll(_0x8caac['markerName']);if(!_0x5082cd['hasSuggestion'](_0x9eff81))return;const _0x5e1516=_0x5082cd['getSuggestion'](_0x9eff81),_0x4b4d7e=_0x5e1516['data'];if('formatBlock'!=_0x5e1516['type']||!_0x4b4d7e||'setTableColumnHeader'!=_0x4b4d7e['commandName'])return;const _0xbb7f6b=_0x7edfd0['mapper']['markerNameToElements'](_0x8caac['markerName']);if(_0xbb7f6b){for(const _0xeb5b41 of _0xbb7f6b)_0x7edfd0['writer']['removeClass']('ck-suggestion-marker-'+_0x123a7b,_0xeb5b41),_0x7edfd0['writer']['removeClass']('ck-suggestion-marker--active',_0xeb5b41),_0x7edfd0['writer']['removeAttribute']('data-suggestion',_0xeb5b41),_0x7edfd0['mapper']['unbindElementFromMarkerName'](_0xeb5b41,_0x8caac['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x53ad41=this['editor'],_0xaa8d91=_0x53ad41['locale'];function _0x3f88f8(_0x4923b3){return{'type':'format','content':yR(_0xaa8d91,'*Format:*\x20%0',_0x4923b3)};}_0x53ad41['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1df883=>{if('formatBlock'!=_0x1df883['type'])return;const {data:_0x889386}=_0x1df883;return _0x889386?'setTableRowHeader'==_0x889386['commandName']?_0x889386['commandParams'][0x0]['forceValue']?_0x3f88f8(yR(_0xaa8d91,'FORMAT_HEADER_ROW')):_0x3f88f8(yR(_0xaa8d91,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x889386['commandName']?_0x889386['commandParams'][0x0]['forceValue']?_0x3f88f8(yR(_0xaa8d91,'FORMAT_HEADER_COLUMN')):_0x3f88f8(yR(_0xaa8d91,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},RP=class extends _0x11fe30{static get requires(){return[IP];}afterInit(){const _0x3dd8b3=this['editor'];if(!_0x3dd8b3['plugins']['has']('TableEditing')||!_0x3dd8b3['config']['get']('table.enableFooters'))return;const _0xcd3921=_0x3dd8b3['locale'],_0x23828c=_0x3dd8b3['plugins']['get']('TrackChangesEditing');_0x23828c['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x23828c['descriptionFactory']['registerAttributeLabel']('footerRows',yR(_0xcd3921,'FORMAT_FOOTER_ROW'));}},PP=class extends _0x11fe30{afterInit(){const _0x116ba2=this['editor'],_0x43c98d=_0x116ba2['locale'],_0x51af76=_0x116ba2['plugins']['get']('TrackChangesEditing');function _0xfd4d34(_0x54f9de){return{'type':'format','content':''+yR(_0x43c98d,'*Set\x20table\x20type:*\x20%0',_0x54f9de)};}_0x116ba2['plugins']['has']('TableLayout')&&(_0x51af76['enableCommand']('insertTableLayout'),_0x51af76['enableDefaultAttributesIntegration']('tableType'),_0x51af76['descriptionFactory']['registerElementLabel'](_0x34da30=>_0x34da30['is']('element','table')&&'layout'===_0x34da30['getAttribute']('tableType'),_0x343518=>yR(_0x43c98d,'ELEMENT_LAYOUT_TABLE',_0x343518)),_0x51af76['descriptionFactory']['registerDescriptionCallback'](_0x1c2e1f=>{const {data:_0x14c352}=_0x1c2e1f;if(_0x14c352&&'tableType'==_0x14c352['key'])switch(_0x14c352['newValue']){case'layout':return _0xfd4d34(yR(_0x43c98d,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xfd4d34(yR(_0x43c98d,'ELEMENT_CONTENT_TABLE'));}}));}};const NP=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],MP=/* #__PURE__ -- @preserve */
Object['fromEntries'](NP['map'](_0xf01637=>[_0xf01637,null]));var LP=class extends _0x11fe30{static get requires(){return[IP];}afterInit(){const _0x214e4f=this['editor'];if(!_0x214e4f['plugins']['has']('TableClipboard'))return;const _0x26767f=_0x214e4f['plugins']['get']('TrackChangesEditing'),_0x319f43=_0x214e4f['plugins']['get']('TableUtils'),_0x27e6a=_0x214e4f['plugins']['get'](IP),_0xc16f2=_0x214e4f['plugins']['get']('TableClipboard'),_0x401d3a=_0x214e4f['plugins']['get']('TableSelection'),_0x356947=_0x214e4f['plugins']['get'](_0x4b8e01);_0x27e6a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x214e4f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x214e4f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5172b7=null,_0x4b11b7=!0x1;_0x356947['on']('contentInsertion',(_0x5816fe,_0x581638)=>{_0x4b11b7='paste'===_0x581638['method'];}),_0x214e4f['model']['on']('insertContent',(_0x5bd3e0,_0x4644ae)=>{if(!_0x4b11b7&&null===_0x401d3a['getSelectedTableCells']())return;const [_0x2079e2,_0x3b5ca8]=_0x4644ae,_0x24f398=_0x4644ae[_0x4644ae['length']-0x1];_0x24f398&&_0x24f398['forceDefaultExecution']||_0x26767f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xc43807,_0x5e4658,_0x252b13,_0x557319,_0x3fd43d){if(_0x5e4658&&!_0x5e4658['is']('documentSelection'))return!0x1;const _0x24c909=_0x3fd43d['getTableIfOnlyTableInContent'](_0xc43807,_0x252b13);if(!_0x24c909||!DP(_0x24c909,void 0x0,_0x557319))return!0x1;const _0x312933=_0x557319['getSelectionAffectedTableCells'](_0x252b13['document']['selection']);if(!_0x312933['length'])return!0x1;const _0x75d18d=_0x312933[0x0]['findAncestor']('table'),_0x265b76=_0x557319['getRowIndexes'](_0x312933),_0x4f1c41=_0x557319['getColumnIndexes'](_0x312933),_0x2ad6df={'startRow':_0x265b76['first'],'endRow':_0x265b76['last'],'startColumn':_0x4f1c41['first'],'endColumn':_0x4f1c41['last']};return 0x1==_0x312933['length']&&(_0x2ad6df['endRow']+=_0x557319['getRows'](_0x24c909)-0x1,_0x2ad6df['endColumn']+=_0x557319['getColumns'](_0x24c909)-0x1),DP(_0x75d18d,_0x2ad6df,_0x557319);}(_0x2079e2,_0x3b5ca8,_0x214e4f['model'],_0x319f43,_0xc16f2)&&(_0x5bd3e0['stop'](),_0x5172b7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x214e4f['model']['change'](()=>{_0x214e4f['model']['insertContent'](_0x4644ae[0x0],_0x4644ae[0x1],_0x4644ae[0x2],{'forceDefaultExecution':!0x0});const _0x32c5b0=_0xea66bb(),{rowInsertionRanges:_0x2b8aa9,columnInsertionRanges:_0x36b258,insertionRanges:_0x38869b,deletionRanges:_0x549040,cells:_0x585e5a}=_0x5172b7;_0x2b8aa9['length']&&_0x26767f['markMultiRangeInsertion'](_0x2b8aa9,'tablePasteRow',{'tablePasteChainId':_0x32c5b0}),_0x36b258['length']&&_0x26767f['markMultiRangeInsertion'](_0x36b258,'tablePasteColumn',{'tablePasteChainId':_0x32c5b0}),_0x38869b['length']&&(_0x26767f['markMultiRangeInsertion'](_0x38869b,'tablePaste',{'tablePasteChainId':_0x32c5b0,'skipNestingCheck':!0x0}),_0x38869b['forEach'](_0x1373b2=>_0x1373b2['detach']?.())),_0x549040['length']&&(_0x26767f['markMultiRangeDeletion'](_0x549040,'tablePaste',{'tablePasteChainId':_0x32c5b0,'skipNestingCheck':!0x0}),_0x549040['forEach'](_0x4bcb70=>_0x4bcb70['detach']?.()));const _0x6007a=_0x26767f['markMultiRangeBlockFormat'](_0x585e5a['map'](({element:_0x20af11})=>_0x20af11),{'formatGroupId':_0xea66bb()},[],'tablePasteCell',{'tablePasteChainId':_0x32c5b0});if(_0x6007a){const _0x3550dd=_0x6007a['getMarkers'](),_0x2ead2f=[];for(const {element:_0x5fc090,attributes:_0x981961}of _0x585e5a){if(!_0x981961)continue;const _0x3a3a9a=_0x214e4f['model']['createRangeOn'](_0x5fc090),_0x4ddab3=_0x3550dd['find'](_0x363097=>_0x363097['getRange']()['isEqual'](_0x3a3a9a));_0x4ddab3&&_0x2ead2f['push']([_0x4ddab3['name'],_0x981961]);}_0x2ead2f['length']&&_0x6007a['setAttribute']('markerAttributes',Object['fromEntries'](_0x2ead2f));}_0x5172b7=null;}));},{'priority':_0x1a573c['high']+0xa}),_0x356947['on']('contentInsertion',()=>{_0x4b11b7=!0x1;},{'priority':'lowest'}),_0x214e4f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x35b314,_0x1b9341)=>{const [_0xd5a251,_0x360536,,_0x3fb11f]=_0x1b9341;if(!_0x5172b7)return;_0x35b314['stop']();const _0xec5988=_0xd5a251['cell'],_0x589f31=_0x360536,_0x581845=$P(_0xec5988),_0x1e1406=$P(_0x589f31);_0x35b314['return']=_0xec5988;let _0x5e0a78=null,_0x3aa7d6=null;if(_0x1e1406||_0x581845){if(_0x581845&&!_0x1e1406){_0x3fb11f['remove'](_0xec5988['getChild'](0x0));for(const _0x48d928 of Array['from'](_0x589f31['getChildren']()))_0x3fb11f['insert'](_0x48d928,_0xec5988,'end');const _0x7489f5=_0x5172b7['rowInsertionIndexes']['includes'](_0xd5a251['row']),_0x33e088=_0x5172b7['columnInsertionIndexes']['includes'](_0xd5a251['column']);_0x7489f5||_0x33e088||(_0x5e0a78=_0x2a6d0b['fromRange'](_0x3fb11f['createRangeIn'](_0xec5988)));}else _0x1e1406&&!_0x581845&&(_0x3aa7d6=_0x3fb11f['createRangeIn'](_0xec5988));}else{const _0x24fc5a=_0x3fb11f['createElement']('tableCellSuggestion'),_0x199bdd=_0x3fb11f['createElement']('tableCellSuggestion');_0x3fb11f['wrap'](_0x3fb11f['createRangeIn'](_0xec5988),_0x199bdd),_0x3fb11f['insert'](_0x24fc5a,_0xec5988,0x0);for(const _0x491a48 of Array['from'](_0x589f31['getChildren']()))_0x3fb11f['insert'](_0x491a48,_0x24fc5a,'end');_0x5e0a78=_0x2a6d0b['fromRange'](_0x3fb11f['createRangeOn'](_0x24fc5a)),_0x3aa7d6=_0x2a6d0b['fromRange'](_0x3fb11f['createRangeOn'](_0x199bdd));}const _0x5ae00e=Array['from'](_0x589f31['getAttributes']())['filter'](([_0x3bbc16])=>NP['includes'](_0x3bbc16));_0x5172b7['cells']['push']({'element':_0xec5988,'attributes':_0x5ae00e['length']?Object['fromEntries'](_0x5ae00e):null}),_0x5e0a78&&_0x5172b7['insertionRanges']['push'](_0x5e0a78),_0x3aa7d6&&_0x5172b7['deletionRanges']['push'](_0x3aa7d6);},{'priority':'high'}),_0x319f43['on']('insertColumns',(_0x5284c5,_0x41b1f8)=>{const [_0x244692,_0x17a8cf={}]=_0x41b1f8;if(!_0x5172b7)return;const _0x257fbd=_0x17a8cf['at']||0x0,_0x3b2bc3=_0x17a8cf['columns']||0x1;_0x5172b7['columnInsertionIndexes']=new Array(_0x3b2bc3)['fill'](_0x257fbd)['map']((_0x1bddc1,_0x3507b1)=>_0x1bddc1+_0x3507b1);for(const {cell:_0x3afce9}of _0x319f43['createTableWalker'](_0x244692,{'startColumn':_0x257fbd,'endColumn':_0x257fbd+_0x3b2bc3-0x1}))_0x5172b7['columnInsertionRanges']['push'](_0x214e4f['model']['createRangeOn'](_0x3afce9));},{'priority':'low'}),_0x319f43['on']('insertRows',(_0x275fb4,_0x14aec6)=>{const [_0x5156fa,_0x3cc817={}]=_0x14aec6;if(!_0x5172b7)return;const _0x285108=_0x3cc817['at']||0x0,_0x5afcd2=_0x3cc817['rows']||0x1;_0x5172b7['rowInsertionIndexes']=new Array(_0x5afcd2)['fill'](_0x285108)['map']((_0x64e97c,_0x403334)=>_0x64e97c+_0x403334);for(const {cell:_0x91e31}of _0x319f43['createTableWalker'](_0x5156fa,{'startRow':_0x285108,'endRow':_0x285108+_0x5afcd2-0x1}))_0x5172b7['rowInsertionRanges']['push'](_0x214e4f['model']['createRangeOn'](_0x91e31));},{'priority':'low'}),_0x26767f['descriptionFactory']['registerDescriptionCallback'](_0x2d0218=>{if(_0x2d0218['subType']&&_0x2d0218['subType']['startsWith']('tablePaste'))return _0x2d0218['previous']?{}:{'type':'insertion','content':yR(_0x214e4f['locale'],'*Replace\x20table\x20cells*')};});const _0x1c7ee7=()=>!0x1;for(const _0x3e9bbf of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x26767f['_suggestionFactory']['registerCustomCallback']('insertion',_0x3e9bbf,'join',_0x1c7ee7),_0x26767f['_suggestionFactory']['registerCustomCallback']('deletion',_0x3e9bbf,'join',_0x1c7ee7),_0x26767f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3e9bbf,'join',_0x1c7ee7);_0x26767f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1c7ee7),_0x26767f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x215237,_0x309efe,_0x17e41d)=>{const _0x408cc7=_0x215237['map'](_0xedb2d4=>_0xedb2d4['getContainedElement']())['filter'](_0x172017=>_0x172017),_0x139892=new Map(_0x408cc7['map'](_0x45bafd=>[_0x45bafd,null]));if(_0x5172b7){for(const {element:_0x4a2290,attributes:_0x37f138}of _0x5172b7['cells'])_0x37f138&&_0x139892['set'](_0x4a2290,_0x37f138);}else{if(_0x17e41d&&_0x17e41d['markerAttributes'])for(const [_0x8a6c9c,_0x2db743]of Object['entries'](_0x17e41d['markerAttributes'])){const _0xb4694e=_0x214e4f['model']['markers']['get'](_0x8a6c9c),_0x15be08=_0xb4694e?_0xb4694e['getRange']()['getContainedElement']():null;_0x15be08&&_0x139892['set'](_0x15be08,_0x2db743);}}_0x214e4f['model']['change'](_0x10b921=>{for(const [_0x245126,_0x104b4d]of _0x139892)_0x10b921['setAttributes']({...MP,..._0x104b4d},_0x245126);});});const _0x26c726=(_0x18cded,_0x458076)=>{_0x26767f['_suggestionFactory']['registerCustomCallback'](_0x18cded,'tablePaste',_0x458076,(_0x12470f,_0x338497,_0x3876fb)=>{_0x214e4f['model']['change'](_0x1cef01=>{const _0x55d844=[];for(const _0x1bce6e of _0x12470f){const _0x1bd0e2=_0x1bce6e['start']['nodeAfter'];_0x1bd0e2['is']('element','tableCellSuggestion')&&_0x55d844['push'](_0x1bd0e2);}_0x26767f['_suggestionFactory']['getSuggestionCallback'](_0x18cded,null,_0x458076)(_0x12470f,_0x338497,_0x3876fb);for(const _0x46a7f3 of _0x55d844)'$graveyard'!=_0x46a7f3['root']['rootName']&&_0x1cef01['unwrap'](_0x46a7f3);});});};_0x26c726('insertion','accept'),_0x26c726('insertion','discard'),_0x26c726('deletion','accept'),_0x26c726('deletion','discard'),_0x26767f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x31f9c4=>{const _0x2a44f5=_0x31f9c4['map'](_0x161c5a=>_0x161c5a['getContainedElement']()),_0x555bdf=_0x2a44f5[0x0]['findAncestor']('table'),{minRow:_0x3085e6,maxRow:_0x49c359}=_0x27e6a['_getCoordsForCells'](_0x2a44f5);_0x319f43['removeRows'](_0x555bdf,{'at':_0x3085e6,'rows':_0x49c359-_0x3085e6+0x1});}),_0x26767f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x53c14b=>{const _0x2c858e=_0x53c14b['map'](_0xafd09d=>_0xafd09d['getContainedElement']()),_0x506be4=_0x2c858e[0x0]['findAncestor']('table'),{minColumn:_0x123ad4,maxColumn:_0x541d26}=_0x27e6a['_getCoordsForCells'](_0x2c858e);_0x319f43['removeColumns'](_0x506be4,{'at':_0x123ad4,'columns':_0x541d26-_0x123ad4+0x1});});const _0x5462f9=(_0x745bf0,_0x4d08d5)=>{if(!_0x4d08d5['subType']||!_0x4d08d5['subType']['startsWith']('tablePaste'))return;const _0x53d16a=_0x4d08d5['attributes']['tablePasteChainId'],_0x22fa25=_0x26767f['getSuggestions']()['filter'](_0x3c7e53=>_0x3c7e53['isInContent']&&_0x3c7e53['attributes']&&_0x3c7e53['attributes']['tablePasteChainId']==_0x53d16a);_0x22fa25['length']&&_0x4d08d5['getAllAdjacentSuggestions']()['length']!=_0x22fa25['length']&&_0x22fa25['reduce']((_0x264500,_0x513032)=>(_0x264500['next']=_0x513032,_0x513032['previous']=_0x264500,_0x513032));};function _0x1d4982(_0x104801,_0x3e88a6=!0x0){const {id:_0x28a59d,authorId:_0x1cce51}=Ll(_0x104801['markerName']),_0x56f597=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x136ee8=_0x26767f['activeMarkers']['includes'](_0x104801['markerName']);return _0x136ee8&&_0x56f597['push']('ck-suggestion-marker--active'),{'classes':_0x56f597,'attributes':{'data-suggestion':_0x28a59d,'data-author-id':_0x1cce51},'priority':_0x136ee8&&_0x3e88a6?0xbc2:0xbb8};}_0x26767f['on']('suggestionLoaded',_0x5462f9,{'priority':'high'}),_0x26767f['on']('suggestionUnloaded',_0x5462f9,{'priority':'high'}),_0x214e4f['model']['document']['registerPostFixer'](()=>{let _0x3d82ea=!0x1;const _0x1105eb=Array['from'](_0x214e4f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1a9e21,data:_0x13e699}of _0x1105eb){const {group:_0x499b89,type:_0x373ca6,id:_0x1d44be}=Ll(_0x1a9e21);if('suggestion'!=_0x499b89||'deletion'!=_0x373ca6||_0x13e699['oldRange'])continue;if(!_0x26767f['hasSuggestion'](_0x1d44be))continue;const _0x28fed0=_0x26767f['getSuggestion'](_0x1d44be)['getRanges'](),_0x7910eb=_0x214e4f['plugins']['get']('Users')['me'];for(const _0x2c01a8 of _0x26767f['getSuggestions']())if(_0x2c01a8['isInContent']&&_0x2c01a8['author']==_0x7910eb&&'formatBlock'==_0x2c01a8['type']&&'tablePasteCell'==_0x2c01a8['subType']&&_0x2c01a8['getRanges']()['every'](_0x38425d=>_0x28fed0['some'](_0xb8cd3b=>_0xb8cd3b['containsRange'](_0x38425d,!0x0)))){for(const _0x2a0f83 of _0x2c01a8['getAllAdjacentSuggestions']())_0x2a0f83['isInContent']&&(_0x2a0f83['discard'](),_0x3d82ea=!0x0);}}return _0x3d82ea;}),_0x214e4f['model']['document']['registerPostFixer'](_0x114018=>{const _0x137d26=_0x214e4f['commands']['get']('redo');if(!_0x137d26||!_0x137d26['_createdBatches']['has'](_0x114018['batch']))return!0x1;let _0x4e2f77=!0x1;const _0x229f99=_0x214e4f['plugins']['get']('Users')['me'],_0x47483c=_0x214e4f['model']['document']['differ']['getChanges'](),_0x4ceed9=Array['from'](_0x214e4f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4bff3a,data:_0x68a4f5})=>{const {group:_0x4a8599,subType:_0x1adf99,authorId:_0x1f9115}=Ll(_0x4bff3a);return'suggestion'==_0x4a8599&&'tablePaste'==_0x1adf99&&_0x1f9115==_0x229f99['id']&&!_0x68a4f5['oldRange'];});for(const _0x546449 of _0x47483c){if('insert'!=_0x546449['type']||'tableCellSuggestion'!=_0x546449['name']||0x1!=_0x546449['length'])continue;const _0x308147=_0x114018['createRange'](_0x546449['position'],_0x546449['position']['getShiftedBy'](0x1));if(!_0x4ceed9['find'](({data:_0x22d09b})=>_0x22d09b['newRange']['isEqual'](_0x308147))){for(const {name:_0x23cff2,data:_0xf6eaa3}of _0x4ceed9)if(_0x308147['containsRange'](_0xf6eaa3['newRange'])){_0x114018['updateMarker'](_0x23cff2,{'range':_0x308147}),_0x4e2f77=!0x0;break;}}}return _0x4e2f77;}),_0x214e4f['model']['document']['registerPostFixer'](_0x22a1e9=>{let _0x4d4028=!0x1;const _0x16b379=_0x214e4f['plugins']['get']('Users')['me'],_0x4516f0=_0x26767f['getSuggestions']()['filter'](_0x3b5eb5=>_0x3b5eb5['isInContent']&&_0x3b5eb5['author']==_0x16b379),_0x57a3b0=new Set(),_0x14e64e=new Set();for(const _0x56b39e of _0x4516f0)if('tablePaste'==_0x56b39e['subType'])for(const _0x291746 of _0x56b39e['getMarkers']()){const _0x1b4671=_0x291746['getRange']()['getContainedElement']();if(_0x1b4671){if(_0x1b4671['is']('element','tableCellSuggestion')&&$P(_0x1b4671)){_0x56b39e['removeMarker'](_0x291746['name']),_0x57a3b0['add'](_0x1b4671),_0x4d4028=!0x0;const _0x1518c4=_0x1b4671['nextSibling'],_0x127030=_0x1b4671['previousSibling'],_0x4faf80=_0x1518c4&&_0x1518c4['is']('element','tableCellSuggestion'),_0x3ef093=_0x127030&&_0x127030['is']('element','tableCellSuggestion');_0x4faf80&&!_0x57a3b0['has'](_0x1518c4)&&_0x14e64e['add'](_0x1518c4),_0x3ef093&&!_0x57a3b0['has'](_0x127030)&&_0x14e64e['add'](_0x127030);}else _0x1b4671['is']('element','paragraph')&&_0x1b4671['isEmpty']&&(_0x56b39e['removeMarker'](_0x291746['name']),_0x4d4028=!0x0);}}else{if('tablePasteCell'==_0x56b39e['subType']){if(!_0x56b39e['attributes']||!_0x56b39e['attributes']['tablePasteChainId'])continue;const _0x84d405=_0x56b39e['attributes']['markerAttributes'];if(_0x84d405&&Object['keys'](_0x84d405)['length'])continue;const _0x856c3b=_0x56b39e['attributes']['tablePasteChainId'];let _0x1779e4=!0x0,_0x1fa879=!0x0;for(const _0x1ddce2 of _0x4516f0)if(_0x1ddce2['subType']&&_0x1ddce2['subType']['startsWith']('tablePaste')){if(!_0x1ddce2['attributes']['tablePasteChainId']){_0x1fa879=!0x1;break;}if(_0x1ddce2['id']!=_0x56b39e['id']&&_0x1ddce2['attributes']['tablePasteChainId']==_0x856c3b){_0x1779e4=!0x1;break;}}_0x1fa879&&_0x1779e4&&(_0x56b39e['removeMarkers'](),_0x4d4028=!0x0);}}for(const _0x3bce13 of _0x57a3b0)_0x22a1e9['remove'](_0x3bce13);for(const _0x3d662d of _0x14e64e)_0x22a1e9['unwrap'](_0x3d662d);return _0x4d4028;}),_0x214e4f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x65edc2=>_0x1d4982(_0x65edc2),'converterPriority':'high'}),_0x214e4f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5b233b,_0x268e9b)=>_0x268e9b['options']['showSuggestionHighlights']?_0x1d4982(_0x5b233b,!0x1):null,'converterPriority':'high'});const _0x384f91=_0x214e4f['editing']['view'];this['listenTo'](_0x384f91['document'],'clipboardOutput',(_0xdd6a7b,_0x4d72a5)=>{const _0x2f311b=[];for(const _0x4d8c38 of _0x384f91['createRangeIn'](_0x4d72a5['content'])['getItems']())_0x4d8c38['is']('element','suggestion-td')&&_0x2f311b['push'](_0x4d8c38);_0x384f91['change'](_0x3f9813=>{for(const _0x4228e7 of _0x2f311b)_0x3f9813['move'](_0x3f9813['createRangeIn'](_0x4228e7),_0x3f9813['createPositionBefore'](_0x4228e7)),_0x3f9813['remove'](_0x4228e7);});});}};function $P(_0x25d1cd){if(_0x25d1cd['isEmpty'])return!0x0;const _0x48170b=_0x25d1cd['getChild'](0x0);return _0x48170b['is']('element','paragraph')&&_0x48170b['isEmpty'];}function DP(_0x58943e,_0x38ab70={},_0x3888db){for(const {isAnchor:_0x179927,cellHeight:_0x9e1f15,cellWidth:_0xdccfcd}of _0x3888db['createTableWalker'](_0x58943e,{'includeAllSlots':!0x0,..._0x38ab70}))if(!_0x179927||0x1!=_0x9e1f15||0x1!=_0xdccfcd)return!0x1;return!0x0;}var QP=class extends _0x11fe30{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x34e004=this['editor']['plugins']['get']('TrackChangesEditing');_0x34e004['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x34e004['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x34e004['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x34e004['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x41ea51=_0x34e004['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x34e004['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x2ee12b,_0x58039a)=>{_0x41ea51(_0x2ee12b,_0x58039a),this['_restoreCellWidths'](_0x2ee12b[0x0]['start']['nodeAfter'],_0x58039a['commandParams'][0x0]['cellWidths']);}),_0x34e004['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x8d748,_0x17b9a5){const _0x5a76a7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x196685=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3c1f57=_0x17b9a5['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2f2ea0=_0x196685['getColumnGroupElement'](_0x3c1f57);let _0x4a38f2=_0x2f2ea0?_0x196685['getTableColumnsWidths'](_0x2f2ea0):null,_0x53496a=_0x3c1f57['getAttribute']('tableWidth')||null;const _0x3fd8ab=_0x17b9a5['tableWidth']||_0x53496a,_0x3e184e=_0x17b9a5['columnWidths']||_0x4a38f2;let _0x2802db=this['_getCellWidths'](_0x3c1f57);const _0x4abb02=this['_foldResizeTableSuggestion'](_0x3c1f57);_0x4abb02&&(_0x53496a=_0x4abb02['tableWidth'],_0x4a38f2=_0x4abb02['columnWidths'],_0x2802db=_0x4abb02['cellWidths']||_0x2802db),_0x8d748({'table':_0x3c1f57,'tableWidth':_0x3fd8ab,'columnWidths':_0x3e184e}),_0x5a76a7['markBlockFormat'](_0x3c1f57,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x53496a,'columnWidths':_0x4a38f2,'cellWidths':_0x2802db}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x5e27d7,_0x32fc7f={}){if(void 0x0===_0x32fc7f['value']||''===_0x32fc7f['value'])return void _0x5e27d7(_0x32fc7f);const _0x419426=this['editor']['plugins']['get']('TrackChangesEditing'),_0x389907=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4317be=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x32fc7f['batch']||(_0x32fc7f['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x32fc7f['batch'],()=>{const _0x55f0e4=_0x389907['getColumnGroupElement'](_0x4317be);let _0x106a36=_0x55f0e4?_0x389907['getTableColumnsWidths'](_0x55f0e4):null,_0x30e64d=_0x4317be['getAttribute']('tableWidth')||null,_0x4d8794=this['_getCellWidths'](_0x4317be);const _0x7d0bca=this['_foldResizeTableSuggestion'](_0x4317be,!0x0);_0x7d0bca&&(_0x30e64d=_0x7d0bca['tableWidth'],_0x106a36=_0x7d0bca['columnWidths'],_0x4d8794=_0x7d0bca['cellWidths']||_0x4d8794),_0x5e27d7(_0x32fc7f),_0x419426['markBlockFormat'](_0x4317be,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x30e64d,'columnWidths':_0x106a36,'cellWidths':_0x4d8794}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x364cfd,_0x48eb8e=!0x1){const _0x2e00ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16f90=this['editor']['plugins']['get']('Users')['me'];for(const _0x3ce87a of _0x2e00ca['getSuggestions']({'skipNotAttached':!0x0})){const _0x6caa72=_0x3ce87a['getContainedElement']();if('resizeTable'===_0x3ce87a['subType']&&_0x6caa72===_0x364cfd){_0x3ce87a['author']!==_0x16f90&&(_0x48eb8e?_0x3ce87a['removeMarkers']():_0x3ce87a['discard']());const _0x55f974=_0x3ce87a['data']['commandParams'];return{'tableWidth':_0x55f974[0x0]['tableWidth'],'columnWidths':_0x55f974[0x0]['columnWidths'],'cellWidths':_0x55f974[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x2c6417){const _0x4ac499=[];for(const _0x2e3dd8 of _0x2c6417['getChildren']())if(_0x2e3dd8['is']('element','tableRow')){for(const _0x2edc41 of _0x2e3dd8['getChildren']())_0x4ac499['push'](_0x2edc41['getAttribute']('tableCellWidth')||null);}return _0x4ac499;}_restoreCellWidths(_0x5e4ab8,_0x115277){_0x115277&&this['editor']['model']['change'](_0x22dfde=>{let _0x3e9ffc=0x0;for(const _0x14ffd2 of _0x5e4ab8['getChildren']())if(_0x14ffd2['is']('element','tableRow'))for(const _0x4aea2a of _0x14ffd2['getChildren']()){const _0x5aa6f6=_0x115277[_0x3e9ffc++];_0x5aa6f6&&_0x22dfde['setAttribute']('tableCellWidth',_0x5aa6f6,_0x4aea2a);}});}handleSuggestionDescription(_0x4d569c){if('formatBlock'!=_0x4d569c['type']&&'formatInline'!=_0x4d569c['type'])return;const {data:_0x388034}=_0x4d569c;return _0x388034&&'resizeTable'===_0x388034['formatGroupId']?{'type':'format','content':yR(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},jP=class extends _0x11fe30{afterInit(){const _0x4f0e07=this['editor'];_0x4f0e07['plugins']['has']('Template')&&_0x4f0e07['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},UP=class extends _0x11fe30{afterInit(){const _0x253802=this['editor'];if(!_0x253802['commands']['get']('insertTableOfContents'))return;_0x253802['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x415ffd=_0x253802['plugins']['get']('TrackChangesEditing'),_0x5b9ba5=_0x253802['locale'];_0x415ffd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x573f68=>yR(_0x5b9ba5,'ELEMENT_TABLE_OF_CONTENTS',_0x573f68));}},VP=class extends _0x11fe30{afterInit(){const _0x54013a=this['editor'];_0x54013a['plugins']['has']('Title')&&(_0x54013a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>yR(_0x54013a['locale'],'ELEMENT_TITLE')),_0x54013a['model']['document']['registerPostFixer'](_0x2b3127=>{let _0x2c8c35=!0x1;const _0x2e4b32=Array['from'](_0x54013a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2894bd,data:_0x5451de}of _0x2e4b32){const {group:_0x2e2989}=Ll(_0x2894bd);if('suggestion'!==_0x2e2989||!_0x5451de['newRange'])continue;const _0x137afc=_0x5451de['newRange'],_0x540da9=_0x137afc['end']['nodeBefore'];if(!_0x540da9||!_0x540da9['is']('element','title-content'))continue;if(!_0x137afc['start']['isTouching'](_0x137afc['end']))continue;const _0x41b117=_0x54013a['model']['schema']['getNearestSelectionRange'](_0x137afc['end'],'forward');if(_0x41b117&&_0x41b117['isCollapsed']){const _0x323c19=_0x2b3127['createRange'](_0x137afc['start'],_0x41b117['start']);_0x323c19['isEqual'](_0x137afc)||(_0x2b3127['updateMarker'](_0x2894bd,{'range':_0x323c19}),_0x2c8c35=!0x0);}_0x2c8c35||(_0x2b3127['removeMarker'](_0x2894bd),_0x2c8c35=!0x0);}return _0x2c8c35;}));}},BP=class extends _0x11fe30{afterInit(){const _0x3d428c=this['editor'],_0xf3b8f2=_0x3d428c['plugins']['get']('TrackChangesEditing');_0x3d428c['plugins']['has']('Uploadcare')&&(_0xf3b8f2['enableCommand']('uploadcare'),_0x3d428c['plugins']['has']('UploadcareImageEdit')&&(_0xf3b8f2['enableCommand']('uploadcareImageEdit'),_0xf3b8f2['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xf3b8f2['descriptionFactory']['registerDescriptionCallback'](_0x3b3771=>{if('attribute'!=_0x3b3771['type'])return;const {data:_0x3e49b0}=_0x3b3771;return _0x3e49b0&&'uploadcareImageId'==_0x3e49b0['key']?{'type':'format','content':''}:void 0x0;})));}},HP=class extends _0x11fe30{afterInit(){const _0x4d536d=this['editor'],_0xf8a296=_0x4d536d['plugins']['get']('TrackChangesEditing');_0x4d536d['plugins']['has']('UndoEditing')&&(_0xf8a296['enableCommand']('undo'),_0xf8a296['enableCommand']('redo'));}},FP=class extends _0x11fe30{static get requires(){return[IP];}afterInit(){const _0x356412=this['editor'];_0x356412['plugins']['has']('TableCaptionEditing')&&_0x356412['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},ZP=class extends _0x11fe30{tableProperties;tableCellProperties;constructor(_0x24c36a){super(_0x24c36a),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x14760e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x305541 of this['tableProperties'])_0x14760e['enableCommand'](_0x305541,(_0xdc3a78,_0x3c1d15)=>{const _0x1d6d19=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x305541,[_0x1d6d19],this['tableProperties'],'tableProperties',_0xdc3a78,_0x3c1d15);});_0x14760e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x14760e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x14760e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x30b78c,_0x28c7fb)=>this['handleDiscardAction'](this['tableProperties'],_0x30b78c,_0x28c7fb)),_0x14760e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x457bd8 of this['tableCellProperties'])this['editor']['commands']['get'](_0x457bd8)&&_0x14760e['enableCommand'](_0x457bd8,(_0x56dbd6,_0x4726b8)=>{const _0x264d89=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x457bd8,_0x264d89,this['tableCellProperties'],'tableCellProperties',_0x56dbd6,_0x4726b8);});_0x14760e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x14760e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x14760e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x40830a,_0x5f25e2)=>this['handleDiscardAction'](this['tableCellProperties'],_0x40830a,_0x5f25e2)),_0x14760e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x14760e['descriptionFactory']['registerAttributeLabel']('tableCellType',yR(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x14760e['descriptionFactory']['registerDescriptionCallback'](_0x22428e=>this['handleSuggestionDescription'](_0x22428e)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x1c7fd8,_0x54f9b6,_0x1688e0,_0x56e8c1,_0x3b61e6,_0x4be2e1){const _0x17eb93=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4be2e1['batch'],()=>{for(const _0x3216b4 of _0x54f9b6)if(this['_getSuggestion'](_0x3216b4,_0x56e8c1))_0x3b61e6(_0x4be2e1);else{const _0x1563a4={};for(const _0x5d7647 of _0x1688e0){const _0x105fcb=_0x3216b4['getAttribute'](_0x5d7647);void 0x0!==_0x105fcb&&(_0x1563a4[_0x5d7647]=_0x105fcb);}const _0x31018f=this['_getResizedColumnWidths'](_0x3216b4);_0x31018f&&(_0x1563a4['columnWidths']=_0x31018f),_0x3b61e6(_0x4be2e1),_0x17eb93['markBlockFormat'](_0x3216b4,{'commandParams':[_0x1563a4]},[],_0x56e8c1);}});}handleDiscardAction(_0x5cff03,_0x1aebdb,_0xc6403d){const _0x185581=_0x1aebdb[0x0]['start']['nodeAfter'],_0x5ba836=_0xc6403d['commandParams'][0x0];this['editor']['model']['change'](_0x412133=>{for(const _0x1f028c of _0x5cff03)void 0x0!==_0x5ba836[_0x1f028c]?_0x412133['setAttribute'](_0x1f028c,_0x5ba836[_0x1f028c],_0x185581):_0x412133['removeAttribute'](_0x1f028c,_0x185581);if(_0x5ba836['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x420700=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5c6644=_0x420700['getColumnGroupElement'](_0x185581);if(_0x5c6644){const _0x4ad84c=_0x420700['getTableColumnsWidths'](_0x5c6644),_0x32f0be=_0x185581['getAttribute']('tableWidth');if(('string'==typeof _0x32f0be&&_0x32f0be['trim']()['endsWith']('px'))!==_0x4ad84c['some'](_0x31f6f4=>'string'==typeof _0x31f6f4&&_0x31f6f4['endsWith']('px'))){const _0x11dafa=_0x420700['getTableColumnElements'](_0x5c6644);_0x5ba836['columnWidths']['forEach']((_0x1a9573,_0x25b2b8)=>{_0x11dafa[_0x25b2b8]&&_0x412133['setAttribute']('columnWidth',_0x1a9573,_0x11dafa[_0x25b2b8]);});}}}});}_getResizedColumnWidths(_0x16c23b){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x16c23b['is']('element','table'))return;const _0x155545=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3e5337=_0x155545['getColumnGroupElement'](_0x16c23b);return _0x3e5337?_0x155545['getTableColumnsWidths'](_0x3e5337):void 0x0;}handleSuggestionDescription(_0x2caff9){if(_0x2caff9['data'])switch(_0x2caff9['subType']){case'tableProperties':return{'type':'format','content':yR(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':yR(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x4c84b0,_0xa91614){const _0x420741=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x115ba6 of _0x420741['getSuggestions']({'skipNotAttached':!0x0})){const _0x36e6e2=_0x115ba6['getContainedElement']();if(_0x115ba6['subType']===_0xa91614&&_0x36e6e2===_0x4c84b0)return _0x115ba6;}return null;}_registerTablePropertiesAttributes(){const _0x42cf0e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16f81e=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x326a9a of _0x16f81e){const _0x4c643c=_0x326a9a['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x42cf0e['descriptionFactory']['registerAttributeLabel'](_0x326a9a,yR(this['editor']['locale'],'FORMAT_'+_0x4c643c));}}},GP=class extends _0x11fe30{afterInit(){const _0x584a88=this['editor'];if(!_0x584a88['plugins']['has']('LineHeight'))return;const _0x4cd099=_0x584a88['plugins']['get']('TrackChangesEditing'),_0x63c898=_0x584a88['locale'];_0x4cd099['enableDefaultAttributesIntegration']('lineHeight'),_0x4cd099['descriptionFactory']['registerAttributeLabel']('lineHeight',yR(_0x63c898,'FORMAT_LINE_HEIGHT'));}};const XP='$elementName';var qP=class extends _0x11fe30{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[e_,hh,Al,_0x88e4e2,Op,_R,ER,TR,AR,IR,kR,CR,PR,RR,NR,MR,$R,DR,HR,FR,ZR,XR,qR,WR,YR,KR,JR,tP,eP,iP,nP,sP,rP,oP,aP,lP,dP,OP,cP,QR,GP,UR,fP,mP,pP,gP,wP,bP,yP,vP,_P,EP,AP,SP,IP,xP,CP,RP,PP,FP,LP,QP,UP,ZP,jP,VP,BP,HP];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x547c45){super(_0x547c45),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5a2eb9,_0x29ece2,_0x5c14da,_0x22fcc8)=>{this['_model']['change'](()=>{for(const _0x1ec28c of[..._0x22fcc8,..._0x5c14da])this['_model']['markers']['has'](_0x1ec28c)&&_0x547c45['editing']['reconvertMarker'](_0x1ec28c);});}),this['descriptionFactory']=new vR(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new WP(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x547c45['plugins']['get'](e_),this['_suggestionsConversion']=_0x547c45['plugins']['get'](hh),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x547c45['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x547c45['config']['get']('trackChanges.trackFormatChanges'),_0x547c45['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x547c45['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new aR(_0x547c45,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x494017=this['editor'];_0x494017['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5da4b8,{writer:_0x18029e})=>{let _0x3da9c3='suggestion:'+_0x5da4b8['getAttribute']('suggestion-type')+':'+_0x5da4b8['getAttribute']('id');return _0x5da4b8['getAttribute']('marker-count')&&(_0x3da9c3+=':'+_0x5da4b8['getAttribute']('marker-count')),_0x18029e['createElement']('$marker',{'data-name':_0x3da9c3});}}),_0x494017['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x494017['model']['document']['registerPostFixer'](_0x328317=>{let _0x27833d=!0x1;const _0x1f57f7=Array['from'](_0x494017['model']['document']['differ']['getChangedMarkers']()),_0x52be12=new Set();for(const {name:_0x1551ad,data:_0x5fadc2}of _0x1f57f7){const {group:_0x25e9ed,type:_0x44d7e3,subType:_0x26a5da,id:_0x197fcd}=Ll(_0x1551ad);if('suggestion'!==_0x25e9ed)continue;const _0x4b6511=_0x26a5da?'suggestion:'+_0x44d7e3+':'+_0x26a5da+':'+_0x197fcd:'suggestion:'+_0x44d7e3+':'+_0x197fcd,_0x534842=_0x494017['model']['markers']['getMarkersGroup'](_0x4b6511),_0x576e8a=_0x494017['model']['markers']['get'](_0x1551ad),_0xf27b2=this['_suggestions']['get'](_0x197fcd);if(null!=_0x5fadc2['newRange']){'formatInline'==_0x44d7e3&&(_0x27833d=_0x27833d||KP(_0x5fadc2['newRange'],_0x1551ad,_0x328317,_0x494017['model']['schema']));const _0x4f226b='attribute'==_0x44d7e3&&this['_suggestionsConversion']['isBlockAttribute'](lN(_0x26a5da)),_0x5ba353='attribute'==_0x44d7e3&&this['_suggestionsConversion']['isInlineAttribute'](lN(_0x26a5da));if(_0x5fadc2['newRange']['isCollapsed']||'$graveyard'==_0x5fadc2['newRange']['root']['rootName']||'formatBlock'==_0x44d7e3&&!tN(_0x5fadc2['newRange'])||_0x4f226b&&!tN(_0x5fadc2['newRange'])||_0x5ba353&&eN(_0x5fadc2['newRange'])||'deletion'==_0x44d7e3&&eN(_0x5fadc2['newRange'])||_0x576e8a&&iN(_0x576e8a,_0x534842))_0x328317['removeMarker'](_0x1551ad),_0x27833d=!0x0;else{if(!_0xf27b2||!_0xf27b2['isInContent'])continue;if(_0x5fadc2['newRange']&&_0x5fadc2['oldRange']&&_0x5fadc2['newRange']['isEqual'](_0x5fadc2['oldRange']))continue;_0x52be12['add'](_0xf27b2);}}}return _0x52be12['size']>0x0&&(_0x27833d=!!this['_joinWithAdjacentSuggestions'](_0x52be12)||_0x27833d),_0x27833d;}),_0x494017['model']['document']['registerPostFixer'](_0x1cb58d=>{let _0x179b2a=!0x1;for(const _0x444c01 of _0x494017['model']['document']['differ']['getChanges']())if('insert'==_0x444c01['type'])for(const _0x2fde80 of this['_suggestions']['values']()){if(_0x2fde80['isMultiRange']||!_0x2fde80['isInContent'])continue;const _0x4b9b35='formatBlock'==_0x2fde80['type'],_0x1e80d9=this['_getAttributeKey'](_0x2fde80),_0x42a372=_0x1e80d9&&this['_suggestionsConversion']['isBlockAttribute'](_0x1e80d9);if(!_0x4b9b35&&!_0x42a372)continue;const _0x3ba06a=_0x2fde80['getFirstRange']();if(_0x3ba06a['start']['parent']!=_0x3ba06a['end']['parent']&&!_0x3ba06a['end']['isAtEnd']){const _0x449848=_0x494017['model']['createPositionAt'](_0x3ba06a['start']['nodeAfter'],'end'),_0x257110=_0x494017['model']['createRange'](_0x3ba06a['start'],_0x449848);_0x1cb58d['updateMarker'](_0x2fde80['getFirstMarker'](),{'range':_0x257110}),_0x179b2a=!0x0;}}return _0x179b2a;}),_0x494017['model']['document']['registerPostFixer'](_0x9d09e0=>this['_processAttributeChanges'](_0x9d09e0)),_0x494017['model']['document']['registerPostFixer'](_0x2bd8bf=>!_0x2bd8bf['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2bd8bf)),_0x494017['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x494017['model']['document']['on']('change:data',(_0x255edb,_0x456e0f)=>{if(!_0x456e0f['isLocal']||_0x456e0f['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x474ef5=_0x494017['model']['document']['differ']['getChanges']();if(0x0==_0x474ef5['length'])return;const _0x1d46c0=[],_0xebe4b=_0x474ef5['filter'](_0x49fc27=>'attribute'==_0x49fc27['type']),_0x1d8974=_0x474ef5['filter'](_0x50f87f=>'insert'==_0x50f87f['type']&&'$text'!=_0x50f87f['name']);for(const _0x248b44 of _0xebe4b)this['_suggestionsConversion']['isRegisteredAttribute'](_0x248b44['attributeKey'])&&_0x1d46c0['push']({'key':_0x248b44['attributeKey'],'newValue':_0x248b44['attributeNewValue'],'oldValue':_0x248b44['attributeOldValue'],'range':sN(_0x248b44['range'],_0x494017['model'])});for(const _0x201f00 of _0x1d8974){if('rename'!=_0x201f00['action']&&'refresh'!=_0x201f00['action'])continue;const _0x3c5e4b=nN(_0x201f00['position']['nodeAfter'],_0x494017['model']),_0x6ac24d=_0x201f00['before'];'rename'==_0x201f00['action']&&_0x1d46c0['push']({'key':XP,'newValue':_0x201f00['name'],'oldValue':_0x6ac24d['name'],'range':_0x3c5e4b});for(const [_0x85723d,_0xd2df12]of _0x6ac24d['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x85723d))continue;const _0x3908ef=_0x201f00['attributes']['get'](_0x85723d);_0xd2df12!==_0x3908ef&&_0x1d46c0['push']({'key':_0x85723d,'newValue':_0x3908ef,'oldValue':_0xd2df12,'range':_0x3c5e4b});}for(const [_0x157084,_0x1847bb]of _0x201f00['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x157084)&&(_0x6ac24d['attributes']['has'](_0x157084)||_0x1d46c0['push']({'key':_0x157084,'newValue':_0x1847bb,'oldValue':null,'range':_0x3c5e4b}));}0x0!=_0x1d46c0['length']&&_0x494017['model']['enqueueChange'](_0x456e0f,_0x21244d=>{const _0x2911bd=_0xea66bb();for(const {range:_0x42365c,key:_0x47286e,oldValue:_0x5081bb,newValue:_0x4578f6}of _0x1d46c0)this['markAttributeChange'](_0x42365c,_0x47286e,_0x5081bb,_0x4578f6,{'groupId':_0x2911bd});this['_reduceExistingSuggestions'](_0x21244d,_0x1d46c0);});},{'priority':'lowest'}),_0x494017['model']['markers']['on']('update:suggestion',(_0x29056e,_0x4d298a,_0xda682c)=>{if(null==_0xda682c){const {id:_0x39fcca}=Ll(_0x4d298a['name']),_0x5b18c=this['_suggestions']['get'](_0x39fcca);_0x5b18c&&_0x5b18c['addMarkerName'](_0x4d298a['name']);}}),_0x494017['model']['document']['on']('change:data',()=>{const _0x4198fe=Array['from'](_0x494017['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1e0799=>'suggestion'===Ll(_0x1e0799['name'])['group']);if(0x0===_0x4198fe['length'])return;_0x4198fe['sort']((_0x19ba7b,_0x300643)=>{const _0x84d938=_0x19ba7b['data']['oldRange'],_0x1cadad=_0x300643['data']['oldRange'];return null===_0x84d938&&null===_0x1cadad?0x0:null===_0x84d938&&null!==_0x1cadad?-0x1:null!==_0x84d938&&null===_0x1cadad?0x1:_0x84d938['start']['isBefore'](_0x1cadad['start'])?-0x1:0x1;});const _0xcc3555=new Set(),_0x16fc5b=new Set();for(const {name:_0x4d2a19,data:_0x3ea79a}of _0x4198fe){const {id:_0xeb3b07}=Ll(_0x4d2a19);if(null===_0x3ea79a['oldRange']){const _0x59f5ff=this['_handleNewSuggestionMarker'](_0x4d2a19);_0x16fc5b['add'](_0x59f5ff);}else{const _0x44205b=this['_suggestions']['get'](_0xeb3b07);null!==_0x3ea79a['newRange']||_0x44205b['isInContent']?(_0xcc3555['add'](_0x44205b['head']),_0x16fc5b['add'](_0x44205b)):this['_removeSuggestion'](_0x44205b);}}_0x16fc5b['size']>0x0&&this['_refreshSuggestionsChain'](_0x16fc5b);for(const _0x368b1c of _0xcc3555)this['fire']('suggestionChanged',_0x368b1c);}),_0x494017['model']['on']('applyOperation',(_0x3f5294,_0x1e1031)=>{const _0xcd25a1=_0x1e1031[0x0];if(!this['_suggestions']['size'])return;if(!_0xcd25a1['isDocumentOperation'])return;if(_0xcd25a1['batch']['isUndo']||!_0xcd25a1['batch']['isLocal'])return;let _0x2d8d8a,_0x44da69;switch(_0xcd25a1['type']){case'insert':_0x2d8d8a=_0x494017['model']['createPositionAt'](_0xcd25a1['position']),_0x44da69=_0x2d8d8a['getShiftedBy'](_0xcd25a1['howMany']);break;case'split':_0x2d8d8a=_0x494017['model']['createPositionAt'](_0xcd25a1['splitPosition']),_0x44da69=_0x494017['model']['createPositionAt'](_0xcd25a1['moveTargetPosition']);break;case'move':_0x2d8d8a=_0x494017['model']['createPositionAt'](_0xcd25a1['targetPosition']),_0x44da69=_0x2d8d8a['getShiftedBy'](_0xcd25a1['howMany']);break;default:return;}const _0x46d114=_0x494017['model']['createRange'](_0x2d8d8a,_0x44da69);_0x494017['model']['change'](()=>{for(const {suggestion:_0x275105,meta:_0x128996}of this['_findSuggestions'](_0x46d114)){if(_0x275105['isMultiRange'])continue;if('formatInline'==_0x275105['type'])continue;const _0x111ee8=this['_getAttributeKey'](_0x275105);if(_0x111ee8&&this['_suggestionsConversion']['isBlockAttribute'](_0x111ee8)&&'split'!=_0xcd25a1['type'])continue;const _0x136aa0=_0x275105['data']&&_0x275105['data']['multipleBlocks'];('formatBlock'!=_0x275105['type']||'split'==_0xcd25a1['type']&&!_0x136aa0)&&(_0x128996['containsRangeInObject']||'insertion'==_0x275105['type']&&_0x128996['isOwn']||_0x275105['getFirstRange']()['containsRange'](_0x46d114)&&this['_breakSuggestionMarker'](_0x275105,_0x2d8d8a,_0x44da69));}});},{'priority':'lowest'}),_0x494017['model']['on']('deleteContent',(_0x79ed82,_0x144874)=>{const _0x32052e=_0x144874[0x0],_0x59601a=_0x144874[0x1];if(_0x59601a&&_0x59601a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x32052e['isCollapsed'])return;const _0x231526=_0x494017['model']['schema'],{start:_0x34a86f,end:_0x46da20}=_0x32052e['getFirstRange'](),_0x3b3b4c=_0x34a86f['nodeAfter']&&_0x231526['isLimit'](_0x34a86f['nodeAfter'])?null:_0x231526['getNearestSelectionRange'](_0x34a86f,'forward'),_0x22479d=_0x46da20['nodeBefore']&&_0x231526['isLimit'](_0x46da20['nodeBefore'])?null:_0x231526['getNearestSelectionRange'](_0x46da20,'backward'),_0x6776dc=_0x494017['model']['createRange'](_0x3b3b4c?_0x3b3b4c['start']:_0x34a86f,_0x22479d?_0x22479d['end']:_0x46da20);_0x494017['model']['change'](_0x3b192e=>{this['markDeletion'](_0x6776dc);const _0x2e5dbb=_0x494017['model']['schema']['getNearestSelectionRange'](_0x6776dc['start']);_0x32052e['is']('documentSelection')?_0x3b192e['setSelection'](_0x2e5dbb):_0x32052e['setTo'](_0x2e5dbb);}),_0x79ed82['stop']();},{'priority':_0x1a573c['normal']+0xa}),_0x494017['model']['on']('insertContent',(_0x138924,_0x54e8c5)=>{const _0xf1c10e=_0x54e8c5[_0x54e8c5['length']-0x1];_0xf1c10e&&_0xf1c10e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x494017['model']['change'](()=>{let _0x729493=_0x494017['model']['insertContent'](_0x54e8c5[0x0],_0x54e8c5[0x1],_0x54e8c5[0x2],{'forceDefaultExecution':!0x0});if(!_0x729493)return;_0x138924['return']=_0x729493['clone']();const _0x410a9d=_0x729493['end']['nodeBefore'],_0x278bc9=_0x494017['model']['schema'];_0x410a9d&&_0x278bc9['isBlock'](_0x410a9d)&&!_0x278bc9['isObject'](_0x410a9d)&&(_0x729493=_0x494017['model']['createRange'](_0x729493['start'],_0x494017['model']['createPositionAt'](_0x410a9d,'end'))),this['markInsertion'](_0x729493);}),_0x138924['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4b3374=new cR(_0x494017,this['_suggestions']);_0x494017['commands']['add']('acceptSuggestion',_0x4b3374),this['enableCommand']('acceptSuggestion');const _0x4221b2=new lR(_0x494017,this['_suggestions']);_0x494017['commands']['add']('discardSuggestion',_0x4221b2),this['enableCommand']('discardSuggestion'),_0x494017['commands']['add']('acceptAllSuggestions',new gR(_0x494017,_0x4b3374,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x494017['commands']['add']('discardAllSuggestions',new gR(_0x494017,_0x4221b2,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x494017['commands']['add']('acceptSelectedSuggestions',new OR(_0x494017,_0x4b3374,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x494017['commands']['add']('discardSelectedSuggestions',new OR(_0x494017,_0x4221b2,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3bbfa5=_0x494017['plugins']['get'](e_);this['listenTo'](_0x3bbfa5,'addComment',(_0x2dd522,{threadId:_0x48e6eb})=>{const _0x3d6955=this['_suggestions']['get'](_0x48e6eb);_0x3d6955&&_0x3d6955['commentThread']&&0x1===_0x3d6955['commentThread']['length']&&this['_updateSuggestionData'](_0x48e6eb,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3bbfa5,'removeComment',(_0x2b9acb,{threadId:_0x1e7bbf})=>{const _0x150c44=this['_suggestions']['get'](_0x1e7bbf);_0x150c44&&_0x150c44['commentThread']&&!_0x150c44['commentThread']['length']&&this['_updateSuggestionData'](_0x1e7bbf,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x5a4e95){const _0x3b3439='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0x244cb1=0x791d0,_0x1c21e6=window['Date']['now'](),_0x3e9608=_0x5a4e95['editor'],_0x1886a2=new window['Promise'](_0x11d7e5=>{_0x3e9608['once']('ready',_0x11d7e5);}),_0x4eefd9={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x321dca=_0x3e9608['config']['get']('licenseKey');async function _0xce3d30(){let _0x33e3cc,_0x56f16b=null,_0x9f68d6=null;try{return'GPL'==_0x321dca?'NotAllowed':(_0x33e3cc=_0x26892f(),_0x33e3cc?(_0x33e3cc['usageEndpoint']&&(_0x9f68d6=_0x85b3a7(_0x33e3cc['usageEndpoint'],_0x33e3cc['jti'])),await _0x5bb8ec()?_0x251336()?_0x87f402()?'Expired':_0x425d2f()?('evaluation'==_0x33e3cc['licenseType']&&(_0x56f16b=_0x5ebed4('EvaluationLimit')),await _0x360f2b()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x87f402(){const _0x2024e9=['evaluation','trial']['includes'](_0x33e3cc['licenseType'])?_0x1c21e6/0x3e8:0xe10*_0x244cb1;return _0x33e3cc['exp']<_0x2024e9;}function _0x251336(){const _0x487278=_0x33e3cc['features'];if(!_0x487278)return!0x1;if(_0x487278['includes']('*'))return!0x0;if(_0x487278['includes']('TC'))return!0x0;if(_0x487278['includes']('RTC')){if(_0x5960a9())return!0x0;if(_0x5abdb3()||_0x52e9bc())return!0x0;}return!0x1;}function _0x425d2f(){const _0x37eb0a=_0x33e3cc['licensedHosts'];if(!_0x37eb0a||0x0==_0x37eb0a['length'])return!0x0;const {hostname:_0x52765f}=new URL(window['location']['href']);if(_0x37eb0a['includes'](_0x52765f))return!0x0;const _0x4fdad2=_0x52765f['split']('.');return _0x37eb0a['filter'](_0x33f15d=>_0x33f15d['includes']('*'))['map'](_0x100d66=>_0x100d66['split']('.'))['filter'](_0x35c6b3=>_0x35c6b3['length']<=_0x4fdad2['length'])['map'](_0x3934a3=>Array(_0x4fdad2['length']-_0x3934a3['length'])['fill']('*'===_0x3934a3[0x0]?'*':'')['concat'](_0x3934a3))['some'](_0x20cbcd=>_0x4fdad2['every']((_0x3b8836,_0x45236d)=>_0x20cbcd[_0x45236d]===_0x3b8836||'*'===_0x20cbcd[_0x45236d]));}function _0x360f2b(){return _0x56f16b&&_0x9f68d6?new window['Promise']((_0x4128cb,_0x14af03)=>{_0x56f16b['then'](_0x4128cb,_0x14af03),_0x9f68d6['then'](_0x325661=>{'Valid'!=_0x325661&&_0x4128cb(_0x325661);},_0x14af03);}):_0x56f16b||_0x9f68d6||'Valid';}}function _0x85b3a7(_0x2cac45,_0x5551bd){return new window['Promise'](_0x26bd08=>{if(_0xf90dee())return _0x26bd08('Valid');_0x4d027b(),_0x3e9608['decorate']('_sendUsageRequest');let _0x2d2ee3=!0x1;const _0x41668a=_0xea66bb();function _0x26cb54(_0x4ce670){return!!_0x4ce670&&('object'==typeof _0x4ce670||'function'==typeof _0x4ce670)&&'function'==typeof _0x4ce670['then']&&'function'==typeof _0x4ce670['catch'];}function _0x43ffc2(_0x40e081){_0x25290b(_0x40e081)['then'](_0x4b3095=>_0x4b3095&&'ok'==_0x4b3095['status']?_0x3cb388(_0x5c977a(_0x41668a+_0x5551bd))!=_0x4b3095['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x565afa=>(_0x502a30(),_0x565afa),()=>{const _0x2e5eb3=_0x2db349();return null==_0x2e5eb3?(_0x502a30(),'Valid'):_0x1c21e6-_0x2e5eb3>0x240c8400?'UsageLimit':'Valid';})['then'](_0x26bd08)['catch'](()=>{_0x26bd08('UsageLimit');});const _0xe1feba=0x36ee80;function _0x502a30(){const _0x23e783='llct-'+_0x3cb388(_0x5c977a(_0x2cac45)),_0x481afe=_0x16d3c1(_0x3cb388(window['Math']['ceil'](_0x1c21e6/_0xe1feba)));window['localStorage']['setItem'](_0x23e783,_0x481afe);}function _0x2db349(){const _0x2ffa07='llct-'+_0x3cb388(_0x5c977a(_0x2cac45)),_0x12876c=window['localStorage']['getItem'](_0x2ffa07);return _0x12876c?window['parseInt'](_0x16d3c1(_0x12876c),0x10)*_0xe1feba:null;}function _0x25290b(_0x5b4d01){return new window['Promise']((_0x2ab990,_0x28ab71)=>{_0x5b4d01['then'](_0x2ab990,_0x28ab71),window['setTimeout'](_0x28ab71,0x1d4c0);});}}_0x3e9608['on']('_sendUsageRequest',(_0x1d8b3e,_0x2ec5ec)=>{if(_0x2ec5ec[0x0]!=_0x2cac45)return _0x26bd08('UsageLimit');_0x2ec5ec[0x1]={..._0x2ec5ec[0x1],'requestId':_0x41668a};},{'priority':'high'}),_0x3e9608['on']('_sendUsageRequest',_0x1dc2f6=>{_0x26cb54(_0x1dc2f6['return'])&&(_0x2d2ee3=!0x0,_0x43ffc2(_0x1dc2f6['return']));},{'priority':'low'}),_0x1886a2['then'](()=>{_0x2d2ee3||_0x26bd08('UsageLimit');});});function _0xf90dee(){return'auto'==_0x3e9608['editing']['view']['_overlayModeHint'];}function _0x4d027b(){_0x3e9608['editing']['view']['_overlayModeHint']='auto';}}function _0x5ebed4(_0x443920){const _0x3a6e6c=[new window['Promise'](_0x3e27b6=>setTimeout(_0x3e27b6,0x93ecc)),_0x1886a2['then'](()=>new window['Promise'](_0x527837=>{let _0x30644e=0x0;_0x3e9608['model']['on']('applyOperation',(_0x27774c,_0x417600)=>{_0x417600[0x0]['isDocumentOperation']&&_0x30644e++,0x5e8==_0x30644e&&(_0x527837(),_0x27774c['off']());});}))];return window['Promise']['race'](_0x3a6e6c)['then'](()=>_0x443920);}async function _0x1355c9(){await _0x1886a2,_0x3e9608['model']['change']=_0x5bc85d,_0x3e9608['model']['enqueueChange']=_0x5bc85d,_0x3e9608['enableReadOnlyMode']('model');}function _0x5960a9(){return _0x5f02ca('WebSocketGateway')&&'connected'==_0x2c2b0f('WebSocketGateway')['state'];}function _0x5abdb3(){return _0x5f02ca('RevisionViewerIntegration');}function _0x52e9bc(){return _0x5f02ca('TrackChangesDataGetter');}function _0x4591b7(_0x3dbba8){const _0x589473=_0x2fbef5();_0x3e9608[_0x589473]='trackChangesLicenseKey'+_0x3dbba8,'Valid'!=_0x3dbba8&&_0x1355c9();}function _0x2fbef5(){const _0x151ba7=window['String'](window['performance']['now']())['replace']('.','');let _0x13ab2b='R';for(let _0x5496fd=0x0;_0x5496fd<_0x151ba7['length'];_0x5496fd+=0x2){let _0x2005e3=window['parseInt'](_0x151ba7['substring'](_0x5496fd,_0x5496fd+0x2));_0x2005e3>=0x3e&&(_0x2005e3-=0x3e),_0x13ab2b+=_0x3b3439[_0x2005e3];}return _0x13ab2b;}function _0x26892f(){const _0x531e86=_0x321dca['split']('.');if(0x3!=_0x531e86['length'])return null;return _0x106831(_0x531e86[0x1]);function _0x106831(_0x397d34){const _0xe631e6=_0x2b5951(_0x397d34);return _0xe631e6&&_0x5b6897()?_0xe631e6:null;function _0x5b6897(){const _0x16a80d=_0xe631e6['jti'],_0x5647a7=window['parseInt'](_0x16a80d['substring'](_0x16a80d['length']-0x8),0x10),_0x1ce843={..._0xe631e6,'jti':_0x16a80d['substring'](0x0,_0x16a80d['length']-0x8)};return delete _0x1ce843['vc'],_0x5c977a(_0x1ce843)==_0x5647a7;}}}async function _0x5bb8ec(){let _0x23ae6f=!0x0;try{const [_0x3639e3,_0x455f54,_0x42ef92]=_0x321dca['split']('.');return _0x4e042c(_0x3639e3),await _0x2793b1(_0x3639e3,_0x455f54,_0x42ef92),_0x23ae6f;}catch{return!0x1;}function _0x4e042c(_0x573752){const _0xecb25e=_0x2b5951(_0x573752);_0xecb25e&&'ES256'==_0xecb25e['alg']||(_0x23ae6f=!0x1);}async function _0x2793b1(_0x3184d1,_0x5d6b0d,_0x17cc52){const _0x23007=window['Uint8Array']['from'](_0x546a95(_0x17cc52),_0x2e352b=>_0x2e352b['charCodeAt'](0x0)),_0x29b779=new window['TextEncoder']()['encode'](_0x3184d1+'.'+_0x5d6b0d),_0x252e9b=window['crypto']['subtle'];if(!_0x252e9b)return;const _0x4e45c1=await _0x252e9b['importKey']('jwk',_0x4eefd9,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x252e9b['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x4e45c1,_0x23007,_0x29b779)||(_0x23ae6f=!0x1);}}function _0x2b5951(_0x149714){return _0x149714['startsWith']('ey')?JSON['parse'](_0x546a95(_0x149714)):null;}function _0x546a95(_0x498f1d){return window['atob'](_0x498f1d['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x5c977a(_0x17d040){let _0x3109e1=0x1505;function _0x5a4d08(_0x13b7fa){for(let _0x3ec609=0x0;_0x3ec609<_0x13b7fa['length'];_0x3ec609++){const _0x6bc55f=_0x13b7fa['charCodeAt'](_0x3ec609);_0x3109e1=(_0x3109e1<<0x5)+_0x3109e1+_0x6bc55f,_0x3109e1&=_0x3109e1;}}function _0x47ddb0(_0x2dc6bb){Array['isArray'](_0x2dc6bb)?_0x2dc6bb['forEach'](_0x47ddb0):_0x2dc6bb&&'object'==typeof _0x2dc6bb?Object['entries'](_0x2dc6bb)['sort']()['forEach'](([_0x2bf048,_0x5984c2])=>{_0x5a4d08(_0x2bf048),_0x47ddb0(_0x5984c2);}):_0x5a4d08(window['String'](_0x2dc6bb));}return _0x47ddb0(_0x17d040),_0x3109e1>>>0x0;}function _0x3cb388(_0x2627e7){return _0x2627e7['toString'](0x10)['padStart'](0x8,'0');}function _0x16d3c1(_0x9e9ae6){return _0x9e9ae6['split']('')['reverse']()['join']('');}function _0x5f02ca(_0x2cbbd5){return _0x3e9608['plugins']['has'](_0x2cbbd5);}function _0x2c2b0f(_0x24d4f2){return _0x3e9608['plugins']['get'](_0x24d4f2);}function _0x5bc85d(){}_0x4591b7(await _0xce3d30());}(this);}set adapter(_0x40169a){if(this['_adapter'])throw new _0x4242d4('track-changes-adapter-already-set',this);this['_adapter']=_0x40169a;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x3e9920=!0x1,toJSON:_0x45ef0a=!0x1}={}){const _0x4adc2c=[];for(const _0x1d6f11 of this['_suggestions']['values']())_0x3e9920&&!_0x1d6f11['isInContent']||_0x4adc2c['push'](_0x1d6f11);return _0x45ef0a?_0x4adc2c['map'](_0x208300=>_0x208300['toJSON']()):_0x4adc2c;}getSuggestion(_0x47f125){const _0xe699ba=this['_suggestions']['get'](_0x47f125);if(!_0xe699ba)throw new _0x4242d4('track-changes-suggestion-not-found',this);return _0xe699ba;}hasSuggestion(_0x124f32){return this['_suggestions']['has'](_0x124f32);}addSuggestionData(_0x32b019){const {authorId:_0x5ec7fd,id:_0x130ee9,originalSuggestionId:_0xe44ee,attributes:_0x28f412}=_0x32b019,[_0xc65871,_0x10de29]=_0x32b019['type']['split'](':'),_0x3cb503=this['_suggestions']['get'](_0x130ee9)||this['_createSuggestion'](_0xc65871,_0x10de29,_0x130ee9,_0x5ec7fd,_0x28f412,_0xe44ee);if(this['_addThreadToSuggestion'](_0x3cb503),this['_checkSuggestionCorrectness'](_0x3cb503,_0xc65871,_0x10de29||null,_0x5ec7fd),_0x3cb503['createdAt']=_0x32b019['createdAt'],_0x3cb503['_isDataLoaded']=!0x0,_0x28f412&&_0x28f412['@external']){const _0x1580cc=_0x28f412['@external'],_0x28e3fe=this['_getExternalAuthor'](_0x1580cc['authorName']);_0x3cb503['authoredAt']=_0x1580cc['createdAt'],_0x3cb503['author']=_0x28e3fe;}else _0x3cb503['authoredAt']=_0x32b019['createdAt'];switch(_0x32b019['data']&&(_0x3cb503['data']=_0x32b019['data']),_0x32b019['attributes']&&(_0x3cb503['attributes']=_0x32b019['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3cb503['_saved']=!0x0),this['_suggestionState']['get'](_0x3cb503)){case'notReady':this['_suggestionState']['set'](_0x3cb503,'dataReady');break;case'markerReady':_0x3cb503['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3cb503])),this['_refreshSuggestionsChain'](new Set([_0x3cb503])),this['_suggestionState']['set'](_0x3cb503,'ready'),this['fire']('suggestionLoaded',_0x3cb503)):this['_suggestionState']['set'](_0x3cb503,'removed');}return _0x3cb503;}acceptSuggestion(_0x2b647e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x25cfc5 of _0x2b647e['getAllAdjacentSuggestions']())_0x25cfc5['accept']();});});}discardSuggestion(_0x41db0f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1f9403 of _0x41db0f['getAllAdjacentSuggestions']())_0x1f9403['discard']();});});}['enableCommand'](_0x4060e4,_0x28bec9){const _0x310f81=this['editor']['commands']['get'](_0x4060e4);if(!_0x310f81)throw new _0x4242d4('track-changes-command-not-found',this,{'commandName':_0x4060e4});if(this['_enabledCommands']['has'](_0x310f81))throw new _0x4242d4('track-changes-enable-command-twice',this,{'commandName':_0x4060e4});this['_enabledCommands']['add'](_0x310f81),_0x28bec9&&_0x310f81['on']('execute',(_0x3fbe17,_0x1569b1)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1569b1['length']>0x0&&_0x1569b1[_0x1569b1['length']-0x1]&&_0x1569b1[_0x1569b1['length']-0x1]['forceDefaultExecution']?_0x1569b1['pop']():(_0x3fbe17['return']=_0x28bec9((..._0x59b4ef)=>_0x310f81['execute'](..._0x59b4ef,{'forceDefaultExecution':!0x0}),..._0x1569b1),_0x3fbe17['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x3fdc2c){let _0x46d14d,_0x945e5f;const _0x1ab4d9=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x46d14d=_0x3fdc2c();}catch(_0x48895f){_0x945e5f=_0x48895f;}return _0x1ab4d9||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x945e5f&&_0x4242d4['rethrowUnexpectedError'](_0x945e5f,this),_0x46d14d;}markInsertion(_0x4d5067,_0x379b98=null,_0x4cccf7={}){if(_0x4d5067['isCollapsed'])return null;const _0x4344d8=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4cccf7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x286b2f,meta:_0xe24c9c}of this['_findSuggestions'](_0x4d5067,'insertion'))if(_0xe24c9c['isOwn']){if(!_0xe24c9c['isNextTo']){if(_0xe24c9c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!aN(_0x286b2f,_0x4cccf7))continue;return _0x286b2f;}if(aN(_0x286b2f,_0x4cccf7))return _0x286b2f;this['_breakSuggestionMarker'](_0x286b2f,_0x4d5067['start'],_0x4d5067['end']);break;}if(_0x379b98==_0x286b2f['subType']&&aN(_0x286b2f,_0x4cccf7)){const _0x2fbb91=_0x286b2f['getFirstRange']();return _0x2fbb91['start']['isEqual'](_0x4d5067['end'])?this['_setSuggestionRange'](_0x286b2f,this['_model']['createRange'](_0x4d5067['start'],_0x2fbb91['end'])):this['_setSuggestionRange'](_0x286b2f,this['_model']['createRange'](_0x2fbb91['start'],_0x4d5067['end'])),_0x286b2f;}}const _0x34d932=_0xea66bb(),_0x520b9d=_0x4344d8['id'],_0x198f65=_0x379b98?'insertion:'+_0x379b98:'insertion',_0x753d97=this['_setSuggestionData']({'id':_0x34d932,'type':_0x198f65,'createdAt':new Date(),'authorId':_0x520b9d,'attributes':_0x4cccf7});return this['_addSuggestionMarker'](_0x198f65,_0x34d932,_0x520b9d,_0x4d5067),_0x753d97;}markMultiRangeInsertion(_0x48f8c1,_0x13f5ac='multi',_0x3d7e30={}){const _0x68e61e=this['editor']['plugins']['get']('Users')['me'],_0x3f33b5=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x13f5ac,'join');this['_trackingSessionId']&&(_0x3d7e30['trackingSessionId']=this['_trackingSessionId']);for(const _0x39ad47 of this['getSuggestions']())if(_0x39ad47['author']['id']==_0x68e61e['id']&&'insertion'==_0x39ad47['type']&&_0x39ad47['subType']==_0x13f5ac&&aN(_0x39ad47,_0x3d7e30)&&(_0x3f33b5(_0x39ad47['getRanges'](),_0x48f8c1)||_0x3f33b5(_0x48f8c1,_0x39ad47['getRanges']()))){for(const _0x50d81e of _0x48f8c1)_0x39ad47['addRange'](_0x50d81e);return _0x39ad47;}for(const {suggestion:_0x502704,meta:_0x39ef07}of this['_findSuggestions'](_0x48f8c1,'insertion')){if(!_0x39ef07['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x39ef07['containsRangeInObject'])continue;if(!aN(_0x502704,_0x3d7e30))continue;let _0x3e4df4=!0x0;for(const _0x3852c8 of _0x502704['getRanges']())for(const _0xd30b6d of _0x48f8c1)if(!_0x3852c8['containsRange'](_0xd30b6d)){_0x3e4df4=!0x1;break;}if(_0x3e4df4)return _0x502704;}const _0x1a1ae9=_0xea66bb(),_0x1244e9=_0x68e61e['id'],_0x425342='insertion:'+_0x13f5ac,_0x13ef83=this['_setSuggestionData']({'id':_0x1a1ae9,'type':_0x425342,'createdAt':new Date(),'authorId':_0x1244e9,'attributes':_0x3d7e30});for(const _0x21d308 of _0x48f8c1)this['_addSuggestionMarker'](_0x425342,_0x1a1ae9,_0x1244e9,_0x21d308,bR['getMultiRangeId']());return _0x13ef83;}markInlineFormat(_0x4547ef,_0x2d85ed,_0x5aa595=null,_0x40cfc2={}){if(_0x5aa595=_0x5aa595||JP(_0x2d85ed),_0x4547ef['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x40cfc2['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5b0df9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5aa595,'accept');return this['forceDefaultExecution'](()=>_0x5b0df9([_0x4547ef],_0x2d85ed,_0x40cfc2)),null;}const _0x2e98d6=this['editor']['plugins']['get']('Users')['me'],_0xe7253a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5dca69,meta:_0x1b9aa0}of this['_findSuggestions'](_0x4547ef,'insertion'))_0x1b9aa0['isOwn']&&!_0x1b9aa0['isInsideObject']&&_0xe7253a['push'](..._0x5dca69['getRanges']());}const _0x10988a=function(_0x552b01,_0x16e97a){const _0x5cacac=[];for(const _0x9e7005 of _0x16e97a){const _0x3b9900=_0x552b01['getIntersection'](_0x9e7005);_0x3b9900&&_0x5cacac['push'](_0x3b9900);}return _0x5cacac;}(_0x4547ef,_0xe7253a),_0xcf5723=function(_0x4c0ec7,_0xea4b1){const _0x558851=[_0x4c0ec7];for(const _0xb3f815 of _0xea4b1){let _0x236f6b=0x0;for(;_0x236f6b<_0x558851['length'];){const _0x231c9b=_0x558851[_0x236f6b]['getDifference'](_0xb3f815);_0x558851['splice'](_0x236f6b,0x1,..._0x231c9b),_0x236f6b+=_0x231c9b['length'];}}return _0x558851;}(_0x4547ef,_0xe7253a);_0x10988a['length']&&this['_model']['change'](()=>{for(const _0xb86de8 of _0x10988a){const _0x264917=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5aa595,'accept');this['forceDefaultExecution'](()=>_0x264917([_0xb86de8],_0x2d85ed,_0x40cfc2));}});for(const _0x3c3409 of _0xcf5723){let _0x3c013b=null,_0x399905=_0x3c3409['start'],_0x210d10=_0x3c3409['end'];for(const {suggestion:_0x362dca,meta:_0x25fef8}of this['_findSuggestions'](_0x3c3409,'formatInline')){if(!_0x25fef8['isOwn'])continue;if(_0x362dca['subType']!=_0x5aa595)continue;if(!aN(_0x362dca,_0x40cfc2))continue;const _0x167319=_0x362dca['getFirstRange']();if(_0x167319['containsRange'](_0x3c3409,!0x0))return null;_0x399905=_0x399905['isBefore'](_0x167319['start'])?_0x399905:_0x167319['start'],_0x210d10=_0x210d10['isAfter'](_0x167319['end'])?_0x210d10:_0x167319['end'],_0x3c013b?_0x167319['start']['isBefore'](_0x3c013b['getFirstRange']()['start'])?(_0x3c013b['removeMarkers'](),_0x3c013b=_0x362dca):_0x362dca['removeMarkers']():_0x3c013b=_0x362dca;}const _0x4baadd=this['_model']['createRange'](_0x399905,_0x210d10);if(_0x3c013b)this['_setSuggestionRange'](_0x3c013b,_0x4baadd);else{const _0x1d6d44=_0xea66bb(),_0x4c9e4e=_0x2e98d6['id'];this['_setSuggestionData']({'id':_0x1d6d44,'type':'formatInline:'+_0x5aa595,'data':_0x2d85ed,'createdAt':new Date(),'authorId':_0x4c9e4e,'attributes':_0x40cfc2}),this['_addSuggestionMarker']('formatInline:'+_0x5aa595,_0x1d6d44,_0x4c9e4e,_0x4baadd);}}return null;}markBlockFormat(_0x4b9674,_0x2dd768,_0x3b98c6=[],_0x548bad=null,_0xd3013={}){_0x2dd768['formatGroupId']||(_0x2dd768['formatGroupId']=_0x2dd768['commandName']),_0x2dd768['multipleBlocks']=_0x4b9674['is']('range'),_0x548bad=_0x548bad||JP(_0x2dd768);const _0x4f9274=_0x3b98c6['map'](_0x517622=>nN(_0x517622,this['_model'])),_0x4a842a=_0x4b9674['is']('range')?_0x4b9674:nN(_0x4b9674,this['_model']);if(this['_trackingSessionId']&&(_0xd3013['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x383021=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x548bad,'accept');return this['forceDefaultExecution'](()=>_0x383021([_0x4a842a],_0x2dd768,_0xd3013)),null;}_0x4f9274['push'](_0x4a842a);let _0x10581b=!0x0;for(const _0x3bd368 of _0x4f9274)if(!this['_rangeIsInLocalUserInsertion'](_0x3bd368)){_0x10581b=!0x1;break;}if(_0x10581b&&'always'!==this['_trackFormatChanges']){const _0x5dde03=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x548bad,'accept');return this['forceDefaultExecution'](()=>_0x5dde03([_0x4a842a],_0x2dd768,_0xd3013)),null;}let _0x4a01b6=null,_0x59dfd5=_0x4a842a['start'],_0x5013c2=_0x4a842a['end'];for(const {suggestion:_0x3a3779,meta:_0x3dd11f}of this['_findSuggestions'](_0x4a842a,'formatBlock')){if(!_0x3dd11f['isOwn'])continue;if(_0x3dd11f['isNextTo']||_0x3dd11f['containsRangeInObject']||_0x3dd11f['isInsideObject'])continue;if(_0x3a3779['data']['formatGroupId']!=_0x2dd768['formatGroupId'])continue;if(!aN(_0x3a3779,_0xd3013))continue;const _0x234199=_0x3a3779['getFirstRange']();if(_0x3a3779['subType']==_0x548bad){if(_0x234199['containsRange'](_0x4a842a,!0x0))return null;_0x59dfd5=_0x59dfd5['isBefore'](_0x234199['start'])?_0x59dfd5:_0x234199['start'],_0x5013c2=_0x5013c2['isAfter'](_0x234199['end'])?_0x5013c2:_0x234199['end'],_0x4a01b6?_0x234199['start']['isBefore'](_0x4a01b6['getFirstRange']()['start'])?(_0x4a01b6['removeMarkers'](),_0x4a01b6=_0x3a3779):_0x3a3779['removeMarkers']():_0x4a01b6=_0x3a3779;}else{const _0x15be01=_0x4a842a['getIntersection'](_0x234199);this['_cutOutSuggestionMarker'](_0x3a3779,_0x15be01);}}const _0x440593=this['editor']['plugins']['get']('Users')['me'],_0x37dbd6=_0xea66bb(),_0x41415b=_0x440593['id'];if(_0x4a01b6)return this['_setSuggestionRange'](_0x4a01b6,this['_model']['createRange'](_0x59dfd5,_0x5013c2)),_0x4a01b6;{const _0x2e0ab4=this['_setSuggestionData']({'id':_0x37dbd6,'type':'formatBlock:'+_0x548bad,'data':_0x2dd768,'createdAt':new Date(),'authorId':_0x41415b,'attributes':_0xd3013});return this['_addSuggestionMarker']('formatBlock:'+_0x548bad,_0x37dbd6,_0x41415b,this['_model']['createRange'](_0x59dfd5,_0x5013c2)),_0x2e0ab4;}}markMultiRangeBlockFormat(_0x53a254,_0x58de7d,_0x3ae8e5=[],_0x5a349e=null,_0x2c261f={}){_0x58de7d['formatGroupId']||(_0x58de7d['formatGroupId']=_0x58de7d['commandName']);const _0x9ada39=_0x53a254[0x0];_0x58de7d['multipleBlocks']=_0x9ada39['is']('range'),_0x5a349e=_0x5a349e||JP(_0x58de7d);const _0x369834=_0x3ae8e5['map'](_0x492099=>nN(_0x492099,this['_model'])),_0x45db40=_0x9ada39['is']('range')?_0x53a254:_0x53a254['map'](_0x2eac35=>nN(_0x2eac35,this['_model']));if(this['_trackingSessionId']&&(_0x2c261f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x367909=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a349e,'accept');return this['forceDefaultExecution'](()=>_0x367909(_0x45db40,_0x58de7d,_0x2c261f)),null;}_0x369834['push'](..._0x45db40);let _0x145fa2=!0x0;for(const _0x573f9c of _0x369834)if(!this['_rangeIsInLocalUserInsertion'](_0x573f9c)){_0x145fa2=!0x1;break;}if(_0x145fa2&&'always'!==this['_trackFormatChanges']){const _0x528c35=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a349e,'accept');return this['forceDefaultExecution'](()=>_0x528c35(_0x45db40,_0x58de7d,_0x2c261f)),null;}const _0x1a5fe8=this['editor']['plugins']['get']('Users')['me'];for(const _0x4b1469 of this['getSuggestions']()){const _0x5b165c=_0x4b1469['data'];if(_0x4b1469['author']['id']!=_0x1a5fe8['id'])continue;if('formatBlock'!=_0x4b1469['type']||_0x5b165c['formatGroupId']!=_0x58de7d['formatGroupId'])continue;if(!aN(_0x4b1469,_0x2c261f))continue;const _0x4535be=_0x4b1469['subType']==_0x5a349e;for(let _0x1a0bf9=0x0;_0x1a0bf9<_0x45db40['length'];_0x1a0bf9++){const _0x4ea40f=_0x45db40[_0x1a0bf9];for(const _0xf175a9 of _0x4b1469['getMarkers']()){const _0x1353c1=_0xf175a9['getRange']();if(_0x4ea40f['isEqual'](_0x1353c1)){_0x4535be?(_0x45db40['splice'](_0x1a0bf9,0x1),_0x1a0bf9--):_0x4b1469['removeMarker'](_0xf175a9['name']);break;}}}}if(0x0==_0x45db40['length'])return null;const _0x5c35a8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a349e,'join');for(const _0x42a147 of this['getSuggestions']()){const _0x13bb69=_0x42a147['data'];if(_0x42a147['author']['id']==_0x1a5fe8['id']&&('formatBlock'==_0x42a147['type']&&_0x13bb69['formatGroupId']==_0x58de7d['formatGroupId']&&_0x42a147['subType']==_0x5a349e&&aN(_0x42a147,_0x2c261f)&&(_0x5c35a8(_0x42a147['getRanges'](),_0x45db40)||_0x5c35a8(_0x45db40,_0x42a147['getRanges']())))){for(const _0x1fd72d of _0x45db40)_0x42a147['addRange'](_0x1fd72d);return _0x42a147;}}const _0x42449b=_0xea66bb(),_0x1a9091=_0x1a5fe8['id'],_0x2805a3='formatBlock:'+_0x5a349e,_0x11f306=this['_setSuggestionData']({'id':_0x42449b,'type':_0x2805a3,'data':_0x58de7d,'createdAt':new Date(),'authorId':_0x1a9091,'attributes':_0x2c261f});for(const _0x571a68 of _0x45db40)this['_addSuggestionMarker'](_0x2805a3,_0x42449b,_0x1a9091,_0x571a68,bR['getMultiRangeId']());return _0x11f306;}markDeletion(_0x268ee5,_0x373a99=null,_0x2b394d={}){if(_0x268ee5['isCollapsed'])return null;const _0x2ca0ef=this['editor']['plugins']['get']('Users')['me'],_0x298e82=new _0x2a6d0b(_0x268ee5['start'],_0x268ee5['end']);this['_trackingSessionId']&&(_0x2b394d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x454638,meta:_0x132907}of this['_findSuggestions'](_0x298e82,'insertion'))if(_0x132907['isOwn']&&!_0x132907['isNextTo']){if(_0x454638['isMultiRange']){const _0x240de6=_0x454638['getRanges']()['filter'](_0xb80ab2=>'$graveyard'!=_0xb80ab2['root']['rootName']);if(_0x240de6['every'](_0x52a1e7=>_0x298e82['containsRange'](_0x52a1e7,!0x0))&&_0x454638['discard'](),_0x240de6['some'](_0xa464fa=>_0xa464fa['containsRange'](_0x298e82,!0x0))){const _0x2f573c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x373a99,'accept');return this['forceDefaultExecution'](()=>_0x2f573c([_0x298e82],null,_0x2b394d)),null;}}else{const _0x426217=_0x298e82['getIntersection'](_0x454638['getFirstRange']());null!==_0x426217&&_0x454638['_onDiscard']([_0x426217],null,_0x2b394d);}}if(_0x298e82['detach'](),_0x298e82['isCollapsed']||'$graveyard'==_0x298e82['root']['rootName'])return null;let _0x360f9a=null,_0x4db424=_0x298e82['start'],_0x2ccdbd=_0x298e82['end'];const _0x29f40b=this['_findSuggestions'](_0x298e82,'deletion');for(const {suggestion:_0x3e8110,meta:_0x53afbe}of _0x29f40b){const _0x39bae6=this['_model']['createRange'](_0x4db424,_0x2ccdbd);if(_0x53afbe['isOwn']&&(this['_mergeNestedSuggestions']||!_0x53afbe['containsRangeInObject']&&!_0x53afbe['isInsideObject'])){if(_0x3e8110['isMultiRange']){if(!aN(_0x3e8110,_0x2b394d))continue;let _0x19dc9d=!0x0;for(const _0x3933f6 of _0x3e8110['getRanges']()){if(_0x3933f6['containsRange'](_0x39bae6,!0x0))return _0x3e8110;_0x39bae6['containsRange'](_0x3933f6)||(_0x19dc9d=!0x1);}_0x19dc9d&&_0x3e8110['discard']();}else{const _0x36bb1f=_0x3e8110['getFirstRange']();if(_0x36bb1f['containsRange'](_0x39bae6,!0x0))return _0x3e8110;if(!aN(_0x3e8110,_0x2b394d)){_0x39bae6['containsRange'](_0x36bb1f)?_0x3e8110['removeMarkers']():_0x36bb1f['containsPosition'](_0x4db424)?_0x4db424=_0x36bb1f['end']:_0x36bb1f['containsPosition'](_0x2ccdbd)&&(_0x2ccdbd=_0x36bb1f['start']);continue;}_0x4db424=_0x4db424['isBefore'](_0x36bb1f['start'])?_0x4db424:_0x36bb1f['start'],_0x2ccdbd=_0x2ccdbd['isAfter'](_0x36bb1f['end'])?_0x2ccdbd:_0x36bb1f['end'],_0x2b394d=Object['assign']({},_0x3e8110['attributes']),_0x360f9a?_0x36bb1f['start']['isBefore'](_0x360f9a['getFirstRange']()['start'])?(_0x360f9a['removeMarkers'](),_0x360f9a=_0x3e8110):_0x3e8110['removeMarkers']():_0x360f9a=_0x3e8110;}}}if(_0x360f9a)return this['_setSuggestionRange'](_0x360f9a,this['_model']['createRange'](_0x4db424,_0x2ccdbd)),_0x360f9a;{const _0x3e0d07=_0xea66bb(),_0x552981=this['_model']['createRange'](_0x4db424,_0x2ccdbd),_0x221750=_0x2ca0ef['id'],_0x363456=_0x373a99?'deletion:'+_0x373a99:'deletion',_0x369536=this['_setSuggestionData']({'id':_0x3e0d07,'type':_0x363456,'createdAt':new Date(),'authorId':_0x221750,'attributes':_0x2b394d});return this['_addSuggestionMarker'](_0x363456,_0x3e0d07,_0x221750,_0x552981),_0x369536;}}markMultiRangeDeletion(_0x35965b,_0x2d1988='multi',_0x252d36={}){const _0x3e8ba1=this['editor']['plugins']['get']('Users')['me'],_0x55f655=_0x35965b['map'](_0x58ec4d=>new _0x2a6d0b(_0x58ec4d['start'],_0x58ec4d['end'])),_0x2e7609=new Set();this['_trackingSessionId']&&(_0x252d36['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x27d096,meta:_0x415a86}of this['_findSuggestions'](_0x55f655,'insertion'))_0x415a86['isOwn']&&!_0x415a86['isNextTo']&&_0x2e7609['add'](_0x27d096);for(const _0x461ece of _0x2e7609)if(_0x461ece['isMultiRange']){const _0x13b3d0=_0x461ece['getRanges']();if(_0x461ece['attributes']&&_0x461ece['attributes']['skipNestingCheck']||_0x13b3d0['every'](_0x89bbe6=>_0x55f655['some'](_0x5e0a1c=>_0x5e0a1c['containsRange'](_0x89bbe6,!0x0)))&&_0x461ece['discard'](),_0x55f655['every'](_0x1f26a4=>_0x13b3d0['some'](_0x47fb61=>_0x47fb61['containsRange'](_0x1f26a4,!0x0)))){const _0x3450cc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d1988,'accept');return this['forceDefaultExecution'](()=>_0x3450cc(_0x35965b,null,_0x252d36)),null;}}else{const _0x28cbb9=_0x461ece['getFirstRange']();if(_0x55f655['some'](_0x501c25=>_0x501c25['containsRange'](_0x28cbb9,!0x0))&&_0x461ece['discard'](),_0x55f655['every'](_0x5b971a=>_0x28cbb9['containsRange'](_0x5b971a,!0x0))){const _0x3bd8bd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d1988,'accept');return this['forceDefaultExecution'](()=>_0x3bd8bd(_0x55f655,null,_0x252d36)),null;}}const _0x17858e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d1988,'join');let _0x5c36fc=null;for(const _0x282d35 of this['getSuggestions']())if(_0x282d35['author']['id']==_0x3e8ba1['id']&&_0x282d35['isInContent']&&'deletion'==_0x282d35['type']&&_0x282d35['subType']==_0x2d1988&&aN(_0x282d35,_0x252d36)&&(_0x17858e(_0x282d35['getRanges'](),_0x55f655)||_0x17858e(_0x55f655,_0x282d35['getRanges']()))){if(_0x5c36fc){if(_0x282d35['commentThread']&&_0x282d35['commentThread']['length'])continue;for(const _0x502acb of _0x282d35['getRanges']())_0x5c36fc['isIntersectingWithRange'](_0x502acb)||_0x5c36fc['addRange'](_0x502acb);_0x282d35['removeMarkers']();}else{_0x5c36fc=_0x282d35;for(const _0x1b29f4 of _0x55f655)_0x282d35['isIntersectingWithRange'](_0x1b29f4)||_0x282d35['addRange'](_0x1b29f4);}}if(_0x5c36fc)return _0x5c36fc;_0x2e7609['clear']();for(const {suggestion:_0x4a5734,meta:_0x33a493}of this['_findSuggestions'](_0x55f655,'deletion'))_0x33a493['isOwn']&&(this['_mergeNestedSuggestions']||!_0x33a493['containsRangeInObject']&&!_0x33a493['isInsideObject'])&&aN(_0x4a5734,_0x252d36)&&_0x2e7609['add'](_0x4a5734);for(const _0x5f3866 of _0x2e7609){const _0x49be1b=_0x5f3866['getRanges']();if((!_0x252d36||!_0x252d36['skipNestingCheck'])&&_0x55f655['every'](_0x5e478e=>_0x49be1b['some'](_0x1dd239=>_0x1dd239['containsRange'](_0x5e478e,!0x0))))return _0x5f3866;_0x5f3866['attributes']&&_0x5f3866['attributes']['skipNestingCheck']||_0x49be1b['every'](_0x35a15=>_0x55f655['some'](_0x2ce868=>_0x2ce868['containsRange'](_0x35a15,!0x0)))&&_0x5f3866['discard']();}const _0x17b3ae=_0xea66bb(),_0xc4238=_0x3e8ba1['id'],_0x1aa42b='deletion:'+_0x2d1988,_0x364974=this['_setSuggestionData']({'id':_0x17b3ae,'type':_0x1aa42b,'createdAt':new Date(),'authorId':_0xc4238,'attributes':_0x252d36});for(const _0x3bb79e of _0x55f655)_0x3bb79e['detach'](),_0x3bb79e['isCollapsed']||'$graveyard'==_0x3bb79e['root']['rootName']||this['_addSuggestionMarker'](_0x1aa42b,_0x17b3ae,_0xc4238,_0x3bb79e,bR['getMultiRangeId']());return _0x364974;}markAttributeChange(_0x44c207,_0x6631b9,_0x551153,_0x5c0d1b,_0x2746ae){if(_0x44c207['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x51c68f=this['editor']['plugins']['get']('Users')['me']['id'],_0x31c2dc=Array['from'](this['_suggestions']['values']())['filter'](_0xdca35c=>'attribute'==_0xdca35c['type']&&_0xdca35c['data']['key']==_0x6631b9&&_0xdca35c['isIntersectingWithRange'](_0x44c207));if(this['_trackingSessionId']&&(_0x2746ae['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3df69c=this['_findSuggestions'](_0x44c207,'insertion')['filter'](({meta:_0x4c7fc4})=>_0x4c7fc4['isOwn']&&!_0x4c7fc4['isInsideObject']&&!_0x4c7fc4['isNextTo'])['map'](({suggestion:_0x159a6c})=>_0x159a6c);_0x31c2dc['unshift'](..._0x3df69c);}const _0x3bd808=new Map([[_0x44c207,_0x551153]]);for(const _0x250708 of _0x31c2dc){const _0x1e14b3='attribute'==_0x250708['type']?_0x250708['data']['oldValue']:void 0x0,_0x1e971c=_0x250708['getFirstRange'](),_0x458622=Array['from'](_0x3bd808['keys']())['find'](_0x4fee6e=>_0x4fee6e['isIntersecting'](_0x1e971c));if(!_0x458622)continue;const _0x312bb5=_0x458622['getDifference'](_0x1e971c);this['_suggestionsConversion']['isBlockAttribute'](_0x6631b9)&&'insertion'==_0x250708['type']&&0x0!=_0x312bb5['length']||(_0x3bd808['delete'](_0x458622),_0x312bb5['forEach'](_0xfd68bf=>{_0x3bd808['set'](_0xfd68bf,_0x551153);}),'insertion'!=_0x250708['type']&&_0x1e14b3!=_0x5c0d1b&&_0x3bd808['set'](_0x458622['getIntersection'](_0x1e971c),_0x1e14b3));}const _0x101797=[];for(const [_0x48e443,_0xe986c3]of _0x3bd808){const _0x1749f6=_0xea66bb(),_0x4e92f8={'key':_0x6631b9,'oldValue':_0xe986c3,'newValue':_0x5c0d1b};_0x6631b9['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x6631b9});const _0x47aee2=('attribute:'+_0x6631b9+'|'+JP({'newValue':_0x5c0d1b}))['substring'](0x0,0x3c),_0x2c07a5=this['_setSuggestionData']({'id':_0x1749f6,'type':_0x47aee2,'data':_0x4e92f8,'createdAt':new Date(),'authorId':_0x51c68f,'attributes':_0x2746ae});_0x101797['push'](_0x2c07a5),this['_addSuggestionMarker'](_0x47aee2,_0x1749f6,_0x51c68f,_0x48e443);}return _0x101797;}enableDefaultAttributesIntegration(_0x358254){this['enableCommand'](_0x358254,(_0x39e023,..._0x2eaa97)=>{this['recordAttributeChanges'](()=>{_0x39e023(..._0x2eaa97);});});}startTrackingSession(_0x172d41){return this['_trackingSessionId']=void 0x0!==_0x172d41?_0x172d41:_0xea66bb(),this['_trackingSessionId'];}_getAttributeKey(_0x2bb6d4){return'attribute'==_0x2bb6d4['type']?lN(_0x2bb6d4['subType']):null;}_applyOperationsAsSuggestions(_0x20e242){if(0x0==_0x20e242['length'])return;const _0x7d32eb=this['editor'],_0xa6735b=_0x7d32eb['plugins']['get'](Op),_0x41a008=[],_0x53fd98=_0x977263=>{const _0x542f17=_0x977263['_aiSource'];return _0x542f17?{'@ai':{'type':_0x542f17}}:{};},_0x124b52=(_0x24bce4,_0x451bae,_0x1a87db)=>{for(let _0x2ebdbd=_0x451bae;_0x2ebdbd<_0x24bce4['operations']['length'];_0x2ebdbd++){const _0x1c7529=_0x24bce4['operations'][_0x2ebdbd];'marker'===_0x1c7529['type']&&(_0x1c7529['_aiSource']=_0x1a87db);}};_0x7d32eb['model']['change'](_0x1941c4=>{for(let _0x4f5569=0x0;_0x4f5569<_0x20e242['length'];_0x4f5569++){const _0x20ab76=_0x20e242[_0x4f5569],_0x236cdd=_0x20ab76['_aiSource'],_0xb7a17f=_0x1941c4['batch']['operations']['length'];if(_0x20ab76['baseVersion']=_0x7d32eb['model']['document']['version'],_0x20ab76['isDocumentOperation']=!0x0,!Vm(_0x20ab76)){if(_0xa6735b['isMarkedRemoveOperation'](_0x20ab76)){const _0x4337c8=$l(_0x20ab76['newRange'],_0x7d32eb['model']);_0x41a008['unshift']({'range':_0x2a6d0b['fromRange'](_0x4337c8),'opAttributes':_0x53fd98(_0x20ab76),'aiSource':_0x236cdd});}else{switch(_0x20ab76['type']){case'rename':{const _0x542ca6=_0x20ab76['oldName'],_0x4e7cfc=_0x20ab76['newName'];if(_0x542ca6==_0x4e7cfc)break;_0x1941c4['batch']['addOperation'](_0x20ab76),_0x7d32eb['model']['applyOperation'](_0x20ab76);const _0x479cf2='$elementName',_0x50cc92=_0x20ab76['position'],_0x1c0b6d=_0x7d32eb['model']['createRange'](_0x50cc92,_0x7d32eb['model']['createPositionAt'](_0x50cc92['nodeAfter'],'end'));this['markAttributeChange'](_0x1c0b6d,_0x479cf2,_0x542ca6,_0x4e7cfc,{..._0x53fd98(_0x20ab76),'groupId':_0xea66bb()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x34b1c7=_0x20ab76['oldValue'],_0x22eb65=_0x20ab76['newValue'];if(_0x34b1c7==_0x22eb65)break;_0x1941c4['batch']['addOperation'](_0x20ab76),_0x7d32eb['model']['applyOperation'](_0x20ab76);const _0x2c0a59=_0x20ab76['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x2c0a59))break;const _0x1aa2b9=$l(_0x20ab76['range'],_0x7d32eb['model']);this['markAttributeChange'](_0x1aa2b9,_0x2c0a59,_0x34b1c7,_0x22eb65,{..._0x53fd98(_0x20ab76),'groupId':_0xea66bb()});break;}case'insert':{if(_0x1941c4['batch']['addOperation'](_0x20ab76),_0x7d32eb['model']['applyOperation'](_0x20ab76),_0x20e242[_0x4f5569+0x1]&&'move'==_0x20e242[_0x4f5569+0x1]['type'])break;const _0x585673=_0x20ab76['position'],_0xac6c65=_0x20ab76['howMany'],_0x53583b=$l(_0x7d32eb['model']['createRange'](_0x585673,_0x585673['getShiftedBy'](_0xac6c65)),_0x7d32eb['model']);this['markInsertion'](_0x53583b,null,{..._0x53fd98(_0x20ab76)});break;}case'split':{_0x1941c4['batch']['addOperation'](_0x20ab76),_0x7d32eb['model']['applyOperation'](_0x20ab76);const _0x14406c=_0x20ab76['splitPosition'],_0x40ffed=_0x20ab76['moveTargetPosition'],_0x5a42cb=_0x7d32eb['model']['createRange'](_0x14406c,_0x40ffed);this['markInsertion'](_0x5a42cb,null,{..._0x53fd98(_0x20ab76)});break;}case'move':case'remove':_0x1941c4['batch']['addOperation'](_0x20ab76),_0x7d32eb['model']['applyOperation'](_0x20ab76);}_0x236cdd&&_0x124b52(_0x1941c4['batch'],_0xb7a17f,_0x236cdd);}}}for(const {range:_0x59080b,opAttributes:_0x46cdc6,aiSource:_0x50d11b}of _0x41a008){const _0x239cc5=_0x1941c4['batch']['operations']['length'];_0x59080b['detach'](),this['markDeletion'](_0x59080b,null,{..._0x46cdc6}),_0x50d11b&&_0x124b52(_0x1941c4['batch'],_0x239cc5,_0x50d11b);}});}_setSuggestionRange(_0x49cc8c,_0x45e112){const _0x43e9b4=_0x49cc8c['getFirstMarker']();this['_model']['change'](_0x1e44a5=>{_0x1e44a5['updateMarker'](_0x43e9b4,{'range':_0x45e112});});}_addThreadToSuggestion(_0x20bd09){const _0x1f1c41=_0x20bd09['id'],_0xbc2c5d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1f1c41)||this['_commentsRepository']['addCommentThread']({'channelId':_0xbc2c5d,'threadId':_0x1f1c41,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x355a1a=this['_commentsRepository']['getCommentThread'](_0x1f1c41);_0x355a1a['unbind']('isRemovable'),_0x355a1a['isRemovable']=!0x1,_0x20bd09['commentThread']=_0x355a1a;}_checkSuggestionCorrectness(_0x495163,_0x49dd23,_0x2f5396,_0x410977){if(_0x495163['type']!=_0x49dd23||_0x495163['subType']!=_0x2f5396||_0x495163['creator']['id']!=_0x410977)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4242d4('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x5d8903,_0x208542){const _0x3948ac=_0x5d8903['getFirstRange']();if(_0x208542['isEqual'](_0x3948ac))_0x5d8903['removeMarkers']();else{if(_0x3948ac['containsRange'](_0x208542)){const _0x2267c2=this['_model']['createPositionAt'](_0x208542['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5d8903,this['_model']['createRange'](_0x3948ac['start'],_0x2267c2));const _0x5d6992=_0xea66bb(),_0x3c95c8=_0x5d8903['creator']['id'],_0x44864f=_0x5d8903['type']+':'+_0x5d8903['subType'];this['_setSuggestionData']({'id':_0x5d6992,'type':_0x44864f,'createdAt':new Date(),'authorId':_0x3c95c8,'data':_0x5d8903['data'],'attributes':_0x5d8903['attributes']});const _0x13debc=this['_model']['createPositionAt'](_0x208542['end']['parent'],'after'),_0x1dba05=this['_model']['createRange'](_0x13debc,_0x3948ac['end']);this['_addSuggestionMarker'](_0x44864f,_0x5d6992,_0x3c95c8,_0x1dba05);}else{if(_0x3948ac['containsPosition'](_0x208542['start'])){const _0x17536d=this['_model']['createPositionAt'](_0x208542['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5d8903,this['_model']['createRange'](_0x3948ac['start'],_0x17536d));}else{const _0x38b599=this['_model']['createPositionAt'](_0x208542['end']['parent'],'after');this['_setSuggestionRange'](_0x5d8903,this['_model']['createRange'](_0x38b599,_0x3948ac['end']));}}}}_rangeIsInLocalUserInsertion(_0x8de089){for(const {suggestion:_0x21ac55,meta:_0x119953}of this['_findSuggestions'](_0x8de089,'insertion')){if(!_0x119953['isOwn'])continue;const _0x1f7a08=_0x21ac55['getRanges']();for(const _0x5a9bbc of _0x1f7a08)if(!_0x8de089['getDifference'](_0x5a9bbc)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x52aeb4){return this['editor']['plugins']['get']('Users')['getUser'](_0x52aeb4);}_getExternalAuthor(_0x48f4bc){const _0x11c487=this['editor']['plugins']['get']('Users'),_0x3383bd=Lm('external:'+_0x48f4bc),_0x41e867=_0x11c487['getUser'](_0x3383bd);return _0x41e867||_0x11c487['addUser']({'id':_0x3383bd,'name':_0x48f4bc});}_createSuggestion(_0x35424c,_0x29a37a,_0x4bf460,_0x494be6,_0x3b659d,_0x23b191){const _0x86423=this['_getAuthorFromId'](_0x494be6);if(!_0x86423)throw new _0x4242d4('track-changes-user-not-found',this,{'authorId':_0x494be6,'suggestionId':_0x4bf460});const _0x21fbed=this['_suggestionFactory']['buildSuggestion'](_0x35424c,_0x29a37a,_0x4bf460,_0x86423,_0x3b659d,_0x5bb382=>{this['_updateSuggestionData'](_0x4bf460,{'attributes':_0x5bb382});const _0x275901=this['getSuggestion'](_0x4bf460);this['_joinWithAdjacentSuggestions'](new Set([_0x275901])),this['_refreshSuggestionsChain'](new Set([_0x275901]));},_0x23b191);return this['listenTo'](_0x21fbed,'accept',()=>{this['_updateSuggestionData'](_0x4bf460,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x21fbed,'discard',()=>{this['_updateSuggestionData'](_0x4bf460,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4bf460,_0x21fbed),this['_suggestionState']['set'](_0x21fbed,'notReady'),_0x21fbed;}_breakSuggestionMarker(_0x34553a,_0x53b2d3,_0x289a7f){const _0x5e76f8=_0x34553a['getFirstRange'](),_0x45dac3=_0x5e76f8['start'],_0x1c3a8b=_0x5e76f8['end'];this['_setSuggestionRange'](_0x34553a,this['_model']['createRange'](_0x45dac3,_0x53b2d3));const _0x48fd6f=_0xea66bb(),_0x4804b0=_0x34553a['creator']['id'],_0x412ca0=_0x34553a['type']+(_0x34553a['subType']?':'+_0x34553a['subType']:'');this['_setSuggestionData']({'id':_0x48fd6f,'type':_0x412ca0,'createdAt':new Date(),'authorId':_0x4804b0,'originalSuggestionId':_0x34553a['_originalSuggestionId']||_0x34553a['id'],'attributes':_0x34553a['attributes'],'data':_0x34553a['data']});const _0x2744ad=this['_getAttributeKey'](_0x34553a);('formatBlock'==_0x34553a['type']||_0x2744ad&&this['_suggestionsConversion']['isBlockAttribute'](_0x2744ad))&&(_0x289a7f=this['_model']['createPositionBefore'](_0x289a7f['parent'])),this['_addSuggestionMarker'](_0x412ca0,_0x48fd6f,_0x4804b0,this['_model']['createRange'](_0x289a7f,_0x1c3a8b));}_findSuggestions(_0x124ba8,_0x4a3b59=null){const _0x2e4ff3=[],_0x2e4998=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x124ba8)||(_0x124ba8=[_0x124ba8]);for(const _0x30dd02 of this['getSuggestions']()){if(!_0x30dd02['isInContent'])continue;if(_0x4a3b59&&_0x30dd02['type']!=_0x4a3b59)continue;let _0x2959a9=!0x1;for(const _0x38374b of _0x30dd02['getRanges']()){for(const _0x529c10 of _0x124ba8){const _0x2568f4=_0x529c10['start']['isEqual'](_0x38374b['end'])||_0x529c10['end']['isEqual'](_0x38374b['start']);if(_0x2568f4||_0x529c10['getIntersection'](_0x38374b)){const _0x588352=_0x529c10['containsRange'](_0x38374b)&&zP(this['_model']['schema'],_0x38374b['start'],_0x529c10),_0x5a9dff=_0x38374b['containsRange'](_0x529c10)&&zP(this['_model']['schema'],_0x529c10['start'],_0x38374b);_0x2e4ff3['push']({'suggestion':_0x30dd02,'meta':{'isOwn':_0x2e4998==_0x30dd02['author'],'isNextTo':_0x2568f4,'isInsideObject':_0x588352,'containsRangeInObject':_0x5a9dff}}),_0x2959a9=!0x0;break;}}if(_0x2959a9)break;}}return _0x2e4ff3;}_addSuggestionMarker(_0x258c38,_0x3e36d8,_0x2deab1,_0x3f705e,_0x5e5e4f){this['_model']['change'](_0x3315d6=>{let _0x26371d='suggestion:'+_0x258c38+':'+_0x3e36d8+':'+_0x2deab1;_0x5e5e4f&&(_0x26371d=_0x26371d+':'+_0x5e5e4f),_0x3315d6['addMarker'](_0x26371d,{'range':_0x3f705e,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x2093f6){const _0x1d8180=_0x2093f6['previous'],_0x38d12b=_0x2093f6['next'];_0x2093f6['previous']=null,_0x2093f6['next']=null,null!=_0x1d8180&&_0x1d8180['next']==_0x2093f6&&(_0x1d8180['next']=_0x38d12b),null!=_0x38d12b&&_0x38d12b['previous']==_0x2093f6&&(_0x38d12b['previous']=_0x1d8180),'ready'==this['_suggestionState']['get'](_0x2093f6)&&(this['_suggestionState']['set'](_0x2093f6,'removed'),this['fire']('suggestionUnloaded',_0x2093f6,_0x1d8180,_0x38d12b));}_setSuggestionData(_0x57e846){const _0x671d19=_0x57e846['id'],_0x32de11=this['addSuggestionData'](_0x57e846);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5e039c=this['editor']['plugins']['get']('PendingActions'),_0x51978d=_0x32de11['hasComments'],_0x584346=_0x32de11['subType']?_0x32de11['type']+':'+_0x32de11['subType']:_0x32de11['type'],_0x1ae572=this['editor']['locale'],_0x3863be=_0x5e039c['add'](yR(_0x1ae572,'PENDING_ACTION_SUGGESTION')),_0x23ec2c={'id':_0x671d19,'type':_0x584346,'hasComments':_0x51978d,'data':_0x57e846['data']||null,'originalSuggestionId':_0x57e846['originalSuggestionId']||null,'attributes':_0x32de11['attributes']};this['_adapter']['addSuggestion'](_0x23ec2c)['then'](_0x2652c9=>{_0x32de11['_saved']=!0x0,_0x5e039c['remove'](_0x3863be),_0x2652c9&&_0x2652c9['createdAt']&&(this['_suggestions']['get'](_0x671d19)['createdAt']=_0x2652c9['createdAt']);})['catch'](_0x3e941a=>{throw _0x53dc7a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x32de11['discard']();}),_0x32de11['stopListening'](),this['_suggestions']['delete'](_0x32de11['id']),this['_suggestionState']['delete'](_0x32de11),_0x3e941a;});}return _0x32de11;}_updateSuggestionData(_0x164da7,_0x5cb533){const _0x41673b=this['editor']['plugins']['get']('PendingActions'),_0x46a12a=this['getSuggestion'](_0x164da7);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x46a12a['_saved']){const _0x2be544=_0x41673b['add'](yR(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x164da7,_0x5cb533)['then'](()=>{_0x41673b['remove'](_0x2be544);});}else _0x46a12a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x164da7,_0x5cb533);});}}_getSuggestionData(_0x399a57){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4242d4('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x399a57);}_handleNewSuggestionMarker(_0xa606f){const {id:_0x570de6,type:_0x1d4d78,subType:_0x402be6,authorId:_0x383556}=Ll(_0xa606f),_0x255635=this['_suggestions']['get'](_0x570de6)||this['_createSuggestion'](_0x1d4d78,_0x402be6,_0x570de6,_0x383556,{});switch(this['_checkSuggestionCorrectness'](_0x255635,_0x1d4d78,_0x402be6,_0x383556),this['_suggestionState']['get'](_0x255635)){case'notReady':this['_getSuggestionData'](_0x570de6)['then'](_0x2bd33f=>{let _0x44c5a2=Promise['resolve']();_0x2bd33f['hasComments']&&(_0x44c5a2=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x570de6})),_0x44c5a2['then'](()=>{this['addSuggestionData'](_0x2bd33f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x255635,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x570de6,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x255635,'ready'),this['fire']('suggestionLoaded',_0x255635);break;case'ready':this['fire']('suggestionChanged',_0x255635);}return _0x255635['addMarkerName'](_0xa606f),_0x255635;}_refreshSuggestionsChain(_0x537683){const _0x16c570=Array['from'](_0x537683),_0x40ccf4=_0x16c570['filter'](_0x19fb91=>'attribute'==_0x19fb91['type']);this['_refreshAttributeSuggestionsChain'](_0x40ccf4);const _0xd6a945=_0x16c570['filter'](_0x370933=>!_0x370933['isMultiRange']&&'attribute'!=_0x370933['type']),_0x1ccbfb=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c4009=>!_0x5c4009['isMultiRange']&&'attribute'!=_0x5c4009['type']),_0x33661f=_0x1ccbfb['filter'](_0x52dc90=>!_0x537683['has'](_0x52dc90)),_0x242c6e=new Map(_0x1ccbfb['map'](_0xef6ea1=>[_0xef6ea1,this['_suggestionFactory']['getSuggestionCallback'](_0xef6ea1['type'],_0xef6ea1['subType'],'chain')])),_0x4f7cd7=new Map(_0x1ccbfb['map'](_0xafe317=>[_0xafe317,_0xafe317['getFirstRange']()])),_0x5e8997=new Set(),_0x1019f2=new Set();for(let _0x32cf3e=0x0;_0x32cf3e<_0xd6a945['length'];_0x32cf3e++)_0x469190(_0xd6a945[_0x32cf3e],_0xd6a945,_0x32cf3e+0x1);for(let _0x120b00=0x0;_0x120b00<_0xd6a945['length'];_0x120b00++)_0x469190(_0xd6a945[_0x120b00],_0x33661f,0x0);const _0x3227f3=new Set();for(let _0x1ef675=0x0;_0x1ef675<_0xd6a945['length'];_0x1ef675++){const _0x13c6ae=_0xd6a945[_0x1ef675];!_0x1019f2['has'](_0x13c6ae)&&_0x13c6ae['previous']&&(_0x3227f3['add'](_0x13c6ae['previous']),_0x13c6ae['previous']['next']===_0x13c6ae&&(_0x13c6ae['previous']['next']=null),_0x13c6ae['previous']=null),!_0x5e8997['has'](_0x13c6ae)&&_0x13c6ae['next']&&(_0x3227f3['add'](_0x13c6ae['next']),_0x13c6ae['next']['previous']===_0x13c6ae&&(_0x13c6ae['next']['previous']=null),_0x13c6ae['next']=null);}function _0x469190(_0x407f2c,_0x19f2b8,_0x1ed97c){for(let _0x356ce5=_0x1ed97c;_0x356ce5<_0x19f2b8['length'];_0x356ce5++){const _0x217ac8=_0x225a27(_0x407f2c,_0x19f2b8[_0x356ce5]);_0x217ac8&&(_0x217ac8[0x0]['next']=_0x217ac8[0x1],_0x217ac8[0x1]['previous']=_0x217ac8[0x0],_0x5e8997['add'](_0x217ac8[0x0]),_0x1019f2['add'](_0x217ac8[0x1]));}}function _0x225a27(_0x370ff0,_0x1ed3f0){if(_0x370ff0['author']['id']!==_0x1ed3f0['author']['id'])return null;const _0x2f1fa7=_0x242c6e['get'](_0x370ff0)(_0x370ff0,_0x1ed3f0,_0x4f7cd7['get'](_0x370ff0),_0x4f7cd7['get'](_0x1ed3f0));return _0x2f1fa7&&_0x242c6e['get'](_0x1ed3f0)(_0x370ff0,_0x1ed3f0,_0x4f7cd7['get'](_0x370ff0),_0x4f7cd7['get'](_0x1ed3f0))?_0x2f1fa7[0x1]['commentThread']&&_0x2f1fa7[0x1]['commentThread']['length']?null:_0x2f1fa7:null;}_0x3227f3['size']&&this['_refreshSuggestionsChain'](_0x3227f3);}_refreshAttributeSuggestionsChain(_0x661384){if(0x0==_0x661384['length'])return;const _0x2c4b4e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5881dc=>'attribute'==_0x5881dc['type']&&_0x5881dc['_isDataLoaded']),_0x123d9d=[],_0x4bf68d=new Map();for(const _0x177c80 of _0x2c4b4e){const _0x5dbe88=Lm(_0x177c80['attributes']);_0x4bf68d['has'](_0x5dbe88)||(_0x4bf68d['set'](_0x5dbe88,_0x123d9d['length']),_0x123d9d['push']([])),_0x123d9d[_0x4bf68d['get'](_0x5dbe88)]['push'](_0x177c80);}!(function(){_0x123d9d['sort']((_0x40819f,_0x5b997f)=>{const _0x2e78ec=_0x40819f[0x0]['createdAt'],_0x1426cd=_0x5b997f[0x0]['createdAt'];return _0x2e78ec==_0x1426cd?_0x40819f[0x0]['attributes']['groupId']<_0x5b997f[0x0]['attributes']['groupId']?-0x1:0x1:_0x2e78ec<_0x1426cd?-0x1:0x1;});for(const _0x38d0b5 of _0x123d9d)_0x38d0b5['sort']((_0x5002de,_0x4ab7a6)=>_0x5002de['id']<_0x4ab7a6['id']?-0x1:0x1);}());for(let _0x28d9a5=0x0;_0x28d9a5<_0x123d9d['length'];_0x28d9a5++){if(0x0==_0x123d9d[_0x28d9a5]['length'])continue;const _0xdcb5c6=[];for(let _0x5ec648=_0x28d9a5+0x1;_0x5ec648<_0x123d9d['length'];_0x5ec648++)0x0!=_0x123d9d[_0x5ec648]['length']&&_0x19cb05(_0x123d9d[_0x28d9a5],_0x123d9d[_0x5ec648])&&_0xdcb5c6['push'](_0x5ec648);for(const _0x5284ce of _0xdcb5c6)_0x123d9d[_0x28d9a5]=_0x123d9d[_0x28d9a5]['concat'](_0x123d9d[_0x5284ce]),_0x123d9d[_0x5284ce]=[];}for(const _0x14aa85 of _0x123d9d)for(let _0x247ac4=0x0;_0x247ac4<_0x14aa85['length'];_0x247ac4++){const _0x2ed803=_0x14aa85[_0x247ac4+0x1]||null;_0x14aa85[_0x247ac4]['next']!==_0x2ed803&&(_0x14aa85[_0x247ac4]['next']=_0x2ed803);}for(const _0x3c431a of _0x123d9d)for(let _0x3d760d=0x0;_0x3d760d<_0x3c431a['length'];_0x3d760d++){const _0x10b2af=_0x3c431a[_0x3d760d-0x1]||null;_0x3c431a[_0x3d760d]['previous']!==_0x10b2af&&(_0x3c431a[_0x3d760d]['previous']=_0x10b2af);}function _0x19cb05(_0x6106d2,_0xabb8cd){return(_0x6106d2[0x0]['attributes']['groupId']===_0xabb8cd[0x0]['attributes']['groupId']||_0x6106d2[0x0]['author']===_0xabb8cd[0x0]['author'])&&(!!function(_0x1b0330,_0x50c489){return!_0x1b0330['hasComments']&&!_0x50c489['hasComments']||(!_0x1b0330['hasComments']||!_0x50c489['hasComments'])&&(!!(_0x1b0330['hasComments']&&_0x50c489['createdAt']<_0x1b0330['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x50c489['hasComments']&&_0x1b0330['createdAt']<_0x50c489['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x6106d2[0x0],_0xabb8cd[0x0])&&(!!Kr(vo(_0x6106d2[0x0]['attributes'],['groupId','trackingSessionId']),vo(_0xabb8cd[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0x6106d2[0x0]['attributes']['groupId']==_0xabb8cd[0x0]['attributes']['groupId']||_0x6106d2[0x0]['attributes']['trackingSessionId']===_0xabb8cd[0x0]['attributes']['trackingSessionId']&&(!!_0x6106d2['every'](_0x34e336=>_0xabb8cd['some'](_0x5b6c9c=>_0x34e336['getFirstRange']()['isEqual'](_0x5b6c9c['getFirstRange']())))&&_0xabb8cd['every'](_0x4334d2=>_0x6106d2['some'](_0x249d2b=>_0x4334d2['getFirstRange']()['isEqual'](_0x249d2b['getFirstRange']())))))));}}_joinWithAdjacentSuggestions(_0x485740){const _0x3a4842=Array['from'](_0x485740),_0x12bfda=this['getSuggestions']({'skipNotAttached':!0x0}),_0x29cc64=_0x12bfda['filter'](_0x145cdd=>!_0x485740['has'](_0x145cdd)),_0x1a6bf6=new Map(_0x3a4842['map'](_0x570c62=>[_0x570c62,this['_suggestionFactory']['getSuggestionCallback'](_0x570c62['type'],_0x570c62['subType'],'join')])),_0x1fa9a6=new Map(_0x12bfda['map'](_0x5a3cff=>[_0x5a3cff,_0x5a3cff['getRanges']()]));for(let _0x14b5a9=0x0;_0x14b5a9<_0x3a4842['length'];_0x14b5a9++)if(_0x102ccd(this,_0x3a4842[_0x14b5a9],_0x3a4842,_0x14b5a9+0x1))return!0x0;for(let _0x554c12=0x0;_0x554c12<_0x3a4842['length'];_0x554c12++)if(_0x102ccd(this,_0x3a4842[_0x554c12],_0x29cc64,0x0))return!0x0;return!0x1;function _0x102ccd(_0x5ad724,_0x1ad10f,_0xbcc957,_0x5f1a18){for(let _0x2b253d=_0x5f1a18;_0x2b253d<_0xbcc957['length'];_0x2b253d++){const _0x4e96ee=_0xbcc957[_0x2b253d];if(_0x4e96ee['type']!==_0x1ad10f['type']||_0x4e96ee['author']['id']!==_0x1ad10f['author']['id']||_0x4e96ee['subType']!==_0x1ad10f['subType'])continue;if(!oN(_0x1ad10f,_0x4e96ee))continue;if('attribute'==_0x1ad10f['type']&&_0x1ad10f['data']['oldValue']!=_0x4e96ee['data']['oldValue'])continue;if('attribute'==_0x1ad10f['type']&&_0x5ad724['_suggestionsConversion']['isBlockAttribute'](_0x1ad10f['data']['key']))continue;if('formatBlock'==_0x1ad10f['type']){const _0x2e7b94=_0x5ad724['editor']['model'],_0x4120f5=_0x1ad10f['getContainedElement']();if(_0x4120f5&&(_0x2e7b94['schema']['isObject'](_0x4120f5)||_0x2e7b94['schema']['isLimit'](_0x4120f5)))continue;}const _0x315871=_0x1a6bf6['get'](_0x1ad10f),_0x2b1786=_0x1fa9a6['get'](_0x1ad10f),_0x2c3752=_0x1fa9a6['get'](_0x4e96ee),_0x5cd3fa=_0x1ad10f['commentThread']&&_0x1ad10f['commentThread']['length'],_0x4dfef9=_0x4e96ee['commentThread']&&_0x4e96ee['commentThread']['length'];if(!_0x5cd3fa&&_0x315871(_0x2c3752,_0x2b1786))return _0x5ad724['_joinSuggestions'](_0x4e96ee,_0x1ad10f),_0x1fa9a6['delete'](_0x1ad10f),!0x0;if(!_0x4dfef9&&_0x315871(_0x2b1786,_0x2c3752))return _0x5ad724['_joinSuggestions'](_0x1ad10f,_0x4e96ee),_0x1fa9a6['delete'](_0x4e96ee),!0x0;}return!0x1;}}_joinSuggestions(_0x42e649,_0x25937f){if(_0x42e649['isMultiRange']){for(const _0x23df3a of _0x25937f['getRanges']())_0x42e649['addRange'](_0x23df3a);}else{const _0x2e52ae=_0x25937f['getFirstRange']()['end'];this['_setSuggestionRange'](_0x42e649,this['_model']['createRange'](_0x42e649['getFirstRange']()['start'],_0x2e52ae));}_0x25937f['removeMarkers']();}_getMarkerAnnouncementText(_0x129741,_0x1e6ce3,_0x4cd6ed){const _0x15e084=_0x129741['startsWith']('format')||_0x129741['startsWith']('attribute')?'FORMATTING':_0x129741['toUpperCase']();return yR(this['editor']['locale'],_0x1e6ce3+'_'+_0x15e084+'_SUGGESTION_ANNOUNCEMENT',_0x4cd6ed);}_initAriaMarkerChangeAnnouncements(){const _0x1eb8fe=this['editor'];if(!_0x1eb8fe['ui'])return;const {ariaLiveAnnouncer:_0x4af8c5}=_0x1eb8fe['ui'];Gm(this['_model'],({left:_0x29b880,entered:_0x409acf})=>{for(const _0xfae823 of _0x29b880){const {group:_0x261c86,type:_0x1d603b}=Ll(_0xfae823['name']);if('suggestion'===_0x261c86){_0x4af8c5['announce'](this['_getMarkerAnnouncementText'](_0x1d603b,'LEAVE'));break;}}for(const _0x5f2679 of _0x409acf){const {group:_0x413095,type:_0x451e22}=Ll(_0x5f2679['name']);if('suggestion'===_0x413095){_0x4af8c5['announce'](this['_getMarkerAnnouncementText'](_0x451e22,'ENTER',_0x12b1a8(Xm)));break;}}});}_processAttributeChanges(_0x2e5e0f){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4bee1b=this['editor'],_0x4a58ed=_0x4bee1b['model']['document']['differ']['getChanges']();if(0x0==_0x4a58ed['length'])return!0x1;const _0x529388=[],_0x32393e=_0x4a58ed['filter'](_0x1f2883=>'attribute'==_0x1f2883['type']),_0x18d098=_0x4a58ed['filter'](_0x32a0b6=>'insert'==_0x32a0b6['type']&&'$text'!=_0x32a0b6['name']),_0x36abf2=_0x4a58ed['filter'](_0xdf8c8c=>'remove'==_0xdf8c8c['type']&&'$text'!=_0xdf8c8c['name']);for(const _0x5f329b of _0x32393e)_0x529388['push']({'key':_0x5f329b['attributeKey'],'newValue':_0x5f329b['attributeNewValue'],'oldValue':_0x5f329b['attributeOldValue'],'range':sN(_0x5f329b['range'],_0x4bee1b['model'])});for(const _0x26d040 of _0x18d098){const _0x55dad5=_0x36abf2['find'](_0x2417ba=>_0x2417ba['position']['isEqual'](_0x26d040['position']));_0x55dad5&&_0x529388['push']({'key':XP,'newValue':_0x26d040['name'],'oldValue':_0x55dad5['name'],'range':_0x4bee1b['model']['createRangeOn'](_0x26d040['position']['nodeAfter'])});}return 0x0!=_0x529388['length']&&this['_reduceExistingSuggestions'](_0x2e5e0f,_0x529388);}_processAttributeSuggestions(_0x338449){let _0x2e7a9f=!0x1;const _0x4227f6=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4c3ece=>_0x4c3ece['data']['newRange']&&_0x4c3ece['name']['startsWith']('suggestion:attribute:'));for(const _0x5be230 of _0x4227f6){const {subType:_0x55290c,id:_0x445d1a}=Ll(_0x5be230['name']),_0x20db8a=_0x55290c['split']('|')[0x0];for(const _0x3753d4 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3753d4['id']!=_0x445d1a&&'attribute'==_0x3753d4['type']&&_0x3753d4['data']&&_0x3753d4['data']['key']==_0x20db8a&&_0x3753d4['getFirstRange']()['isIntersecting'](_0x5be230['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3753d4,_0x5be230['data']['newRange'],_0x338449),_0x2e7a9f=!0x0);}return _0x2e7a9f;}recordAttributeChanges(_0x35177d){this['_recordAttributeSuggestions']=!0x0,_0x35177d();}_reduceExistingSuggestions(_0x59c521,_0x1e9416){if(0x0==_0x1e9416['length'])return!0x1;let _0x2b47fa=!0x1;for(const _0x33866d of _0x1e9416){const _0x358474=this['_findSuggestions'](_0x33866d['range'],'attribute')['filter'](_0x3a21b5=>!_0x3a21b5['meta']['isNextTo'])['map'](_0xc2fc03=>_0xc2fc03['suggestion']),_0x289edb=Lm({'newValue':_0x33866d['newValue']});_0x358474['filter'](_0x2fb5d8=>{const [_0x4470d3,_0xac5ce4]=_0x2fb5d8['subType']['split']('|');return _0x4470d3==_0x33866d['key']&&_0xac5ce4!=_0x289edb;})['forEach'](_0x48fb50=>{this['_reduceSuggestionAttributeRange'](_0x48fb50,_0x33866d['range'],_0x59c521),_0x2b47fa=!0x0;});}return _0x2b47fa;}_reduceSuggestionAttributeRange(_0x40cc08,_0x16f1d6,_0xf2ab8a){const _0x305cfb=_0x40cc08['getFirstRange']()['getDifference'](_0x16f1d6);0x0!==_0x305cfb['length']?0x1!==_0x305cfb['length']?this['_breakSuggestionMarker'](_0x40cc08,_0x16f1d6['start'],_0x16f1d6['end']):this['_setSuggestionRange'](_0x40cc08,_0x305cfb[0x0]):_0xf2ab8a['removeMarker'](_0x40cc08['getFirstMarker']());}},WP=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x2d9fbc){this['_editor']=_0x2d9fbc,this['_model']=_0x2d9fbc['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x5de659,_0xacd36,_0x1b052d,_0xc1b318,_0x4256a9,_0x560cf1,_0x5a22ca){return new bR(this['_model'],{'type':_0x5de659,'subType':_0xacd36,'id':_0x1b052d,'originalSuggestionId':_0x5a22ca,'author':_0xc1b318,'creator':_0xc1b318,'attributes':_0x4256a9,'onAttributesChange':_0x560cf1,'onAccept':(..._0x2111ba)=>this['getSuggestionCallback'](_0x5de659,_0xacd36,'accept')(..._0x2111ba),'onDiscard':(..._0x4e3f5a)=>this['getSuggestionCallback'](_0x5de659,_0xacd36,'discard')(..._0x4e3f5a)});}registerCustomCallback(_0x1489e5,_0x467b34,_0x315171,_0x58fb81){const _0x7ad1fb=_0x1489e5+':'+_0x467b34+':'+_0x315171;this['_customCallbacks']['set'](_0x7ad1fb,_0x58fb81);}getSuggestionCallback(_0x200243,_0x23283c,_0x45570e){const _0xff33ea=_0x200243+':'+_0x23283c+':'+_0x45570e;return this['_customCallbacks']['get'](_0xff33ea)||this['_defaultCallbacks']['get'](_0x200243+':'+_0x45570e);}_registerDefaultCallbacks(){const _0x4caaef=()=>!0x1,_0x4cbfa8=_0x25308e=>{_0x25308e['sort']((_0x2ba1be,_0x9874ec)=>_0x2ba1be['start']['isBefore'](_0x9874ec['start'])?0x1:-0x1),this['_model']['change'](_0x197732=>{for(const _0x36860d of _0x25308e){let _0xc2b851;_0xc2b851=_0x36860d['end']['isAtEnd']&&_0x36860d['end']['parent']==_0x36860d['start']['nodeAfter']?_0x197732['createSelection'](_0x36860d['start']['nodeAfter'],'on'):_0x197732['createSelection'](_0x36860d),this['_model']['deleteContent'](_0xc2b851,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x37de89=(_0x2972d9,_0x47b801)=>{_0x47b801&&this['_model']['change'](_0x2c5bb4=>{const {commandName:_0x20c4a0,commandParams:_0x282be9=[]}=_0x47b801,_0x2b4b9c=_0x2972d9['map'](_0x392fba=>(YP(_0x392fba)&&(_0x392fba=this['_model']['createRange'](_0x392fba['end'])),_0x392fba))['filter'](_0x47637b=>'$graveyard'!==_0x47637b['root']['rootName']);if(_0x2b4b9c['length']<0x1)return;const _0x15e5b5=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x181949=>_0x2a6d0b['fromRange'](_0x181949));_0x2c5bb4['setSelection'](_0x2b4b9c);for(const _0x1da6b6 of this['_editor']['commands']['commands']())_0x1da6b6['refresh']();_0x282be9['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x20c4a0,..._0x282be9);const _0x446e57=_0x15e5b5['filter'](_0x536d3d=>'$graveyard'!=_0x536d3d['root']['rootName']);_0x446e57['length']>0x0&&_0x2c5bb4['setSelection'](_0x446e57);for(const _0x1d2a93 of _0x15e5b5)_0x1d2a93['detach']();});},_0x44b162=(_0x3932e5,_0x2e7b47)=>0x1==_0x3932e5['length']&&0x1==_0x2e7b47['length']&&_0x3932e5[0x0]['end']['isEqual'](_0x2e7b47[0x0]['start']),_0x113460=(_0x48d1c1,_0x48a5d6,_0x5802a1,_0x15c016)=>rN(_0x48d1c1,_0x48a5d6,_0x5802a1,_0x15c016)?[_0x48d1c1,_0x48a5d6]:rN(_0x48a5d6,_0x48d1c1,_0x15c016,_0x5802a1)?[_0x48a5d6,_0x48d1c1]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4caaef),this['_defaultCallbacks']['set']('insertion:discard',_0x4cbfa8),this['_defaultCallbacks']['set']('insertion:join',_0x44b162),this['_defaultCallbacks']['set']('insertion:chain',_0x113460),this['_defaultCallbacks']['set']('deletion:accept',_0x4cbfa8),this['_defaultCallbacks']['set']('deletion:discard',_0x4caaef),this['_defaultCallbacks']['set']('deletion:join',_0x44b162),this['_defaultCallbacks']['set']('deletion:chain',_0x113460),this['_defaultCallbacks']['set']('formatInline:accept',_0x37de89),this['_defaultCallbacks']['set']('formatInline:discard',_0x4caaef),this['_defaultCallbacks']['set']('formatInline:join',_0x44b162),this['_defaultCallbacks']['set']('formatInline:chain',_0x4caaef),this['_defaultCallbacks']['set']('formatBlock:accept',_0x37de89),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4caaef),this['_defaultCallbacks']['set']('formatBlock:join',_0x44b162),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4caaef),this['_defaultCallbacks']['set']('attribute:accept',_0x4caaef),this['_defaultCallbacks']['set']('attribute:discard',(_0x2a85af,_0x3dfca2)=>{if(!_0x3dfca2)return;const _0x179ed3=this['_editor']['plugins']['get'](hh);this['_model']['change'](_0x19a203=>{if('$elementName'==_0x3dfca2['key'])for(const _0x16c732 of _0x2a85af){const _0x3dc803=_0x16c732['start']['nodeAfter'],_0x2be216=_0x3dfca2['oldValue'];_0x19a203['rename'](_0x3dc803,_0x2be216);}else{if(_0x179ed3['isBlockAttribute'](_0x3dfca2['key'])){for(const _0x13e3d8 of _0x2a85af)void 0x0!==_0x3dfca2['oldValue']?_0x19a203['setAttribute'](_0x3dfca2['key'],_0x3dfca2['oldValue'],_0x13e3d8['start']['nodeAfter']):_0x19a203['removeAttribute'](_0x3dfca2['key'],_0x13e3d8['start']['nodeAfter']);}else{for(const _0xe7c0de of _0x2a85af)_0x3dfca2['oldValue']?_0x19a203['setAttribute'](_0x3dfca2['key'],_0x3dfca2['oldValue'],_0xe7c0de):_0x19a203['removeAttribute'](_0x3dfca2['key'],_0xe7c0de);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x44b162);}};function zP(_0x3e6a7d,_0x42d403,_0x46c126){for(const _0x2c41e1 of _0x42d403['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2c41e1['root']==_0x2c41e1)return!0x1;if(!_0x46c126['containsItem'](_0x2c41e1))return!0x1;if(_0x3e6a7d['isObject'](_0x2c41e1)||_0x3e6a7d['isLimit'](_0x2c41e1))return!0x0;}return!0x1;}function YP(_0x413983){return _0x413983['end']['parent']==_0x413983['start']['nodeAfter']&&_0x413983['end']['isAtStart'];}function KP(_0x255be3,_0x22ca3f,_0x88fb86,_0x2abb1f){const _0x151bbc=_0x3bb6f7=>!_0x3bb6f7['item']['is']('$textProxy')&&!_0x2abb1f['isObject'](_0x3bb6f7['item']),_0x8c9ebe=_0x255be3['start']['getLastMatchingPosition'](_0x151bbc),_0x1d7589=_0x255be3['end']['getLastMatchingPosition'](_0x151bbc,{'direction':'backward'});return(!_0x255be3['start']['isEqual'](_0x8c9ebe)||!_0x255be3['end']['isEqual'](_0x1d7589))&&(_0x8c9ebe['isBefore'](_0x1d7589)?_0x88fb86['updateMarker'](_0x22ca3f,{'range':_0x88fb86['createRange'](_0x8c9ebe,_0x1d7589)}):_0x88fb86['removeMarker'](_0x22ca3f),!0x0);}function JP(_0xb0399){return Lm(_0xb0399);}function tN(_0x322e5f){const _0x5b1311=_0x322e5f['start']['nodeAfter'];return _0x5b1311&&_0x5b1311['is']('element');}function eN(_0x3d01d4){return YP(_0x3d01d4)||function(_0x161ff3){return _0x161ff3['start']['parent']==_0x161ff3['end']['nodeBefore']&&_0x161ff3['start']['isAtEnd'];}(_0x3d01d4);}function iN(_0x4cf3cb,_0x180779){try{const _0x55c9d1=_0x4cf3cb['getRange']();for(const _0x3c829f of _0x180779)if(_0x4cf3cb!==_0x3c829f&&_0x55c9d1&&_0x55c9d1['isIntersecting'](_0x3c829f['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sN(_0x24ebde,_0x28319d){return null==_0x24ebde['end']['nodeBefore']&&_0x24ebde['end']['parent']==_0x24ebde['start']['nodeAfter']?nN(_0x24ebde['start']['nodeAfter'],_0x28319d):_0x24ebde;}function nN(_0x27719e,_0x31f17a){const _0x3c2ed0=_0x31f17a['schema']['isObject'](_0x27719e)||_0x31f17a['schema']['isSelectable'](_0x27719e);return _0x31f17a['createRange'](_0x31f17a['createPositionAt'](_0x27719e,'before'),_0x3c2ed0?_0x31f17a['createPositionAfter'](_0x27719e):_0x31f17a['createPositionAt'](_0x27719e,'end'));}function rN(_0x73199d,_0xb721f8,_0x369076,_0x2f70b4){return!!oN(_0x73199d,_0xb721f8)&&_0x369076['end']['isEqual'](_0x2f70b4['start']);}function oN(_0x43680a,_0x3f4398){if(!_0x43680a['_isDataLoaded']||!_0x3f4398['_isDataLoaded'])return!0x1;const _0xbf0d68=new Set(Object['keys'](_0x43680a['attributes'])),_0x147199=new Set(Object['keys'](_0x3f4398['attributes']));if(_0xbf0d68['delete']('groupId'),_0x147199['delete']('groupId'),0x0==_0xbf0d68['size']&&0x0==_0x147199['size'])return!0x0;if(_0xbf0d68['size']!=_0x147199['size'])return!0x1;const _0x34283e={..._0x43680a['attributes']},_0x2c8ec9={..._0x3f4398['attributes']};return delete _0x34283e['groupId'],delete _0x2c8ec9['groupId'],JSON['stringify'](_0x34283e)==JSON['stringify'](_0x2c8ec9);}function aN(_0x1029bf,_0x4bcecf){const _0x1d8ba0=cN(_0x1029bf['attributes']),_0x2f5eca=cN(_0x4bcecf);if(!_0x1029bf['_isDataLoaded'])return!0x1;if(!Kr(_0x1d8ba0['@ai'],_0x2f5eca['@ai']))return!0x1;for(const _0x4b1eb7 of Object['keys'](_0x2f5eca))if(!Kr(_0x1d8ba0[_0x4b1eb7],_0x2f5eca[_0x4b1eb7]))return!0x1;return!0x0;}function cN(_0x534303){const _0x44ed86=Object['assign']({},_0x534303);return delete _0x44ed86['skipNestingCheck'],delete _0x44ed86['tablePasteChainId'],_0x44ed86;}function lN(_0x532959){return _0x532959['split']('|')[0x0];}const hN=/* #__PURE__ -- @preserve */
_0x356c1e();var uN=class extends hN{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x3fd85e,_0x5b26d9,_0x311638,_0x138816){super(),this['model']=_0x5b26d9,this['view']=_0x311638,this['commentThreadController']=_0x138816,this['_editor']=_0x3fd85e,this['_acceptCommand']=_0x3fd85e['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3fd85e['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x195fb8,_0x31a7e3)=>_0x195fb8||_0x31a7e3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x148c90=>_0x148c90&&this['_editor']['model']['canEditAt'](_0x5b26d9['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x54ab9d=>_0x54ab9d&&this['_editor']['model']['canEditAt'](_0x5b26d9['getRanges']())),this['_pendingAction']=null,_0x311638['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x311638,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x311638,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x311638,'change:isDirty',()=>{_0x311638['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}acceptSuggestion(){this['_acceptCommand']['execute'](this['model']['id']);}discardSuggestion(){this['_discardCommand']['execute'](this['model']['id']);}destroy(){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}_setPendingAction(){const _0x46b785=yR(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x46b785);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},dN=class extends _0x2f6e1a{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x10a87a,_0x13a670,_0x1351e1,_0x32938f){super(_0x10a87a),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new Rl(_0x10a87a,yR(_0x10a87a,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x13a670['authoredAt']),this['bind']('authoredAt')['to'](_0x13a670),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x13a670,'authoredAt',this,'descriptionParts',(_0x2415c3,_0x2f089c,_0x5412af)=>{const _0x3e5a2f=_0x5412af['map'](_0x8de912=>hR(_0x8de912['content']))['join']('.\x20')+'.',_0x2663d8=_0x13a670['aiSource']&&'author'===_0x32938f['showAISource']?_0x32938f['aiAuthor']['name']:_0x13a670['author']['name'],_0x1f4d96=yR(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2415c3-0x1,_0x2663d8,_0x2f089c?_0x32938f['formatDateTime'](_0x2f089c):'',new DOMParser()['parseFromString'](_0x3e5a2f,'text/html')['body']['textContent']]);return _0x13a670['aiSource']&&'pill'===_0x32938f['showAISource']?_0x1f4d96+'\x20'+yR(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x1f4d96;}),this['focusables']=new _0x18940b(),this['focusTracker']=new _0x1c95ab(),this['keystrokes']=new _0xa8275a(),this['focusCycler']=new _0x273f88({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2472cc=>_0x2472cc['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x13a670,this['_localUser']=_0x1351e1,this['_config']=_0x32938f,_0x32938f['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),qm(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0xf7760e}=this['_config'];this['commentsListView']=new _0xf7760e(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x5bca47=>_0x5bca47+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1c1e33,_0x90486a)=>_0x1c1e33||!!_0x90486a);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x1d86f8}=this['_config'],_0x31d034=new _0x1d86f8(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x7e61c7=_0x31d034['commentInputView'];return _0x31d034['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x7e61c7,'value',(_0x484d23,_0x44ceed,_0x28d76d)=>!!_0x28d76d||_0x484d23&&!_0x44ceed),_0x7e61c7['on']('submit',(_0x4e940d,_0x59ac4a)=>{this['fire']('addComment',_0x59ac4a),_0x7e61c7['editor']['setData']('');}),_0x7e61c7['on']('cancel',()=>this['focus']()),_0x7e61c7['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x31d034;}},fN=class extends dN{suggestionView;_descriptionElement;constructor(_0x20c602,_0x31e9fc,_0x9078ef,_0x15dda0){super(_0x20c602,_0x31e9fc,_0x9078ef,_0x15dda0),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x8410db=>_0x8410db&&_0x8410db[0x0]?_0x8410db[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xa40153,_0x266aa6)=>{let _0x3dc91c='';for(const _0xbe19e6 of _0xa40153)_0x3dc91c+='<p>'+hR(_0xbe19e6['content'],_0xbe19e6['color'])+'</p>';return _0x266aa6?_0x3dc91c:Rm(_0x3dc91c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x15dda0['SuggestionView'](_0x20c602,_0x31e9fc,{'formatDateTime':_0x15dda0['formatDateTime'],'showAISource':_0x15dda0['showAISource'],'aiAuthor':_0x15dda0['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}getTemplate(){const _0x183299=this['bindTemplate'],_0x73c7a3=[this['suggestionView']];return this['commentsListView']&&_0x73c7a3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x73c7a3['push'](this['commentThreadInputView']),_0x73c7a3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x183299['if']('isActive','ck-suggestion-wrapper--active'),_0x183299['to']('type',_0x24ac35=>'ck-suggestion-'+_0x24ac35),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x183299['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x73c7a3};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}},mN=class extends _0x2f6e1a{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x52c1e2,_0x58faec,_0x4b7d94){super(_0x52c1e2),this['_model']=_0x58faec,this['_config']=_0x4b7d94,this['set']('description',''),this['bind']('authoredAt')['to'](_0x58faec),this['acceptButton']=this['_createButton'](yR(_0x52c1e2,'Accept\x20suggestion'),_0x2659e3,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](yR(_0x52c1e2,'Discard\x20suggestion'),_0x2f7d46,'ck-suggestion--discard','discardSuggestion','sw');const _0x428913=!!_0x58faec['aiSource']&&'author'===_0x4b7d94['showAISource'],_0x2e33be=_0x428913?this['_createAIUser'](_0x4b7d94['aiAuthor']):_0x58faec['author'],_0x57f4ff=_0x428913&&!_0x4b7d94['aiAuthor']['avatar']?_0x405806:void 0x0;this['userView']=new xl(_0x52c1e2,_0x2e33be,this['getUserViewNotificationText'](),_0x57f4ff),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x18940b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1c95ab(),this['keystrokes']=new _0xa8275a(),this['focusCycler']=new _0x273f88({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3830db=>_0x3830db['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x44bab0=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x44bab0['innerHTML']=this['description'],this['on']('change:description',(_0x579d09,_0x555e72,_0x11d1f5)=>{_0x44bab0['innerHTML']=_0x11d1f5;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x44995c=this['bindTemplate'],_0x188ee2=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x44995c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x44995c['to']('authoredAt',_0x679685=>this['_config']['formatDateTime'](_0x679685))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x188ee2['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x398b64=new Cl(this['locale']);_0x398b64['set']({'icon':_0x48f9dd,'label':yR(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':yR(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x188ee2['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x398b64]});}return{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x188ee2}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?yR(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):yR(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?yR(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):yR(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x24167){return new Sl({'id':'ck-ai-author','name':_0x24167['name'],'avatar':_0x24167['avatar'],'color':new kl(0x0)});}_createButton(_0x5dde47,_0x27d19d,_0x2ed754,_0x594a73,_0x5889ec){const _0x2027eb=new Pl(this['locale']);return _0x2027eb['set']({'label':_0x5dde47,'icon':_0x27d19d,'tooltip':!0x0,'tooltipPosition':_0x5889ec}),_0x2027eb['extendTemplate']({'attributes':{'class':_0x2ed754}}),_0x2027eb['on']('execute',()=>{this['fire'](_0x594a73,this['_model']['id']);}),_0x2027eb;}_setupKeyboardNavigation(){const _0x3ef7e9=this['element'];this['keystrokes']['listenTo'](_0x3ef7e9);for(const _0x1c16e7 of this['focusables'])this['focusTracker']['add'](_0x1c16e7['element']),this['keystrokes']['listenTo'](_0x1c16e7['element']);this['keystrokes']['set']('enter',(_0x320847,_0x31b497)=>{_0x3ef7e9===_0x320847['target']&&(this['focusCycler']['focusFirst'](),_0x31b497());}),this['keystrokes']['set']('esc',(_0x141efc,_0x37a1de)=>{_0x3ef7e9!==_0x141efc['target']&&(this['focus'](),_0x37a1de());});}},pN=class extends _0x11fe30{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[qP,Al,e_,zv,o_];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4690a5){super(_0x4690a5),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x44a576=this['editor']['config'];_0x44a576['define']('trackChanges.SuggestionThreadView',fN),_0x44a576['define']('trackChanges.SuggestionView',mN),_0x44a576['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x44a576['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x302579,_0x3dea9f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1a54f2,_0x212b82]of this['_handleControllerBuffer']){const _0x42ccad=this['_suggestionToController']['has'](_0x1a54f2);_0x42ccad||_0x212b82?_0x42ccad&&_0x212b82&&this['_destroyController'](_0x1a54f2):this['_initializeController'](_0x1a54f2);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](o_)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x302579,_0x3dea9f);}init(){const _0x209e2e=this['editor'],_0x281ce0=_0x209e2e['plugins']['get'](qP),_0x468252=_0x209e2e['plugins']['get'](zv),_0x15f269=_0x209e2e['plugins']['get'](o_),_0x9509c3=_0x209e2e['plugins']['get'](e_);this['_addUIComponentsToFactory'](),_0x15f269['addSourceCollector'](()=>{const _0x32459d=[];for(const [_0x56d32c,_0x493542]of Array['from'](this['_suggestionToController'])){const _0x3456fb=_0x56d32c['getAllAdjacentSuggestions'](),_0x4fa304=[];for(const _0x2c8fde of _0x3456fb){if(!_0x2c8fde['isInContent'])continue;if(_0x2c8fde['isMultiRange']){_0x4fa304['push'](..._0x2c8fde['getRanges']());continue;}const _0x309ac9=_0x2c8fde['getFirstRange']();if(_0x4fa304['length']>0x0){const _0x353fce=_0x4fa304[0x0]['getJoined'](_0x309ac9);if(_0x353fce){_0x4fa304[0x0]=_0x353fce;continue;}}_0x4fa304['push'](_0x309ac9);}_0x32459d['push']([_0x493542['view'],_0x4fa304]);}return _0x32459d;}),this['listenTo'](_0x281ce0,'suggestionLoaded',(_0x18e431,_0x25e573)=>{this['listenTo'](_0x25e573,'change:previous',(_0x3f64d5,_0x4336d7,_0x20ca36,_0x1c9f0b)=>{_0x25e573['isInContent']&&(null==_0x20ca36?(this['_updateController'](_0x1c9f0b['head']),this['_handleSuggestionControllerDelayed'](_0x25e573,!0x1)):(this['_updateController'](_0x20ca36['head']),null==_0x1c9f0b&&this['_handleSuggestionControllerDelayed'](_0x25e573,!0x0)));}),null!==_0x25e573['previous']?this['_updateController'](_0x25e573['head']):this['_handleSuggestionControllerDelayed'](_0x25e573,!0x1);}),this['listenTo'](_0x281ce0,'suggestionUnloaded',(_0x48c26d,_0x5751c2,_0x278d92)=>{this['stopListening'](_0x5751c2,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5751c2),this['_suggestionToController']['has'](_0x5751c2)&&this['_destroyController'](_0x5751c2),_0x278d92&&this['_updateController'](_0x278d92['head']);}),this['listenTo'](_0x281ce0,'suggestionChanged',(_0xba4d8f,_0x2d972a)=>{this['_updateController'](_0x2d972a);}),this['listenTo'](_0x468252,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x9509c3,'addComment',(_0x2e88b1,{threadId:_0x33708c,isFromAdapter:_0x1a7f21})=>{if(_0x1a7f21||!_0x281ce0['hasSuggestion'](_0x33708c))return;const _0x34926d=_0x281ce0['getSuggestion'](_0x33708c);this['_suggestionToController']['get'](_0x34926d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1a581e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1783cc;for(const _0x1dae5a in _0x1a581e){const _0x2dec9e=_0x1dae5a,_0x18e3d0=_0x1a581e[_0x2dec9e];if('trackChangesLicenseKeyValid'==_0x18e3d0||'trackChangesLicenseKeyInvalid'==_0x18e3d0||'trackChangesLicenseKeyExpired'==_0x18e3d0||'trackChangesLicenseKeyDomainLimit'==_0x18e3d0||'trackChangesLicenseKeyNotAllowed'==_0x18e3d0||'trackChangesLicenseKeyEvaluationLimit'==_0x18e3d0||'trackChangesLicenseKeyUsageLimit'==_0x18e3d0){delete _0x1a581e[_0x2dec9e],_0x1783cc=_0x18e3d0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1783cc&&_0x1a581e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1783cc&&_0x1a581e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1783cc&&_0x1a581e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1783cc&&_0x1a581e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1783cc&&_0x1a581e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1783cc&&_0x1a581e['_showLicenseError']('usageLimit');},0x3e8);}getAnnotationForSuggestion(_0x4ca788){const _0x3539a1=this['_suggestionToController']['get'](_0x4ca788);return _0x3539a1&&this['editor']['plugins']['get'](zv)['getByInnerView'](_0x3539a1['view'])||null;}getSuggestionForAnnotation(_0x193224){const _0x2cf0b6=this['_viewToController']['get'](_0x193224['innerView']);return _0x2cf0b6?_0x2cf0b6['model']:null;}_refreshActiveMarkers(){const _0x4e02d9=this['editor']['plugins']['get'](zv),_0x47ce5c=this['editor']['plugins']['get'](qP),_0xa55aa7=Array['from'](_0x4e02d9['activeAnnotations'],_0x3917ce=>_0x3917ce['innerView'])['filter'](_0x35d38a=>this['_viewToController']['has'](_0x35d38a)),_0x8cffde=[];for(const _0x2aac17 of _0xa55aa7){const _0x345aa0=this['_viewToController']['get'](_0x2aac17)['model']['getAllAdjacentSuggestions']();_0x8cffde['push'](..._0x345aa0['reduce']((_0x4d8b41,_0x43b545)=>[..._0x4d8b41,..._0x43b545['getMarkerNames']()],[]));}_0x47ce5c['activeMarkers']=_0x8cffde;}_addUIComponentsToFactory(){const _0xb65361=this['editor'],_0x3ec754=_0xb65361['locale'],_0x1d091b=yR(_0x3ec754,'Track\x20changes'),_0x439523=new _0x2186b6([{'type':'switchbutton','model':new ts({'withText':!0x0,'isToggleable':!0x0,'label':_0x1d091b,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new ts({'withText':!0x0,'label':yR(_0x3ec754,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new ts({'withText':!0x0,'label':yR(_0x3ec754,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new ts({'withText':!0x0,'label':yR(_0x3ec754,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new ts({'withText':!0x0,'label':yR(_0x3ec754,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xb65361['plugins']['has']('TrackChangesPreview')&&_0x439523['addMany']([{'type':'separator'},{'type':'button','model':new ts({'withText':!0x0,'label':yR(_0x3ec754,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x36b65d of _0x439523)if(gN(_0x36b65d)){const _0x4b57cd=_0xb65361['commands']['get'](_0x36b65d['model']['commandName']);_0x36b65d['model']['bind']('isOn','isEnabled')['to'](_0x4b57cd,'value','isEnabled');}_0xb65361['ui']['componentFactory']['add']('trackChanges',_0x473e4f=>this['_createToolbarButton'](_0x473e4f,_0x439523,_0x1d091b)),_0xb65361['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3ed21b=>this['_createMenuBarMenu'](_0x3ed21b,_0x439523,_0x1d091b));}_createToolbarButton(_0x5d1b2f,_0x359733,_0xdb36ec){const _0x5082f0=_0x46490d(_0x5d1b2f,_0xdb04e7),_0x7d0b00=this['editor']['commands']['get']('trackChanges');_0x5082f0['buttonView']['set']({'tooltip':_0xdb36ec,'label':_0xdb36ec,'icon':_0x529299}),_0x5082f0['buttonView']['bind']('isOn')['to'](_0x7d0b00,'value'),_0x5082f0['buttonView']['on']('execute',()=>{_0x7d0b00['execute'](),this['editor']['editing']['view']['focus']();}),_0x55b796(_0x5082f0,_0x359733,{'role':'menu'});const _0x10eea1=[];for(const _0x28cf82 of _0x359733)gN(_0x28cf82)&&_0x10eea1['push'](this['editor']['commands']['get'](_0x28cf82['model']['commandName']));const _0x166336=_0x5082f0['buttonView'];return _0x166336['actionView']['unbind']('isEnabled'),_0x166336['arrowView']['unbind']('isEnabled'),_0x166336['actionView']['bind']('isEnabled')['to'](_0x7d0b00,'isEnabled'),_0x166336['arrowView']['bind']('isEnabled')['toMany'](_0x10eea1,'isEnabled',(..._0xb55483)=>_0xb55483['some'](_0x3dcb69=>_0x3dcb69)),_0x5082f0['on']('execute',_0x587988=>{this['editor']['execute'](_0x587988['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5082f0;}_createMenuBarMenu(_0x3b8a69,_0x215bac,_0x5572f4){const _0x43459f=new _0xf2980e(_0x3b8a69),_0x274d71=this['editor']['commands']['get']('trackChanges');_0x43459f['buttonView']['set']({'label':_0x5572f4,'icon':_0x529299});const _0x3b9cfe=new _0x32d381(_0x3b8a69);for(const _0x176a62 of _0x215bac){if('separator'==_0x176a62['type']){_0x3b9cfe['items']['add'](new _0x4f9da1(_0x3b8a69));continue;}const _0x70bde8=new _0x1bf87e(_0x3b8a69,_0x43459f),_0x5c3dbf=new _0x589436(_0x3b8a69),_0x21f0ae=_0x176a62['model'];_0x5c3dbf['bind'](...Object['keys'](_0x21f0ae))['to'](_0x21f0ae),_0x5c3dbf['delegate']('execute')['to'](_0x43459f),_0x5c3dbf['on']('execute',()=>{this['editor']['execute'](_0x21f0ae['commandName']),this['editor']['editing']['view']['focus']();}),_0x70bde8['children']['add'](_0x5c3dbf),_0x3b9cfe['items']['add'](_0x70bde8);}return _0x43459f['bind']('isEnabled')['to'](_0x274d71,'isEnabled'),_0x43459f['panelView']['children']['add'](_0x3b9cfe),_0x43459f;}_initializeController(_0xa8521e){const _0x7b9724=this['editor'],_0x5388f9=_0x7b9724['config'],_0x34cf50=_0x7b9724['plugins']['get'](zv),_0x2752fc=_0x7b9724['plugins']['get'](e_),_0x52c7ca=_0x7b9724['plugins']['get'](o_),_0x3547d3=_0x7b9724['plugins']['get'](Al)['me'],_0x3eb1e1=_0x5388f9['get']('trackChanges')['SuggestionThreadView'],_0x1247f5=_0x5388f9['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1fc3ee,CommentThreadInputView:_0x1e8a7b}=_0x7b9724['plugins']['get']('CommentsUI');let _0x560bcd,_0x521ab6,_0x7d732e;this['_annotationViews']['has'](_0xa8521e['id'])?(_0x521ab6=this['_annotationViews']['get'](_0xa8521e['id']),_0x560bcd=_0x521ab6['mainView']):(_0x560bcd=new _0x3eb1e1(_0x7b9724['locale'],_0xa8521e,_0x3547d3,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5388f9['get']('comments.editorConfig'),'licenseKey':_0x5388f9['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5388f9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5388f9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5388f9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':km(_0x5388f9['get']('locale'),_0x7b9724['locale']),'CommentView':_0x5388f9['get']('comments')['CommentView'],'CommentsListView':_0x1fc3ee,'CommentThreadInputView':_0x1e8a7b,'SuggestionView':_0x1247f5,'showAISource':_0x5388f9['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x5388f9['get']('trackChanges.aiAuthor'),'name':_0x5388f9['get']('trackChanges.aiAuthor')?.['name']||yR(_0x7b9724['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x560bcd['suggestionView']['acceptButton']['on']('execute',()=>{_0x7b9724['editing']['view']['focus']();}),_0x560bcd['suggestionView']['discardButton']['on']('execute',()=>{_0x7b9724['editing']['view']['focus']();}),_0x521ab6=_0x34cf50['createAnnotationView'](this['editor']['locale'],_0x560bcd),_0x521ab6['bind']('isDirty')['to'](_0x560bcd,'isDirty'),_0x521ab6['bind']('length')['to'](_0x560bcd),_0x521ab6['bind']('type')['to'](_0x560bcd,'type',_0x415281=>'suggestion-'+_0x415281),_0x560bcd['on']('escape',()=>{_0x7d732e['fire']('escape');}),this['_annotationViews']['set'](_0xa8521e['id'],_0x521ab6));const _0x4425e7=_0x2752fc['createCommentThreadController'](_0xa8521e['commentThread'],_0x560bcd),_0x48169b=new uN(_0x7b9724,_0xa8521e,_0x560bcd,_0x4425e7),_0x118000=_0xa8521e['getAllAdjacentSuggestions']()['filter'](_0x2a0402=>_0x2a0402['isInContent']);_0x560bcd['descriptionParts']=_0x7b9724['plugins']['get'](qP)['descriptionFactory']['getDescriptions'](_0x118000),this['_suggestionToController']['set'](_0xa8521e,_0x48169b),this['_viewToController']['set'](_0x560bcd,_0x48169b);const _0x50806c=()=>{const _0x290b69=[],_0x279dc3=_0xa8521e['getAllAdjacentSuggestions']()['filter'](_0x2cf6fe=>_0x2cf6fe['isInContent']);for(const _0x53d741 of _0x279dc3)_0x290b69['push'](..._0x53d741['getMarkers']());return Cm(_0x7b9724['editing'],_0x290b69);};_0x7d732e=_0x34cf50['createAnnotation']({'view':_0x521ab6,'target':_0x50806c,'type':()=>'suggestion-'+_0x48169b['view']['type'],'isVisible':!!_0x50806c()}),_0x2752fc['_bindAnnotationToEditors'](_0x560bcd,_0x7d732e),_0x34cf50['add'](_0x7d732e),_0x52c7ca['registerAnnotation'](_0x7d732e);}_destroyController(_0xeefd23){const _0x852606=this['editor']['plugins']['get'](e_),_0x4b1a8a=this['editor']['plugins']['get'](zv),_0x1e0607=this['_suggestionToController']['get'](_0xeefd23),_0x750de3=_0x1e0607['view'],_0x5bbf61=_0x4b1a8a['getByInnerView'](_0x750de3);_0x852606['_unbindEditors'](_0x750de3),_0x5bbf61&&_0x4b1a8a['remove'](_0x5bbf61),this['_suggestionToController']['delete'](_0xeefd23),this['_viewToController']['delete'](_0x750de3),_0x1e0607['destroy']();}_updateController(_0x1e4b48){if(!_0x1e4b48['isInContent']||!this['_suggestionToController']['has'](_0x1e4b48))return;const _0x30d8fb=this['editor']['plugins']['get'](qP),_0x408e39=this['_suggestionToController']['get'](_0x1e4b48),_0x33df68=_0x1e4b48['getAllAdjacentSuggestions']();_0x408e39['view']['descriptionParts']=_0x30d8fb['descriptionFactory']['getDescriptions'](_0x33df68);}destroy(){for(const _0x50d55d of this['_suggestionToController']['keys']())this['_destroyController'](_0x50d55d);for(const _0x585ae5 of this['_annotationViews']['values']())_0x585ae5['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function gN(_0x323c15){return'model'in _0x323c15;}var ON=class extends _0x11fe30{static get requires(){return[qP,pN,M_];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x3bbefe){this['editor']['plugins']['get'](qP)['adapter']=_0x3bbefe;}get adapter(){return this['editor']['plugins']['get'](qP)['adapter'];}addSuggestion(_0x446cba){return this['editor']['plugins']['get'](qP)['addSuggestionData'](_0x446cba);}getSuggestions({skipNotAttached:_0x1dff0f=!0x1,toJSON:_0xf127e5=!0x1}={}){return this['editor']['plugins']['get'](qP)['getSuggestions']({'skipNotAttached':_0x1dff0f,'toJSON':_0xf127e5});}getSuggestion(_0x2bf532){return this['editor']['plugins']['get'](qP)['getSuggestion'](_0x2bf532);}};const wN=['Pagination'];var bN=class extends _0x11fe30{static get requires(){return[qP];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x5a8e75=this['editor'];if(_0x5a8e75['config']['define']('trackChangesData.editorCreator',_0x158dad=>{const _0x3fe948=_0x5a8e75['model']['document']['getRootNames']()['reduce']((_0x1dfd65,_0x48cfa3)=>(_0x1dfd65[_0x48cfa3]='',_0x1dfd65),{});return _0x5a8e75['constructor']['create'](_0x3fe948,_0x158dad);}),'function'!=typeof _0x5a8e75['config']['get']('trackChangesData')['editorCreator'])throw new _0x4242d4('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x5818c6){return _N(this['editor'],!0x0,_0x5818c6);}getDataWithDiscardedSuggestions(_0x30b3d8){return _N(this['editor'],!0x1,_0x30b3d8);}},yN=class extends _0x11fe30{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x580452){super(_0x580452),this['result']='end',_0x580452['editing']['view']['_overlayModeHint']='auto',_0x580452['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}init(){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}};function vN(_0x2a843d){return void 0x0!==_0x2a843d['getRootsAttributes'];}async function _N(_0x497f29,_0x16e215,_0x3f1a74){const _0x3e65e8=Zm(_0x497f29,wN);if(_0x3e65e8['plugins']['push'](qP,yN),vN(_0x497f29)){_0x3e65e8['roots']=Object['create'](null);for(const _0x27291f of _0x497f29['model']['document']['getRootNames']())_0x3e65e8['roots'][_0x27291f]={'modelAttributes':_0x497f29['getRootAttributes'](_0x27291f)};}const _0x171f07=document['createDocumentFragment'](),_0x301149=_0x497f29['config']['get']('trackChangesData')['editorCreator'],_0x5b9103=await _0x301149(_0x3e65e8,()=>function(_0x1cea0a){const _0x50659b=document['createElement']('div');return _0x1cea0a['appendChild'](_0x50659b),_0x50659b;}(_0x171f07));!function(_0x131be3,_0xb65c3b){const _0x570fab=_0x131be3['model']['document']['getRootNames']()['reduce']((_0x119d63,_0x32160a)=>(_0x119d63[_0x32160a]=_0x131be3['data']['get']({'rootName':_0x32160a}),_0x119d63),{}),_0x393bd4=_0x131be3['plugins']['get']('Users')['users']['map'](_0x253633=>({'id':_0x253633['id'],'name':_0x253633['name']})),_0x2918f0=_0x131be3['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x45435d=_0x131be3['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4f62f4=_0xb65c3b['plugins']['get']('Users'),_0x5268a2=_0xb65c3b['plugins']['get']('TrackChangesEditing'),_0x415066=_0xb65c3b['plugins']['get']('CommentsRepository');for(const _0x4208e0 of _0x415066['getCommentThreads']())_0x4208e0['remove']();for(const _0x694de9 of _0x393bd4)_0x4f62f4['getUser'](_0x694de9['id'])||_0x4f62f4['addUser'](_0x694de9);_0x4f62f4['me']||_0x4f62f4['useAnonymousUser']();for(const _0xbad295 of _0x45435d)_0x415066['addCommentThread'](_0xbad295);for(const _0x61db60 of _0x2918f0)_0x5268a2['addSuggestionData'](_0x61db60);_0xb65c3b['data']['set'](_0x570fab);}(_0x497f29,_0x5b9103),_0x5b9103['execute'](_0x16e215?'acceptAllSuggestions':'discardAllSuggestions');const _0x144a94=vN(_0x5b9103)?_0x5b9103['getFullData'](_0x3f1a74):_0x5b9103['data']['get'](_0x3f1a74);return await _0x5b9103['destroy'](),_0x144a94;}var EN=class extends _0x2f6e1a{options;constructor(_0x1d46c2,_0x29f993){super(_0x1d46c2),this['options']=_0x29f993,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}setPreviewData(_0x281113,_0xcb8b5d){if(!this['element'])return;const _0x44da4b=[];for(const [_0x134216,_0x5e828d]of _0x281113){const _0x5386a0=document['createElement']('div');_0x5386a0['setAttribute']('data-ck-root-name',_0x134216),_0x5386a0['className']=_0x5e828d['classes']+'\x20ck-track-changes-preview__root-container',_0x5386a0['innerHTML']=_0x5e828d['content'],_0x44da4b['push'](_0x5386a0);}_0xcb8b5d(this['element'],_0x44da4b),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},TN=class extends _0x44d8e7{constructor(_0x1ec7e0){super(_0x1ec7e0),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x46fa8a=this['editor'],_0x21f579=_0x46fa8a['locale'],_0x200573=_0x46fa8a['plugins']['get']('Dialog');let _0x57a3e5;const _0x46271a=function(_0x2c5f12){const _0x378539={};if('editables'in _0x2c5f12['ui']['view']){for(const [_0x243f68,_0x14412e]of Object['entries'](_0x2c5f12['ui']['view']['editables']))_0x378539[_0x243f68]=_0x14412e['element'];}else _0x378539[_0x2c5f12['model']['document']['getRootNames']()[0x0]]=_0x2c5f12['ui']['view']['editable']['element'];return _0x378539;}(_0x46fa8a),_0x92c37d=function(_0xd0763){let _0x35f041=0x0;for(const _0x24cc51 of Object['values'](_0xd0763))_0x35f041=Math['max'](_0x35f041,_0x24cc51['getBoundingClientRect']()['width']);let _0x6ed464=0x0;for(const _0x35bd3b of Object['values'](_0xd0763))_0x6ed464+=_0x35bd3b['getBoundingClientRect']()['height'];const _0x134501=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x35f041,'height':Math['min'](_0x6ed464,_0x134501)};}(_0x46271a);_0x200573['show']({'id':'finalContentPreview','title':yR(_0x21f579,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new EN(_0x21f579,{'dialogRects':_0x92c37d}),'onHide':()=>{_0x57a3e5['detachFromDom']();},'onShow':()=>{_0x46fa8a['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4b05ed=>{const _0x24a7b6=this['_standarizeRootsData'](_0x4b05ed,_0x46fa8a,_0x46271a);_0x200573['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x24a7b6,_0x46fa8a['config']['get']('trackChanges.preview.renderFunction'));}),_0x57a3e5=new _0x49bad4(_0x21f579,[_0x200573['view']]),_0x57a3e5['attachToDom'](),_0x57a3e5['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x46fa8a['once']('destroy',()=>{_0x57a3e5['detachFromDom']();});const _0x212623=_0x200573['view']['headerView']['class'];_0x200573['view']['headerView']['class']=_0x212623?_0x212623+'\x20ck-reset_all':'ck-reset_all',_0x200573['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x200573['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5edc13=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xc0d834=_0x5edc13['previewMode'],_0x2c7c1e={};if('$labels'===_0xc0d834){for(const _0x1b1cc7 of _0x5edc13['getMergeFieldsIds']())_0x2c7c1e[_0x1b1cc7]=_0x5edc13['getLabel'](_0x1b1cc7)||_0x1b1cc7;}else{const _0x492dea='$defaultValues'===_0xc0d834?_0x5edc13['getDefaultValues']():_0x5edc13['getDataSetValues'](_0xc0d834,!0x0);for(const _0x2a17ff of Object['entries'](_0x492dea)){const [_0x7bc566,_0x1b7897]=_0x2a17ff;_0x2c7c1e[_0x7bc566]=null!==_0x1b7897?_0x1b7897:_0x5edc13['getLabel'](_0x7bc566)||_0x7bc566;}}return{'mergeFieldsData':_0x2c7c1e};}_standarizeRootsData(_0x2f5283,_0x4381ab,_0x11a2f2){let _0x4d7ef6;_0x4d7ef6='string'==typeof _0x2f5283?{[_0x4381ab['model']['document']['getRootNames']()[0x0]]:_0x2f5283}:_0x2f5283;const _0x2e322f=this['_fixMediaEmbeds'](_0x4d7ef6,_0x4381ab);return function(_0x138185,_0x354e6c){for(const [_0x3b5ea0,_0x494da2]of _0x138185)_0x494da2['classes']=_0x354e6c[_0x3b5ea0]['classList']['value']['replace']('ck-focused','');return _0x138185;}(this['_sortRoots'](_0x4381ab)['reduce']((_0x1c9c6d,_0x495789)=>(_0x1c9c6d['push']([_0x495789,{'content':_0x2e322f[_0x495789],'classes':''}]),_0x1c9c6d),[]),_0x11a2f2);}['_fixMediaEmbeds'](_0x3b6480,_0x138ab0){if(!_0x138ab0['plugins']['has']('MediaEmbedEditing'))return _0x3b6480;const _0x1d7d61=_0x138ab0['plugins']['get']('MediaEmbedEditing');for(const [_0x507e68,_0x10d951]of Object['entries'](_0x3b6480)){const _0x35e22e=document['createElement']('div');_0x35e22e['innerHTML']=_0x10d951,_0x35e22e['querySelectorAll']('figure.media')['forEach'](_0x135388=>{const _0x2b4959=_0x135388['querySelector']('oembed');if(_0x2b4959){const _0x2e76f3=_0x2b4959['getAttribute']('url');if(_0x2e76f3){const _0x4274b5=_0x1d7d61['registry']['getMediaViewElement'](new _0x1e8b09(_0x138ab0['editing']['view']['document']),_0x2e76f3,{'elementName':'','renderForEditingView':!0x0}),_0x4e81ba=document['createElement']('div');_0x4e81ba['classList']['add']('ck-media__wrapper'),_0x4274b5['render'](_0x4e81ba,_0x138ab0['editing']['view']['domConverter']),_0x2b4959['replaceWith'](_0x4e81ba);}}}),_0x3b6480[_0x507e68]=_0x35e22e['innerHTML'];}return _0x3b6480;}_sortRoots(_0x598ebd){if(!function(_0x177bf4){return void 0x0!==_0x177bf4['getRootsAttributes'];}(_0x598ebd))return _0x598ebd['model']['document']['getRootNames']();const _0x3ef0c4=[],_0xa5dc0=new Map();for(const _0x454a94 of _0x598ebd['model']['document']['getRootNames']()){const _0x429eaf=_0x598ebd['editing']['view']['getDomRoot'](_0x454a94)['getClientRects']()['item'](0x0);_0x3ef0c4['push'](_0x454a94),_0xa5dc0['set'](_0x454a94,_0x429eaf);}return _0x3ef0c4['sort']((_0x36b194,_0x14c71d)=>{const _0x28d741=_0xa5dc0['get'](_0x36b194),_0x4ad453=_0xa5dc0['get'](_0x14c71d);return _0x28d741['y']-_0x4ad453['y']||_0x28d741['x']-_0x4ad453['x'];}),_0x3ef0c4;}},AN=class extends _0x11fe30{static get requires(){return[bN,_0x3e3ae5];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24d3f9){super(_0x24d3f9),_0x24d3f9['commands']['add']('previewFinalContent',new TN(this['editor'])),_0x24d3f9['config']['define']('trackChanges.preview.renderFunction',(_0x1c9054,_0x17143c)=>{for(const _0x17ebc7 of _0x17143c)_0x1c9054['appendChild'](_0x17ebc7);});}},SN=class CloudServicesCommentsAdapter extends _0x4dd342{static CommentsService=/* #__PURE__ -- @preserve */
((()=>kC)());['_services'];static get requires(){return[xC,e_,CC,Al];}static get['pluginName'](){return'CloudServicesCommentsAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x462b81){super(_0x462b81),this['_services']=new Map();}async init(){const _0x53688b=this['context'],_0x3bb2e5=_0x53688b['plugins']['get'](e_);if(_0x53688b['plugins']['get'](xC)['addToReconnectionStack'](this),_0x3bb2e5['adapter']={'addCommentThread':async({channelId:_0x3518f3,threadId:_0x32360f,comments:_0x2b2974,resolvedAt:_0x418eb7,resolvedBy:_0xf51dd1,context:_0x5049cb,attributes:_0x439fe2})=>{const _0x44a173=await this['_getService'](_0x3518f3)['addCommentThread']({'commentThreadId':_0x32360f,'comments':_0x2b2974['map'](_0x51aa55=>function(_0x463805,_0x24af30,_0x46ba8a){return{'commentThreadId':_0x46ba8a,'commentId':_0x463805['commentId'],'userId':_0x463805['authorId'],'content':_0x463805['content'],'documentId':_0x24af30,'createdAt':_0x463805['createdAt'],'attributes':_0x463805['attributes']||{}};}(_0x51aa55,_0x3518f3,_0x32360f)),'resolvedAt':_0x418eb7,'resolvedBy':_0xf51dd1,'context':_0x5049cb,'attributes':_0x439fe2})['catch'](kN);return{'threadId':_0x44a173['commentThreadId'],'comments':_0x44a173['comments']};},'getCommentThread':async({channelId:_0x1bd7a3,threadId:_0x4c4d3e})=>{const _0x4a679b=await this['_getService'](_0x1bd7a3)['getCommentThread'](_0x4c4d3e)['catch'](IN)['catch'](kN);return _0x4a679b?_0x4a679b['deletedAt']?null:(await this['_fetchMissingUsersForThreads']([_0x4a679b]),{'threadId':_0x4a679b['commentThreadId'],'comments':_0x4a679b['comments']['map'](xN),'context':_0x4a679b['context'],'resolvedAt':_0x4a679b['resolvedAt'],'resolvedBy':_0x4a679b['resolvedBy'],'attributes':_0x4a679b['attributes']||{}}):null;},'updateCommentThread':async({channelId:_0x352814,threadId:_0x44ec37,context:_0x437534,unlinkedAt:_0x1f2dd6,attributes:_0x101505})=>this['_getService'](_0x352814)['updateCommentThread']({'commentThreadId':_0x44ec37,'context':_0x437534,'attributes':_0x101505,'unlinkedAt':_0x1f2dd6})['catch'](IN)['catch'](kN),'resolveCommentThread':async({channelId:_0x1ef998,threadId:_0x411a7d})=>{const _0x3b5fe4=await this['_getService'](_0x1ef998)['resolveCommentThread'](_0x411a7d)['catch'](IN)['catch'](kN);return{'threadId':_0x3b5fe4['commentThreadId'],'resolvedAt':_0x3b5fe4['resolvedAt'],'resolvedBy':_0x3b5fe4['resolvedBy']};},'reopenCommentThread':async({channelId:_0x5bb5c5,threadId:_0x317a90})=>this['_getService'](_0x5bb5c5)['reopenCommentThread'](_0x317a90)['catch'](IN)['catch'](kN),'removeCommentThread':({channelId:_0xd06ea5,threadId:_0x57cdc8})=>this['_getService'](_0xd06ea5)['removeCommentThread'](_0x57cdc8)['catch'](IN)['catch'](kN),'addComment':({channelId:_0x98e231,threadId:_0x39cef7,commentId:_0x1ca1d5,content:_0x3e0c82,attributes:_0x165fe0})=>this['_getService'](_0x98e231)['addComment'](_0x39cef7,_0x1ca1d5,_0x3e0c82,_0x165fe0)['catch'](kN),'updateComment':({channelId:_0x4559bf,threadId:_0x401079,commentId:_0x4da24c,content:_0xff416c,attributes:_0xcb54f6})=>this['_getService'](_0x4559bf)['updateComment'](_0x401079,_0x4da24c,_0xff416c,_0xcb54f6)['catch'](IN)['catch'](kN),'removeComment':({channelId:_0x4278d0,threadId:_0x448daf,commentId:_0x46a922})=>this['_getService'](_0x4278d0)['removeComment'](_0x448daf,_0x46a922)['catch'](IN)['catch'](kN)},_0x53688b instanceof _0x9e63ec){const _0x1dc19d=_0x53688b['config']['get']('collaboration.channelId'),_0x125ced=_0x53688b['plugins']['get'](CC);await this['_setUpService'](_0x1dc19d);const _0x4106b1=await this['_services']['get'](_0x1dc19d)['getConnectedSessions']();this['listenTo'](_0x125ced,'sessionAdd:'+_0x1dc19d,(_0x577685,{session:_0x2dcfdb})=>{_0x2dcfdb['id']===_0x125ced['mySessionId']&&(_0x577685['off'](),this['context']['plugins']['get']('Permissions')['setPermissions'](_0x2dcfdb['permissions'],_0x1dc19d));}),_0x125ced['register'](_0x1dc19d,_0x4106b1);}}async _setUpService(_0x45df79){if(this['_services']['has'](_0x45df79))throw new _0x4242d4('cloudservicescommentsadapter-connect-already-connected',null,{'channelId':_0x45df79});const _0x285191=this['context']['plugins']['get'](e_),_0x4c22d9=new CloudServicesCommentsAdapter['CommentsService'](_0x45df79);this['_services']['set'](_0x45df79,_0x4c22d9),this['listenTo'](_0x4c22d9,'commentThreadAdded',(_0x4741a5,_0x28eb64)=>{const {commentThreadId:_0x6ca7ac,documentId:_0x4a83a0,context:_0x4666ac,attributes:_0x1db197,resolvedAt:_0x21ca10,resolvedBy:_0x32bc95,comments:_0x303d1a}=_0x28eb64;_0x285191['getCommentThread'](_0x6ca7ac)||_0x285191['addCommentThread']({'threadId':_0x6ca7ac,'channelId':_0x4a83a0,'comments':_0x303d1a?_0x303d1a['map'](xN):[],'context':_0x4666ac,'attributes':_0x1db197,'resolvedAt':_0x21ca10,'resolvedBy':_0x32bc95,'isFromAdapter':!0x0});}),this['listenTo'](_0x4c22d9,'commentThreadUpdated',(_0x2abe34,{commentThreadId:_0x389410,documentId:_0x30609e,context:_0x4bd191,unlinkedAt:_0x11da5a,attributes:_0xea1f45})=>{_0x285191['getCommentThread'](_0x389410)&&_0x285191['updateCommentThread']({'threadId':_0x389410,'channelId':_0x30609e,'context':_0x4bd191,'unlinkedAt':_0x11da5a,'attributes':_0xea1f45,'isFromAdapter':!0x0});}),this['listenTo'](_0x4c22d9,'commentThreadResolved',(_0x500496,{commentThreadId:_0xf61699,resolvedBy:_0x59bc25,resolvedAt:_0x474e34})=>{const _0x1cf73b=_0x285191['getCommentThread'](_0xf61699);_0x1cf73b&&_0x1cf73b['resolve']({'resolvedBy':_0x59bc25,'resolvedAt':_0x474e34,'isFromAdapter':!0x0});}),this['listenTo'](_0x4c22d9,'commentThreadReopened',(_0x5856c0,{commentThreadId:_0x5446f1})=>{const _0x10b1f2=_0x285191['getCommentThread'](_0x5446f1);_0x10b1f2&&_0x10b1f2['reopen']({'isFromAdapter':!0x0});}),this['listenTo'](_0x4c22d9,'commentThreadRemoved',(_0x62d16e,{commentThreadId:_0x469a9c})=>{const _0x64b6e7=_0x285191['getCommentThread'](_0x469a9c);_0x64b6e7&&_0x64b6e7['remove']({'isFromAdapter':!0x0});}),this['listenTo'](_0x4c22d9,'commentAdded',(_0x222b77,_0x7b3bfe)=>{const _0x55aeac=_0x7b3bfe['commentThreadId'],_0x16228f=_0x285191['getCommentThread'](_0x55aeac);_0x16228f&&_0x16228f['addComment']({...xN(_0x7b3bfe),'isFromAdapter':!0x0});}),this['listenTo'](_0x4c22d9,'commentUpdated',(_0x6a5bb8,{commentThreadId:_0xc8ba09,commentId:_0x277656,content:_0x32fefa,attributes:_0x18bfb0})=>{const _0x592fc2=_0x285191['getCommentThread'](_0xc8ba09);if(_0x592fc2){const _0x1d3cc5=_0x592fc2['getComment'](_0x277656);_0x1d3cc5&&_0x1d3cc5['update']({'content':_0x32fefa,'attributes':_0x18bfb0,'isFromAdapter':!0x0});}}),this['listenTo'](_0x4c22d9,'commentRemoved',(_0x301b73,{commentThreadId:_0x33856e,commentId:_0x39e976})=>{const _0x174278=_0x285191['getCommentThread'](_0x33856e);if(_0x174278){const _0x564608=_0x174278['getComment'](_0x39e976);_0x564608&&_0x564608['remove']({'isFromAdapter':!0x0});}}),this['listenTo'](_0x4c22d9,'disconnected',()=>{'connected'===this['context']['plugins']['get'](xC)['connection']?.['state']&&(this['_services']['delete'](_0x45df79),this['stopListening'](_0x4c22d9));}),await this['_connectService'](_0x45df79);}destroy(){if(this['context']instanceof _0x9e63ec){const _0x66d504=this['context']['config']['get']('collaboration.channelId');this['_services']['has'](_0x66d504)&&this['_terminateService'](_0x66d504);}}_terminateService(_0x41c9d8){if(!this['_services']['has'](_0x41c9d8))throw new _0x4242d4('cloudservicescommentsadapter-disconnect-not-exist',null,{'channelId':_0x41c9d8});this['_getService'](_0x41c9d8)['disconnect'](),this['_services']['delete'](_0x41c9d8);}async reconnect(){for(const _0x385c2f of this['_services']['keys']())await this['_connectService'](_0x385c2f);if(this['context']instanceof _0x9e63ec){const _0x3121d0=this['context']['config']['get']('collaboration.channelId');if(this['_services']['has'](_0x3121d0)){const _0x309f79=this['context']['plugins']['get'](CC);_0x309f79['unregister'](_0x3121d0);const _0x12904c=await this['_services']['get'](_0x3121d0)['getConnectedSessions']();_0x309f79['register'](_0x3121d0,_0x12904c);}}}async _connectService(_0x388be0){const {connection:_0x5879d9}=this['context']['plugins']['get'](xC),_0x4ce56f=this['context']['plugins']['get'](e_),_0x500878=await this['_services']['get'](_0x388be0)['connect'](_0x5879d9);await this['_fetchMissingUsersForThreads'](_0x500878);const _0x44f667=new Set(Array['from'](_0x4ce56f['getCommentThreads']({'channelId':_0x388be0}),_0x6d43ba=>_0x6d43ba['id']));for(const _0x29645b of _0x500878)_0x29645b['deletedAt']||_0x44f667['delete'](_0x29645b['commentThreadId']);for(const _0x17c78d of _0x44f667)_0x4ce56f['getCommentThread'](_0x17c78d)['remove']({'isFromAdapter':!0x0});for(const _0x54d229 of _0x500878){let _0x588fbf=_0x4ce56f['getCommentThread'](_0x54d229['commentThreadId']);const {commentThreadId:_0x2c1319,context:_0x284618,attributes:_0x5477cb,resolvedBy:_0x3e9f44,resolvedAt:_0x263b6d,unlinkedAt:_0x97aef8,deletedAt:_0x10d586}=_0x54d229;if(_0x10d586)continue;_0x588fbf||(_0x588fbf=_0x4ce56f['addCommentThread']({'channelId':_0x388be0,'threadId':_0x2c1319,'context':_0x284618,'attributes':_0x5477cb||{},'resolvedBy':_0x3e9f44,'resolvedAt':_0x263b6d,'unlinkedAt':_0x97aef8,'isFromAdapter':!0x0}));const _0x35375c=new Set(Array['from'](_0x588fbf['comments'],_0x24c4b9=>_0x24c4b9['id']));for(const _0x59ce92 of _0x54d229['comments'])_0x35375c['delete'](_0x59ce92['commentId']);for(const _0x50a850 of _0x35375c)_0x588fbf['getComment'](_0x50a850)['remove']({'isFromAdapter':!0x0});for(const _0x1455c0 of _0x54d229['comments']){const _0xcce47=_0x588fbf['getComment'](_0x1455c0['commentId']);_0xcce47?_0xcce47['content']!==_0x1455c0['content']&&_0xcce47['update']({'content':_0x1455c0['content'],'isFromAdapter':!0x0}):_0x588fbf['addComment'](Object['assign'](xN(_0x1455c0),{'isFromAdapter':!0x0}));}}}_getService(_0x1a3108){if(!this['_services']['has'](_0x1a3108))throw new _0x4242d4('cloudservicescommentsadapter-service-not-exist',null,{'channelId':_0x1a3108});return this['_services']['get'](_0x1a3108);}async _fetchMissingUsersForThreads(_0x3d3304){const _0x252136=this['context']['plugins']['get'](Al),{connection:_0x2505a1}=this['context']['plugins']['get'](xC),_0x3237f5=new Set();for(const {resolvedBy:_0x5a20bf,comments:_0xe4e9c7}of _0x3d3304){_0x5a20bf&&!_0x252136['getUser'](_0x5a20bf)&&_0x3237f5['add'](_0x5a20bf);for(const {userId:_0x32cea9}of _0xe4e9c7)_0x252136['getUser'](_0x32cea9)||_0x3237f5['add'](_0x32cea9);}if(0x0===_0x3237f5['size'])return;const _0x4fc656=await Uk['getMany'](_0x2505a1,Array['from'](_0x3237f5));for(const _0x100d59 of _0x4fc656)_0x252136['getUser'](_0x100d59['id'])||_0x252136['addUser'](_0x100d59);}};async function IN(_0x1f6e40){if('404'!==_0x1f6e40['code'])throw _0x1f6e40;}function kN(_0x3807e4){if((_0x406cf9=_0x3807e4)['message']['startsWith']('cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.')||_0x406cf9['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x406cf9['message']['startsWith']('cloud-services-internal-error:\x20Request\x20timeout.'))return new Promise(()=>{});var _0x406cf9;throw _0x3807e4;}function xN(_0x2e368c){return{'threadId':_0x2e368c['commentThreadId'],'commentId':_0x2e368c['commentId'],'content':_0x2e368c['content'],'createdAt':_0x2e368c['createdAt'],'authorId':_0x2e368c['userId'],'attributes':_0x2e368c['attributes']||{}};}var CN=class CloudServicesTrackChangesAdapter extends _0x11fe30{static ['TrackChangesService']=/* #__PURE__ -- @preserve */
((()=>Zx)());_bufferedRequests;_trackChangesService;static get requires(){return[SN,qP,xC];}static get['pluginName'](){return'CloudServicesTrackChangesAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x18a293){super(_0x18a293);const _0x2ebe80=this['editor']['config']['get']('collaboration.channelId');this['_bufferedRequests']=new Map(),this['_trackChangesService']=new CloudServicesTrackChangesAdapter['TrackChangesService'](_0x2ebe80);}init(){const _0x3fbf50=this['editor']['plugins']['get'](xC),_0x1a5dd5=this['editor']['plugins']['get'](qP);return _0x1a5dd5['adapter']={'getSuggestion':async _0x2c02b9=>{await this['_waitForServiceReady']();const _0x1007c5=await this['_trackChangesService']['get'](_0x2c02b9)['catch'](RN);return await this['_fetchMissingUsersForThreads']([_0x1007c5]),_0x1007c5;},'addSuggestion':async({id:_0x512a67,type:_0x10d8ca,data:_0x3f98c0,originalSuggestionId:_0x3867ce,attributes:_0x1303bf})=>{await this['_waitForServiceReady']();const _0x2170d7={'id':_0x512a67,'type':_0x10d8ca,'data':_0x3f98c0,'originalSuggestionId':_0x3867ce,'attributes':_0x1303bf},_0x4c8517=await this['_trackChangesService']['add'](_0x512a67,_0x10d8ca,_0x3f98c0,_0x3867ce,_0x1303bf)['catch'](_0x3945ca=>{if(PN(_0x3945ca))return new Promise(_0x3ebda7=>{this['_bufferedRequests']['set'](_0x512a67,{'resolve':_0x3ebda7,'suggestionData':_0x2170d7});});throw _0x3945ca;});return this['_bufferedRequests']['delete'](_0x512a67),_0x4c8517;},'updateSuggestion':async(_0x46419b,_0x208e7e)=>{if(await this['_waitForServiceReady'](),'open'!==_0x208e7e['state'])return this['_trackChangesService']['update'](_0x46419b,_0x208e7e)['catch'](RN);}},this['listenTo'](this['_trackChangesService'],'suggestionUpdated',(_0x5aafc6,_0x4ce1b7)=>{_0x1a5dd5['hasSuggestion'](_0x4ce1b7['id'])&&(_0x1a5dd5['getSuggestion'](_0x4ce1b7['id'])['attributes']=_0x4ce1b7['attributes']);}),this['listenTo'](this['_trackChangesService'],'disconnected',()=>{'connected'===_0x3fbf50['connection']?.['state']&&(_0x3fbf50['removeFromReconnectionStack'](this),this['stopListening'](this['_trackChangesService']));}),this['_trackChangesService']['connect'](_0x3fbf50['connection'])['then'](_0x56acbd=>(_0x3fbf50['addToReconnectionStack'](this),this['_fetchMissingUsersForThreads'](_0x56acbd)['then'](()=>{for(const _0x4af65d of _0x56acbd){_0x1a5dd5['addSuggestionData'](_0x4af65d)['_saved']=!0x0;}})));}async reconnect(){const _0x45a847=this['editor']['plugins']['get']('TrackChangesEditing'),{connection:_0x1ee920}=this['editor']['plugins']['get'](xC),_0x8cef72=await this['_trackChangesService']['connect'](_0x1ee920);await this['_fetchMissingUsersForThreads'](_0x8cef72);for(const {suggestionData:_0x2d9a75,resolve:_0x35951f}of this['_bufferedRequests']['values']()){let _0x1c9c39=_0x8cef72['find'](_0x55e8b1=>_0x55e8b1['id']===_0x2d9a75['id']);_0x1c9c39||(_0x1c9c39=await this['_trackChangesService']['add'](_0x2d9a75['id'],_0x2d9a75['type'],_0x2d9a75['data'],_0x2d9a75['originalSuggestionId'])),_0x35951f(_0x1c9c39);}for(const _0x300dcd of _0x8cef72)_0x45a847['hasSuggestion'](_0x300dcd['id'])||_0x45a847['addSuggestionData'](_0x300dcd);}async _waitForServiceReady(){this['_trackChangesService']['isConnected']||await new Promise(_0x52a53d=>{this['listenTo'](this['_trackChangesService'],'connected',_0x10f92f=>{_0x10f92f['off'](),_0x52a53d();});});}async _fetchMissingUsersForThreads(_0x52408f){const _0x182962=this['editor']['plugins']['get'](Al),{connection:_0x362969}=this['editor']['plugins']['get'](xC),_0x18c74b=new Set();for(const {authorId:_0x1dfae2}of _0x52408f)_0x182962['getUser'](_0x1dfae2)||_0x18c74b['add'](_0x1dfae2);if(0x0===_0x18c74b['size'])return;const _0x3cc425=await Uk['getMany'](_0x362969,Array['from'](_0x18c74b));for(const _0x170884 of _0x3cc425)_0x182962['getUser'](_0x170884['id'])||_0x182962['addUser'](_0x170884);}};function RN(_0x3243b3){if(PN(_0x3243b3))return new Promise(()=>{});throw _0x3243b3;}function PN(_0x45dce1){return _0x45dce1['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x45dce1['message']['startsWith']('cloud-services-internal-error:\x20Request\x20timeout.');}var NN=class extends _0x11fe30{static get requires(){return[M_,SN,oR,xC];}static get['pluginName'](){return'RealTimeCollaborativeComments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x2125b3=this['editor']['plugins']['get'](xC),_0x595324=this['editor']['plugins']['get'](d_),_0x324b64=this['editor']['plugins']['get'](SN);return this['editor']['data']['once']('ready',()=>{this['listenTo'](_0x2125b3,'change:state',(_0x1335ae,_0x391030,_0x2e1b19)=>{_0x595324['isThreadsLoadingPaused']='connected'!==_0x2e1b19;});}),this['listenTo'](_0x2125b3,'change:state',(_0x334a8e,_0x35ab49,_0x35d615)=>{this['editor']['plugins']['get'](e_)['switchReadOnly']('connected'!==_0x35d615);}),_0x324b64['_setUpService'](this['editor']['config']['get']('collaboration.channelId'));}destroy(){const _0x135e75=this['editor']['plugins']['get'](SN),_0x2cdb97=this['editor']['config']['get']('collaboration.channelId');_0x135e75['_services']['has'](_0x2cdb97)&&_0x135e75['_terminateService'](_0x2cdb97),super['destroy']();}},MN=class extends _0x11fe30{static get requires(){return[NN,CN,ON];}static get['pluginName'](){return'RealTimeCollaborativeTrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};const LN=/* #__PURE__ -- @preserve */
_0x356c1e();var $N=class extends LN{['id'];creator;authors;diffData;toVersion;['fromVersion'];['model'];constructor(_0x2158e3){super(),this['id']=_0x2158e3['id']||_0xea66bb(),this['creator']=_0x2158e3['creator']||null,this['authors']=_0x2158e3['authors']||[],this['diffData']=_0x2158e3['diffData']||null,this['toVersion']=_0x2158e3['toVersion']||0x0,this['fromVersion']=_0x2158e3['fromVersion']||0x0,this['set']('name',_0x2158e3['name']||''),this['set']('createdAt',_0x2158e3['createdAt']||new Date()),this['set']('attributes',_0x2158e3['attributes']||{});}setName(_0x1d130a){this['_update']({'name':_0x1d130a});}setAttribute(_0x13e291,_0x19c50f){const _0x4d1e2c=so(this['attributes']);xo(_0x4d1e2c,_0x13e291,_0x19c50f),this['_update']({'attributes':_0x4d1e2c});}removeAttribute(_0x55dd48){const _0x5e6207=so(this['attributes']);Oo(_0x5e6207,_0x55dd48),this['_update']({'attributes':_0x5e6207});}_update(_0x517773,_0x5f1da9=!0x1){let _0x39d17b=!0x1;const _0x508b94={'id':this['id']};for(const _0x3ff50e of['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId']){const _0x3cca12=_0x517773[_0x3ff50e];void 0x0!==_0x3cca12&&_0x3cca12!==this[_0x3ff50e]&&(this[_0x3ff50e]=_0x3cca12,_0x508b94[_0x3ff50e]=_0x3cca12,_0x39d17b=!0x0);}_0x39d17b&&(_0x508b94['authors']&&(_0x508b94['authorsIds']=_0x508b94['authors']['map'](_0x237ed2=>_0x237ed2['id']),delete _0x508b94['authors']),this['fire']('_update',_0x508b94,_0x5f1da9));}toJSON(){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2a9670=>_0x2a9670['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}},DN=class extends _0x11fe30{['_revisions'];static get requires(){return[Al];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get length(){return this['_revisions']['length'];}constructor(_0x26b734){super(_0x26b734),this['_revisions']=new _0x2186b6();}afterInit(){!async function(_0x2408e2){const _0x568a0b='vsmL4TPpuR53MlqSj2VXwH9oEAN8FxJtGUOdbDCZ01ihyfkBQY6acgz7rIeWKn',_0x4d9db9=0xeb829,_0x30da69=0x791d0,_0x19a8bc=window['Date']['now'](),_0x1d8c3c=_0x2408e2['editor'],_0x36a59f=new window['Promise'](_0x3755a9=>{_0x1d8c3c['once']('ready',_0x3755a9);}),_0x173b3f={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x186abf=_0x1d8c3c['config']['get']('licenseKey');async function _0x341f79(){let _0x223371,_0x46d0e6=null,_0x251bc4=null;try{return'GPL'==_0x186abf?'NotAllowed':(_0x223371=_0x5d58a4(),_0x223371?(_0x223371['usageEndpoint']&&(_0x251bc4=_0x19e54e(_0x223371['usageEndpoint'],_0x223371['jti'])),await _0x31f753()?_0x440371()?_0x30839a()?'Expired':_0x557f6b()?('evaluation'==_0x223371['licenseType']&&(_0x46d0e6=_0x4ea007('EvaluationLimit')),await _0xaa5d9d()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x30839a(){const _0x4fe6e0=['evaluation','trial']['includes'](_0x223371['licenseType'])?_0x19a8bc/0x3e8:0xe10*_0x30da69;return _0x223371['exp']<_0x4fe6e0;}function _0x440371(){const _0x3d7bf0=_0x223371['features'];if(!_0x3d7bf0)return!0x1;if(_0x3d7bf0['includes']('*'))return!0x0;if(_0x3d7bf0['includes']('RH'))return!0x0;if(_0x3d7bf0['includes']('RRH')){if(_0x5483da())return!0x0;if(_0x27b7c3()||_0x12ef2b())return!0x0;}return!0x1;}function _0x557f6b(){const _0x53355b=_0x223371['licensedHosts'];if(!_0x53355b||0x0==_0x53355b['length'])return!0x0;const {hostname:_0x294f82}=new URL(window['location']['href']);if(_0x53355b['includes'](_0x294f82))return!0x0;const _0x18cfa9=_0x294f82['split']('.');return _0x53355b['filter'](_0x53ac6b=>_0x53ac6b['includes']('*'))['map'](_0x3fc1c4=>_0x3fc1c4['split']('.'))['filter'](_0x22a683=>_0x22a683['length']<=_0x18cfa9['length'])['map'](_0x2e52be=>Array(_0x18cfa9['length']-_0x2e52be['length'])['fill']('*'===_0x2e52be[0x0]?'*':'')['concat'](_0x2e52be))['some'](_0xc211=>_0x18cfa9['every']((_0x361ad8,_0x3e2f7e)=>_0xc211[_0x3e2f7e]===_0x361ad8||'*'===_0xc211[_0x3e2f7e]));}function _0xaa5d9d(){return _0x46d0e6&&_0x251bc4?new window['Promise']((_0x297b87,_0x3b54e0)=>{_0x46d0e6['then'](_0x297b87,_0x3b54e0),_0x251bc4['then'](_0x2e4472=>{'Valid'!=_0x2e4472&&_0x297b87(_0x2e4472);},_0x3b54e0);}):_0x46d0e6||_0x251bc4||'Valid';}}function _0x19e54e(_0x2210c1,_0x495f7e){return new window['Promise'](_0x2b2c2d=>{if(_0x38b6be())return _0x2b2c2d('Valid');_0x3dbd3c(),_0x1d8c3c['decorate']('_sendUsageRequest');let _0x591079=!0x1;const _0x49380a=_0xea66bb();function _0x1bc570(_0x522d1e){return!!_0x522d1e&&('object'==typeof _0x522d1e||'function'==typeof _0x522d1e)&&'function'==typeof _0x522d1e['then']&&'function'==typeof _0x522d1e['catch'];}function _0x183831(_0xc8cbc6){_0x3b022c(_0xc8cbc6)['then'](_0x441e33=>_0x441e33&&'ok'==_0x441e33['status']?_0x438613(_0x827905(_0x49380a+_0x495f7e))!=_0x441e33['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x119682=>(_0x2c2a8f(),_0x119682),()=>{const _0xca023=_0x489a85();return null==_0xca023?(_0x2c2a8f(),'Valid'):_0x19a8bc-_0xca023>0x240c8400?'UsageLimit':'Valid';})['then'](_0x2b2c2d)['catch'](()=>{_0x2b2c2d('UsageLimit');});const _0x2460cf=0x36ee80;function _0x2c2a8f(){const _0x3ed57c='llct-'+_0x438613(_0x827905(_0x2210c1)),_0x3c4aed=_0x219b84(_0x438613(window['Math']['ceil'](_0x19a8bc/_0x2460cf)));window['localStorage']['setItem'](_0x3ed57c,_0x3c4aed);}function _0x489a85(){const _0x3f70a5='llct-'+_0x438613(_0x827905(_0x2210c1)),_0x20ac40=window['localStorage']['getItem'](_0x3f70a5);return _0x20ac40?window['parseInt'](_0x219b84(_0x20ac40),0x10)*_0x2460cf:null;}function _0x3b022c(_0x21152d){return new window['Promise']((_0x5b47e7,_0x5614aa)=>{_0x21152d['then'](_0x5b47e7,_0x5614aa),window['setTimeout'](_0x5614aa,0x1d4c0);});}}_0x1d8c3c['on']('_sendUsageRequest',(_0x3003ee,_0x29da8d)=>{if(_0x29da8d[0x0]!=_0x2210c1)return _0x2b2c2d('UsageLimit');_0x29da8d[0x1]={..._0x29da8d[0x1],'requestId':_0x49380a};},{'priority':'high'}),_0x1d8c3c['on']('_sendUsageRequest',_0x5d9687=>{_0x1bc570(_0x5d9687['return'])&&(_0x591079=!0x0,_0x183831(_0x5d9687['return']));},{'priority':'low'}),_0x36a59f['then'](()=>{_0x591079||_0x2b2c2d('UsageLimit');});});function _0x38b6be(){return'auto'==_0x1d8c3c['editing']['view']['_overlayModeHint'];}function _0x3dbd3c(){_0x1d8c3c['editing']['view']['_overlayModeHint']='auto';}}function _0x4ea007(_0x25113a){const _0xfe13a9=[new window['Promise'](_0x152fd5=>setTimeout(_0x152fd5,0x93ecc)),_0x36a59f['then'](()=>new window['Promise'](_0x4c56a9=>{const _0x419aa7=0x7,_0x38a12c=_0x2408e2['_revisions'];function _0x1664f8(){_0x38a12c['length']>=_0x419aa7&&_0x4c56a9();}_0x1664f8(),_0x38a12c['on']('add',_0x1664f8);})),new window['Promise'](_0xbd59b=>{function _0x232a01(){for(const _0x48ef1c in window)if(window['Number']['isNaN'](window['Number'](_0x48ef1c))&&window[_0x48ef1c]==_0x4d9db9)return _0xbd59b();'destroyed'!=_0x1d8c3c['state']&&window['setTimeout'](_0x232a01,0x1388);}_0x30847e('RevisionViewer')&&_0x232a01();})];return window['Promise']['race'](_0xfe13a9)['then'](()=>_0x25113a);}async function _0x56131b(){if(await _0x36a59f,_0x30847e('RevisionViewer')){const _0x4592b3=_0x2408e2['getRevision'](0x0),_0x35bc5d=_0x2408e2['getEarlierVisibleRevision'](_0x4592b3['id']),_0x540af8=_0x310082('RevisionViewer');return await _0x540af8['compare'](_0x4592b3['id'],_0x35bc5d?_0x35bc5d['id']:null,!0x0),_0x540af8['unbind']('isEnabled'),_0x540af8['isEnabled']=!0x1,_0x540af8['compare']=_0x41257d,void(_0x540af8['_getDiff']=_0x41257d);}if(_0x30847e('RevisionTracker')){const _0x22b205=_0x310082('RevisionTracker');_0x22b205['unbind']('isEnabled'),_0x22b205['isEnabled']=!0x1,_0x22b205['update']=_0x41257d,_0x22b205['saveRevision']=_0x41257d;}_0x1d8c3c['model']['change']=_0x41257d,_0x1d8c3c['model']['enqueueChange']=_0x41257d,_0x1d8c3c['enableReadOnlyMode']('model');}function _0x5483da(){return _0x30847e('WebSocketGateway')&&'connected'==_0x310082('WebSocketGateway')['state'];}function _0x27b7c3(){return _0x30847e('RevisionViewerIntegration');}function _0x12ef2b(){return _0x30847e('TrackChangesDataGetter');}function _0x5b2ac3(_0x550aac){const _0x1a68b0=_0x4915be();_0x1d8c3c[_0x1a68b0]='revisionHistoryLicenseKey'+_0x550aac,_0x550aac['endsWith']('Limit')&&(window[_0x4915be()]=_0x4d9db9),'Valid'!=_0x550aac&&_0x56131b();}function _0x4915be(){const _0x126ed9=window['String'](window['performance']['now']())['replace']('.','');let _0x1ff1e2='v';for(let _0x4ccbe8=0x0;_0x4ccbe8<_0x126ed9['length'];_0x4ccbe8+=0x2){let _0x1d35fd=window['parseInt'](_0x126ed9['substring'](_0x4ccbe8,_0x4ccbe8+0x2));_0x1d35fd>=0x3e&&(_0x1d35fd-=0x3e),_0x1ff1e2+=_0x568a0b[_0x1d35fd];}return _0x1ff1e2;}function _0x5d58a4(){const _0x4c018e=_0x186abf['split']('.');if(0x3!=_0x4c018e['length'])return null;return _0x5916ec(_0x4c018e[0x1]);function _0x5916ec(_0x43e1c5){const _0x41abad=_0x2921f1(_0x43e1c5);return _0x41abad&&_0x738a9f()?_0x41abad:null;function _0x738a9f(){const _0x480a3b=_0x41abad['jti'],_0x4744d7=window['parseInt'](_0x480a3b['substring'](_0x480a3b['length']-0x8),0x10),_0x2e3960={..._0x41abad,'jti':_0x480a3b['substring'](0x0,_0x480a3b['length']-0x8)};return delete _0x2e3960['vc'],_0x827905(_0x2e3960)==_0x4744d7;}}}async function _0x31f753(){let _0x26fead=!0x0;try{const [_0x3f7b78,_0x2039b7,_0x5e2c55]=_0x186abf['split']('.');return _0x3735f0(_0x3f7b78),await _0x1d2dd7(_0x3f7b78,_0x2039b7,_0x5e2c55),_0x26fead;}catch{return!0x1;}function _0x3735f0(_0x505596){const _0x5934cf=_0x2921f1(_0x505596);_0x5934cf&&'ES256'==_0x5934cf['alg']||(_0x26fead=!0x1);}async function _0x1d2dd7(_0x1e8874,_0xb0e4d5,_0x12602e){const _0x55ce9b=window['Uint8Array']['from'](_0x2e2a30(_0x12602e),_0x5521d8=>_0x5521d8['charCodeAt'](0x0)),_0x1b761a=new window['TextEncoder']()['encode'](_0x1e8874+'.'+_0xb0e4d5),_0x5eecd1=window['crypto']['subtle'];if(!_0x5eecd1)return;const _0x18fd1a=await _0x5eecd1['importKey']('jwk',_0x173b3f,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5eecd1['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x18fd1a,_0x55ce9b,_0x1b761a)||(_0x26fead=!0x1);}}function _0x2921f1(_0x432d9f){return _0x432d9f['startsWith']('ey')?JSON['parse'](_0x2e2a30(_0x432d9f)):null;}function _0x2e2a30(_0x59fb02){return window['atob'](_0x59fb02['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x827905(_0x2a3cc4){let _0x2df1d0=0x1505;function _0x3fcb65(_0x190585){for(let _0x5e15ff=0x0;_0x5e15ff<_0x190585['length'];_0x5e15ff++){const _0x3d09cc=_0x190585['charCodeAt'](_0x5e15ff);_0x2df1d0=(_0x2df1d0<<0x5)+_0x2df1d0+_0x3d09cc,_0x2df1d0&=_0x2df1d0;}}function _0x5cd8a0(_0x3ecd60){Array['isArray'](_0x3ecd60)?_0x3ecd60['forEach'](_0x5cd8a0):_0x3ecd60&&'object'==typeof _0x3ecd60?Object['entries'](_0x3ecd60)['sort']()['forEach'](([_0x3ed4bc,_0x3dc3d8])=>{_0x3fcb65(_0x3ed4bc),_0x5cd8a0(_0x3dc3d8);}):_0x3fcb65(window['String'](_0x3ecd60));}return _0x5cd8a0(_0x2a3cc4),_0x2df1d0>>>0x0;}function _0x438613(_0x5e242b){return _0x5e242b['toString'](0x10)['padStart'](0x8,'0');}function _0x219b84(_0x4a65d0){return _0x4a65d0['split']('')['reverse']()['join']('');}function _0x30847e(_0x225595){return _0x1d8c3c['plugins']['has'](_0x225595);}function _0x310082(_0x15f1b6){return _0x1d8c3c['plugins']['get'](_0x15f1b6);}function _0x41257d(){}_0x5b2ac3(await _0x341f79());}(this);}createRevision(_0x5ad5d0){const _0x1cc761=this['editor']['plugins']['get']('Users');return new $N({'id':_0x5ad5d0['id'],'name':_0x5ad5d0['name'],'creator':_0x5ad5d0['creatorId']?_0x1cc761['getUser'](_0x5ad5d0['creatorId']):null,'diffData':_0x5ad5d0['diffData']||_0x5ad5d0['data'],'authors':_0x5ad5d0['authorsIds']['map'](_0x386713=>_0x1cc761['getUser'](_0x386713)),'createdAt':new Date(_0x5ad5d0['createdAt']),'attributes':_0x5ad5d0['attributes'],'fromVersion':_0x5ad5d0['fromVersion'],'toVersion':_0x5ad5d0['toVersion']});}['addRevision'](_0x3e020a,_0x5460dc=0x0){this['_revisions']['add'](_0x3e020a,_0x5460dc);}getRevision(_0x62fa27){return this['_revisions']['get'](_0x62fa27);}getRevisions(_0xba7f67={'toJSON':!0x1}){const _0x35ae9a=Array['from'](this['_revisions']);return _0x35ae9a['reverse'](),_0xba7f67['toJSON']?_0x35ae9a['map'](_0x78af95=>_0x78af95['toJSON']()):_0x35ae9a;}getIndex(_0x448de9){return this['_revisions']['getIndex'](_0x448de9);}getEarlierVisibleRevision(_0x428117){const [,_0x624e05]=this['getRevisionsIterator'](_0x428117,{'direction':'earlier'});return _0x624e05;}getLaterVisibleRevision(_0x3e749b){const [,_0x50dd6b]=this['getRevisionsIterator'](_0x3e749b,{'direction':'later'});return _0x50dd6b;}getRevisionsInDiff(_0x1c1d2){const _0x586ce9=[];for(const _0x48ffad of this['getRevisionsIterator'](_0x1c1d2['newRevisionId']))if(_0x586ce9['push'](_0x48ffad),_0x48ffad['id']===_0x1c1d2['oldRevisionId'])break;return _0x586ce9;}*getRevisionsIterator(_0x2ef3bb,{direction:_0xebcbd6='earlier',filter:_0x1415ba=()=>!0x0}={}){const _0x5da8fa='earlier'===_0xebcbd6?0x1:-0x1;let _0x54795d=this['_revisions']['get'](_0x2ef3bb),_0x1a519b=this['getIndex'](_0x54795d);for(yield _0x54795d;_0x54795d;){if(_0x1a519b+=_0x5da8fa,_0x54795d=this['getRevision'](_0x1a519b),!_0x54795d)return;_0x1415ba(_0x54795d)&&(yield _0x54795d);}}},QN=class extends _0x11fe30{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x3ad3dc,'c'],[_0x1c3ec9,'a'],[_0x36556b,'e'],[tn,'r'],[_0x4f749e,'u']]);_typeCharToViewClass=new Map([['c',_0x3ad3dc],['a',_0x1c3ec9],['e',_0x36556b],['r',tn],['u',_0x4f749e]]);async loadRevisionData(_0x7dd575,_0x3f4448){if(_0x7dd575['diffData']||!_0x3f4448)return;const _0x7afa97=this['editor']['config']['get']('collaboration.channelId');_0x7dd575['diffData']=(await _0x3f4448['getRevision']({'channelId':_0x7afa97,'revisionId':_0x7dd575['id']}))['diffData'];}getRevisionDocumentData(_0x74c675){const _0x10c446={};for(const _0x2de1e3 in _0x74c675['diffData']){if(_0x74c675['diffData'][_0x2de1e3]['attachChange']&&!_0x74c675['diffData'][_0x2de1e3]['attachChange']['isAttached'])continue;const _0x30fe3b=this['_removeRevisionMarkers'](JSON['parse'](_0x74c675['diffData'][_0x2de1e3]['insertions'])),_0x5a7f51=this['editor']['editing']['view']['document'],_0x27eb5b=new _0x152374(_0x5a7f51,_0x30fe3b['map'](_0x492db9=>this['_getViewFromDiffObj'](_0x492db9,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x10c446[_0x2de1e3]=this['editor']['data']['processor']['toData'](_0x27eb5b),this['editor']['data']['processor']['useFillerType']('default');}return _0x10c446;}getRevisionRootsAttributes(_0x1abcc1){const _0xf3e927={};for(const _0x4acf11 in _0x1abcc1['diffData'])_0x1abcc1['diffData'][_0x4acf11]['attachChange']&&!_0x1abcc1['diffData'][_0x4acf11]['attachChange']['isAttached']||(_0xf3e927[_0x4acf11]=_0x1abcc1['diffData'][_0x4acf11]['attributesAfter']||{});return _0xf3e927;}getRevisionRootsModelElements(_0x4f063a){const _0x2afa44={};for(const _0x3330f5 in _0x4f063a['diffData']){if(_0x4f063a['diffData'][_0x3330f5]['attachChange']&&!_0x4f063a['diffData'][_0x3330f5]['attachChange']['isAttached'])continue;const _0x546167=_0x4f063a['diffData'][_0x3330f5]['rootElementName'];_0x546167&&(_0x2afa44[_0x3330f5]=_0x546167);}return _0x2afa44;}_getTypeCharForViewElement(_0x52f66a){return this['_viewClassToTypeChar']['get'](_0x52f66a['constructor']);}_getViewFromDiffObj(_0x3f492b,_0x1a37c3){const _0x20a5eb=this['editor']['editing']['view']['document'];if('string'==typeof _0x3f492b)return new _0x49b0da(_0x20a5eb,_0x3f492b);{let _0x1c9f74,_0x5eda61;_0x5eda61='u'==_0x3f492b['type']||'r'==_0x3f492b['type']?[]:_0x3f492b['children']['map'](_0x34e335=>this['_getViewFromDiffObj'](_0x34e335,_0x1a37c3));const _0x224e73=this['_typeCharToViewClass']['get'](_0x3f492b['type'])||_0x7ee47a,_0x6a771d=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x1c9f74=new _0x224e73(_0x20a5eb,_0x3f492b['name'],_0x3f492b['attributes'],_0x5eda61),'u'==_0x3f492b['type']&&_0x3f492b['children'][0x0]){const _0x26ace2=_0x3f492b['children'][0x0];if(_0x1c9f74['render']=function(_0x4345b3){const _0x8bef43=_0x4345b3['createElement']('div');return _0x8bef43['innerHTML']=_0x26ace2,_0x8bef43['childNodes'][0x0];},_0x1a37c3){const _0x52fc87=new _0x152374(_0x20a5eb);_0x52fc87['_appendChild'](_0x1c9f74);const _0x1065e4=Array['from'](_0x6a771d['viewChildrenToDom'](_0x52fc87,{'bind':!0x1})),_0x3e511e=_0x6a771d['domDocument']['createElement']('div');_0x3e511e['append'](..._0x1065e4),_0x1c9f74=Array['from'](_0x6a771d['domChildrenToView'](_0x3e511e))[0x0];}}else{if('r'==_0x3f492b['type']&&_0x3f492b['children'][0x0]){const _0x6da898=_0x3f492b['children'][0x0];if(_0x1c9f74['render']=function(_0x3bc518){_0x3bc518['innerHTML']=_0x6da898;},_0x1a37c3){const _0x1c1659=new _0x152374(_0x20a5eb);_0x1c1659['_appendChild'](_0x1c9f74);const _0x22453e=Array['from'](_0x6a771d['viewChildrenToDom'](_0x1c1659,{'bind':!0x1})),_0x21992e=_0x6a771d['domDocument']['createElement']('div');_0x21992e['append'](..._0x22453e);const _0x2b34b4=Array['from'](_0x6a771d['domChildrenToView'](_0x21992e));_0x2b34b4['length']>0x1?_0x1c9f74['_appendChild'](_0x2b34b4):_0x1c9f74=_0x2b34b4[0x0];}}}if(_0x3f492b['customProperties']){for(const [_0x2f1184,_0x17eae2]of _0x3f492b['customProperties'])_0x1c9f74['_setCustomProperty'](_0x2f1184,_0x17eae2);}const _0x3267d9=void 0x0===_0x3f492b['fillerOffset']?null:_0x3f492b['fillerOffset'];return null!==_0x3267d9&&(_0x1c9f74['getFillerOffset']=()=>_0x3267d9),_0x1c9f74;}}_makeModelFromViewString(_0x245128,_0xab79b3){const _0x26c312=JSON['parse'](_0x245128),_0x4f4f33=this['editor']['editing']['view']['document'],_0x1782b0=new _0x152374(_0x4f4f33,_0x26c312['map'](_0x4337c0=>this['_getViewFromDiffObj'](_0x4337c0,!0x0))),_0x3352e8=this['editor']['data']['toModel'](_0x1782b0,_0xab79b3);return _0x3352e8['name']=_0xab79b3,_0x3352e8;}['_removeRevisionMarkers'](_0x4982ea){return(_0x4982ea=_0x4982ea['filter'](_0x326334=>!_0x326334['name']||'revision-start'!==_0x326334['name']&&'revision-end'!==_0x326334['name']))['forEach'](_0x4f7c09=>{'string'!=typeof _0x4f7c09&&(_0x4f7c09['children']=this['_removeRevisionMarkers'](_0x4f7c09['children']),_0x4f7c09['attributes']=_0x4f7c09['attributes']['filter'](_0x4f53f9=>!_0x4f53f9[0x0]['startsWith']('data-revision-')));}),_0x4982ea;}};function jN(_0x32eb80,_0x3b3842,_0xe4ca9c){const t=_0x32eb80['t'];switch(_0x3b3842){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0xe4ca9c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xe4ca9c);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}var UN=class extends _0x11fe30{['licenseKey'];_licenseKeyCheckInterval;currentRevision=null;repository;adapter=null;_revisionDataBuilder;['_source'];_initialRevisionId;_bufferedUpdates;_utils;_pendingAction;_continueCurrentRevision;_startingVersion;_loadedStateData;static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[Al,DN,QN,_0x88e4e2];}constructor(_0x388634){super(_0x388634),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new VN(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x27ce5f=_0xea66bb();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x27ce5f},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}init(){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x84e295=this['repository']['getRevision'](0x0),_0xa1df74=_0x84e295&&null===_0x84e295['creator']?_0x84e295:null;if(this['_continueCurrentRevision']=!!_0xa1df74&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1d3108=this['_source']['getCurrentRevisionId'](),_0xbfa652=this['repository']['getRevision'](_0x1d3108);if(_0xbfa652)this['_startingVersion']=_0xbfa652['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x48fe10=this['_source']['history']['_operations']['find'](_0x4a1cd8=>!_0x4a1cd8['_isInit']),_0x4f168c=_0x48fe10?_0x48fe10['baseVersion']:this['_source']['history']['version'];_0x84e295?(_0x84e295['toVersion']<_0x4f168c&&_0x84e295['_update']({'toVersion':_0x4f168c}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xa1df74['id'],this['_startingVersion']=_0xa1df74['fromVersion']):(this['_startingVersion']=_0x84e295['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4f168c,this['_continueCurrentRevision']=!0x1);}}else _0xa1df74&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xa1df74['toVersion'],this['editor']['model']['document']['history']['version']),_0xa1df74['fromVersion']===_0xa1df74['toVersion']?(0x0!==_0xa1df74['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xa1df74['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xa1df74['id'],this['_startingVersion']=_0xa1df74['fromVersion'])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor']['model']['document']['version']);this['_revisionDataBuilder']['init'](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x51e7f4=>!_0x51e7f4),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x43a3ec=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x32b3c9;for(const _0x17e476 in _0x43a3ec){const _0x3087ed=_0x17e476,_0x4e2f84=_0x43a3ec[_0x3087ed];if('revisionHistoryLicenseKeyValid'==_0x4e2f84||'revisionHistoryLicenseKeyInvalid'==_0x4e2f84||'revisionHistoryLicenseKeyExpired'==_0x4e2f84||'revisionHistoryLicenseKeyDomainLimit'==_0x4e2f84||'revisionHistoryLicenseKeyNotAllowed'==_0x4e2f84||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4e2f84||'revisionHistoryLicenseKeyUsageLimit'==_0x4e2f84){delete _0x43a3ec[_0x3087ed],_0x32b3c9=_0x4e2f84,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x32b3c9&&_0x43a3ec['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x32b3c9&&_0x43a3ec['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x32b3c9&&_0x43a3ec['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x32b3c9&&_0x43a3ec['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x32b3c9&&_0x43a3ec['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x32b3c9&&_0x43a3ec['_showLicenseError']('usageLimit');},0x3e8);}async afterInit(){if(this['repository']['length']>0x0){const _0x160320=this['repository']['getRevision'](0x0),_0x31e364=await this['getRevisionDocumentData'](_0x160320),_0x353e20=await this['getRevisionRootsAttributes'](_0x160320),_0x3b061f=this['_utils']['getRevisionRootsModelElements'](_0x160320);this['_replaceEditorDataWithRevisionData'](_0x31e364,_0x353e20,_0x3b061f);}}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}setSource(_0x3c5492){this['_source']=_0x3c5492;}async update(){const _0x338fb9=await this['_source']['getLatestVersion']();if(_0x338fb9>this['currentRevision']['toVersion']){await this['_loadState']();const _0x166684=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x338fb9});_0x166684['authors']=_0x166684['authorsIds']['map'](_0x55bfed=>this['editor']['plugins']['get']('Users')['getUser'](_0x55bfed)),this['currentRevision']['_update'](_0x166684);}}async['saveRevision'](_0x56dc40={},_0x440c5f=null){const _0x2442c7=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x440c5f>this['currentRevision']['toVersion']&&(_0x440c5f=null),null===_0x440c5f&&(_0x440c5f=await this['_source']['getLatestVersion']());const _0x62be5=this['_getFromVersion'](_0x440c5f),_0x4c685f=this['buildRevisionData']({'from':_0x62be5,'to':_0x440c5f});if(this['currentRevision']['toVersion']<_0x440c5f){const _0x558e21=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x440c5f,'to':_0x440c5f});_0x558e21['authors']=[],_0x558e21['authorsIds']=[],_0x558e21['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x558e21,!0x0),delete _0x558e21['authors'],_0x2442c7['push'](_0x558e21);}_0x56dc40['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x56dc40['name']=_0x56dc40['name']||null,_0x56dc40['id']=_0x56dc40['id']||_0xea66bb(),_0x56dc40={..._0x56dc40,..._0x4c685f};const _0x2f0623=this['addRevisionData'](_0x56dc40);_0x2442c7['push'](_0x56dc40);const _0x582ab0=this['repository']['getIndex'](_0x2f0623);if(0x0!==_0x582ab0){const _0x109232=this['repository']['getRevision'](_0x582ab0-0x1);if(_0x109232['fromVersion']!==_0x440c5f){const _0x265977=this['_revisionDataBuilder']['getData'](_0x440c5f,_0x109232['toVersion']),_0x2d54df={'id':_0x109232['id'],'diffData':_0x265977['diffData'],'authorsIds':_0x265977['authorsIds'],'authors':_0x265977['authorsIds']['map'](_0x4e8bab=>this['editor']['plugins']['get']('Users')['getUser'](_0x4e8bab)),'fromVersion':_0x440c5f};_0x109232===this['currentRevision']&&(_0x2d54df['createdAt']=new Date(_0x56dc40['createdAt']['getTime']()+0xa)),_0x109232['_update'](_0x2d54df,!0x0),delete _0x2d54df['authors'],_0x2442c7['push'](_0x2d54df);}}if(this['adapter']){for(const _0x2f1fae of _0x2442c7)this['_bufferUpdate'](_0x2f1fae['id'],_0x2f1fae,!0x0);this['sendBufferedUpdates']();}return _0x2f0623;}addRevisionData(_0x439854){const _0x2b38f6=this['repository']['createRevision'](_0x439854);return this['adapter']&&_0x2b38f6['on']('_update',(_0x2344ed,_0x291e24,_0x275787)=>{_0x275787||(this['_bufferUpdate'](_0x291e24['id'],_0x291e24,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2b38f6,this['_findInsertionIndex'](_0x2b38f6)),_0x2b38f6;}async getRevisionDocumentData(_0x2a9140){return await this['_utils']['loadRevisionData'](_0x2a9140,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2a9140);}async getRevisionRootsAttributes(_0x90aa9f){return await this['_utils']['loadRevisionData'](_0x90aa9f,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x90aa9f);}sendBufferedUpdates(){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4bab2b=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4791ad=0x0;_0x4791ad<_0x4bab2b['length'];_0x4791ad++){const _0x590b59=_0x4bab2b[_0x4791ad];let _0x2530e9=!0x1;for(const _0x98878f of Object['keys'](_0x590b59))void 0x0===_0x590b59[_0x98878f]?delete _0x590b59[_0x98878f]:'id'!==_0x98878f&&(_0x2530e9=!0x0);_0x2530e9||(_0x4bab2b[_0x4791ad]=null);}if(_0x4bab2b=_0x4bab2b['filter'](_0x349255=>null!==_0x349255),!_0x4bab2b['length'])return;for(let _0x129ea8=0x0;_0x129ea8<_0x4bab2b['length'];_0x129ea8++){const _0x2d1c00=_0x4bab2b[_0x129ea8];void 0x0!==_0x2d1c00['fromVersion']&&void 0x0===_0x2d1c00['toVersion']&&(_0x2d1c00['toVersion']=this['repository']['getRevision'](_0x2d1c00['id'])['toVersion']),void 0x0!==_0x2d1c00['toVersion']&&void 0x0===_0x2d1c00['fromVersion']&&(_0x2d1c00['fromVersion']=this['repository']['getRevision'](_0x2d1c00['id'])['fromVersion']);}const _0x2bcdca=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4bab2b,_0x2bcdca)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3d122d=>{if(_0x3d122d){for(const _0x5fe1bc of _0x3d122d)this['setRevisionData']({'id':_0x5fe1bc['id'],'createdAt':_0x5fe1bc['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}buildRevisionData({revision:_0x462f0f=null,from:_0x5a7bd2=null,to:_0x2ecfe7=null}){_0x5a7bd2=null!==_0x5a7bd2?_0x5a7bd2:_0x462f0f['fromVersion'],_0x2ecfe7=null!==_0x2ecfe7?_0x2ecfe7:_0x462f0f['toVersion'];const _0x1bfc04=this['_revisionDataBuilder']['getData'](_0x5a7bd2,_0x2ecfe7),_0x197b6c={'diffData':_0x1bfc04['diffData'],'authorsIds':_0x1bfc04['authorsIds'],'fromVersion':_0x5a7bd2,'toVersion':_0x2ecfe7};if(!_0x462f0f||_0x2ecfe7!==_0x462f0f['toVersion']){const _0x24f589=_0x2ecfe7-0x1,_0x97cb94=this['_source']['history']['getOperation'](_0x24f589);_0x197b6c['createdAt']=_0x97cb94&&_0x97cb94['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5a7bd2===this['_loadedStateData']['fromVersion']){for(const _0x38e7f6 of this['_loadedStateData']['authors'])_0x197b6c['authorsIds']['includes'](_0x38e7f6['id'])||_0x197b6c['authorsIds']['push'](_0x38e7f6['id']);}return _0x197b6c;}_bufferUpdate(_0x537c6a,_0x475f50,_0x260f50){if(this['_bufferedUpdates']['has'](_0x537c6a)){const _0xf12ca3=this['_bufferedUpdates']['get'](_0x537c6a);_0x475f50=_0x260f50?{..._0xf12ca3,..._0x475f50}:{..._0x475f50,..._0xf12ca3};}this['_bufferedUpdates']['set'](_0x537c6a,_0x475f50);}setRevisionData(_0x24204c){const _0x4ac12d=this['repository']['getRevision'](_0x24204c['id']);if(_0x24204c['createdAt']&&(_0x24204c['createdAt']=new Date(_0x24204c['createdAt'])),_0x24204c['authorsIds']){const _0x1aead6=this['editor']['plugins']['get']('Users');_0x24204c['authors']=_0x24204c['authorsIds']['map'](_0x4f2e01=>_0x1aead6['getUser'](_0x4f2e01));}_0x4ac12d['_update'](_0x24204c,!0x0);}_createInitialRevision(_0x3be0a6){const _0x34217f=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x34217f)this['_initialRevisionId']=_0x34217f['id'];else{const _0x1457b6=!this['editor']['model']['document']['roots']['find'](_0x2e90d1=>this['editor']['model']['hasContent'](_0x2e90d1)),_0x4f61e3=this['editor']['plugins']['get']('Users')['me']['id'],_0x1011f6=jN(this['editor']['locale'],_0x1457b6?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3be0a6,'to':_0x3be0a6,'id':this['_initialRevisionId'],'name':_0x1011f6,'creatorId':_0x4f61e3});}}_createCurrentRevision(_0x36ffc8){const _0x2d6f81=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2d6f81),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x36ffc8,'to':_0x36ffc8,'id':_0x2d6f81,'name':'','creatorId':null}));}async _loadState(){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}_replaceEditorDataWithRevisionData(_0x39b36a,_0x40da8d,_0x4c7c65){const _0x2609fb={},_0x2607a4={},_0x598cf5={},_0x472597=this['editor']['config']['get']('roots')||{};for(const [_0x1c2637,_0x6e7868]of Object['entries'](_0x472597))_0x6e7868['lazyLoad']||(_0x2609fb[_0x1c2637]=_0x6e7868['initialData']??'',_0x2607a4[_0x1c2637]=_0x6e7868['modelAttributes']||{},_0x6e7868['modelElement']&&(_0x598cf5[_0x1c2637]=_0x6e7868['modelElement']));for(const _0x5eb101 of this['editor']['model']['document']['getRootNames']())_0x2609fb[_0x5eb101]??='',_0x2607a4[_0x5eb101]??={};let _0x5d73b0=!0x1;const _0x446e8c=Object['keys'](_0x2609fb),_0x4e4129=Object['keys'](_0x39b36a);for(const _0x4e8cdf of _0x446e8c){if(_0x2609fb[_0x4e8cdf]!==_0x39b36a[_0x4e8cdf]&&''!==_0x2609fb[_0x4e8cdf]['trim']()){_0x5d73b0=!0x0;break;}if(!Kr(_0x2607a4[_0x4e8cdf],_0x40da8d[_0x4e8cdf])&&Object['keys'](_0x2607a4[_0x4e8cdf])['length']>0x0){_0x5d73b0=!0x0;break;}const _0x2ab1a9=_0x598cf5[_0x4e8cdf],_0x567e64=_0x4c7c65[_0x4e8cdf];if(_0x2ab1a9&&_0x567e64&&_0x2ab1a9!==_0x567e64){_0x5d73b0=!0x0;break;}}_0x5d73b0||(_0x5d73b0=_0x4e4129['some'](_0x2bd100=>!this['editor']['model']['document']['getRoot'](_0x2bd100))),_0x5d73b0&&_0x53dc7a('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2609fb,'editorRootsAttributes':_0x2607a4,'editorRootsModelElements':_0x598cf5,'revisionData':_0x39b36a,'revisionRootsAttributes':_0x40da8d,'revisionRootsModelElements':_0x4c7c65});for(const [_0x1eb263,_0x312941]of Object['entries'](_0x39b36a))this['editor']['config']['set']('roots.'+_0x1eb263+'.initialData',_0x312941);for(const [_0x33d008,_0x2e7003]of Object['entries'](_0x40da8d))this['editor']['config']['set']('roots.'+_0x33d008+'.modelAttributes',_0x2e7003);const _0x334f10=this['editor']['model']['document'];for(const [_0xf65373,_0xd2875d]of Object['entries'](_0x4c7c65)){this['editor']['config']['set']('roots.'+_0xf65373+'.modelElement',_0xd2875d);const _0x1bb5f5=_0x334f10['getRoot'](_0xf65373);_0x1bb5f5&&_0x1bb5f5['name']!==_0xd2875d&&(_0x334f10['roots']['remove'](_0xf65373),_0x334f10['createRoot'](_0xd2875d,_0xf65373));}}_addPendingAction(){if(!this['_pendingAction']){const _0x43d822=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x43d822['add'](jN(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}_removePendingAction(){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}_findInsertionIndex(_0x1e1d5e){const _0x399512=this['repository']['getRevisions']();_0x399512['reverse']();let _0x3f5798=0x0;for(;_0x3f5798<_0x399512['length'];){const _0x3b4ba8=_0x399512[_0x3f5798];if(_0x3b4ba8===this['currentRevision']){_0x3f5798++;continue;}if(_0x3b4ba8['id']===this['_initialRevisionId'])break;const _0x5c4777=_0x1e1d5e['toVersion']-_0x3b4ba8['toVersion']||_0x1e1d5e['fromVersion']-_0x3b4ba8['fromVersion'];if(_0x5c4777>0x0)break;if(_0x5c4777<0x0)_0x3f5798++;else{if(!_0x1e1d5e['creator']&&_0x3b4ba8['creator'])break;if(_0x3b4ba8['creator']||!_0x1e1d5e['creator']){if(_0x1e1d5e['createdAt']>_0x3b4ba8['createdAt'])break;_0x3f5798++;}else _0x3f5798++;}}return _0x3f5798;}_getFromVersion(_0x189c3d){const _0x11aeb5=this['repository']['getRevisions']();_0x11aeb5['reverse'](),_0x11aeb5['shift']();const _0x47662=_0x11aeb5['find'](_0x2e2397=>_0x2e2397['toVersion']<=_0x189c3d)['toVersion'];return _0x47662<this['_startingVersion']?this['_startingVersion']:_0x47662;}['_makeRevision']({name:_0x219fc1,from:_0x127f3e,to:_0xc9b988,creatorId:_0x5656b2,id:_0x156810}){const _0x45b012=this['buildRevisionData']({'from':_0x127f3e,'to':_0xc9b988});_0x45b012['name']=_0x219fc1,_0x45b012['creatorId']=_0x5656b2,_0x45b012['id']=_0x156810;const _0x121598=this['addRevisionData'](_0x45b012);return this['adapter']&&this['_bufferUpdate'](_0x45b012['id'],_0x45b012,!0x0),_0x121598;}_setConversion(){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}},VN=class{editor;['source'];_savedMetaData;_lastFrom;_lastTo;['_markers'];_diffRoots;_diffRootsAttributes;_baseRoots;_baseRootsAttributes;_idsRoots;_baseIdsRoots;_touched;_touchedMarkers;_touchedRoots;['_revisionId'];_startingRevisionId;constructor(_0x390bdf){this['editor']=_0x390bdf,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}init(_0x45b1d2){this['source']=_0x45b1d2;const _0x3c20e4=new Map(),_0x5e5617=new Map(),_0x149a44=this['editor']['model']['document']['roots']['map'](_0x28fc5b=>_0x28fc5b['rootName']);for(const _0x1bab3f of _0x149a44){const _0x247521=this['editor']['model']['document']['getRoot'](_0x1bab3f),_0x23a06e=BN(_0x247521);_0x3c20e4['set'](_0x1bab3f,_0x23a06e),_0x5e5617['set'](_0x1bab3f,Object['fromEntries'](_0x247521['getAttributes']()));}const _0x131696=Array['from'](this['editor']['model']['markers'])['map'](_0xaf37d1=>[_0xaf37d1['name'],_0xaf37d1['getRange']()]),_0xddb5b2=this['source']['version'];this['_saveMetaData'](_0xddb5b2,_0x3c20e4,_0x131696,_0x5e5617),this['_startingRevisionId']=this['_revisionId'];const _0x5594bf=new Map(),_0x29ca9f=new Map();for(const _0x1fbb91 of _0x149a44){const _0x8b131c=HN(_0x1fbb91,this['editor']['model']['document']['getRoot'](_0x1fbb91)['name']);_0x5594bf['set'](_0x1fbb91,_0x8b131c),_0x29ca9f['set'](_0x1fbb91,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5594bf,[],_0x29ca9f);}getData(_0x43ab54,_0x1503cd){if(this['_lastFrom']===_0x43ab54&&this['_lastTo']<=_0x1503cd)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1503cd,!0x0);else{if(!this['_savedMetaData']['has'](_0x43ab54)){const _0x2c2905=this['_getPreviousFrom'](_0x43ab54);this['_calculateMetaData'](_0x2c2905,_0x43ab54,!0x1);}this['_calculateMetaData'](_0x43ab54,_0x1503cd,!0x0);}return this['_lastFrom']=_0x43ab54,this['_lastTo']=_0x1503cd,this['_getState']();}loadState(_0x4982d4){if(!this['_savedMetaData']['has'](_0x4982d4['fromVersion'])){const _0x5453b6=this['_getPreviousFrom'](_0x4982d4['fromVersion']);this['_calculateMetaData'](_0x5453b6,_0x4982d4['fromVersion'],!0x1);}this['_calculateMetaData'](_0x4982d4['fromVersion'],_0x4982d4['toVersion'],!0x1);const _0x3b20fc=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4982d4['fromVersion'],this['_lastTo']=_0x4982d4['toVersion'];for(const _0x364b75 in _0x4982d4['diffData']){const _0x490efd=_0x4982d4['diffData'][_0x364b75]['attachChange'],_0x3cb3f1=so(_0x4982d4['diffData'][_0x364b75]['attributesBefore'])||{},_0x135392=_0x4982d4['diffData'][_0x364b75],_0x34adfc=_0x3b20fc['_makeModelFromViewString'](_0x135392['deletions'],_0x135392['rootElementName']||'$root');_0x34adfc['rootName']=_0x364b75,_0x34adfc['_isAttached']=!_0x490efd||!_0x490efd['isAttached'],_0x34adfc['isAttached']=()=>_0x34adfc['_isAttached'],this['_baseRoots']['set'](_0x364b75,_0x34adfc),this['_baseRootsAttributes']['set'](_0x364b75,_0x3cb3f1),_0x490efd&&this['_touchedRoots']['set'](_0x364b75,_0x490efd);const _0x2a8035=this['_makeIdsRoot'](_0x34adfc);this['_baseIdsRoots']['set'](_0x364b75,_0x2a8035);for(const [_0x3ada94,_0x43b674]of _0x34adfc['markers']){if(!_0x3ada94['startsWith']('revision:'))continue;const _0x582a3f=_0x3ada94['split'](':')[0x2];for(const _0x166ebc of _0x43b674['getWalker']({'singleCharacters':!0x0})){const _0x2d55c1=this['_getVidAttributeName'](_0x166ebc),_0x228231='elementEnd'==_0x166ebc['type']?_0x166ebc['previousPosition']['path']['slice'](0x0,-0x1):_0x166ebc['previousPosition']['path'],_0xef45b7=_0x2a8035['getNodeByPath'](_0x228231)['getAttribute'](_0x2d55c1);this['_touched']['set'](_0xef45b7,{'userId':_0x582a3f});}_0x34adfc['markers']['delete'](_0x3ada94);}}this['_startingRevisionId']=this['_revisionId'];const _0x4ba321=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xcbe817=>!this['_touched']['has'](_0xcbe817));let _0x5819d7=0x0;const _0x1ce461=new Map();for(const _0x42a2ed in _0x4982d4['diffData']){const _0x181b48=_0x4982d4['diffData'][_0x42a2ed]['attachChange'],_0x389af5=so(_0x4982d4['diffData'][_0x42a2ed]['attributesAfter'])||{},_0x1bab0c=_0x4982d4['diffData'][_0x42a2ed],_0x275481=_0x3b20fc['_makeModelFromViewString'](_0x1bab0c['insertions'],_0x1bab0c['rootElementName']||'$root');_0x275481['rootName']=_0x42a2ed,_0x275481['_isAttached']=!_0x181b48||_0x181b48['isAttached'],_0x275481['isAttached']=()=>_0x275481['_isAttached'],this['_diffRoots']['set'](_0x42a2ed,_0x275481),this['_diffRootsAttributes']['set'](_0x42a2ed,_0x389af5);const _0x103a1a=this['_makeIdsRoot'](_0x275481,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x42a2ed,_0x103a1a),_0x1ce461['set'](_0x42a2ed,_0x275481['isAttached']()?_0x389af5:{});for(const [_0x51207b,_0x863155]of _0x275481['markers']){if(!_0x51207b['startsWith']('revision:'))continue;const _0x2dcc8f=_0x51207b['split'](':')[0x2];for(const _0x20769e of _0x863155['getWalker']({'singleCharacters':!0x0})){const _0x2c3c19=this['_getVidAttributeName'](_0x20769e),_0x3858d2=this['_revisionId']++,_0x1071d1='elementEnd'==_0x20769e['type']?_0x20769e['previousPosition']['path']['slice'](0x0,-0x1):_0x20769e['previousPosition']['path'];_0x103a1a['getNodeByPath'](_0x1071d1)['_setAttribute'](_0x2c3c19,_0x3858d2),this['_touched']['set'](_0x3858d2,{'userId':_0x2dcc8f});}_0x275481['markers']['delete'](_0x51207b);}for(const _0x122f80 of this['editor']['model']['createRangeIn'](_0x275481)['getWalker']({'singleCharacters':!0x0})){const _0x1ca18a=this['_getVidAttributeName'](_0x122f80),_0x41499c='elementEnd'==_0x122f80['type']?_0x122f80['previousPosition']['path']['slice'](0x0,-0x1):_0x122f80['previousPosition']['path'],_0x5acd6f=_0x103a1a['getNodeByPath'](_0x41499c);_0x5acd6f['getAttribute'](_0x1ca18a)>0x0||_0x5acd6f['_setAttribute'](_0x1ca18a,_0x4ba321[_0x5819d7++]);}for(const [_0x24d581,_0x43633a]of _0x275481['markers'])_0x24d581['startsWith']('revision:')||this['_markers']['set'](_0x24d581,_0x43633a);}const {roots:_0x5aa13e}=this['_savedMetaData']['get'](_0x4982d4['fromVersion']),{roots:_0xd50bfe}=this['_savedMetaData']['get'](_0x4982d4['toVersion']),_0x11742f=BN(_0x5aa13e['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x11742f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x11742f,Number['NEGATIVE_INFINITY']));const _0x3adef6=BN(_0xd50bfe['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x3adef6),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3adef6));const _0x3e89c2=Array['from'](this['_diffRoots'])['map'](([_0x447149,_0x46cdfa])=>[_0x447149,BN(_0x46cdfa)]);this['_saveMetaData'](this['_lastTo'],_0x3e89c2,this['_markers'],_0x1ce461);}reInit(){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}_saveMetaData(_0x39f597,_0x3a9878,_0x34381d,_0x15c1a8){const _0xd81b1a=new Map(_0x3a9878),_0x4087fa=new Map(so(_0x15c1a8)),_0x113105=new Map();for(const [_0xb0ca61,_0x5ab105]of _0x34381d)_0x113105['set'](_0xb0ca61,{'start':_0x5ab105['start']['clone'](),'end':_0x5ab105['end']['clone'](),'rootName':_0x5ab105['root']['rootName']});this['_savedMetaData']['set'](_0x39f597,{'roots':_0xd81b1a,'markers':_0x113105,'rootsAttributes':_0x4087fa});}_removeMetaData(_0x25c4ff){this['_savedMetaData']['delete'](_0x25c4ff);}_reset(){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}_makeIdsRoot(_0x3f1e7e,_0x4565f1=null){let _0x21c080=null;_0x3f1e7e['is']('documentFragment')||(_0x21c080=new _0x284373(_0x3f1e7e['name'],{'vid_start':null===_0x4565f1?this['_revisionId']++:_0x4565f1++}));const _0x502c06=[];for(const _0x1333e4 of _0x3f1e7e['getChildren']())if(_0x1333e4['is']('element')){_0x502c06['push'](this['_makeIdsRoot'](_0x1333e4,_0x4565f1));const _0x18803d=_0x502c06[_0x502c06['length']-0x1];null!==_0x4565f1&&(_0x4565f1=_0x18803d['is']('element','$text')?_0x18803d['getAttribute']('vid')+0x1:_0x18803d['getAttribute']('vid_end')+0x1);}else{for(let _0x1f0e0c=0x0;_0x1f0e0c<_0x1333e4['offsetSize'];_0x1f0e0c++)_0x502c06['push'](new _0x284373('$text',{'vid':null===_0x4565f1?this['_revisionId']++:_0x4565f1++}));}if(_0x3f1e7e['is']('documentFragment')){const _0x40c7f6=HN(_0x3f1e7e['rootName'],_0x3f1e7e['name']);return _0x40c7f6['_insertChild'](0x0,_0x502c06),_0x40c7f6;}return _0x21c080['_setAttribute']('vid_end',null===_0x4565f1?this['_revisionId']++:_0x4565f1),_0x21c080['_insertChild'](0x0,_0x502c06),_0x21c080;}_calculateMetaData(_0x35e3cb,_0x39908e,_0x14a90f){this['_reset']();const {roots:_0x5f5274,markers:_0x296eda,rootsAttributes:_0x93867a}=this['_savedMetaData']['get'](_0x35e3cb);this['_baseRoots']=new Map(_0x5f5274),this['_baseRootsAttributes']=new Map(so(_0x93867a));for(const [_0x23b70d,_0x20d46b]of this['_baseRoots'])if('$graveyard'!==_0x23b70d&&(this['_diffRoots']['set'](_0x23b70d,BN(_0x20d46b)),this['_diffRootsAttributes']=new Map(so(_0x93867a)),_0x14a90f)){const _0x3242b4=this['_revisionId'];this['_idsRoots']['set'](_0x23b70d,this['_makeIdsRoot'](_0x20d46b)),this['_baseIdsRoots']['set'](_0x23b70d,this['_makeIdsRoot'](_0x20d46b,_0x3242b4));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',BN(this['_baseRoots']['get']('$graveyard'))),_0x14a90f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5345ab,_0x18c13a]of _0x296eda){const _0x305a8d=this['_baseRoots']['get'](_0x18c13a['rootName']),_0x1a3e4a=this['_diffRoots']['get'](_0x18c13a['rootName']),_0x3c4075=new _0x45ca57(this['_fixPosition'](_0x18c13a['start'],_0x305a8d),this['_fixPosition'](_0x18c13a['end'],_0x305a8d)),_0x16e914=this['_fixRange'](_0x3c4075,_0x1a3e4a);_0x305a8d['markers']['set'](_0x5345ab,_0x3c4075),this['_markers']['set'](_0x5345ab,_0x16e914);}this['_applyOperations'](_0x35e3cb,_0x39908e,_0x14a90f);}_applyOperations(_0x1f25d7,_0x3f894e,_0x2f8246){for(const _0x3c5c5d of this['source']['getOperations'](_0x1f25d7,_0x3f894e))this['_handleOperation'](_0x3c5c5d,_0x2f8246);for(const _0x299fd2 of this['_diffRoots']['values']())_0x299fd2['markers']['clear']();for(const [_0x3d1ddb,_0x4388a9]of this['_markers'])this['_diffRoots']['get'](_0x4388a9['root']['rootName'])['markers']['set'](_0x3d1ddb,_0x4388a9['clone']());const _0x24033f=new Map(),_0x17f2ef=new Map();for(const [_0x31865f,_0x50d16c]of this['_diffRoots'])_0x24033f['set'](_0x31865f,BN(_0x50d16c)),_0x17f2ef['set'](_0x31865f,this['_diffRootsAttributes']['get'](_0x31865f));this['_saveMetaData'](_0x3f894e,_0x24033f,this['_markers'],_0x17f2ef);}_getPreviousFrom(_0x1358ea){const _0x23fcf9=Array['from'](this['_savedMetaData']['keys']());_0x23fcf9['sort']((_0x37352d,_0x52ce23)=>_0x37352d-_0x52ce23),_0x23fcf9['reverse']();for(const _0x18a775 of _0x23fcf9)if(_0x18a775<_0x1358ea)return _0x18a775;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2ee66c,_0x51a366){const _0x42ca11=Array['from'](_0x51a366['markers'])['map'](([_0x158072,_0x4b0378])=>[_0x158072,this['_fixRange'](_0x4b0378,_0x2ee66c)]);_0x2ee66c['markers']=new Map(_0x42ca11);}_transformMarkers(_0x5b41a5){for(const _0x22b831 of this['_markers']['values']()){const _0x2e9fd8=_0x22b831['getTransformedByOperation'](_0x5b41a5),_0x1abcdc=_0x45ca57['_createFromRanges'](_0x2e9fd8);_0x22b831['start']=_0x1abcdc['start'],_0x22b831['end']=_0x1abcdc['end'];}}_handleOperation(_0x16f92b,_0x22a371){if('addRoot'!=_0x16f92b['type']&&'detachRoot'!=_0x16f92b['type']){if('insert'==_0x16f92b['type']){const _0x1d7365=_0x16f92b['position']['root'],_0x9c5c9a=_0x1d7365['rootName'],_0x56761b=_0x1d7365['name'];this['_diffRoots']['has'](_0x9c5c9a)||(this['_diffRoots']['set'](_0x9c5c9a,HN(_0x9c5c9a,_0x56761b,!0x0)),this['_diffRootsAttributes']['set'](_0x9c5c9a,{}),_0x22a371&&this['_idsRoots']['set'](_0x9c5c9a,HN(_0x9c5c9a,_0x56761b,!0x0)));}else{if('addRootAttribute'==_0x16f92b['type']||'removeRootAttribute'==_0x16f92b['type']||'changeRootAttribute'==_0x16f92b['type'])return void this['_handleRootAttributeOperation'](_0x16f92b);'marker'==_0x16f92b['type']&&this['_handleMarkerOperation'](_0x16f92b);}if('marker'!==_0x16f92b['type']){const _0x417dde=this['_cloneOperation'](_0x16f92b,this['_diffRoots']);_0x417dde['_execute'](),this['_transformMarkers'](_0x417dde);}if(_0x22a371)switch(_0x16f92b['type']){case'insert':this['_handleInsertOperation'](_0x16f92b);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x16f92b);break;case'merge':this['_handleMergeOperation'](_0x16f92b);break;case'split':this['_handleSplitOperation'](_0x16f92b);}}else this['_handleRootOperation'](_0x16f92b,_0x22a371);}_cloneOperation(_0x1c4a5f,_0x1782bb){const _0xb77fea=_0x1c4a5f['clone']();return _0xb77fea['_authorId']=_0x1c4a5f['_authorId'],this['_fixOperation'](_0xb77fea,_0x1782bb),_0xb77fea;}_getBaseVids(_0xf9786a){return _0xf9786a['map'](_0x2d50e6=>{const _0x4d9e09=this['_getVidAttributeName'](_0x2d50e6);return Number(_0x2d50e6['item']['getAttribute'](_0x4d9e09));});}_generateTape(_0x18810c,_0x3ce90b){if(_0x18810c['is']('element','$text'))_0x3ce90b['push']({'item':_0x18810c,'type':'text'});else{_0x18810c['is']('element')&&_0x3ce90b['push']({'item':_0x18810c,'type':'elementStart'});for(const _0x110034 of _0x18810c['getChildren']())this['_generateTape'](_0x110034,_0x3ce90b);_0x18810c['is']('element')&&_0x3ce90b['push']({'item':_0x18810c,'type':'elementEnd'});}return _0x3ce90b;}_getState(){const _0x282e3a=new Map(this['_touched']),_0x3608af=new Map(_0x282e3a),_0x21f2ac=new Map(),_0x6dec70={'insertions':{},'deletions':{}},_0x47a4c0={'insertions':{},'deletions':{}},_0x2c97af=new Map(),_0x3eacaf=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]),_0x190414=new Map();_0x3eacaf['delete']('$graveyard');for(const _0x5539d2 of _0x3eacaf){const _0x28ccf5=(this['_diffRoots']['get'](_0x5539d2)??this['_baseRoots']['get'](_0x5539d2))['name'],_0x450ef5=this['_diffRoots']['get'](_0x5539d2)||HN(_0x5539d2,_0x28ccf5,!0x1),_0x5e65ed=this['_baseRoots']['get'](_0x5539d2)||HN(_0x5539d2,_0x28ccf5,!0x1);_0x450ef5['isAttached']()||_0x5e65ed['isAttached']()?(_0x190414['set'](_0x5539d2,_0x28ccf5),_0x6dec70['insertions'][_0x5539d2]=BN(_0x450ef5),_0x6dec70['deletions'][_0x5539d2]=BN(_0x5e65ed),this['_copyMarkers'](_0x6dec70['deletions'][_0x5539d2],_0x5e65ed),this['_copyMarkers'](_0x6dec70['insertions'][_0x5539d2],_0x450ef5),_0x47a4c0['insertions'][_0x5539d2]=this['_generateTape'](this['_idsRoots']['get'](_0x5539d2),[]),_0x47a4c0['deletions'][_0x5539d2]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5539d2)||HN(_0x5539d2,_0x28ccf5,!0x1),[])):_0x3eacaf['delete'](_0x5539d2);}for(const _0x431e65 of _0x3eacaf){const _0x4512ce=_0x47a4c0['insertions'][_0x431e65];for(const _0x3a5d97 of _0x4512ce){const _0x5100f0=this['_getVidAttributeName'](_0x3a5d97),_0x585f5c=_0x3a5d97['item']['getAttribute'](_0x5100f0);_0x3608af['delete'](_0x585f5c),_0x585f5c>=this['_startingRevisionId']&&_0x21f2ac['set'](_0x585f5c,_0x282e3a['get'](_0x585f5c));}}for(const _0x5d8ee1 of _0x3eacaf){const _0x4b7ea1=_0x47a4c0['insertions'][_0x5d8ee1],_0x1ce033=this['_getBaseVids'](_0x47a4c0['deletions'][_0x5d8ee1]);let _0x2e681b=0x0;for(const _0x5b2075 of _0x4b7ea1){const _0x3e498b=this['_getVidAttributeName'](_0x5b2075),_0x50543b=_0x5b2075['item']['getAttribute'](_0x3e498b);if(!_0x21f2ac['has'](_0x50543b)&&!_0x2c97af['has'](_0x50543b)){if(_0x3608af['has'](_0x50543b))_0x2e681b++;else{if(_0x50543b!=_0x1ce033[_0x2e681b]){const _0x2c937a=_0x282e3a['get'](_0x50543b)||_0x282e3a['get'](_0x1ce033[_0x2e681b]);for(;_0x50543b!=_0x1ce033[_0x2e681b];)_0x3608af['has'](_0x1ce033[_0x2e681b])||(_0x2c97af['set'](_0x1ce033[_0x2e681b],_0x2c937a),_0x282e3a['set'](_0x1ce033[_0x2e681b],_0x2c937a)),_0x2e681b++;}_0x2e681b++;}}}}for(const _0x256082 of _0x3eacaf){const _0x14df87=_0x47a4c0['insertions'][_0x256082];for(const _0x4cbc14 of _0x14df87){const _0x3dff48=this['_getVidAttributeName'](_0x4cbc14),_0x6719c7=_0x4cbc14['item']['getAttribute'](_0x3dff48);if(_0x2c97af['has'](_0x6719c7)){const _0x139816=_0x2c97af['get'](_0x6719c7);_0x3608af['has'](_0x6719c7)||_0x3608af['set'](_0x6719c7,{..._0x139816}),_0x21f2ac['set'](_0x6719c7,{..._0x139816});}}}for(const _0x140c46 of _0x3608af['keys']())_0x140c46>=this['_startingRevisionId']&&_0x3608af['delete'](_0x140c46);const _0x23e6c1=new Map();for(const _0x374d20 of _0x3eacaf){let _0x4b4c9b=_0x47a4c0['insertions'][_0x374d20];for(const _0x12ac66 of _0x4b4c9b)if(_0x12ac66['item']['is']('element','tableCell')){const _0x1c212b=this['_getVidAttributeName'](_0x12ac66),_0x37624f=_0x12ac66['item']['getAttribute'](_0x1c212b);if(_0x21f2ac['has'](_0x37624f)){const _0x28c6b8=_0x12ac66['item']['parent']['parent']['getAttribute']('vid_start'),_0x310a61=_0x23e6c1['get'](_0x28c6b8)||new Set();_0x310a61['add'](_0x21f2ac['get'](_0x37624f)['userId']),_0x23e6c1['set'](_0x28c6b8,_0x310a61);}}_0x4b4c9b=_0x47a4c0['deletions'][_0x374d20];for(const _0x67ec0 of _0x4b4c9b)if(_0x67ec0['item']['is']('element','tableCell')){const _0x4b5a36=this['_getVidAttributeName'](_0x67ec0),_0x3ac878=_0x67ec0['item']['getAttribute'](_0x4b5a36);if(_0x3608af['has'](_0x3ac878)){const _0x2f63db=_0x67ec0['item']['parent']['parent']['getAttribute']('vid_start'),_0x55311d=_0x23e6c1['get'](_0x2f63db)||new Set();_0x55311d['add'](_0x3608af['get'](_0x3ac878)['userId']),_0x23e6c1['set'](_0x2f63db,_0x55311d);}}for(const _0x3d1cc7 of _0x23e6c1['keys']())(_0x21f2ac['has'](_0x3d1cc7)||_0x3608af['has'](_0x3d1cc7))&&_0x23e6c1['delete'](_0x3d1cc7);}for(const _0x124942 of _0x3eacaf){const _0xa0d06e=_0x47a4c0['insertions'][_0x124942];let _0x1d0982=null,_0x4423b7=null;for(const _0x39fe5d of _0xa0d06e){const _0x2879c3=this['_getVidAttributeName'](_0x39fe5d),_0x22dcc0=_0x39fe5d['item']['getAttribute'](_0x2879c3),_0x17fa82=_0x23e6c1['get'](_0x22dcc0);_0x17fa82&&'elementStart'==_0x39fe5d['type']&&(_0x1d0982=Array['from'](_0x17fa82)[0x0],_0x4423b7=_0x39fe5d['item']['getAttribute']('vid_end')),_0x1d0982&&(_0x3608af['set'](_0x22dcc0,{'userId':_0x1d0982}),_0x21f2ac['set'](_0x22dcc0,{'userId':_0x1d0982})),_0x22dcc0==_0x4423b7&&(_0x1d0982=null,_0x4423b7=null);}}const _0x8b134b={},_0x4ff93e=new Set();for(const _0x2e448f of _0x3eacaf){const _0x33062b=_0x6dec70['deletions'][_0x2e448f],_0x396516=_0x6dec70['insertions'][_0x2e448f];for(const {userId:_0x10f426}of this['_touchedMarkers']['values']())null!==_0x10f426&&_0x4ff93e['add'](_0x10f426);for(const {userId:_0x3e8317}of this['_touchedRoots']['values']())null!==_0x3e8317&&_0x4ff93e['add'](_0x3e8317);this['_markChanges'](_0x396516,_0x47a4c0['insertions'][_0x2e448f],_0x21f2ac,'insertion',_0x4ff93e),this['_markChanges'](_0x33062b,_0x47a4c0['deletions'][_0x2e448f],_0x3608af,'deletion',_0x4ff93e),_0x8b134b[_0x2e448f]={'insertions':this['_prepareViewToSave'](_0x396516),'deletions':this['_prepareViewToSave'](_0x33062b),'attachChange':this['_touchedRoots']['get'](_0x2e448f)||null,'attributesBefore':so(this['_baseRootsAttributes']['get'](_0x2e448f))||{},'attributesAfter':so(this['_diffRootsAttributes']['get'](_0x2e448f)),'rootElementName':_0x190414['get'](_0x2e448f)};}return{'diffData':_0x8b134b,'authorsIds':Array['from'](_0x4ff93e)};}_processRootBeforeSave(_0x434252){for(const [,_0x159d07]of _0x434252['markers']){const _0x4d5ac9=_0x159d07['start']['getAncestors']()['filter'](_0x39bdb1=>'tableCell'==_0x39bdb1['name']);for(const _0x467c45 of _0x4d5ac9)0x1==_0x467c45['childCount']&&_0x467c45['getChild'](0x0)['is']('element','paragraph')&&_0x467c45['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x58eff6){this['_processRootBeforeSave'](_0x58eff6);const _0x40979d=this['editor']['data']['toView'](_0x58eff6,{}),_0x374aba=Array['from'](_0x40979d['getChildren']())['map'](_0xac2613=>this['_getViewJson'](_0xac2613));return JSON['stringify'](_0x374aba);}_getViewJson(_0x1ec8d9){if(_0x1ec8d9['is']('$text'))return _0x1ec8d9['data'];{const _0x1fe662=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x1c8dea=_0x1ec8d9,_0x498192=this['editor']['data']['htmlProcessor']['domConverter'],_0x1f4721={'type':_0x1fe662['_getTypeCharForViewElement'](_0x1c8dea),'name':_0x1c8dea['name'],'attributes':Array['from'](_0x1c8dea['getAttributes']()),'children':Array['from'](_0x1c8dea['getChildren']())['map'](_0x17999f=>this['_getViewJson'](_0x17999f))};if(_0x1ec8d9['is']('uiElement')&&'$comment'!=_0x1ec8d9['name']){const _0xf0e0b1=_0x1ec8d9['render'](_0x498192['domDocument'],_0x498192);_0x1f4721['children']['push'](_0xf0e0b1['outerHTML']);}else{if(_0x1ec8d9['is']('rawElement')){const _0x38b27d=_0x498192['domDocument']['createElement'](_0x1c8dea['name']);_0x1ec8d9['render'](_0x38b27d,_0x498192),_0x1f4721['children']['push'](_0x38b27d['innerHTML']);}}const _0x59cdb2=Array['from'](_0x1c8dea['getCustomProperties']());_0x59cdb2['length']>0x0&&(_0x1f4721['customProperties']=_0x59cdb2);const _0x5d042b=_0x1c8dea['getFillerOffset']();return null!==_0x5d042b&&(_0x1f4721['fillerOffset']=_0x5d042b),_0x1f4721;}}['_markChanges'](_0x22f091,_0xd3fbd3,_0x168942,_0xd279a8,_0x29a585){let _0x31aa36=null,_0x136f92=null,_0x144e10=0x0;const _0x3137b5=this['editor']['model'];for(let _0x1d76af=0x0;_0x1d76af<_0xd3fbd3['length'];_0x1d76af++){const _0x1e9003=this['_getVidAttributeName'](_0xd3fbd3[_0x1d76af]),_0x44f4a0=_0xd3fbd3[_0x1d76af]['item']['getAttribute'](_0x1e9003),_0x5ab220=_0x168942['get'](_0x44f4a0),_0x3809dd=_0x1d76af==_0xd3fbd3['length']-0x1;!_0x31aa36&&_0x5ab220&&(_0x31aa36=_0x5ab220,_0x136f92=_0xd3fbd3[_0x1d76af]),!_0x31aa36||_0x5ab220&&_0x5ab220['userId']==_0x31aa36['userId']||(_0xd1da30(_0x5ab220,FN(_0x136f92,_0x22f091,_0x3137b5),FN(_0xd3fbd3[_0x1d76af],_0x22f091,_0x3137b5)),_0x31aa36=_0x5ab220||null,_0x136f92=_0x5ab220?_0xd3fbd3[_0x1d76af]:null),_0x31aa36&&_0x3809dd&&_0xd1da30(_0x5ab220,FN(_0x136f92,_0x22f091,_0x3137b5),ZN(_0xd3fbd3[_0x1d76af],_0x22f091,_0x3137b5));}function _0xd1da30(_0x1ced44,_0x31398b,_0x3b91c8){const _0x237871=_0x31aa36['userId'],_0x49a5c2='revision:'+_0xd279a8+':'+_0x237871+':'+_0x144e10++,_0x3af11d=_0x3137b5['createRange'](_0x31398b,_0x3b91c8);_0x22f091['markers']['set'](_0x49a5c2,_0x3af11d),null!==_0x237871&&_0x29a585['add'](_0x237871);}}_getVidAttributeName(_0x2cc805){switch(_0x2cc805['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}_fixOperation(_0x179e58,_0x8fd101){_0x179e58['baseVersion']=null;for(const _0x54a004 in _0x179e58){const _0x48bd19=_0x179e58[_0x54a004];if(_0x48bd19 instanceof _0x34c45c){const _0x3fabcf=_0x8fd101['get'](_0x48bd19['root']['rootName']);_0x179e58[_0x54a004]=this['_fixPosition'](_0x48bd19,_0x3fabcf);}if(_0x48bd19 instanceof _0x45ca57){const _0x46711a=_0x8fd101['get'](_0x48bd19['root']['rootName']);_0x179e58[_0x54a004]=this['_fixRange'](_0x48bd19,_0x46711a);}'root'===_0x54a004&&(_0x179e58['root']=_0x8fd101['get'](_0x179e58['root']['rootName']));}}['_fixRange'](_0xcaddb,_0x195a3b){return this['editor']['model']['createRange'](this['_fixPosition'](_0xcaddb['start'],_0x195a3b),this['_fixPosition'](_0xcaddb['end'],_0x195a3b));}_fixPosition(_0xf333f9,_0x3ee8a6){return this['editor']['model']['createPositionFromPath'](_0x3ee8a6,_0xf333f9['path'],_0xf333f9['stickiness']);}_handleInsertOperation(_0x191945){const _0x536e2b=this['_idsRoots']['get'](_0x191945['position']['root']['rootName']),_0x4a81bc=this['_fixPosition'](_0x191945['position'],_0x536e2b),_0x4f803b=null===_0x191945['_authorId']?null:_0x191945['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x30110f=_0x4a81bc['parent'],_0x1dcc81=this['_revisionId'],_0x10dd2b=[];for(const _0x4463e3 of _0x191945['nodes'])if(_0x4463e3['is']('element'))_0x10dd2b['push'](this['_makeIdsRoot'](_0x4463e3));else{for(let _0x4b70ea=0x0;_0x4b70ea<_0x4463e3['offsetSize'];_0x4b70ea++)_0x10dd2b['push'](new _0x284373('$text',{'vid':this['_revisionId']++}));}const _0xa2ffa3=this['_revisionId'];for(let _0x36247e=_0x1dcc81;_0x36247e<_0xa2ffa3;_0x36247e++)this['_touched']['set'](_0x36247e,{'userId':_0x4f803b});_0x30110f['_insertChild'](_0x4a81bc['offset'],_0x10dd2b);}_handleMoveOperation(_0x59156f){(_0x59156f=this['_cloneOperation'](_0x59156f,this['_idsRoots']))['_execute']();const _0x343683=null===_0x59156f['_authorId']?null:_0x59156f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x30fc77=_0x59156f['getMovedRangeStart'](),_0x7d9270=_0x30fc77['parent'],_0x2dd7ef=_0x30fc77['offset'];!function _0x31fbfe(_0x464051,_0x5295d6,_0x5be1f4,_0x4a34c6){for(let _0x2d8a82=_0x5be1f4;_0x2d8a82<_0x4a34c6;_0x2d8a82++){const _0x32c714=_0x5295d6['getChild'](_0x2d8a82);_0x32c714['is']('element','$text')?_0x464051['set'](_0x32c714['getAttribute']('vid'),{'userId':_0x343683}):(_0x464051['set'](_0x32c714['getAttribute']('vid_start'),{'userId':_0x343683}),_0x31fbfe(_0x464051,_0x32c714,0x0,_0x32c714['childCount']),_0x464051['set'](_0x32c714['getAttribute']('vid_end'),{'userId':_0x343683}));}}(this['_touched'],_0x7d9270,_0x2dd7ef,_0x2dd7ef+_0x59156f['howMany']);}_handleMergeOperation(_0xba0bb1){const _0x59255d=null===(_0xba0bb1=this['_cloneOperation'](_0xba0bb1,this['_idsRoots']))['_authorId']?null:_0xba0bb1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4277ba=_0xba0bb1['targetPosition']['parent'],_0x239cd3=_0xba0bb1['sourcePosition']['parent'],_0x36b93d=_0x4277ba['getAttribute']('vid_end'),_0x2243e2=_0x239cd3['getAttribute']('vid_start');_0x4277ba['_setAttribute']('vid_end',_0x239cd3['getAttribute']('vid_end')),_0x239cd3['_setAttribute']('vid_end',_0x36b93d),this['_touched']['set'](_0x2243e2,{'userId':_0x59255d}),this['_touched']['set'](_0x36b93d,{'userId':_0x59255d}),_0xba0bb1['_execute']();}_handleSplitOperation(_0x197807){const _0x52cedf=null===(_0x197807=this['_cloneOperation'](_0x197807,this['_idsRoots']))['_authorId']?null:_0x197807['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4a1b85=_0x197807['graveyardPosition'],_0xe94a2=_0x197807['splitPosition']['parent'];_0x197807['_execute']();const _0x206511=_0xe94a2['getAttribute']('vid_end'),_0x884d79=_0x197807['insertionPosition']['nodeAfter'];if(_0x4a1b85){const _0x23f59d=_0x884d79['getAttribute']('vid_end'),_0x4bb21c=_0xe94a2['getAttribute']('vid_end');_0xe94a2['_setAttribute']('vid_end',_0x23f59d),_0x884d79['_setAttribute']('vid_end',_0x4bb21c),this['_touched']['set'](_0xe94a2['getAttribute']('vid_end'),{'userId':_0x52cedf}),this['_touched']['set'](_0x884d79['getAttribute']('vid_start'),{'userId':_0x52cedf});}else{const _0x4ad4dc=this['_revisionId']++,_0x1111d2=this['_revisionId']++;_0xe94a2['_setAttribute']('vid_end',_0x4ad4dc),_0x884d79['_setAttribute']('vid_start',_0x1111d2),_0x884d79['_setAttribute']('vid_end',_0x206511),this['_touched']['set'](_0x4ad4dc,{'userId':_0x52cedf}),this['_touched']['set'](_0x1111d2,{'userId':_0x52cedf});}}_handleMarkerOperation(_0x3e7206){if(!_0x3e7206['affectsData'])return;const _0x59b348=(_0x3e7206=this['_cloneOperation'](_0x3e7206,this['_diffRoots']))['oldRange']?_0x3e7206['oldRange']['root']:null,_0x112af0=_0x3e7206['newRange']?_0x3e7206['newRange']['root']:null;_0x59b348&&this['_markers']['delete'](_0x3e7206['name']),_0x112af0&&this['_markers']['set'](_0x3e7206['name'],_0x3e7206['newRange']['clone']());const _0x2e80d6=null===_0x3e7206['_authorId']?null:_0x3e7206['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x65d3f9=_0x3e7206['name'];if(!this['_touchedMarkers']['has'](_0x65d3f9))return void this['_touchedMarkers']['set'](_0x65d3f9,{'range':_0x3e7206['oldRange'],'userId':_0x2e80d6});const _0xe4b9e4=this['_touchedMarkers']['get'](_0x65d3f9),_0x5d6316=_0xe4b9e4['range'],_0x572549=_0x3e7206['newRange'];null==_0x5d6316&&null==_0x572549||_0x5d6316&&_0x572549&&_0x5d6316['isEqual'](_0x572549)?this['_touchedMarkers']['delete'](_0x3e7206['name']):_0xe4b9e4['userId']=_0x2e80d6;}_handleRootOperation(_0x47e5ec,_0x1194da){this['_diffRoots']['has'](_0x47e5ec['rootName'])?this['_diffRoots']['get'](_0x47e5ec['rootName'])['_isAttached']=_0x47e5ec['isAdd']:(this['_diffRoots']['set'](_0x47e5ec['rootName'],HN(_0x47e5ec['rootName'],_0x47e5ec['elementName'],!0x0)),this['_diffRootsAttributes']['set'](_0x47e5ec['rootName'],{}),_0x1194da&&this['_idsRoots']['set'](_0x47e5ec['rootName'],HN(_0x47e5ec['rootName'],_0x47e5ec['elementName'],!0x0)));const _0xd6ad1b=null===_0x47e5ec['_authorId']?null:_0x47e5ec['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x79d71b=this['_touchedRoots']['get'](_0x47e5ec['rootName']);_0x79d71b&&_0x79d71b['userId']===_0xd6ad1b?this['_touchedRoots']['delete'](_0x47e5ec['rootName']):this['_touchedRoots']['set'](_0x47e5ec['rootName'],{'userId':_0xd6ad1b,'isAttached':_0x47e5ec['isAdd']});}_handleRootAttributeOperation(_0x12d632){const _0xeafe99=this['_diffRootsAttributes']['get'](_0x12d632['root']['rootName']);null===_0x12d632['newValue']?delete _0xeafe99[_0x12d632['key']]:_0xeafe99[_0x12d632['key']]=_0x12d632['newValue'];}};function BN(_0x448d42){const _0x30377d=HN(_0x448d42['rootName'],_0x448d42['name'],_0x448d42['isAttached']());for(const _0x3c428f of _0x448d42['getChildren']()){const _0x201026=_0x3c428f['_clone'](!0x0);_0x30377d['_appendChild'](_0x201026);}return _0x30377d;}function HN(_0x3f09f7,_0x16572e,_0x206609=!0x0){const _0x5168b3=new _0x25e1b5();return _0x5168b3['rootName']=_0x3f09f7,_0x5168b3['name']=_0x16572e,_0x5168b3['_isAttached']=_0x206609,_0x5168b3['isAttached']=()=>_0x5168b3['_isAttached'],_0x5168b3;}function FN(_0x1bdcda,_0x8dbf47,_0x510717){const _0x4d86a1='elementEnd'==_0x1bdcda['type']?_0x510717['createPositionAt'](_0x1bdcda['item'],'end'):_0x510717['createPositionBefore'](_0x1bdcda['item']);return _0x510717['createPositionFromPath'](_0x8dbf47,_0x4d86a1['path'],_0x4d86a1['stickiness']);}function ZN(_0x17eb50,_0x28b5d8,_0x437fbe){const _0x495515='elementStart'==_0x17eb50['type']?_0x437fbe['createPositionAt'](_0x17eb50['item'],0x0):_0x437fbe['createPositionAfter'](_0x17eb50['item']);return _0x437fbe['createPositionFromPath'](_0x28b5d8,_0x495515['path'],_0x495515['stickiness']);}const GN=/* #__PURE__ -- @preserve */
_0x1b722c(_0x2f6e1a);var XN=class extends GN{['focusTracker'];keystrokes;revisionNameInputView;constructor(_0x1dd818,_0x64ba49){super(_0x1dd818),this['focusTracker']=new _0x1c95ab(),this['keystrokes']=new _0xa8275a(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x64ba49),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x5840c3({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x464d72=_0x188cec=>_0x188cec['stopPropagation']();this['keystrokes']['set']('arrowright',_0x464d72),this['keystrokes']['set']('arrowleft',_0x464d72),this['keystrokes']['set']('arrowup',_0x464d72),this['keystrokes']['set']('arrowdown',_0x464d72);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x4600ab){this['revisionNameInputView']['fieldView']['element']['value']=_0x4600ab['trim']();}reset(){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}_createRevisionNameInput(_0x3d09d9){const _0x3f2212=new _0x51334f(this['locale'],_0x565b0b),_0x2ec709=_0x3f2212['fieldView'];_0x2ec709['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3cb1ef=jN(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3d09d9&&(_0x3cb1ef+='\x20('+jN(this['locale'],'optional')+')'),(_0x3f2212['label']=_0x3cb1ef,_0x2ec709['on']('input',()=>{this['revisionNameInputValue']=_0x2ec709['element']['value']['trim']();}),_0x3f2212);}},qN=class extends _0x11fe30{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[UN];}['_saveRevisionFormView'];init(){const _0xcf8a3b=this['editor'],_0x1abb01=_0xcf8a3b['plugins']['get']('RevisionTracker');_0xcf8a3b['ui']['componentFactory']['add']('revisionHistory',_0x16a1f9=>{const _0x31b0a6=_0x46490d(_0x16a1f9),_0x2fc3f4=_0x31b0a6['panelView']['children'],_0x4068c7=new _0x19f1e8(_0x16a1f9),_0x5d21b7=new _0x585012(_0x16a1f9),_0x3f1a13=this['_createSaveRevisionButton'](_0x39ae99),_0x5e4b8c=new _0x585012(_0x16a1f9),_0x1d0d09=this['_createOpenRevisionButton'](_0x39ae99);return _0x31b0a6['bind']('isEnabled')['to'](_0x1abb01,'isReady',_0x1abb01,'isEnabled',_0xcf8a3b,'isReadOnly',(_0x1dd54f,_0x581582,_0x51b319)=>_0x1dd54f&&_0x581582&&!_0x51b319),_0x31b0a6['buttonView']['set']({'icon':dt,'label':jN(_0x16a1f9,'Revision\x20history'),'tooltip':!0x0}),_0x3f1a13['set']({'withText':!0x0,'role':'menuitem'}),_0x1d0d09['set']({'withText':!0x0,'role':'menuitem'}),this['listenTo'](_0x1d0d09,'execute',()=>{_0x31b0a6['isOpen']=!0x1,_0xcf8a3b['editing']['view']['focus']();},{'priority':'low'}),_0x5d21b7['children']['add'](_0x3f1a13),_0x5e4b8c['children']['add'](_0x1d0d09),_0x4068c7['role']='menu',_0x4068c7['items']['addMany']([_0x5d21b7,_0x5e4b8c]),_0x2fc3f4['add'](_0x4068c7),_0x31b0a6;}),_0xcf8a3b['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}_registerMenuComponent(){const _0x274677=this['editor'],_0x2ec2c5=_0x274677['locale'],_0x435050=_0x274677['plugins']['get']('RevisionTracker'),_0x321b23=new _0xf2980e(_0x2ec2c5),_0x46b99d=new _0x32d381(_0x2ec2c5);_0x321b23['bind']('isEnabled')['to'](_0x435050,'isReady',_0x435050,'isEnabled',_0x274677,'isReadOnly',(_0x1df702,_0x47afff,_0x257ca8)=>_0x1df702&&_0x47afff&&!_0x257ca8),_0x321b23['buttonView']['set']({'icon':dt,'label':jN(_0x2ec2c5,'Revision\x20history')});const _0x50b9bd=new _0x1bf87e(_0x2ec2c5,_0x321b23),_0xc85499=this['_createSaveRevisionButton'](_0x589436);_0xc85499['delegate']('execute')['to'](_0x321b23),_0x50b9bd['children']['add'](_0xc85499),_0x46b99d['items']['add'](_0x50b9bd);const _0x46a35c=new _0x1bf87e(_0x2ec2c5,_0x321b23),_0x309530=this['_createOpenRevisionButton'](_0x589436);return _0x309530['delegate']('execute')['to'](_0x321b23),_0x46a35c['children']['add'](_0x309530),_0x46b99d['items']['add'](_0x46a35c),_0x321b23['panelView']['children']['add'](_0x46b99d),_0x321b23;}_createSaveRevisionButton(_0x485c73){const _0x51720d=this['editor'],_0x414257=_0x51720d['plugins']['get']('RevisionTracker'),_0x394e02=new _0x485c73(_0x51720d['locale']);return _0x394e02['set']({'label':jN(_0x51720d['locale'],'Save\x20current\x20revision')}),_0x394e02['bind']('isEnabled')['to'](_0x414257,'isReady',_0x414257,'isEnabled',_0x51720d,'isReadOnly',(_0x181412,_0x26e1df,_0x21b757)=>_0x181412&&_0x26e1df&&!_0x21b757),this['listenTo'](_0x394e02,'execute',()=>{this['_showDialog']();}),_0x394e02;}_createOpenRevisionButton(_0x36adeb){const _0x211ee1=this['editor'],_0x44b7f7=_0x211ee1['plugins']['get']('RevisionTracker'),_0x2328a8=new _0x36adeb(_0x211ee1['locale']);return _0x2328a8['set']({'label':jN(_0x211ee1['locale'],'Open\x20revision\x20history')}),_0x2328a8['bind']('isEnabled')['to'](_0x44b7f7,'isReady',_0x211ee1,'isReadOnly',(_0x336965,_0x275bf8)=>_0x336965&&!_0x275bf8),this['listenTo'](_0x2328a8,'execute',()=>{_0x211ee1['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2328a8;}['_showDialog'](){const _0x6d0515=this['editor'],_0x4d0478=_0x6d0515['locale'],_0x16f70a=_0x6d0515['plugins']['get']('Dialog'),_0x3d363b=_0x6d0515['plugins']['get']('RevisionTracker');function _0x58a90d(_0x1c2dba){_0x6d0515['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1c2dba['revisionName']?_0x1c2dba['revisionNameInputView']['errorText']=jN(_0x4d0478,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x6d0515['plugins']['get'](UN)['saveRevision']({'name':_0x1c2dba['revisionName']}),_0x16f70a['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x58a90d(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x16f70a['show']({'id':'revisionSave','title':jN(_0x4d0478,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':jN(_0x6d0515['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x16f70a['hide']()},{'label':jN(_0x6d0515['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4fff03){_0x4fff03['bind']('isEnabled')['to'](_0x3d363b,'isReady',_0x3d363b,'isEnabled',_0x6d0515,'isReadOnly',(_0x3775ff,_0x268454,_0x4a53a7)=>_0x3775ff&&_0x268454&&!_0x4a53a7);},'onExecute':()=>_0x58a90d(this['_saveRevisionFormView'])}]});}_createSaveRevisionFormView(){const _0x42e58b=this['editor'],_0xe27792=_0x42e58b['locale'];this['_saveRevisionFormView']=new XN(_0xe27792,_0x42e58b['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}},WN=class extends _0x2f6e1a{['changeId'];['_model'];constructor(_0xe42eba,_0x1adba6){super(_0xe42eba),this['_model']=_0x1adba6,this['changeId']=_0x1adba6['id'];const _0xd305a4=this['bindTemplate'],_0x1d72f3=jN(_0xe42eba,_0x1adba6['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1adba6['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1adba6['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0xd305a4['to']('type',_0x1b7573=>'ck-revision-change__'+_0x1b7573)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1d72f3}]},{'text':'\x20'+_0x1adba6['author']['name']}]}]});}['focus'](){this['element']['focus']();}};const zN=/* #__PURE__ -- @preserve */
_0x356c1e();var YN=class extends zN{['id'];author;type;data;rootName;constructor(_0x1947f6){super(),this['id']=_0x1947f6['id']||_0xea66bb(),this['author']=_0x1947f6['author'],this['type']=_0x1947f6['type'],this['data']=_0x1947f6['data']||{},this['rootName']=_0x1947f6['rootName'],this['set']('createdAt',_0x1947f6['createdAt']);}toJSON(){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}},KN=class{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x457e60,_0x120903){this['newRevisionId']=_0x457e60,this['oldRevisionId']=_0x120903,this['changes']=new _0x2186b6();}_setChanges(_0x2c2ce2){for(const _0x7b09ca of _0x2c2ce2)this['changes']['add'](_0x7b09ca);}},JN=class extends _0x11fe30{repository;adapter=null;_utils;_activeViewTarget;['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[Al,_0x2f4a98,DN,QN];}constructor(_0x39b7ae){super(_0x39b7ae),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x32243d,_0x367c80,_0x34c22e)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4f121e=>{for(const _0x3b5978 of this['editor']['editing']['view']['document']['roots'])_0x34c22e?_0x4f121e['removeClass']('ck-editor__editable__overlay',_0x3b5978):_0x4f121e['addClass']('ck-editor__editable__overlay',_0x3b5978);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3a2a0a=>null!==_0x3a2a0a),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x268e83,_0x42028d,_0x5516da)=>_0x268e83&&_0x5516da?_0x42028d['changes']['getIndex'](_0x5516da):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x16aae8,_0x4a53b5)=>_0x16aae8?_0x4a53b5['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x2f4a98);}init(){const _0x51130f=this['editor'],_0x6c177c=new iM(_0x51130f,{'direction':'backward'}),_0xd08224=new iM(_0x51130f,{'direction':'forward'});_0x51130f['commands']['add']('showPreviousChange',_0x6c177c),_0x51130f['commands']['add']('showNextChange',_0xd08224),_0x51130f['commands']['add']('restoreRevision',new eM(_0x51130f)),this['on']('change:numberOfChanges',()=>{_0x6c177c['refresh'](),_0xd08224['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x51130f['enableReadOnlyMode']('revision-viewer'),_0x51130f['plugins']['has']('WidgetToolbarRepository')&&_0x51130f['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async getRevisionDocumentData(_0x49083e){return await this['_utils']['loadRevisionData'](_0x49083e,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x49083e);}async getRevisionRootsAttributes(_0x529a20){return await this['_utils']['loadRevisionData'](_0x529a20,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x529a20);}async['compare'](_0x57bea2,_0x5de56c,_0x46fa32=!0x1){if(!this['isEnabled'])return;const _0xc25f00=this['diff'],_0x50b510=this['repository'],_0x52799b='string'==typeof _0x57bea2?_0x50b510['getRevision'](_0x57bea2):_0x57bea2,_0x316ab0='string'==typeof _0x5de56c?_0x50b510['getRevision'](_0x5de56c):_0x5de56c,_0x29ec98=_0x52799b['id'],_0x53e0f0=_0x316ab0?_0x316ab0['id']:null;if(!_0x46fa32&&this['diff']&&this['diff']['newRevisionId']===_0x29ec98&&this['diff']['oldRevisionId']===_0x53e0f0)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new KN(_0x29ec98,_0x53e0f0);const _0x11ec0e=this['_getRevisionsRange'](_0x52799b,_0x316ab0,!0x0)['map'](_0xa18e08=>this['_utils']['loadRevisionData'](_0xa18e08,this['adapter']));return _0x11ec0e['push'](new Promise(_0x227d8c=>{setTimeout(_0x227d8c,0x14);})),Promise['all'](_0x11ec0e)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3acb30=this['_getDiff'](_0x29ec98,_0x53e0f0);for(const _0x52a03f of _0x3acb30['changes'])this['_changeIdToChange']['set'](_0x52a03f['id'],_0x52a03f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x58a284=>{for(const _0x5ba2f7 of this['editor']['model']['document']['getRootNames']())_0x58a284['detachRoot'](_0x5ba2f7);for(const _0x49d474 of Object['keys'](_0x3acb30['model'])){const _0x2e93cd=_0x3acb30['model'][_0x49d474]['name'],_0x125a76=_0x58a284['addRoot'](_0x49d474,_0x2e93cd);for(const _0x4020c6 of Object['keys'](_0x3acb30['attributes'][_0x49d474]))_0x58a284['setAttribute'](_0x4020c6,_0x3acb30['attributes'][_0x49d474][_0x4020c6],_0x125a76);_0x58a284['insert'](_0x3acb30['model'][_0x49d474],_0x125a76,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3acb30['changes'])),this['isReady']=!0x0;})['catch'](_0x7cf898=>{console['error'](_0x7cf898),this['_cleanUp'](),_0xc25f00&&(this['diff']=_0xc25f00),this['isReady']=!0x0;});}addRevisionData(_0x2db19b,_0x31c368){const _0x204435=this['repository']['createRevision'](_0x2db19b);return _0x204435['on']('_update',(_0x2ab5f4,_0x226d36,_0x4cfaf5)=>_0x31c368(_0x226d36,_0x4cfaf5,_0x204435)),this['repository']['addRevision'](_0x204435),_0x204435;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x21a994=>{for(const _0x5be07e of this['editor']['model']['document']['getRootNames']())_0x21a994['detachRoot'](_0x5be07e);});}_sortAndFilterDiffChanges(_0x24283e){const _0xe83de5=[],_0x342311=new Map();for(const _0x910f36 of this['editor']['model']['document']['getRootNames']()){const _0x212971=this['editor']['editing']['view']['getDomRoot'](_0x910f36);if(!_0x212971)continue;const _0x31e8aa=_0x212971['getClientRects']()['item'](0x0);_0x31e8aa&&(_0xe83de5['push'](_0x910f36),_0x342311['set'](_0x910f36,_0x31e8aa));}return _0xe83de5['sort']((_0x56fba9,_0x2106a1)=>{const _0x72a178=_0x342311['get'](_0x56fba9),_0xbbede2=_0x342311['get'](_0x2106a1);return _0x72a178['y']-_0xbbede2['y']||_0x72a178['x']-_0xbbede2['x'];}),(_0x24283e=_0x24283e['filter'](_0x2f59df=>_0xe83de5['includes'](_0x2f59df['rootName'])))['sort']((_0xcc113c,_0x5e74c5)=>_0xe83de5['indexOf'](_0xcc113c['rootName'])-_0xe83de5['indexOf'](_0x5e74c5['rootName'])),_0x24283e;}['_makeTape'](_0x72a6bd){const _0x2daab4=Array['from'](_0x72a6bd['markers'])['filter'](([_0x166bab,_0x20fa3b])=>_0x166bab['startsWith']('revision:')&&!_0x20fa3b['isCollapsed']),_0x10bff9=Array['from'](this['editor']['model']['createRangeIn'](_0x72a6bd)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2daab4['length'])for(const _0x1d2bf4 of _0x10bff9){const [_0x4ea3e7,_0x35c1eb]=_0x2daab4[0x0],[,_0x2333f7,_0x3d30e4]=_0x4ea3e7['split'](':');if(_0x35c1eb['end']['isEqual'](_0x1d2bf4['nextPosition'])&&_0x2daab4['shift'](),(_0x1d2bf4['previousPosition']['isEqual'](_0x35c1eb['start'])||_0x1d2bf4['previousPosition']['isAfter'](_0x35c1eb['start']))&&('insertion'==_0x2333f7?_0x1d2bf4['isAdded']={'userId':_0x3d30e4}:'deletion'==_0x2333f7&&(_0x1d2bf4['isRemoved']={'userId':_0x3d30e4})),0x0==_0x2daab4['length'])break;}return _0x10bff9;}_refreshStartEndIndex(_0x14bf06){const _0x5b25ac=new Map();for(let _0x73d2ed=0x0;_0x73d2ed<_0x14bf06['length'];_0x73d2ed++)'text'===_0x14bf06[_0x73d2ed]['type']?(_0x14bf06[_0x73d2ed]['item']['startIndex']=_0x73d2ed,_0x14bf06[_0x73d2ed]['item']['endIndex']=_0x73d2ed):('elementStart'===_0x14bf06[_0x73d2ed]['type']?_0x14bf06[_0x73d2ed]['item']['startIndex']=_0x73d2ed:'elementEnd'===_0x14bf06[_0x73d2ed]['type']&&(_0x14bf06[_0x73d2ed]['item']['endIndex']=_0x73d2ed),_0x5b25ac['set'](_0x14bf06[_0x73d2ed]['id'],_0x73d2ed));for(const _0xfc5509 of _0x5b25ac['values']())'elementStart'===_0x14bf06[_0xfc5509]['type']?_0x14bf06[_0xfc5509]['item']['endIndex']=_0x5b25ac['get'](_0x14bf06[_0xfc5509]['pairId']):'elementEnd'===_0x14bf06[_0xfc5509]['type']&&(_0x14bf06[_0xfc5509]['item']['startIndex']=_0x5b25ac['get'](_0x14bf06[_0xfc5509]['pairId']));}['_processTape'](_0x206c6e){for(let _0x5c2b4e=0x0;_0x5c2b4e<_0x206c6e['length'];_0x5c2b4e++){if('elementStart'===_0x206c6e[_0x5c2b4e]['type'])_0x206c6e[_0x5c2b4e]['item']['startIndex']=_0x5c2b4e;else{if('elementEnd'===_0x206c6e[_0x5c2b4e]['type']){_0x206c6e[_0x5c2b4e]['item']['endIndex']=_0x5c2b4e;const _0x289c35=_0x206c6e[_0x5c2b4e]['item']['startIndex'];_0x206c6e[_0x289c35]['pairId']=_0x206c6e[_0x5c2b4e]['id'],_0x206c6e[_0x5c2b4e]['pairId']=_0x206c6e[_0x289c35]['id'];}else _0x206c6e[_0x5c2b4e]['item']['startIndex']=_0x5c2b4e,_0x206c6e[_0x5c2b4e]['item']['endIndex']=_0x5c2b4e,_0x206c6e[_0x5c2b4e]['pairId']=null;}_0x206c6e[_0x5c2b4e]['markersStart']||(_0x206c6e[_0x5c2b4e]['markersStart']=[],_0x206c6e[_0x5c2b4e]['markersEnd']=[]);}}_markInsertions(_0x1e1f03,_0x5f1d5f){const _0x3d7bfb=_0x1e1f03['filter'](_0x277b2a=>!_0x277b2a['isAdded']);for(let _0x53972d=0x0;_0x53972d<_0x5f1d5f['length'];_0x53972d++)_0x5f1d5f[_0x53972d]['isAdded']&&(_0x3d7bfb[_0x53972d]['isAdded']=_0x5f1d5f[_0x53972d]['isAdded']);}_getDiff(_0x4dd1ef,_0x7e6964=null){const _0xd911cf=this['repository']['getRevision'](_0x4dd1ef),_0x14dfa6=_0x7e6964?this['repository']['getRevision'](_0x7e6964):null,_0x1b404f=this['_getRevisionsRange'](_0xd911cf,_0x14dfa6),_0x6316c0=_0x1b404f[_0x1b404f['length']-0x1],_0x3220df=new Map(),_0x59f984={'model':{},'attributes':{},'changes':[]},_0x539b6e=new Set(),_0x465bc2=new Map();for(let _0x17dc47=_0x1b404f['length']-0x1;_0x17dc47>=0x0;_0x17dc47--){const _0x5a886c=_0x1b404f[_0x17dc47];for(const _0x5afab3 of Object['keys'](_0x5a886c['diffData']))if(_0x5a886c['diffData'][_0x5afab3]['attachChange']){const _0x41a87e=_0x5a886c['diffData'][_0x5afab3]['attachChange'];_0x41a87e['isAttached']?(_0x539b6e['add'](_0x5afab3),_0x465bc2['has'](_0x5afab3)&&_0x465bc2['get'](_0x5afab3)['userId']==_0x41a87e['userId']?_0x465bc2['delete'](_0x5afab3):_0x465bc2['set'](_0x5afab3,_0x41a87e)):_0x465bc2['has'](_0x5afab3)?(_0x539b6e['delete'](_0x5afab3),_0x465bc2['delete'](_0x5afab3)):(_0x539b6e['add'](_0x5afab3),_0x465bc2['set'](_0x5afab3,_0x41a87e));}else _0x539b6e['add'](_0x5afab3);}for(const _0x5b1dca of _0x539b6e){const _0x318d90=_0x465bc2['has'](_0x5b1dca)&&!_0x465bc2['get'](_0x5b1dca)['isAttached'];let _0x4dd703=_0x318d90?_0x1b404f['length']-0x1:0x0;const _0x1cf405=_0x318d90?-0x1:0x1;for(;_0x1b404f[_0x4dd703];){const _0x3ff6ba=_0x1b404f[_0x4dd703];if(_0x3ff6ba['diffData'][_0x5b1dca]){const _0x5da533=_0x318d90?_0x3ff6ba['diffData'][_0x5b1dca]['attributesBefore']:_0x3ff6ba['diffData'][_0x5b1dca]['attributesAfter'];_0x59f984['attributes'][_0x5b1dca]=_0x5da533?so(_0x5da533):{};break;}_0x4dd703+=_0x1cf405;}}for(const _0x1f3ea1 of _0x1b404f){_0x1f3ea1['model']={};for(const _0x1dcd5b of _0x1f3ea1['authors'])_0x3220df['set'](_0x1dcd5b['id'],_0x1dcd5b);for(const _0x4ad660 of _0x539b6e){const _0x1eadb8=_0x1f3ea1['diffData'][_0x4ad660]?_0x1f3ea1['diffData'][_0x4ad660]['insertions']:'[]',_0x291db3=_0x1f3ea1['diffData'][_0x4ad660]?_0x1f3ea1['diffData'][_0x4ad660]['deletions']:'[]',_0x3d648e=_0x1f3ea1['diffData'][_0x4ad660]?.['rootElementName']||'$root';_0x1f3ea1['model'][_0x4ad660]={'insertions':this['_utils']['_makeModelFromViewString'](_0x1eadb8,_0x3d648e),'deletions':this['_utils']['_makeModelFromViewString'](_0x291db3,_0x3d648e)};}}for(const _0x4e4e5b of _0x539b6e){let _0x1fa7d9=null,_0x5e7640=0x0;const _0x5f2934=_0x1b404f['map'](_0xa40402=>_0xa40402['diffData'][_0x4e4e5b]?.['rootElementName'])['find'](_0x36ac58=>void 0x0!==_0x36ac58)||'$root',_0x4a98c8=new Map(Array['from'](_0xd911cf['model'][_0x4e4e5b]['insertions']['markers'])['filter'](([_0x46d7f8])=>!_0x46d7f8['startsWith']('revision:')));let _0x1ea395=0x0;for(const _0x4f5aca of _0x1b404f){const _0x3b3883=this['_makeTape'](_0x4f5aca['model'][_0x4e4e5b]['insertions']);_0x4f5aca==_0xd911cf?(_0x1fa7d9=_0x3b3883,_0x5e7640=_0x1fa7d9['length'],_0x1fa7d9['forEach'](_0x1d0d14=>{_0x1d0d14['id']=_0x1ea395++;}),this['_processTape'](_0x1fa7d9)):this['_markInsertions'](_0x1fa7d9,_0x3b3883);const _0x28e7ec=_0x1fa7d9['filter'](_0x285620=>!_0x285620['isAdded'])['map'](_0x455d63=>_0x455d63['id']);let _0x19cb8b=0x0;const _0x59ffe6=this['_makeTape'](_0x4f5aca['model'][_0x4e4e5b]['deletions']);_0x59ffe6['forEach'](_0x3856ab=>{_0x3856ab['isRemoved']?_0x3856ab['id']=_0x5e7640++:_0x3856ab['id']=_0x28e7ec[_0x19cb8b++];}),this['_processTape'](_0x59ffe6),this['_setDistance'](_0x1fa7d9,'isAdded'),this['_setDistance'](_0x59ffe6,'isRemoved'),_0x4f5aca==_0xd911cf&&this['_markMarkers'](_0x1fa7d9,_0x4a98c8),_0x1fa7d9=this['_joinTapes'](_0x1fa7d9,_0x59ffe6),this['_refreshStartEndIndex'](_0x1fa7d9),this['_setDistance'](_0x1fa7d9,'isRemoved');}_0x1fa7d9=_0x1fa7d9['filter'](_0x423fad=>!(_0x423fad['isAdded']&&_0x423fad['isRemoved']));const _0x49e0cf=new Map(_0x6316c0['model'][_0x4e4e5b]['deletions']['markers']),_0x43ad2c=new Set(_0x4a98c8['keys']());for(const _0x484c81 of _0x49e0cf['keys']())_0x43ad2c['delete'](_0x484c81);this['_markSuggestions'](_0x1fa7d9,_0x43ad2c),this['_fixObsoleteTags'](_0x1fa7d9),_0x1fa7d9=this['_removeMissingPairs'](_0x1fa7d9),_0x1fa7d9=this['_markMismatchedRemovedTags'](_0x1fa7d9),_0x1fa7d9=this['_removeUnsupportedChanges'](_0x1fa7d9);const {root:_0x563ad6,changes:_0x143115}=this['_makeModelFromTape'](_0x1fa7d9,_0x3220df,_0x4e4e5b,_0x5f2934);_0x59f984['model'][_0x4e4e5b]=_0x563ad6;const _0x31d547=_0x465bc2['get'](_0x4e4e5b);if(_0x31d547){const _0x31b1bb=new YN({'author':_0x3220df['get'](_0x31d547['userId']),'type':_0x31d547['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4e4e5b});_0x143115['unshift'](_0x31b1bb),_0x59f984['attributes'][_0x4e4e5b]['revisionHistoryAttachChange']=_0x31b1bb['id'];}_0x59f984['changes']=_0x59f984['changes']['concat'](_0x143115);}return _0x59f984;}['_markMarkers'](_0x2fd583,_0x58117c){for(let _0x49dc45=0x0;_0x49dc45<_0x2fd583['length'];_0x49dc45++)for(const [_0x2b65b4,_0x4a19bd]of _0x58117c)!_0x4a19bd['isCollapsed']&&_0x4a19bd['start']['isEqual'](_0x2fd583[_0x49dc45]['previousPosition'])&&_0x2fd583[_0x49dc45]['markersStart']['push'](_0x2b65b4),_0x4a19bd['end']['isEqual'](_0x2fd583[_0x49dc45]['nextPosition'])&&_0x2fd583[_0x49dc45]['markersEnd']['push'](_0x2b65b4);}['_joinTapes'](_0x1d80ea,_0x3fd7da){let _0x15c0f3=[],_0x4a5c58=0x0,_0x5d6bfe=0x0;for(;_0x4a5c58<_0x1d80ea['length']||_0x5d6bfe<_0x3fd7da['length'];){const _0x25f05c=_0x1d80ea[_0x4a5c58]||{},_0x3c5c97=_0x3fd7da[_0x5d6bfe]||{};if(_0x25f05c['id']==_0x3c5c97['id'])_0x4a5c58++,_0x5d6bfe++,_0x15c0f3['push'](_0x25f05c);else{if(_0x3c5c97['isRemoved']&&_0x25f05c['isAdded']){const {commonTape:_0x4edbfe,iEnd:_0x1de459,jEnd:_0x2b9bf8}=this['_threeWayMerge'](_0x1d80ea,_0x4a5c58,_0x3fd7da,_0x5d6bfe);_0x15c0f3=_0x15c0f3['concat'](_0x4edbfe),_0x4a5c58=_0x1de459,_0x5d6bfe=_0x2b9bf8;}else _0x3c5c97['isRemoved']?(_0x5d6bfe++,_0x15c0f3['push'](_0x3c5c97)):(_0x4a5c58++,_0x15c0f3['push'](_0x25f05c));}}return _0x15c0f3;}_markSuggestions(_0x112447,_0x1ae6be){const _0x571e1d=[];for(let _0x4af23d=0x0;_0x4af23d<_0x112447['length'];_0x4af23d++){for(let _0x1eeb78=0x0;_0x1eeb78<_0x112447[_0x4af23d]['markersStart']['length'];_0x1eeb78++){const _0x394de5=_0x112447[_0x4af23d]['markersStart'][_0x1eeb78];if(!_0x1ae6be['has'](_0x394de5))continue;const {group:_0x3c2e75,type:_0x38f7d0,authorId:_0x17714e}=_0x3206f(_0x394de5);'revision-suggestion'!=_0x3c2e75||'insertion'!=_0x38f7d0&&'deletion'!=_0x38f7d0||(_0x571e1d['unshift']({'type':_0x38f7d0,'name':_0x394de5,'userId':_0x17714e}),_0x112447[_0x4af23d]['markersStart']['splice'](_0x1eeb78,0x1),_0x1eeb78--);}_0x2f7b9e(_0x112447[_0x4af23d]);for(let _0x232f9a=0x0;_0x232f9a<_0x112447[_0x4af23d]['markersEnd']['length'];_0x232f9a++){const _0x4c6642=_0x112447[_0x4af23d]['markersEnd'][_0x232f9a];if(!_0x1ae6be['has'](_0x4c6642))continue;const {group:_0x50877d,type:_0x19d477}=_0x3206f(_0x4c6642);if('revision-suggestion'!=_0x50877d||'insertion'!=_0x19d477&&'deletion'!=_0x19d477)continue;_0x112447[_0x4af23d]['markersEnd']['splice'](_0x232f9a,0x1),_0x232f9a--;const _0x1a6e88=_0x571e1d['findIndex'](_0x4dd016=>_0x4dd016['name']==_0x4c6642);_0x1a6e88>-0x1&&_0x571e1d['splice'](_0x1a6e88,0x1);}}function _0x3206f(_0x34bfb0){const _0x1fec30=_0x34bfb0['split'](':');return{'group':_0x1fec30[0x0],'type':_0x1fec30[0x1],'subType':_0x1fec30['length']>=0x5?_0x1fec30[0x2]:null,'id':_0x1fec30['length']<0x5?_0x1fec30[0x2]:_0x1fec30[0x3],'authorId':_0x1fec30['length']<0x5?_0x1fec30[0x3]:_0x1fec30[0x4],'markerCount':0x6==_0x1fec30['length']?_0x1fec30[0x5]:null};}function _0x2f7b9e(_0xc6c00f){for(let _0x2e555d=0x0;_0x2e555d<_0x571e1d['length'];_0x2e555d++){if(_0xc6c00f['isAdded']&&'insertion'==_0x571e1d[_0x2e555d]['type']&&_0xc6c00f['isAdded']['userId']==_0x571e1d[_0x2e555d]['userId'])return _0xc6c00f['isAddSuggestion']=_0x571e1d[_0x2e555d],void delete _0xc6c00f['isAdded'];if(!_0xc6c00f['isAdded']&&!_0xc6c00f['isRemoved']&&'deletion'==_0x571e1d[_0x2e555d]['type'])return void(_0xc6c00f['isRemoveSuggestion']=_0x571e1d[_0x2e555d]);}}}_setDistance(_0x1fb4b3,_0x36e859){let _0xb905d=0x0,_0x9178a8=!0x1;const _0x52ff0d=new Map();for(const _0x39a9b0 of _0x1fb4b3)_0x39a9b0[_0x36e859]?_0x9178a8&&(_0xb905d++,_0x9178a8=!0x1):(_0xb905d++,_0x9178a8=!0x0),_0x52ff0d['set'](_0x39a9b0['id'],_0xb905d);for(let _0x29724e=0x0;_0x29724e<_0x1fb4b3['length'];_0x29724e++){if('isRemoved'==_0x36e859&&_0x1fb4b3[_0x29724e]['isAdded']||'isAdded'==_0x36e859&&_0x1fb4b3[_0x29724e]['isRemoved'])continue;if('text'==_0x1fb4b3[_0x29724e]['type']){_0x1fb4b3[_0x29724e]['distance']=0x0;continue;}const _0x4b0f39=_0x52ff0d['get'](_0x1fb4b3[_0x29724e]['pairId']),_0x13d814=_0x52ff0d['get'](_0x1fb4b3[_0x29724e]['id']);_0x1fb4b3[_0x29724e]['distance']=_0x4b0f39-_0x13d814;}}_getRevisionsRange(_0xa0a1ec,_0x1266dc,_0x3e1628=!0x1){const _0x295f10=[];let _0x52c96e=this['repository']['getIndex'](_0xa0a1ec),_0x484d7b=this['repository']['getIndex'](_0x1266dc);for(-0x1==_0x484d7b&&(_0x484d7b=this['repository']['_revisions']['length'],_0x3e1628=!0x1);_0x52c96e<_0x484d7b;)_0x295f10['push'](this['repository']['getRevision'](_0x52c96e)),_0x52c96e++;return _0x3e1628&&_0x295f10['push'](this['repository']['getRevision'](_0x52c96e)),_0x295f10;}_threeWayMerge(_0x5a294e,_0x1f69d9,_0x30c113,_0x3d3191){const _0x2c9cc8=this['editor']['model']['schema'];let _0x164e3a=_0x1f69d9;for(;_0x5a294e[_0x164e3a]&&_0x5a294e[_0x164e3a]['isAdded'];)_0x164e3a++;let _0x260e85=_0x3d3191;for(;_0x30c113[_0x260e85]&&_0x30c113[_0x260e85]['isRemoved'];)_0x260e85++;_0x29b290(_0x5a294e,_0x1f69d9,_0x164e3a),_0x29b290(_0x30c113,_0x3d3191,_0x260e85);const _0x33b0ad=_0x30c113['slice'](_0x3d3191,_0x260e85)['concat'](_0x5a294e['slice'](_0x1f69d9,_0x164e3a));return _0x33b0ad['sort']((_0x6e1cf2,_0x244798)=>_0x6e1cf2['side']!=_0x244798['side']?_0x6e1cf2['side']-_0x244798['side']:_0x6e1cf2['level']!=_0x244798['level']?_0x6e1cf2['level']-_0x244798['level']:_0x6e1cf2['distance']!=_0x244798['distance']?_0x244798['distance']-_0x6e1cf2['distance']:!!_0x6e1cf2['isAdded']!=!!_0x244798['isAdded']?-0x1==_0x6e1cf2['side']||0x0==_0x6e1cf2['side']?_0x6e1cf2['isAdded']?-0x1:0x1:_0x6e1cf2['isAdded']?0x1:-0x1:_0x6e1cf2['index']-_0x244798['index']),{'commonTape':_0x33b0ad,'iEnd':_0x164e3a,'jEnd':_0x260e85};function _0x29b290(_0x3ce960,_0x3c42bc,_0x4eef2c){let _0xe8f8f1=-0x1,_0x419513=Number['POSITIVE_INFINITY'],_0xa36124=!0x0;for(let _0x308317=_0x3c42bc;_0x308317<_0x4eef2c;_0x308317++)if(_0x2c9cc8['isInline'](_0x3ce960[_0x308317]['item'])||(_0xa36124=!0x1),_0x3ce960[_0x308317]['item']['startIndex']<_0x3c42bc&&(_0xe8f8f1=_0x308317),_0x3ce960[_0x308317]['item']['endIndex']>=_0x4eef2c){_0x419513=_0x308317;break;}_0xa36124&&(_0xe8f8f1=_0x4eef2c-0x1);for(let _0x372ded=_0x3c42bc;_0x372ded<_0x4eef2c;_0x372ded++)_0x3ce960[_0x372ded]['side']=_0x372ded<=_0xe8f8f1?-0x1:_0x372ded<_0x419513?0x0:0x1,_0x3ce960[_0x372ded]['index']=_0x372ded;let _0x298ac1=0x0;for(let _0x39c5da=_0x3c42bc;_0x39c5da<=_0xe8f8f1;_0x39c5da++)0x0==_0x3ce960[_0x39c5da]['distance']?_0x3ce960[_0x39c5da]['level']=_0x298ac1:(_0x298ac1++,_0x3ce960[_0x39c5da]['level']=_0x298ac1,_0x298ac1++);for(let _0x4bdd72=_0x3c42bc;_0x4bdd72<_0x4eef2c;_0x4bdd72++)0x0==_0x3ce960[_0x4bdd72]['side']&&(_0x3ce960[_0x4bdd72]['level']=_0x298ac1);_0x298ac1=0x0;for(let _0x2b06fa=_0x4eef2c-0x1;_0x2b06fa>=_0x419513;_0x2b06fa--)0x0==_0x3ce960[_0x2b06fa]['distance']?_0x3ce960[_0x2b06fa]['level']=_0x298ac1:(_0x298ac1--,_0x3ce960[_0x2b06fa]['level']=_0x298ac1,_0x298ac1--);}}_fixObsoleteTags(_0x5342c6){const _0x19c128=new Map(),_0x1f4ebe=this['editor']['model']['schema'];for(let _0x411018=0x1;_0x411018<_0x5342c6['length'];_0x411018++){let _0x35a7da,_0x3a3924,_0x53760a;const _0x8ba091=_0x5342c6[_0x411018],_0x5dd692=_0x5342c6[_0x411018-0x1];if('text'==_0x8ba091['type'])continue;if(_0x8ba091['type']!=_0x5dd692['type'])continue;if(!_0x1f4ebe['isBlock'](_0x5dd692['item'])||_0x1f4ebe['isLimit'](_0x5dd692['item']))continue;if(!_0x1f4ebe['isBlock'](_0x8ba091['item'])||_0x1f4ebe['isLimit'](_0x8ba091['item']))continue;if((_0x5342c6[_0x411018]['isAdded']||_0x5342c6[_0x411018]['isAddSuggestion'])&&_0x5342c6[_0x411018-0x1]['isRemoved'])_0x35a7da=_0x5342c6[_0x411018],_0x3a3924=_0x5342c6[_0x411018-0x1],_0x53760a=_0x411018-0x1;else{if(!_0x5342c6[_0x411018]['isRemoved']||!_0x5342c6[_0x411018-0x1]['isAdded']&&!_0x5342c6[_0x411018-0x1]['isAddSuggestion'])continue;_0x35a7da=_0x5342c6[_0x411018-0x1],_0x3a3924=_0x5342c6[_0x411018],_0x53760a=_0x411018;}const _0xf0cb25=_0x35a7da['level']==_0x3a3924['level'],_0x4866fb=Math['abs'](_0x35a7da['level'])<Math['abs'](_0x3a3924['level'])&&0x0==_0x3a3924['distance'];(_0xf0cb25||_0x4866fb)&&(_0x19c128['set'](_0x3a3924['id'],_0x35a7da['id']),_0x5342c6['splice'](_0x53760a,0x1),_0x411018--,_0x35a7da['isAdded']=!0x1);}for(let _0x3bb512=0x0;_0x3bb512<_0x5342c6['length'];_0x3bb512++)_0x19c128['has'](_0x5342c6[_0x3bb512]['pairId'])&&(_0x5342c6[_0x3bb512]['pairId']=_0x19c128['get'](_0x5342c6[_0x3bb512]['pairId']));}['_removeMissingPairs'](_0x1d4eae){const _0x3039ef=new Set(_0x1d4eae['map'](_0x5252e9=>_0x5252e9['id']));for(let _0x3982f1=0x0;_0x3982f1<_0x1d4eae['length'];_0x3982f1++)_0x3039ef['has'](_0x1d4eae[_0x3982f1]['pairId'])||0x0==_0x1d4eae[_0x3982f1]['distance']||(_0x1d4eae[_0x3982f1]['isIncorrect']=!0x0);return _0x1d4eae['filter'](_0x32cd35=>!_0x32cd35['isIncorrect']);}_markMismatchedRemovedTags(_0x3603fa){const _0x27a32d=new Set();for(let _0x5c516a=0x0;_0x5c516a<_0x3603fa['length'];_0x5c516a++){if(_0x27a32d['has'](_0x3603fa[_0x5c516a]['id'])&&_0x3603fa[_0x5c516a]['isRemoved']&&(_0x3603fa[_0x5c516a]['isIncorrect']=!0x0),_0x3603fa[_0x5c516a]['isIncorrect'])continue;if(0x0==_0x3603fa[_0x5c516a]['distance'])continue;if('elementStart'!=_0x3603fa[_0x5c516a]['type'])continue;if(null==_0x3603fa[_0x5c516a]['pairId'])continue;let _0xb750f7=_0x5c516a+0x1,_0x5d5c47=0x0;for(;_0x3603fa[_0xb750f7]['id']!=_0x3603fa[_0x5c516a]['pairId'];)'elementStart'==_0x3603fa[_0xb750f7]['type']?_0x5d5c47++:'elementEnd'==_0x3603fa[_0xb750f7]['type']&&_0x5d5c47--,_0xb750f7++;if(0x0!=_0x5d5c47){if(_0x3603fa[_0x5c516a]['isRemoved'])_0x3603fa[_0x5c516a]['isIncorrect']=!0x0;else{for(;_0xb750f7!=_0x5c516a;)_0x3603fa[_0xb750f7]['isRemoved']&&0x0!=_0x3603fa[_0xb750f7]['distance']&&(_0x3603fa[_0xb750f7]['isIncorrect']=!0x0,_0x27a32d['add'](_0x3603fa[_0xb750f7]['pairId'])),_0xb750f7--;}}}return _0x3603fa['filter'](_0x532e61=>!_0x532e61['isIncorrect']);}_removeUnsupportedChanges(_0x499b67){const _0x5e3153=this['editor']['model']['schema'];for(let _0x5b3425=0x0;_0x5b3425<_0x499b67['length'];_0x5b3425++){if(!(_0x499b67[_0x5b3425]['isAdded']||_0x499b67[_0x5b3425]['isAddSuggestion']||_0x499b67[_0x5b3425]['isRemoved']||_0x499b67[_0x5b3425]['isRemoveSuggestion']))continue;if(0x0==_0x499b67[_0x5b3425]['distance'])continue;const _0x41d2f9=_0x499b67[_0x5b3425]['item'];_0x5e3153['isBlock'](_0x41d2f9)||_0x5e3153['isLimit'](_0x41d2f9)||(_0x499b67[_0x5b3425]['isAdded']&&delete _0x499b67[_0x5b3425]['isAdded'],_0x499b67[_0x5b3425]['isAddSuggestion']&&delete _0x499b67[_0x5b3425]['isAddSuggestion'],_0x499b67[_0x5b3425]['isRemoveSuggestion']&&delete _0x499b67[_0x5b3425]['isRemoveSuggestion'],_0x499b67[_0x5b3425]['isRemoved']&&(_0x499b67[_0x5b3425]['isIncorrect']=!0x0));}return _0x499b67['filter'](_0x475ff8=>!_0x475ff8['isIncorrect']);}['_makeModelFromTape'](_0x436238,_0x279abd,_0x508a7e,_0x40a736){const _0x57ac12=new _0x25e1b5(),_0x1a0c09=[],_0xd100b6=new Map(),_0x5f232b=this['editor']['model'],_0x4a25b5=_0x5f232b['schema'],_0x1efd65=[_0x57ac12],_0x12bdf4={},_0x193752={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};_0x57ac12['name']=_0x40a736;let _0x14b991=null;const _0x4e4284=[0x0];for(let _0xf526=0x0;_0xf526<_0x436238['length'];_0xf526++)if('elementStart'===_0x436238[_0xf526]['type']){_0x436238[_0xf526]['previousPosition']=_0x5f232b['createPositionFromPath'](_0x57ac12,_0x4e4284);const _0x3e741f=new _0x284373(_0x436238[_0xf526]['item']['name'],_0x436238[_0xf526]['item']['getAttributes']());_0x1efd65[0x0]['_appendChild'](_0x3e741f),_0x4e4284['push'](0x0),_0x1efd65['unshift'](_0x3e741f),_0x436238[_0xf526]['nextPosition']=_0x5f232b['createPositionFromPath'](_0x57ac12,_0x4e4284);}else'elementEnd'===_0x436238[_0xf526]['type']?(_0x1efd65['shift'](),_0x436238[_0xf526]['previousPosition']=_0x5f232b['createPositionFromPath'](_0x57ac12,_0x4e4284),_0x4e4284['pop'](),_0x4e4284[_0x4e4284['length']-0x1]++,_0x436238[_0xf526]['nextPosition']=_0x5f232b['createPositionFromPath'](_0x57ac12,_0x4e4284)):(_0x436238[_0xf526]['previousPosition']=_0x5f232b['createPositionFromPath'](_0x57ac12,_0x4e4284),_0x14b991?_0x14b991['_data']+=_0x436238[_0xf526]['item']['data']:_0x14b991=new _0x3c0cd2(_0x436238[_0xf526]['item']['data'],_0x436238[_0xf526]['item']['getAttributes']()),_0x436238[_0xf526+0x1]&&'text'===_0x436238[_0xf526+0x1]['type']&&_0x401fd3(_0x14b991,_0x436238[_0xf526+0x1]['item'])||(_0x1efd65[0x0]['_appendChild'](_0x14b991),_0x14b991=null),_0x4e4284[_0x4e4284['length']-0x1]+=_0x436238[_0xf526]['item']['offsetSize'],_0x436238[_0xf526]['nextPosition']=_0x5f232b['createPositionFromPath'](_0x57ac12,_0x4e4284));for(let _0x157cbc=0x0;_0x157cbc<_0x436238['length'];_0x157cbc++){const _0x4f5b7f=_0x436238[_0x157cbc]['previousPosition'],_0x100bbb=_0x436238[_0x157cbc]['nextPosition'];for(const _0x4afe6a of _0x436238[_0x157cbc]['markersStart'])_0xd100b6['set'](_0x4afe6a,{'start':_0x4f5b7f,'end':null});_0x1606f1('isRemoveSuggestion',_0x157cbc,_0x4f5b7f,_0x100bbb),_0x1606f1('isAddSuggestion',_0x157cbc,_0x4f5b7f,_0x100bbb),_0x1606f1('isRemoved',_0x157cbc,_0x4f5b7f,_0x100bbb),_0x1606f1('isAdded',_0x157cbc,_0x4f5b7f,_0x100bbb);for(const _0x5d7ffc of _0x436238[_0x157cbc]['markersEnd']){const _0xafcc9f=_0xd100b6['get'](_0x5d7ffc);_0xafcc9f?_0xafcc9f['end']=_0x100bbb:_0xd100b6['set'](_0x5d7ffc,{'start':_0x100bbb,'end':_0x100bbb});}}for(const [_0x58b354,_0x2b9f32]of _0xd100b6){const _0x2d1cca=this['editor']['model']['createRange'](_0x2b9f32['start'],_0x2b9f32['end']);_0x57ac12['markers']['set'](_0x58b354,_0x2d1cca);}return _0x1a0c09['sort']((_0x3e5353,_0x3fec95)=>{const _0xa03984=_0x57ac12['markers']['get']('revision:'+_0x3e5353['id']),_0x585bbd=_0x57ac12['markers']['get']('revision:'+_0x3fec95['id']);return _0xa03984['start']['isBefore'](_0x585bbd['start'])?-0x1:_0xa03984['start']['isAfter'](_0x585bbd['start'])?0x1:_0xa03984['end']['isBefore'](_0x585bbd['end'])?-0x1:_0xa03984['end']['isAfter'](_0x585bbd['end'])?0x1:'add'===_0x3e5353['type']?-0x1:0x1;}),{'root':_0x57ac12,'changes':_0x1a0c09};function _0x1606f1(_0x558213,_0x5e4fd3,_0x1a14b8,_0x4f6f17){const _0x581a9a=!!_0x436238[_0x5e4fd3][_0x558213],_0x47c65a=_0x581a9a?_0x436238[_0x5e4fd3][_0x558213]['userId']:null,_0x2ba7ec=_0x5e4fd3===_0x436238['length']-0x1,_0x35c1e5=_0x193752[_0x558213][0x0],_0x2b75d7=_0x4a25b5['isObject'](_0x436238[_0x5e4fd3]['item']);!_0x12bdf4[_0x558213]&&_0x581a9a?_0x12bdf4[_0x558213]={'start':_0x1a14b8,'tapeItem':_0x436238[_0x5e4fd3],'userId':_0x47c65a,'type':_0x558213}:_0x12bdf4[_0x558213]&&!_0x581a9a?(_0x12bdf4[_0x558213]['end']=_0x1a14b8,_0x3b9c33(_0x12bdf4[_0x558213]),_0x12bdf4[_0x558213]=null):_0x12bdf4[_0x558213]&&_0x581a9a&&_0x12bdf4[_0x558213]['userId']!==_0x47c65a&&(_0x12bdf4[_0x558213]['end']=_0x1a14b8,_0x35c1e5&&_0x35c1e5['userId']===_0x12bdf4[_0x558213]['userId']||_0x3b9c33(_0x12bdf4[_0x558213]),_0x12bdf4[_0x558213]={'start':_0x1a14b8,'tapeItem':_0x436238[_0x5e4fd3],'userId':_0x47c65a,'type':_0x558213}),_0x12bdf4[_0x558213]&&_0x2b75d7&&('elementStart'!==_0x436238[_0x5e4fd3]['type']||_0x35c1e5&&_0x35c1e5['userId']===_0x47c65a||_0x193752[_0x558213]['unshift']({'userId':_0x47c65a,'object':_0x436238[_0x5e4fd3]['item'],'change':_0x12bdf4[_0x558213]}),'elementEnd'===_0x436238[_0x5e4fd3]['type']&&_0x35c1e5&&_0x35c1e5['object']===_0x436238[_0x5e4fd3]['item']&&(_0x193752[_0x558213]['shift'](),_0x12bdf4[_0x558213]=_0x35c1e5['change'])),_0x12bdf4[_0x558213]&&_0x2ba7ec&&(_0x12bdf4[_0x558213]['end']=_0x4f6f17,_0x3b9c33(_0x12bdf4[_0x558213]),_0x12bdf4[_0x558213]=null);}function _0x3b9c33({start:_0x49b6bb,end:_0x2f976e,tapeItem:_0x3d6bdd,userId:_0x17bfa6,type:_0x5b8085}){const _0xec4a2f=_0x3d6bdd['item'],_0x37a3ee=_0x5f232b['schema']['isBlock'](_0xec4a2f)&&!_0x5f232b['schema']['isLimit'](_0xec4a2f),_0x101452=_0x49b6bb['nodeAfter']==_0x2f976e['parent']&&_0x2f976e['isAtStart'];if(_0x37a3ee&&_0x101452)return;const _0x1025cb=_0x5f232b['createRange'](_0x49b6bb,_0x2f976e),_0x3cc378=new YN({'author':_0x279abd['get'](_0x17bfa6),'type':'isAdded'==_0x5b8085||'isAddSuggestion'==_0x5b8085?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5b8085||'isRemoveSuggestion'==_0x5b8085},'createdAt':new Date(),'rootName':_0x508a7e});_0x1a0c09['push'](_0x3cc378),_0x57ac12['markers']['set']('revision:'+_0x3cc378['id'],_0x1025cb);}function _0x401fd3(_0x4e9d3d,_0x5222fc){const _0x1d7e04=_0x4e9d3d['getAttributes'](),_0x532169=_0x5222fc['getAttributes']();for(const _0x208890 of _0x1d7e04){if(_0x208890[0x1]!==_0x5222fc['getAttribute'](_0x208890[0x0]))return!0x1;_0x532169['next']();}return _0x532169['next']()['done'];}}_setConversion(){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x59bf7a=>{const _0x449ea0=_0x59bf7a['markerName']['split'](':')[0x1],_0x18d1dd=this['_getChangeFromId'](_0x449ea0);if(!_0x18d1dd)return null;const _0x21e955='add'==_0x18d1dd['type']?'insertion':'deletion',_0x2a21a9=['ck-suggestion-marker','ck-suggestion-marker-'+_0x21e955];return _0x18d1dd['data']['isSuggestion']&&_0x2a21a9['push']('ck-suggestion-marker-'+_0x21e955+'-new'),this['activeChange']==_0x18d1dd&&_0x2a21a9['push']('ck-suggestion-marker--active'),{'classes':_0x2a21a9,'attributes':{'data-change-id':_0x449ea0}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5c811c=>{_0x5c811c['on']('element:pre',(_0x1c1919,_0x5603d0,_0x41a024)=>{const _0x38a94b=_0x5603d0['viewItem']['getChild'](0x0);if(!_0x38a94b||!_0x38a94b['is']('element','code'))return;if(!_0x41a024['consumable']['consume'](_0x38a94b,{'attributes':['vid_start','vid_end']}))return;const _0x29f557=_0x5603d0['modelRange']['start']['nodeAfter'];_0x41a024['writer']['setAttribute']('vid_start',_0x38a94b['getAttribute']('vid_start'),_0x29f557),_0x41a024['writer']['setAttribute']('vid_end',_0x38a94b['getAttribute']('vid_end'),_0x29f557);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5ddb4d=>{_0x5ddb4d['on']('element',(_0x504a65,_0x3d8169,_0x25f073)=>{if(!_0x25f073['consumable']['consume'](_0x3d8169['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3d8169['modelRange']['isCollapsed'])return;const _0x186aaf=_0x3d8169['modelRange']['start']['nodeAfter'];_0x186aaf['hasAttribute']('vid_start')||_0x186aaf['hasAttribute']('vid')||(_0x25f073['writer']['setAttribute']('vid_start',_0x3d8169['viewItem']['getAttribute']('vid_start'),_0x186aaf),_0x25f073['writer']['setAttribute']('vid_end',_0x3d8169['viewItem']['getAttribute']('vid_end'),_0x186aaf));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x24b341=>_0x24b341['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xa954ad,[,_0xe1c094])=>{['vid_start','vid_end','vid']['includes'](_0xe1c094)&&(_0xa954ad['return']=!0x0,_0xa954ad['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x51dd94=>{_0x51dd94['on']('attribute:vid',(_0x576c4d,_0x2e1d57,_0xa297e4)=>{if('\x20'!=_0x2e1d57['item']['data']||_0x2e1d57['item']['parent']['maxOffset']>0x1)return;if(!_0xa297e4['consumable']['consume'](_0x2e1d57['item'],_0x576c4d['name']))return;const _0x5c4281=_0xa297e4['writer'],_0x1154e9=_0xa297e4['mapper']['toViewRange'](_0x2e1d57['range']);_0x5c4281['wrap'](_0x1154e9,_0x5c4281['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2dfd29){const _0x1114ce=_0x2dfd29['plugins']['get']('RevisionViewer');return(_0x18e540,_0x1ad0a6,_0x196d22)=>{const _0x31232a=_0x1ad0a6['markerName']['split'](':')[0x1],_0x50e558=_0x1114ce['_getChangeFromId'](_0x31232a);if(!_0x50e558)return null;const _0x3fa31f='add'==_0x50e558['type']?'split':'merge';if(!_0x196d22['consumable']['test'](_0x1ad0a6['markerRange'],_0x18e540['name']))return;const _0x6d00=_0x1ad0a6['markerRange']['getWalker'](),_0x32478e=_0x1ad0a6['markerRange']['start'],_0x23c8dd=_0x2dfd29['model']['schema'];let _0x29c2e9=null,_0x27e56d=null,_0x45b27e=!0x1,_0xa9f7fc=!0x1;for(const _0x5c7a68 of _0x6d00){const _0x349bc6=_0x5c7a68['item'];_0x45b27e=_0x45b27e||_0x23c8dd['isContent'](_0x349bc6);const _0x1caab0=_0x196d22['mapper']['toViewElement'](_0x349bc6);if(_0x1caab0&&_0x1caab0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5c7a68['type']&&(_0x23c8dd['isBlock'](_0x349bc6)&&!_0x23c8dd['isLimit'](_0x349bc6)&&(_0x349bc6['nextSibling']||_0x32478e['isAtEnd']?_0x29c2e9&&_0x29c2e9['parent']==_0x349bc6||(_0x29c2e9=_0x349bc6,_0x1896ee(_0x5c7a68['previousPosition']),_0xa9f7fc=!0x0):_0x27e56d=_0x27e56d||_0x5c7a68['previousPosition']));}function _0x1896ee(_0x2eca5f){const _0x3963e6=_0x196d22['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3fa31f}),_0x98222=_0x196d22['mapper']['toViewPosition'](_0x2eca5f);_0x50e558['data']['isSuggestion']&&_0x196d22['writer']['addClass']('ck-suggestion-marker-'+_0x3fa31f+'-new',_0x3963e6),_0x1114ce['activeChange']==_0x50e558&&_0x196d22['writer']['addClass']('ck-suggestion-marker--active',_0x3963e6),_0x196d22['writer']['insert'](_0x98222,_0x3963e6),_0x196d22['mapper']['bindElementToMarker'](_0x3963e6,_0x1ad0a6['markerName']);}_0x45b27e||_0xa9f7fc||!_0x27e56d||_0x1896ee(_0x27e56d);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xed055,_0x30e3be,_0x380f8e)=>{const _0x20356f=_0x380f8e['mapper']['markerNameToElements'](_0x30e3be['markerName']);if(_0x20356f){for(const _0x526761 of _0x20356f)(_0x526761['hasClass']('ck-suggestion-marker-split')||_0x526761['hasClass']('ck-suggestion-marker-merge'))&&(_0x380f8e['mapper']['unbindElementFromMarkerName'](_0x526761,_0x30e3be['markerName']),_0x380f8e['writer']['remove'](_0x526761));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xab4219,_0x2158c3,_0x525dcc)=>{const _0x4c27e4=_0x2158c3['markerName']['split'](':')[0x1],_0x25ec6a=this['_getChangeFromId'](_0x4c27e4);if(!_0x25ec6a)return null;const _0x1a42d2='add'==_0x25ec6a['type']?'split':'merge';if(_0x525dcc['consumable']['test'](_0x2158c3['markerRange'],_0xab4219['name']))for(const _0x3bf86b of _0x2158c3['markerRange']['getItems']()){if(!_0x3bf86b['is']('element','softBreak'))continue;const _0x28d8da=_0x525dcc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1a42d2}),_0x47bf7a=_0x525dcc['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3bf86b));_0x25ec6a['data']['isSuggestion']&&_0x525dcc['writer']['addClass']('ck-suggestion-marker-'+_0x1a42d2+'-new',_0x28d8da),this['activeChange']==_0x25ec6a&&_0x525dcc['writer']['addClass']('ck-suggestion-marker--active',_0x28d8da),_0x525dcc['writer']['insert'](_0x47bf7a,_0x28d8da),_0x525dcc['mapper']['bindElementToMarker'](_0x28d8da,_0x2158c3['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x58a54d=>{for(const _0x41e60d of this['editor']['model']['document']['getRootNames']()){const _0x35d394=this['editor']['model']['document']['getRoot'](_0x41e60d),_0x21422e=this['editor']['editing']['view']['document']['getRoot'](_0x41e60d);if(_0x21422e){const _0x29438d=_0x35d394['getAttribute']('revisionHistoryAttachChange');if(_0x58a54d['removeAttribute']('data-change-id',_0x21422e),_0x58a54d['removeClass']('ck-revision-history-root-add',_0x21422e),_0x58a54d['removeClass']('ck-revision-history-root-remove',_0x21422e),_0x58a54d['removeClass']('ck-revision-history-root--active',_0x21422e),_0x29438d){const _0xe53a74=this['_getChangeFromId'](_0x29438d);if(!_0xe53a74)return null;_0x58a54d['setAttribute']('data-change-id',_0x29438d,_0x21422e),_0x58a54d['addClass']('ck-revision-history-root-'+_0xe53a74['type'],_0x21422e),this['activeChange']==_0xe53a74&&_0x58a54d['addClass']('ck-revision-history-root--active',_0x21422e);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x211049=>'revision-comment:'+_0x211049,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3836fa=>'revision-suggestion:'+_0x3836fa,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3d25d3=>({'name':'suggestion:'+_0x3d25d3,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1ed7a7=>{const _0x197326=_0x1ed7a7['markerName']['split'](':')[0x1];return'insertion'!=_0x197326&&'deletion'!=_0x197326?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x197326]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tM(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tM(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x354589,_0x32e097,_0xd218a4)=>{const _0x2c357d=_0xd218a4['mapper']['markerNameToElements'](_0x32e097['markerName']);if(_0x2c357d){for(const _0x3dab1c of _0x2c357d)_0x3dab1c['is']('uiElement')&&(_0xd218a4['mapper']['unbindElementFromMarkerName'](_0x3dab1c,_0x32e097['markerName']),_0xd218a4['writer']['remove'](_0x3dab1c));}},{'priority':'high'});}_getChangeFromId(_0x3bbc50){return this['_changeIdToChange']['get'](_0x3bbc50);}_getViewForChange(_0xadf516){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new WN(this['editor']['locale'],_0xadf516),this['_changeView'];}_initInteractions(){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4be01a,_0x5171ef,_0x28845f,_0x32f271)=>{_0x32f271&&this['_balloon']['remove'](_0x32f271),_0x28845f&&(this['_balloon']['add']({'view':_0x28845f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x17ec62=this['editor']['editing'],_0x44d7dd=this['_getChangeFromId'](_0x28845f['changeId']);let _0x560fdc;if(_0x44d7dd['data']['isOnRoot']){const _0x1df451=_0x17ec62['view']['getDomRoot'](_0x44d7dd['rootName']);_0x560fdc=Array['from'](_0x1df451['getClientRects']());}else{const _0x3b48d6=this['editor']['model']['markers']['get']('revision:'+_0x28845f['changeId']);_0x560fdc=Array['from'](_0x17ec62['mapper']['markerNameToElements'](_0x3b48d6['name']))['map'](_0xb65b96=>_0x17ec62['view']['domConverter']['mapViewToDom'](_0xb65b96))['map'](_0x3693c5=>Array['from'](_0x3693c5['getClientRects']()))['flat']();}return this['_activeViewTarget']&&_0x560fdc['find'](_0x229611=>_0x229611['top']-0x3<=this['_activeViewTarget']['y']&&_0x229611['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x229611['left']-0x3<=this['_activeViewTarget']['x']&&_0x229611['right']+0x3>=this['_activeViewTarget']['x'])||_0x560fdc[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2996fd,_0xc4f7a5,_0x3a3f2,_0x2e7b39)=>{this['activeView']=_0x3a3f2?this['_getViewForChange'](_0x3a3f2):null,this['editor']['model']['change'](()=>{const _0x125625=this['editor']['editing'];_0x2e7b39&&(_0x2e7b39['data']['isOnRoot']?_0x125625['view']['change'](_0x181c26=>{_0x181c26['removeClass']('ck-revision-history-root--active',_0x125625['view']['document']['getRoot'](_0x2e7b39['rootName']));}):_0x125625['reconvertMarker']('revision:'+_0x2e7b39['id'])),_0x3a3f2&&(_0x3a3f2['data']['isOnRoot']?_0x125625['view']['change'](_0x3b62fc=>{_0x3b62fc['addClass']('ck-revision-history-root--active',_0x125625['view']['document']['getRoot'](_0x3a3f2['rootName']));}):_0x125625['reconvertMarker']('revision:'+_0x3a3f2['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xd02896,_0x5334df)=>{if(this['activeChange'])return;const _0x30536f=this['_findChangeIdFromDomTarget'](_0x5334df['target']),_0x11df85=this['_changeIdToChange']['get'](_0x30536f);_0x11df85?(this['_activeViewTarget']={'x':_0x5334df['domEvent']['x'],'y':_0x5334df['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x11df85)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x38592d,_0x53f5d0)=>{const _0x35e88=this['_findChangeIdFromDomTarget'](_0x53f5d0['target']),_0x46ba64=this['_changeIdToChange']['get'](_0x35e88);_0x46ba64?(this['_activeViewTarget']={'x':_0x53f5d0['domEvent']['x'],'y':_0x53f5d0['domEvent']['y']},_0x46ba64===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x46ba64):(this['_activeViewTarget']=null,this['activeChange']=null);});}_findChangeIdFromDomTarget(_0x118370){do{const _0x46531e=_0x118370['getAttribute']('data-change-id');if(_0x46531e)return _0x46531e;_0x118370=_0x118370['parent'];}while(_0x118370);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x45d646=>{for(const _0xbd5d6c of this['editor']['model']['markers'])_0x45d646['removeMarker'](_0xbd5d6c);});}};function tM(_0x59f7d8,_0x3761d3){return(_0x18577c,_0x17bf18,_0x1439da)=>{if(!_0x1439da['consumable']['test'](_0x17bf18['markerRange'],_0x18577c['name']))return;const _0x539c45=_0x17bf18['markerRange']['getWalker'](),_0x19b3bf=_0x17bf18['markerRange']['start'],_0x53139c=_0x59f7d8['model']['schema'];let _0x2dbf4f=null,_0x2576ac=null,_0x498157=!0x1,_0x3fc7ba=!0x1;for(const _0x21971c of _0x539c45){const _0x3c693c=_0x21971c['item'];_0x498157=_0x498157||_0x53139c['isContent'](_0x3c693c);const _0x1a5122=_0x1439da['mapper']['toViewElement'](_0x3c693c);if(_0x1a5122&&_0x1a5122['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x21971c['type']&&(_0x53139c['isBlock'](_0x3c693c)&&!_0x53139c['isLimit'](_0x3c693c)&&(_0x3c693c['nextSibling']||_0x19b3bf['isAtEnd']?_0x2dbf4f&&_0x2dbf4f['parent']==_0x3c693c||(_0x2dbf4f=_0x3c693c,_0x49eb5a(_0x21971c['previousPosition']),_0x3fc7ba=!0x0):_0x2576ac=_0x2576ac||_0x21971c['previousPosition']));}function _0x49eb5a(_0x19a43e){const _0x3d386b=_0x1439da['mapper']['toViewPosition'](_0x19a43e),_0x4074cc=_0x1439da['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3761d3});_0x1439da['writer']['insert'](_0x3d386b,_0x4074cc),_0x1439da['mapper']['bindElementToMarker'](_0x4074cc,_0x17bf18['markerName']);}_0x498157||_0x3fc7ba||!_0x2576ac||_0x49eb5a(_0x2576ac);};}var eM=class extends _0x44d8e7{constructor(_0x1e5546){super(_0x1e5546);const _0x42dce6=_0x1e5546['plugins']['get'](JN);this['affectsData']=!0x1,this['listenTo'](_0x42dce6,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x42dce6,'change:isEnabled',()=>this['refresh']());}execute(){const _0x120ce7=this['editor'],_0x48bea4=_0x120ce7['plugins']['get'](JN),_0x548edb=_0x48bea4['isReady']?_0x48bea4['diff']['newRevisionId']:null;_0x120ce7['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x548edb);}['refresh'](){const {isReady:_0x4a9223,isEnabled:_0x36b983,repository:_0x3f3264,diff:_0x1752f0}=this['editor']['plugins']['get'](JN),_0x184a99=_0x1752f0&&_0x3f3264['getLaterVisibleRevision'](_0x1752f0['newRevisionId']);this['isEnabled']=_0x4a9223&&_0x36b983&&Boolean(_0x184a99);}},iM=class extends _0x44d8e7{_step;constructor(_0x4f9d01,{direction:_0xdb0554}){super(_0x4f9d01);const _0x37729e=_0x4f9d01['plugins']['get'](JN);this['affectsData']=!0x1,this['_step']='forward'===_0xdb0554?0x1:-0x1,this['listenTo'](_0x37729e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x37729e,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x37729e,'change:activeChange',()=>this['refresh']());}execute(){const _0x49cd76=this['editor'],_0x1ee749=_0x49cd76['plugins']['get'](JN),{isNavigationMode:_0x549eb0,currentChangeNumber:_0x2126f5}=_0x1ee749;let _0x4dc866;if(_0x1ee749['activeChange']=_0x549eb0?_0x1ee749['diff']['changes']['get'](_0x2126f5+this['_step']):_0x1ee749['diff']['changes']['first'],_0x1ee749['activeChange']['data']['isOnRoot'])_0x4dc866=_0x49cd76['editing']['view']['getDomRoot'](_0x1ee749['activeChange']['rootName']);else{const _0x592c39=_0x49cd76['model']['markers']['get']('revision:'+_0x1ee749['activeChange']['id']);_0x4dc866=xm(_0x49cd76['editing'],_0x592c39);}_0xc72d5d({'target':_0x4dc866,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3f6a4a,currentChangeNumber:_0x6dce84,numberOfChanges:_0x80c015,isReady:_0x308934,isEnabled:_0x1fce9c}=this['editor']['plugins']['get'](JN);this['isEnabled']=!!(_0x1fce9c&&_0x308934&&_0x80c015)&&(!_0x3f6a4a||(0x1===this['_step']?_0x6dce84<_0x80c015-0x1:_0x6dce84>0x0));}},sM=class extends _0x2f6e1a{constructor(_0x2c433f){super(_0x2c433f);const _0x220ce6=this['bindTemplate'],_0x493052=new _0x39ae99(_0x2c433f),_0x5132dd=new _0x39ae99(_0x2c433f);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x1bd733,_0x4173cb)=>_0x1bd733&&_0x4173cb>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x394347,_0x58cbb9,_0x477766,_0x1e5d73)=>{if(!_0x394347)return jN(_0x2c433f,'Loading...');if(!_0x477766)return jN(_0x2c433f,'No\x20changes');const _0x13885b=jN(_0x2c433f,'NUMBER_OF_CHANGES',_0x477766);return _0x1e5d73?jN(_0x2c433f,'X_OF_Y_CHANGES',[_0x58cbb9+0x1,_0x477766]):_0x13885b;}),_0x493052['set']({'label':jN(_0x2c433f,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x313b4b}),_0x5132dd['set']({'label':jN(_0x2c433f,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4cb2ca}),_0x493052['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5132dd['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x493052['on']('execute',()=>this['fire']('execute','backward')),_0x5132dd['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x220ce6['if']('_isStatusLabelVisible','ck-hidden',_0x2d4fac=>!_0x2d4fac)]},'children':[{'text':_0x220ce6['to']('isNavigationMode',_0x4c171f=>_0x4c171f?jN(_0x2c433f,'EDIT_X_OF_Y_REVISIONS')+':\x20':jN(_0x2c433f,'Total')+':\x20')}]},{'text':_0x220ce6['to']('_statusText')}]},new _0x321c2c(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x493052,_0x5132dd]}]});}};const nM='ck-editor__editable__loading-overlay';var rM=class extends _0x11fe30{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2b7d29=this['editor']['editing']['view'];_0x2b7d29['change'](_0x2e3daa=>{for(const _0x442e69 of _0x2b7d29['document']['roots'])_0x2e3daa['addClass'](nM,_0x442e69);});}['hide'](){const _0x39be5e=this['editor']['editing']['view'];_0x39be5e['change'](_0x574aba=>{for(const _0x3e1678 of _0x39be5e['document']['roots'])_0x574aba['removeClass'](nM,_0x3e1678);});}},oM=class extends _0x11fe30{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[JN,rM];}init(){const _0x2b8ebe=this['editor'],_0x3fde82=_0x2b8ebe['plugins']['get'](JN),_0x3bc0c2=_0x2b8ebe['plugins']['get'](rM);_0x2b8ebe['ui']['componentFactory']['add']('exitToEditing',_0x3b7b9c=>{const _0x3c5f2b=new _0x39ae99(_0x3b7b9c);return _0x3c5f2b['set']({'label':jN(_0x3b7b9c,'Back\x20to\x20editing'),'icon':_0x43d11e,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3c5f2b,'execute',()=>{_0x2b8ebe['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3c5f2b;}),_0x2b8ebe['ui']['componentFactory']['add']('restoreRevision',_0x57d982=>{const _0x38c834=new _0x39ae99(_0x57d982);return _0x38c834['set']({'label':jN(_0x57d982,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x38c834['bind']('isEnabled')['to'](_0x2b8ebe['commands']['get']('restoreRevision')),this['listenTo'](_0x38c834,'execute',()=>_0x2b8ebe['execute']('restoreRevision')),_0x38c834;}),_0x2b8ebe['ui']['componentFactory']['add']('changesNavigation',_0x15335c=>{const _0x20240c=new sM(_0x15335c),_0x38bb0a=_0x2b8ebe['commands']['get']('showPreviousChange'),_0x2adf8d=_0x2b8ebe['commands']['get']('showNextChange');return _0x20240c['bind']('isBackwardNavigationEnabled')['to'](_0x38bb0a,'isEnabled'),_0x20240c['bind']('isForwardNavigationEnabled')['to'](_0x2adf8d,'isEnabled'),_0x20240c['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3fde82),this['listenTo'](_0x20240c,'execute',(_0x1fc879,_0x570b4b)=>{_0x2b8ebe['execute']('forward'===_0x570b4b?'showNextChange':'showPreviousChange');}),_0x20240c;}),_0x3bc0c2['show'](),_0x3fde82['on']('change:isReady',(_0x2213ad,_0x4b2ba6,_0x187a18)=>{_0x187a18?_0x3bc0c2['hide']():_0x3bc0c2['show']();});}},aM=class extends _0x51334f{['_resizeObserver']=null;constructor(_0x262e61,_0x16386a){super(_0x262e61,_0x16386a);const _0x82d07d=this['bindTemplate'];this['set']({'label':jN(_0x262e61,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=jN(_0x262e61,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x82d07d['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new _0x55dcdb(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}destroy(){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}_updateTooltipText(){const _0x4ec22f=this['fieldView']['element'];this['_tooltipString']=_0x4ec22f['scrollWidth']>_0x4ec22f['clientWidth']&&_0x4ec22f['value']||'';}},cM=class extends _0x2f6e1a{constructor(_0x5eaee3,_0x21c929,_0x56fb77){super(_0x5eaee3);const _0xe8bf47=new _0x5d1800();_0xe8bf47['set']({'content':_0x537674,'viewBox':'0\x200\x2011\x2010'});const _0x35b6d3=['ck','ck-revision-history-sidebar__revision-author'];_0x56fb77&&_0x35b6d3['push']('ck-revision-history-sidebar__revision-author_creator');const _0x366393=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':jN(_0x5eaee3,_0x56fb77?'Revision\x20creator':'Revision\x20author')},'children':[_0xe8bf47,_0x21c929['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x35b6d3},'children':_0x366393});}};function lM(_0x2e6738,_0x50b6e6){const _0x6b0aab=_0x2e6738['bindTemplate'],_0x282964=_0x2e6738['locale'],_0x239c9c=_0x46490d(_0x282964);_0x239c9c['panelPosition']='sw';const _0x336870=function(_0x23c845,_0x5353d9){const _0x261c97=function(_0x22277e,_0x1c7b67){const _0x26b70b=_0x22277e['locale'],_0xacd828={'Compare\x20against\x20selected':jN(_0x26b70b,'Compare\x20against\x20selected'),'Name\x20this\x20revision':jN(_0x26b70b,'Name\x20this\x20revision'),'Restore\x20this\x20revision':jN(_0x26b70b,'Restore\x20this\x20revision')};return _0x1c7b67['map'](_0x3f5d5b=>{const _0x158697=_0xacd828[_0x3f5d5b['name']];return _0x158697&&_0x158697!==_0x3f5d5b['name']&&(_0x3f5d5b['name']=_0x158697),_0x3f5d5b;});}(_0x23c845,_0x5353d9),_0x47c238=new _0x2186b6();for(const _0x1ddcf0 of _0x261c97){const _0x52d404={'type':'button','model':new ts({'label':_0x1ddcf0['name'],'class':_0x1ddcf0['class'],'withText':!0x0,'role':'menuitem','_action':_0x1ddcf0['action']})};_0x52d404['model']['bind']('isEnabled')['to'](_0x23c845,'isActionsDropdownOpen',_0x5da2e2=>'function'!=typeof _0x1ddcf0['isEnabled']||(!_0x5da2e2||_0x1ddcf0['isEnabled'](_0x23c845))),_0x47c238['add'](_0x52d404);}return _0x47c238;}(_0x2e6738,_0x50b6e6);return _0x2e6738['bind']('isActionsDropdownOpen')['to'](_0x239c9c,'isOpen'),_0x239c9c['buttonView']['set']({'label':jN(_0x282964,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1589e0}),_0x239c9c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x6b0aab['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x6b0aab['to'](_0x25fbbc=>_0x25fbbc['stopPropagation']())}}),_0x239c9c['on']('execute',_0x2fa4e4=>{_0x2e6738['isReady']&&'function'==typeof _0x2fa4e4['source']['_action']&&_0x2fa4e4['source']['_action'](_0x2e6738);}),_0x55b796(_0x239c9c,_0x336870,{'role':'menu'}),_0x239c9c['listenTo'](_0x2e6738,'change:isActionsDropdownOpen',(_0x6ccb1e,_0x1eed26,_0x53fbd1)=>{if(_0x53fbd1)for(const _0x24c294 of _0x239c9c['listView']['items']){const _0xe96c16=_0x24c294['children']['first'],_0x4f6777=_0x50b6e6['find'](_0x533696=>_0x533696['action']===_0xe96c16['_action'])['isVisible'];_0x24c294['isVisible']=void 0x0===_0x4f6777||_0x4f6777(_0x2e6738);}}),_0x239c9c;}const hM=/* #__PURE__ -- @preserve */
Mm(_0x2f6e1a);var uM=class extends hM{['id'];['revisionNameView'];revisionActionsView;['_revision'];_requireRevisionName;constructor(_0x17855f,_0x15caa1,_0x31f99b,_0x4c996a){super(_0x17855f);const _0x2214af=this['bindTemplate'],_0x24df1f=function(_0xf2e3a6,_0x27278){const _0x3ae534=Array['from'](_0x27278['authors'])['filter'](_0x43971c=>_0x43971c!=_0x27278['creator']);return _0x27278['creator']&&_0x3ae534['unshift'](_0x27278['creator']),_0x3ae534['map'](_0x4a6c51=>new cM(_0xf2e3a6,_0x4a6c51,_0x4a6c51==_0x27278['creator']));}(_0x17855f,_0x15caa1);this['id']=_0x15caa1['id'],this['_revision']=_0x15caa1,this['_requireRevisionName']=_0x4c996a,this['bind']('name','createdAt')['to'](_0x15caa1),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x14df71=>{return _0x1b7055=_0x17855f['uiLanguage'],(_0x342921=_0x14df71)['toLocaleDateString'](_0x1b7055,{'month':'long','day':'numeric'})+',\x20'+_0x342921['toLocaleTimeString'](_0x1b7055,{'hour':'numeric','minute':'numeric'});var _0x1b7055,_0x342921;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new aM(_0x17855f,_0x565b0b),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x4f19f1=>_0x4f19f1||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x44b684,_0xfa9323)=>_0x44b684&&_0xfa9323),this['revisionActionsView']=_0x31f99b&&_0x31f99b['length']?lM(this,_0x31f99b):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2214af['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2214af['if']('isEnabled','ck-disabled',_0x5682d0=>!_0x5682d0),_0x2214af['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2214af['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2214af['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x2214af['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x24df1f}]},this['revisionActionsView']],'on':{'click':_0x2214af['to'](_0x440d51=>{_0x440d51['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x2cca4a=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x2cca4a,'change',()=>{this['_requireRevisionName']&&!_0x2cca4a['value']||this['fire']('setName',{'id':this['id'],'name':_0x2cca4a['value']}),_0x2cca4a['value']||(_0x2cca4a['value']=this['name']?this['name']:this['_createdAtFormatted']);});}select(){this['isSelected']=!0x0;}deselect(){this['isSelected']=!0x1;}highlight(){this['isHighlighted']=!0x0;}unhighlight(){this['isHighlighted']=!0x1;}};function dM(_0x157d7b,_0x35af90){const _0x872e5b=Sm['fromJSDate'](_0x157d7b)['setLocale'](_0x35af90),_0x4ceabc=Sm['local'](),_0x249503=_0x4ceabc['minus']({'days':0x1})['startOf']('day');let _0x242acc,_0x3041b8;return _0x872e5b['hasSame'](_0x4ceabc,'day')?(_0x242acc=_0x872e5b['startOf']('day')['toJSDate'](),_0x3041b8=_0x872e5b['toRelativeCalendar']()):_0x872e5b['hasSame'](_0x249503,'day')?(_0x242acc=_0x249503['toJSDate'](),_0x3041b8=_0x872e5b['toRelativeCalendar']()):_0x872e5b['hasSame'](_0x4ceabc,'week')?(_0x242acc=_0x872e5b['startOf']('week')['toJSDate'](),_0x3041b8=_0x872e5b['weekdayLong']||''):_0x872e5b['hasSame'](_0x4ceabc,'year')?(_0x242acc=_0x872e5b['startOf']('month')['toJSDate'](),_0x3041b8=_0x872e5b['monthLong']||''):(_0x242acc=_0x872e5b['startOf']('year')['toJSDate'](),_0x3041b8=String(_0x872e5b['year'])),{'startDate':_0x242acc,'localizedPeriodName':_0x3041b8};}var fM=class extends _0x2f6e1a{startDate;['revisionViews'];_revisionActions;_requireRevisionName;constructor(_0x441b1a,_0x2db7a2,_0xf8380d,_0x53b3a8){super(_0x441b1a);const _0x72291=dM(_0x2db7a2,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x2db7a2,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0xf8380d,this['_requireRevisionName']=_0x53b3a8,this['revisionViews']['delegate']('select')['to'](this),this['revisionViews']['delegate']('setName')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x72291}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x1d3d1d){const _0x577040=new uM(this['locale'],_0x1d3d1d,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x577040);}['removeRevision'](_0x144d08){const _0x26dc2=this['revisionViews']['find'](_0x26eeb8=>_0x26eeb8['id']===_0x144d08['id']);this['revisionViews']['remove'](_0x26dc2);}},mM=class extends _0x2f6e1a{constructor(_0x420e6c){super(_0x420e6c);const _0x22d973=new _0x5d1800();_0x22d973['content']=dt,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x22d973,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[jN(_0x420e6c,'Revision\x20history')]}]});}},pM=class extends _0x2f6e1a{timePeriodViews;['_revisions'];_revisionActions;_requireRevisionName;constructor(_0x12e135,_0xa2ce25,_0x513b10,_0x500503){super(_0x12e135);const _0x3d34f4=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0xa2ce25,this['_revisionActions']=_0x513b10,this['_requireRevisionName']=_0x500503,this['on']('select',(_0x47f6af,_0x1a5c3f)=>{this['fire']('revisionSelected',_0x1a5c3f);}),this['on']('setName',(_0x4b26de,_0x52992f)=>{this['fire']('revisionSetName',_0x52992f);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new mM(_0x12e135),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3d34f4['if']('isEnabled','ck-disabled',_0x3dc679=>!_0x3dc679)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x359d6b of this['_revisions'])this['_addRevision'](_0x359d6b);this['_revisions']['on']('add',(_0xa9d66b,_0x11809b)=>{this['_addRevision'](_0x11809b);}),this['_revisions']['on']('remove',(_0x365870,_0x45de8b)=>{this['_removeRevision'](_0x45de8b);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1f3614=>_0x1f3614['revisionViews']['map'](_0x121435=>_0x121435))['flat']();}selectRevision(_0x40643a){for(const _0x353e44 of this['revisionViews'])_0x40643a&&_0x40643a['id']===_0x353e44['id']?_0x353e44['select']():_0x353e44['deselect']();}highlightRevisions(_0x1ef3bb){for(const _0x10711e of this['revisionViews'])_0x1ef3bb['some'](({id:_0x5bdbae})=>_0x5bdbae===_0x10711e['id'])?_0x10711e['highlight']():_0x10711e['unhighlight']();}['_addRevision'](_0x19eae7){const _0x1269c5=dM(_0x19eae7['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x112859=this['_getTimePeriodViewByStartDate'](_0x1269c5);_0x112859||(_0x112859=new fM(this['locale'],_0x1269c5,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x112859)),_0x112859['addRevision'](_0x19eae7);}['_removeRevision'](_0x1643da){const _0x1ff489=dM(_0x1643da['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1ff489)['removeRevision'](_0x1643da);}_getTimePeriodViewByStartDate(_0x27febb){return this['timePeriodViews']['find'](_0x3877d4=>_0x3877d4['startDate']['getTime']()===_0x27febb['getTime']());}},gM=class RevisionsSidebar extends _0x11fe30{['_revisionViewer'];_revisionsRepository;['_sidebarView'];static defaultRevisionActions=/* #__PURE__ -- @preserve */
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static availableRevisionActions=/* #__PURE__ -- @preserve */
OM();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[JN];}constructor(_0x3586fc){super(_0x3586fc),this['_revisionViewer']=_0x3586fc['plugins']['get'](JN),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}init(){const _0x2223c0=this['_revisionsRepository']['_revisions'],_0x3d5d64=this['_createRevisionActions'](),_0x570558=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new pM(this['editor']['locale'],_0x2223c0,_0x3d5d64,this['editor']['config']['get']('revisionHistory.requireRevisionName')),this['_sidebarView']['on']('revisionSelected',this['_handleRevisionSelected']['bind'](this)),this['_sidebarView']['on']('revisionSetName',this['_handleRevisionSetName']['bind'](this)),this['_sidebarView']['bind']('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView']['timePeriodViews']['on']('add',(_0x1eda3b,_0x57601d)=>{_0x57601d['revisionViews']['on']('add',(_0xa3ce5f,_0x3f6084)=>{_0x3f6084['bind']('isEnabled','isReady')['to'](this['_revisionViewer']);});}),this['_sidebarView']['render'](),this['listenTo'](this['editor']['data'],'ready',this['_handleEditorDataReady']['bind'](this)),this['listenTo'](this['_revisionViewer'],'change:diff',this['_handleDiffChange']['bind'](this)),_0x570558['appendChild'](this['_sidebarView']['element']);}destroy(){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}_handleEditorDataReady(){const _0x429b33=this['_revisionsRepository']['getRevision'](0x0);if(_0x429b33){const _0x249529=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x429b33['id']);this['_revisionViewer']['compare'](_0x429b33,_0x249529);}}_handleRevisionSelected(_0x3f9176,_0x469906){const _0x53f229=this['_revisionsRepository']['getRevision'](_0x469906['id']),_0x1e50a9=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x53f229['id']);this['_revisionViewer']['compare'](_0x53f229,_0x1e50a9);}_handleRevisionSetName(_0x254d91,_0xc036bf){this['_revisionsRepository']['getRevision'](_0xc036bf['id'])['setName'](_0xc036bf['name']);}['_handleDiffChange'](_0x459b4a,_0x285bd6,_0x1dd458){const _0xfdeac7=this['_revisionsRepository']['getRevisionsInDiff'](_0x1dd458);_0xfdeac7['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0xfdeac7),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0xfdeac7[0x0]));}_createRevisionActions(){const _0x5c48dd=this['editor'],_0x4bcb0b=RevisionsSidebar['availableRevisionActions'],_0x2af6fe=_0x5c48dd['config']['get']('revisionHistory.revisionActions')||RevisionsSidebar['defaultRevisionActions'];if(_0x2af6fe['length'])return _0x2af6fe['map'](_0x580455=>{const _0x5aa732='string'==typeof _0x580455?Object['assign']({},_0x4bcb0b[_0x580455]):_0x580455;return _0x5aa732['action']=_0x5aa732['action']['bind'](this,_0x5c48dd),_0x5aa732['isVisible']&&(_0x5aa732['isVisible']=_0x5aa732['isVisible']['bind'](this,_0x5c48dd)),_0x5aa732;});}};function OM(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x41daae},_0x161d10)=>{const _0x3f6d3d=_0x41daae['get'](JN),_0x246ebd=_0x3f6d3d['repository'];let _0x508f74=_0x3f6d3d['diff']['newRevisionId'],_0x141d07=_0x161d10['id'];_0x246ebd['getIndex'](_0x508f74)>_0x246ebd['getIndex'](_0x141d07)&&([_0x508f74,_0x141d07]=[_0x141d07,_0x508f74]),_0x3f6d3d['compare'](_0x508f74,_0x141d07);},'isVisible':({plugins:_0x18fe90},_0x2c9074)=>{const _0x5ad9e8=_0x18fe90['get'](JN);return!(_0x5ad9e8['repository']['getRevisionsInDiff'](_0x5ad9e8['diff'])['length']>0x2)&&!_0x2c9074['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4281c3,{id:_0x18932f})=>{_0x4281c3['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x18932f);},'isVisible':({plugins:_0x399f32},_0xcee6f4)=>!!_0x399f32['get'](JN)['repository']['getLaterVisibleRevision'](_0xcee6f4['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5b87ef},{id:_0x541b0c,revisionNameView:_0x1b1709})=>{const _0x2fa999=_0x5b87ef['get'](JN),_0x386f15=_0x2fa999['repository']['getEarlierVisibleRevision'](_0x541b0c);_0x2fa999['compare'](_0x541b0c,_0x386f15),_0x1b1709['focus'](),_0x1b1709['fieldView']['select']();}}};}var wM=class extends _0x1fb434{['_view'];_toolbarConfig;_elementReplacer;get['view'](){return this['_view'];}constructor(_0x253934,_0x54e74f){super(_0x253934),this['_view']=_0x54e74f,this['_toolbarConfig']=_0x199210(_0x253934['config']['get']('toolbar')),this['_elementReplacer']=new _0x1fb585();}get element(){return this['view']['element'];}init(_0x258240){const _0x40e7dc=this['editor'],_0x39e486=this['view'],_0x187dc9=_0x40e7dc['editing']['view'],_0x22841d=_0x39e486['editable'];_0x22841d['name']=_0x187dc9['document']['getRoot']()['rootName'],_0x39e486['render']();const _0x43b925=_0x22841d['element'];this['setEditableElement'](_0x22841d['name'],_0x43b925),_0x39e486['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x187dc9['attachDomRoot'](_0x43b925),this['_elementReplacer']['replace'](_0x258240,this['element']),this['_initToolbar'](),this['fire']('ready');}destroy(){super['destroy']();const _0x42b0d7=this['view'],_0x8bd98a=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x8bd98a['detachDomRoot'](_0x42b0d7['editable']['name']),_0x42b0d7['destroy']();}_initToolbar(){const _0x34c9bd=this['view'];_0x34c9bd['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x34c9bd['stickyPanel']['limiterElement']=_0x34c9bd['element'],_0x34c9bd['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x162db8})=>_0x162db8),_0x34c9bd['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x34c9bd['toolbar']);}},bM=class extends _0x203d61{_editable;stickyPanel;toolbar;get editable(){return this['_editable'];}constructor(_0x29437e,_0x2836cd,_0x58fadc={}){super(_0x29437e),this['stickyPanel']=new _0x33ce5b(_0x29437e),this['toolbar']=new _0x416164(_0x29437e,{'shouldGroupWhenFull':_0x58fadc['shouldToolbarGroupWhenFull']}),this['_editable']=new _0x4d38ef(_0x29437e,_0x2836cd);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}};const yM=/* #__PURE__ -- @preserve */
_0x3fae6b(_0x95124b);var vM=class extends yM{['_ui'];get['ui'](){return this['_ui'];}constructor(_0xe799ba,_0x1215b7){super(_0x1215b7),this['sourceElement']=_0xe799ba,this['model']['document']['createRoot']();const _0x1370ff=new bM(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new wM(this,_0x1370ff);}destroy(){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async create(_0x1d5ac6,_0x26a657){const _0x473f10=new this(_0x1d5ac6,_0x26a657);return await _0x473f10['initPlugins'](),await _0x473f10['ui']['init'](_0x1d5ac6),await _0x473f10['data']['init'](_0x473f10['config']['get']('initialData')||''),_0x473f10['fire']('ready'),_0x473f10;}};const _M=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions','AIChatShortcuts','AITranslate'];var EM=class extends _0x11fe30{result;static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x961266){super(_0x961266),this['result']='end',_0x961266['editing']['view']['_overlayModeHint']='auto',_0x961266['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}},TM=class extends _0x11fe30{_viewerEditor;static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[UN,qN];}constructor(_0x5c003a){if(super(_0x5c003a),!this['editor']['config']['get']('revisionHistory'))throw new _0x4242d4('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4eddaf=>this['_showRevisionViewer']({..._0x4eddaf,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x224f97=>this['_closeRevisionViewer'](_0x224f97)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x37efdc=>this['_restoreRevision'](_0x37efdc)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set adapter(_0x3e8ec2){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3e8ec2;}get adapter(){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}addRevisionData(_0x2f2ff){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2f2ff);}getRevision(_0x37196e){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x37196e);}getRevisions(_0x32dd1a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x32dd1a||{'toJSON':!0x1});}_getRevisionViewerEditorConfig(){const _0x3a4419=this['editor'],_0x2bd4cc=Zm(_0x3a4419,_M),_0x1a5957=_0x3a4419['plugins']['get']('RevisionTracker'),_0x5e49a0=_0x3a4419['plugins']['get'](Al)['users'];return _0x2bd4cc['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2bd4cc['lazyRoots'],(_0x2bd4cc['plugins']['push'](EM,JN,oM,class RevisionViewerInit extends _0x11fe30{static get requires(){return[JN,Al];}init(){const _0xe77413=this['editor']['plugins']['get'](Al);for(const _0x3decf3 of _0x5e49a0)_0x3decf3['isAnonymous']||_0xe77413['getUser'](_0x3decf3['id'])||_0xe77413['addUser'](_0x3decf3);const _0x320ab9=_0x1a5957['repository']['getRevisions']();let _0x120a9f=null;const _0x46cb83=this['editor']['plugins']['get']('RevisionViewer');_0x46cb83['adapter']=_0x1a5957['adapter'],_0x46cb83['bind']('isEnabled')['to'](_0x1a5957),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3a4419,'isReadOnly',_0x311eb7=>!_0x311eb7);for(const _0x232351 of _0x320ab9){const _0x59bb09=null===_0x232351['creator'];if(_0x59bb09&&_0x232351['toVersion']===_0x232351['fromVersion'])continue;const _0x3ab3d9=_0x232351['toJSON']();_0x46cb83['addRevisionData'](_0x3ab3d9,(_0x1dd8b7,_0x2abf77,_0x160921)=>{if(_0x59bb09){if(_0x120a9f)_0x120a9f['_update'](_0x1dd8b7,_0x2abf77);else{if(!_0x2abf77){const _0x28fde6=_0x160921['toJSON']();_0x28fde6['id']=_0xea66bb(),_0x1a5957['saveRevision'](_0x28fde6,_0x160921['toVersion'])['then'](_0x326126=>{_0x120a9f=_0x326126;});}}}else _0x232351['_update'](_0x1dd8b7,_0x2abf77);});}}},gM),_0x2bd4cc);}['_enhanceShowRevisionViewerCallback'](){const _0x3f0e1f=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x50e133=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')?await this['editor']['plugins']['get']('Autosave')['save']():await _0x50e133['update'](),this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x523649=this['editor']['plugins']['get']('Dialog');_0x523649['isOpen']&&_0x523649['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x1bf10b=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x42bc05 of _0x1bf10b)_0x42bc05['class']=_0x42bc05['class']?_0x42bc05['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x44b163=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x44b163&&_0x44b163['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x1c6ac6=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x1c6ac6&&_0x1c6ac6['setAttribute']('tabindex','-1');}}const _0x4275fb=this['_getRevisionViewerEditorConfig']();return _0x3f0e1f(_0x4275fb)['then'](_0x4903a6=>(this['_viewerEditor']=_0x4903a6,this['editor']['plugins']['has']('Annotations')&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x4903a6))['catch'](_0x478032=>(console['error'](_0x478032),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x562d51=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['editor']['plugins']['has']('AITabs')){const _0x5bad77=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x2885c8 of _0x5bad77)_0x2885c8['class']='ck-tab-panel_disabled'===_0x2885c8['class']?'':_0x2885c8['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x475bd2=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x475bd2&&_0x475bd2['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x1947e2=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x1947e2&&_0x1947e2['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x562d51(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x582163=this['editor']['plugins']['get']('Annotations');_0x582163['refreshVisibility'](),_0x582163['refreshPositioning']();}});});}['_showRevisionViewer'](_0x2935ee){const _0x182d99=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1f869b=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x5b5e9f=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return vM['create'](_0x5b5e9f,_0x2935ee)['then'](_0x16c5cc=>(_0x1f869b['style']['display']='block',_0x182d99['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x16c5cc));}['_closeRevisionViewer'](_0x5d6d3c){const _0x2b9bf7=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2b9bf7['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x5d6d3c['destroy']();}async _restoreRevision(_0x43df68){const _0x31d7e0=this['editor'],_0x13ad4e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x307235=_0x31d7e0['plugins']['get']('RevisionTracker'),_0xb287b4=_0x31d7e0['plugins']['get']('RevisionHistoryUtils'),_0xa318b5=_0x13ad4e['repository']['getRevision'](_0x43df68);let _0x148ee0,_0x242cd5,_0x4439ce;try{await _0xb287b4['loadRevisionData'](_0xa318b5,this['adapter']),_0x148ee0=_0xb287b4['getRevisionDocumentData'](_0xa318b5),_0x242cd5=_0xb287b4['getRevisionRootsAttributes'](_0xa318b5);}catch(_0xc2f60d){return void console['error'](_0xc2f60d);}_0x31d7e0['model']['change'](_0x10744c=>{for(const _0x12c1a3 of Array['from'](_0x31d7e0['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x10744c['removeMarker'](_0x12c1a3);}),_0x13ad4e['isReady']=!0x1,_0x31d7e0['model']['enqueueChange'](_0x3492c8=>{_0x3492c8['setSelection'](null),_0x3492c8['removeSelectionAttribute'](_0x31d7e0['model']['document']['selection']['getAttributeKeys']());const _0x310053=Object['keys'](_0x148ee0);for(const _0x3f9689 of _0x31d7e0['model']['document']['roots'])'$graveyard'!=_0x3f9689['rootName']&&_0x3f9689['isAttached']()&&!_0x310053['includes'](_0x3f9689['rootName'])&&_0x3492c8['detachRoot'](_0x3f9689);for(const _0x4838ff of _0x310053){let _0x167781=_0x31d7e0['model']['document']['getRoot'](_0x4838ff);if(!_0x167781||!_0x167781['isAttached']()){const _0x32db52=_0xa318b5['diffData']?.[_0x4838ff]?.['rootElementName']||'$root';_0x167781=_0x3492c8['addRoot'](_0x4838ff,_0x32db52);}const _0x6a536e=_0x242cd5[_0x4838ff],_0x4aba63=Object['keys'](_0x6a536e),_0x3ca5b5=_0x148ee0[_0x4838ff];for(const _0x2ae124 of _0x167781['getAttributeKeys']())_0x4aba63['includes'](_0x2ae124)||_0x3492c8['removeAttribute'](_0x2ae124,_0x167781);for(const _0x573de2 of _0x4aba63)_0x3492c8['setAttribute'](_0x573de2,_0x242cd5[_0x4838ff][_0x573de2],_0x167781);_0x3492c8['remove'](_0x3492c8['createRangeIn'](_0x167781)),_0x3492c8['insert'](_0x31d7e0['data']['parse'](_0x3ca5b5,_0x167781),_0x167781,0x0);}});const _0x3c1130=jN(_0x31d7e0['locale'],'Restored');if(_0xa318b5['name'])_0x4439ce=-0x1==_0xa318b5['name']['indexOf'](_0x3c1130)?_0x3c1130+':\x20'+_0xa318b5['name']:_0xa318b5['name'];else _0x4439ce=_0x3c1130+':\x20'+(_0xa318b5['createdAt']['toLocaleDateString'](_0x31d7e0['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xa318b5['createdAt']['toLocaleTimeString'](_0x31d7e0['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x307235['saveRevision']({'name':_0x4439ce}),_0x13ad4e['isReady']=!0x0,_0x31d7e0['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}},AM=class CloudServicesRevisionHistoryAdapter extends _0x11fe30{static RevisionHistoryService=/* #__PURE__ -- @preserve */
((()=>Px)());_lastRequestId;['_revisionTracker'];_revisionHistoryService;_oldOffset;static get requires(){return[xC,iR,TM,CC,Al];}static get['pluginName'](){return'CloudServicesRevisionHistoryAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x400c5e){super(_0x400c5e);const _0x15f728=this['editor']['config']['get']('collaboration.channelId');this['_lastRequestId']=null,this['_revisionTracker']=this['editor']['plugins']['get']('RevisionTracker'),this['_revisionHistoryService']=new CloudServicesRevisionHistoryAdapter['RevisionHistoryService'](_0x15f728);}async init(){const _0x54daf1=this['editor']['plugins']['get'](iR),_0x18dfa9=_0x54daf1['serverHistory'],_0x595d76=this['editor']['plugins']['get'](xC);this['_revisionTracker']['setSource']({'history':_0x18dfa9,'getLatestVersion':()=>this['_getLatestVersion'](),'getCurrentRevisionId':()=>_0x54daf1['sessionId']});const _0x1e0c9b=this['editor']['config']['get']('cloudServices.bundleVersion')||_0x291c35,_0x4780a4=await vx['isBundleUploaded'](_0x595d76['connection'],_0x1e0c9b);this['editor']['plugins']['get'](TM)['adapter']={'getRevision':async({revisionId:_0x1391ce})=>(await this['_waitForServiceReady'](),await this['_revisionHistoryService']['getRevision'](_0x1391ce)),'updateRevisions':async _0x1bb5e6=>{await this['_waitForServiceReady']();const _0x350fb9=this['_revisionTracker']['currentRevision'];if(_0x4780a4&&0x1===_0x1bb5e6['length']&&_0x1bb5e6[0x0]['id']===_0x350fb9['id'])return _0x1bb5e6;for(const _0x3362d7 of _0x1bb5e6)_0x3362d7['id']===_0x350fb9['id']&&(_0x3362d7['isEmptyCurrent']=_0x3362d7['fromVersion']===_0x3362d7['toVersion']);return this['_revisionHistoryService']['updateRevisions'](_0x1bb5e6,this['_lastRequestId'])['then'](_0x23b71=>(this['_lastRequestId']=_0x23b71,_0x1bb5e6))['catch'](_0x4eb233=>{if(SM(_0x4eb233)||'400'===_0x4eb233['code']&&void 0x0!==_0x4eb233['data']['wrongRequestId']){for(const _0x11b1a6 of _0x1bb5e6)this['_revisionTracker']['repository']['getRevision'](_0x11b1a6['id'])&&this['_revisionTracker']['_bufferUpdate'](_0x11b1a6['id'],_0x11b1a6,!0x1);if(SM(_0x4eb233)&&'destroyed'!==this['editor']['state'])throw _0x4eb233;return _0x1bb5e6;}throw _0x4eb233;});}},this['listenTo'](this['_revisionHistoryService'],'revisionsUpdated',(_0x589442,{revisionsData:_0x449af0,requestId:_0x4df30d})=>{Math['max'](..._0x449af0['map'](_0x5bf97f=>_0x5bf97f['toVersion']))>this['_getLatestVersionFromServerOperations']()-0x1?this['_getLatestVersion']()['then'](()=>{this['_handleRevisionsUpdate'](_0x449af0,_0x4df30d);}):this['_handleRevisionsUpdate'](_0x449af0,_0x4df30d);}),this['set']('_isServiceConnected',!0x1),this['listenTo'](this['_revisionHistoryService'],'connected',()=>{this['_isServiceConnected']=!0x0;}),this['listenTo'](this['_revisionHistoryService'],'disconnected',()=>{this['_isServiceConnected']=!0x1,'connected'===_0x595d76['connection']?.['state']&&(_0x595d76['removeFromReconnectionStack'](this),this['stopListening'](this['_revisionHistoryService']));});const {revisions:_0x59eb49,requestId:_0x4a57bb}=await this['_revisionHistoryService']['connect'](_0x595d76['connection']);_0x595d76['addToReconnectionStack'](this),this['_lastRequestId']=_0x4a57bb,await this['_fetchMissingUsers'](_0x59eb49);for(const _0x3d6d52 of _0x59eb49)this['_revisionTracker']['addRevisionData'](_0x3d6d52);this['listenTo'](_0x54daf1,'change:_isConnected',(_0x5826b1,_0x826e15,_0x21e6eb)=>{_0x21e6eb&&(this['_oldOffset']=_0x54daf1['_offset'],_0x5826b1['off']());}),this['_revisionTracker']['bind']('isEnabled')['to'](this,'_isServiceConnected');}async reconnect(){const _0x1336cb=this['editor']['plugins']['get'](xC),_0x31dfd4=this['editor']['plugins']['get'](iR),_0x3515ae=async()=>{const _0x51ae17=this['_revisionTracker']['currentRevision'],_0x52e9d2=_0x51ae17['id'],_0x20e087=_0x52e9d2!==_0x31dfd4['sessionId'];if(_0x20e087){const _0x128e94=_0x31dfd4['_offset']-this['_oldOffset'],_0x1130b7=this['_getLatestVersionFromServerOperations']();if(this['_revisionTracker']['_revisionDataBuilder']['reInit'](),_0x51ae17['toVersion']+_0x128e94!==_0x1130b7){const _0xb2eceb=_0x51ae17['fromVersion']+_0x128e94,_0x572c0d=this['editor']['plugins']['get'](Al),_0x4f1eb8=this['_revisionTracker']['buildRevisionData']({'revision':_0x51ae17,'from':_0xb2eceb,'to':_0x1130b7});_0x4f1eb8['id']=_0x51ae17['id'];const _0x44937e=_0x4f1eb8['authorsIds']['map'](_0x46155d=>_0x572c0d['getUser'](_0x46155d));_0x51ae17['_update']({..._0x4f1eb8,'authors':_0x44937e},!0x0),this['_revisionTracker']['_bufferUpdate'](_0x51ae17['id'],_0x4f1eb8,!0x0);}this['_revisionTracker']['_startingVersion']=_0x1130b7,_0x51ae17['toVersion']!==_0x51ae17['fromVersion']||this['_revisionTracker']['_bufferedUpdates']['has'](_0x52e9d2)||this['_revisionTracker']['repository']['_revisions']['remove'](_0x52e9d2),this['_revisionTracker']['_createCurrentRevision'](_0x1130b7);}const {revisions:_0x9644c2,requestId:_0x29ccb9}=await this['_revisionHistoryService']['reconnect'](_0x1336cb['connection'],this['_lastRequestId']);_0x20e087&&_0x9644c2['length']>0x0?_0x31dfd4['_handleReconnectionError']():(await this['_fetchMissingUsers'](_0x9644c2),this['_handleRevisionsUpdate'](_0x9644c2,_0x29ccb9),this['_revisionTracker']['sendBufferedUpdates']());};return _0x31dfd4['_isConnected']?_0x3515ae():new Promise((_0x2f88ee,_0x555299)=>{_0x31dfd4['once']('change:_isConnected',()=>{_0x3515ae()['then'](_0x2f88ee)['catch'](_0x555299);});});}destroy(){super['destroy']();}async _waitForServiceReady(){this['_revisionHistoryService']['isConnected']||await new Promise(_0x16ac3e=>{this['listenTo'](this['_revisionHistoryService'],'connected',_0x18ca51=>{_0x18ca51['off'](),_0x16ac3e();});});}_getLatestVersionFromServerOperations(){const _0xfa96f5=this['editor']['plugins']['get'](iR)['serverHistory']['getOperations']()['reverse']();for(const _0x1420f0 of _0xfa96f5)if('marker'!==_0x1420f0['type']||_0x1420f0['affectsData'])return _0x1420f0['baseVersion']+0x1;}_getLatestVersion(){const _0x4205c0=this['editor']['plugins']['get'](iR);return new Promise(_0x418dfc=>{_0x4205c0['_isPendingUpdate']?_0x4205c0['once']('change:_isPendingUpdate',()=>{_0x418dfc(this['_getLatestVersionFromServerOperations']());}):_0x418dfc(this['_getLatestVersionFromServerOperations']());});}_handleRevisionsUpdate(_0x12a3d1,_0x348311){const _0x3e131b=this['_revisionTracker']['repository'];this['_lastRequestId']=_0x348311;for(const _0x1c1f6f of _0x12a3d1){const _0x5dfe10=_0x3e131b['getRevision'](_0x1c1f6f['id']);if(_0x5dfe10){if((_0x1c1f6f['fromVersion']||_0x1c1f6f['toVersion'])&&(_0x1c1f6f['diffData']=null),_0x5dfe10===this['_revisionTracker']['currentRevision']){const _0x2c604c=Math['max'](_0x5dfe10['toVersion'],_0x1c1f6f['toVersion']),_0x99ecc4=Math['max'](_0x5dfe10['fromVersion'],_0x1c1f6f['fromVersion']);let _0x795252;_0x5dfe10['toVersion']===_0x1c1f6f['toVersion']&&_0x5dfe10['fromVersion']===_0x1c1f6f['fromVersion']?(_0x795252=!0x0,this['_preventResendingRevisionData'](_0x1c1f6f)):_0x1c1f6f['toVersion']===_0x2c604c&&_0x1c1f6f['fromVersion']===_0x99ecc4?_0x795252=!0x1:(_0x5dfe10['toVersion']===_0x2c604c&&_0x5dfe10['fromVersion']===_0x99ecc4||this['_fixRevision']({'revision':_0x5dfe10,'from':_0x99ecc4,'to':_0x2c604c}),_0x795252=!0x0),_0x795252&&(delete _0x1c1f6f['fromVersion'],delete _0x1c1f6f['toVersion'],delete _0x1c1f6f['diffData'],delete _0x1c1f6f['createdAt'],delete _0x1c1f6f['authorsIds']);}this['_revisionTracker']['setRevisionData'](_0x1c1f6f),this['_preventResendingRevisionData'](_0x1c1f6f);}else this['_revisionTracker']['addRevisionData'](_0x1c1f6f);}const _0x38ebb2=_0x3e131b['getRevisions']();_0x38ebb2['reverse']();for(let _0x2ea68f=0x0;_0x2ea68f<_0x38ebb2['length']-0x1;_0x2ea68f++){const _0x3718df=_0x38ebb2[_0x2ea68f],_0x438411=_0x38ebb2[_0x2ea68f+0x1];if(_0x3718df['fromVersion']<_0x438411['toVersion']){const _0xd9c008=_0x438411['toVersion'],_0x1d3890=Math['max'](_0xd9c008,_0x3718df['toVersion']);this['_fixRevision']({'revision':_0x3718df,'from':_0xd9c008,'to':_0x1d3890});}}}['_fixRevision']({revision:_0x57f4fc,from:_0x1af5ae,to:_0x2ce32c}={}){const _0x5f1e63=this['editor']['plugins']['get'](Al),_0x286ccb=this['_revisionTracker']['buildRevisionData']({'revision':_0x57f4fc,'from':_0x1af5ae,'to':_0x2ce32c});_0x286ccb['authors']=_0x286ccb['authorsIds']['map'](_0x5d69cb=>_0x5f1e63['getUser'](_0x5d69cb)),_0x57f4fc['_update'](_0x286ccb);}_preventResendingRevisionData(_0xcf9c5f){const _0x19b5ab={};_0x19b5ab['id']=_0xcf9c5f['id'];for(const _0x3480ae of Object['keys'](_0xcf9c5f))'id'!==_0x3480ae&&(_0x19b5ab[_0x3480ae]=void 0x0);this['_revisionTracker']['_bufferUpdate'](_0x19b5ab['id'],_0x19b5ab,!0x0);}async _fetchMissingUsers(_0x5a85a1){const _0x529203=this['editor']['plugins']['get'](Al),{connection:_0x2b2bdf}=this['editor']['plugins']['get'](xC),_0x7a138a=new Set();for(const _0x279923 of _0x5a85a1){for(const _0x2e7cce of _0x279923['authorsIds'])_0x8af72c(_0x2e7cce);_0x279923['creatorId']&&_0x8af72c(_0x279923['creatorId']);}if(0x0===_0x7a138a['size'])return;const _0x3ff8e6=await Uk['getMany'](_0x2b2bdf,Array['from'](_0x7a138a));for(const _0x40ad08 of _0x3ff8e6)_0x529203['getUser'](_0x40ad08['id'])||_0x529203['addUser'](_0x40ad08);function _0x8af72c(_0x43743d){_0x529203['getUser'](_0x43743d)||_0x7a138a['add'](_0x43743d);}}};function SM(_0x4648bc){return _0x4648bc['message']['startsWith']('cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.')||_0x4648bc['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x4648bc['message']['startsWith']('cloud-services-internal-error:\x20Request\x20timeout.');}var IM=class extends _0x11fe30{static get requires(){return[TM,AM,oR];}static get['pluginName'](){return'RealTimeCollaborativeRevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}},kM=class extends _0x2f6e1a{_collapseAt;constructor(_0x279c7a,_0x17be0a=0x6){super(_0x279c7a);const _0x1e0047=this['bindTemplate'];this['set']('isHidden',!0x0),this['set']('usersCount',0x0),this['_collapseAt']=_0x17be0a,this['bind']('isHidden')['to'](this,'usersCount',_0x5773da=>_0x5773da<_0x17be0a),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-presence-list__list-item',_0x1e0047['if']('isHidden','ck-presence-list__counter--hidden')],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck','ck-presence-list__users-counter']},'children':[{'tag':'div','attributes':{'class':['ck','ck-presence-list__users-counter__text']},'children':[{'text':_0x1e0047['to']('usersCount',_0x4d8f91=>'+'+(_0x4d8f91-this['_collapseAt']+0x2)['toString']())}]}]}]});}},xM=class extends _0x2f6e1a{items;keystrokes;constructor(_0x3d344f){super(_0x3d344f);const _0x22fc2c=this['bindTemplate'];this['items']=this['createCollection'](),this['keystrokes']=new _0xa8275a(),this['set']({'hasPopup':!0x1,'isExpanded':!0x1}),this['setTemplate']({'tag':'div','attributes':{'aria-haspopup':_0x22fc2c['if']('hasPopup'),'aria-expanded':_0x22fc2c['to']('isExpanded',_0x5d1161=>this['hasPopup']&&String(_0x5d1161)),'aria-label':_0x22fc2c['to']('hasPopup',_0x31eb15=>MC(_0x3d344f,_0x31eb15?'Collapsed\x20connected\x20users\x20list\x20(press\x20ENTER\x20to\x20open\x20it)':'Connected\x20users\x20list')),'role':'list','tabindex':_0x22fc2c['to']('hasPopup',_0x2414cf=>!!_0x2414cf&&0x0),'class':['ck','ck-presence-list__list']},'children':this['items'],'on':{'mouseenter':_0x22fc2c['to'](()=>this['fire']('presencelist:show')),'mouseleave':_0x22fc2c['to'](_0x2372bd=>{const _0x59e127=_0x2372bd,_0x53969b=document['querySelector']('.ck-presence-list__dropdown-list'),_0x3bb036=document['querySelector']('.ck-balloon-panel_with-arrow');_0x53969b?.['contains'](_0x59e127['relatedTarget'])||_0x3bb036?.['contains'](_0x59e127['relatedTarget'])||this['fire']('presencelist:hide');})}}),this['on']('change:hasPopup',(_0x5aa2a8,_0x183f20,_0x4cd8e0)=>{this['element']&&(_0x4cd8e0?this['element']['setAttribute']('aria-expanded',String(this['isExpanded'])):this['element']['removeAttribute']('aria-expanded'));});}['focus'](){this['element']['focus']();}['render'](){super['render'](),this['keystrokes']['listenTo'](this['element']);}},CM=class extends _0x2f6e1a{counterView;inlineListView;constructor(_0xc875e5,_0x55b87f=0x6){super(_0xc875e5);const _0x2eb593=this['bindTemplate'];this['set']('isCollapsed',!0x0),this['counterView']=new kM(this['locale'],_0x55b87f),this['inlineListView']=new xM(_0xc875e5),this['inlineListView']['bind']('hasPopup')['to'](this,'isCollapsed'),this['listenTo'](this['inlineListView']['items'],'change',()=>{for(const _0x15a2cd of this['inlineListView']['items'])_0x15a2cd['tooltipPosition']='s';this['inlineListView']['items']['first']&&(this['inlineListView']['items']['first']['tooltipPosition']='se');}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-presence-list','ck-reset','ck-rounded-corners',_0x2eb593['if']('isCollapsed','ck-presence-list--collapsed')]},'children':[this['inlineListView']]});}},RM=class extends _0x2f6e1a{listWrapperView;constructor(_0x7d8270,_0x45d54f){super(_0x7d8270);const _0x453b99=this['bindTemplate'];this['listWrapperView']=new PM(_0x7d8270,_0x45d54f),this['setTemplate']({'tag':'div','attributes':{'tabindex':-0x1,'role':'application','class':['ck','ck-presence-list__dropdown-list'],'aria-label':MC(_0x7d8270,'Connected\x20users\x20list\x20dropdown\x20menu')},'children':[this['listWrapperView']],'on':{'mouseleave':_0x453b99['to'](_0x458de3=>{const _0x459676=_0x458de3,_0x2e3583=document['querySelector']('.ck-presence-list__list'),_0x5a7aa7=document['querySelector']('.ck-balloon-panel_with-arrow');_0x2e3583?.['contains'](_0x459676['relatedTarget'])||_0x5a7aa7?.['contains'](_0x459676['relatedTarget'])||this['fire']('presencelist:hide');})}});}},PM=class extends _0x19f1e8{constructor(_0x5866e6,_0x3a9af3){super(_0x5866e6);const _0x5b5131=this['bindTemplate'];this['set']('_isScrollable',!0x1),this['setTemplate']({'tag':_0x3a9af3?'div':'ul','attributes':{'class':['ck','ck-reset','ck-list','ck-presence-list__dropdown-list-wrapper',_0x5b5131['if']('_isScrollable','ck-presence-list__dropdown-list-wrapper_scrollable')],'role':_0x5b5131['to']('role'),'aria-label':_0x5b5131['to']('ariaLabel'),'aria-labelledby':_0x5b5131['to']('ariaLabelledBy')},'children':this['items']}),this['listenTo'](_0x250afe['window'],'resize',()=>this['checkIfScrollable']()),this['items']['on']('change',()=>this['checkIfScrollable']());}['render'](){super['render'](),this['checkIfScrollable']();}['checkIfScrollable'](){const _0x10b082=this['element'];_0x10b082&&(this['_isScrollable']=Math['max'](_0x10b082['scrollHeight'],_0x10b082['clientHeight'])>0.8*window['innerHeight']);}},NM=class extends _0x585012{['userView'];constructor(_0x40c76f,_0x47a378,_0x448840){super(_0x40c76f);const _0x255fbc=this['bindTemplate'];this['userView']=new xl(_0x40c76f,_0x47a378);const _0x7561a4={'tag':'li','attributes':{'class':['ck','ck-presence-list__dropdown-list-item'],'tabindex':-0x1,'role':'presentation','aria-label':_0x47a378['name']},'children':[this['userView'],{'tag':'span','attributes':{'class':['ck','ck-user__full-name']},'children':[{'text':_0x47a378['name']}]},{'tag':'span','attributes':{'class':['ck','ck-presence-list__marker',_0x47a378['color']['getBackgroundColorClass']()],'style':{'--ck-user-color':_0x47a378['color']['getColorVariable'](),'--ck-user-color-alpha':_0x47a378['color']['getColorAlphaVariable']()},'aria-hidden':'true'}}]};_0x448840&&(_0x7561a4['tag']='button',_0x7561a4['on']={'click':_0x255fbc['to'](()=>this['fire']('execute'))}),this['setTemplate'](_0x7561a4);}['focus'](){this['element']['focus']();}},MM=class extends _0x2f6e1a{['userView'];['markerView'];constructor(_0x414283,_0x56a2a8,_0x2c9aeb){super(_0x414283);const _0x3b2847=this['bindTemplate'];this['set']('isFocusable',!0x1),this['set']('hasTooltip',!0x0),this['set']('tooltipPosition',''),this['userView']=new xl(_0x414283,_0x56a2a8),this['markerView']=new LM(_0x414283,_0x56a2a8);const _0x54fb58=new _0x579a10(_0x414283);_0x54fb58['template']['tag']='span',_0x54fb58['text']=_0x56a2a8['name'];const _0x178701={'tag':'div','attributes':{'class':['ck','ck-presence-list__list-item'],'role':'listitem','tabindex':_0x3b2847['to']('isFocusable',_0x43fc90=>!!_0x43fc90&&0x0),'aria-labelledby':_0x54fb58['id'],'data-cke-tooltip-text':this['userView']['name'],'data-cke-tooltip-position':_0x3b2847['to']('tooltipPosition'),'data-cke-tooltip-disabled':_0x3b2847['to']('hasTooltip',_0x5dcab9=>!_0x5dcab9),'data-cke-tooltip-class':'ck-presence-list__list-item__tooltip'},'children':[this['userView'],this['markerView'],_0x54fb58]};_0x2c9aeb&&(_0x178701['tag']='button',_0x178701['on']={'click':_0x3b2847['to'](()=>this['fire']('execute'))}),this['setTemplate'](_0x178701);}},LM=class extends _0x2f6e1a{constructor(_0x1f2d60,_0x31420e){super(_0x1f2d60),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-presence-list__marker',_0x31420e['color']['getBackgroundColorClass']()],'style':{'--ck-user-color':_0x31420e['color']['getColorVariable'](),'--ck-user-color-alpha':_0x31420e['color']['getColorAlphaVariable']()},'aria-hidden':'true'}});}};const $M={'collapseAt':0x6,'displayMe':!0x0};var DM=class extends _0x4dd342{currentDisplayedUsers;['balloonPanelView'];['view'];['presenceDropdownView'];_bodyCollection=null;static get['pluginName'](){return'PresenceListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x247ba7){super(_0x247ba7),this['context']['config']['define']('presenceList',$M);const _0x22119f=_0x247ba7['config']['get']('presenceList.collapseAt');if('number'!=typeof _0x22119f)throw new _0x4242d4('presencelist-collapseat-invalid-format',this);if(_0x22119f<0x1)throw new _0x4242d4('presencelist-collapseat-invalid-format',this);this['_allConnectedUsers']=this['context']['plugins']['get'](CC)['allConnectedUsers'],this['set']('usersCount',0x0),this['currentDisplayedUsers']=new _0x2186b6(),this['balloonPanelView']=new _0x42b496(),this['balloonPanelView']['class']='ck\x20ck-presence-list__balloon',this['view']=this['_createView'](),this['presenceDropdownView']=void 0x0;}static get requires(){return[CC];}init(){for(const _0x2c48ba of this['_allConnectedUsers'])this['_handleUserAdd'](_0x2c48ba);this['listenTo'](this['_allConnectedUsers'],'add',(_0x3550af,_0x506fe3)=>{this['_handleUserAdd'](_0x506fe3);}),this['listenTo'](this['_allConnectedUsers'],'remove',(_0x52c307,_0x4fd834)=>{this['_handleUserRemove'](_0x4fd834);});}_createView(){const _0x8aba69=this['context'],_0x2c9867=new CM(this['context']['locale'],this['context']['config']['get']('presenceList.collapseAt')),_0x26f7ad=this['balloonPanelView'];if(!function(_0x1ee1ff){return function(_0x2abf95){return'object'==typeof _0x2abf95&&null!==_0x2abf95;}(_0x1ee1ff)&&0x1===_0x1ee1ff['nodeType']&&!yo(_0x1ee1ff);}(_0x8aba69['config']['get']('presenceList.container')))throw new _0x4242d4('presencelist-missing-container',this);return _0x2c9867['counterView']['bind']('usersCount')['to'](this),_0x2c9867['bind']('isCollapsed')['to'](this,'usersCount',_0x273ddf=>{const {collapseAt:_0x17b287}=_0x8aba69['config']['get']('presenceList'),_0x192634=_0x273ddf>=_0x17b287;if(_0x192634&&!_0x2c9867['inlineListView']['items']['find'](_0x3205ad=>_0x3205ad instanceof kM)){const _0x32f6fd=this['context']['config']['get']('presenceList.collapseAt')-0x1;this['currentDisplayedUsers']['length']==_0x32f6fd&&this['currentDisplayedUsers']['length']>0x1&&this['currentDisplayedUsers']['remove'](this['currentDisplayedUsers']['length']-0x1),_0x2c9867['inlineListView']['items']['add'](_0x2c9867['counterView']);}return _0x192634||this['hideDropdown'](),_0x192634;}),_0x2c9867['inlineListView']['items']['bindTo'](this['currentDisplayedUsers'])['using'](_0x3ebcb0=>{const _0x51b668=_0x8aba69['config']['get']('presenceList'),_0x49d6bc=new MM(_0x8aba69['locale'],_0x3ebcb0,!!_0x51b668['onClick']);return _0x49d6bc['bind']('hasTooltip')['to'](_0x2c9867,'isCollapsed',_0x1689c7=>!_0x1689c7),_0x49d6bc['bind']('isFocusable')['to'](_0x2c9867,'isCollapsed',_0xa3800b=>!_0xa3800b),_0x51b668['onClick']&&this['listenTo'](_0x49d6bc,'execute',()=>{this['view']['isCollapsed']||_0x51b668['onClick'](_0x3ebcb0,_0x49d6bc['element']);}),_0x49d6bc;}),this['listenTo'](_0x2c9867['inlineListView'],'presencelist:show',()=>{this['view']['isCollapsed']&&this['showDropdown']();}),this['listenTo'](_0x2c9867['inlineListView'],'presencelist:hide',()=>{this['presenceDropdownView']&&this['hideDropdown']();}),_0x2c9867['inlineListView']['keystrokes']['set']('Enter',(_0x47803c,_0x16bf16)=>{this['view']['isCollapsed']&&(this['showDropdown'](),_0x16bf16());}),_0x2c9867['render'](),_0x26f7ad['render'](),_0xca2f72({'emitter':_0x2c9867,'activator':()=>_0x26f7ad['isVisible'],'contextElements':[_0x26f7ad['element'],_0x2c9867['inlineListView']['element']],'callback':()=>this['hideDropdown']()}),_0x8aba69['config']['get']('presenceList.container')['appendChild'](_0x2c9867['element']),this['_bodyCollection']=new _0x49bad4(this['context']['locale']),this['_bodyCollection']['attachToDom'](),this['_bodyCollection']['add'](this['balloonPanelView']),_0x2c9867;}['_handleUserAdd'](_0x3edd55){if(!this['context']['config']['get']('presenceList.displayMe')&&_0x3edd55['isMe'])return;const _0x47008f=this['context']['config']['get']('presenceList.collapseAt')-0x1;for(this['usersCount']++;this['currentDisplayedUsers']['length']>=_0x47008f-(this['view']['isCollapsed']?0x1:0x0)&&this['currentDisplayedUsers']['length']>0x1;)this['currentDisplayedUsers']['remove'](0x1);const _0x5c278b=_0x3edd55['isMe']?0x0:this['currentDisplayedUsers']['length'];this['currentDisplayedUsers']['add'](_0x3edd55,_0x5c278b);}['_handleUserRemove'](_0x27a3de){this['usersCount']--;const {collapseAt:_0x33f27f}=this['context']['config']['get']('presenceList'),_0x7c25c1=this['usersCount']>=_0x33f27f;if(this['currentDisplayedUsers']['get'](_0x27a3de['id']))this['currentDisplayedUsers']['remove'](_0x27a3de['id']);else{if(_0x7c25c1&&this['currentDisplayedUsers']['length']+0x1===_0x33f27f-0x1)return;}if(this['currentDisplayedUsers']['length']+(_0x7c25c1?0x1:0x0)<this['usersCount']){for(const _0x21a5b3 of Array['from'](this['_allConnectedUsers'])['reverse']())if(!this['currentDisplayedUsers']['get'](_0x21a5b3['id'])&&(this['currentDisplayedUsers']['add'](_0x21a5b3,Math['min'](this['currentDisplayedUsers']['length']-(_0x7c25c1?0x1:0x0),0x1)),this['currentDisplayedUsers']['length']+(_0x7c25c1?0x1:0x0)===_0x33f27f-0x1))return;}}['showDropdown'](){if(this['presenceDropdownView'])return;const _0x3c84cf=this['context']['config']['get']('presenceList');this['presenceDropdownView']=new RM(this['context']['locale'],!!_0x3c84cf['onClick']),this['view']['inlineListView']['isExpanded']=!0x0,this['listenTo'](this['presenceDropdownView'],'presencelist:hide',()=>{this['presenceDropdownView']&&this['hideDropdown']();});const {listWrapperView:_0x14afab}=this['presenceDropdownView'];_0x14afab['items']['bindTo'](this['_allConnectedUsers'])['using'](_0x6270a6=>{if(!_0x3c84cf['displayMe']&&_0x6270a6['isMe'])return null;const _0x414004=new NM(this['context']['locale'],_0x6270a6,!!_0x3c84cf['onClick']);return _0x3c84cf['onClick']&&this['listenTo'](_0x414004,'execute',()=>{_0x3c84cf['onClick'](_0x6270a6,_0x414004['element']);}),_0x414004;}),this['balloonPanelView']['content']['add'](this['presenceDropdownView']),this['balloonPanelView']['pin']({'target':this['view']['inlineListView']['element']}),_0x14afab['focus'](),_0x14afab['checkIfScrollable']();const _0xe51625=(_0x18cbf8,_0x2a1596)=>{this['hideDropdown'](),this['view']['inlineListView']['focus'](),_0x2a1596();};_0x14afab['keystrokes']['set']('Esc',_0xe51625),_0x14afab['keystrokes']['set']('Shift+Tab',_0xe51625),_0x14afab['keystrokes']['set']('Tab',(_0x5182e3,_0x22d03d)=>{!function(_0x3919bb){const _0x59263a=['a','button','input','select','textarea','[tabindex]','[contenteditable]']['map'](_0x27c71c=>_0x27c71c+':not([disabled]):not([tabindex=\x22-1\x22])')['join'](','),_0x5afced=[...document['body']['querySelectorAll'](_0x59263a)]['filter'](_0x3df95e=>_0x3df95e===document['activeElement']||_0x3df95e['offsetWidth']+_0x3df95e['offsetHeight']>0x0)['sort']((_0x1aacb4,_0x3bff9a)=>(_0x1aacb4['tabIndex']||0x0)-(_0x3bff9a['tabIndex']||0x0)),_0x5cf8b9=_0x5afced[(_0x5afced['indexOf'](_0x3919bb)+0x1)%_0x5afced['length']];_0x5cf8b9&&_0x5cf8b9['focus']();}(this['view']['element']),this['hideDropdown'](),_0x22d03d();}),_0x14afab['focusTracker']['add'](this['view']['element']),_0x14afab['focusTracker']['on']('change:isFocused',(_0x311418,_0x58e4,_0x347a18)=>{_0x347a18||this['hideDropdown']();});}['hideDropdown'](){this['presenceDropdownView']&&(this['view']['inlineListView']['isExpanded']=!0x1,this['balloonPanelView']['unpin'](),this['balloonPanelView']['content']['remove'](this['presenceDropdownView']),this['presenceDropdownView']['destroy'](),this['presenceDropdownView']=void 0x0);}destroy(){super['destroy'](),this['view']&&this['view']['isRendered']&&this['view']['destroy'](),this['_bodyCollection']&&(this['_bodyCollection']['detachFromDom'](),this['_bodyCollection']['destroy'](),this['_bodyCollection']=null);}},QM=class extends _0x4dd342{static get requires(){return[CC,DM];}static get['pluginName'](){return'PresenceList';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}},jM=class extends _0x11fe30{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d8889){super(_0x4d8889),this['_allowedCommands']=null;}afterInit(){const _0x46ed20=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x2e4188=function(_0x1fcb9f){let _0x1f1af8=['heading4','heading5','heading6'];if(_0x1fcb9f){const _0x5e42cf=_0x1fcb9f['map'](_0x26a06b=>_0x26a06b['model']);_0x1f1af8=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x1ba2bd=>!_0x5e42cf['includes'](_0x1ba2bd));}return _0x1f1af8;}(this['editor']['config']['get']('heading.options'));let _0xb73ddd=this['getDefaultCommands']()['filter'](_0x557662=>!_0x2e4188['includes'](_0x557662['id']))['filter'](_0x386bb1=>!_0x46ed20['includes'](_0x386bb1['commandName']));const _0x22a4b4=this['editor']['config']['get']('slashCommand.extraCommands');_0x22a4b4&&_0x22a4b4['length']&&(_0xb73ddd=_0xb73ddd['concat'](_0x22a4b4));const _0x1fa653=this['editor']['config']['get']('template.definitions');_0x1fa653&&_0x1fa653['length']&&(_0xb73ddd=_0xb73ddd['concat'](function(_0x53e3bb){return _0x53e3bb['map'](_0xc47562=>{const {title:_0x13f2e9,icon:_0xad96c8,description:_0x5806b6,data:_0x54a641}=_0xc47562,_0xf6629f={'id':VM(_0x13f2e9,'template'),'commandName':'insertTemplate','execute':_0x3305c8=>{_0x3305c8['execute']('insertTemplate',_0x54a641);},'description':_0x5806b6,'icon':_0xad96c8,'title':_0x13f2e9};return _0xad96c8&&(_0xf6629f['isIconColorInherited']=!0x1),_0xf6629f;});}(_0x1fa653)));const _0x50fb19=this['editor']['config']['get']('style.definitions');_0x50fb19&&_0x50fb19['length']&&(_0xb73ddd=_0xb73ddd['concat'](function(_0xb224b0){return _0xb224b0['map'](_0x1b4db2=>({'id':VM(_0x1b4db2['name'],'style'),'commandName':'style','execute':_0x23433b=>{_0x23433b['execute']('style',{'styleName':_0x1b4db2['name']});},'isEnabled':_0x272790=>{const _0x22a451=_0x272790['commands']['get']('style');return _0x22a451['isEnabled']&&_0x22a451['enabledStyles']['includes'](_0x1b4db2['name']);},'title':_0x1b4db2['name']}));}(_0x50fb19)));const _0x176ad3=_0xb73ddd['filter'](_0x2f3d64=>!_0x2f3d64['commandName']||void 0x0!==this['editor']['commands']['get'](_0x2f3d64['commandName'])),_0x5430a8=[];for(const _0x379f18 of _0x176ad3)_0x5430a8['push']({'id':_0x379f18['id'],'commandName':_0x379f18['commandName'],'title':'function'==typeof _0x379f18['title']?_0x379f18['title'](this['editor']):_0x379f18['title'],'description':_0x379f18['description'],'icon':_0x379f18['icon'],'isIconColorInherited':_0x379f18['isIconColorInherited'],'aliases':_0x379f18['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x379f18),'execute':()=>this['_proxyExecute'](_0x379f18)});this['_allowedCommands']=_0x5430a8['sort'](UM),async function(_0x504848){const _0x539535='umgl1F4YkAVEtv0TcN6nKiXCrhODd2PaGMSIJbspyz9QLBoWxUfj5HZew738Rq',_0x4fd418=0x791d0,_0xb6f334=window['Date']['now'](),_0x140fa4=_0x504848['editor'],_0x422e12=new window['Promise'](_0x37148a=>{_0x140fa4['once']('ready',_0x37148a);}),_0x2af8e3={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x2a2dc4=_0x140fa4['config']['get']('licenseKey');async function _0x21350d(){let _0x37a32e,_0x4a218b=null,_0x10df08=null;try{return'GPL'==_0x2a2dc4?'NotAllowed':(_0x37a32e=_0x3cc969(),_0x37a32e?(_0x37a32e['usageEndpoint']&&(_0x10df08=_0x1f5e79(_0x37a32e['usageEndpoint'],_0x37a32e['jti'])),await _0x1f5ec1()?_0x1275fa()?_0x4d529e()?'Expired':_0x57fd71()?('evaluation'==_0x37a32e['licenseType']&&(_0x4a218b=_0x55a317('EvaluationLimit')),await _0x345ddb()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4d529e(){const _0x58edc8=['evaluation','trial']['includes'](_0x37a32e['licenseType'])?_0xb6f334/0x3e8:0xe10*_0x4fd418;return _0x37a32e['exp']<_0x58edc8;}function _0x1275fa(){const _0x35deb6=_0x37a32e['features'];return!!_0x35deb6&&(!!_0x35deb6['includes']('*')||(!!_0x35deb6['includes']('SC')||(!!_0x35deb6['includes']('PP')||!(!_0x35deb6['includes']('TRILIUM')||!_0x14e591()))));}function _0x57fd71(){const _0x3aad25=_0x37a32e['licensedHosts'];if(!_0x3aad25||0x0==_0x3aad25['length'])return!0x0;const {hostname:_0x38dfd5}=new URL(window['location']['href']);if(_0x3aad25['includes'](_0x38dfd5))return!0x0;const _0x2098ab=_0x38dfd5['split']('.');return _0x3aad25['filter'](_0x26aaed=>_0x26aaed['includes']('*'))['map'](_0x220224=>_0x220224['split']('.'))['filter'](_0x42b86a=>_0x42b86a['length']<=_0x2098ab['length'])['map'](_0x2065c6=>Array(_0x2098ab['length']-_0x2065c6['length'])['fill']('*'===_0x2065c6[0x0]?'*':'')['concat'](_0x2065c6))['some'](_0x2b5d72=>_0x2098ab['every']((_0x1c2a55,_0x44457b)=>_0x2b5d72[_0x44457b]===_0x1c2a55||'*'===_0x2b5d72[_0x44457b]));}function _0x345ddb(){return _0x4a218b&&_0x10df08?new window['Promise']((_0x349395,_0x207936)=>{_0x4a218b['then'](_0x349395,_0x207936),_0x10df08['then'](_0x26148d=>{'Valid'!=_0x26148d&&_0x349395(_0x26148d);},_0x207936);}):_0x4a218b||_0x10df08||'Valid';}}function _0x1f5e79(_0x4865cf,_0x290170){return new window['Promise'](_0x3980a9=>{if(_0x3e8bfa())return _0x3980a9('Valid');_0x4cd8b7(),_0x140fa4['decorate']('_sendUsageRequest');let _0x2012d4=!0x1;const _0x279a4a=_0xea66bb();function _0x56d595(_0x1a33fb){return!!_0x1a33fb&&('object'==typeof _0x1a33fb||'function'==typeof _0x1a33fb)&&'function'==typeof _0x1a33fb['then']&&'function'==typeof _0x1a33fb['catch'];}function _0xc06942(_0x267d06){_0x437e58(_0x267d06)['then'](_0x27f89f=>_0x27f89f&&'ok'==_0x27f89f['status']?_0x49201f(_0x14856c(_0x279a4a+_0x290170))!=_0x27f89f['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x2c9d40=>(_0x183241(),_0x2c9d40),()=>{const _0x39f1a6=_0x1cf73f();return null==_0x39f1a6?(_0x183241(),'Valid'):_0xb6f334-_0x39f1a6>0x240c8400?'UsageLimit':'Valid';})['then'](_0x3980a9)['catch'](()=>{_0x3980a9('UsageLimit');});const _0xa447f7=0x36ee80;function _0x183241(){const _0x4e8ecb='llct-'+_0x49201f(_0x14856c(_0x4865cf)),_0x290e1b=_0x5f4f22(_0x49201f(window['Math']['ceil'](_0xb6f334/_0xa447f7)));window['localStorage']['setItem'](_0x4e8ecb,_0x290e1b);}function _0x1cf73f(){const _0x17a980='llct-'+_0x49201f(_0x14856c(_0x4865cf)),_0x3ebc38=window['localStorage']['getItem'](_0x17a980);return _0x3ebc38?window['parseInt'](_0x5f4f22(_0x3ebc38),0x10)*_0xa447f7:null;}function _0x437e58(_0xd668d3){return new window['Promise']((_0x4c2b53,_0x3eb759)=>{_0xd668d3['then'](_0x4c2b53,_0x3eb759),window['setTimeout'](_0x3eb759,0x1d4c0);});}}_0x140fa4['on']('_sendUsageRequest',(_0x390dbe,_0x4d1787)=>{if(_0x4d1787[0x0]!=_0x4865cf)return _0x3980a9('UsageLimit');_0x4d1787[0x1]={..._0x4d1787[0x1],'requestId':_0x279a4a};},{'priority':'high'}),_0x140fa4['on']('_sendUsageRequest',_0x147103=>{_0x56d595(_0x147103['return'])&&(_0x2012d4=!0x0,_0xc06942(_0x147103['return']));},{'priority':'low'}),_0x422e12['then'](()=>{_0x2012d4||_0x3980a9('UsageLimit');});});function _0x3e8bfa(){return'auto'==_0x140fa4['editing']['view']['_overlayModeHint'];}function _0x4cd8b7(){_0x140fa4['editing']['view']['_overlayModeHint']='auto';}}function _0x55a317(_0x15f275){const _0x33620a=[new window['Promise'](_0x859704=>setTimeout(_0x859704,0x93ecc)),_0x422e12['then'](()=>new window['Promise'](_0x58c433=>{let _0x478a25=0x0;_0x140fa4['model']['on']('applyOperation',(_0x5a9203,_0x29c1f8)=>{_0x29c1f8[0x0]['isDocumentOperation']&&_0x478a25++,0x5e8==_0x478a25&&(_0x58c433(),_0x5a9203['off']());});}))];return window['Promise']['race'](_0x33620a)['then'](()=>_0x15f275);}async function _0x13d17a(){await _0x422e12,_0x140fa4['model']['change']=_0x3bd6db,_0x140fa4['model']['enqueueChange']=_0x3bd6db,_0x140fa4['enableReadOnlyMode']('model');}function _0x14e591(){return window['glob']&&window['glob']['triliumVersion'];}function _0x3c6361(_0x343137){const _0x18d3e2=_0x3d869b();_0x140fa4[_0x18d3e2]='slashCommandLicenseKey'+_0x343137,'Valid'!=_0x343137&&_0x13d17a();}function _0x3d869b(){const _0xe93300=window['String'](window['performance']['now']())['replace']('.','');let _0x30dfb0='u';for(let _0x491c92=0x0;_0x491c92<_0xe93300['length'];_0x491c92+=0x2){let _0x51485f=window['parseInt'](_0xe93300['substring'](_0x491c92,_0x491c92+0x2));_0x51485f>=0x3e&&(_0x51485f-=0x3e),_0x30dfb0+=_0x539535[_0x51485f];}return _0x30dfb0;}function _0x3cc969(){const _0x16efcc=_0x2a2dc4['split']('.');if(0x3!=_0x16efcc['length'])return null;return _0x23cd8d(_0x16efcc[0x1]);function _0x23cd8d(_0x6ac4d0){const _0x3ded07=_0x11042f(_0x6ac4d0);return _0x3ded07&&_0x5ca9e3()?_0x3ded07:null;function _0x5ca9e3(){const _0x102913=_0x3ded07['jti'],_0x3e4650=window['parseInt'](_0x102913['substring'](_0x102913['length']-0x8),0x10),_0x56736a={..._0x3ded07,'jti':_0x102913['substring'](0x0,_0x102913['length']-0x8)};return delete _0x56736a['vc'],_0x14856c(_0x56736a)==_0x3e4650;}}}async function _0x1f5ec1(){let _0x7f381=!0x0;try{const [_0x1f966d,_0x4b4448,_0x49a443]=_0x2a2dc4['split']('.');return _0x5b375a(_0x1f966d),await _0x7cdb9(_0x1f966d,_0x4b4448,_0x49a443),_0x7f381;}catch{return!0x1;}function _0x5b375a(_0x5e4eeb){const _0x46f01e=_0x11042f(_0x5e4eeb);_0x46f01e&&'ES256'==_0x46f01e['alg']||(_0x7f381=!0x1);}async function _0x7cdb9(_0x13e6a3,_0x5df0ac,_0x333db1){const _0x4a3955=window['Uint8Array']['from'](_0x34c4e8(_0x333db1),_0x91e777=>_0x91e777['charCodeAt'](0x0)),_0x319531=new window['TextEncoder']()['encode'](_0x13e6a3+'.'+_0x5df0ac),_0x18a9e9=window['crypto']['subtle'];if(!_0x18a9e9)return;const _0x4e7066=await _0x18a9e9['importKey']('jwk',_0x2af8e3,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x18a9e9['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x4e7066,_0x4a3955,_0x319531)||(_0x7f381=!0x1);}}function _0x11042f(_0x4f962f){return _0x4f962f['startsWith']('ey')?JSON['parse'](_0x34c4e8(_0x4f962f)):null;}function _0x34c4e8(_0xc0c845){return window['atob'](_0xc0c845['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x14856c(_0x2ee0f4){let _0x5aa88f=0x1505;function _0x34563a(_0x109ff9){for(let _0x112373=0x0;_0x112373<_0x109ff9['length'];_0x112373++){const _0x29532f=_0x109ff9['charCodeAt'](_0x112373);_0x5aa88f=(_0x5aa88f<<0x5)+_0x5aa88f+_0x29532f,_0x5aa88f&=_0x5aa88f;}}function _0x13aefe(_0x2b74fe){Array['isArray'](_0x2b74fe)?_0x2b74fe['forEach'](_0x13aefe):_0x2b74fe&&'object'==typeof _0x2b74fe?Object['entries'](_0x2b74fe)['sort']()['forEach'](([_0x1fbb49,_0x31b9b4])=>{_0x34563a(_0x1fbb49),_0x13aefe(_0x31b9b4);}):_0x34563a(window['String'](_0x2b74fe));}return _0x13aefe(_0x2ee0f4),_0x5aa88f>>>0x0;}function _0x49201f(_0x399ea1){return _0x399ea1['toString'](0x10)['padStart'](0x8,'0');}function _0x5f4f22(_0x2f2eb9){return _0x2f2eb9['split']('')['reverse']()['join']('');}function _0x3bd6db(){}_0x3c6361(await _0x21350d());}(this);}getAllowedCommands(){return this['_allowedCommands'];}getDefaultCommands(){const _0x45bd57=_0xd88824=>function(_0x4dec9c,_0x135b7e){const t=_0x4dec9c['t'],_0xf6aeb6=_0x4dec9c['t'];switch(_0x135b7e){case'AI\x20Assistant':return _0xf6aeb6('AI\x20Assistant');case'Block\x20quote':return _0xf6aeb6('Block\x20quote');case'Bulleted\x20List':return _0xf6aeb6('Bulleted\x20List');case'Insert\x20code\x20block':return _0xf6aeb6('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0xf6aeb6('Open\x20file\x20manager');case'Insert\x20image':return _0xf6aeb6('Insert\x20image');case'Heading\x201':return _0xf6aeb6('Heading\x201');case'Heading\x202':return _0xf6aeb6('Heading\x202');case'Heading\x203':return _0xf6aeb6('Heading\x203');case'Heading\x204':return _0xf6aeb6('Heading\x204');case'Heading\x205':return _0xf6aeb6('Heading\x205');case'Heading\x206':return _0xf6aeb6('Heading\x206');case'Horizontal\x20line':return _0xf6aeb6('Horizontal\x20line');case'Insert\x20HTML':return _0xf6aeb6('Insert\x20HTML');case'Increase\x20indent':return _0xf6aeb6('Increase\x20indent');case'Insert\x20table':return _0xf6aeb6('Insert\x20table');case'Table\x20of\x20contents':return _0xf6aeb6('Table\x20of\x20contents');case'Numbered\x20List':return _0xf6aeb6('Numbered\x20List');case'Decrease\x20indent':return _0xf6aeb6('Decrease\x20indent');case'Paragraph':return _0xf6aeb6('Paragraph');case'To-do\x20List':return _0xf6aeb6('To-do\x20List');case'Create\x20a\x20block\x20quote':return t('Create\x20a\x20block\x20quote');case'Create\x20a\x20bulleted\x20list':return t('Create\x20a\x20bulleted\x20list');case'Create\x20a\x20code\x20block':return t('Create\x20a\x20code\x20block');case'Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Create\x20a\x20heading\x20level\x201':return t('Create\x20a\x20heading\x20level\x201');case'Create\x20a\x20heading\x20level\x202':return t('Create\x20a\x20heading\x20level\x202');case'Create\x20a\x20heading\x20level\x203':return t('Create\x20a\x20heading\x20level\x203');case'Create\x20a\x20heading\x20level\x204':return t('Create\x20a\x20heading\x20level\x204');case'Create\x20a\x20heading\x20level\x205':return t('Create\x20a\x20heading\x20level\x205');case'Create\x20a\x20heading\x20level\x206':return t('Create\x20a\x20heading\x20level\x206');case'Insert\x20a\x20horizontal\x20line':return t('Insert\x20a\x20horizontal\x20line');case'Insert\x20an\x20HTML\x20snippet':return t('Insert\x20an\x20HTML\x20snippet');case'Increase\x20the\x20indentation':return t('Increase\x20the\x20indentation');case'Insert\x20Mermaid\x20diagram':return t('Insert\x20Mermaid\x20diagram');case'Insert\x20the\x20Mermaid\x20diagram':return t('Insert\x20the\x20Mermaid\x20diagram');case'Create\x20a\x20table':return t('Create\x20a\x20table');case'Insert\x20table\x20of\x20contents':return t('Insert\x20table\x20of\x20contents');case'Create\x20a\x20numbered\x20list':return t('Create\x20a\x20numbered\x20list');case'Decrease\x20the\x20indentation':return t('Decrease\x20the\x20indentation');case'Insert\x20a\x20paragraph':return t('Insert\x20a\x20paragraph');case'Create\x20a\x20to-do\x20list':return t('Create\x20a\x20to-do\x20list');case'Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content':return t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content');case'Insert\x20an\x20emoji':return t('Insert\x20an\x20emoji');case'Insert\x20a\x20footnote':return t('Insert\x20a\x20footnote');default:return _0x135b7e;}}(this['editor']['locale'],_0xd88824);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':Jt,'title':_0x45bd57('AI\x20Assistant'),'description':_0x45bd57('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x1fd45e=>{setTimeout(()=>_0x1fd45e['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':Wt,'title':_0x45bd57('Block\x20quote'),'description':_0x45bd57('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x14bb6c,'title':_0x45bd57('Bulleted\x20List'),'description':_0x45bd57('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x3f72bd,'title':_0x45bd57('Insert\x20code\x20block'),'description':_0x45bd57('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x18d0ff,'title':_0x45bd57('Open\x20file\x20manager'),'description':_0x45bd57('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x18d0ff,'title':_0x45bd57('Insert\x20image'),'description':_0x45bd57('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x34b16c,'title':_0x45bd57('Emoji'),'description':_0x45bd57('Insert\x20an\x20emoji'),'execute':_0x3c2db8=>{setTimeout(()=>_0x3c2db8['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':ot,'title':_0x45bd57('Heading\x201'),'description':_0x45bd57('Create\x20a\x20heading\x20level\x201'),'execute':_0x327e6d=>{_0x327e6d['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':at,'title':_0x45bd57('Heading\x202'),'description':_0x45bd57('Create\x20a\x20heading\x20level\x202'),'execute':_0x25c24f=>{_0x25c24f['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':ct,'title':_0x45bd57('Heading\x203'),'description':_0x45bd57('Create\x20a\x20heading\x20level\x203'),'execute':_0x360300=>{_0x360300['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':lt,'title':_0x45bd57('Heading\x204'),'description':_0x45bd57('Create\x20a\x20heading\x20level\x204'),'execute':_0x29d13a=>{_0x29d13a['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':ht,'title':_0x45bd57('Heading\x205'),'description':_0x45bd57('Create\x20a\x20heading\x20level\x205'),'execute':_0x40ed75=>{_0x40ed75['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':ut,'title':_0x45bd57('Heading\x206'),'description':_0x45bd57('Create\x20a\x20heading\x20level\x206'),'execute':_0x15e3c5=>{_0x15e3c5['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':ft,'title':_0x45bd57('Horizontal\x20line'),'description':_0x45bd57('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':mt,'title':_0x45bd57('Insert\x20HTML'),'description':_0x45bd57('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':Ot,'title':_0x45bd57('Increase\x20indent'),'description':_0x45bd57('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x45bd57('Insert\x20Mermaid\x20diagram'),'description':_0x45bd57('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x16de9f,'title':_0x45bd57('Insert\x20table'),'description':_0x45bd57('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x117a83,'title':_0x45bd57('Table\x20of\x20contents'),'description':_0x45bd57('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':$t,'title':_0x45bd57('Numbered\x20List'),'description':_0x45bd57('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':jt,'title':_0x45bd57('Decrease\x20indent'),'description':_0x45bd57('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':Bt,'title':_0x45bd57('Paragraph'),'description':_0x45bd57('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x3204db,'title':_0x45bd57('To-do\x20List'),'description':_0x45bd57('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':st,'title':_0x45bd57('Footnote'),'description':_0x45bd57('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x3c957c){return _0x3c957c['isEnabled']?_0x3c957c['isEnabled'](this['editor']):!_0x3c957c['commandName']||this['editor']['commands']['get'](_0x3c957c['commandName'])['isEnabled'];}_proxyExecute(_0x41c903){if(_0x41c903['execute'])_0x41c903['execute'](this['editor']);else{if(!_0x41c903['commandName'])throw new _0x4242d4('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x41c903});this['editor']['execute'](_0x41c903['commandName']);}}};function UM(_0x3c16a0,_0x3dc611){return _0x3c16a0['title']<_0x3dc611['title']?-0x1:_0x3c16a0['title']>_0x3dc611['title']?0x1:0x0;}function VM(_0x24481f,_0x456cd0){return _0x456cd0+'-'+_0x24481f['toLowerCase']()['split']('\x20')['join']('-');}var BM=class extends _0x11fe30{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[jM];}getMatchingCommands(_0x2fe4e2){const _0x2263d2=_0x2fe4e2&&_0x2fe4e2['toLowerCase']();let _0xb3cb52=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0xb3cb52=_0xb3cb52['filter'](_0x53a0b6=>_0x53a0b6['isEnabled']()),_0x2263d2){const _0xed0c4e=[],_0x3e6db6=[],_0x5903ae=[],_0xabe3a0=[];for(const _0x121cc7 of _0xb3cb52)_0x121cc7['id']['toLowerCase']()['includes'](_0x2263d2)?_0xed0c4e['push'](_0x121cc7):_0x121cc7['title']['toLowerCase']()['includes'](_0x2263d2)?_0x3e6db6['push'](_0x121cc7):_0x121cc7['aliases']&&_0x121cc7['aliases']['some'](_0x3e95d6=>_0x3e95d6['toLowerCase']()['includes'](_0x2263d2))?_0x5903ae['push'](_0x121cc7):_0x121cc7['description']&&_0x121cc7['description']['toLowerCase']()['includes'](_0x2263d2)&&_0xabe3a0['push'](_0x121cc7);_0xb3cb52=_0xed0c4e['concat'](_0x3e6db6,_0x5903ae,_0xabe3a0);}return _0xb3cb52;}},HM=class extends _0x39ae99{constructor(_0x307633,_0x308bf5){super(_0x307633),this['textPartView']=this['_createTextPartView'](_0x307633,_0x308bf5),void 0x0!==_0x308bf5['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x308bf5['isIconColorInherited']),this['set']({'icon':_0x308bf5['icon']||Zt,'withText':!0x0,'label':_0x308bf5['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}_createTextPartView(_0x2f266f,_0x1629f1){const _0x3848f9=new _0x2f6e1a(_0x2f266f);return _0x3848f9['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x1629f1['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x1629f1['description']}]}]:[this['labelView']]}),_0x3848f9;}},FM=class extends _0x11fe30{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x22d801){super(_0x22d801),this['_setupMentionConfiguration']();}init(){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x203f0b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x224a2f;for(const _0x26d7a5 in _0x203f0b){const _0x5cf898=_0x26d7a5,_0x40635b=_0x203f0b[_0x5cf898];if('slashCommandLicenseKeyValid'==_0x40635b||'slashCommandLicenseKeyInvalid'==_0x40635b||'slashCommandLicenseKeyExpired'==_0x40635b||'slashCommandLicenseKeyDomainLimit'==_0x40635b||'slashCommandLicenseKeyNotAllowed'==_0x40635b||'slashCommandLicenseKeyEvaluationLimit'==_0x40635b||'slashCommandLicenseKeyUsageLimit'==_0x40635b){delete _0x203f0b[_0x5cf898],_0x224a2f=_0x40635b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x224a2f&&_0x203f0b['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x224a2f&&_0x203f0b['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x224a2f&&_0x203f0b['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x224a2f&&_0x203f0b['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x224a2f&&_0x203f0b['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x224a2f&&_0x203f0b['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_setupMentionConfiguration(){const _0x2db9cb=this['editor'],_0x48636c=this['editor']['plugins']['get']('SlashCommandEditing'),_0x507ed0=_0x2db9cb['config']['get']('mention.feeds');_0x507ed0['push']({'marker':'/','feed':_0x2ebe96=>_0x48636c['getMatchingCommands'](_0x2ebe96),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x2db9cb['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x2db9cb['config']['set']('mention.feeds',_0x507ed0);}_overrideMentionExecuteListener(){const _0x11895d=this['editor'];_0x11895d['commands']['get']('mention')['on']('execute',(_0x13be13,_0x583195)=>{const _0x5f2bb9=_0x583195[0x0],_0x4da3b6=_0x11895d['model'];'/'===_0x5f2bb9['marker']&&_0x4da3b6['change'](_0x2d3e3f=>{_0x2d3e3f['remove'](_0x5f2bb9['range']),_0x5f2bb9['mention']['execute'](),_0x13be13['stop']();});},{'priority':'high'});}_customItemRenderer(_0x2b3398){const _0x526b92=this['editor']['locale'],_0x275bee=new HM(_0x526b92,_0x2b3398);return _0x275bee['render'](),_0x275bee['element'];}},ZM=class extends _0x11fe30{static get requires(){return[_0x1322cb,BM,FM];}static get['pluginName'](){return'SlashCommand';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};function GM(_0x1d35b2,_0xc6ef92){const t=_0x1d35b2['t'];switch(_0xc6ef92){case'Edit\x20source\x20modal\x20label':return t({'string':'Edit\x20source','id':'Edit\x20source\x20modal\x20label'});case'Source':return t('Source');case'Source\x20Editing\x20Enhanced':return t('Source\x20Editing\x20Enhanced');case'Copy\x20line\x20down':return t('Copy\x20line\x20down');case'Copy\x20line\x20up':return t('Copy\x20line\x20up');case'Delete\x20line':return t('Delete\x20line');case'Indent\x20less':return t('Indent\x20less');case'Indent\x20more':return t('Indent\x20more');case'Fold\x20all':return t('Fold\x20all');case'Fold\x20code\x20(current\x20level)':return t('Fold\x20code\x20(current\x20level)');case'Move\x20line\x20down':return t('Move\x20line\x20down');case'Move\x20line\x20up':return t('Move\x20line\x20up');case'Redo\x20(keystroke)':return t({'id':'Redo\x20(keystroke)','string':'Redo'});case'Select\x20line':return t('Select\x20line');case'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode':return t('Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode');case'Toggle\x20block\x20comment':return t('Toggle\x20block\x20comment');case'Toggle\x20comment':return t('Toggle\x20comment');case'Undo\x20(keystroke)':return t({'id':'Undo\x20(keystroke)','string':'Undo'});case'Unfold\x20all':return t('Unfold\x20all');case'Unfold\x20code\x20(current\x20level)':return t('Unfold\x20code\x20(current\x20level)');case'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.':return t('Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.');case'Cancel':return t('Cancel');case'Save':return t('Save');default:return _0xc6ef92;}}function XM(_0x505b02){const _0x4cd50d=_0x505b02['editing']['view']['document']['roots'],_0x520a63=_0x4cd50d['length'];if(0x0===_0x520a63)throw new _0x4242d4('source-editing-enhanced-editor-no-root',_0x505b02);return 0x1===_0x520a63?_0x4cd50d['first']['rootName']:Array['from'](_0x505b02['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function qM(_0x53eae5){return WM(_0x53eae5['replace'](/^[\n\s]*/g,''))?_0x53eae5['replace'](/\s+/g,''):_0x53eae5;}function WM(_0x3e5f9d){return _0x3e5f9d['startsWith']('<');}let zM=[],YM=[];function KM(_0x29883b){if(_0x29883b<0x300)return!0x1;for(let _0x17a252=0x0,_0x7025c9=zM['length'];;){let _0x173697=_0x17a252+_0x7025c9>>0x1;if(_0x29883b<zM[_0x173697])_0x7025c9=_0x173697;else{if(!(_0x29883b>=YM[_0x173697]))return!0x0;_0x17a252=_0x173697+0x1;}if(_0x17a252==_0x7025c9)return!0x1;}}function JM(_0x528dd7){return _0x528dd7>=0x1f1e6&&_0x528dd7<=0x1f1ff;}((()=>{let _0x15844c='lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o'['split'](',')['map'](_0x51e180=>_0x51e180?parseInt(_0x51e180,0x24):0x1);for(let _0x2f9799=0x0,_0x347a05=0x0;_0x2f9799<_0x15844c['length'];_0x2f9799++)(_0x2f9799%0x2?YM:zM)['push'](_0x347a05+=_0x15844c[_0x2f9799]);})());function tL(_0xb23920,_0x1b5d01,_0x1d26a5=!0x0,_0x578011=!0x0){return(_0x1d26a5?eL:iL)(_0xb23920,_0x1b5d01,_0x578011);}function eL(_0x51620e,_0x4ae2d8,_0x5d0464){if(_0x4ae2d8==_0x51620e['length'])return _0x4ae2d8;_0x4ae2d8&&nL(_0x51620e['charCodeAt'](_0x4ae2d8))&&rL(_0x51620e['charCodeAt'](_0x4ae2d8-0x1))&&_0x4ae2d8--;let _0x1b577d=sL(_0x51620e,_0x4ae2d8);for(_0x4ae2d8+=oL(_0x1b577d);_0x4ae2d8<_0x51620e['length'];){let _0x575ca1=sL(_0x51620e,_0x4ae2d8);if(0x200d==_0x1b577d||0x200d==_0x575ca1||_0x5d0464&&KM(_0x575ca1))_0x4ae2d8+=oL(_0x575ca1),_0x1b577d=_0x575ca1;else{if(!JM(_0x575ca1))break;{let _0x1a0bf4=0x0,_0x1be037=_0x4ae2d8-0x2;for(;_0x1be037>=0x0&&JM(sL(_0x51620e,_0x1be037));)_0x1a0bf4++,_0x1be037-=0x2;if(_0x1a0bf4%0x2==0x0)break;_0x4ae2d8+=0x2;}}}return _0x4ae2d8;}function iL(_0x47b607,_0x20ab80,_0x565664){for(;_0x20ab80>0x0;){let _0x5d7ea6=eL(_0x47b607,_0x20ab80-0x2,_0x565664);if(_0x5d7ea6<_0x20ab80)return _0x5d7ea6;_0x20ab80--;}return 0x0;}function sL(_0x594504,_0x1e6e9a){let _0x58ea5a=_0x594504['charCodeAt'](_0x1e6e9a);if(!rL(_0x58ea5a)||_0x1e6e9a+0x1==_0x594504['length'])return _0x58ea5a;let _0x195ae0=_0x594504['charCodeAt'](_0x1e6e9a+0x1);return nL(_0x195ae0)?_0x195ae0-0xdc00+(_0x58ea5a-0xd800<<0xa)+0x10000:_0x58ea5a;}function nL(_0x5ef38c){return _0x5ef38c>=0xdc00&&_0x5ef38c<0xe000;}function rL(_0xb98d0e){return _0xb98d0e>=0xd800&&_0xb98d0e<0xdc00;}function oL(_0x57240e){return _0x57240e<0x10000?0x1:0x2;}var aL=class Text$1{lineAt(_0x2b29ea){if(_0x2b29ea<0x0||_0x2b29ea>this['length'])throw new RangeError('Invalid\x20position\x20'+_0x2b29ea+'\x20in\x20document\x20of\x20length\x20'+this['length']);return this['lineInner'](_0x2b29ea,!0x1,0x1,0x0);}['line'](_0x22337b){if(_0x22337b<0x1||_0x22337b>this['lines'])throw new RangeError('Invalid\x20line\x20number\x20'+_0x22337b+'\x20in\x20'+this['lines']+'-line\x20document');return this['lineInner'](_0x22337b,!0x0,0x1,0x0);}['replace'](_0xf9da48,_0x535b49,_0x296596){[_0xf9da48,_0x535b49]=gL(this,_0xf9da48,_0x535b49);let _0x3d46c6=[];return this['decompose'](0x0,_0xf9da48,_0x3d46c6,0x2),_0x296596['length']&&_0x296596['decompose'](0x0,_0x296596['length'],_0x3d46c6,0x3),this['decompose'](_0x535b49,this['length'],_0x3d46c6,0x1),lL['from'](_0x3d46c6,this['length']-(_0x535b49-_0xf9da48)+_0x296596['length']);}['append'](_0x42c70e){return this['replace'](this['length'],this['length'],_0x42c70e);}['slice'](_0x152b1c,_0x4bb388=this['length']){[_0x152b1c,_0x4bb388]=gL(this,_0x152b1c,_0x4bb388);let _0x47751a=[];return this['decompose'](_0x152b1c,_0x4bb388,_0x47751a,0x0),lL['from'](_0x47751a,_0x4bb388-_0x152b1c);}['eq'](_0x5408c6){if(_0x5408c6==this)return!0x0;if(_0x5408c6['length']!=this['length']||_0x5408c6['lines']!=this['lines'])return!0x1;let _0x22cf54=this['scanIdentical'](_0x5408c6,0x1),_0x58b29f=this['length']-this['scanIdentical'](_0x5408c6,-0x1),_0x49afc5=new dL(this),_0x2eeb6d=new dL(_0x5408c6);for(let _0x4ebbad=_0x22cf54,_0x164a3c=_0x22cf54;;){if(_0x49afc5['next'](_0x4ebbad),_0x2eeb6d['next'](_0x4ebbad),_0x4ebbad=0x0,_0x49afc5['lineBreak']!=_0x2eeb6d['lineBreak']||_0x49afc5['done']!=_0x2eeb6d['done']||_0x49afc5['value']!=_0x2eeb6d['value'])return!0x1;if(_0x164a3c+=_0x49afc5['value']['length'],_0x49afc5['done']||_0x164a3c>=_0x58b29f)return!0x0;}}iter(_0x4ae983=0x1){return new dL(this,_0x4ae983);}iterRange(_0x5146bf,_0xd2d406=this['length']){return new fL(this,_0x5146bf,_0xd2d406);}iterLines(_0x5a10c9,_0x419162){let _0x58bbfd;if(null==_0x5a10c9)_0x58bbfd=this['iter']();else{null==_0x419162&&(_0x419162=this['lines']+0x1);let _0x388133=this['line'](_0x5a10c9)['from'];_0x58bbfd=this['iterRange'](_0x388133,Math['max'](_0x388133,_0x419162==this['lines']+0x1?this['length']:_0x419162<=0x1?0x0:this['line'](_0x419162-0x1)['to']));}return new mL(_0x58bbfd);}toString(){return this['sliceString'](0x0);}toJSON(){let _0x16496a=[];return this['flatten'](_0x16496a),_0x16496a;}constructor(){}static['of'](_0x3161f9){if(0x0==_0x3161f9['length'])throw new RangeError('A\x20document\x20must\x20have\x20at\x20least\x20one\x20line');return 0x1!=_0x3161f9['length']||_0x3161f9[0x0]?_0x3161f9['length']<=0x20?new cL(_0x3161f9):lL['from'](cL['split'](_0x3161f9,[])):Text$1['empty'];}},cL=class TextLeaf extends aL{constructor(_0xd95d7c,_0x7b2295=function(_0x585c0d){let _0x4b6c53=-0x1;for(let _0x4a1f74 of _0x585c0d)_0x4b6c53+=_0x4a1f74['length']+0x1;return _0x4b6c53;}(_0xd95d7c)){super(),this['text']=_0xd95d7c,this['length']=_0x7b2295;}get['lines'](){return this['text']['length'];}get['children'](){return null;}['lineInner'](_0x42f8c7,_0x5871ef,_0x358550,_0x52e27c){for(let _0x32f0a0=0x0;;_0x32f0a0++){let _0x491d69=this['text'][_0x32f0a0],_0x593102=_0x52e27c+_0x491d69['length'];if((_0x5871ef?_0x358550:_0x593102)>=_0x42f8c7)return new pL(_0x52e27c,_0x593102,_0x358550,_0x491d69);_0x52e27c=_0x593102+0x1,_0x358550++;}}['decompose'](_0x525d3a,_0x403bdc,_0x486a75,_0x2d8c70){let _0x29df65=_0x525d3a<=0x0&&_0x403bdc>=this['length']?this:new TextLeaf(uL(this['text'],_0x525d3a,_0x403bdc),Math['min'](_0x403bdc,this['length'])-Math['max'](0x0,_0x525d3a));if(0x1&_0x2d8c70){let _0x570f94=_0x486a75['pop'](),_0x17bcc1=hL(_0x29df65['text'],_0x570f94['text']['slice'](),0x0,_0x29df65['length']);if(_0x17bcc1['length']<=0x20)_0x486a75['push'](new TextLeaf(_0x17bcc1,_0x570f94['length']+_0x29df65['length']));else{let _0x45fd90=_0x17bcc1['length']>>0x1;_0x486a75['push'](new TextLeaf(_0x17bcc1['slice'](0x0,_0x45fd90)),new TextLeaf(_0x17bcc1['slice'](_0x45fd90)));}}else _0x486a75['push'](_0x29df65);}['replace'](_0x280839,_0x2779e4,_0x4ccf7f){if(!(_0x4ccf7f instanceof TextLeaf))return super['replace'](_0x280839,_0x2779e4,_0x4ccf7f);[_0x280839,_0x2779e4]=gL(this,_0x280839,_0x2779e4);let _0x235a81=hL(this['text'],hL(_0x4ccf7f['text'],uL(this['text'],0x0,_0x280839)),_0x2779e4),_0x430614=this['length']+_0x4ccf7f['length']-(_0x2779e4-_0x280839);return _0x235a81['length']<=0x20?new TextLeaf(_0x235a81,_0x430614):lL['from'](TextLeaf['split'](_0x235a81,[]),_0x430614);}sliceString(_0x191856,_0x217c5a=this['length'],_0x5ae0e9='\x0a'){[_0x191856,_0x217c5a]=gL(this,_0x191856,_0x217c5a);let _0x3e9301='';for(let _0x35e51d=0x0,_0x4abf2c=0x0;_0x35e51d<=_0x217c5a&&_0x4abf2c<this['text']['length'];_0x4abf2c++){let _0x325d5e=this['text'][_0x4abf2c],_0x5ed2da=_0x35e51d+_0x325d5e['length'];_0x35e51d>_0x191856&&_0x4abf2c&&(_0x3e9301+=_0x5ae0e9),_0x191856<_0x5ed2da&&_0x217c5a>_0x35e51d&&(_0x3e9301+=_0x325d5e['slice'](Math['max'](0x0,_0x191856-_0x35e51d),_0x217c5a-_0x35e51d)),_0x35e51d=_0x5ed2da+0x1;}return _0x3e9301;}flatten(_0x1e81c6){for(let _0x64088b of this['text'])_0x1e81c6['push'](_0x64088b);}scanIdentical(){return 0x0;}static split(_0x3ee51a,_0x350e83){let _0x62aed8=[],_0x2da1ed=-0x1;for(let _0xc51a73 of _0x3ee51a)_0x62aed8['push'](_0xc51a73),_0x2da1ed+=_0xc51a73['length']+0x1,0x20==_0x62aed8['length']&&(_0x350e83['push'](new TextLeaf(_0x62aed8,_0x2da1ed)),_0x62aed8=[],_0x2da1ed=-0x1);return _0x2da1ed>-0x1&&_0x350e83['push'](new TextLeaf(_0x62aed8,_0x2da1ed)),_0x350e83;}},lL=class TextNode extends aL{constructor(_0x20cc6b,_0x38760e){super(),this['children']=_0x20cc6b,this['length']=_0x38760e,this['lines']=0x0;for(let _0x3aff21 of _0x20cc6b)this['lines']+=_0x3aff21['lines'];}['lineInner'](_0x3a2f90,_0x2b1159,_0x1460f9,_0x24b448){for(let _0x48e8b7=0x0;;_0x48e8b7++){let _0x55a1d7=this['children'][_0x48e8b7],_0x5bc035=_0x24b448+_0x55a1d7['length'],_0x330b03=_0x1460f9+_0x55a1d7['lines']-0x1;if((_0x2b1159?_0x330b03:_0x5bc035)>=_0x3a2f90)return _0x55a1d7['lineInner'](_0x3a2f90,_0x2b1159,_0x1460f9,_0x24b448);_0x24b448=_0x5bc035+0x1,_0x1460f9=_0x330b03+0x1;}}['decompose'](_0x75a180,_0x284298,_0x1e0997,_0x1e3c3f){for(let _0x348495=0x0,_0x4358f8=0x0;_0x4358f8<=_0x284298&&_0x348495<this['children']['length'];_0x348495++){let _0xa8776f=this['children'][_0x348495],_0x1e969e=_0x4358f8+_0xa8776f['length'];if(_0x75a180<=_0x1e969e&&_0x284298>=_0x4358f8){let _0xe3c798=_0x1e3c3f&((_0x4358f8<=_0x75a180?0x1:0x0)|(_0x1e969e>=_0x284298?0x2:0x0));_0x4358f8>=_0x75a180&&_0x1e969e<=_0x284298&&!_0xe3c798?_0x1e0997['push'](_0xa8776f):_0xa8776f['decompose'](_0x75a180-_0x4358f8,_0x284298-_0x4358f8,_0x1e0997,_0xe3c798);}_0x4358f8=_0x1e969e+0x1;}}['replace'](_0x33e9c3,_0x55498b,_0x3c91ee){if([_0x33e9c3,_0x55498b]=gL(this,_0x33e9c3,_0x55498b),_0x3c91ee['lines']<this['lines'])for(let _0x207de0=0x0,_0x408226=0x0;_0x207de0<this['children']['length'];_0x207de0++){let _0x38b615=this['children'][_0x207de0],_0x56b979=_0x408226+_0x38b615['length'];if(_0x33e9c3>=_0x408226&&_0x55498b<=_0x56b979){let _0x4b3621=_0x38b615['replace'](_0x33e9c3-_0x408226,_0x55498b-_0x408226,_0x3c91ee),_0xcddd07=this['lines']-_0x38b615['lines']+_0x4b3621['lines'];if(_0x4b3621['lines']<_0xcddd07>>0x4&&_0x4b3621['lines']>_0xcddd07>>0x6){let _0x27693a=this['children']['slice']();return _0x27693a[_0x207de0]=_0x4b3621,new TextNode(_0x27693a,this['length']-(_0x55498b-_0x33e9c3)+_0x3c91ee['length']);}return super['replace'](_0x408226,_0x56b979,_0x4b3621);}_0x408226=_0x56b979+0x1;}return super['replace'](_0x33e9c3,_0x55498b,_0x3c91ee);}sliceString(_0x336218,_0x4e14f7=this['length'],_0x4c9d1a='\x0a'){[_0x336218,_0x4e14f7]=gL(this,_0x336218,_0x4e14f7);let _0xd570cb='';for(let _0x133331=0x0,_0xcb60f2=0x0;_0x133331<this['children']['length']&&_0xcb60f2<=_0x4e14f7;_0x133331++){let _0x74325a=this['children'][_0x133331],_0x1e1ecd=_0xcb60f2+_0x74325a['length'];_0xcb60f2>_0x336218&&_0x133331&&(_0xd570cb+=_0x4c9d1a),_0x336218<_0x1e1ecd&&_0x4e14f7>_0xcb60f2&&(_0xd570cb+=_0x74325a['sliceString'](_0x336218-_0xcb60f2,_0x4e14f7-_0xcb60f2,_0x4c9d1a)),_0xcb60f2=_0x1e1ecd+0x1;}return _0xd570cb;}flatten(_0x3cb6f2){for(let _0x3e6caf of this['children'])_0x3e6caf['flatten'](_0x3cb6f2);}scanIdentical(_0x1fbcde,_0x359014){if(!(_0x1fbcde instanceof TextNode))return 0x0;let _0x4a7739=0x0,[_0x495ad,_0x26602f,_0x259088,_0x525f33]=_0x359014>0x0?[0x0,0x0,this['children']['length'],_0x1fbcde['children']['length']]:[this['children']['length']-0x1,_0x1fbcde['children']['length']-0x1,-0x1,-0x1];for(;;_0x495ad+=_0x359014,_0x26602f+=_0x359014){if(_0x495ad==_0x259088||_0x26602f==_0x525f33)return _0x4a7739;let _0x4ade0c=this['children'][_0x495ad],_0x230913=_0x1fbcde['children'][_0x26602f];if(_0x4ade0c!=_0x230913)return _0x4a7739+_0x4ade0c['scanIdentical'](_0x230913,_0x359014);_0x4a7739+=_0x4ade0c['length']+0x1;}}static['from'](_0x139659,_0xace129=_0x139659['reduce']((_0x565f33,_0x46060e)=>_0x565f33+_0x46060e['length']+0x1,-0x1)){let _0x1e049f=0x0;for(let _0x1d5fd4 of _0x139659)_0x1e049f+=_0x1d5fd4['lines'];if(_0x1e049f<0x20){let _0xfdaed7=[];for(let _0x274070 of _0x139659)_0x274070['flatten'](_0xfdaed7);return new cL(_0xfdaed7,_0xace129);}let _0x3a4686=Math['max'](0x20,_0x1e049f>>0x5),_0x1e5693=_0x3a4686<<0x1,_0x2a3dee=_0x3a4686>>0x1,_0x58ea8f=[],_0x5d368a=0x0,_0x308057=-0x1,_0x1cfe91=[];function _0x6a88c8(_0x52c751){let _0x1140a3;if(_0x52c751['lines']>_0x1e5693&&_0x52c751 instanceof TextNode){for(let _0x563873 of _0x52c751['children'])_0x6a88c8(_0x563873);}else _0x52c751['lines']>_0x2a3dee&&(_0x5d368a>_0x2a3dee||!_0x5d368a)?(_0x50d680(),_0x58ea8f['push'](_0x52c751)):_0x52c751 instanceof cL&&_0x5d368a&&(_0x1140a3=_0x1cfe91[_0x1cfe91['length']-0x1])instanceof cL&&_0x52c751['lines']+_0x1140a3['lines']<=0x20?(_0x5d368a+=_0x52c751['lines'],_0x308057+=_0x52c751['length']+0x1,_0x1cfe91[_0x1cfe91['length']-0x1]=new cL(_0x1140a3['text']['concat'](_0x52c751['text']),_0x1140a3['length']+0x1+_0x52c751['length'])):(_0x5d368a+_0x52c751['lines']>_0x3a4686&&_0x50d680(),_0x5d368a+=_0x52c751['lines'],_0x308057+=_0x52c751['length']+0x1,_0x1cfe91['push'](_0x52c751));}function _0x50d680(){0x0!=_0x5d368a&&(_0x58ea8f['push'](0x1==_0x1cfe91['length']?_0x1cfe91[0x0]:TextNode['from'](_0x1cfe91,_0x308057)),_0x308057=-0x1,_0x5d368a=_0x1cfe91['length']=0x0);}for(let _0x5551fe of _0x139659)_0x6a88c8(_0x5551fe);return _0x50d680(),0x1==_0x58ea8f['length']?_0x58ea8f[0x0]:new TextNode(_0x58ea8f,_0xace129);}};function hL(_0x27b213,_0x36fc98,_0x2343b8=0x0,_0x4ce827=0x3b9aca00){for(let _0x565491=0x0,_0x514db1=0x0,_0x326966=!0x0;_0x514db1<_0x27b213['length']&&_0x565491<=_0x4ce827;_0x514db1++){let _0x14e73c=_0x27b213[_0x514db1],_0x1f005e=_0x565491+_0x14e73c['length'];_0x1f005e>=_0x2343b8&&(_0x1f005e>_0x4ce827&&(_0x14e73c=_0x14e73c['slice'](0x0,_0x4ce827-_0x565491)),_0x565491<_0x2343b8&&(_0x14e73c=_0x14e73c['slice'](_0x2343b8-_0x565491)),_0x326966?(_0x36fc98[_0x36fc98['length']-0x1]+=_0x14e73c,_0x326966=!0x1):_0x36fc98['push'](_0x14e73c)),_0x565491=_0x1f005e+0x1;}return _0x36fc98;}function uL(_0xb2e07,_0x576d6a,_0x2f271d){return hL(_0xb2e07,[''],_0x576d6a,_0x2f271d);}aL['empty']=new cL([''],0x0);var dL=class{constructor(_0x26ce85,_0x36dc87=0x1){this['dir']=_0x36dc87,this['done']=!0x1,this['lineBreak']=!0x1,this['value']='',this['nodes']=[_0x26ce85],this['offsets']=[_0x36dc87>0x0?0x1:(_0x26ce85 instanceof cL?_0x26ce85['text']['length']:_0x26ce85['children']['length'])<<0x1];}nextInner(_0x59687a,_0x37952a){for(this['done']=this['lineBreak']=!0x1;;){let _0x5c2932=this['nodes']['length']-0x1,_0x300d80=this['nodes'][_0x5c2932],_0x3f0a18=this['offsets'][_0x5c2932],_0x50c5ab=_0x3f0a18>>0x1,_0x3278d9=_0x300d80 instanceof cL?_0x300d80['text']['length']:_0x300d80['children']['length'];if(_0x50c5ab==(_0x37952a>0x0?_0x3278d9:0x0)){if(0x0==_0x5c2932)return this['done']=!0x0,this['value']='',this;_0x37952a>0x0&&this['offsets'][_0x5c2932-0x1]++,this['nodes']['pop'](),this['offsets']['pop']();}else{if((0x1&_0x3f0a18)==(_0x37952a>0x0?0x0:0x1)){if(this['offsets'][_0x5c2932]+=_0x37952a,0x0==_0x59687a)return this['lineBreak']=!0x0,this['value']='\x0a',this;_0x59687a--;}else{if(_0x300d80 instanceof cL){let _0x3b626a=_0x300d80['text'][_0x50c5ab+(_0x37952a<0x0?-0x1:0x0)];if(this['offsets'][_0x5c2932]+=_0x37952a,_0x3b626a['length']>Math['max'](0x0,_0x59687a))return this['value']=0x0==_0x59687a?_0x3b626a:_0x37952a>0x0?_0x3b626a['slice'](_0x59687a):_0x3b626a['slice'](0x0,_0x3b626a['length']-_0x59687a),this;_0x59687a-=_0x3b626a['length'];}else{let _0x467d22=_0x300d80['children'][_0x50c5ab+(_0x37952a<0x0?-0x1:0x0)];_0x59687a>_0x467d22['length']?(_0x59687a-=_0x467d22['length'],this['offsets'][_0x5c2932]+=_0x37952a):(_0x37952a<0x0&&this['offsets'][_0x5c2932]--,this['nodes']['push'](_0x467d22),this['offsets']['push'](_0x37952a>0x0?0x1:(_0x467d22 instanceof cL?_0x467d22['text']['length']:_0x467d22['children']['length'])<<0x1));}}}}}next(_0x38360f=0x0){return _0x38360f<0x0&&(this['nextInner'](-_0x38360f,-this['dir']),_0x38360f=this['value']['length']),this['nextInner'](_0x38360f,this['dir']);}},fL=class{constructor(_0x4700b8,_0x3ddb9f,_0x3cf199){this['value']='',this['done']=!0x1,this['cursor']=new dL(_0x4700b8,_0x3ddb9f>_0x3cf199?-0x1:0x1),this['pos']=_0x3ddb9f>_0x3cf199?_0x4700b8['length']:0x0,this['from']=Math['min'](_0x3ddb9f,_0x3cf199),this['to']=Math['max'](_0x3ddb9f,_0x3cf199);}nextInner(_0x57fbc0,_0x13cafe){if(_0x13cafe<0x0?this['pos']<=this['from']:this['pos']>=this['to'])return this['value']='',this['done']=!0x0,this;_0x57fbc0+=Math['max'](0x0,_0x13cafe<0x0?this['pos']-this['to']:this['from']-this['pos']);let _0x2170ad=_0x13cafe<0x0?this['pos']-this['from']:this['to']-this['pos'];_0x57fbc0>_0x2170ad&&(_0x57fbc0=_0x2170ad),_0x2170ad-=_0x57fbc0;let {value:_0x485763}=this['cursor']['next'](_0x57fbc0);return this['pos']+=(_0x485763['length']+_0x57fbc0)*_0x13cafe,this['value']=_0x485763['length']<=_0x2170ad?_0x485763:_0x13cafe<0x0?_0x485763['slice'](_0x485763['length']-_0x2170ad):_0x485763['slice'](0x0,_0x2170ad),this['done']=!this['value'],this;}next(_0x2144cb=0x0){return _0x2144cb<0x0?_0x2144cb=Math['max'](_0x2144cb,this['from']-this['pos']):_0x2144cb>0x0&&(_0x2144cb=Math['min'](_0x2144cb,this['to']-this['pos'])),this['nextInner'](_0x2144cb,this['cursor']['dir']);}get['lineBreak'](){return this['cursor']['lineBreak']&&''!=this['value'];}},mL=class{constructor(_0x5b2665){this['inner']=_0x5b2665,this['afterBreak']=!0x0,this['value']='',this['done']=!0x1;}next(_0x3af1bd=0x0){let {done:_0x33a71b,lineBreak:_0x5d27ee,value:_0x2ffb40}=this['inner']['next'](_0x3af1bd);return _0x33a71b&&this['afterBreak']?(this['value']='',this['afterBreak']=!0x1):_0x33a71b?(this['done']=!0x0,this['value']=''):_0x5d27ee?this['afterBreak']?this['value']='':(this['afterBreak']=!0x0,this['next']()):(this['value']=_0x2ffb40,this['afterBreak']=!0x1),this;}get['lineBreak'](){return!0x1;}};'undefined'!=typeof Symbol&&(aL['prototype'][Symbol['iterator']]=function(){return this['iter']();},dL['prototype'][Symbol['iterator']]=fL['prototype'][Symbol['iterator']]=mL['prototype'][Symbol['iterator']]=function(){return this;});var pL=class{constructor(_0x4c3ad6,_0x5bb7d4,_0x145710,_0x5d64fa){this['from']=_0x4c3ad6,this['to']=_0x5bb7d4,this['number']=_0x145710,this['text']=_0x5d64fa;}get length(){return this['to']-this['from'];}};function gL(_0x4da6ef,_0x2b1c0e,_0x15d4e9){return[_0x2b1c0e=Math['max'](0x0,Math['min'](_0x4da6ef['length'],_0x2b1c0e)),Math['max'](_0x2b1c0e,Math['min'](_0x4da6ef['length'],_0x15d4e9))];}function OL(_0x35b871,_0x3e6016,_0x3425e2=!0x0,_0x579a79=!0x0){return tL(_0x35b871,_0x3e6016,_0x3425e2,_0x579a79);}function wL(_0x43689e,_0x14608d){let _0x185d67=_0x43689e['charCodeAt'](_0x14608d);if(!(_0x5c4740=_0x185d67,_0x5c4740>=0xd800&&_0x5c4740<0xdc00&&_0x14608d+0x1!=_0x43689e['length']))return _0x185d67;var _0x5c4740;let _0x1df9e5=_0x43689e['charCodeAt'](_0x14608d+0x1);return function(_0x3efe21){return _0x3efe21>=0xdc00&&_0x3efe21<0xe000;}(_0x1df9e5)?_0x1df9e5-0xdc00+(_0x185d67-0xd800<<0xa)+0x10000:_0x185d67;}function bL(_0x213a16){return _0x213a16<=0xffff?String['fromCharCode'](_0x213a16):(_0x213a16-=0x10000,String['fromCharCode'](0xd800+(_0x213a16>>0xa),0xdc00+(0x3ff&_0x213a16)));}function yL(_0x2e334c){return _0x2e334c<0x10000?0x1:0x2;}const vL=/\r\n?|\n/;var _L=function(_0x1c9062){return _0x1c9062[_0x1c9062['Simple']=0x0]='Simple',_0x1c9062[_0x1c9062['TrackDel']=0x1]='TrackDel',_0x1c9062[_0x1c9062['TrackBefore']=0x2]='TrackBefore',_0x1c9062[_0x1c9062['TrackAfter']=0x3]='TrackAfter',_0x1c9062;}(_L||(_L={})),EL=class ChangeDesc{constructor(_0x3c9340){this['sections']=_0x3c9340;}get length(){let _0x26f159=0x0;for(let _0x40b414=0x0;_0x40b414<this['sections']['length'];_0x40b414+=0x2)_0x26f159+=this['sections'][_0x40b414];return _0x26f159;}get newLength(){let _0x2226e5=0x0;for(let _0x1e1fb1=0x0;_0x1e1fb1<this['sections']['length'];_0x1e1fb1+=0x2){let _0x917d97=this['sections'][_0x1e1fb1+0x1];_0x2226e5+=_0x917d97<0x0?this['sections'][_0x1e1fb1]:_0x917d97;}return _0x2226e5;}get empty(){return 0x0==this['sections']['length']||0x2==this['sections']['length']&&this['sections'][0x1]<0x0;}iterGaps(_0x1f8ea4){for(let _0x3ea6a7=0x0,_0x1e4ac8=0x0,_0x1ec8bf=0x0;_0x3ea6a7<this['sections']['length'];){let _0x288a5b=this['sections'][_0x3ea6a7++],_0x34edba=this['sections'][_0x3ea6a7++];_0x34edba<0x0?(_0x1f8ea4(_0x1e4ac8,_0x1ec8bf,_0x288a5b),_0x1ec8bf+=_0x288a5b):_0x1ec8bf+=_0x34edba,_0x1e4ac8+=_0x288a5b;}}iterChangedRanges(_0xd1dc7d,_0x4ca726=!0x1){IL(this,_0xd1dc7d,_0x4ca726);}get invertedDesc(){let _0x483d47=[];for(let _0x5e2602=0x0;_0x5e2602<this['sections']['length'];){let _0x3945f0=this['sections'][_0x5e2602++],_0x779309=this['sections'][_0x5e2602++];_0x779309<0x0?_0x483d47['push'](_0x3945f0,_0x779309):_0x483d47['push'](_0x779309,_0x3945f0);}return new ChangeDesc(_0x483d47);}['composeDesc'](_0x3f9e38){return this['empty']?_0x3f9e38:_0x3f9e38['empty']?this:xL(this,_0x3f9e38);}['mapDesc'](_0x5a2715,_0x3f01ab=!0x1){return _0x5a2715['empty']?this:kL(this,_0x5a2715,_0x3f01ab);}['mapPos'](_0x21c5cd,_0x68791e=-0x1,_0x11ab09=_L['Simple']){let _0x497151=0x0,_0x3eadca=0x0;for(let _0x994dc4=0x0;_0x994dc4<this['sections']['length'];){let _0x336a05=this['sections'][_0x994dc4++],_0x5dc9fc=this['sections'][_0x994dc4++],_0x28de51=_0x497151+_0x336a05;if(_0x5dc9fc<0x0){if(_0x28de51>_0x21c5cd)return _0x3eadca+(_0x21c5cd-_0x497151);_0x3eadca+=_0x336a05;}else{if(_0x11ab09!=_L['Simple']&&_0x28de51>=_0x21c5cd&&(_0x11ab09==_L['TrackDel']&&_0x497151<_0x21c5cd&&_0x28de51>_0x21c5cd||_0x11ab09==_L['TrackBefore']&&_0x497151<_0x21c5cd||_0x11ab09==_L['TrackAfter']&&_0x28de51>_0x21c5cd))return null;if(_0x28de51>_0x21c5cd||_0x28de51==_0x21c5cd&&_0x68791e<0x0&&!_0x336a05)return _0x21c5cd==_0x497151||_0x68791e<0x0?_0x3eadca:_0x3eadca+_0x5dc9fc;_0x3eadca+=_0x5dc9fc;}_0x497151=_0x28de51;}if(_0x21c5cd>_0x497151)throw new RangeError('Position\x20'+_0x21c5cd+'\x20is\x20out\x20of\x20range\x20for\x20changeset\x20of\x20length\x20'+_0x497151);return _0x3eadca;}touchesRange(_0x6fc830,_0x156058=_0x6fc830){for(let _0x5367b8=0x0,_0x582124=0x0;_0x5367b8<this['sections']['length']&&_0x582124<=_0x156058;){let _0x1348fb=_0x582124+this['sections'][_0x5367b8++];if(this['sections'][_0x5367b8++]>=0x0&&_0x582124<=_0x156058&&_0x1348fb>=_0x6fc830)return!(_0x582124<_0x6fc830&&_0x1348fb>_0x156058)||'cover';_0x582124=_0x1348fb;}return!0x1;}toString(){let _0x36cb49='';for(let _0x8d988d=0x0;_0x8d988d<this['sections']['length'];){let _0x48f9b5=this['sections'][_0x8d988d++],_0x5c36d9=this['sections'][_0x8d988d++];_0x36cb49+=(_0x36cb49?'\x20':'')+_0x48f9b5+(_0x5c36d9>=0x0?':'+_0x5c36d9:'');}return _0x36cb49;}toJSON(){return this['sections'];}static['fromJSON'](_0x5488b9){if(!Array['isArray'](_0x5488b9)||_0x5488b9['length']%0x2||_0x5488b9['some'](_0x40073b=>'number'!=typeof _0x40073b))throw new RangeError('Invalid\x20JSON\x20representation\x20of\x20ChangeDesc');return new ChangeDesc(_0x5488b9);}static create(_0x409a98){return new ChangeDesc(_0x409a98);}},TL=class ChangeSet extends EL{constructor(_0x210ff0,_0x22fa4b){super(_0x210ff0),this['inserted']=_0x22fa4b;}['apply'](_0x1628d5){if(this['length']!=_0x1628d5['length'])throw new RangeError('Applying\x20change\x20set\x20to\x20a\x20document\x20with\x20the\x20wrong\x20length');return IL(this,(_0x30f4e4,_0x4ca139,_0x410ae9,_0x41bce3,_0xcd80b)=>_0x1628d5=_0x1628d5['replace'](_0x410ae9,_0x410ae9+(_0x4ca139-_0x30f4e4),_0xcd80b),!0x1),_0x1628d5;}['mapDesc'](_0x376f46,_0xb16541=!0x1){return kL(this,_0x376f46,_0xb16541,!0x0);}invert(_0x1a748a){let _0xa4cb34=this['sections']['slice'](),_0x348f71=[];for(let _0x8e4794=0x0,_0x1861e6=0x0;_0x8e4794<_0xa4cb34['length'];_0x8e4794+=0x2){let _0x504ec9=_0xa4cb34[_0x8e4794],_0x1949e2=_0xa4cb34[_0x8e4794+0x1];if(_0x1949e2>=0x0){_0xa4cb34[_0x8e4794]=_0x1949e2,_0xa4cb34[_0x8e4794+0x1]=_0x504ec9;let _0x31a11a=_0x8e4794>>0x1;for(;_0x348f71['length']<_0x31a11a;)_0x348f71['push'](aL['empty']);_0x348f71['push'](_0x504ec9?_0x1a748a['slice'](_0x1861e6,_0x1861e6+_0x504ec9):aL['empty']);}_0x1861e6+=_0x504ec9;}return new ChangeSet(_0xa4cb34,_0x348f71);}['compose'](_0x2ea876){return this['empty']?_0x2ea876:_0x2ea876['empty']?this:xL(this,_0x2ea876,!0x0);}['map'](_0x7f4c3d,_0x3a8b35=!0x1){return _0x7f4c3d['empty']?this:kL(this,_0x7f4c3d,_0x3a8b35,!0x0);}iterChanges(_0x3a6603,_0x44667b=!0x1){IL(this,_0x3a6603,_0x44667b);}get['desc'](){return EL['create'](this['sections']);}filter(_0x5d4c47){let _0x499c7a=[],_0x3680b2=[],_0x357020=[],_0x1ab052=new CL(this);t:for(let _0x2954f9=0x0,_0x5447f5=0x0;;){let _0x30d217=_0x2954f9==_0x5d4c47['length']?0x3b9aca00:_0x5d4c47[_0x2954f9++];for(;_0x5447f5<_0x30d217||_0x5447f5==_0x30d217&&0x0==_0x1ab052['len'];){if(_0x1ab052['done'])break t;let _0x1162f9=Math['min'](_0x1ab052['len'],_0x30d217-_0x5447f5);AL(_0x357020,_0x1162f9,-0x1);let _0x1aa111=-0x1==_0x1ab052['ins']?-0x1:0x0==_0x1ab052['off']?_0x1ab052['ins']:0x0;AL(_0x499c7a,_0x1162f9,_0x1aa111),_0x1aa111>0x0&&SL(_0x3680b2,_0x499c7a,_0x1ab052['text']),_0x1ab052['forward'](_0x1162f9),_0x5447f5+=_0x1162f9;}let _0x1f0a9e=_0x5d4c47[_0x2954f9++];for(;_0x5447f5<_0x1f0a9e;){if(_0x1ab052['done'])break t;let _0x41a728=Math['min'](_0x1ab052['len'],_0x1f0a9e-_0x5447f5);AL(_0x499c7a,_0x41a728,-0x1),AL(_0x357020,_0x41a728,-0x1==_0x1ab052['ins']?-0x1:0x0==_0x1ab052['off']?_0x1ab052['ins']:0x0),_0x1ab052['forward'](_0x41a728),_0x5447f5+=_0x41a728;}}return{'changes':new ChangeSet(_0x499c7a,_0x3680b2),'filtered':EL['create'](_0x357020)};}toJSON(){let _0x393dfd=[];for(let _0x2f8cf0=0x0;_0x2f8cf0<this['sections']['length'];_0x2f8cf0+=0x2){let _0x2462eb=this['sections'][_0x2f8cf0],_0x2f205d=this['sections'][_0x2f8cf0+0x1];_0x2f205d<0x0?_0x393dfd['push'](_0x2462eb):0x0==_0x2f205d?_0x393dfd['push']([_0x2462eb]):_0x393dfd['push']([_0x2462eb]['concat'](this['inserted'][_0x2f8cf0>>0x1]['toJSON']()));}return _0x393dfd;}static['of'](_0x178d98,_0x2e7280,_0x100d73){let _0x39cd4d=[],_0x3eb658=[],_0x2e1f5c=0x0,_0x3ebc90=null;function _0x4e420e(_0x478d59=!0x1){if(!_0x478d59&&!_0x39cd4d['length'])return;_0x2e1f5c<_0x2e7280&&AL(_0x39cd4d,_0x2e7280-_0x2e1f5c,-0x1);let _0x121e30=new ChangeSet(_0x39cd4d,_0x3eb658);_0x3ebc90=_0x3ebc90?_0x3ebc90['compose'](_0x121e30['map'](_0x3ebc90)):_0x121e30,_0x39cd4d=[],_0x3eb658=[],_0x2e1f5c=0x0;}return function _0x2182dc(_0x16303c){if(Array['isArray'](_0x16303c)){for(let _0x3d782a of _0x16303c)_0x2182dc(_0x3d782a);}else{if(_0x16303c instanceof ChangeSet){if(_0x16303c['length']!=_0x2e7280)throw new RangeError('Mismatched\x20change\x20set\x20length\x20(got\x20'+_0x16303c['length']+',\x20expected\x20'+_0x2e7280+')');_0x4e420e(),_0x3ebc90=_0x3ebc90?_0x3ebc90['compose'](_0x16303c['map'](_0x3ebc90)):_0x16303c;}else{let {from:_0x3520f4,to:_0x441c42=_0x3520f4,insert:_0x7366a7}=_0x16303c;if(_0x3520f4>_0x441c42||_0x3520f4<0x0||_0x441c42>_0x2e7280)throw new RangeError('Invalid\x20change\x20range\x20'+_0x3520f4+'\x20to\x20'+_0x441c42+'\x20(in\x20doc\x20of\x20length\x20'+_0x2e7280+')');let _0x16ce7f=_0x7366a7?'string'==typeof _0x7366a7?aL['of'](_0x7366a7['split'](_0x100d73||vL)):_0x7366a7:aL['empty'],_0x2ee962=_0x16ce7f['length'];if(_0x3520f4==_0x441c42&&0x0==_0x2ee962)return;_0x3520f4<_0x2e1f5c&&_0x4e420e(),_0x3520f4>_0x2e1f5c&&AL(_0x39cd4d,_0x3520f4-_0x2e1f5c,-0x1),AL(_0x39cd4d,_0x441c42-_0x3520f4,_0x2ee962),SL(_0x3eb658,_0x39cd4d,_0x16ce7f),_0x2e1f5c=_0x441c42;}}}(_0x178d98),_0x4e420e(!_0x3ebc90),_0x3ebc90;}static empty(_0x22515e){return new ChangeSet(_0x22515e?[_0x22515e,-0x1]:[],[]);}static['fromJSON'](_0x337e2c){if(!Array['isArray'](_0x337e2c))throw new RangeError('Invalid\x20JSON\x20representation\x20of\x20ChangeSet');let _0x38d77e=[],_0x56fd1b=[];for(let _0x5cbddb=0x0;_0x5cbddb<_0x337e2c['length'];_0x5cbddb++){let _0x152c1b=_0x337e2c[_0x5cbddb];if('number'==typeof _0x152c1b)_0x38d77e['push'](_0x152c1b,-0x1);else{if(!Array['isArray'](_0x152c1b)||'number'!=typeof _0x152c1b[0x0]||_0x152c1b['some']((_0x9aadf4,_0x21e5d2)=>_0x21e5d2&&'string'!=typeof _0x9aadf4))throw new RangeError('Invalid\x20JSON\x20representation\x20of\x20ChangeSet');if(0x1==_0x152c1b['length'])_0x38d77e['push'](_0x152c1b[0x0],0x0);else{for(;_0x56fd1b['length']<_0x5cbddb;)_0x56fd1b['push'](aL['empty']);_0x56fd1b[_0x5cbddb]=aL['of'](_0x152c1b['slice'](0x1)),_0x38d77e['push'](_0x152c1b[0x0],_0x56fd1b[_0x5cbddb]['length']);}}}return new ChangeSet(_0x38d77e,_0x56fd1b);}static createSet(_0x48e9ee,_0x51c6cb){return new ChangeSet(_0x48e9ee,_0x51c6cb);}};function AL(_0x291e44,_0x19b270,_0x16fe56,_0x5c9a3d=!0x1){if(0x0==_0x19b270&&_0x16fe56<=0x0)return;let _0x284c96=_0x291e44['length']-0x2;_0x284c96>=0x0&&_0x16fe56<=0x0&&_0x16fe56==_0x291e44[_0x284c96+0x1]?_0x291e44[_0x284c96]+=_0x19b270:_0x284c96>=0x0&&0x0==_0x19b270&&0x0==_0x291e44[_0x284c96]?_0x291e44[_0x284c96+0x1]+=_0x16fe56:_0x5c9a3d?(_0x291e44[_0x284c96]+=_0x19b270,_0x291e44[_0x284c96+0x1]+=_0x16fe56):_0x291e44['push'](_0x19b270,_0x16fe56);}function SL(_0x1643b7,_0x5c0ac1,_0x3592f3){if(0x0==_0x3592f3['length'])return;let _0x4282fc=_0x5c0ac1['length']-0x2>>0x1;if(_0x4282fc<_0x1643b7['length'])_0x1643b7[_0x1643b7['length']-0x1]=_0x1643b7[_0x1643b7['length']-0x1]['append'](_0x3592f3);else{for(;_0x1643b7['length']<_0x4282fc;)_0x1643b7['push'](aL['empty']);_0x1643b7['push'](_0x3592f3);}}function IL(_0x123c73,_0x438d39,_0x505d73){let _0x118d4f=_0x123c73['inserted'];for(let _0x40faa8=0x0,_0x3c1822=0x0,_0x313305=0x0;_0x313305<_0x123c73['sections']['length'];){let _0x2d0602=_0x123c73['sections'][_0x313305++],_0x1b54ee=_0x123c73['sections'][_0x313305++];if(_0x1b54ee<0x0)_0x40faa8+=_0x2d0602,_0x3c1822+=_0x2d0602;else{let _0x26085e=_0x40faa8,_0x1d40d7=_0x3c1822,_0x1d0027=aL['empty'];for(;_0x26085e+=_0x2d0602,_0x1d40d7+=_0x1b54ee,_0x1b54ee&&_0x118d4f&&(_0x1d0027=_0x1d0027['append'](_0x118d4f[_0x313305-0x2>>0x1])),!(_0x505d73||_0x313305==_0x123c73['sections']['length']||_0x123c73['sections'][_0x313305+0x1]<0x0);)_0x2d0602=_0x123c73['sections'][_0x313305++],_0x1b54ee=_0x123c73['sections'][_0x313305++];_0x438d39(_0x40faa8,_0x26085e,_0x3c1822,_0x1d40d7,_0x1d0027),_0x40faa8=_0x26085e,_0x3c1822=_0x1d40d7;}}}function kL(_0x19fd46,_0x261788,_0xd3f53c,_0x4482f1=!0x1){let _0x1c2f6c=[],_0x18ec84=_0x4482f1?[]:null,_0x381ede=new CL(_0x19fd46),_0x154dd8=new CL(_0x261788);for(let _0x332371=-0x1;;){if(_0x381ede['done']&&_0x154dd8['len']||_0x154dd8['done']&&_0x381ede['len'])throw new Error('Mismatched\x20change\x20set\x20lengths');if(-0x1==_0x381ede['ins']&&-0x1==_0x154dd8['ins']){let _0x3b01de=Math['min'](_0x381ede['len'],_0x154dd8['len']);AL(_0x1c2f6c,_0x3b01de,-0x1),_0x381ede['forward'](_0x3b01de),_0x154dd8['forward'](_0x3b01de);}else{if(_0x154dd8['ins']>=0x0&&(_0x381ede['ins']<0x0||_0x332371==_0x381ede['i']||0x0==_0x381ede['off']&&(_0x154dd8['len']<_0x381ede['len']||_0x154dd8['len']==_0x381ede['len']&&!_0xd3f53c))){let _0x332f20=_0x154dd8['len'];for(AL(_0x1c2f6c,_0x154dd8['ins'],-0x1);_0x332f20;){let _0x42f9e6=Math['min'](_0x381ede['len'],_0x332f20);_0x381ede['ins']>=0x0&&_0x332371<_0x381ede['i']&&_0x381ede['len']<=_0x42f9e6&&(AL(_0x1c2f6c,0x0,_0x381ede['ins']),_0x18ec84&&SL(_0x18ec84,_0x1c2f6c,_0x381ede['text']),_0x332371=_0x381ede['i']),_0x381ede['forward'](_0x42f9e6),_0x332f20-=_0x42f9e6;}_0x154dd8['next']();}else{if(!(_0x381ede['ins']>=0x0)){if(_0x381ede['done']&&_0x154dd8['done'])return _0x18ec84?TL['createSet'](_0x1c2f6c,_0x18ec84):EL['create'](_0x1c2f6c);throw new Error('Mismatched\x20change\x20set\x20lengths');}{let _0x24a9de=0x0,_0x364177=_0x381ede['len'];for(;_0x364177;)if(-0x1==_0x154dd8['ins']){let _0x256a70=Math['min'](_0x364177,_0x154dd8['len']);_0x24a9de+=_0x256a70,_0x364177-=_0x256a70,_0x154dd8['forward'](_0x256a70);}else{if(!(0x0==_0x154dd8['ins']&&_0x154dd8['len']<_0x364177))break;_0x364177-=_0x154dd8['len'],_0x154dd8['next']();}AL(_0x1c2f6c,_0x24a9de,_0x332371<_0x381ede['i']?_0x381ede['ins']:0x0),_0x18ec84&&_0x332371<_0x381ede['i']&&SL(_0x18ec84,_0x1c2f6c,_0x381ede['text']),_0x332371=_0x381ede['i'],_0x381ede['forward'](_0x381ede['len']-_0x364177);}}}}}function xL(_0x46a0f8,_0x2bbbab,_0x455cc0=!0x1){let _0x58c583=[],_0xe53dbd=_0x455cc0?[]:null,_0x2f6f00=new CL(_0x46a0f8),_0x85e25b=new CL(_0x2bbbab);for(let _0x35cec8=!0x1;;){if(_0x2f6f00['done']&&_0x85e25b['done'])return _0xe53dbd?TL['createSet'](_0x58c583,_0xe53dbd):EL['create'](_0x58c583);if(0x0==_0x2f6f00['ins'])AL(_0x58c583,_0x2f6f00['len'],0x0,_0x35cec8),_0x2f6f00['next']();else{if(0x0!=_0x85e25b['len']||_0x85e25b['done']){if(_0x2f6f00['done']||_0x85e25b['done'])throw new Error('Mismatched\x20change\x20set\x20lengths');{let _0x135b1b=Math['min'](_0x2f6f00['len2'],_0x85e25b['len']),_0x3094d3=_0x58c583['length'];if(-0x1==_0x2f6f00['ins']){let _0x3f3f8d=-0x1==_0x85e25b['ins']?-0x1:_0x85e25b['off']?0x0:_0x85e25b['ins'];AL(_0x58c583,_0x135b1b,_0x3f3f8d,_0x35cec8),_0xe53dbd&&_0x3f3f8d&&SL(_0xe53dbd,_0x58c583,_0x85e25b['text']);}else-0x1==_0x85e25b['ins']?(AL(_0x58c583,_0x2f6f00['off']?0x0:_0x2f6f00['len'],_0x135b1b,_0x35cec8),_0xe53dbd&&SL(_0xe53dbd,_0x58c583,_0x2f6f00['textBit'](_0x135b1b))):(AL(_0x58c583,_0x2f6f00['off']?0x0:_0x2f6f00['len'],_0x85e25b['off']?0x0:_0x85e25b['ins'],_0x35cec8),_0xe53dbd&&!_0x85e25b['off']&&SL(_0xe53dbd,_0x58c583,_0x85e25b['text']));_0x35cec8=(_0x2f6f00['ins']>_0x135b1b||_0x85e25b['ins']>=0x0&&_0x85e25b['len']>_0x135b1b)&&(_0x35cec8||_0x58c583['length']>_0x3094d3),_0x2f6f00['forward2'](_0x135b1b),_0x85e25b['forward'](_0x135b1b);}}else AL(_0x58c583,0x0,_0x85e25b['ins'],_0x35cec8),_0xe53dbd&&SL(_0xe53dbd,_0x58c583,_0x85e25b['text']),_0x85e25b['next']();}}}var CL=class{constructor(_0x2eeba0){this['set']=_0x2eeba0,this['i']=0x0,this['next']();}next(){let {sections:_0x325051}=this['set'];this['i']<_0x325051['length']?(this['len']=_0x325051[this['i']++],this['ins']=_0x325051[this['i']++]):(this['len']=0x0,this['ins']=-0x2),this['off']=0x0;}get['done'](){return-0x2==this['ins'];}get['len2'](){return this['ins']<0x0?this['len']:this['ins'];}get text(){let {inserted:_0x480d1f}=this['set'],_0x312454=this['i']-0x2>>0x1;return _0x312454>=_0x480d1f['length']?aL['empty']:_0x480d1f[_0x312454];}textBit(_0x1c2ef3){let {inserted:_0x4a300e}=this['set'],_0x3c0ec6=this['i']-0x2>>0x1;return _0x3c0ec6>=_0x4a300e['length']&&!_0x1c2ef3?aL['empty']:_0x4a300e[_0x3c0ec6]['slice'](this['off'],null==_0x1c2ef3?void 0x0:this['off']+_0x1c2ef3);}['forward'](_0x36c372){_0x36c372==this['len']?this['next']():(this['len']-=_0x36c372,this['off']+=_0x36c372);}['forward2'](_0x46cbe6){-0x1==this['ins']?this['forward'](_0x46cbe6):_0x46cbe6==this['ins']?this['next']():(this['ins']-=_0x46cbe6,this['off']+=_0x46cbe6);}},RL=class SelectionRange{constructor(_0xbf0a8c,_0x389ecb,_0x243d26){this['from']=_0xbf0a8c,this['to']=_0x389ecb,this['flags']=_0x243d26;}get['anchor'](){return 0x20&this['flags']?this['to']:this['from'];}get['head'](){return 0x20&this['flags']?this['from']:this['to'];}get empty(){return this['from']==this['to'];}get['assoc'](){return 0x8&this['flags']?-0x1:0x10&this['flags']?0x1:0x0;}get['bidiLevel'](){let _0x2a1b50=0x7&this['flags'];return 0x7==_0x2a1b50?null:_0x2a1b50;}get['goalColumn'](){let _0x27d212=this['flags']>>0x6;return 0xffffff==_0x27d212?void 0x0:_0x27d212;}['map'](_0x2273b0,_0x1a70c6=-0x1){let _0x2cfa85,_0x37e6b0;return this['empty']?_0x2cfa85=_0x37e6b0=_0x2273b0['mapPos'](this['from'],_0x1a70c6):(_0x2cfa85=_0x2273b0['mapPos'](this['from'],0x1),_0x37e6b0=_0x2273b0['mapPos'](this['to'],-0x1)),_0x2cfa85==this['from']&&_0x37e6b0==this['to']?this:new SelectionRange(_0x2cfa85,_0x37e6b0,this['flags']);}extend(_0x2a6e30,_0x2d1a23=_0x2a6e30,_0x248462=0x0){if(_0x2a6e30<=this['anchor']&&_0x2d1a23>=this['anchor'])return PL['range'](_0x2a6e30,_0x2d1a23,void 0x0,void 0x0,_0x248462);let _0x1d6872=Math['abs'](_0x2a6e30-this['anchor'])>Math['abs'](_0x2d1a23-this['anchor'])?_0x2a6e30:_0x2d1a23;return PL['range'](this['anchor'],_0x1d6872,void 0x0,void 0x0,_0x248462);}['eq'](_0x55b1e8,_0x30e7e8=!0x1){return!(this['anchor']!=_0x55b1e8['anchor']||this['head']!=_0x55b1e8['head']||this['goalColumn']!=_0x55b1e8['goalColumn']||_0x30e7e8&&this['empty']&&this['assoc']!=_0x55b1e8['assoc']);}toJSON(){return{'anchor':this['anchor'],'head':this['head']};}static['fromJSON'](_0x1d800d){if(!_0x1d800d||'number'!=typeof _0x1d800d['anchor']||'number'!=typeof _0x1d800d['head'])throw new RangeError('Invalid\x20JSON\x20representation\x20for\x20SelectionRange');return PL['range'](_0x1d800d['anchor'],_0x1d800d['head']);}static create(_0x445711,_0x308836,_0x4b5f4a){return new SelectionRange(_0x445711,_0x308836,_0x4b5f4a);}},PL=class EditorSelection{constructor(_0x2e409c,_0x36644e){this['ranges']=_0x2e409c,this['mainIndex']=_0x36644e;}['map'](_0x3aecd9,_0x401d70=-0x1){return _0x3aecd9['empty']?this:EditorSelection['create'](this['ranges']['map'](_0x454930=>_0x454930['map'](_0x3aecd9,_0x401d70)),this['mainIndex']);}['eq'](_0x39badc,_0x5ee95a=!0x1){if(this['ranges']['length']!=_0x39badc['ranges']['length']||this['mainIndex']!=_0x39badc['mainIndex'])return!0x1;for(let _0x126491=0x0;_0x126491<this['ranges']['length'];_0x126491++)if(!this['ranges'][_0x126491]['eq'](_0x39badc['ranges'][_0x126491],_0x5ee95a))return!0x1;return!0x0;}get['main'](){return this['ranges'][this['mainIndex']];}['asSingle'](){return 0x1==this['ranges']['length']?this:new EditorSelection([this['main']],0x0);}['addRange'](_0x3f533f,_0x19ec75=!0x0){return EditorSelection['create']([_0x3f533f]['concat'](this['ranges']),_0x19ec75?0x0:this['mainIndex']+0x1);}['replaceRange'](_0x256444,_0x53d1c3=this['mainIndex']){let _0x4e667e=this['ranges']['slice']();return _0x4e667e[_0x53d1c3]=_0x256444,EditorSelection['create'](_0x4e667e,this['mainIndex']);}toJSON(){return{'ranges':this['ranges']['map'](_0x55656b=>_0x55656b['toJSON']()),'main':this['mainIndex']};}static['fromJSON'](_0x16ff3e){if(!_0x16ff3e||!Array['isArray'](_0x16ff3e['ranges'])||'number'!=typeof _0x16ff3e['main']||_0x16ff3e['main']>=_0x16ff3e['ranges']['length'])throw new RangeError('Invalid\x20JSON\x20representation\x20for\x20EditorSelection');return new EditorSelection(_0x16ff3e['ranges']['map'](_0x34cc54=>RL['fromJSON'](_0x34cc54)),_0x16ff3e['main']);}static['single'](_0x4c71c7,_0x502664=_0x4c71c7){return new EditorSelection([EditorSelection['range'](_0x4c71c7,_0x502664)],0x0);}static create(_0x543540,_0x4708d1=0x0){if(0x0==_0x543540['length'])throw new RangeError('A\x20selection\x20needs\x20at\x20least\x20one\x20range');for(let _0xc01d9b=0x0,_0x601c2b=0x0;_0x601c2b<_0x543540['length'];_0x601c2b++){let _0xd9a158=_0x543540[_0x601c2b];if(_0xd9a158['empty']?_0xd9a158['from']<=_0xc01d9b:_0xd9a158['from']<_0xc01d9b)return EditorSelection['normalized'](_0x543540['slice'](),_0x4708d1);_0xc01d9b=_0xd9a158['to'];}return new EditorSelection(_0x543540,_0x4708d1);}static['cursor'](_0x3c4727,_0xfe90bb=0x0,_0x1aaf06,_0xe0a43e){return RL['create'](_0x3c4727,_0x3c4727,(0x0==_0xfe90bb?0x0:_0xfe90bb<0x0?0x8:0x10)|(null==_0x1aaf06?0x7:Math['min'](0x6,_0x1aaf06))|(null!=_0xe0a43e?_0xe0a43e:0xffffff)<<0x6);}static['range'](_0x49f0ae,_0x4a9fff,_0x4da34a,_0x18a59f,_0x131d8c){let _0x26ef8f=(null!=_0x4da34a?_0x4da34a:0xffffff)<<0x6|(null==_0x18a59f?0x7:Math['min'](0x6,_0x18a59f));return _0x131d8c||_0x49f0ae==_0x4a9fff||(_0x131d8c=_0x4a9fff<_0x49f0ae?0x1:-0x1),_0x4a9fff<_0x49f0ae?RL['create'](_0x4a9fff,_0x49f0ae,0x30|_0x26ef8f):RL['create'](_0x49f0ae,_0x4a9fff,(_0x131d8c?_0x131d8c<0x0?0x8:0x10:0x0)|_0x26ef8f);}static['normalized'](_0x34050b,_0x1eeb9a=0x0){let _0x4654fd=_0x34050b[_0x1eeb9a];_0x34050b['sort']((_0x830fb9,_0x33ccb2)=>_0x830fb9['from']-_0x33ccb2['from']),_0x1eeb9a=_0x34050b['indexOf'](_0x4654fd);for(let _0xa29e11=0x1;_0xa29e11<_0x34050b['length'];_0xa29e11++){let _0x12faa5=_0x34050b[_0xa29e11],_0x1bdd82=_0x34050b[_0xa29e11-0x1];if(_0x12faa5['empty']?_0x12faa5['from']<=_0x1bdd82['to']:_0x12faa5['from']<_0x1bdd82['to']){let _0x41d520=_0x1bdd82['from'],_0xb0f10=Math['max'](_0x12faa5['to'],_0x1bdd82['to']);_0xa29e11<=_0x1eeb9a&&_0x1eeb9a--,_0x34050b['splice'](--_0xa29e11,0x2,_0x12faa5['anchor']>_0x12faa5['head']?EditorSelection['range'](_0xb0f10,_0x41d520):EditorSelection['range'](_0x41d520,_0xb0f10));}}return new EditorSelection(_0x34050b,_0x1eeb9a);}};function NL(_0x19b3dc,_0x44c9f8){for(let _0x3a4efc of _0x19b3dc['ranges'])if(_0x3a4efc['to']>_0x44c9f8)throw new RangeError('Selection\x20points\x20outside\x20of\x20document');}let ML=0x0;var LL=class Facet{constructor(_0x531e27,_0x3b013f,_0x3eb245,_0x36113b,_0x230de7){this['combine']=_0x531e27,this['compareInput']=_0x3b013f,this['compare']=_0x3eb245,this['isStatic']=_0x36113b,this['id']=ML++,this['default']=_0x531e27([]),this['extensions']='function'==typeof _0x230de7?_0x230de7(this):_0x230de7;}get['reader'](){return this;}static['define'](_0x703565={}){return new Facet(_0x703565['combine']||(_0x521d70=>_0x521d70),_0x703565['compareInput']||((_0xb668e6,_0x1a513c)=>_0xb668e6===_0x1a513c),_0x703565['compare']||(_0x703565['combine']?(_0x591773,_0x3a8c97)=>_0x591773===_0x3a8c97:$L),!!_0x703565['static'],_0x703565['enables']);}['of'](_0x6d6c38){return new DL([],this,0x0,_0x6d6c38);}compute(_0x5cfebf,_0x37cd81){if(this['isStatic'])throw new Error('Can\x27t\x20compute\x20a\x20static\x20facet');return new DL(_0x5cfebf,this,0x1,_0x37cd81);}computeN(_0x35e083,_0x4939de){if(this['isStatic'])throw new Error('Can\x27t\x20compute\x20a\x20static\x20facet');return new DL(_0x35e083,this,0x2,_0x4939de);}['from'](_0x26ffbc,_0x339819){return _0x339819||(_0x339819=_0x59be59=>_0x59be59),this['compute']([_0x26ffbc],_0x28785e=>_0x339819(_0x28785e['field'](_0x26ffbc)));}};function $L(_0x589005,_0xd1001){return _0x589005==_0xd1001||_0x589005['length']==_0xd1001['length']&&_0x589005['every']((_0x299c12,_0xf9de68)=>_0x299c12===_0xd1001[_0xf9de68]);}var DL=class{constructor(_0x3d5b98,_0x672fa6,_0x791916,_0x24686a){this['dependencies']=_0x3d5b98,this['facet']=_0x672fa6,this['type']=_0x791916,this['value']=_0x24686a,this['id']=ML++;}dynamicSlot(_0x1d4e64){var _0x4058a2;let _0x213f34=this['value'],_0x1b83a1=this['facet']['compareInput'],_0x10d3a5=this['id'],_0x1f0feb=_0x1d4e64[_0x10d3a5]>>0x1,_0x451de1=0x2==this['type'],_0x4806cc=!0x1,_0x5e177a=!0x1,_0x76e4ac=[];for(let _0x259e5e of this['dependencies'])'doc'==_0x259e5e?_0x4806cc=!0x0:'selection'==_0x259e5e?_0x5e177a=!0x0:0x1&(null!==(_0x4058a2=_0x1d4e64[_0x259e5e['id']])&&void 0x0!==_0x4058a2?_0x4058a2:0x1)||_0x76e4ac['push'](_0x1d4e64[_0x259e5e['id']]);return{'create':_0x537fe0=>(_0x537fe0['values'][_0x1f0feb]=_0x213f34(_0x537fe0),0x1),'update'(_0x5a22ba,_0x36ccee){if(_0x4806cc&&_0x36ccee['docChanged']||_0x5e177a&&(_0x36ccee['docChanged']||_0x36ccee['selection'])||jL(_0x5a22ba,_0x76e4ac)){let _0x450c98=_0x213f34(_0x5a22ba);if(_0x451de1?!QL(_0x450c98,_0x5a22ba['values'][_0x1f0feb],_0x1b83a1):!_0x1b83a1(_0x450c98,_0x5a22ba['values'][_0x1f0feb]))return _0x5a22ba['values'][_0x1f0feb]=_0x450c98,0x1;}return 0x0;},'reconfigure':(_0x54e9fb,_0x5f1d31)=>{let _0x1e5379,_0x3699b7=_0x5f1d31['config']['address'][_0x10d3a5];if(null!=_0x3699b7){let _0x8d1385=t$(_0x5f1d31,_0x3699b7);if(this['dependencies']['every'](_0x43c58a=>_0x43c58a instanceof LL?_0x5f1d31['facet'](_0x43c58a)===_0x54e9fb['facet'](_0x43c58a):!(_0x43c58a instanceof BL)||_0x5f1d31['field'](_0x43c58a,!0x1)==_0x54e9fb['field'](_0x43c58a,!0x1))||(_0x451de1?QL(_0x1e5379=_0x213f34(_0x54e9fb),_0x8d1385,_0x1b83a1):_0x1b83a1(_0x1e5379=_0x213f34(_0x54e9fb),_0x8d1385)))return _0x54e9fb['values'][_0x1f0feb]=_0x8d1385,0x0;}else _0x1e5379=_0x213f34(_0x54e9fb);return _0x54e9fb['values'][_0x1f0feb]=_0x1e5379,0x1;}};}};function QL(_0x276078,_0xd4f27a,_0x45face){if(_0x276078['length']!=_0xd4f27a['length'])return!0x1;for(let _0x53e9a5=0x0;_0x53e9a5<_0x276078['length'];_0x53e9a5++)if(!_0x45face(_0x276078[_0x53e9a5],_0xd4f27a[_0x53e9a5]))return!0x1;return!0x0;}function jL(_0x13bb1f,_0x2e5509){let _0x10a16a=!0x1;for(let _0x1f8717 of _0x2e5509)0x1&JL(_0x13bb1f,_0x1f8717)&&(_0x10a16a=!0x0);return _0x10a16a;}function UL(_0x5aa68a,_0xa050f2,_0x1a0d6d){let _0x34f10e=_0x1a0d6d['map'](_0x234862=>_0x5aa68a[_0x234862['id']]),_0xea05a5=_0x1a0d6d['map'](_0x4fe6da=>_0x4fe6da['type']),_0x30caa5=_0x34f10e['filter'](_0x4ba589=>!(0x1&_0x4ba589)),_0x5181c0=_0x5aa68a[_0xa050f2['id']]>>0x1;function _0x382a68(_0x52df79){let _0x5d75fe=[];for(let _0xcd8a14=0x0;_0xcd8a14<_0x34f10e['length'];_0xcd8a14++){let _0x4e4ec6=t$(_0x52df79,_0x34f10e[_0xcd8a14]);if(0x2==_0xea05a5[_0xcd8a14]){for(let _0x1b4cdc of _0x4e4ec6)_0x5d75fe['push'](_0x1b4cdc);}else _0x5d75fe['push'](_0x4e4ec6);}return _0xa050f2['combine'](_0x5d75fe);}return{'create'(_0x5f05a7){for(let _0x1b11f0 of _0x34f10e)JL(_0x5f05a7,_0x1b11f0);return _0x5f05a7['values'][_0x5181c0]=_0x382a68(_0x5f05a7),0x1;},'update'(_0x3312d8,_0x474255){if(!jL(_0x3312d8,_0x30caa5))return 0x0;let _0x18e1b0=_0x382a68(_0x3312d8);return _0xa050f2['compare'](_0x18e1b0,_0x3312d8['values'][_0x5181c0])?0x0:(_0x3312d8['values'][_0x5181c0]=_0x18e1b0,0x1);},'reconfigure'(_0x24c69d,_0x523b33){let _0xf44cd1=jL(_0x24c69d,_0x34f10e),_0x45bfa4=_0x523b33['config']['facets'][_0xa050f2['id']],_0x10cd96=_0x523b33['facet'](_0xa050f2);if(_0x45bfa4&&!_0xf44cd1&&$L(_0x1a0d6d,_0x45bfa4))return _0x24c69d['values'][_0x5181c0]=_0x10cd96,0x0;let _0x1b0ab8=_0x382a68(_0x24c69d);return _0xa050f2['compare'](_0x1b0ab8,_0x10cd96)?(_0x24c69d['values'][_0x5181c0]=_0x10cd96,0x0):(_0x24c69d['values'][_0x5181c0]=_0x1b0ab8,0x1);}};}const VL=LL['define']({'static':!0x0});var BL=class StateField{constructor(_0x260d7e,_0x3881f6,_0x42f0ed,_0x578199,_0x3ce882){this['id']=_0x260d7e,this['createF']=_0x3881f6,this['updateF']=_0x42f0ed,this['compareF']=_0x578199,this['spec']=_0x3ce882,this['provides']=void 0x0;}static['define'](_0x3972b9){let _0x1c81a0=new StateField(ML++,_0x3972b9['create'],_0x3972b9['update'],_0x3972b9['compare']||((_0x396ff2,_0x4d2aec)=>_0x396ff2===_0x4d2aec),_0x3972b9);return _0x3972b9['provide']&&(_0x1c81a0['provides']=_0x3972b9['provide'](_0x1c81a0)),_0x1c81a0;}create(_0x298ea6){let _0xdb3065=_0x298ea6['facet'](VL)['find'](_0xdccd7d=>_0xdccd7d['field']==this);return((null==_0xdb3065?void 0x0:_0xdb3065['create'])||this['createF'])(_0x298ea6);}slot(_0x587643){let _0x2eb2a8=_0x587643[this['id']]>>0x1;return{'create':_0x101ef5=>(_0x101ef5['values'][_0x2eb2a8]=this['create'](_0x101ef5),0x1),'update':(_0x775d2e,_0x4d2234)=>{let _0xe2b179=_0x775d2e['values'][_0x2eb2a8],_0x186248=this['updateF'](_0xe2b179,_0x4d2234);return this['compareF'](_0xe2b179,_0x186248)?0x0:(_0x775d2e['values'][_0x2eb2a8]=_0x186248,0x1);},'reconfigure':(_0x47a381,_0x48a326)=>{let _0x3b4e7c,_0x38137d=_0x47a381['facet'](VL),_0x5d03d9=_0x48a326['facet'](VL);return(_0x3b4e7c=_0x38137d['find'](_0x10910c=>_0x10910c['field']==this))&&_0x3b4e7c!=_0x5d03d9['find'](_0x12a498=>_0x12a498['field']==this)?(_0x47a381['values'][_0x2eb2a8]=_0x3b4e7c['create'](_0x47a381),0x1):null!=_0x48a326['config']['address'][this['id']]?(_0x47a381['values'][_0x2eb2a8]=_0x48a326['field'](this),0x0):(_0x47a381['values'][_0x2eb2a8]=this['create'](_0x47a381),0x1);}};}init(_0x3fa842){return[this,VL['of']({'field':this,'create':_0x3fa842})];}get extension(){return this;}};const HL=0x4,FL=0x3,ZL=0x2,GL=0x1;function XL(_0x4b7c3f){return _0x37d7d4=>new WL(_0x37d7d4,_0x4b7c3f);}const qL={'highest':XL(0x0),'high':XL(GL),'default':XL(ZL),'low':XL(FL),'lowest':XL(HL)};var WL=class{constructor(_0x3bff3c,_0x632247){this['inner']=_0x3bff3c,this['prec']=_0x632247;}},zL=class Compartment{['of'](_0xcce977){return new YL(this,_0xcce977);}['reconfigure'](_0x551161){return Compartment['reconfigure']['of']({'compartment':this,'extension':_0x551161});}get(_0x3edafb){return _0x3edafb['config']['compartments']['get'](this);}},YL=class{constructor(_0x3b7871,_0x28f978){this['compartment']=_0x3b7871,this['inner']=_0x28f978;}},KL=class Configuration{constructor(_0x112a42,_0x559dbd,_0x567978,_0x1c75d4,_0x40d94b,_0x313415){for(this['base']=_0x112a42,this['compartments']=_0x559dbd,this['dynamicSlots']=_0x567978,this['address']=_0x1c75d4,this['staticValues']=_0x40d94b,this['facets']=_0x313415,this['statusTemplate']=[];this['statusTemplate']['length']<_0x567978['length'];)this['statusTemplate']['push'](0x0);}staticFacet(_0x19b450){let _0x21f722=this['address'][_0x19b450['id']];return null==_0x21f722?_0x19b450['default']:this['staticValues'][_0x21f722>>0x1];}static['resolve'](_0x3b0850,_0x41c271,_0x45b762){let _0x59293f=[],_0x25eb1e=Object['create'](null),_0x517846=new Map();for(let _0x1700db of function(_0x4fdba4,_0xcdc882,_0x2195c3){let _0xc22e1a=[[],[],[],[],[]],_0xb6a78d=new Map();function _0x1fe946(_0xd31cbd,_0xd930b5){let _0x34f1a8=_0xb6a78d['get'](_0xd31cbd);if(null!=_0x34f1a8){if(_0x34f1a8<=_0xd930b5)return;let _0x2a5e97=_0xc22e1a[_0x34f1a8]['indexOf'](_0xd31cbd);_0x2a5e97>-0x1&&_0xc22e1a[_0x34f1a8]['splice'](_0x2a5e97,0x1),_0xd31cbd instanceof YL&&_0x2195c3['delete'](_0xd31cbd['compartment']);}if(_0xb6a78d['set'](_0xd31cbd,_0xd930b5),Array['isArray'](_0xd31cbd)){for(let _0x482794 of _0xd31cbd)_0x1fe946(_0x482794,_0xd930b5);}else{if(_0xd31cbd instanceof YL){if(_0x2195c3['has'](_0xd31cbd['compartment']))throw new RangeError('Duplicate\x20use\x20of\x20compartment\x20in\x20extensions');let _0x400d6c=_0xcdc882['get'](_0xd31cbd['compartment'])||_0xd31cbd['inner'];_0x2195c3['set'](_0xd31cbd['compartment'],_0x400d6c),_0x1fe946(_0x400d6c,_0xd930b5);}else{if(_0xd31cbd instanceof WL)_0x1fe946(_0xd31cbd['inner'],_0xd31cbd['prec']);else{if(_0xd31cbd instanceof BL)_0xc22e1a[_0xd930b5]['push'](_0xd31cbd),_0xd31cbd['provides']&&_0x1fe946(_0xd31cbd['provides'],_0xd930b5);else{if(_0xd31cbd instanceof DL)_0xc22e1a[_0xd930b5]['push'](_0xd31cbd),_0xd31cbd['facet']['extensions']&&_0x1fe946(_0xd31cbd['facet']['extensions'],ZL);else{let _0x46324f=_0xd31cbd['extension'];if(!_0x46324f)throw new Error('Unrecognized\x20extension\x20value\x20in\x20extension\x20set\x20('+_0xd31cbd+').\x20This\x20sometimes\x20happens\x20because\x20multiple\x20instances\x20of\x20@codemirror/state\x20are\x20loaded,\x20breaking\x20instanceof\x20checks.');_0x1fe946(_0x46324f,_0xd930b5);}}}}}}return _0x1fe946(_0x4fdba4,ZL),_0xc22e1a['reduce']((_0x3699bc,_0x3373f2)=>_0x3699bc['concat'](_0x3373f2));}(_0x3b0850,_0x41c271,_0x517846))_0x1700db instanceof BL?_0x59293f['push'](_0x1700db):(_0x25eb1e[_0x1700db['facet']['id']]||(_0x25eb1e[_0x1700db['facet']['id']]=[]))['push'](_0x1700db);let _0x1f95d5=Object['create'](null),_0x2bc95d=[],_0x405275=[];for(let _0x3ff695 of _0x59293f)_0x1f95d5[_0x3ff695['id']]=_0x405275['length']<<0x1,_0x405275['push'](_0x9ff739=>_0x3ff695['slot'](_0x9ff739));let _0x576bbb=null==_0x45b762?void 0x0:_0x45b762['config']['facets'];for(let _0x1b9e1a in _0x25eb1e){let _0x2ac076=_0x25eb1e[_0x1b9e1a],_0x351ced=_0x2ac076[0x0]['facet'],_0x358e24=_0x576bbb&&_0x576bbb[_0x1b9e1a]||[];if(_0x2ac076['every'](_0x4fe3a0=>0x0==_0x4fe3a0['type'])){if(_0x1f95d5[_0x351ced['id']]=_0x2bc95d['length']<<0x1|0x1,$L(_0x358e24,_0x2ac076))_0x2bc95d['push'](_0x45b762['facet'](_0x351ced));else{let _0x4c129c=_0x351ced['combine'](_0x2ac076['map'](_0x32aab0=>_0x32aab0['value']));_0x2bc95d['push'](_0x45b762&&_0x351ced['compare'](_0x4c129c,_0x45b762['facet'](_0x351ced))?_0x45b762['facet'](_0x351ced):_0x4c129c);}}else{for(let _0x4b4a91 of _0x2ac076)0x0==_0x4b4a91['type']?(_0x1f95d5[_0x4b4a91['id']]=_0x2bc95d['length']<<0x1|0x1,_0x2bc95d['push'](_0x4b4a91['value'])):(_0x1f95d5[_0x4b4a91['id']]=_0x405275['length']<<0x1,_0x405275['push'](_0x2fec32=>_0x4b4a91['dynamicSlot'](_0x2fec32)));_0x1f95d5[_0x351ced['id']]=_0x405275['length']<<0x1,_0x405275['push'](_0x3598b6=>UL(_0x3598b6,_0x351ced,_0x2ac076));}}let _0x122322=_0x405275['map'](_0x34f758=>_0x34f758(_0x1f95d5));return new Configuration(_0x3b0850,_0x517846,_0x122322,_0x1f95d5,_0x2bc95d,_0x25eb1e);}};function JL(_0xc192f7,_0x297c8c){if(0x1&_0x297c8c)return 0x2;let _0x50dfcb=_0x297c8c>>0x1,_0x5e2640=_0xc192f7['status'][_0x50dfcb];if(0x4==_0x5e2640)throw new Error('Cyclic\x20dependency\x20between\x20fields\x20and/or\x20facets');if(0x2&_0x5e2640)return _0x5e2640;_0xc192f7['status'][_0x50dfcb]=0x4;let _0x3c8089=_0xc192f7['computeSlot'](_0xc192f7,_0xc192f7['config']['dynamicSlots'][_0x50dfcb]);return _0xc192f7['status'][_0x50dfcb]=0x2|_0x3c8089;}function t$(_0x515f66,_0x4c1d3e){return 0x1&_0x4c1d3e?_0x515f66['config']['staticValues'][_0x4c1d3e>>0x1]:_0x515f66['values'][_0x4c1d3e>>0x1];}const e$=LL['define'](),i$=LL['define']({'combine':_0x244369=>_0x244369['some'](_0x131c50=>_0x131c50),'static':!0x0}),s$=LL['define']({'combine':_0x220c83=>_0x220c83['length']?_0x220c83[0x0]:void 0x0,'static':!0x0}),n$=LL['define'](),r$=LL['define'](),o$=LL['define'](),a$=LL['define']({'combine':_0x5c8f44=>!!_0x5c8f44['length']&&_0x5c8f44[0x0]});var c$=class{constructor(_0x2c7539,_0x35aaa7){this['type']=_0x2c7539,this['value']=_0x35aaa7;}static['define'](){return new l$();}},l$=class{['of'](_0x1155d4){return new c$(this,_0x1155d4);}},h$=class{constructor(_0x6a89a7){this['map']=_0x6a89a7;}['of'](_0x446909){return new u$(this,_0x446909);}},u$=class StateEffect{constructor(_0x4a14bc,_0x3ee987){this['type']=_0x4a14bc,this['value']=_0x3ee987;}['map'](_0x43b1fc){let _0x39d384=this['type']['map'](this['value'],_0x43b1fc);return void 0x0===_0x39d384?void 0x0:_0x39d384==this['value']?this:new StateEffect(this['type'],_0x39d384);}['is'](_0x56ce39){return this['type']==_0x56ce39;}static['define'](_0x6691c4={}){return new h$(_0x6691c4['map']||(_0x536763=>_0x536763));}static mapEffects(_0x352161,_0x34c7ee){if(!_0x352161['length'])return _0x352161;let _0x5336d9=[];for(let _0x352d8c of _0x352161){let _0x391f49=_0x352d8c['map'](_0x34c7ee);_0x391f49&&_0x5336d9['push'](_0x391f49);}return _0x5336d9;}};u$['reconfigure']=u$['define'](),u$['appendConfig']=u$['define']();var d$=class Transaction{constructor(_0xa10997,_0x170010,_0x125c3d,_0x358eca,_0x24e178,_0x38da9a){this['startState']=_0xa10997,this['changes']=_0x170010,this['selection']=_0x125c3d,this['effects']=_0x358eca,this['annotations']=_0x24e178,this['scrollIntoView']=_0x38da9a,this['_doc']=null,this['_state']=null,_0x125c3d&&NL(_0x125c3d,_0x170010['newLength']),_0x24e178['some'](_0x1778f8=>_0x1778f8['type']==Transaction['time'])||(this['annotations']=_0x24e178['concat'](Transaction['time']['of'](Date['now']())));}static create(_0x37d259,_0x245608,_0x14c7bc,_0x460175,_0x4d88e4,_0x5976cd){return new Transaction(_0x37d259,_0x245608,_0x14c7bc,_0x460175,_0x4d88e4,_0x5976cd);}get['newDoc'](){return this['_doc']||(this['_doc']=this['changes']['apply'](this['startState']['doc']));}get newSelection(){return this['selection']||this['startState']['selection']['map'](this['changes']);}get state(){return this['_state']||this['startState']['applyTransaction'](this),this['_state'];}annotation(_0x32d88b){for(let _0x572f43 of this['annotations'])if(_0x572f43['type']==_0x32d88b)return _0x572f43['value'];}get['docChanged'](){return!this['changes']['empty'];}get['reconfigured'](){return this['startState']['config']!=this['state']['config'];}isUserEvent(_0x3c9a7e){let _0x399499=this['annotation'](Transaction['userEvent']);return!(!_0x399499||!(_0x399499==_0x3c9a7e||_0x399499['length']>_0x3c9a7e['length']&&_0x399499['slice'](0x0,_0x3c9a7e['length'])==_0x3c9a7e&&'.'==_0x399499[_0x3c9a7e['length']]));}};function f$(_0x320957,_0x4f33df){let _0x3167ff=[];for(let _0x7c0d8b=0x0,_0x24407e=0x0;;){let _0x2de31a,_0x1d089d;if(_0x7c0d8b<_0x320957['length']&&(_0x24407e==_0x4f33df['length']||_0x4f33df[_0x24407e]>=_0x320957[_0x7c0d8b]))_0x2de31a=_0x320957[_0x7c0d8b++],_0x1d089d=_0x320957[_0x7c0d8b++];else{if(!(_0x24407e<_0x4f33df['length']))return _0x3167ff;_0x2de31a=_0x4f33df[_0x24407e++],_0x1d089d=_0x4f33df[_0x24407e++];}!_0x3167ff['length']||_0x3167ff[_0x3167ff['length']-0x1]<_0x2de31a?_0x3167ff['push'](_0x2de31a,_0x1d089d):_0x3167ff[_0x3167ff['length']-0x1]<_0x1d089d&&(_0x3167ff[_0x3167ff['length']-0x1]=_0x1d089d);}}function m$(_0x5cadf4,_0x719deb,_0x3beba9){var _0x299b70;let _0x21fba1,_0x228258,_0x1b5b47;return _0x3beba9?(_0x21fba1=_0x719deb['changes'],_0x228258=TL['empty'](_0x719deb['changes']['length']),_0x1b5b47=_0x5cadf4['changes']['compose'](_0x719deb['changes'])):(_0x21fba1=_0x719deb['changes']['map'](_0x5cadf4['changes']),_0x228258=_0x5cadf4['changes']['mapDesc'](_0x719deb['changes'],!0x0),_0x1b5b47=_0x5cadf4['changes']['compose'](_0x21fba1)),{'changes':_0x1b5b47,'selection':_0x719deb['selection']?_0x719deb['selection']['map'](_0x228258):null===(_0x299b70=_0x5cadf4['selection'])||void 0x0===_0x299b70?void 0x0:_0x299b70['map'](_0x21fba1),'effects':u$['mapEffects'](_0x5cadf4['effects'],_0x21fba1)['concat'](u$['mapEffects'](_0x719deb['effects'],_0x228258)),'annotations':_0x5cadf4['annotations']['length']?_0x5cadf4['annotations']['concat'](_0x719deb['annotations']):_0x719deb['annotations'],'scrollIntoView':_0x5cadf4['scrollIntoView']||_0x719deb['scrollIntoView']};}function p$(_0x5d64a5,_0x40535d,_0x21e094){let _0x3e19b3=_0x40535d['selection'],_0x204505=w$(_0x40535d['annotations']);return _0x40535d['userEvent']&&(_0x204505=_0x204505['concat'](d$['userEvent']['of'](_0x40535d['userEvent']))),{'changes':_0x40535d['changes']instanceof TL?_0x40535d['changes']:TL['of'](_0x40535d['changes']||[],_0x21e094,_0x5d64a5['facet'](s$)),'selection':_0x3e19b3&&(_0x3e19b3 instanceof PL?_0x3e19b3:PL['single'](_0x3e19b3['anchor'],_0x3e19b3['head'])),'effects':w$(_0x40535d['effects']),'annotations':_0x204505,'scrollIntoView':!!_0x40535d['scrollIntoView']};}function g$(_0x578029,_0x19f8ef,_0x53737f){let _0x2363ca=p$(_0x578029,_0x19f8ef['length']?_0x19f8ef[0x0]:{},_0x578029['doc']['length']);_0x19f8ef['length']&&!0x1===_0x19f8ef[0x0]['filter']&&(_0x53737f=!0x1);for(let _0x1d8703=0x1;_0x1d8703<_0x19f8ef['length'];_0x1d8703++){!0x1===_0x19f8ef[_0x1d8703]['filter']&&(_0x53737f=!0x1);let _0x16b6fe=!!_0x19f8ef[_0x1d8703]['sequential'];_0x2363ca=m$(_0x2363ca,p$(_0x578029,_0x19f8ef[_0x1d8703],_0x16b6fe?_0x2363ca['changes']['newLength']:_0x578029['doc']['length']),_0x16b6fe);}let _0x4fa155=d$['create'](_0x578029,_0x2363ca['changes'],_0x2363ca['selection'],_0x2363ca['effects'],_0x2363ca['annotations'],_0x2363ca['scrollIntoView']);return function(_0x3bcb3e){let _0x489a56=_0x3bcb3e['startState'],_0x3f6b62=_0x489a56['facet'](o$),_0x2c1021=_0x3bcb3e;for(let _0x3cd277=_0x3f6b62['length']-0x1;_0x3cd277>=0x0;_0x3cd277--){let _0x1dd4ec=_0x3f6b62[_0x3cd277](_0x3bcb3e);_0x1dd4ec&&Object['keys'](_0x1dd4ec)['length']&&(_0x2c1021=m$(_0x2c1021,p$(_0x489a56,_0x1dd4ec,_0x3bcb3e['changes']['newLength']),!0x0));}return _0x2c1021==_0x3bcb3e?_0x3bcb3e:d$['create'](_0x489a56,_0x3bcb3e['changes'],_0x3bcb3e['selection'],_0x2c1021['effects'],_0x2c1021['annotations'],_0x2c1021['scrollIntoView']);}(_0x53737f?function(_0x1062f7){let _0x3fd054=_0x1062f7['startState'],_0x9c195=!0x0;for(let _0x4d338e of _0x3fd054['facet'](n$)){let _0x61c71e=_0x4d338e(_0x1062f7);if(!0x1===_0x61c71e){_0x9c195=!0x1;break;}Array['isArray'](_0x61c71e)&&(_0x9c195=!0x0===_0x9c195?_0x61c71e:f$(_0x9c195,_0x61c71e));}if(!0x0!==_0x9c195){let _0x4d4c53,_0x3e767a;if(!0x1===_0x9c195)_0x3e767a=_0x1062f7['changes']['invertedDesc'],_0x4d4c53=TL['empty'](_0x3fd054['doc']['length']);else{let _0x66cb74=_0x1062f7['changes']['filter'](_0x9c195);_0x4d4c53=_0x66cb74['changes'],_0x3e767a=_0x66cb74['filtered']['mapDesc'](_0x66cb74['changes'])['invertedDesc'];}_0x1062f7=d$['create'](_0x3fd054,_0x4d4c53,_0x1062f7['selection']&&_0x1062f7['selection']['map'](_0x3e767a),u$['mapEffects'](_0x1062f7['effects'],_0x3e767a),_0x1062f7['annotations'],_0x1062f7['scrollIntoView']);}let _0x24bfc1=_0x3fd054['facet'](r$);for(let _0x42f319=_0x24bfc1['length']-0x1;_0x42f319>=0x0;_0x42f319--){let _0x4c0aef=_0x24bfc1[_0x42f319](_0x1062f7);_0x1062f7=_0x4c0aef instanceof d$?_0x4c0aef:Array['isArray'](_0x4c0aef)&&0x1==_0x4c0aef['length']&&_0x4c0aef[0x0]instanceof d$?_0x4c0aef[0x0]:g$(_0x3fd054,w$(_0x4c0aef),!0x1);}return _0x1062f7;}(_0x4fa155):_0x4fa155);}d$['time']=c$['define'](),d$['userEvent']=c$['define'](),d$['addToHistory']=c$['define'](),d$['remote']=c$['define']();const O$=[];function w$(_0x2dd175){return null==_0x2dd175?O$:Array['isArray'](_0x2dd175)?_0x2dd175:[_0x2dd175];}var b$=function(_0xdb2765){return _0xdb2765[_0xdb2765['Word']=0x0]='Word',_0xdb2765[_0xdb2765['Space']=0x1]='Space',_0xdb2765[_0xdb2765['Other']=0x2]='Other',_0xdb2765;}(b$||(b$={}));const y$=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let v$;try{v$=new RegExp('[\x5cp{Alphabetic}\x5cp{Number}_]','u');}catch(_0x72f7b){}function _$(_0x2e3ba8){return _0x56cc77=>{if(!/\S/['test'](_0x56cc77))return b$['Space'];if(function(_0x122699){if(v$)return v$['test'](_0x122699);for(let _0x1f8d80=0x0;_0x1f8d80<_0x122699['length'];_0x1f8d80++){let _0x1a087a=_0x122699[_0x1f8d80];if(/\w/['test'](_0x1a087a)||_0x1a087a>'\u0080'&&(_0x1a087a['toUpperCase']()!=_0x1a087a['toLowerCase']()||y$['test'](_0x1a087a)))return!0x0;}return!0x1;}(_0x56cc77))return b$['Word'];for(let _0x4b54f7=0x0;_0x4b54f7<_0x2e3ba8['length'];_0x4b54f7++)if(_0x56cc77['indexOf'](_0x2e3ba8[_0x4b54f7])>-0x1)return b$['Word'];return b$['Other'];};}var E$=class EditorState{constructor(_0x1aba3d,_0x3b8b5c,_0x2cba92,_0x9535f0,_0x46d543,_0x2444a0){this['config']=_0x1aba3d,this['doc']=_0x3b8b5c,this['selection']=_0x2cba92,this['values']=_0x9535f0,this['status']=_0x1aba3d['statusTemplate']['slice'](),this['computeSlot']=_0x46d543,_0x2444a0&&(_0x2444a0['_state']=this);for(let _0x5ecac1=0x0;_0x5ecac1<this['config']['dynamicSlots']['length'];_0x5ecac1++)JL(this,_0x5ecac1<<0x1);this['computeSlot']=null;}['field'](_0x224854,_0x5e551f=!0x0){let _0x2c7a8c=this['config']['address'][_0x224854['id']];if(null!=_0x2c7a8c)return JL(this,_0x2c7a8c),t$(this,_0x2c7a8c);if(_0x5e551f)throw new RangeError('Field\x20is\x20not\x20present\x20in\x20this\x20state');}update(..._0x18c0cf){return g$(this,_0x18c0cf,!0x0);}applyTransaction(_0x2a4fb2){let _0x197589,_0x284a44=this['config'],{base:_0xe4487a,compartments:_0x221db8}=_0x284a44;for(let _0x5e91dd of _0x2a4fb2['effects'])_0x5e91dd['is'](zL['reconfigure'])?(_0x284a44&&(_0x221db8=new Map(),_0x284a44['compartments']['forEach']((_0x5c6d67,_0x1b9b03)=>_0x221db8['set'](_0x1b9b03,_0x5c6d67)),_0x284a44=null),_0x221db8['set'](_0x5e91dd['value']['compartment'],_0x5e91dd['value']['extension'])):_0x5e91dd['is'](u$['reconfigure'])?(_0x284a44=null,_0xe4487a=_0x5e91dd['value']):_0x5e91dd['is'](u$['appendConfig'])&&(_0x284a44=null,_0xe4487a=w$(_0xe4487a)['concat'](_0x5e91dd['value']));_0x284a44?_0x197589=_0x2a4fb2['startState']['values']['slice']():(_0x284a44=KL['resolve'](_0xe4487a,_0x221db8,this),_0x197589=new EditorState(_0x284a44,this['doc'],this['selection'],_0x284a44['dynamicSlots']['map'](()=>null),(_0x371cac,_0x5d9754)=>_0x5d9754['reconfigure'](_0x371cac,this),null)['values']);let _0x595b77=_0x2a4fb2['startState']['facet'](i$)?_0x2a4fb2['newSelection']:_0x2a4fb2['newSelection']['asSingle']();new EditorState(_0x284a44,_0x2a4fb2['newDoc'],_0x595b77,_0x197589,(_0x37a827,_0x3749d8)=>_0x3749d8['update'](_0x37a827,_0x2a4fb2),_0x2a4fb2);}replaceSelection(_0x1f8abd){return'string'==typeof _0x1f8abd&&(_0x1f8abd=this['toText'](_0x1f8abd)),this['changeByRange'](_0x2cdd8b=>({'changes':{'from':_0x2cdd8b['from'],'to':_0x2cdd8b['to'],'insert':_0x1f8abd},'range':PL['cursor'](_0x2cdd8b['from']+_0x1f8abd['length'])}));}['changeByRange'](_0x8c62cc){let _0x130c13=this['selection'],_0x9cb522=_0x8c62cc(_0x130c13['ranges'][0x0]),_0x2aced4=this['changes'](_0x9cb522['changes']),_0x3142dd=[_0x9cb522['range']],_0x3e6e7a=w$(_0x9cb522['effects']);for(let _0x4267e5=0x1;_0x4267e5<_0x130c13['ranges']['length'];_0x4267e5++){let _0x2c33f1=_0x8c62cc(_0x130c13['ranges'][_0x4267e5]),_0x4f62a1=this['changes'](_0x2c33f1['changes']),_0x119028=_0x4f62a1['map'](_0x2aced4);for(let _0x4d13e9=0x0;_0x4d13e9<_0x4267e5;_0x4d13e9++)_0x3142dd[_0x4d13e9]=_0x3142dd[_0x4d13e9]['map'](_0x119028);let _0x2bca14=_0x2aced4['mapDesc'](_0x4f62a1,!0x0);_0x3142dd['push'](_0x2c33f1['range']['map'](_0x2bca14)),_0x2aced4=_0x2aced4['compose'](_0x119028),_0x3e6e7a=u$['mapEffects'](_0x3e6e7a,_0x119028)['concat'](u$['mapEffects'](w$(_0x2c33f1['effects']),_0x2bca14));}return{'changes':_0x2aced4,'selection':PL['create'](_0x3142dd,_0x130c13['mainIndex']),'effects':_0x3e6e7a};}['changes'](_0x518ae6=[]){return _0x518ae6 instanceof TL?_0x518ae6:TL['of'](_0x518ae6,this['doc']['length'],this['facet'](EditorState['lineSeparator']));}toText(_0x39e910){return aL['of'](_0x39e910['split'](this['facet'](EditorState['lineSeparator'])||vL));}['sliceDoc'](_0x71d7a5=0x0,_0x327dd0=this['doc']['length']){return this['doc']['sliceString'](_0x71d7a5,_0x327dd0,this['lineBreak']);}facet(_0x104c48){let _0x2ecc28=this['config']['address'][_0x104c48['id']];return null==_0x2ecc28?_0x104c48['default']:(JL(this,_0x2ecc28),t$(this,_0x2ecc28));}toJSON(_0x5e4c30){let _0x505142={'doc':this['sliceDoc'](),'selection':this['selection']['toJSON']()};if(_0x5e4c30)for(let _0x56f6b2 in _0x5e4c30){let _0x53c906=_0x5e4c30[_0x56f6b2];_0x53c906 instanceof BL&&null!=this['config']['address'][_0x53c906['id']]&&(_0x505142[_0x56f6b2]=_0x53c906['spec']['toJSON'](this['field'](_0x5e4c30[_0x56f6b2]),this));}return _0x505142;}static['fromJSON'](_0xf0b47b,_0x34b82b={},_0x2881e6){if(!_0xf0b47b||'string'!=typeof _0xf0b47b['doc'])throw new RangeError('Invalid\x20JSON\x20representation\x20for\x20EditorState');let _0x3c6424=[];if(_0x2881e6){for(let _0x486535 in _0x2881e6)if(Object['prototype']['hasOwnProperty']['call'](_0xf0b47b,_0x486535)){let _0x442c01=_0x2881e6[_0x486535],_0x13b57d=_0xf0b47b[_0x486535];_0x3c6424['push'](_0x442c01['init'](_0x365747=>_0x442c01['spec']['fromJSON'](_0x13b57d,_0x365747)));}}return EditorState['create']({'doc':_0xf0b47b['doc'],'selection':PL['fromJSON'](_0xf0b47b['selection']),'extensions':_0x34b82b['extensions']?_0x3c6424['concat']([_0x34b82b['extensions']]):_0x3c6424});}static create(_0x4662c4={}){let _0xfb8e3e=KL['resolve'](_0x4662c4['extensions']||[],new Map()),_0x35888e=_0x4662c4['doc']instanceof aL?_0x4662c4['doc']:aL['of']((_0x4662c4['doc']||'')['split'](_0xfb8e3e['staticFacet'](EditorState['lineSeparator'])||vL)),_0x1b3d89=_0x4662c4['selection']?_0x4662c4['selection']instanceof PL?_0x4662c4['selection']:PL['single'](_0x4662c4['selection']['anchor'],_0x4662c4['selection']['head']):PL['single'](0x0);return NL(_0x1b3d89,_0x35888e['length']),_0xfb8e3e['staticFacet'](i$)||(_0x1b3d89=_0x1b3d89['asSingle']()),new EditorState(_0xfb8e3e,_0x35888e,_0x1b3d89,_0xfb8e3e['dynamicSlots']['map'](()=>null),(_0x19f030,_0x2fc4d1)=>_0x2fc4d1['create'](_0x19f030),null);}get tabSize(){return this['facet'](EditorState['tabSize']);}get['lineBreak'](){return this['facet'](EditorState['lineSeparator'])||'\x0a';}get['readOnly'](){return this['facet'](a$);}['phrase'](_0x3ecf52,..._0x25c025){for(let _0x279c83 of this['facet'](EditorState['phrases']))if(Object['prototype']['hasOwnProperty']['call'](_0x279c83,_0x3ecf52)){_0x3ecf52=_0x279c83[_0x3ecf52];break;}return _0x25c025['length']&&(_0x3ecf52=_0x3ecf52['replace'](/\$(\$|\d*)/g,(_0xda4c66,_0x4ea9d2)=>{if('$'==_0x4ea9d2)return'$';let _0x3d3577=+(_0x4ea9d2||0x1);return!_0x3d3577||_0x3d3577>_0x25c025['length']?_0xda4c66:_0x25c025[_0x3d3577-0x1];})),_0x3ecf52;}languageDataAt(_0x24073d,_0x51735f,_0x16ff81=-0x1){let _0x2b9046=[];for(let _0x3aeb04 of this['facet'](e$))for(let _0x24797a of _0x3aeb04(this,_0x51735f,_0x16ff81))Object['prototype']['hasOwnProperty']['call'](_0x24797a,_0x24073d)&&_0x2b9046['push'](_0x24797a[_0x24073d]);return _0x2b9046;}charCategorizer(_0x2ec472){let _0x552c14=this['languageDataAt']('wordChars',_0x2ec472);return _$(_0x552c14['length']?_0x552c14[0x0]:'');}wordAt(_0x274edf){let {text:_0x4c8384,from:_0x37eb08,length:_0x454f6e}=this['doc']['lineAt'](_0x274edf),_0x3df0ef=this['charCategorizer'](_0x274edf),_0x2e7ec0=_0x274edf-_0x37eb08,_0x489d87=_0x274edf-_0x37eb08;for(;_0x2e7ec0>0x0;){let _0x25cf28=OL(_0x4c8384,_0x2e7ec0,!0x1);if(_0x3df0ef(_0x4c8384['slice'](_0x25cf28,_0x2e7ec0))!=b$['Word'])break;_0x2e7ec0=_0x25cf28;}for(;_0x489d87<_0x454f6e;){let _0x6d2a1e=OL(_0x4c8384,_0x489d87);if(_0x3df0ef(_0x4c8384['slice'](_0x489d87,_0x6d2a1e))!=b$['Word'])break;_0x489d87=_0x6d2a1e;}return _0x2e7ec0==_0x489d87?null:PL['range'](_0x2e7ec0+_0x37eb08,_0x489d87+_0x37eb08);}};function T$(_0x3c30ab,_0x28cfe6,_0x53cb37={}){let _0x276ac3={};for(let _0x555021 of _0x3c30ab)for(let _0x450b53 of Object['keys'](_0x555021)){let _0x1e0194=_0x555021[_0x450b53],_0x5d4bdc=_0x276ac3[_0x450b53];if(void 0x0===_0x5d4bdc)_0x276ac3[_0x450b53]=_0x1e0194;else{if(_0x5d4bdc===_0x1e0194||void 0x0===_0x1e0194);else{if(!Object['hasOwnProperty']['call'](_0x53cb37,_0x450b53))throw new Error('Config\x20merge\x20conflict\x20for\x20field\x20'+_0x450b53);_0x276ac3[_0x450b53]=_0x53cb37[_0x450b53](_0x5d4bdc,_0x1e0194);}}}for(let _0x5ea505 in _0x28cfe6)void 0x0===_0x276ac3[_0x5ea505]&&(_0x276ac3[_0x5ea505]=_0x28cfe6[_0x5ea505]);return _0x276ac3;}E$['allowMultipleSelections']=i$,E$['tabSize']=LL['define']({'combine':_0x1704a3=>_0x1704a3['length']?_0x1704a3[0x0]:0x4}),E$['lineSeparator']=s$,E$['readOnly']=a$,E$['phrases']=LL['define']({'compare'(_0xc16180,_0x59bb02){let _0x192a3d=Object['keys'](_0xc16180),_0x3a7a16=Object['keys'](_0x59bb02);return _0x192a3d['length']==_0x3a7a16['length']&&_0x192a3d['every'](_0x426eee=>_0xc16180[_0x426eee]==_0x59bb02[_0x426eee]);}}),E$['languageData']=e$,E$['changeFilter']=n$,E$['transactionFilter']=r$,E$['transactionExtender']=o$,zL['reconfigure']=u$['define']();var A$=class{['eq'](_0x3fb199){return this==_0x3fb199;}['range'](_0x118322,_0x37eb8c=_0x118322){return I$['create'](_0x118322,_0x37eb8c,this);}};function S$(_0x89c554,_0x147e98){return _0x89c554==_0x147e98||_0x89c554['constructor']==_0x147e98['constructor']&&_0x89c554['eq'](_0x147e98);}A$['prototype']['startSide']=A$['prototype']['endSide']=0x0,A$['prototype']['point']=!0x1,A$['prototype']['mapMode']=_L['TrackDel'];var I$=class Range$1{constructor(_0x5c7619,_0x3035a0,_0x536921){this['from']=_0x5c7619,this['to']=_0x3035a0,this['value']=_0x536921;}static create(_0x4a4e2a,_0x3fc4d9,_0x5656de){return new Range$1(_0x4a4e2a,_0x3fc4d9,_0x5656de);}};function k$(_0x5eb8ac,_0x4a439e){return _0x5eb8ac['from']-_0x4a439e['from']||_0x5eb8ac['value']['startSide']-_0x4a439e['value']['startSide'];}var x$=class Chunk{constructor(_0x44a330,_0x65d9a6,_0x3ad35f,_0x25d925){this['from']=_0x44a330,this['to']=_0x65d9a6,this['value']=_0x3ad35f,this['maxPoint']=_0x25d925;}get length(){return this['to'][this['to']['length']-0x1];}['findIndex'](_0x2a0856,_0x45b0c5,_0x52a582,_0x19d8c2=0x0){let _0x21f21b=_0x52a582?this['to']:this['from'];for(let _0x1e7c54=_0x19d8c2,_0x96b239=_0x21f21b['length'];;){if(_0x1e7c54==_0x96b239)return _0x1e7c54;let _0x117d1a=_0x1e7c54+_0x96b239>>0x1,_0x387551=_0x21f21b[_0x117d1a]-_0x2a0856||(_0x52a582?this['value'][_0x117d1a]['endSide']:this['value'][_0x117d1a]['startSide'])-_0x45b0c5;if(_0x117d1a==_0x1e7c54)return _0x387551>=0x0?_0x1e7c54:_0x96b239;_0x387551>=0x0?_0x96b239=_0x117d1a:_0x1e7c54=_0x117d1a+0x1;}}between(_0x3d4465,_0x4dcd2f,_0xe1cf1c,_0x33db8a){for(let _0x60c7e=this['findIndex'](_0x4dcd2f,-0x3b9aca00,!0x0),_0x76db6=this['findIndex'](_0xe1cf1c,0x3b9aca00,!0x1,_0x60c7e);_0x60c7e<_0x76db6;_0x60c7e++)if(!0x1===_0x33db8a(this['from'][_0x60c7e]+_0x3d4465,this['to'][_0x60c7e]+_0x3d4465,this['value'][_0x60c7e]))return!0x1;}['map'](_0x363e05,_0x3c3e3f){let _0x20c675=[],_0x48a70d=[],_0x3b4d23=[],_0x49f90b=-0x1,_0x3587dc=-0x1;for(let _0x18507a=0x0;_0x18507a<this['value']['length'];_0x18507a++){let _0x55b173,_0x2160b5,_0x3655bb=this['value'][_0x18507a],_0x5e5c19=this['from'][_0x18507a]+_0x363e05,_0x3120c5=this['to'][_0x18507a]+_0x363e05;if(_0x5e5c19==_0x3120c5){let _0x399c6a=_0x3c3e3f['mapPos'](_0x5e5c19,_0x3655bb['startSide'],_0x3655bb['mapMode']);if(null==_0x399c6a)continue;if(_0x55b173=_0x2160b5=_0x399c6a,_0x3655bb['startSide']!=_0x3655bb['endSide']&&(_0x2160b5=_0x3c3e3f['mapPos'](_0x5e5c19,_0x3655bb['endSide']),_0x2160b5<_0x55b173))continue;}else{if(_0x55b173=_0x3c3e3f['mapPos'](_0x5e5c19,_0x3655bb['startSide']),_0x2160b5=_0x3c3e3f['mapPos'](_0x3120c5,_0x3655bb['endSide']),_0x55b173>_0x2160b5||_0x55b173==_0x2160b5&&_0x3655bb['startSide']>0x0&&_0x3655bb['endSide']<=0x0)continue;}(_0x2160b5-_0x55b173||_0x3655bb['endSide']-_0x3655bb['startSide'])<0x0||(_0x49f90b<0x0&&(_0x49f90b=_0x55b173),_0x3655bb['point']&&(_0x3587dc=Math['max'](_0x3587dc,_0x2160b5-_0x55b173)),_0x20c675['push'](_0x3655bb),_0x48a70d['push'](_0x55b173-_0x49f90b),_0x3b4d23['push'](_0x2160b5-_0x49f90b));}return{'mapped':_0x20c675['length']?new Chunk(_0x48a70d,_0x3b4d23,_0x20c675,_0x3587dc):null,'pos':_0x49f90b};}},C$=class RangeSet{constructor(_0x44bc99,_0x4de7a1,_0x44388e,_0x559ffa){this['chunkPos']=_0x44bc99,this['chunk']=_0x4de7a1,this['nextLayer']=_0x44388e,this['maxPoint']=_0x559ffa;}static create(_0x1fc020,_0x2c9f33,_0x74d234,_0x3c5974){return new RangeSet(_0x1fc020,_0x2c9f33,_0x74d234,_0x3c5974);}get length(){let _0x2449ed=this['chunk']['length']-0x1;return _0x2449ed<0x0?0x0:Math['max'](this['chunkEnd'](_0x2449ed),this['nextLayer']['length']);}get['size'](){if(this['isEmpty'])return 0x0;let _0x35b976=this['nextLayer']['size'];for(let _0x2bb1cf of this['chunk'])_0x35b976+=_0x2bb1cf['value']['length'];return _0x35b976;}['chunkEnd'](_0x48e25f){return this['chunkPos'][_0x48e25f]+this['chunk'][_0x48e25f]['length'];}update(_0x22bb8f){let {add:_0x10848e=[],sort:_0xda0339=!0x1,filterFrom:_0x5da4e5=0x0,filterTo:_0x5cfe78=this['length']}=_0x22bb8f,_0x472e84=_0x22bb8f['filter'];if(0x0==_0x10848e['length']&&!_0x472e84)return this;if(_0xda0339&&(_0x10848e=_0x10848e['slice']()['sort'](k$)),this['isEmpty'])return _0x10848e['length']?RangeSet['of'](_0x10848e):this;let _0x24b1fc=new N$(this,null,-0x1)['goto'](0x0),_0x353cfd=0x0,_0x16cfb7=[],_0x2ed699=new R$();for(;_0x24b1fc['value']||_0x353cfd<_0x10848e['length'];)if(_0x353cfd<_0x10848e['length']&&(_0x24b1fc['from']-_0x10848e[_0x353cfd]['from']||_0x24b1fc['startSide']-_0x10848e[_0x353cfd]['value']['startSide'])>=0x0){let _0x5907df=_0x10848e[_0x353cfd++];_0x2ed699['addInner'](_0x5907df['from'],_0x5907df['to'],_0x5907df['value'])||_0x16cfb7['push'](_0x5907df);}else 0x1==_0x24b1fc['rangeIndex']&&_0x24b1fc['chunkIndex']<this['chunk']['length']&&(_0x353cfd==_0x10848e['length']||this['chunkEnd'](_0x24b1fc['chunkIndex'])<_0x10848e[_0x353cfd]['from'])&&(!_0x472e84||_0x5da4e5>this['chunkEnd'](_0x24b1fc['chunkIndex'])||_0x5cfe78<this['chunkPos'][_0x24b1fc['chunkIndex']])&&_0x2ed699['addChunk'](this['chunkPos'][_0x24b1fc['chunkIndex']],this['chunk'][_0x24b1fc['chunkIndex']])?_0x24b1fc['nextChunk']():((!_0x472e84||_0x5da4e5>_0x24b1fc['to']||_0x5cfe78<_0x24b1fc['from']||_0x472e84(_0x24b1fc['from'],_0x24b1fc['to'],_0x24b1fc['value']))&&(_0x2ed699['addInner'](_0x24b1fc['from'],_0x24b1fc['to'],_0x24b1fc['value'])||_0x16cfb7['push'](I$['create'](_0x24b1fc['from'],_0x24b1fc['to'],_0x24b1fc['value']))),_0x24b1fc['next']());return _0x2ed699['finishInner'](this['nextLayer']['isEmpty']&&!_0x16cfb7['length']?RangeSet['empty']:this['nextLayer']['update']({'add':_0x16cfb7,'filter':_0x472e84,'filterFrom':_0x5da4e5,'filterTo':_0x5cfe78}));}['map'](_0x40ff86){if(_0x40ff86['empty']||this['isEmpty'])return this;let _0x11a15f=[],_0x2e4327=[],_0x2f33d7=-0x1;for(let _0x459e09=0x0;_0x459e09<this['chunk']['length'];_0x459e09++){let _0xda8c9e=this['chunkPos'][_0x459e09],_0x51de20=this['chunk'][_0x459e09],_0x4c3a4b=_0x40ff86['touchesRange'](_0xda8c9e,_0xda8c9e+_0x51de20['length']);if(!0x1===_0x4c3a4b)_0x2f33d7=Math['max'](_0x2f33d7,_0x51de20['maxPoint']),_0x11a15f['push'](_0x51de20),_0x2e4327['push'](_0x40ff86['mapPos'](_0xda8c9e));else{if(!0x0===_0x4c3a4b){let {mapped:_0x368f6a,pos:_0x27b7ab}=_0x51de20['map'](_0xda8c9e,_0x40ff86);_0x368f6a&&(_0x2f33d7=Math['max'](_0x2f33d7,_0x368f6a['maxPoint']),_0x11a15f['push'](_0x368f6a),_0x2e4327['push'](_0x27b7ab));}}}let _0x4f781c=this['nextLayer']['map'](_0x40ff86);return 0x0==_0x11a15f['length']?_0x4f781c:new RangeSet(_0x2e4327,_0x11a15f,_0x4f781c||RangeSet['empty'],_0x2f33d7);}between(_0x1c0bc6,_0x1c738f,_0x28b145){if(!this['isEmpty']){for(let _0x42e42a=0x0;_0x42e42a<this['chunk']['length'];_0x42e42a++){let _0x27c6a4=this['chunkPos'][_0x42e42a],_0x1bf36a=this['chunk'][_0x42e42a];if(_0x1c738f>=_0x27c6a4&&_0x1c0bc6<=_0x27c6a4+_0x1bf36a['length']&&!0x1===_0x1bf36a['between'](_0x27c6a4,_0x1c0bc6-_0x27c6a4,_0x1c738f-_0x27c6a4,_0x28b145))return;}this['nextLayer']['between'](_0x1c0bc6,_0x1c738f,_0x28b145);}}iter(_0x2494e1=0x0){return M$['from']([this])['goto'](_0x2494e1);}get isEmpty(){return this['nextLayer']==this;}static iter(_0x27b01f,_0x292b96=0x0){return M$['from'](_0x27b01f)['goto'](_0x292b96);}static['compare'](_0x17bf7a,_0x45b048,_0x59c1d8,_0x5d728e,_0xb62660=-0x1){let _0x228df2=_0x17bf7a['filter'](_0x4a66c5=>_0x4a66c5['maxPoint']>0x0||!_0x4a66c5['isEmpty']&&_0x4a66c5['maxPoint']>=_0xb62660),_0x21655c=_0x45b048['filter'](_0x2922d5=>_0x2922d5['maxPoint']>0x0||!_0x2922d5['isEmpty']&&_0x2922d5['maxPoint']>=_0xb62660),_0x5073b3=P$(_0x228df2,_0x21655c,_0x59c1d8),_0x5b8f11=new $$(_0x228df2,_0x5073b3,_0xb62660),_0x24ae38=new $$(_0x21655c,_0x5073b3,_0xb62660);_0x59c1d8['iterGaps']((_0x4e3723,_0x5fc105,_0x193374)=>D$(_0x5b8f11,_0x4e3723,_0x24ae38,_0x5fc105,_0x193374,_0x5d728e)),_0x59c1d8['empty']&&0x0==_0x59c1d8['length']&&D$(_0x5b8f11,0x0,_0x24ae38,0x0,0x0,_0x5d728e);}static['eq'](_0x243dde,_0x2a2351,_0xa1eb07=0x0,_0x3d37d9){null==_0x3d37d9&&(_0x3d37d9=0x3b9ac9ff);let _0x399d8b=_0x243dde['filter'](_0x4f0a56=>!_0x4f0a56['isEmpty']&&_0x2a2351['indexOf'](_0x4f0a56)<0x0),_0x2ccfc6=_0x2a2351['filter'](_0xc9427c=>!_0xc9427c['isEmpty']&&_0x243dde['indexOf'](_0xc9427c)<0x0);if(_0x399d8b['length']!=_0x2ccfc6['length'])return!0x1;if(!_0x399d8b['length'])return!0x0;let _0x267aeb=P$(_0x399d8b,_0x2ccfc6),_0x5e0e1b=new $$(_0x399d8b,_0x267aeb,0x0)['goto'](_0xa1eb07),_0x606aa7=new $$(_0x2ccfc6,_0x267aeb,0x0)['goto'](_0xa1eb07);for(;;){if(_0x5e0e1b['to']!=_0x606aa7['to']||!Q$(_0x5e0e1b['active'],_0x606aa7['active'])||_0x5e0e1b['point']&&(!_0x606aa7['point']||!S$(_0x5e0e1b['point'],_0x606aa7['point'])))return!0x1;if(_0x5e0e1b['to']>_0x3d37d9)return!0x0;_0x5e0e1b['next'](),_0x606aa7['next']();}}static['spans'](_0x3b35d5,_0x2ce1b6,_0x585f20,_0x4c3100,_0x514ed6=-0x1){let _0x25163c=new $$(_0x3b35d5,null,_0x514ed6)['goto'](_0x2ce1b6),_0x47dc4c=_0x2ce1b6,_0x482297=_0x25163c['openStart'];for(;;){let _0x225a6c=Math['min'](_0x25163c['to'],_0x585f20);if(_0x25163c['point']){let _0x5b0710=_0x25163c['activeForPoint'](_0x25163c['to']),_0x1ebbe9=_0x25163c['pointFrom']<_0x2ce1b6?_0x5b0710['length']+0x1:_0x25163c['point']['startSide']<0x0?_0x5b0710['length']:Math['min'](_0x5b0710['length'],_0x482297);_0x4c3100['point'](_0x47dc4c,_0x225a6c,_0x25163c['point'],_0x5b0710,_0x1ebbe9,_0x25163c['pointRank']),_0x482297=Math['min'](_0x25163c['openEnd'](_0x225a6c),_0x5b0710['length']);}else _0x225a6c>_0x47dc4c&&(_0x4c3100['span'](_0x47dc4c,_0x225a6c,_0x25163c['active'],_0x482297),_0x482297=_0x25163c['openEnd'](_0x225a6c));if(_0x25163c['to']>_0x585f20)return _0x482297+(_0x25163c['point']&&_0x25163c['to']>_0x585f20?0x1:0x0);_0x47dc4c=_0x25163c['to'],_0x25163c['next']();}}static['of'](_0x49e707,_0x511d39=!0x1){let _0x5364ce=new R$();for(let _0x42e246 of _0x49e707 instanceof I$?[_0x49e707]:_0x511d39?function(_0x33c1e8){if(_0x33c1e8['length']>0x1)for(let _0x14f81d=_0x33c1e8[0x0],_0x56297c=0x1;_0x56297c<_0x33c1e8['length'];_0x56297c++){let _0x47fd9f=_0x33c1e8[_0x56297c];if(k$(_0x14f81d,_0x47fd9f)>0x0)return _0x33c1e8['slice']()['sort'](k$);_0x14f81d=_0x47fd9f;}return _0x33c1e8;}(_0x49e707):_0x49e707)_0x5364ce['add'](_0x42e246['from'],_0x42e246['to'],_0x42e246['value']);return _0x5364ce['finish']();}static['join'](_0x36c091){if(!_0x36c091['length'])return RangeSet['empty'];let _0x1429eb=_0x36c091[_0x36c091['length']-0x1];for(let _0x170369=_0x36c091['length']-0x2;_0x170369>=0x0;_0x170369--)for(let _0x327ef4=_0x36c091[_0x170369];_0x327ef4!=RangeSet['empty'];_0x327ef4=_0x327ef4['nextLayer'])_0x1429eb=new RangeSet(_0x327ef4['chunkPos'],_0x327ef4['chunk'],_0x1429eb,Math['max'](_0x327ef4['maxPoint'],_0x1429eb['maxPoint']));return _0x1429eb;}};C$['empty']=new C$([],[],null,-0x1),C$['empty']['nextLayer']=C$['empty'];var R$=class RangeSetBuilder{['finishChunk'](_0x13f1e6){this['chunks']['push'](new x$(this['from'],this['to'],this['value'],this['maxPoint'])),this['chunkPos']['push'](this['chunkStart']),this['chunkStart']=-0x1,this['setMaxPoint']=Math['max'](this['setMaxPoint'],this['maxPoint']),this['maxPoint']=-0x1,_0x13f1e6&&(this['from']=[],this['to']=[],this['value']=[]);}constructor(){this['chunks']=[],this['chunkPos']=[],this['chunkStart']=-0x1,this['last']=null,this['lastFrom']=-0x3b9aca00,this['lastTo']=-0x3b9aca00,this['from']=[],this['to']=[],this['value']=[],this['maxPoint']=-0x1,this['setMaxPoint']=-0x1,this['nextLayer']=null;}['add'](_0x43f859,_0x3ee3d4,_0x1cc389){this['addInner'](_0x43f859,_0x3ee3d4,_0x1cc389)||(this['nextLayer']||(this['nextLayer']=new RangeSetBuilder()))['add'](_0x43f859,_0x3ee3d4,_0x1cc389);}['addInner'](_0x5c72c5,_0x237600,_0x228fd7){let _0x29dfba=_0x5c72c5-this['lastTo']||_0x228fd7['startSide']-this['last']['endSide'];if(_0x29dfba<=0x0&&(_0x5c72c5-this['lastFrom']||_0x228fd7['startSide']-this['last']['startSide'])<0x0)throw new Error('Ranges\x20must\x20be\x20added\x20sorted\x20by\x20`from`\x20position\x20and\x20`startSide`');return!(_0x29dfba<0x0)&&(0xfa==this['from']['length']&&this['finishChunk'](!0x0),this['chunkStart']<0x0&&(this['chunkStart']=_0x5c72c5),this['from']['push'](_0x5c72c5-this['chunkStart']),this['to']['push'](_0x237600-this['chunkStart']),this['last']=_0x228fd7,this['lastFrom']=_0x5c72c5,this['lastTo']=_0x237600,this['value']['push'](_0x228fd7),_0x228fd7['point']&&(this['maxPoint']=Math['max'](this['maxPoint'],_0x237600-_0x5c72c5)),!0x0);}['addChunk'](_0x353498,_0x373c77){if((_0x353498-this['lastTo']||_0x373c77['value'][0x0]['startSide']-this['last']['endSide'])<0x0)return!0x1;this['from']['length']&&this['finishChunk'](!0x0),this['setMaxPoint']=Math['max'](this['setMaxPoint'],_0x373c77['maxPoint']),this['chunks']['push'](_0x373c77),this['chunkPos']['push'](_0x353498);let _0x38037f=_0x373c77['value']['length']-0x1;return this['last']=_0x373c77['value'][_0x38037f],this['lastFrom']=_0x373c77['from'][_0x38037f]+_0x353498,this['lastTo']=_0x373c77['to'][_0x38037f]+_0x353498,!0x0;}['finish'](){return this['finishInner'](C$['empty']);}['finishInner'](_0x5029a2){if(this['from']['length']&&this['finishChunk'](!0x1),0x0==this['chunks']['length'])return _0x5029a2;let _0x4b3453=C$['create'](this['chunkPos'],this['chunks'],this['nextLayer']?this['nextLayer']['finishInner'](_0x5029a2):_0x5029a2,this['setMaxPoint']);return this['from']=null,_0x4b3453;}};function P$(_0x195ee8,_0x3196a8,_0x1ec6fc){let _0xdb71dc=new Map();for(let _0x4bedaa of _0x195ee8)for(let _0xfb4023=0x0;_0xfb4023<_0x4bedaa['chunk']['length'];_0xfb4023++)_0x4bedaa['chunk'][_0xfb4023]['maxPoint']<=0x0&&_0xdb71dc['set'](_0x4bedaa['chunk'][_0xfb4023],_0x4bedaa['chunkPos'][_0xfb4023]);let _0xfca2ca=new Set();for(let _0x1bc896 of _0x3196a8)for(let _0x377279=0x0;_0x377279<_0x1bc896['chunk']['length'];_0x377279++){let _0x23c7a8=_0xdb71dc['get'](_0x1bc896['chunk'][_0x377279]);null==_0x23c7a8||(_0x1ec6fc?_0x1ec6fc['mapPos'](_0x23c7a8):_0x23c7a8)!=_0x1bc896['chunkPos'][_0x377279]||(null==_0x1ec6fc?void 0x0:_0x1ec6fc['touchesRange'](_0x23c7a8,_0x23c7a8+_0x1bc896['chunk'][_0x377279]['length']))||_0xfca2ca['add'](_0x1bc896['chunk'][_0x377279]);}return _0xfca2ca;}var N$=class{constructor(_0x48bf47,_0x342cb3,_0x30fd8a,_0x53f6c1=0x0){this['layer']=_0x48bf47,this['skip']=_0x342cb3,this['minPoint']=_0x30fd8a,this['rank']=_0x53f6c1;}get startSide(){return this['value']?this['value']['startSide']:0x0;}get['endSide'](){return this['value']?this['value']['endSide']:0x0;}goto(_0x117734,_0x4008b5=-0x3b9aca00){return this['chunkIndex']=this['rangeIndex']=0x0,this['gotoInner'](_0x117734,_0x4008b5,!0x1),this;}gotoInner(_0x20ea63,_0x56302f,_0x449caf){for(;this['chunkIndex']<this['layer']['chunk']['length'];){let _0x4cd636=this['layer']['chunk'][this['chunkIndex']];if(!(this['skip']&&this['skip']['has'](_0x4cd636)||this['layer']['chunkEnd'](this['chunkIndex'])<_0x20ea63||_0x4cd636['maxPoint']<this['minPoint']))break;this['chunkIndex']++,_0x449caf=!0x1;}if(this['chunkIndex']<this['layer']['chunk']['length']){let _0x3f4661=this['layer']['chunk'][this['chunkIndex']]['findIndex'](_0x20ea63-this['layer']['chunkPos'][this['chunkIndex']],_0x56302f,!0x0);(!_0x449caf||this['rangeIndex']<_0x3f4661)&&this['setRangeIndex'](_0x3f4661);}this['next']();}['forward'](_0x22bae1,_0x12a4a4){(this['to']-_0x22bae1||this['endSide']-_0x12a4a4)<0x0&&this['gotoInner'](_0x22bae1,_0x12a4a4,!0x0);}next(){for(;;){if(this['chunkIndex']==this['layer']['chunk']['length']){this['from']=this['to']=0x3b9aca00,this['value']=null;break;}{let _0x491f80=this['layer']['chunkPos'][this['chunkIndex']],_0xa06841=this['layer']['chunk'][this['chunkIndex']],_0x13e519=_0x491f80+_0xa06841['from'][this['rangeIndex']];if(this['from']=_0x13e519,this['to']=_0x491f80+_0xa06841['to'][this['rangeIndex']],this['value']=_0xa06841['value'][this['rangeIndex']],this['setRangeIndex'](this['rangeIndex']+0x1),this['minPoint']<0x0||this['value']['point']&&this['to']-this['from']>=this['minPoint'])break;}}}setRangeIndex(_0x1b5d6a){if(_0x1b5d6a==this['layer']['chunk'][this['chunkIndex']]['value']['length']){if(this['chunkIndex']++,this['skip']){for(;this['chunkIndex']<this['layer']['chunk']['length']&&this['skip']['has'](this['layer']['chunk'][this['chunkIndex']]);)this['chunkIndex']++;}this['rangeIndex']=0x0;}else this['rangeIndex']=_0x1b5d6a;}nextChunk(){this['chunkIndex']++,this['rangeIndex']=0x0,this['next']();}['compare'](_0x4aef19){return this['from']-_0x4aef19['from']||this['startSide']-_0x4aef19['startSide']||this['rank']-_0x4aef19['rank']||this['to']-_0x4aef19['to']||this['endSide']-_0x4aef19['endSide'];}},M$=class HeapCursor{constructor(_0x39c594){this['heap']=_0x39c594;}static['from'](_0x785dbc,_0x4c9455=null,_0x1862e0=-0x1){let _0x207c79=[];for(let _0x6fe424=0x0;_0x6fe424<_0x785dbc['length'];_0x6fe424++)for(let _0x170591=_0x785dbc[_0x6fe424];!_0x170591['isEmpty'];_0x170591=_0x170591['nextLayer'])_0x170591['maxPoint']>=_0x1862e0&&_0x207c79['push'](new N$(_0x170591,_0x4c9455,_0x1862e0,_0x6fe424));return 0x1==_0x207c79['length']?_0x207c79[0x0]:new HeapCursor(_0x207c79);}get startSide(){return this['value']?this['value']['startSide']:0x0;}goto(_0x3642c2,_0x3dc686=-0x3b9aca00){for(let _0x46244c of this['heap'])_0x46244c['goto'](_0x3642c2,_0x3dc686);for(let _0x350203=this['heap']['length']>>0x1;_0x350203>=0x0;_0x350203--)L$(this['heap'],_0x350203);return this['next'](),this;}['forward'](_0x5eabd2,_0x9404af){for(let _0x4beb04 of this['heap'])_0x4beb04['forward'](_0x5eabd2,_0x9404af);for(let _0x503ee3=this['heap']['length']>>0x1;_0x503ee3>=0x0;_0x503ee3--)L$(this['heap'],_0x503ee3);(this['to']-_0x5eabd2||this['value']['endSide']-_0x9404af)<0x0&&this['next']();}next(){if(0x0==this['heap']['length'])this['from']=this['to']=0x3b9aca00,this['value']=null,this['rank']=-0x1;else{let _0x4e1d42=this['heap'][0x0];this['from']=_0x4e1d42['from'],this['to']=_0x4e1d42['to'],this['value']=_0x4e1d42['value'],this['rank']=_0x4e1d42['rank'],_0x4e1d42['value']&&_0x4e1d42['next'](),L$(this['heap'],0x0);}}};function L$(_0x406fd0,_0x2ebe81){for(let _0x6e3bb7=_0x406fd0[_0x2ebe81];;){let _0x35d1d4=0x1+(_0x2ebe81<<0x1);if(_0x35d1d4>=_0x406fd0['length'])break;let _0x1145e2=_0x406fd0[_0x35d1d4];if(_0x35d1d4+0x1<_0x406fd0['length']&&_0x1145e2['compare'](_0x406fd0[_0x35d1d4+0x1])>=0x0&&(_0x1145e2=_0x406fd0[_0x35d1d4+0x1],_0x35d1d4++),_0x6e3bb7['compare'](_0x1145e2)<0x0)break;_0x406fd0[_0x35d1d4]=_0x6e3bb7,_0x406fd0[_0x2ebe81]=_0x1145e2,_0x2ebe81=_0x35d1d4;}}var $$=class{constructor(_0xf2493f,_0x92b5cf,_0x42f7ac){this['minPoint']=_0x42f7ac,this['active']=[],this['activeTo']=[],this['activeRank']=[],this['minActive']=-0x1,this['point']=null,this['pointFrom']=0x0,this['pointRank']=0x0,this['to']=-0x3b9aca00,this['endSide']=0x0,this['openStart']=-0x1,this['cursor']=M$['from'](_0xf2493f,_0x92b5cf,_0x42f7ac);}goto(_0x1ccd39,_0x14855f=-0x3b9aca00){return this['cursor']['goto'](_0x1ccd39,_0x14855f),this['active']['length']=this['activeTo']['length']=this['activeRank']['length']=0x0,this['minActive']=-0x1,this['to']=_0x1ccd39,this['endSide']=_0x14855f,this['openStart']=-0x1,this['next'](),this;}['forward'](_0x3abc25,_0x3f1463){for(;this['minActive']>-0x1&&(this['activeTo'][this['minActive']]-_0x3abc25||this['active'][this['minActive']]['endSide']-_0x3f1463)<0x0;)this['removeActive'](this['minActive']);this['cursor']['forward'](_0x3abc25,_0x3f1463);}removeActive(_0x161503){j$(this['active'],_0x161503),j$(this['activeTo'],_0x161503),j$(this['activeRank'],_0x161503),this['minActive']=V$(this['active'],this['activeTo']);}addActive(_0x2a71ee){let _0x34e2f6=0x0,{value:_0x3d56b4,to:_0x2bbb5e,rank:_0x7580aa}=this['cursor'];for(;_0x34e2f6<this['activeRank']['length']&&(_0x7580aa-this['activeRank'][_0x34e2f6]||_0x2bbb5e-this['activeTo'][_0x34e2f6])>0x0;)_0x34e2f6++;U$(this['active'],_0x34e2f6,_0x3d56b4),U$(this['activeTo'],_0x34e2f6,_0x2bbb5e),U$(this['activeRank'],_0x34e2f6,_0x7580aa),_0x2a71ee&&U$(_0x2a71ee,_0x34e2f6,this['cursor']['from']),this['minActive']=V$(this['active'],this['activeTo']);}next(){let _0x51a4f9=this['to'],_0xb63395=this['point'];this['point']=null;let _0x259e95=this['openStart']<0x0?[]:null;for(;;){let _0x5c70d0=this['minActive'];if(_0x5c70d0>-0x1&&(this['activeTo'][_0x5c70d0]-this['cursor']['from']||this['active'][_0x5c70d0]['endSide']-this['cursor']['startSide'])<0x0){if(this['activeTo'][_0x5c70d0]>_0x51a4f9){this['to']=this['activeTo'][_0x5c70d0],this['endSide']=this['active'][_0x5c70d0]['endSide'];break;}this['removeActive'](_0x5c70d0),_0x259e95&&j$(_0x259e95,_0x5c70d0);}else{if(!this['cursor']['value']){this['to']=this['endSide']=0x3b9aca00;break;}if(this['cursor']['from']>_0x51a4f9){this['to']=this['cursor']['from'],this['endSide']=this['cursor']['startSide'];break;}{let _0x5034ec=this['cursor']['value'];if(_0x5034ec['point']){if(!(_0xb63395&&this['cursor']['to']==this['to']&&this['cursor']['from']<this['cursor']['to'])){this['point']=_0x5034ec,this['pointFrom']=this['cursor']['from'],this['pointRank']=this['cursor']['rank'],this['to']=this['cursor']['to'],this['endSide']=_0x5034ec['endSide'],this['cursor']['next'](),this['forward'](this['to'],this['endSide']);break;}this['cursor']['next']();}else this['addActive'](_0x259e95),this['cursor']['next']();}}}if(_0x259e95){this['openStart']=0x0;for(let _0x207d05=_0x259e95['length']-0x1;_0x207d05>=0x0&&_0x259e95[_0x207d05]<_0x51a4f9;_0x207d05--)this['openStart']++;}}activeForPoint(_0x121f1f){if(!this['active']['length'])return this['active'];let _0xe35d71=[];for(let _0x31855c=this['active']['length']-0x1;_0x31855c>=0x0&&!(this['activeRank'][_0x31855c]<this['pointRank']);_0x31855c--)(this['activeTo'][_0x31855c]>_0x121f1f||this['activeTo'][_0x31855c]==_0x121f1f&&this['active'][_0x31855c]['endSide']>=this['point']['endSide'])&&_0xe35d71['push'](this['active'][_0x31855c]);return _0xe35d71['reverse']();}['openEnd'](_0x212642){let _0xd5fe4b=0x0;for(let _0x3b97b9=this['activeTo']['length']-0x1;_0x3b97b9>=0x0&&this['activeTo'][_0x3b97b9]>_0x212642;_0x3b97b9--)_0xd5fe4b++;return _0xd5fe4b;}};function D$(_0x43428d,_0x3f942c,_0x38f29f,_0x4b248a,_0x255f5c,_0x5d2d12){_0x43428d['goto'](_0x3f942c),_0x38f29f['goto'](_0x4b248a);let _0x194e11=_0x4b248a+_0x255f5c,_0x1b615e=_0x4b248a,_0x22bb08=_0x4b248a-_0x3f942c,_0x47c87b=!!_0x5d2d12['boundChange'];for(let _0x199b22=!0x1;;){let _0x12f040=_0x43428d['to']+_0x22bb08-_0x38f29f['to'],_0x2eb5b0=_0x12f040||_0x43428d['endSide']-_0x38f29f['endSide'],_0x30a05f=_0x2eb5b0<0x0?_0x43428d['to']+_0x22bb08:_0x38f29f['to'],_0x2ed2d4=Math['min'](_0x30a05f,_0x194e11);if(_0x43428d['point']||_0x38f29f['point']?(_0x43428d['point']&&_0x38f29f['point']&&S$(_0x43428d['point'],_0x38f29f['point'])&&Q$(_0x43428d['activeForPoint'](_0x43428d['to']),_0x38f29f['activeForPoint'](_0x38f29f['to']))||_0x5d2d12['comparePoint'](_0x1b615e,_0x2ed2d4,_0x43428d['point'],_0x38f29f['point']),_0x199b22=!0x1):(_0x199b22&&_0x5d2d12['boundChange'](_0x1b615e),_0x2ed2d4>_0x1b615e&&!Q$(_0x43428d['active'],_0x38f29f['active'])&&_0x5d2d12['compareRange'](_0x1b615e,_0x2ed2d4,_0x43428d['active'],_0x38f29f['active']),_0x47c87b&&_0x2ed2d4<_0x194e11&&(_0x12f040||_0x43428d['openEnd'](_0x30a05f)!=_0x38f29f['openEnd'](_0x30a05f))&&(_0x199b22=!0x0)),_0x30a05f>_0x194e11)break;_0x1b615e=_0x30a05f,_0x2eb5b0<=0x0&&_0x43428d['next'](),_0x2eb5b0>=0x0&&_0x38f29f['next']();}}function Q$(_0x5ef191,_0x496b5d){if(_0x5ef191['length']!=_0x496b5d['length'])return!0x1;for(let _0x1362cd=0x0;_0x1362cd<_0x5ef191['length'];_0x1362cd++)if(_0x5ef191[_0x1362cd]!=_0x496b5d[_0x1362cd]&&!S$(_0x5ef191[_0x1362cd],_0x496b5d[_0x1362cd]))return!0x1;return!0x0;}function j$(_0x3638eb,_0x5e0075){for(let _0x4a6431=_0x5e0075,_0x5b77a6=_0x3638eb['length']-0x1;_0x4a6431<_0x5b77a6;_0x4a6431++)_0x3638eb[_0x4a6431]=_0x3638eb[_0x4a6431+0x1];_0x3638eb['pop']();}function U$(_0x267371,_0x4c2c08,_0x12d1eb){for(let _0x5d32b3=_0x267371['length']-0x1;_0x5d32b3>=_0x4c2c08;_0x5d32b3--)_0x267371[_0x5d32b3+0x1]=_0x267371[_0x5d32b3];_0x267371[_0x4c2c08]=_0x12d1eb;}function V$(_0x15d307,_0x2050a1){let _0x4c79dd=-0x1,_0x2cccca=0x3b9aca00;for(let _0x2c0532=0x0;_0x2c0532<_0x2050a1['length'];_0x2c0532++)(_0x2050a1[_0x2c0532]-_0x2cccca||_0x15d307[_0x2c0532]['endSide']-_0x15d307[_0x4c79dd]['endSide'])<0x0&&(_0x4c79dd=_0x2c0532,_0x2cccca=_0x2050a1[_0x2c0532]);return _0x4c79dd;}function B$(_0x20f9a4,_0x22cf5d,_0x58d852=_0x20f9a4['length']){let _0x560cd8=0x0;for(let _0x29953d=0x0;_0x29953d<_0x58d852&&_0x29953d<_0x20f9a4['length'];)0x9==_0x20f9a4['charCodeAt'](_0x29953d)?(_0x560cd8+=_0x22cf5d-_0x560cd8%_0x22cf5d,_0x29953d++):(_0x560cd8++,_0x29953d=OL(_0x20f9a4,_0x29953d));return _0x560cd8;}function H$(_0x13db33,_0x329fdf,_0x5803c8,_0x2ad251){for(let _0x5b579a=0x0,_0x53507a=0x0;;){if(_0x53507a>=_0x329fdf)return _0x5b579a;if(_0x5b579a==_0x13db33['length'])break;_0x53507a+=0x9==_0x13db33['charCodeAt'](_0x5b579a)?_0x5803c8-_0x53507a%_0x5803c8:0x1,_0x5b579a=OL(_0x13db33,_0x5b579a);}return!0x0===_0x2ad251?-0x1:_0x13db33['length'];}const F$='undefined'==typeof Symbol?'__ͼ':Symbol['for']('ͼ'),Z$='undefined'==typeof Symbol?'__styleSet'+Math['floor'](0x5f5e100*Math['random']()):Symbol('styleSet'),G$='undefined'!=typeof globalThis?globalThis:'undefined'!=typeof window?window:{};var X$=class{constructor(_0x27301b,_0x24390a){this['rules']=[];let {finish:_0x276ec8}=_0x24390a||{};function _0x3e2b1e(_0x4527ec){return/^@/['test'](_0x4527ec)?[_0x4527ec]:_0x4527ec['split'](/,\s*/);}function _0x446617(_0x4cc678,_0x4ab4d5,_0x29be1b,_0x3635d4){let _0x1f2084=[],_0xeb9983=/^@(\w+)\b/['exec'](_0x4cc678[0x0]),_0xcb04a3=_0xeb9983&&'keyframes'==_0xeb9983[0x1];if(_0xeb9983&&null==_0x4ab4d5)return _0x29be1b['push'](_0x4cc678[0x0]+';');for(let _0x29cc00 in _0x4ab4d5){let _0x1e3b26=_0x4ab4d5[_0x29cc00];if(/&/['test'](_0x29cc00))_0x446617(_0x29cc00['split'](/,\s*/)['map'](_0x181010=>_0x4cc678['map'](_0x1ca1ad=>_0x181010['replace'](/&/,_0x1ca1ad)))['reduce']((_0x1b39ae,_0x5eaf40)=>_0x1b39ae['concat'](_0x5eaf40)),_0x1e3b26,_0x29be1b);else{if(_0x1e3b26&&'object'==typeof _0x1e3b26){if(!_0xeb9983)throw new RangeError('The\x20value\x20of\x20a\x20property\x20('+_0x29cc00+')\x20should\x20be\x20a\x20primitive\x20value.');_0x446617(_0x3e2b1e(_0x29cc00),_0x1e3b26,_0x1f2084,_0xcb04a3);}else null!=_0x1e3b26&&_0x1f2084['push'](_0x29cc00['replace'](/_.*/,'')['replace'](/[A-Z]/g,_0x1905a7=>'-'+_0x1905a7['toLowerCase']())+':\x20'+_0x1e3b26+';');}}(_0x1f2084['length']||_0xcb04a3)&&_0x29be1b['push']((!_0x276ec8||_0xeb9983||_0x3635d4?_0x4cc678:_0x4cc678['map'](_0x276ec8))['join'](',\x20')+'\x20{'+_0x1f2084['join']('\x20')+'}');}for(let _0x1b6219 in _0x27301b)_0x446617(_0x3e2b1e(_0x1b6219),_0x27301b[_0x1b6219],this['rules']);}getRules(){return this['rules']['join']('\x0a');}static['newName'](){let _0x15a818=G$[F$]||0x1;return G$[F$]=_0x15a818+0x1,'ͼ'+_0x15a818['toString'](0x24);}static mount(_0x43d226,_0x15eff7,_0x1c8278){let _0x138df1=_0x43d226[Z$],_0x3b9527=_0x1c8278&&_0x1c8278['nonce'];_0x138df1?_0x3b9527&&_0x138df1['setNonce'](_0x3b9527):_0x138df1=new W$(_0x43d226,_0x3b9527),_0x138df1['mount'](Array['isArray'](_0x15eff7)?_0x15eff7:[_0x15eff7],_0x43d226);}};let q$=new Map();for(var W$=class{constructor(_0x4c2ee1,_0x43a014){let _0x3a9a28=_0x4c2ee1['ownerDocument']||_0x4c2ee1,_0x356666=_0x3a9a28['defaultView'];if(!_0x4c2ee1['head']&&_0x4c2ee1['adoptedStyleSheets']&&_0x356666['CSSStyleSheet']){let _0x1beac9=q$['get'](_0x3a9a28);if(_0x1beac9)return _0x4c2ee1[Z$]=_0x1beac9;this['sheet']=new _0x356666['CSSStyleSheet'](),q$['set'](_0x3a9a28,this);}else this['styleTag']=_0x3a9a28['createElement']('style'),_0x43a014&&this['styleTag']['setAttribute']('nonce',_0x43a014);this['modules']=[],_0x4c2ee1[Z$]=this;}mount(_0x35815b,_0x2d2ad4){let _0x1cebb4=this['sheet'],_0x34cdc6=0x0,_0x622078=0x0;for(let _0x307171=0x0;_0x307171<_0x35815b['length'];_0x307171++){let _0x46cd00=_0x35815b[_0x307171],_0x14bb7d=this['modules']['indexOf'](_0x46cd00);if(_0x14bb7d<_0x622078&&_0x14bb7d>-0x1&&(this['modules']['splice'](_0x14bb7d,0x1),_0x622078--,_0x14bb7d=-0x1),-0x1==_0x14bb7d){if(this['modules']['splice'](_0x622078++,0x0,_0x46cd00),_0x1cebb4){for(let _0x49ad1b=0x0;_0x49ad1b<_0x46cd00['rules']['length'];_0x49ad1b++)_0x1cebb4['insertRule'](_0x46cd00['rules'][_0x49ad1b],_0x34cdc6++);}}else{for(;_0x622078<_0x14bb7d;)_0x34cdc6+=this['modules'][_0x622078++]['rules']['length'];_0x34cdc6+=_0x46cd00['rules']['length'],_0x622078++;}}if(_0x1cebb4)_0x2d2ad4['adoptedStyleSheets']['indexOf'](this['sheet'])<0x0&&(_0x2d2ad4['adoptedStyleSheets']=[this['sheet'],..._0x2d2ad4['adoptedStyleSheets']]);else{let _0x415cb5='';for(let _0x50585d=0x0;_0x50585d<this['modules']['length'];_0x50585d++)_0x415cb5+=this['modules'][_0x50585d]['getRules']()+'\x0a';this['styleTag']['textContent']=_0x415cb5;let _0x2fac05=_0x2d2ad4['head']||_0x2d2ad4;this['styleTag']['parentNode']!=_0x2fac05&&_0x2fac05['insertBefore'](this['styleTag'],_0x2fac05['firstChild']);}}setNonce(_0x49f2c6){this['styleTag']&&this['styleTag']['getAttribute']('nonce')!=_0x49f2c6&&this['styleTag']['setAttribute']('nonce',_0x49f2c6);}},z$={0x8:'Backspace',0x9:'Tab',0xa:'Enter',0xc:'NumLock',0xd:'Enter',0x10:'Shift',0x11:'Control',0x12:'Alt',0x14:'CapsLock',0x1b:'Escape',0x20:'\x20',0x21:'PageUp',0x22:'PageDown',0x23:'End',0x24:'Home',0x25:'ArrowLeft',0x26:'ArrowUp',0x27:'ArrowRight',0x28:'ArrowDown',0x2c:'PrintScreen',0x2d:'Insert',0x2e:'Delete',0x3b:';',0x3d:'=',0x5b:'Meta',0x5c:'Meta',0x6a:'*',0x6b:'+',0x6c:',',0x6d:'-',0x6e:'.',0x6f:'/',0x90:'NumLock',0x91:'ScrollLock',0xa0:'Shift',0xa1:'Shift',0xa2:'Control',0xa3:'Control',0xa4:'Alt',0xa5:'Alt',0xad:'-',0xba:';',0xbb:'=',0xbc:',',0xbd:'-',0xbe:'.',0xbf:'/',0xc0:'`',0xdb:'[',0xdc:'\x5c',0xdd:']',0xde:'\x27'},Y$={0x30:')',0x31:'!',0x32:'@',0x33:'#',0x34:'$',0x35:'%',0x36:'^',0x37:'&',0x38:'*',0x39:'(',0x3b:':',0x3d:'+',0xad:'_',0xba:':',0xbb:'+',0xbc:'<',0xbd:'_',0xbe:'>',0xbf:'?',0xc0:'~',0xdb:'{',0xdc:'|',0xdd:'}',0xde:'\x22'},K$='undefined'!=typeof navigator&&/Mac/['test'](navigator['platform']),J$='undefined'!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/['exec'](navigator['userAgent']),tD=0x0;tD<0xa;tD++)z$[0x30+tD]=z$[0x60+tD]=String(tD);for(tD=0x1;tD<=0x18;tD++)z$[tD+0x6f]='F'+tD;for(tD=0x41;tD<=0x5a;tD++)z$[tD]=String['fromCharCode'](tD+0x20),Y$[tD]=String['fromCharCode'](tD);for(var eD in z$)Y$['hasOwnProperty'](eD)||(Y$[eD]=z$[eD]);let iD='undefined'!=typeof navigator?navigator:{'userAgent':'','vendor':'','platform':''},sD='undefined'!=typeof document?document:{'documentElement':{'style':{}}};const nD=/Edge\/(\d+)/['exec'](iD['userAgent']),rD=/MSIE \d/['test'](iD['userAgent']),oD=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/['exec'](iD['userAgent']),aD=!!(rD||oD||nD),cD=!aD&&/gecko\/(\d+)/i['test'](iD['userAgent']),lD=!aD&&/Chrome\/(\d+)/['exec'](iD['userAgent']),hD='webkitFontSmoothing'in sD['documentElement']['style'],uD=!aD&&/Apple Computer/['test'](iD['vendor']),dD=uD&&(/Mobile\/\w+/['test'](iD['userAgent'])||iD['maxTouchPoints']>0x2);var fD={'mac':dD||/Mac/['test'](iD['platform']),'windows':/Win/['test'](iD['platform']),'linux':/Linux|X11/['test'](iD['platform']),'ie':aD,'ie_version':rD?sD['documentMode']||0x6:oD?+oD[0x1]:nD?+nD[0x1]:0x0,'gecko':cD,'gecko_version':cD?+(/Firefox\/(\d+)/['exec'](iD['userAgent'])||[0x0,0x0])[0x1]:0x0,'chrome':!!lD,'chrome_version':lD?+lD[0x1]:0x0,'ios':dD,'android':/Android\b/['test'](iD['userAgent']),'webkit':hD,'webkit_version':hD?+(/\bAppleWebKit\/(\d+)/['exec'](iD['userAgent'])||[0x0,0x0])[0x1]:0x0,'safari':uD,'safari_version':uD?+(/\bVersion\/(\d+(\.\d+)?)/['exec'](iD['userAgent'])||[0x0,0x0])[0x1]:0x0,'tabSize':null!=sD['documentElement']['style']['tabSize']?'tab-size':'-moz-tab-size'};function mD(_0x16f1f0,_0x591bc4){for(let _0xe1481e in _0x16f1f0)'class'==_0xe1481e&&_0x591bc4['class']?_0x591bc4['class']+='\x20'+_0x16f1f0['class']:'style'==_0xe1481e&&_0x591bc4['style']?_0x591bc4['style']+=';'+_0x16f1f0['style']:_0x591bc4[_0xe1481e]=_0x16f1f0[_0xe1481e];return _0x591bc4;}const pD=Object['create'](null);function gD(_0x91f001,_0x416510,_0x488499){if(_0x91f001==_0x416510)return!0x0;_0x91f001||(_0x91f001=pD),_0x416510||(_0x416510=pD);let _0x3a7424=Object['keys'](_0x91f001),_0x2e3965=Object['keys'](_0x416510);if(_0x3a7424['length']-(_0x488499&&_0x3a7424['indexOf'](_0x488499)>-0x1?0x1:0x0)!=_0x2e3965['length']-(_0x488499&&_0x2e3965['indexOf'](_0x488499)>-0x1?0x1:0x0))return!0x1;for(let _0x2d40c4 of _0x3a7424)if(_0x2d40c4!=_0x488499&&(-0x1==_0x2e3965['indexOf'](_0x2d40c4)||_0x91f001[_0x2d40c4]!==_0x416510[_0x2d40c4]))return!0x1;return!0x0;}function OD(_0x3b3dcf,_0x354fde,_0x28d804){let _0x169ded=!0x1;if(_0x354fde){for(let _0x1cf6ca in _0x354fde)_0x28d804&&_0x1cf6ca in _0x28d804||(_0x169ded=!0x0,'style'==_0x1cf6ca?_0x3b3dcf['style']['cssText']='':_0x3b3dcf['removeAttribute'](_0x1cf6ca));}if(_0x28d804){for(let _0xbf9ecb in _0x28d804)_0x354fde&&_0x354fde[_0xbf9ecb]==_0x28d804[_0xbf9ecb]||(_0x169ded=!0x0,'style'==_0xbf9ecb?_0x3b3dcf['style']['cssText']=_0x28d804[_0xbf9ecb]:_0x3b3dcf['setAttribute'](_0xbf9ecb,_0x28d804[_0xbf9ecb]));}return _0x169ded;}function wD(_0x423c4b){let _0x4bae8e=Object['create'](null);for(let _0x138931=0x0;_0x138931<_0x423c4b['attributes']['length'];_0x138931++){let _0x17360e=_0x423c4b['attributes'][_0x138931];_0x4bae8e[_0x17360e['name']]=_0x17360e['value'];}return _0x4bae8e;}var bD=class{['eq'](_0x1c271f){return!0x1;}updateDOM(_0x253031,_0x251a25,_0x49dfdd){return!0x1;}['compare'](_0x367c5e){return this==_0x367c5e||this['constructor']==_0x367c5e['constructor']&&this['eq'](_0x367c5e);}get estimatedHeight(){return-0x1;}get['lineBreaks'](){return 0x0;}ignoreEvent(_0x59b806){return!0x0;}coordsAt(_0x133557,_0x3fe1a8,_0x3d6215){return null;}get['isHidden'](){return!0x1;}get editable(){return!0x1;}destroy(_0x2feeba){}},yD=function(_0x50821d){return _0x50821d[_0x50821d['Text']=0x0]='Text',_0x50821d[_0x50821d['WidgetBefore']=0x1]='WidgetBefore',_0x50821d[_0x50821d['WidgetAfter']=0x2]='WidgetAfter',_0x50821d[_0x50821d['WidgetRange']=0x3]='WidgetRange',_0x50821d;}(yD||(yD={})),vD=class extends A${constructor(_0x46594c,_0x105055,_0x3122e2,_0x1c03e5){super(),this['startSide']=_0x46594c,this['endSide']=_0x105055,this['widget']=_0x3122e2,this['spec']=_0x1c03e5;}get heightRelevant(){return!0x1;}static['mark'](_0x311d75){return new _D(_0x311d75);}static widget(_0x33c856){let _0x75f8e9=Math['max'](-0x2710,Math['min'](0x2710,_0x33c856['side']||0x0)),_0x9319bd=!!_0x33c856['block'];return _0x75f8e9+=_0x9319bd&&!_0x33c856['inlineOrder']?_0x75f8e9>0x0?0x11e1a300:-0x17d78400:_0x75f8e9>0x0?0x5f5e100:-0x5f5e100,new TD(_0x33c856,_0x75f8e9,_0x75f8e9,_0x9319bd,_0x33c856['widget']||null,!0x1);}static['replace'](_0x3ea95b){let _0x1cccc2,_0x2c6128,_0x5f2c8a=!!_0x3ea95b['block'];if(_0x3ea95b['isBlockGap'])_0x1cccc2=-0x1dcd6500,_0x2c6128=0x17d78400;else{let {start:_0x33b844,end:_0x1fa9b9}=AD(_0x3ea95b,_0x5f2c8a);_0x1cccc2=(_0x33b844?_0x5f2c8a?-0x11e1a300:-0x1:0x1dcd6500)-0x1,_0x2c6128=0x1+(_0x1fa9b9?_0x5f2c8a?0xbebc200:0x1:-0x23c34600);}return new TD(_0x3ea95b,_0x1cccc2,_0x2c6128,_0x5f2c8a,_0x3ea95b['widget']||null,!0x0);}static['line'](_0x2a9ea9){return new ED(_0x2a9ea9);}static set(_0x1b7f7b,_0x2add59=!0x1){return C$['of'](_0x1b7f7b,_0x2add59);}hasHeight(){return!!this['widget']&&this['widget']['estimatedHeight']>-0x1;}};vD['none']=C$['empty'];var _D=class MarkDecoration extends vD{constructor(_0x2008e4){let {start:_0x388138,end:_0x5a0711}=AD(_0x2008e4);super(_0x388138?-0x1:0x1dcd6500,_0x5a0711?0x1:-0x23c34600,null,_0x2008e4),this['tagName']=_0x2008e4['tagName']||'span',this['attrs']=_0x2008e4['class']&&_0x2008e4['attributes']?mD(_0x2008e4['attributes'],{'class':_0x2008e4['class']}):_0x2008e4['class']?{'class':_0x2008e4['class']}:_0x2008e4['attributes']||pD;}['eq'](_0x12e37b){return this==_0x12e37b||_0x12e37b instanceof MarkDecoration&&this['tagName']==_0x12e37b['tagName']&&gD(this['attrs'],_0x12e37b['attrs']);}['range'](_0x24cf7f,_0x5aaa77=_0x24cf7f){if(_0x24cf7f>=_0x5aaa77)throw new RangeError('Mark\x20decorations\x20may\x20not\x20be\x20empty');return super['range'](_0x24cf7f,_0x5aaa77);}};_D['prototype']['point']=!0x1;var ED=class LineDecoration extends vD{constructor(_0x302bf0){super(-0xbebc200,-0xbebc200,null,_0x302bf0);}['eq'](_0x422625){return _0x422625 instanceof LineDecoration&&this['spec']['class']==_0x422625['spec']['class']&&gD(this['spec']['attributes'],_0x422625['spec']['attributes']);}['range'](_0x1617aa,_0x2270ca=_0x1617aa){if(_0x2270ca!=_0x1617aa)throw new RangeError('Line\x20decoration\x20ranges\x20must\x20be\x20zero-length');return super['range'](_0x1617aa,_0x2270ca);}};ED['prototype']['mapMode']=_L['TrackBefore'],ED['prototype']['point']=!0x0;var TD=class PointDecoration extends vD{constructor(_0x739f05,_0x3d9123,_0x19bdd3,_0x5b3cb2,_0x3fb5c3,_0x853772){super(_0x3d9123,_0x19bdd3,_0x3fb5c3,_0x739f05),this['block']=_0x5b3cb2,this['isReplace']=_0x853772,this['mapMode']=_0x5b3cb2?_0x3d9123<=0x0?_L['TrackBefore']:_L['TrackAfter']:_L['TrackDel'];}get type(){return this['startSide']!=this['endSide']?yD['WidgetRange']:this['startSide']<=0x0?yD['WidgetBefore']:yD['WidgetAfter'];}get heightRelevant(){return this['block']||!!this['widget']&&(this['widget']['estimatedHeight']>=0x5||this['widget']['lineBreaks']>0x0);}['eq'](_0x1eac71){return _0x1eac71 instanceof PointDecoration&&(_0x378216=this['widget'],_0x2cce75=_0x1eac71['widget'],_0x378216==_0x2cce75||!!(_0x378216&&_0x2cce75&&_0x378216['compare'](_0x2cce75)))&&this['block']==_0x1eac71['block']&&this['startSide']==_0x1eac71['startSide']&&this['endSide']==_0x1eac71['endSide'];var _0x378216,_0x2cce75;}['range'](_0xf9a942,_0xc55ad4=_0xf9a942){if(this['isReplace']&&(_0xf9a942>_0xc55ad4||_0xf9a942==_0xc55ad4&&this['startSide']>0x0&&this['endSide']<=0x0))throw new RangeError('Invalid\x20range\x20for\x20replacement\x20decoration');if(!this['isReplace']&&_0xc55ad4!=_0xf9a942)throw new RangeError('Widget\x20decorations\x20can\x20only\x20have\x20zero-length\x20ranges');return super['range'](_0xf9a942,_0xc55ad4);}};function AD(_0x12fb3f,_0xb9e0e=!0x1){let {inclusiveStart:_0x45f540,inclusiveEnd:_0x1e0c18}=_0x12fb3f;return null==_0x45f540&&(_0x45f540=_0x12fb3f['inclusive']),null==_0x1e0c18&&(_0x1e0c18=_0x12fb3f['inclusive']),{'start':null!=_0x45f540?_0x45f540:_0xb9e0e,'end':null!=_0x1e0c18?_0x1e0c18:_0xb9e0e};}function SD(_0x30b08c,_0x4cf13b,_0x275a08,_0x408834=0x0){let _0x2d9a97=_0x275a08['length']-0x1;_0x2d9a97>=0x0&&_0x275a08[_0x2d9a97]+_0x408834>=_0x30b08c?_0x275a08[_0x2d9a97]=Math['max'](_0x275a08[_0x2d9a97],_0x4cf13b):_0x275a08['push'](_0x30b08c,_0x4cf13b);}TD['prototype']['point']=!0x0;var ID=class BlockWrapper extends A${constructor(_0x2739aa,_0x24bc4d,_0x34bd83){super(),this['tagName']=_0x2739aa,this['attributes']=_0x24bc4d,this['rank']=_0x34bd83;}['eq'](_0x3ecc83){return _0x3ecc83==this||_0x3ecc83 instanceof BlockWrapper&&this['tagName']==_0x3ecc83['tagName']&&gD(this['attributes'],_0x3ecc83['attributes']);}static create(_0x9228b3){return new BlockWrapper(_0x9228b3['tagName'],_0x9228b3['attributes']||pD,null==_0x9228b3['rank']?0x32:Math['max'](0x0,Math['min'](_0x9228b3['rank'],0x64)));}static set(_0x16c409,_0x39549a=!0x1){return C$['of'](_0x16c409,_0x39549a);}};function kD(_0x39d166){let _0x2f6afa;return _0x2f6afa=0xb==_0x39d166['nodeType']?_0x39d166['getSelection']?_0x39d166:_0x39d166['ownerDocument']:_0x39d166,_0x2f6afa['getSelection']();}function xD(_0x25763d,_0x30742e){return!!_0x30742e&&(_0x25763d==_0x30742e||_0x25763d['contains'](0x1!=_0x30742e['nodeType']?_0x30742e['parentNode']:_0x30742e));}function CD(_0x44d2f7,_0x522ad9){if(!_0x522ad9['anchorNode'])return!0x1;try{return xD(_0x44d2f7,_0x522ad9['anchorNode']);}catch(_0x56fe7a){return!0x1;}}function RD(_0x16c789){return 0x3==_0x16c789['nodeType']?ZD(_0x16c789,0x0,_0x16c789['nodeValue']['length'])['getClientRects']():0x1==_0x16c789['nodeType']?_0x16c789['getClientRects']():[];}function PD(_0x1a6e33,_0x9763cd,_0x1e9337,_0x3534f9){return!!_0x1e9337&&(LD(_0x1a6e33,_0x9763cd,_0x1e9337,_0x3534f9,-0x1)||LD(_0x1a6e33,_0x9763cd,_0x1e9337,_0x3534f9,0x1));}function ND(_0x426495){for(var _0x1a524b=0x0;;_0x1a524b++)if(!(_0x426495=_0x426495['previousSibling']))return _0x1a524b;}function MD(_0x44bd6b){return 0x1==_0x44bd6b['nodeType']&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/['test'](_0x44bd6b['nodeName']);}function LD(_0x55b7a5,_0x4053a7,_0x371b03,_0x27a710,_0x401674){for(;;){if(_0x55b7a5==_0x371b03&&_0x4053a7==_0x27a710)return!0x0;if(_0x4053a7==(_0x401674<0x0?0x0:$D(_0x55b7a5))){if('DIV'==_0x55b7a5['nodeName'])return!0x1;let _0x12c30f=_0x55b7a5['parentNode'];if(!_0x12c30f||0x1!=_0x12c30f['nodeType'])return!0x1;_0x4053a7=ND(_0x55b7a5)+(_0x401674<0x0?0x0:0x1),_0x55b7a5=_0x12c30f;}else{if(0x1!=_0x55b7a5['nodeType'])return!0x1;if(0x1==(_0x55b7a5=_0x55b7a5['childNodes'][_0x4053a7+(_0x401674<0x0?-0x1:0x0)])['nodeType']&&'false'==_0x55b7a5['contentEditable'])return!0x1;_0x4053a7=_0x401674<0x0?$D(_0x55b7a5):0x0;}}}function $D(_0xb7c8f1){return 0x3==_0xb7c8f1['nodeType']?_0xb7c8f1['nodeValue']['length']:_0xb7c8f1['childNodes']['length'];}function DD(_0x63bc00,_0x2aac9f){let _0x4f1931=_0x2aac9f?_0x63bc00['left']:_0x63bc00['right'];return{'left':_0x4f1931,'right':_0x4f1931,'top':_0x63bc00['top'],'bottom':_0x63bc00['bottom']};}function QD(_0x5f0eeb){let _0x43bc1e=_0x5f0eeb['visualViewport'];return _0x43bc1e?{'left':0x0,'right':_0x43bc1e['width'],'top':0x0,'bottom':_0x43bc1e['height']}:{'left':0x0,'right':_0x5f0eeb['innerWidth'],'top':0x0,'bottom':_0x5f0eeb['innerHeight']};}function jD(_0x7802ea,_0x490939){let _0x3504af=_0x490939['width']/_0x7802ea['offsetWidth'],_0x8b6281=_0x490939['height']/_0x7802ea['offsetHeight'];return(_0x3504af>0.995&&_0x3504af<1.005||!isFinite(_0x3504af)||Math['abs'](_0x490939['width']-_0x7802ea['offsetWidth'])<0x1)&&(_0x3504af=0x1),(_0x8b6281>0.995&&_0x8b6281<1.005||!isFinite(_0x8b6281)||Math['abs'](_0x490939['height']-_0x7802ea['offsetHeight'])<0x1)&&(_0x8b6281=0x1),{'scaleX':_0x3504af,'scaleY':_0x8b6281};}function UD(_0x48ac5d,_0x2d09f8=!0x0){let _0x598cdb=_0x48ac5d['ownerDocument'],_0x34ea26=null,_0x6219a=null;for(let _0x54abac=_0x48ac5d['parentNode'];_0x54abac&&(_0x54abac!=_0x598cdb['body']&&(_0x2d09f8&&!_0x34ea26||!_0x6219a));)if(0x1==_0x54abac['nodeType'])!_0x6219a&&_0x54abac['scrollHeight']>_0x54abac['clientHeight']&&(_0x6219a=_0x54abac),_0x2d09f8&&!_0x34ea26&&_0x54abac['scrollWidth']>_0x54abac['clientWidth']&&(_0x34ea26=_0x54abac),_0x54abac=_0x54abac['assignedSlot']||_0x54abac['parentNode'];else{if(0xb!=_0x54abac['nodeType'])break;_0x54abac=_0x54abac['host'];}return{'x':_0x34ea26,'y':_0x6219a};}ID['prototype']['startSide']=ID['prototype']['endSide']=-0x1;var VD=class{constructor(){this['anchorNode']=null,this['anchorOffset']=0x0,this['focusNode']=null,this['focusOffset']=0x0;}['eq'](_0x2d5618){return this['anchorNode']==_0x2d5618['anchorNode']&&this['anchorOffset']==_0x2d5618['anchorOffset']&&this['focusNode']==_0x2d5618['focusNode']&&this['focusOffset']==_0x2d5618['focusOffset'];}setRange(_0x5cb43d){let {anchorNode:_0x3b6fad,focusNode:_0x4d8441}=_0x5cb43d;this['set'](_0x3b6fad,Math['min'](_0x5cb43d['anchorOffset'],_0x3b6fad?$D(_0x3b6fad):0x0),_0x4d8441,Math['min'](_0x5cb43d['focusOffset'],_0x4d8441?$D(_0x4d8441):0x0));}set(_0x10f525,_0x2a23fe,_0x3ea80b,_0x5120ea){this['anchorNode']=_0x10f525,this['anchorOffset']=_0x2a23fe,this['focusNode']=_0x3ea80b,this['focusOffset']=_0x5120ea;}};let BD,HD=null;function FD(_0x33318e){if(_0x33318e['setActive'])return _0x33318e['setActive']();if(HD)return _0x33318e['focus'](HD);let _0x2fc84e=[];for(let _0x16cd4d=_0x33318e;_0x16cd4d&&(_0x2fc84e['push'](_0x16cd4d,_0x16cd4d['scrollTop'],_0x16cd4d['scrollLeft']),_0x16cd4d!=_0x16cd4d['ownerDocument']);_0x16cd4d=_0x16cd4d['parentNode']);if(_0x33318e['focus'](null==HD?{get 'preventScroll'(){return HD={'preventScroll':!0x0},!0x0;}}:void 0x0),!HD){HD=!0x1;for(let _0x5cd67b=0x0;_0x5cd67b<_0x2fc84e['length'];){let _0x56e8a1=_0x2fc84e[_0x5cd67b++],_0x2aba7a=_0x2fc84e[_0x5cd67b++],_0x157208=_0x2fc84e[_0x5cd67b++];_0x56e8a1['scrollTop']!=_0x2aba7a&&(_0x56e8a1['scrollTop']=_0x2aba7a),_0x56e8a1['scrollLeft']!=_0x157208&&(_0x56e8a1['scrollLeft']=_0x157208);}}}function ZD(_0x1c0640,_0x4a14b5,_0x58ff6e=_0x4a14b5){let _0x39d87e=BD||(BD=document['createRange']());return _0x39d87e['setEnd'](_0x1c0640,_0x58ff6e),_0x39d87e['setStart'](_0x1c0640,_0x4a14b5),_0x39d87e;}function GD(_0x1d6870,_0x2b2f0a,_0x5c0749,_0x1e6b6b){let _0x14ad38={'key':_0x2b2f0a,'code':_0x2b2f0a,'keyCode':_0x5c0749,'which':_0x5c0749,'cancelable':!0x0};_0x1e6b6b&&({altKey:_0x14ad38['altKey'],ctrlKey:_0x14ad38['ctrlKey'],shiftKey:_0x14ad38['shiftKey'],metaKey:_0x14ad38['metaKey']}=_0x1e6b6b);let _0x3b32da=new KeyboardEvent('keydown',_0x14ad38);_0x3b32da['synthetic']=!0x0,_0x1d6870['dispatchEvent'](_0x3b32da);let _0x26f70a=new KeyboardEvent('keyup',_0x14ad38);return _0x26f70a['synthetic']=!0x0,_0x1d6870['dispatchEvent'](_0x26f70a),_0x3b32da['defaultPrevented']||_0x26f70a['defaultPrevented'];}function XD(_0x19cf02){return _0x19cf02 instanceof Window?_0x19cf02['pageYOffset']>Math['max'](0x0,_0x19cf02['document']['documentElement']['scrollHeight']-_0x19cf02['innerHeight']-0x4):_0x19cf02['scrollTop']>Math['max'](0x1,_0x19cf02['scrollHeight']-_0x19cf02['clientHeight']-0x4);}function qD(_0x2c085f,_0x415f2c){for(let _0x33f326=_0x2c085f,_0x4ddbdb=_0x415f2c;;){if(0x3==_0x33f326['nodeType']&&_0x4ddbdb>0x0)return{'node':_0x33f326,'offset':_0x4ddbdb};if(0x1==_0x33f326['nodeType']&&_0x4ddbdb>0x0){if('false'==_0x33f326['contentEditable'])return null;_0x33f326=_0x33f326['childNodes'][_0x4ddbdb-0x1],_0x4ddbdb=$D(_0x33f326);}else{if(!_0x33f326['parentNode']||MD(_0x33f326))return null;_0x4ddbdb=ND(_0x33f326),_0x33f326=_0x33f326['parentNode'];}}}function WD(_0x935c28,_0x311f3e){for(let _0x3b0501=_0x935c28,_0x1b252b=_0x311f3e;;){if(0x3==_0x3b0501['nodeType']&&_0x1b252b<_0x3b0501['nodeValue']['length'])return{'node':_0x3b0501,'offset':_0x1b252b};if(0x1==_0x3b0501['nodeType']&&_0x1b252b<_0x3b0501['childNodes']['length']){if('false'==_0x3b0501['contentEditable'])return null;_0x3b0501=_0x3b0501['childNodes'][_0x1b252b],_0x1b252b=0x0;}else{if(!_0x3b0501['parentNode']||MD(_0x3b0501))return null;_0x1b252b=ND(_0x3b0501)+0x1,_0x3b0501=_0x3b0501['parentNode'];}}}fD['safari']&&fD['safari_version']>=0x1a&&(HD=!0x1);var zD=class DOMPos{constructor(_0x54844b,_0x5c7bf5,_0x222b14=!0x0){this['node']=_0x54844b,this['offset']=_0x5c7bf5,this['precise']=_0x222b14;}static['before'](_0x5467fd,_0x553f17){return new DOMPos(_0x5467fd['parentNode'],ND(_0x5467fd),_0x553f17);}static after(_0x47866d,_0x5bbfdf){return new DOMPos(_0x47866d['parentNode'],ND(_0x47866d)+0x1,_0x5bbfdf);}},YD=function(_0x32d865){return _0x32d865[_0x32d865['LTR']=0x0]='LTR',_0x32d865[_0x32d865['RTL']=0x1]='RTL',_0x32d865;}(YD||(YD={}));const KD=YD['LTR'],JD=YD['RTL'];function tQ(_0x313183){let _0x28da32=[];for(let _0x53797e=0x0;_0x53797e<_0x313183['length'];_0x53797e++)_0x28da32['push'](0x1<<+_0x313183[_0x53797e]);return _0x28da32;}const eQ=tQ('88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008'),iQ=tQ('4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333'),sQ=Object['create'](null),nQ=[];for(let e of['()','[]','{}']){let s=e['charCodeAt'](0x0),n=e['charCodeAt'](0x1);sQ[s]=n,sQ[n]=-s;}function rQ(_0x3afb2f){return _0x3afb2f<=0xf7?eQ[_0x3afb2f]:0x590<=_0x3afb2f&&_0x3afb2f<=0x5f4?0x2:0x600<=_0x3afb2f&&_0x3afb2f<=0x6f9?iQ[_0x3afb2f-0x600]:0x6ee<=_0x3afb2f&&_0x3afb2f<=0x8ac?0x4:0x2000<=_0x3afb2f&&_0x3afb2f<=0x200c?0x100:0xfb50<=_0x3afb2f&&_0x3afb2f<=0xfdff?0x4:0x1;}const oQ=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;var aQ=class{get['dir'](){return this['level']%0x2?JD:KD;}constructor(_0x5ab4c8,_0x1e42b0,_0x419c2c){this['from']=_0x5ab4c8,this['to']=_0x1e42b0,this['level']=_0x419c2c;}['side'](_0x4ee6e3,_0x570121){return this['dir']==_0x570121==_0x4ee6e3?this['to']:this['from'];}['forward'](_0xb76efd,_0x4b853e){return _0xb76efd==(this['dir']==_0x4b853e);}static['find'](_0x3a0e07,_0x5083e3,_0x11d084,_0x9bf97e){let _0x50467d=-0x1;for(let _0x4077e4=0x0;_0x4077e4<_0x3a0e07['length'];_0x4077e4++){let _0x5d4505=_0x3a0e07[_0x4077e4];if(_0x5d4505['from']<=_0x5083e3&&_0x5d4505['to']>=_0x5083e3){if(_0x5d4505['level']==_0x11d084)return _0x4077e4;(_0x50467d<0x0||(0x0!=_0x9bf97e?_0x9bf97e<0x0?_0x5d4505['from']<_0x5083e3:_0x5d4505['to']>_0x5083e3:_0x3a0e07[_0x50467d]['level']>_0x5d4505['level']))&&(_0x50467d=_0x4077e4);}}if(_0x50467d<0x0)throw new RangeError('Index\x20out\x20of\x20range');return _0x50467d;}};function cQ(_0x4f36d9,_0xb61dff){if(_0x4f36d9['length']!=_0xb61dff['length'])return!0x1;for(let _0x54f3ff=0x0;_0x54f3ff<_0x4f36d9['length'];_0x54f3ff++){let _0x37030a=_0x4f36d9[_0x54f3ff],_0x55d770=_0xb61dff[_0x54f3ff];if(_0x37030a['from']!=_0x55d770['from']||_0x37030a['to']!=_0x55d770['to']||_0x37030a['direction']!=_0x55d770['direction']||!cQ(_0x37030a['inner'],_0x55d770['inner']))return!0x1;}return!0x0;}const lQ=[];function hQ(_0x114e9b,_0xcbb596,_0x535876,_0x189406,_0x3182b4,_0x3864eb,_0x3367f7){let _0x1c7c8a=_0x189406%0x2?0x2:0x1;if(_0x189406%0x2==_0x3182b4%0x2)for(let _0x294ff1=_0xcbb596,_0x3b449a=0x0;_0x294ff1<_0x535876;){let _0x1ab9ce=!0x0,_0x10ae67=!0x1;if(_0x3b449a==_0x3864eb['length']||_0x294ff1<_0x3864eb[_0x3b449a]['from']){let _0x372796=lQ[_0x294ff1];_0x372796!=_0x1c7c8a&&(_0x1ab9ce=!0x1,_0x10ae67=0x10==_0x372796);}let _0x274e5f=_0x1ab9ce||0x1!=_0x1c7c8a?null:[],_0x550ca1=_0x1ab9ce?_0x189406:_0x189406+0x1,_0x75a3ba=_0x294ff1;t:for(;;)if(_0x3b449a<_0x3864eb['length']&&_0x75a3ba==_0x3864eb[_0x3b449a]['from']){if(_0x10ae67)break t;let _0x4f8c2a=_0x3864eb[_0x3b449a];if(!_0x1ab9ce)for(let _0xd6cc5c=_0x4f8c2a['to'],_0x319f9e=_0x3b449a+0x1;;){if(_0xd6cc5c==_0x535876)break t;if(!(_0x319f9e<_0x3864eb['length']&&_0x3864eb[_0x319f9e]['from']==_0xd6cc5c)){if(lQ[_0xd6cc5c]==_0x1c7c8a)break t;break;}_0xd6cc5c=_0x3864eb[_0x319f9e++]['to'];}_0x3b449a++,_0x274e5f?_0x274e5f['push'](_0x4f8c2a):(_0x4f8c2a['from']>_0x294ff1&&_0x3367f7['push'](new aQ(_0x294ff1,_0x4f8c2a['from'],_0x550ca1)),uQ(_0x114e9b,_0x4f8c2a['direction']==KD!=!(_0x550ca1%0x2)?_0x189406+0x1:_0x189406,_0x3182b4,_0x4f8c2a['inner'],_0x4f8c2a['from'],_0x4f8c2a['to'],_0x3367f7),_0x294ff1=_0x4f8c2a['to']),_0x75a3ba=_0x4f8c2a['to'];}else{if(_0x75a3ba==_0x535876||(_0x1ab9ce?lQ[_0x75a3ba]!=_0x1c7c8a:lQ[_0x75a3ba]==_0x1c7c8a))break;_0x75a3ba++;}_0x274e5f?hQ(_0x114e9b,_0x294ff1,_0x75a3ba,_0x189406+0x1,_0x3182b4,_0x274e5f,_0x3367f7):_0x294ff1<_0x75a3ba&&_0x3367f7['push'](new aQ(_0x294ff1,_0x75a3ba,_0x550ca1)),_0x294ff1=_0x75a3ba;}else for(let _0x7fe039=_0x535876,_0x3eeef3=_0x3864eb['length'];_0x7fe039>_0xcbb596;){let _0x55755c=!0x0,_0x2a6dcd=!0x1;if(!_0x3eeef3||_0x7fe039>_0x3864eb[_0x3eeef3-0x1]['to']){let _0x1a6c53=lQ[_0x7fe039-0x1];_0x1a6c53!=_0x1c7c8a&&(_0x55755c=!0x1,_0x2a6dcd=0x10==_0x1a6c53);}let _0x3346a1=_0x55755c||0x1!=_0x1c7c8a?null:[],_0x21c4ce=_0x55755c?_0x189406:_0x189406+0x1,_0x24b5bf=_0x7fe039;t:for(;;)if(_0x3eeef3&&_0x24b5bf==_0x3864eb[_0x3eeef3-0x1]['to']){if(_0x2a6dcd)break t;let _0x206f67=_0x3864eb[--_0x3eeef3];if(!_0x55755c)for(let _0x3dc9fc=_0x206f67['from'],_0x2a8db1=_0x3eeef3;;){if(_0x3dc9fc==_0xcbb596)break t;if(!_0x2a8db1||_0x3864eb[_0x2a8db1-0x1]['to']!=_0x3dc9fc){if(lQ[_0x3dc9fc-0x1]==_0x1c7c8a)break t;break;}_0x3dc9fc=_0x3864eb[--_0x2a8db1]['from'];}_0x3346a1?_0x3346a1['push'](_0x206f67):(_0x206f67['to']<_0x7fe039&&_0x3367f7['push'](new aQ(_0x206f67['to'],_0x7fe039,_0x21c4ce)),uQ(_0x114e9b,_0x206f67['direction']==KD!=!(_0x21c4ce%0x2)?_0x189406+0x1:_0x189406,_0x3182b4,_0x206f67['inner'],_0x206f67['from'],_0x206f67['to'],_0x3367f7),_0x7fe039=_0x206f67['from']),_0x24b5bf=_0x206f67['from'];}else{if(_0x24b5bf==_0xcbb596||(_0x55755c?lQ[_0x24b5bf-0x1]!=_0x1c7c8a:lQ[_0x24b5bf-0x1]==_0x1c7c8a))break;_0x24b5bf--;}_0x3346a1?hQ(_0x114e9b,_0x24b5bf,_0x7fe039,_0x189406+0x1,_0x3182b4,_0x3346a1,_0x3367f7):_0x24b5bf<_0x7fe039&&_0x3367f7['push'](new aQ(_0x24b5bf,_0x7fe039,_0x21c4ce)),_0x7fe039=_0x24b5bf;}}function uQ(_0x22aac5,_0x47d050,_0x5eb6c8,_0x1de696,_0x1e3963,_0x2e0b93,_0x240c97){let _0x5d78b9=_0x47d050%0x2?0x2:0x1;!function(_0x363771,_0x33e020,_0x3c199f,_0x7e33fe,_0x4552e9){for(let _0x3d03cc=0x0;_0x3d03cc<=_0x7e33fe['length'];_0x3d03cc++){let _0x313244=_0x3d03cc?_0x7e33fe[_0x3d03cc-0x1]['to']:_0x33e020,_0x27fccb=_0x3d03cc<_0x7e33fe['length']?_0x7e33fe[_0x3d03cc]['from']:_0x3c199f,_0xe5194b=_0x3d03cc?0x100:_0x4552e9;for(let _0x49a56b=_0x313244,_0x36f4ab=_0xe5194b,_0x476943=_0xe5194b;_0x49a56b<_0x27fccb;_0x49a56b++){let _0x132bee=rQ(_0x363771['charCodeAt'](_0x49a56b));0x200==_0x132bee?_0x132bee=_0x36f4ab:0x8==_0x132bee&&0x4==_0x476943&&(_0x132bee=0x10),lQ[_0x49a56b]=0x4==_0x132bee?0x2:_0x132bee,0x7&_0x132bee&&(_0x476943=_0x132bee),_0x36f4ab=_0x132bee;}for(let _0x3a4938=_0x313244,_0x11277b=_0xe5194b,_0x4204e0=_0xe5194b;_0x3a4938<_0x27fccb;_0x3a4938++){let _0x5b941c=lQ[_0x3a4938];if(0x80==_0x5b941c)_0x3a4938<_0x27fccb-0x1&&_0x11277b==lQ[_0x3a4938+0x1]&&0x18&_0x11277b?_0x5b941c=lQ[_0x3a4938]=_0x11277b:lQ[_0x3a4938]=0x100;else{if(0x40==_0x5b941c){let _0x26d059=_0x3a4938+0x1;for(;_0x26d059<_0x27fccb&&0x40==lQ[_0x26d059];)_0x26d059++;let _0x250db8=_0x3a4938&&0x8==_0x11277b||_0x26d059<_0x3c199f&&0x8==lQ[_0x26d059]?0x1==_0x4204e0?0x1:0x8:0x100;for(let _0x3df98d=_0x3a4938;_0x3df98d<_0x26d059;_0x3df98d++)lQ[_0x3df98d]=_0x250db8;_0x3a4938=_0x26d059-0x1;}else 0x8==_0x5b941c&&0x1==_0x4204e0&&(lQ[_0x3a4938]=0x1);}_0x11277b=_0x5b941c,0x7&_0x5b941c&&(_0x4204e0=_0x5b941c);}}}(_0x22aac5,_0x1e3963,_0x2e0b93,_0x1de696,_0x5d78b9),function(_0x28f9ae,_0x1ff9f7,_0x312356,_0x236d83,_0x5a2d20){let _0x16b66b=0x1==_0x5a2d20?0x2:0x1;for(let _0x5e90a3=0x0,_0x46102a=0x0,_0x4f5607=0x0;_0x5e90a3<=_0x236d83['length'];_0x5e90a3++){let _0x492599=_0x5e90a3?_0x236d83[_0x5e90a3-0x1]['to']:_0x1ff9f7,_0xd51310=_0x5e90a3<_0x236d83['length']?_0x236d83[_0x5e90a3]['from']:_0x312356;for(let _0x2619fe,_0x3f460c,_0x2aea01,_0x479cee=_0x492599;_0x479cee<_0xd51310;_0x479cee++)if(_0x3f460c=sQ[_0x2619fe=_0x28f9ae['charCodeAt'](_0x479cee)]){if(_0x3f460c<0x0){for(let _0x11544e=_0x46102a-0x3;_0x11544e>=0x0;_0x11544e-=0x3)if(nQ[_0x11544e+0x1]==-_0x3f460c){let _0xe30cd7=nQ[_0x11544e+0x2],_0x5e9277=0x2&_0xe30cd7?_0x5a2d20:0x4&_0xe30cd7?0x1&_0xe30cd7?_0x16b66b:_0x5a2d20:0x0;_0x5e9277&&(lQ[_0x479cee]=lQ[nQ[_0x11544e]]=_0x5e9277),_0x46102a=_0x11544e;break;}}else{if(0xbd==nQ['length'])break;nQ[_0x46102a++]=_0x479cee,nQ[_0x46102a++]=_0x2619fe,nQ[_0x46102a++]=_0x4f5607;}}else{if(0x2==(_0x2aea01=lQ[_0x479cee])||0x1==_0x2aea01){let _0x574524=_0x2aea01==_0x5a2d20;_0x4f5607=_0x574524?0x0:0x1;for(let _0x35e694=_0x46102a-0x3;_0x35e694>=0x0;_0x35e694-=0x3){let _0x14496c=nQ[_0x35e694+0x2];if(0x2&_0x14496c)break;if(_0x574524)nQ[_0x35e694+0x2]|=0x2;else{if(0x4&_0x14496c)break;nQ[_0x35e694+0x2]|=0x4;}}}}}}(_0x22aac5,_0x1e3963,_0x2e0b93,_0x1de696,_0x5d78b9),function(_0x29a471,_0x125ad6,_0x352e0c,_0x226a8d){for(let _0x1b86de=0x0,_0x57417b=_0x226a8d;_0x1b86de<=_0x352e0c['length'];_0x1b86de++){let _0x27e621=_0x1b86de?_0x352e0c[_0x1b86de-0x1]['to']:_0x29a471,_0xa35b6=_0x1b86de<_0x352e0c['length']?_0x352e0c[_0x1b86de]['from']:_0x125ad6;for(let _0x29d4c1=_0x27e621;_0x29d4c1<_0xa35b6;){let _0x4aaa09=lQ[_0x29d4c1];if(0x100==_0x4aaa09){let _0x25e98e=_0x29d4c1+0x1;for(;;)if(_0x25e98e==_0xa35b6){if(_0x1b86de==_0x352e0c['length'])break;_0x25e98e=_0x352e0c[_0x1b86de++]['to'],_0xa35b6=_0x1b86de<_0x352e0c['length']?_0x352e0c[_0x1b86de]['from']:_0x125ad6;}else{if(0x100!=lQ[_0x25e98e])break;_0x25e98e++;}let _0x45dbf0=0x1==_0x57417b,_0x5c4ae8=_0x45dbf0==(0x1==(_0x25e98e<_0x125ad6?lQ[_0x25e98e]:_0x226a8d))?_0x45dbf0?0x1:0x2:_0x226a8d;for(let _0x52962f=_0x25e98e,_0x2e2091=_0x1b86de,_0x30a007=_0x2e2091?_0x352e0c[_0x2e2091-0x1]['to']:_0x29a471;_0x52962f>_0x29d4c1;)_0x52962f==_0x30a007&&(_0x52962f=_0x352e0c[--_0x2e2091]['from'],_0x30a007=_0x2e2091?_0x352e0c[_0x2e2091-0x1]['to']:_0x29a471),lQ[--_0x52962f]=_0x5c4ae8;_0x29d4c1=_0x25e98e;}else _0x57417b=_0x4aaa09,_0x29d4c1++;}}}(_0x1e3963,_0x2e0b93,_0x1de696,_0x5d78b9),hQ(_0x22aac5,_0x1e3963,_0x2e0b93,_0x47d050,_0x5eb6c8,_0x1de696,_0x240c97);}function dQ(_0x342050){return[new aQ(0x0,_0x342050,0x0)];}let fQ='';function mQ(_0x5d5793,_0x2bbaa6,_0x591c6b,_0x34333c,_0x31da56){var _0x45e726;let _0x478eb5=_0x34333c['head']-_0x5d5793['from'],_0x4d9371=aQ['find'](_0x2bbaa6,_0x478eb5,null!==(_0x45e726=_0x34333c['bidiLevel'])&&void 0x0!==_0x45e726?_0x45e726:-0x1,_0x34333c['assoc']),_0x161dc7=_0x2bbaa6[_0x4d9371],_0x507789=_0x161dc7['side'](_0x31da56,_0x591c6b);if(_0x478eb5==_0x507789){let _0x4b2d67=_0x4d9371+=_0x31da56?0x1:-0x1;if(_0x4b2d67<0x0||_0x4b2d67>=_0x2bbaa6['length'])return null;_0x161dc7=_0x2bbaa6[_0x4d9371=_0x4b2d67],_0x478eb5=_0x161dc7['side'](!_0x31da56,_0x591c6b),_0x507789=_0x161dc7['side'](_0x31da56,_0x591c6b);}let _0x1eb449=OL(_0x5d5793['text'],_0x478eb5,_0x161dc7['forward'](_0x31da56,_0x591c6b));(_0x1eb449<_0x161dc7['from']||_0x1eb449>_0x161dc7['to'])&&(_0x1eb449=_0x507789),fQ=_0x5d5793['text']['slice'](Math['min'](_0x478eb5,_0x1eb449),Math['max'](_0x478eb5,_0x1eb449));let _0x48bec2=_0x4d9371==(_0x31da56?_0x2bbaa6['length']-0x1:0x0)?null:_0x2bbaa6[_0x4d9371+(_0x31da56?0x1:-0x1)];return _0x48bec2&&_0x1eb449==_0x507789&&_0x48bec2['level']+(_0x31da56?0x0:0x1)<_0x161dc7['level']?PL['cursor'](_0x48bec2['side'](!_0x31da56,_0x591c6b)+_0x5d5793['from'],_0x48bec2['forward'](_0x31da56,_0x591c6b)?0x1:-0x1,_0x48bec2['level']):PL['cursor'](_0x1eb449+_0x5d5793['from'],_0x161dc7['forward'](_0x31da56,_0x591c6b)?-0x1:0x1,_0x161dc7['level']);}function pQ(_0x22c804,_0x1dcfb6,_0x170d5a){for(let _0x5859d1=_0x1dcfb6;_0x5859d1<_0x170d5a;_0x5859d1++){let _0x5ccdad=rQ(_0x22c804['charCodeAt'](_0x5859d1));if(0x1==_0x5ccdad)return KD;if(0x2==_0x5ccdad||0x4==_0x5ccdad)return JD;}return KD;}const gQ=LL['define'](),OQ=LL['define'](),wQ=LL['define'](),bQ=LL['define'](),yQ=LL['define'](),vQ=LL['define'](),_Q=LL['define'](),EQ=LL['define'](),TQ=LL['define'](),AQ=LL['define']({'combine':_0x18afc7=>_0x18afc7['some'](_0x453847=>_0x453847)}),SQ=LL['define']({'combine':_0x51681b=>_0x51681b['some'](_0x283fae=>_0x283fae)}),IQ=LL['define']();var kQ=class ScrollTarget{constructor(_0x2d5e6f,_0x1b5ce5,_0x2df4eb,_0x10d9bc,_0x2c5fa2,_0x1eb9dd=!0x1){this['range']=_0x2d5e6f,this['y']=_0x1b5ce5,this['x']=_0x2df4eb,this['yMargin']=_0x10d9bc,this['xMargin']=_0x2c5fa2,this['isSnapshot']=_0x1eb9dd;}['map'](_0x1c0666){return _0x1c0666['empty']?this:new ScrollTarget(this['range']['map'](_0x1c0666),this['y'],this['x'],this['yMargin'],this['xMargin'],this['isSnapshot']);}['clip'](_0x45b5be){return this['range']['to']<=_0x45b5be['doc']['length']?this:new ScrollTarget(PL['cursor'](_0x45b5be['doc']['length']),this['y'],this['x'],this['yMargin'],this['xMargin'],this['isSnapshot']);}};const xQ=u$['define']({'map':(t,_0x1cae7b)=>t['map'](_0x1cae7b)}),CQ=u$['define']();function RQ(_0x190d31,_0x28d494,_0x2f0ee0){let _0x2ce687=_0x190d31['facet'](bQ);_0x2ce687['length']?_0x2ce687[0x0](_0x28d494):window['onerror']&&window['onerror'](String(_0x28d494),_0x2f0ee0,void 0x0,void 0x0,_0x28d494)||(_0x2f0ee0?console['error'](_0x2f0ee0+':',_0x28d494):console['error'](_0x28d494));}const PQ=LL['define']({'combine':_0x3e9aba=>!_0x3e9aba['length']||_0x3e9aba[0x0]});let NQ=0x0;const MQ=LL['define']({'combine':_0x413bc6=>_0x413bc6['filter']((_0x4a764d,_0x4a736d)=>{for(let _0x3f2746=0x0;_0x3f2746<_0x4a736d;_0x3f2746++)if(_0x413bc6[_0x3f2746]['plugin']==_0x4a764d['plugin'])return!0x1;return!0x0;})});var LQ=class ViewPlugin{constructor(_0x5c8850,_0x7f1e3,_0x3750fa,_0x436802,_0x583eff){this['id']=_0x5c8850,this['create']=_0x7f1e3,this['domEventHandlers']=_0x3750fa,this['domEventObservers']=_0x436802,this['baseExtensions']=_0x583eff(this),this['extension']=this['baseExtensions']['concat'](MQ['of']({'plugin':this,'arg':void 0x0}));}['of'](_0x1882ea){return this['baseExtensions']['concat'](MQ['of']({'plugin':this,'arg':_0x1882ea}));}static['define'](_0x285a01,_0x34a79d){const {eventHandlers:_0x599203,eventObservers:_0x40bc48,provide:_0x3e93be,decorations:_0x66a0c9}=_0x34a79d||{};return new ViewPlugin(NQ++,_0x285a01,_0x599203,_0x40bc48,_0xd4b02d=>{let _0x484ebc=[];return _0x66a0c9&&_0x484ebc['push'](jQ['of'](_0x40c7e8=>{let _0x5d6594=_0x40c7e8['plugin'](_0xd4b02d);return _0x5d6594?_0x66a0c9(_0x5d6594):vD['none'];})),_0x3e93be&&_0x484ebc['push'](_0x3e93be(_0xd4b02d)),_0x484ebc;});}static['fromClass'](_0x33e10c,_0x1b72c4){return ViewPlugin['define']((_0x336238,_0x26d5f3)=>new _0x33e10c(_0x336238,_0x26d5f3),_0x1b72c4);}},$Q=class{constructor(_0x205e67){this['spec']=_0x205e67,this['mustUpdate']=null,this['value']=null;}get['plugin'](){return this['spec']&&this['spec']['plugin'];}update(_0x45421e){if(this['value']){if(this['mustUpdate']){let _0x30a925=this['mustUpdate'];if(this['mustUpdate']=null,this['value']['update'])try{this['value']['update'](_0x30a925);}catch(_0x56fbad){if(RQ(_0x30a925['state'],_0x56fbad,'CodeMirror\x20plugin\x20crashed'),this['value']['destroy'])try{this['value']['destroy']();}catch(_0x5183f3){}this['deactivate']();}}}else{if(this['spec'])try{this['value']=this['spec']['plugin']['create'](_0x45421e,this['spec']['arg']);}catch(_0x2a6f80){RQ(_0x45421e['state'],_0x2a6f80,'CodeMirror\x20plugin\x20crashed'),this['deactivate']();}}return this;}destroy(_0x33c7ee){var _0x10593e;if(null===(_0x10593e=this['value'])||void 0x0===_0x10593e?void 0x0:_0x10593e['destroy'])try{this['value']['destroy']();}catch(_0x3c8914){RQ(_0x33c7ee['state'],_0x3c8914,'CodeMirror\x20plugin\x20crashed');}}deactivate(){this['spec']=this['value']=null;}};const DQ=LL['define'](),QQ=LL['define'](),jQ=LL['define'](),UQ=LL['define'](),VQ=LL['define'](),BQ=LL['define'](),HQ=LL['define']();function FQ(_0x4dbe11,_0x6025b3){let _0x31033c=_0x4dbe11['state']['facet'](HQ);if(!_0x31033c['length'])return _0x31033c;let _0x3c724d=_0x31033c['map'](_0x44102d=>_0x44102d instanceof Function?_0x44102d(_0x4dbe11):_0x44102d),_0x4deb1e=[];return C$['spans'](_0x3c724d,_0x6025b3['from'],_0x6025b3['to'],{'point'(){},'span'(_0x24cd49,_0x1bcbd8,_0x51d50c,_0x367a39){let _0x2c4fba=_0x24cd49-_0x6025b3['from'],_0x9a0069=_0x1bcbd8-_0x6025b3['from'],_0x4d39e2=_0x4deb1e;for(let _0x32f965=_0x51d50c['length']-0x1;_0x32f965>=0x0;_0x32f965--,_0x367a39--){let _0x5849cb,_0x5d9750=_0x51d50c[_0x32f965]['spec']['bidiIsolate'];if(null==_0x5d9750&&(_0x5d9750=pQ(_0x6025b3['text'],_0x2c4fba,_0x9a0069)),_0x367a39>0x0&&_0x4d39e2['length']&&(_0x5849cb=_0x4d39e2[_0x4d39e2['length']-0x1])['to']==_0x2c4fba&&_0x5849cb['direction']==_0x5d9750)_0x5849cb['to']=_0x9a0069,_0x4d39e2=_0x5849cb['inner'];else{let _0x53967d={'from':_0x2c4fba,'to':_0x9a0069,'direction':_0x5d9750,'inner':[]};_0x4d39e2['push'](_0x53967d),_0x4d39e2=_0x53967d['inner'];}}}}),_0x4deb1e;}const ZQ=LL['define']();function GQ(_0x22d748){let _0x39a064=0x0,_0x17b0a7=0x0,_0x5aceff=0x0,_0x11e13e=0x0;for(let _0x163cde of _0x22d748['state']['facet'](ZQ)){let _0x430ddb=_0x163cde(_0x22d748);_0x430ddb&&(null!=_0x430ddb['left']&&(_0x39a064=Math['max'](_0x39a064,_0x430ddb['left'])),null!=_0x430ddb['right']&&(_0x17b0a7=Math['max'](_0x17b0a7,_0x430ddb['right'])),null!=_0x430ddb['top']&&(_0x5aceff=Math['max'](_0x5aceff,_0x430ddb['top'])),null!=_0x430ddb['bottom']&&(_0x11e13e=Math['max'](_0x11e13e,_0x430ddb['bottom'])));}return{'left':_0x39a064,'right':_0x17b0a7,'top':_0x5aceff,'bottom':_0x11e13e};}const XQ=LL['define']();var qQ=class ChangedRange{constructor(_0x18a68e,_0x277435,_0x11fe7c,_0x4aff72){this['fromA']=_0x18a68e,this['toA']=_0x277435,this['fromB']=_0x11fe7c,this['toB']=_0x4aff72;}['join'](_0x3a9ea3){return new ChangedRange(Math['min'](this['fromA'],_0x3a9ea3['fromA']),Math['max'](this['toA'],_0x3a9ea3['toA']),Math['min'](this['fromB'],_0x3a9ea3['fromB']),Math['max'](this['toB'],_0x3a9ea3['toB']));}addToSet(_0x3fb91b){let _0x22e509=_0x3fb91b['length'],_0x33fc48=this;for(;_0x22e509>0x0;_0x22e509--){let _0x7ec4ef=_0x3fb91b[_0x22e509-0x1];if(!(_0x7ec4ef['fromA']>_0x33fc48['toA'])){if(_0x7ec4ef['toA']<_0x33fc48['fromA'])break;_0x33fc48=_0x33fc48['join'](_0x7ec4ef),_0x3fb91b['splice'](_0x22e509-0x1,0x1);}}return _0x3fb91b['splice'](_0x22e509,0x0,_0x33fc48),_0x3fb91b;}static extendWithRanges(_0x16b7ef,_0x55790a){if(0x0==_0x55790a['length'])return _0x16b7ef;let _0x528e4e=[];for(let _0x58c5f7=0x0,_0x3099d8=0x0,_0x187e82=0x0;;){let _0x4a5cef=_0x58c5f7<_0x16b7ef['length']?_0x16b7ef[_0x58c5f7]['fromB']:0x3b9aca00,_0x2268f9=_0x3099d8<_0x55790a['length']?_0x55790a[_0x3099d8]:0x3b9aca00,_0x23d81c=Math['min'](_0x4a5cef,_0x2268f9);if(0x3b9aca00==_0x23d81c)break;let _0x5e5bcb=_0x23d81c+_0x187e82,_0x4a46a5=_0x23d81c,_0x5bdaef=_0x5e5bcb;for(;;)if(_0x3099d8<_0x55790a['length']&&_0x55790a[_0x3099d8]<=_0x4a46a5){let _0x1946df=_0x55790a[_0x3099d8+0x1];_0x3099d8+=0x2,_0x4a46a5=Math['max'](_0x4a46a5,_0x1946df);for(let _0x4f2592=_0x58c5f7;_0x4f2592<_0x16b7ef['length']&&_0x16b7ef[_0x4f2592]['fromB']<=_0x4a46a5;_0x4f2592++)_0x187e82=_0x16b7ef[_0x4f2592]['toA']-_0x16b7ef[_0x4f2592]['toB'];_0x5bdaef=Math['max'](_0x5bdaef,_0x1946df+_0x187e82);}else{if(!(_0x58c5f7<_0x16b7ef['length']&&_0x16b7ef[_0x58c5f7]['fromB']<=_0x4a46a5))break;{let _0x31ed46=_0x16b7ef[_0x58c5f7++];_0x4a46a5=Math['max'](_0x4a46a5,_0x31ed46['toB']),_0x5bdaef=Math['max'](_0x5bdaef,_0x31ed46['toA']),_0x187e82=_0x31ed46['toA']-_0x31ed46['toB'];}}_0x528e4e['push'](new ChangedRange(_0x5e5bcb,_0x5bdaef,_0x23d81c,_0x4a46a5));}return _0x528e4e;}},WQ=class ViewUpdate{constructor(_0x34ca26,_0x4ed313,_0x9f565c){this['view']=_0x34ca26,this['state']=_0x4ed313,this['transactions']=_0x9f565c,this['flags']=0x0,this['startState']=_0x34ca26['state'],this['changes']=TL['empty'](this['startState']['doc']['length']);for(let _0x44cbbf of _0x9f565c)this['changes']=this['changes']['compose'](_0x44cbbf['changes']);let _0x357f38=[];this['changes']['iterChangedRanges']((_0x43c71d,_0xa9d27d,_0x219abd,_0x4a8f3c)=>_0x357f38['push'](new qQ(_0x43c71d,_0xa9d27d,_0x219abd,_0x4a8f3c))),this['changedRanges']=_0x357f38;}static create(_0x5f14b2,_0x3d0942,_0x19fc13){return new ViewUpdate(_0x5f14b2,_0x3d0942,_0x19fc13);}get viewportChanged(){return(0x4&this['flags'])>0x0;}get viewportMoved(){return(0x8&this['flags'])>0x0;}get heightChanged(){return(0x2&this['flags'])>0x0;}get geometryChanged(){return this['docChanged']||(0x12&this['flags'])>0x0;}get['focusChanged'](){return(0x1&this['flags'])>0x0;}get['docChanged'](){return!this['changes']['empty'];}get selectionSet(){return this['transactions']['some'](_0x43df5b=>_0x43df5b['selection']);}get empty(){return 0x0==this['flags']&&0x0==this['transactions']['length'];}};const zQ=[];var YQ=class{constructor(_0x393f0c,_0x43009e,_0x57066d=0x0){this['dom']=_0x393f0c,this['length']=_0x43009e,this['flags']=_0x57066d,this['parent']=null,_0x393f0c['cmTile']=this;}get breakAfter(){return 0x1&this['flags'];}get['children'](){return zQ;}isWidget(){return!0x1;}get['isHidden'](){return!0x1;}isComposite(){return!0x1;}['isLine'](){return!0x1;}isText(){return!0x1;}['isBlock'](){return!0x1;}get domAttrs(){return null;}['sync'](_0x2ede3b){if(this['flags']|=0x2,0x4&this['flags']){this['flags']&=-0x5;let _0x5279cd=this['domAttrs'];_0x5279cd&&function(_0x5414a4,_0x176ff6){for(let _0x37efcd=_0x5414a4['attributes']['length']-0x1;_0x37efcd>=0x0;_0x37efcd--){let _0x3ac8fb=_0x5414a4['attributes'][_0x37efcd]['name'];null==_0x176ff6[_0x3ac8fb]&&_0x5414a4['removeAttribute'](_0x3ac8fb);}for(let _0x2089fd in _0x176ff6){let _0x179b4b=_0x176ff6[_0x2089fd];'style'==_0x2089fd?_0x5414a4['style']['cssText']=_0x179b4b:_0x5414a4['getAttribute'](_0x2089fd)!=_0x179b4b&&_0x5414a4['setAttribute'](_0x2089fd,_0x179b4b);}}(this['dom'],_0x5279cd);}}toString(){return this['constructor']['name']+(this['children']['length']?'('+this['children']+')':'')+(this['breakAfter']?'#':'');}destroy(){this['parent']=null;}setDOM(_0x45fcec){this['dom']=_0x45fcec,_0x45fcec['cmTile']=this;}get posAtStart(){return this['parent']?this['parent']['posBefore'](this):0x0;}get posAtEnd(){return this['posAtStart']+this['length'];}['posBefore'](_0x159c20,_0x14e5dc=this['posAtStart']){let _0x254782=_0x14e5dc;for(let _0x1d6d98 of this['children']){if(_0x1d6d98==_0x159c20)return _0x254782;_0x254782+=_0x1d6d98['length']+_0x1d6d98['breakAfter'];}throw new RangeError('Invalid\x20child\x20in\x20posBefore');}posAfter(_0x454447){return this['posBefore'](_0x454447)+_0x454447['length'];}['covers'](_0x7e82e){return!0x0;}['coordsIn'](_0x242025,_0x5b144e){return null;}['domPosFor'](_0x4d9e42,_0x228ca7){let _0x369595=ND(this['dom']),_0x5aceee=this['length']?_0x4d9e42>0x0:_0x228ca7>0x0;return new zD(this['parent']['dom'],_0x369595+(_0x5aceee?0x1:0x0),0x0==_0x4d9e42||_0x4d9e42==this['length']);}markDirty(_0x2f1a9c){this['flags']&=-0x3,_0x2f1a9c&&(this['flags']|=0x4),this['parent']&&0x2&this['parent']['flags']&&this['parent']['markDirty'](!0x1);}get overrideDOMText(){return null;}get root(){for(let t=this;t;t=t['parent'])if(t instanceof tj)return t;return null;}static get(_0x4e68d8){return _0x4e68d8['cmTile'];}},KQ=class extends YQ{constructor(_0x23b320){super(_0x23b320,0x0),this['_children']=[];}isComposite(){return!0x0;}get['children'](){return this['_children'];}get lastChild(){return this['children']['length']?this['children'][this['children']['length']-0x1]:null;}['append'](_0x4438c1){this['children']['push'](_0x4438c1),_0x4438c1['parent']=this;}['sync'](_0x3d11c9){if(0x2&this['flags'])return;super['sync'](_0x3d11c9);let _0x38e67c,_0x2e4869=this['dom'],_0xfc4ce2=null,_0x374f30=(null==_0x3d11c9?void 0x0:_0x3d11c9['node'])==_0x2e4869?_0x3d11c9:null,_0x44f9ce=0x0;for(let _0x2f98cb of this['children']){if(_0x2f98cb['sync'](_0x3d11c9),_0x44f9ce+=_0x2f98cb['length']+_0x2f98cb['breakAfter'],_0x38e67c=_0xfc4ce2?_0xfc4ce2['nextSibling']:_0x2e4869['firstChild'],_0x374f30&&_0x38e67c!=_0x2f98cb['dom']&&(_0x374f30['written']=!0x0),_0x2f98cb['dom']['parentNode']==_0x2e4869){for(;_0x38e67c&&_0x38e67c!=_0x2f98cb['dom'];)_0x38e67c=JQ(_0x38e67c);}else _0x2e4869['insertBefore'](_0x2f98cb['dom'],_0x38e67c);_0xfc4ce2=_0x2f98cb['dom'];}for(_0x38e67c=_0xfc4ce2?_0xfc4ce2['nextSibling']:_0x2e4869['firstChild'],_0x374f30&&_0x38e67c&&(_0x374f30['written']=!0x0);_0x38e67c;)_0x38e67c=JQ(_0x38e67c);this['length']=_0x44f9ce;}};function JQ(_0x5c24ef){let _0x47b2dd=_0x5c24ef['nextSibling'];return _0x5c24ef['parentNode']['removeChild'](_0x5c24ef),_0x47b2dd;}var tj=class extends KQ{constructor(_0x3b6e95,_0x48c0cb){super(_0x48c0cb),this['view']=_0x3b6e95;}['owns'](_0x4128c8){for(;_0x4128c8;_0x4128c8=_0x4128c8['parent'])if(_0x4128c8==this)return!0x0;return!0x1;}['isBlock'](){return!0x0;}nearest(_0x5830aa){for(;;){if(!_0x5830aa)return null;let _0x121df2=YQ['get'](_0x5830aa);if(_0x121df2&&this['owns'](_0x121df2))return _0x121df2;_0x5830aa=_0x5830aa['parentNode'];}}['blockTiles'](_0x52c331){for(let _0xff6487=[],_0x1e1b78=this,_0x277100=0x0,_0x10f32a=0x0;;)if(_0x277100==_0x1e1b78['children']['length']){if(!_0xff6487['length'])return;_0x1e1b78=_0x1e1b78['parent'],_0x1e1b78['breakAfter']&&_0x10f32a++,_0x277100=_0xff6487['pop']();}else{let _0x18e8c5=_0x1e1b78['children'][_0x277100++];if(_0x18e8c5 instanceof ej)_0xff6487['push'](_0x277100),_0x1e1b78=_0x18e8c5,_0x277100=0x0;else{let _0x444c2d=_0x10f32a+_0x18e8c5['length'],_0x2e644c=_0x52c331(_0x18e8c5,_0x10f32a);if(void 0x0!==_0x2e644c)return _0x2e644c;_0x10f32a=_0x444c2d+_0x18e8c5['breakAfter'];}}}['resolveBlock'](_0x5a5b25,_0x44982d){let _0x5c394f,_0x3e7dfd,_0x130151=-0x1,_0x44029c=-0x1;if(this['blockTiles']((_0x8baeba,_0x2cb370)=>{let _0x2d476f=_0x2cb370+_0x8baeba['length'];if(_0x5a5b25>=_0x2cb370&&_0x5a5b25<=_0x2d476f){if(_0x8baeba['isWidget']()&&_0x44982d>=-0x1&&_0x44982d<=0x1){if(0x20&_0x8baeba['flags'])return!0x0;0x10&_0x8baeba['flags']&&(_0x5c394f=void 0x0);}(_0x2cb370<_0x5a5b25||_0x5a5b25==_0x2d476f&&(_0x44982d<-0x1?_0x8baeba['length']:_0x8baeba['covers'](0x1)))&&(!_0x5c394f||!_0x8baeba['isWidget']()&&_0x5c394f['isWidget']())&&(_0x5c394f=_0x8baeba,_0x130151=_0x5a5b25-_0x2cb370),(_0x2d476f>_0x5a5b25||_0x5a5b25==_0x2cb370&&(_0x44982d>0x1?_0x8baeba['length']:_0x8baeba['covers'](-0x1)))&&(!_0x3e7dfd||!_0x8baeba['isWidget']()&&_0x3e7dfd['isWidget']())&&(_0x3e7dfd=_0x8baeba,_0x44029c=_0x5a5b25-_0x2cb370);}}),!_0x5c394f&&!_0x3e7dfd)throw new Error('No\x20tile\x20at\x20position\x20'+_0x5a5b25);return _0x5c394f&&_0x44982d<0x0||!_0x3e7dfd?{'tile':_0x5c394f,'offset':_0x130151}:{'tile':_0x3e7dfd,'offset':_0x44029c};}},ej=class BlockWrapperTile extends KQ{constructor(_0x188eb4,_0xc6eea9){super(_0x188eb4),this['wrapper']=_0xc6eea9;}['isBlock'](){return!0x0;}['covers'](_0x3ddcf2){return!!this['children']['length']&&(_0x3ddcf2<0x0?this['children'][0x0]['covers'](-0x1):this['lastChild']['covers'](0x1));}get domAttrs(){return this['wrapper']['attributes'];}static['of'](_0x15287d,_0x17b44c){let _0x105e7d=new BlockWrapperTile(_0x17b44c||document['createElement'](_0x15287d['tagName']),_0x15287d);return _0x17b44c||(_0x105e7d['flags']|=0x4),_0x105e7d;}},ij=class LineTile extends KQ{constructor(_0x330579,_0x4a2142){super(_0x330579),this['attrs']=_0x4a2142;}['isLine'](){return!0x0;}static start(_0x2abe00,_0x6e351a,_0x3e7998){let _0x44db06=new LineTile(_0x6e351a||document['createElement']('div'),_0x2abe00);return _0x6e351a&&_0x3e7998||(_0x44db06['flags']|=0x4),_0x44db06;}get domAttrs(){return this['attrs'];}['resolveInline'](_0x9d73ba,_0x4df58,_0x454988){let _0x39ddc7=null,_0x1bc6d2=-0x1,_0x1836f6=null,_0x22b2cd=-0x1;!function _0x3eed7e(_0x3c6bbc,_0x17890f){for(let _0x5ab48b=0x0,_0x4642b4=0x0;_0x5ab48b<_0x3c6bbc['children']['length']&&_0x4642b4<=_0x17890f;_0x5ab48b++){let _0x51a309=_0x3c6bbc['children'][_0x5ab48b],_0x4bcf3a=_0x4642b4+_0x51a309['length'];_0x4bcf3a>=_0x17890f&&(_0x51a309['isComposite']()?_0x3eed7e(_0x51a309,_0x17890f-_0x4642b4):(!_0x1836f6||_0x1836f6['isHidden']&&(_0x4df58>0x0||_0x454988&&sj(_0x1836f6,_0x51a309)))&&(_0x4bcf3a>_0x17890f||0x20&_0x51a309['flags'])?(_0x1836f6=_0x51a309,_0x22b2cd=_0x17890f-_0x4642b4):(_0x4642b4<_0x17890f||0x10&_0x51a309['flags']&&!_0x51a309['isHidden'])&&(_0x39ddc7=_0x51a309,_0x1bc6d2=_0x17890f-_0x4642b4)),_0x4642b4=_0x4bcf3a;}}(this,_0x9d73ba);let _0x301f3e=(_0x4df58<0x0?_0x39ddc7:_0x1836f6)||_0x39ddc7||_0x1836f6;return _0x301f3e?{'tile':_0x301f3e,'offset':_0x301f3e==_0x39ddc7?_0x1bc6d2:_0x22b2cd}:null;}['coordsIn'](_0x1f1f19,_0xd9889a){let _0x211bc3=this['resolveInline'](_0x1f1f19,_0xd9889a,!0x0);return _0x211bc3?_0x211bc3['tile']['coordsIn'](Math['max'](0x0,_0x211bc3['offset']),_0xd9889a):function(_0x3aea0c){let _0x452c28=_0x3aea0c['dom']['lastChild'];if(!_0x452c28)return _0x3aea0c['dom']['getBoundingClientRect']();let _0x45f79d=RD(_0x452c28);return _0x45f79d[_0x45f79d['length']-0x1]||null;}(this);}['domIn'](_0x4a18f4,_0x2ce432){let _0x52fd38=this['resolveInline'](_0x4a18f4,_0x2ce432);if(_0x52fd38){let {tile:_0x31ed60,offset:_0x271fb4}=_0x52fd38;if(this['dom']['contains'](_0x31ed60['dom']))return _0x31ed60['isText']()?new zD(_0x31ed60['dom'],Math['min'](_0x31ed60['dom']['nodeValue']['length'],_0x271fb4)):_0x31ed60['domPosFor'](_0x271fb4,0x10&_0x31ed60['flags']?0x1:0x20&_0x31ed60['flags']?-0x1:_0x2ce432);let _0x48fac1=_0x52fd38['tile']['parent'],_0x29416b=!0x1;for(let _0x1ea659 of _0x48fac1['children']){if(_0x29416b)return new zD(_0x1ea659['dom'],0x0);_0x1ea659==_0x52fd38['tile']&&(_0x29416b=!0x0);}}return new zD(this['dom'],0x0);}};function sj(_0x1b403c,_0x145a99){let _0x57bcc7=_0x1b403c['coordsIn'](0x0,0x1),_0x2e05ec=_0x145a99['coordsIn'](0x0,0x1);return _0x57bcc7&&_0x2e05ec&&_0x2e05ec['top']<_0x57bcc7['bottom'];}var nj=class MarkTile extends KQ{constructor(_0xe746f7,_0x1acc85){super(_0xe746f7),this['mark']=_0x1acc85;}get domAttrs(){return this['mark']['attrs'];}static['of'](_0xba42da,_0x58991c){let _0x287509=new MarkTile(_0x58991c||document['createElement'](_0xba42da['tagName']),_0xba42da);return _0x58991c||(_0x287509['flags']|=0x4),_0x287509;}},rj=class TextTile extends YQ{constructor(_0x19479e,_0x1045f2){super(_0x19479e,_0x1045f2['length']),this['text']=_0x1045f2;}['sync'](_0x400421){0x2&this['flags']||(super['sync'](_0x400421),this['dom']['nodeValue']!=this['text']&&(_0x400421&&_0x400421['node']==this['dom']&&(_0x400421['written']=!0x0),this['dom']['nodeValue']=this['text']));}isText(){return!0x0;}toString(){return JSON['stringify'](this['text']);}['coordsIn'](_0x2cf7ab,_0x3a5c27){let _0x5c8bce=this['dom']['nodeValue']['length'];_0x2cf7ab>_0x5c8bce&&(_0x2cf7ab=_0x5c8bce);let _0x75358b=_0x2cf7ab,_0x53ceba=_0x2cf7ab,_0x28492b=0x0;0x0==_0x2cf7ab&&_0x3a5c27<0x0||_0x2cf7ab==_0x5c8bce&&_0x3a5c27>=0x0?fD['chrome']||fD['gecko']||(_0x2cf7ab?(_0x75358b--,_0x28492b=0x1):_0x53ceba<_0x5c8bce&&(_0x53ceba++,_0x28492b=-0x1)):_0x3a5c27<0x0?_0x75358b--:_0x53ceba<_0x5c8bce&&_0x53ceba++;let _0x213e77=ZD(this['dom'],_0x75358b,_0x53ceba)['getClientRects']();if(!_0x213e77['length'])return null;let _0x43b1bf=_0x213e77[(_0x28492b?_0x28492b<0x0:_0x3a5c27>=0x0)?0x0:_0x213e77['length']-0x1];return fD['safari']&&!_0x28492b&&0x0==_0x43b1bf['width']&&(_0x43b1bf=Array['prototype']['find']['call'](_0x213e77,_0x535536=>_0x535536['width'])||_0x43b1bf),_0x28492b?DD(_0x43b1bf,_0x28492b<0x0):_0x43b1bf||null;}static['of'](_0x9f710,_0x389297){let _0x5e5c7c=new TextTile(_0x389297||document['createTextNode'](_0x9f710),_0x9f710);return _0x389297||(_0x5e5c7c['flags']|=0x2),_0x5e5c7c;}},oj=class WidgetTile extends YQ{constructor(_0x34c2f4,_0x59c269,_0xeb9230,_0x298f32){super(_0x34c2f4,_0x59c269,_0x298f32),this['widget']=_0xeb9230;}isWidget(){return!0x0;}get['isHidden'](){return this['widget']['isHidden'];}['covers'](_0x247fee){return!(0x30&this['flags'])&&(this['flags']&(_0x247fee<0x0?0x40:0x80))>0x0;}['coordsIn'](_0x3c53e8,_0x2fd247){return this['coordsInWidget'](_0x3c53e8,_0x2fd247,!0x1);}coordsInWidget(_0x105aef,_0x489f70,_0x3a92f4){let _0x7bf635=this['widget']['coordsAt'](this['dom'],_0x105aef,_0x489f70);if(_0x7bf635)return _0x7bf635;if(_0x3a92f4)return DD(this['dom']['getBoundingClientRect'](),this['length']?0x0==_0x105aef:_0x489f70<=0x0);{let _0x5bf964=this['dom']['getClientRects'](),_0x4cff9d=null;if(!_0x5bf964['length'])return null;let _0x4dc917=!!(0x10&this['flags'])||!(0x20&this['flags'])&&_0x105aef>0x0;for(let _0x3179ad=_0x4dc917?_0x5bf964['length']-0x1:0x0;_0x4cff9d=_0x5bf964[_0x3179ad],!(_0x105aef>0x0?0x0==_0x3179ad:_0x3179ad==_0x5bf964['length']-0x1||_0x4cff9d['top']<_0x4cff9d['bottom']);_0x3179ad+=_0x4dc917?-0x1:0x1);return DD(_0x4cff9d,!_0x4dc917);}}get overrideDOMText(){if(!this['length'])return aL['empty'];let {root:_0x480854}=this;if(!_0x480854)return aL['empty'];let _0x5b053e=this['posAtStart'];return _0x480854['view']['state']['doc']['slice'](_0x5b053e,_0x5b053e+this['length']);}destroy(){super['destroy'](),this['widget']['destroy'](this['dom']);}static['of'](_0x326d05,_0x1707ae,_0x26f52e,_0x316a52,_0x2cb188){return _0x2cb188||(_0x2cb188=_0x326d05['toDOM'](_0x1707ae),_0x326d05['editable']||(_0x2cb188['contentEditable']='false')),new WidgetTile(_0x2cb188,_0x26f52e,_0x326d05,_0x316a52);}},aj=class extends YQ{constructor(_0x174431){let _0x4ed0dd=document['createElement']('img');_0x4ed0dd['className']='cm-widgetBuffer',_0x4ed0dd['setAttribute']('aria-hidden','true'),super(_0x4ed0dd,0x0,_0x174431);}get['isHidden'](){return!0x0;}get overrideDOMText(){return aL['empty'];}['coordsIn'](_0x2f3b83){return this['dom']['getBoundingClientRect']();}},cj=class{constructor(_0x66d580){this['index']=0x0,this['beforeBreak']=!0x1,this['parents']=[],this['tile']=_0x66d580;}['advance'](_0x53676,_0x124ef5,_0x2c3da5){let {tile:_0x2463e1,index:_0x5e3433,beforeBreak:_0x261407,parents:_0x49c3b8}=this;for(;_0x53676||_0x124ef5>0x0;)if(_0x2463e1['isComposite']()){if(_0x261407){if(!_0x53676)break;_0x2c3da5&&_0x2c3da5['break'](),_0x53676--,_0x261407=!0x1;}else{if(_0x5e3433==_0x2463e1['children']['length']){if(!_0x53676&&!_0x49c3b8['length'])break;_0x2c3da5&&_0x2c3da5['leave'](_0x2463e1),_0x261407=!!_0x2463e1['breakAfter'],{tile:_0x2463e1,index:_0x5e3433}=_0x49c3b8['pop'](),_0x5e3433++;}else{let _0x16ca5c=_0x2463e1['children'][_0x5e3433],_0x1c8a83=_0x16ca5c['breakAfter'];!(_0x124ef5>0x0?_0x16ca5c['length']<=_0x53676:_0x16ca5c['length']<_0x53676)||_0x2c3da5&&!0x1===_0x2c3da5['skip'](_0x16ca5c,0x0,_0x16ca5c['length'])&&_0x16ca5c['isComposite']?(_0x49c3b8['push']({'tile':_0x2463e1,'index':_0x5e3433}),_0x2463e1=_0x16ca5c,_0x5e3433=0x0,_0x2c3da5&&_0x16ca5c['isComposite']()&&_0x2c3da5['enter'](_0x16ca5c)):(_0x261407=!!_0x1c8a83,_0x5e3433++,_0x53676-=_0x16ca5c['length']);}}}else{if(_0x5e3433==_0x2463e1['length'])_0x261407=!!_0x2463e1['breakAfter'],{tile:_0x2463e1,index:_0x5e3433}=_0x49c3b8['pop'](),_0x5e3433++;else{if(!_0x53676)break;{let _0x30c64c=Math['min'](_0x53676,_0x2463e1['length']-_0x5e3433);_0x2c3da5&&_0x2c3da5['skip'](_0x2463e1,_0x5e3433,_0x5e3433+_0x30c64c),_0x53676-=_0x30c64c,_0x5e3433+=_0x30c64c;}}}return this['tile']=_0x2463e1,this['index']=_0x5e3433,this['beforeBreak']=_0x261407,this;}get root(){return this['parents']['length']?this['parents'][0x0]['tile']:this['tile'];}},lj=class{constructor(_0x238f33,_0xe7fc5c,_0x14a259,_0x4d546d){this['from']=_0x238f33,this['to']=_0xe7fc5c,this['wrapper']=_0x14a259,this['rank']=_0x4d546d;}},hj=class{constructor(_0x17f49d,_0x32ebc2,_0x59b1b6){this['cache']=_0x17f49d,this['root']=_0x32ebc2,this['blockWrappers']=_0x59b1b6,this['curLine']=null,this['lastBlock']=null,this['afterWidget']=null,this['pos']=0x0,this['wrappers']=[],this['wrapperPos']=0x0;}addText(_0x21655d,_0x66c1de,_0x179369,_0xcff27f){var _0x3409d8;this['flushBuffer']();let _0x56020b=this['ensureMarks'](_0x66c1de,_0x179369),_0x4958ac=_0x56020b['lastChild'];if(_0x4958ac&&_0x4958ac['isText']()&&!(0x8&_0x4958ac['flags'])&&_0x4958ac['length']+_0x21655d['length']<0x200)this['cache']['reused']['set'](_0x4958ac,0x2),(_0x56020b['children'][_0x56020b['children']['length']-0x1]=new rj(_0x4958ac['dom'],_0x4958ac['text']+_0x21655d))['parent']=_0x56020b;else _0x56020b['append'](_0xcff27f||rj['of'](_0x21655d,null===(_0x3409d8=this['cache']['find'](rj))||void 0x0===_0x3409d8?void 0x0:_0x3409d8['dom']));this['pos']+=_0x21655d['length'],this['afterWidget']=null;}addComposition(_0x19774d,_0x2b4bb4){let _0x414e1e=this['curLine'];_0x414e1e['dom']!=_0x2b4bb4['line']['dom']&&(_0x414e1e['setDOM'](this['cache']['reused']['has'](_0x2b4bb4['line'])?Oj(_0x2b4bb4['line']['dom']):_0x2b4bb4['line']['dom']),this['cache']['reused']['set'](_0x2b4bb4['line'],0x2));let _0x2b18af=_0x414e1e;for(let _0x227e86=_0x2b4bb4['marks']['length']-0x1;_0x227e86>=0x0;_0x227e86--){let _0x123059=_0x2b4bb4['marks'][_0x227e86],_0x358dd7=_0x2b18af['lastChild'];if(_0x358dd7 instanceof nj&&_0x358dd7['mark']['eq'](_0x123059['mark']))_0x358dd7['dom']!=_0x123059['dom']&&_0x358dd7['setDOM'](Oj(_0x123059['dom'])),_0x2b18af=_0x358dd7;else{if(this['cache']['reused']['get'](_0x123059)){let _0x144d10=YQ['get'](_0x123059['dom']);_0x144d10&&_0x144d10['setDOM'](Oj(_0x123059['dom']));}let _0x3ed50f=nj['of'](_0x123059['mark'],_0x123059['dom']);_0x2b18af['append'](_0x3ed50f),_0x2b18af=_0x3ed50f;}this['cache']['reused']['set'](_0x123059,0x2);}let _0x488961=YQ['get'](_0x19774d['text']);_0x488961&&this['cache']['reused']['set'](_0x488961,0x2);let _0xb039b7=new rj(_0x19774d['text'],_0x19774d['text']['nodeValue']);_0xb039b7['flags']|=0x8,this['pos']=_0x19774d['range']['toB'],_0x2b18af['append'](_0xb039b7);}addInlineWidget(_0x4e63d6,_0x5d258a,_0x259a36){let _0x4fa8e1=this['afterWidget']&&0x30&_0x4e63d6['flags']&&(0x30&this['afterWidget']['flags'])==(0x30&_0x4e63d6['flags']);_0x4fa8e1||this['flushBuffer']();let _0x4ec666=this['ensureMarks'](_0x5d258a,_0x259a36);_0x4fa8e1||0x10&_0x4e63d6['flags']||_0x4ec666['append'](this['getBuffer'](0x1)),_0x4ec666['append'](_0x4e63d6),this['pos']+=_0x4e63d6['length'],this['afterWidget']=_0x4e63d6;}['addMark'](_0x211763,_0x493b5f,_0x1f08eb){this['flushBuffer'](),this['ensureMarks'](_0x493b5f,_0x1f08eb)['append'](_0x211763),this['pos']+=_0x211763['length'],this['afterWidget']=null;}addBlockWidget(_0x3a5f7d){this['getBlockPos']()['append'](_0x3a5f7d),this['pos']+=_0x3a5f7d['length'],this['lastBlock']=_0x3a5f7d,this['endLine']();}continueWidget(_0x4c2a2){(this['afterWidget']||this['lastBlock'])['length']+=_0x4c2a2,this['pos']+=_0x4c2a2;}addLineStart(_0x38725e,_0x6ff5fa){var _0x3ba430;_0x38725e||(_0x38725e=gj);let _0x1199b4=ij['start'](_0x38725e,_0x6ff5fa||(null===(_0x3ba430=this['cache']['find'](ij))||void 0x0===_0x3ba430?void 0x0:_0x3ba430['dom']),!!_0x6ff5fa);this['getBlockPos']()['append'](this['lastBlock']=this['curLine']=_0x1199b4);}['addLine'](_0x19e91c){this['getBlockPos']()['append'](_0x19e91c),this['pos']+=_0x19e91c['length'],this['lastBlock']=_0x19e91c,this['endLine']();}['addBreak'](){this['lastBlock']['flags']|=0x1,this['endLine'](),this['pos']++;}addLineStartIfNotCovered(_0x1d755d){this['blockPosCovered']()||this['addLineStart'](_0x1d755d);}['ensureLine'](_0x312c15){this['curLine']||this['addLineStart'](_0x312c15);}['ensureMarks'](_0x43d6c5,_0xd05c6c){var _0x225956;let _0x1c42c2=this['curLine'];for(let _0x152601=_0x43d6c5['length']-0x1;_0x152601>=0x0;_0x152601--){let _0x55b4a4,_0x4285db=_0x43d6c5[_0x152601];if(_0xd05c6c>0x0&&(_0x55b4a4=_0x1c42c2['lastChild'])&&_0x55b4a4 instanceof nj&&_0x55b4a4['mark']['eq'](_0x4285db))_0x1c42c2=_0x55b4a4,_0xd05c6c--;else{let _0x3de82b=nj['of'](_0x4285db,null===(_0x225956=this['cache']['find'](nj,_0x56884a=>_0x56884a['mark']['eq'](_0x4285db)))||void 0x0===_0x225956?void 0x0:_0x225956['dom']);_0x1c42c2['append'](_0x3de82b),_0x1c42c2=_0x3de82b,_0xd05c6c=0x0;}}return _0x1c42c2;}['endLine'](){if(this['curLine']){this['flushBuffer']();let _0x109f1e=this['curLine']['lastChild'];_0x109f1e&&pj(this['curLine'],!0x1)&&('BR'==_0x109f1e['dom']['nodeName']||!_0x109f1e['isWidget']()||fD['ios']&&pj(this['curLine'],!0x0))||this['curLine']['append'](this['cache']['findWidget'](bj,0x0,0x20)||new oj(bj['toDOM'](),0x0,bj,0x20)),this['curLine']=this['afterWidget']=null;}}updateBlockWrappers(){this['wrapperPos']>this['pos']+0x2710&&(this['blockWrappers']['goto'](this['pos']),this['wrappers']['length']=0x0);for(let _0x4d5ffc=this['wrappers']['length']-0x1;_0x4d5ffc>=0x0;_0x4d5ffc--)this['wrappers'][_0x4d5ffc]['to']<this['pos']&&this['wrappers']['splice'](_0x4d5ffc,0x1);for(let _0x3214e5=this['blockWrappers'];_0x3214e5['value']&&_0x3214e5['from']<=this['pos'];_0x3214e5['next']())if(_0x3214e5['to']>=this['pos']){let _0x5669aa=0x66*_0x3214e5['rank']+_0x3214e5['value']['rank'],_0x4aa712=new lj(_0x3214e5['from'],_0x3214e5['to'],_0x3214e5['value'],_0x5669aa),_0x439a78=this['wrappers']['length'];for(;_0x439a78>0x0&&(this['wrappers'][_0x439a78-0x1]['rank']-_0x4aa712['rank']||this['wrappers'][_0x439a78-0x1]['to']-_0x4aa712['to'])<0x0;)_0x439a78--;this['wrappers']['splice'](_0x439a78,0x0,_0x4aa712);}this['wrapperPos']=this['pos'];}getBlockPos(){var _0x395714;this['updateBlockWrappers']();let _0x1a8787=this['root'];for(let _0x329290 of this['wrappers']){let _0x1bd1c4=_0x1a8787['lastChild'];if(_0x329290['from']<this['pos']&&_0x1bd1c4 instanceof ej&&_0x1bd1c4['wrapper']['eq'](_0x329290['wrapper']))_0x1a8787=_0x1bd1c4;else{let _0x4e9a60=ej['of'](_0x329290['wrapper'],null===(_0x395714=this['cache']['find'](ej,t=>t['wrapper']['eq'](_0x329290['wrapper'])))||void 0x0===_0x395714?void 0x0:_0x395714['dom']);_0x1a8787['append'](_0x4e9a60),_0x1a8787=_0x4e9a60;}}return _0x1a8787;}['blockPosCovered'](){let _0x34ab14=this['lastBlock'];return null!=_0x34ab14&&!_0x34ab14['breakAfter']&&(!_0x34ab14['isWidget']()||(0xa0&_0x34ab14['flags'])>0x0);}getBuffer(_0x20f379){let _0x1f0a29=0x2|(_0x20f379<0x0?0x10:0x20),_0x184e04=this['cache']['find'](aj,void 0x0,0x1);return _0x184e04&&(_0x184e04['flags']=_0x1f0a29),_0x184e04||new aj(_0x1f0a29);}['flushBuffer'](){!this['afterWidget']||0x20&this['afterWidget']['flags']||(this['afterWidget']['parent']['append'](this['getBuffer'](-0x1)),this['afterWidget']=null);}},uj=class{constructor(_0x447e49){this['skipCount']=0x0,this['text']='',this['textOff']=0x0,this['cursor']=_0x447e49['iter']();}['skip'](_0x546694){this['textOff']+_0x546694<=this['text']['length']?this['textOff']+=_0x546694:(this['skipCount']+=_0x546694-(this['text']['length']-this['textOff']),this['text']='',this['textOff']=0x0);}next(_0x3cdf7f){if(this['textOff']==this['text']['length']){let {value:_0x4c02c2,lineBreak:_0x102ecf,done:_0x5270e7}=this['cursor']['next'](this['skipCount']);if(this['skipCount']=0x0,_0x5270e7)throw new Error('Ran\x20out\x20of\x20text\x20content\x20when\x20drawing\x20inline\x20views');this['text']=_0x4c02c2;let _0xd9ab8b=this['textOff']=Math['min'](_0x3cdf7f,_0x4c02c2['length']);return _0x102ecf?null:_0x4c02c2['slice'](0x0,_0xd9ab8b);}let _0x2d884e=Math['min'](this['text']['length'],this['textOff']+_0x3cdf7f),_0x1c1fd5=this['text']['slice'](this['textOff'],_0x2d884e);return this['textOff']=_0x2d884e,_0x1c1fd5;}};const dj=[oj,ij,rj,nj,aj,ej,tj];for(let e=0x0;e<dj['length'];e++)dj[e]['bucket']=e;var fj=class{constructor(_0x1c5f32){this['view']=_0x1c5f32,this['buckets']=dj['map'](()=>[]),this['index']=dj['map'](()=>0x0),this['reused']=new Map();}['add'](_0x2f6db6){let _0x1b97fa=_0x2f6db6['constructor']['bucket'],_0x582b02=this['buckets'][_0x1b97fa];_0x582b02['length']<0x6?_0x582b02['push'](_0x2f6db6):_0x582b02[this['index'][_0x1b97fa]=(this['index'][_0x1b97fa]+0x1)%0x6]=_0x2f6db6;}['find'](_0x1bc3ee,_0x4be04b,_0x438704=0x2){let _0x28736b=_0x1bc3ee['bucket'],_0x4f4f68=this['buckets'][_0x28736b],_0x2bc35c=this['index'][_0x28736b];for(let _0x18559a=_0x4f4f68['length']-0x1;_0x18559a>=0x0;_0x18559a--){let _0xa7d5ba=(_0x18559a+_0x2bc35c)%_0x4f4f68['length'],_0x155777=_0x4f4f68[_0xa7d5ba];if((!_0x4be04b||_0x4be04b(_0x155777))&&!this['reused']['has'](_0x155777))return _0x4f4f68['splice'](_0xa7d5ba,0x1),_0xa7d5ba<_0x2bc35c&&this['index'][_0x28736b]--,this['reused']['set'](_0x155777,_0x438704),_0x155777;}return null;}findWidget(_0x2cfa94,_0x39f31f,_0x522f9c){let _0x5c67b3=this['buckets'][0x0];if(_0x5c67b3['length'])for(let _0x1c666b=0x0,_0x5d7bb0=0x0;;_0x1c666b++){if(_0x1c666b==_0x5c67b3['length']){if(_0x5d7bb0)return null;_0x5d7bb0=0x1,_0x1c666b=0x0;}let _0x222e82=_0x5c67b3[_0x1c666b];if(!this['reused']['has'](_0x222e82)&&(0x0==_0x5d7bb0?_0x222e82['widget']['compare'](_0x2cfa94):_0x222e82['widget']['constructor']==_0x2cfa94['constructor']&&_0x2cfa94['updateDOM'](_0x222e82['dom'],this['view'],_0x222e82['widget'])))return _0x5c67b3['splice'](_0x1c666b,0x1),_0x1c666b<this['index'][0x0]&&this['index'][0x0]--,_0x222e82['widget']==_0x2cfa94&&_0x222e82['length']==_0x39f31f&&(0x1f1&_0x222e82['flags'])==_0x522f9c?(this['reused']['set'](_0x222e82,0x1),_0x222e82):(this['reused']['set'](_0x222e82,0x2),new oj(_0x222e82['dom'],_0x39f31f,_0x2cfa94,-0x1f2&_0x222e82['flags']|_0x522f9c));}}['reuse'](_0x3ec894){return this['reused']['set'](_0x3ec894,0x1),_0x3ec894;}['maybeReuse'](_0x3bd902,_0x47058e=0x2){if(!this['reused']['has'](_0x3bd902))return this['reused']['set'](_0x3bd902,_0x47058e),_0x3bd902['dom'];}['clear'](){for(let _0xecef0f=0x0;_0xecef0f<this['buckets']['length'];_0xecef0f++)this['buckets'][_0xecef0f]['length']=this['index'][_0xecef0f]=0x0;}},mj=class{constructor(_0x58ebd9,_0x2e0923,_0x440de1,_0x474e43,_0x1bd39a){this['view']=_0x58ebd9,this['decorations']=_0x474e43,this['disallowBlockEffectsFor']=_0x1bd39a,this['openWidget']=!0x1,this['openMarks']=0x0,this['cache']=new fj(_0x58ebd9),this['text']=new uj(_0x58ebd9['state']['doc']),this['builder']=new hj(this['cache'],new tj(_0x58ebd9,_0x58ebd9['contentDOM']),C$['iter'](_0x440de1)),this['cache']['reused']['set'](_0x2e0923,0x2),this['old']=new cj(_0x2e0923),this['reuseWalker']={'skip':(_0x1d1a73,_0x4522cd,_0x2fb9d8)=>{if(this['cache']['add'](_0x1d1a73),_0x1d1a73['isComposite']())return!0x1;},'enter':_0x34e051=>this['cache']['add'](_0x34e051),'leave':()=>{},'break':()=>{}};}['run'](_0x9ea190,_0x22fdff){let _0x493f04=_0x22fdff&&this['getCompositionContext'](_0x22fdff['text']);for(let _0xa03b71=0x0,_0xfe721a=0x0,_0x298587=0x0;;){let _0x52748b=_0x298587<_0x9ea190['length']?_0x9ea190[_0x298587++]:null,_0x320083=_0x52748b?_0x52748b['fromA']:this['old']['root']['length'];if(_0x320083>_0xa03b71){let _0x4f388c=_0x320083-_0xa03b71;this['preserve'](_0x4f388c,!_0x298587,!_0x52748b),_0xa03b71=_0x320083,_0xfe721a+=_0x4f388c;}if(!_0x52748b)break;_0x22fdff&&_0x52748b['fromA']<=_0x22fdff['range']['fromA']&&_0x52748b['toA']>=_0x22fdff['range']['toA']?(this['forward'](_0x52748b['fromA'],_0x22fdff['range']['fromA'],_0x22fdff['range']['fromA']<_0x22fdff['range']['toA']?0x1:-0x1),this['emit'](_0xfe721a,_0x22fdff['range']['fromB']),this['builder']['flushBuffer'](),this['cache']['clear'](),this['builder']['addComposition'](_0x22fdff,_0x493f04),this['text']['skip'](_0x22fdff['range']['toB']-_0x22fdff['range']['fromB']),this['forward'](_0x22fdff['range']['fromA'],_0x52748b['toA']),this['emit'](_0x22fdff['range']['toB'],_0x52748b['toB'])):(this['forward'](_0x52748b['fromA'],_0x52748b['toA']),this['emit'](_0xfe721a,_0x52748b['toB'])),_0xfe721a=_0x52748b['toB'],_0xa03b71=_0x52748b['toA'];}return this['builder']['curLine']&&this['builder']['endLine'](),this['builder']['root'];}['preserve'](_0x45c487,_0x264761,_0x3bd27c){let _0x4f49c8=function(_0x34f2ef){let _0x44d707=[];for(let _0x2c6003=_0x34f2ef['parents']['length'];_0x2c6003>0x1;_0x2c6003--){let _0x2d282c=_0x2c6003==_0x34f2ef['parents']['length']?_0x34f2ef['tile']:_0x34f2ef['parents'][_0x2c6003]['tile'];_0x2d282c instanceof nj&&_0x44d707['push'](_0x2d282c['mark']);}return _0x44d707;}(this['old']),_0x2c58f7=this['openMarks'];this['old']['advance'](_0x45c487,_0x3bd27c?0x1:-0x1,{'skip':(_0x3ed692,_0x5035e0,_0x392468)=>{if(_0x3ed692['isWidget']()){if(this['openWidget'])this['builder']['continueWidget'](_0x392468-_0x5035e0);else{let _0x4ec7ce=_0x392468>0x0||_0x5035e0<_0x3ed692['length']?oj['of'](_0x3ed692['widget'],this['view'],_0x392468-_0x5035e0,0x1f0&_0x3ed692['flags'],this['cache']['maybeReuse'](_0x3ed692)):this['cache']['reuse'](_0x3ed692);0x100&_0x4ec7ce['flags']?(_0x4ec7ce['flags']&=-0x2,this['builder']['addBlockWidget'](_0x4ec7ce)):(this['builder']['ensureLine'](null),this['builder']['addInlineWidget'](_0x4ec7ce,_0x4f49c8,_0x2c58f7),_0x2c58f7=_0x4f49c8['length']);}}else{if(_0x3ed692['isText']())this['builder']['ensureLine'](null),_0x5035e0||_0x392468!=_0x3ed692['length']||this['cache']['reused']['has'](_0x3ed692)?(this['cache']['add'](_0x3ed692),this['builder']['addText'](_0x3ed692['text']['slice'](_0x5035e0,_0x392468),_0x4f49c8,_0x2c58f7)):this['builder']['addText'](_0x3ed692['text'],_0x4f49c8,_0x2c58f7,this['cache']['reuse'](_0x3ed692)),_0x2c58f7=_0x4f49c8['length'];else{if(_0x3ed692['isLine']())_0x3ed692['flags']&=-0x2,this['cache']['reused']['set'](_0x3ed692,0x1),this['builder']['addLine'](_0x3ed692);else{if(_0x3ed692 instanceof aj)this['cache']['add'](_0x3ed692);else{if(!(_0x3ed692 instanceof nj))return!0x1;this['builder']['ensureLine'](null),this['builder']['addMark'](_0x3ed692,_0x4f49c8,_0x2c58f7),this['cache']['reused']['set'](_0x3ed692,0x1),_0x2c58f7=_0x4f49c8['length'];}}}}this['openWidget']=!0x1;},'enter':_0x5e5a82=>{_0x5e5a82['isLine']()?this['builder']['addLineStart'](_0x5e5a82['attrs'],this['cache']['maybeReuse'](_0x5e5a82)):(this['cache']['add'](_0x5e5a82),_0x5e5a82 instanceof nj&&_0x4f49c8['unshift'](_0x5e5a82['mark'])),this['openWidget']=!0x1;},'leave':_0x15124f=>{_0x15124f['isLine']()?_0x4f49c8['length']&&(_0x4f49c8['length']=_0x2c58f7=0x0):_0x15124f instanceof nj&&(_0x4f49c8['shift'](),_0x2c58f7=Math['min'](_0x2c58f7,_0x4f49c8['length']));},'break':()=>{this['builder']['addBreak'](),this['openWidget']=!0x1;}}),this['text']['skip'](_0x45c487);}emit(_0x1d557e,_0x24d66e){let _0x183f19=null,_0x316e12=this['builder'],_0x322ac3=0x0,_0x5e7b72=C$['spans'](this['decorations'],_0x1d557e,_0x24d66e,{'point':(_0x19a724,_0x1c4fc7,_0x23e47f,_0x12327c,_0x35abfe,_0xf6d3a8)=>{if(_0x23e47f instanceof TD){if(this['disallowBlockEffectsFor'][_0xf6d3a8]){if(_0x23e47f['block'])throw new RangeError('Block\x20decorations\x20may\x20not\x20be\x20specified\x20via\x20plugins');if(_0x1c4fc7>this['view']['state']['doc']['lineAt'](_0x19a724)['to'])throw new RangeError('Decorations\x20that\x20replace\x20line\x20breaks\x20may\x20not\x20be\x20specified\x20via\x20plugins');}if(_0x322ac3=_0x12327c['length'],_0x35abfe>_0x12327c['length'])_0x316e12['continueWidget'](_0x1c4fc7-_0x19a724);else{let _0x45881f=_0x23e47f['widget']||(_0x23e47f['block']?wj['block']:wj['inline']),_0x4a6aec=function(_0x185465){let _0x421815=_0x185465['isReplace']?(_0x185465['startSide']<0x0?0x40:0x0)|(_0x185465['endSide']>0x0?0x80:0x0):_0x185465['startSide']>0x0?0x20:0x10;return _0x185465['block']&&(_0x421815|=0x100),_0x421815;}(_0x23e47f),_0x203800=this['cache']['findWidget'](_0x45881f,_0x1c4fc7-_0x19a724,_0x4a6aec)||oj['of'](_0x45881f,this['view'],_0x1c4fc7-_0x19a724,_0x4a6aec);_0x23e47f['block']?(_0x23e47f['startSide']>0x0&&_0x316e12['addLineStartIfNotCovered'](_0x183f19),_0x316e12['addBlockWidget'](_0x203800)):(_0x316e12['ensureLine'](_0x183f19),_0x316e12['addInlineWidget'](_0x203800,_0x12327c,_0x35abfe));}_0x183f19=null;}else _0x183f19=function(_0x10f96e,_0x1bb4ef){let _0x1e79d5=_0x1bb4ef['spec']['attributes'],_0x513130=_0x1bb4ef['spec']['class'];if(!_0x1e79d5&&!_0x513130)return _0x10f96e;return _0x10f96e||(_0x10f96e={'class':'cm-line'}),_0x1e79d5&&mD(_0x1e79d5,_0x10f96e),_0x513130&&(_0x10f96e['class']+='\x20'+_0x513130),_0x10f96e;}(_0x183f19,_0x23e47f);_0x1c4fc7>_0x19a724&&this['text']['skip'](_0x1c4fc7-_0x19a724);},'span':(_0x57534b,_0xe5a8fb,_0x39dd67,_0x4dcd3e)=>{for(let _0xc09dba=_0x57534b;_0xc09dba<_0xe5a8fb;){let _0x241f45=this['text']['next'](Math['min'](0x200,_0xe5a8fb-_0xc09dba));null==_0x241f45?(_0x316e12['addLineStartIfNotCovered'](_0x183f19),_0x316e12['addBreak'](),_0xc09dba++):(_0x316e12['ensureLine'](_0x183f19),_0x316e12['addText'](_0x241f45,_0x39dd67,_0xc09dba==_0x57534b?_0x4dcd3e:_0x39dd67['length']),_0xc09dba+=_0x241f45['length']),_0x183f19=null;}}});_0x316e12['addLineStartIfNotCovered'](_0x183f19),this['openWidget']=_0x5e7b72>_0x322ac3,this['openMarks']=_0x5e7b72;}['forward'](_0xf62add,_0x51f475,_0x534327=0x1){_0x51f475-_0xf62add<=0xa?this['old']['advance'](_0x51f475-_0xf62add,_0x534327,this['reuseWalker']):(this['old']['advance'](0x5,-0x1,this['reuseWalker']),this['old']['advance'](_0x51f475-_0xf62add-0xa,-0x1),this['old']['advance'](0x5,_0x534327,this['reuseWalker']));}getCompositionContext(_0x7c3109){let _0x3dbd4a=[],_0x35a497=null;for(let _0x234c87=_0x7c3109['parentNode'];;_0x234c87=_0x234c87['parentNode']){let _0x41a147=YQ['get'](_0x234c87);if(_0x234c87==this['view']['contentDOM'])break;_0x41a147 instanceof nj?_0x3dbd4a['push'](_0x41a147):(null==_0x41a147?void 0x0:_0x41a147['isLine']())?_0x35a497=_0x41a147:_0x41a147 instanceof ej||('DIV'!=_0x234c87['nodeName']||_0x35a497||_0x234c87==this['view']['contentDOM']?_0x35a497||_0x3dbd4a['push'](nj['of'](new _D({'tagName':_0x234c87['nodeName']['toLowerCase'](),'attributes':wD(_0x234c87)}),_0x234c87)):_0x35a497=new ij(_0x234c87,gj));}return{'line':_0x35a497,'marks':_0x3dbd4a};}};function pj(_0x42903e,_0x59530e){let _0x4111f8=_0x38659d=>{for(let _0x18e07c of _0x38659d['children'])if((_0x59530e?_0x18e07c['isText']():_0x18e07c['length'])||_0x4111f8(_0x18e07c))return!0x0;return!0x1;};return _0x4111f8(_0x42903e);}const gj={'class':'cm-line'};function Oj(_0x1ce60a){let _0x232c4b=YQ['get'](_0x1ce60a);return _0x232c4b&&_0x232c4b['setDOM'](_0x1ce60a['cloneNode']()),_0x1ce60a;}var wj=class extends bD{constructor(_0x556173){super(),this['tag']=_0x556173;}['eq'](_0x7f292a){return _0x7f292a['tag']==this['tag'];}toDOM(){return document['createElement'](this['tag']);}updateDOM(_0x3f2634){return _0x3f2634['nodeName']['toLowerCase']()==this['tag'];}get['isHidden'](){return!0x0;}};wj['inline']=new wj('span'),wj['block']=new wj('div');const bj=new class extends bD{toDOM(){return document['createElement']('br');}get['isHidden'](){return!0x0;}get editable(){return!0x0;}}();var yj=class{constructor(_0x48be25){this['view']=_0x48be25,this['decorations']=[],this['blockWrappers']=[],this['dynamicDecorationMap']=[!0x1],this['domChanged']=null,this['hasComposition']=null,this['editContextFormatting']=vD['none'],this['lastCompositionAfterCursor']=!0x1,this['minWidth']=0x0,this['minWidthFrom']=0x0,this['minWidthTo']=0x0,this['impreciseAnchor']=null,this['impreciseHead']=null,this['forceSelection']=!0x1,this['lastUpdate']=Date['now'](),this['updateDeco'](),this['tile']=new tj(_0x48be25,_0x48be25['contentDOM']),this['updateInner']([new qQ(0x0,0x0,0x0,_0x48be25['state']['doc']['length'])],null);}update(_0x3d3502){var _0x244106;let _0x4b0717=_0x3d3502['changedRanges'];this['minWidth']>0x0&&_0x4b0717['length']&&(_0x4b0717['every'](({fromA:_0x5588dd,toA:_0x300428})=>_0x300428<this['minWidthFrom']||_0x5588dd>this['minWidthTo'])?(this['minWidthFrom']=_0x3d3502['changes']['mapPos'](this['minWidthFrom'],0x1),this['minWidthTo']=_0x3d3502['changes']['mapPos'](this['minWidthTo'],0x1)):this['minWidth']=this['minWidthFrom']=this['minWidthTo']=0x0),this['updateEditContextFormatting'](_0x3d3502);let _0x9a8290=-0x1;this['view']['inputState']['composing']>=0x0&&!this['view']['observer']['editContext']&&((null===(_0x244106=this['domChanged'])||void 0x0===_0x244106?void 0x0:_0x244106['newSel'])?_0x9a8290=this['domChanged']['newSel']['head']:function(_0x3467e2,_0xf89cc0){let _0x3d43d2=!0x1;return _0xf89cc0&&_0x3467e2['iterChangedRanges']((_0x3abcc6,_0x169825)=>{_0x3abcc6<_0xf89cc0['to']&&_0x169825>_0xf89cc0['from']&&(_0x3d43d2=!0x0);}),_0x3d43d2;}(_0x3d3502['changes'],this['hasComposition'])||_0x3d3502['selectionSet']||(_0x9a8290=_0x3d3502['state']['selection']['main']['head']));let _0x81238=_0x9a8290>-0x1?function(_0x5a5d8b,_0x4fd63e,_0x5005ad){let _0x512400=_j(_0x5a5d8b,_0x5005ad);if(!_0x512400)return null;let {node:_0x296d22,from:_0x7b5e09,to:_0x28cd0c}=_0x512400,_0x4a0d4e=_0x296d22['nodeValue'];if(/[\n\r]/['test'](_0x4a0d4e))return null;if(_0x5a5d8b['state']['doc']['sliceString'](_0x512400['from'],_0x512400['to'])!=_0x4a0d4e)return null;let _0x8925a7=_0x4fd63e['invertedDesc'];return{'range':new qQ(_0x8925a7['mapPos'](_0x7b5e09),_0x8925a7['mapPos'](_0x28cd0c),_0x7b5e09,_0x28cd0c),'text':_0x296d22};}(this['view'],_0x3d3502['changes'],_0x9a8290):null;if(this['domChanged']=null,this['hasComposition']){let {from:_0x26ae54,to:_0x822105}=this['hasComposition'];_0x4b0717=new qQ(_0x26ae54,_0x822105,_0x3d3502['changes']['mapPos'](_0x26ae54,-0x1),_0x3d3502['changes']['mapPos'](_0x822105,0x1))['addToSet'](_0x4b0717['slice']());}this['hasComposition']=_0x81238?{'from':_0x81238['range']['fromB'],'to':_0x81238['range']['toB']}:null,(fD['ie']||fD['chrome'])&&!_0x81238&&_0x3d3502&&_0x3d3502['state']['doc']['lines']!=_0x3d3502['startState']['doc']['lines']&&(this['forceSelection']=!0x0);let _0x466cf1=this['decorations'],_0x135080=this['blockWrappers'];this['updateDeco']();let _0x3cbae6=function(_0x3167a7,_0x56a5e0,_0x32bb39){let _0x5f55ed=new Ej();return C$['compare'](_0x3167a7,_0x56a5e0,_0x32bb39,_0x5f55ed),_0x5f55ed['changes'];}(_0x466cf1,this['decorations'],_0x3d3502['changes']);_0x3cbae6['length']&&(_0x4b0717=qQ['extendWithRanges'](_0x4b0717,_0x3cbae6));let _0x328ae3=function(_0x1ee5d6,_0x3802c7,_0x50e118){let _0x4e144c=new Tj();return C$['compare'](_0x1ee5d6,_0x3802c7,_0x50e118,_0x4e144c),_0x4e144c['changes'];}(_0x135080,this['blockWrappers'],_0x3d3502['changes']);return _0x328ae3['length']&&(_0x4b0717=qQ['extendWithRanges'](_0x4b0717,_0x328ae3)),_0x81238&&!_0x4b0717['some'](_0x2ecee9=>_0x2ecee9['fromA']<=_0x81238['range']['fromA']&&_0x2ecee9['toA']>=_0x81238['range']['toA'])&&(_0x4b0717=_0x81238['range']['addToSet'](_0x4b0717['slice']())),!(0x2&this['tile']['flags']&&0x0==_0x4b0717['length'])&&(this['updateInner'](_0x4b0717,_0x81238),_0x3d3502['transactions']['length']&&(this['lastUpdate']=Date['now']()),!0x0);}updateInner(_0x58b32e,_0x472a12){this['view']['viewState']['mustMeasureContent']=!0x0;let {observer:_0x3f6071}=this['view'];_0x3f6071['ignore'](()=>{if(_0x472a12||_0x58b32e['length']){let _0x303fdc=this['tile'],_0x44c260=new mj(this['view'],_0x303fdc,this['blockWrappers'],this['decorations'],this['dynamicDecorationMap']);_0x472a12&&YQ['get'](_0x472a12['text'])&&_0x44c260['cache']['reused']['set'](YQ['get'](_0x472a12['text']),0x2),this['tile']=_0x44c260['run'](_0x58b32e,_0x472a12),vj(_0x303fdc,_0x44c260['cache']['reused']);}this['tile']['dom']['style']['height']=this['view']['viewState']['contentHeight']/this['view']['scaleY']+'px',this['tile']['dom']['style']['flexBasis']=this['minWidth']?this['minWidth']+'px':'';let _0x49f676=fD['chrome']||fD['ios']?{'node':_0x3f6071['selectionRange']['focusNode'],'written':!0x1}:void 0x0;this['tile']['sync'](_0x49f676),!_0x49f676||!_0x49f676['written']&&_0x3f6071['selectionRange']['focusNode']==_0x49f676['node']&&this['tile']['dom']['contains'](_0x49f676['node'])||(this['forceSelection']=!0x0),this['tile']['dom']['style']['height']='';});let _0x44d7b8=[];if(this['view']['viewport']['from']||this['view']['viewport']['to']<this['view']['state']['doc']['length']){for(let _0x1469c3 of this['tile']['children'])_0x1469c3['isWidget']()&&_0x1469c3['widget']instanceof Aj&&_0x44d7b8['push'](_0x1469c3['dom']);}_0x3f6071['updateGaps'](_0x44d7b8);}updateEditContextFormatting(_0x51a6d8){this['editContextFormatting']=this['editContextFormatting']['map'](_0x51a6d8['changes']);for(let _0x383735 of _0x51a6d8['transactions'])for(let _0x413d18 of _0x383735['effects'])_0x413d18['is'](CQ)&&(this['editContextFormatting']=_0x413d18['value']);}updateSelection(_0x50c523=!0x1,_0x3d1287=!0x1){!_0x50c523&&this['view']['observer']['selectionRange']['focusNode']||this['view']['observer']['readSelectionRange']();let {dom:_0x24c1a8}=this['tile'],_0x1e3289=this['view']['root']['activeElement'],_0xeafcd4=_0x1e3289==_0x24c1a8,_0x323126=!_0xeafcd4&&!(this['view']['state']['facet'](PQ)||_0x24c1a8['tabIndex']>-0x1)&&CD(_0x24c1a8,this['view']['observer']['selectionRange'])&&!(_0x1e3289&&_0x24c1a8['contains'](_0x1e3289));if(!(_0xeafcd4||_0x3d1287||_0x323126))return;let _0x450843=this['forceSelection'];this['forceSelection']=!0x1;let _0x2cb794,_0x3d4842,_0x58f505=this['view']['state']['selection']['main'];if(_0x58f505['empty']?_0x3d4842=_0x2cb794=this['inlineDOMNearPos'](_0x58f505['anchor'],_0x58f505['assoc']||0x1):(_0x3d4842=this['inlineDOMNearPos'](_0x58f505['head'],_0x58f505['head']==_0x58f505['from']?0x1:-0x1),_0x2cb794=this['inlineDOMNearPos'](_0x58f505['anchor'],_0x58f505['anchor']==_0x58f505['from']?0x1:-0x1)),fD['gecko']&&_0x58f505['empty']&&!this['hasComposition']&&(0x1==(_0x6d92b3=_0x2cb794)['node']['nodeType']&&_0x6d92b3['node']['firstChild']&&(0x0==_0x6d92b3['offset']||'false'==_0x6d92b3['node']['childNodes'][_0x6d92b3['offset']-0x1]['contentEditable'])&&(_0x6d92b3['offset']==_0x6d92b3['node']['childNodes']['length']||'false'==_0x6d92b3['node']['childNodes'][_0x6d92b3['offset']]['contentEditable']))){let _0x1ad49b=document['createTextNode']('');this['view']['observer']['ignore'](()=>_0x2cb794['node']['insertBefore'](_0x1ad49b,_0x2cb794['node']['childNodes'][_0x2cb794['offset']]||null)),_0x2cb794=_0x3d4842=new zD(_0x1ad49b,0x0),_0x450843=!0x0;}var _0x6d92b3;let _0x1ea49f=this['view']['observer']['selectionRange'];!_0x450843&&_0x1ea49f['focusNode']&&(PD(_0x2cb794['node'],_0x2cb794['offset'],_0x1ea49f['anchorNode'],_0x1ea49f['anchorOffset'])&&PD(_0x3d4842['node'],_0x3d4842['offset'],_0x1ea49f['focusNode'],_0x1ea49f['focusOffset'])||this['suppressWidgetCursorChange'](_0x1ea49f,_0x58f505))||(this['view']['observer']['ignore'](()=>{fD['android']&&fD['chrome']&&_0x24c1a8['contains'](_0x1ea49f['focusNode'])&&function(_0x4ab6b5,_0x19ca6e){for(let _0x2a7c06=_0x4ab6b5;_0x2a7c06&&_0x2a7c06!=_0x19ca6e;_0x2a7c06=_0x2a7c06['assignedSlot']||_0x2a7c06['parentNode'])if(0x1==_0x2a7c06['nodeType']&&'false'==_0x2a7c06['contentEditable'])return!0x0;return!0x1;}(_0x1ea49f['focusNode'],_0x24c1a8)&&(_0x24c1a8['blur'](),_0x24c1a8['focus']({'preventScroll':!0x0}));let _0x505137=kD(this['view']['root']);if(_0x505137){if(_0x58f505['empty']){if(fD['gecko']){let _0x217f82=function(_0x4ed5a8,_0x4da372){return 0x1!=_0x4ed5a8['nodeType']?0x0:(_0x4da372&&'false'==_0x4ed5a8['childNodes'][_0x4da372-0x1]['contentEditable']?0x1:0x0)|(_0x4da372<_0x4ed5a8['childNodes']['length']&&'false'==_0x4ed5a8['childNodes'][_0x4da372]['contentEditable']?0x2:0x0);}(_0x2cb794['node'],_0x2cb794['offset']);if(_0x217f82&&0x3!=_0x217f82){let _0x46d82b=(0x1==_0x217f82?qD:WD)(_0x2cb794['node'],_0x2cb794['offset']);_0x46d82b&&(_0x2cb794=new zD(_0x46d82b['node'],_0x46d82b['offset']));}}_0x505137['collapse'](_0x2cb794['node'],_0x2cb794['offset']),null!=_0x58f505['bidiLevel']&&void 0x0!==_0x505137['caretBidiLevel']&&(_0x505137['caretBidiLevel']=_0x58f505['bidiLevel']);}else{if(_0x505137['extend']){_0x505137['collapse'](_0x2cb794['node'],_0x2cb794['offset']);try{_0x505137['extend'](_0x3d4842['node'],_0x3d4842['offset']);}catch(_0x4e9c3b){}}else{let _0x434af7=document['createRange']();_0x58f505['anchor']>_0x58f505['head']&&([_0x2cb794,_0x3d4842]=[_0x3d4842,_0x2cb794]),_0x434af7['setEnd'](_0x3d4842['node'],_0x3d4842['offset']),_0x434af7['setStart'](_0x2cb794['node'],_0x2cb794['offset']),_0x505137['removeAllRanges'](),_0x505137['addRange'](_0x434af7);}}}else;_0x323126&&this['view']['root']['activeElement']==_0x24c1a8&&(_0x24c1a8['blur'](),_0x1e3289&&_0x1e3289['focus']());}),this['view']['observer']['setSelectionRange'](_0x2cb794,_0x3d4842)),this['impreciseAnchor']=_0x2cb794['precise']?null:new zD(_0x1ea49f['anchorNode'],_0x1ea49f['anchorOffset']),this['impreciseHead']=_0x3d4842['precise']?null:new zD(_0x1ea49f['focusNode'],_0x1ea49f['focusOffset']);}suppressWidgetCursorChange(_0xe5d468,_0x1e85fb){return this['hasComposition']&&_0x1e85fb['empty']&&PD(_0xe5d468['focusNode'],_0xe5d468['focusOffset'],_0xe5d468['anchorNode'],_0xe5d468['anchorOffset'])&&this['posFromDOM'](_0xe5d468['focusNode'],_0xe5d468['focusOffset'])==_0x1e85fb['head'];}['enforceCursorAssoc'](){if(this['hasComposition'])return;let {view:_0x429476}=this,_0x1f23ec=_0x429476['state']['selection']['main'],_0x13fc98=kD(_0x429476['root']),{anchorNode:_0xcfcc1e,anchorOffset:_0x4f0a14}=_0x429476['observer']['selectionRange'];if(!(_0x13fc98&&_0x1f23ec['empty']&&_0x1f23ec['assoc']&&_0x13fc98['modify']))return;let _0x3b2373=this['lineAt'](_0x1f23ec['head'],_0x1f23ec['assoc']);if(!_0x3b2373)return;let _0x3184c3=_0x3b2373['posAtStart'];if(_0x1f23ec['head']==_0x3184c3||_0x1f23ec['head']==_0x3184c3+_0x3b2373['length'])return;let _0x4d78a6=this['coordsAt'](_0x1f23ec['head'],-0x1),_0x1b5120=this['coordsAt'](_0x1f23ec['head'],0x1);if(!_0x4d78a6||!_0x1b5120||_0x4d78a6['bottom']>_0x1b5120['top'])return;let _0x4e7ee0=this['domAtPos'](_0x1f23ec['head']+_0x1f23ec['assoc'],_0x1f23ec['assoc']);_0x13fc98['collapse'](_0x4e7ee0['node'],_0x4e7ee0['offset']),_0x13fc98['modify']('move',_0x1f23ec['assoc']<0x0?'forward':'backward','lineboundary'),_0x429476['observer']['readSelectionRange']();let _0x4f7862=_0x429476['observer']['selectionRange'];_0x429476['docView']['posFromDOM'](_0x4f7862['anchorNode'],_0x4f7862['anchorOffset'])!=_0x1f23ec['from']&&_0x13fc98['collapse'](_0xcfcc1e,_0x4f0a14);}['posFromDOM'](_0x38b5a8,_0x33f57d){let _0x4bcbd4=this['tile']['nearest'](_0x38b5a8);if(!_0x4bcbd4)return 0x2&this['tile']['dom']['compareDocumentPosition'](_0x38b5a8)?0x0:this['view']['state']['doc']['length'];let _0x3877f3=_0x4bcbd4['posAtStart'];if(!_0x4bcbd4['isComposite']())return _0x4bcbd4['isText']()?_0x38b5a8==_0x4bcbd4['dom']?_0x3877f3+_0x33f57d:_0x3877f3+(_0x33f57d?_0x4bcbd4['length']:0x0):_0x3877f3;{let _0x4f0f0b;if(_0x38b5a8==_0x4bcbd4['dom'])_0x4f0f0b=_0x4bcbd4['dom']['childNodes'][_0x33f57d];else{let _0x2d3211=0x0==$D(_0x38b5a8)?0x0:0x0==_0x33f57d?-0x1:0x1;for(;;){let _0x1b82e4=_0x38b5a8['parentNode'];if(_0x1b82e4==_0x4bcbd4['dom'])break;0x0==_0x2d3211&&_0x1b82e4['firstChild']!=_0x1b82e4['lastChild']&&(_0x2d3211=_0x38b5a8==_0x1b82e4['firstChild']?-0x1:0x1),_0x38b5a8=_0x1b82e4;}_0x4f0f0b=_0x2d3211<0x0?_0x38b5a8:_0x38b5a8['nextSibling'];}if(_0x4f0f0b==_0x4bcbd4['dom']['firstChild'])return _0x3877f3;for(;_0x4f0f0b&&!YQ['get'](_0x4f0f0b);)_0x4f0f0b=_0x4f0f0b['nextSibling'];if(!_0x4f0f0b)return _0x3877f3+_0x4bcbd4['length'];for(let _0x4927c4=0x0,_0x25d384=_0x3877f3;;_0x4927c4++){let _0x6e553f=_0x4bcbd4['children'][_0x4927c4];if(_0x6e553f['dom']==_0x4f0f0b)return _0x25d384;_0x25d384+=_0x6e553f['length']+_0x6e553f['breakAfter'];}}}domAtPos(_0x455bbd,_0x277aad){let {tile:_0x29e547,offset:_0x2d203b}=this['tile']['resolveBlock'](_0x455bbd,_0x277aad);return _0x29e547['isWidget']()?_0x29e547['domPosFor'](_0x455bbd,_0x277aad):_0x29e547['domIn'](_0x2d203b,_0x277aad);}['inlineDOMNearPos'](_0x5871f0,_0x3fce71){let _0x3e5071,_0x3b6855,_0x3562a6=-0x1,_0x16ffbb=!0x1,_0x5a5112=-0x1,_0xa22a59=!0x1;return this['tile']['blockTiles']((_0x356cb7,_0x376e5c)=>{if(_0x356cb7['isWidget']()){if(0x20&_0x356cb7['flags']&&_0x376e5c>=_0x5871f0)return!0x0;0x10&_0x356cb7['flags']&&(_0x16ffbb=!0x0);}else{let _0x255568=_0x376e5c+_0x356cb7['length'];if(_0x376e5c<=_0x5871f0&&(_0x3e5071=_0x356cb7,_0x3562a6=_0x5871f0-_0x376e5c,_0x16ffbb=_0x255568<_0x5871f0),_0x255568>=_0x5871f0&&!_0x3b6855&&(_0x3b6855=_0x356cb7,_0x5a5112=_0x5871f0-_0x376e5c,_0xa22a59=_0x376e5c>_0x5871f0),_0x376e5c>_0x5871f0&&_0x3b6855)return!0x0;}}),_0x3e5071||_0x3b6855?(_0x16ffbb&&_0x3b6855?_0x3e5071=null:_0xa22a59&&_0x3e5071&&(_0x3b6855=null),_0x3e5071&&_0x3fce71<0x0||!_0x3b6855?_0x3e5071['domIn'](_0x3562a6,_0x3fce71):_0x3b6855['domIn'](_0x5a5112,_0x3fce71)):this['domAtPos'](_0x5871f0,_0x3fce71);}coordsAt(_0x51e043,_0x1f7ee2){let {tile:_0x5d8921,offset:_0x4c380f}=this['tile']['resolveBlock'](_0x51e043,_0x1f7ee2);return _0x5d8921['isWidget']()?_0x5d8921['widget']instanceof Aj?null:_0x5d8921['coordsInWidget'](_0x4c380f,_0x1f7ee2,!0x0):_0x5d8921['coordsIn'](_0x4c380f,_0x1f7ee2);}lineAt(_0x5d42c0,_0x2c85f7){let {tile:_0x49ea2a}=this['tile']['resolveBlock'](_0x5d42c0,_0x2c85f7);return _0x49ea2a['isLine']()?_0x49ea2a:null;}['coordsForChar'](_0x37e060){let {tile:_0x1bb76f,offset:_0x2c7934}=this['tile']['resolveBlock'](_0x37e060,0x1);if(!_0x1bb76f['isLine']())return null;return function _0x23161d(_0x1534a3,_0x4d6805){if(_0x1534a3['isComposite']())for(let _0x2bbf7e of _0x1534a3['children']){if(_0x2bbf7e['length']>=_0x4d6805){let _0x409574=_0x23161d(_0x2bbf7e,_0x4d6805);if(_0x409574)return _0x409574;}if((_0x4d6805-=_0x2bbf7e['length'])<0x0)break;}else{if(_0x1534a3['isText']()&&_0x4d6805<_0x1534a3['length']){let _0x16aa58=OL(_0x1534a3['text'],_0x4d6805);if(_0x16aa58==_0x4d6805)return null;let _0x5b4ba0=ZD(_0x1534a3['dom'],_0x4d6805,_0x16aa58)['getClientRects']();for(let _0x4a1112=0x0;_0x4a1112<_0x5b4ba0['length'];_0x4a1112++){let _0x4ea1ad=_0x5b4ba0[_0x4a1112];if(_0x4a1112==_0x5b4ba0['length']-0x1||_0x4ea1ad['top']<_0x4ea1ad['bottom']&&_0x4ea1ad['left']<_0x4ea1ad['right'])return _0x4ea1ad;}}}return null;}(_0x1bb76f,_0x2c7934);}measureVisibleLineHeights(_0x45619e){let _0x42a3e6=[],{from:_0x48741d,to:_0x3f3cf6}=_0x45619e,_0x32b3dd=this['view']['contentDOM']['clientWidth'],_0x1ecc5b=_0x32b3dd>Math['max'](this['view']['scrollDOM']['clientWidth'],this['minWidth'])+0x1,_0x75672e=-0x1,_0x57a8e0=this['view']['textDirection']==YD['LTR'],_0x5d9994=0x0,_0xb523bb=(_0x250108,_0xbc36a1,_0x186b1a)=>{for(let _0x2e6c52=0x0;_0x2e6c52<_0x250108['children']['length']&&!(_0xbc36a1>_0x3f3cf6);_0x2e6c52++){let _0x2bdb30=_0x250108['children'][_0x2e6c52],_0x5ac0a0=_0xbc36a1+_0x2bdb30['length'],_0x49920b=_0x2bdb30['dom']['getBoundingClientRect'](),{height:_0xf0e339}=_0x49920b;if(_0x186b1a&&!_0x2e6c52&&(_0x5d9994+=_0x49920b['top']-_0x186b1a['top']),_0x2bdb30 instanceof ej)_0x5ac0a0>_0x48741d&&_0xb523bb(_0x2bdb30,_0xbc36a1,_0x49920b);else{if(_0xbc36a1>=_0x48741d&&(_0x5d9994>0x0&&_0x42a3e6['push'](-_0x5d9994),_0x42a3e6['push'](_0xf0e339+_0x5d9994),_0x5d9994=0x0,_0x1ecc5b)){let _0x4cfa67=_0x2bdb30['dom']['lastChild'],_0x3ed904=_0x4cfa67?RD(_0x4cfa67):[];if(_0x3ed904['length']){let _0x20adf3=_0x3ed904[_0x3ed904['length']-0x1],_0xf7dd05=_0x57a8e0?_0x20adf3['right']-_0x49920b['left']:_0x49920b['right']-_0x20adf3['left'];_0xf7dd05>_0x75672e&&(_0x75672e=_0xf7dd05,this['minWidth']=_0x32b3dd,this['minWidthFrom']=_0xbc36a1,this['minWidthTo']=_0x5ac0a0);}}}_0x186b1a&&_0x2e6c52==_0x250108['children']['length']-0x1&&(_0x5d9994+=_0x186b1a['bottom']-_0x49920b['bottom']),_0xbc36a1=_0x5ac0a0+_0x2bdb30['breakAfter'];}};return _0xb523bb(this['tile'],0x0,null),_0x42a3e6;}textDirectionAt(_0x442ac5){let {tile:_0x34abbf}=this['tile']['resolveBlock'](_0x442ac5,0x1);return'rtl'==getComputedStyle(_0x34abbf['dom'])['direction']?YD['RTL']:YD['LTR'];}measureTextSize(){let _0x1c425b=this['tile']['blockTiles'](_0x3affab=>{if(_0x3affab['isLine']()&&_0x3affab['children']['length']&&_0x3affab['length']<=0x14){let _0x5d9c7c,_0x15b1ff=0x0;for(let _0x381822 of _0x3affab['children']){if(!_0x381822['isText']()||/[^ -~]/['test'](_0x381822['text']))return;let _0x536908=RD(_0x381822['dom']);if(0x1!=_0x536908['length'])return;_0x15b1ff+=_0x536908[0x0]['width'],_0x5d9c7c=_0x536908[0x0]['height'];}if(_0x15b1ff)return{'lineHeight':_0x3affab['dom']['getBoundingClientRect']()['height'],'charWidth':_0x15b1ff/_0x3affab['length'],'textHeight':_0x5d9c7c};}});if(_0x1c425b)return _0x1c425b;let _0x6d1153,_0x109008,_0x20f829,_0x429535=document['createElement']('div');return _0x429535['className']='cm-line',_0x429535['style']['width']='99999px',_0x429535['style']['position']='absolute',_0x429535['textContent']='abc\x20def\x20ghi\x20jkl\x20mno\x20pqr\x20stu',this['view']['observer']['ignore'](()=>{this['tile']['dom']['appendChild'](_0x429535);let _0x431207=RD(_0x429535['firstChild'])[0x0];_0x6d1153=_0x429535['getBoundingClientRect']()['height'],_0x109008=_0x431207&&_0x431207['width']?_0x431207['width']/0x1b:0x7,_0x20f829=_0x431207&&_0x431207['height']?_0x431207['height']:_0x6d1153,_0x429535['remove']();}),{'lineHeight':_0x6d1153,'charWidth':_0x109008,'textHeight':_0x20f829};}computeBlockGapDeco(){let _0x172a8=[],_0x2616fe=this['view']['viewState'];for(let _0x3aa936=0x0,_0x48dd92=0x0;;_0x48dd92++){let _0x1d6458=_0x48dd92==_0x2616fe['viewports']['length']?null:_0x2616fe['viewports'][_0x48dd92],_0x22082b=_0x1d6458?_0x1d6458['from']-0x1:this['view']['state']['doc']['length'];if(_0x22082b>_0x3aa936){let _0x55bb3c=(_0x2616fe['lineBlockAt'](_0x22082b)['bottom']-_0x2616fe['lineBlockAt'](_0x3aa936)['top'])/this['view']['scaleY'];_0x172a8['push'](vD['replace']({'widget':new Aj(_0x55bb3c),'block':!0x0,'inclusive':!0x0,'isBlockGap':!0x0})['range'](_0x3aa936,_0x22082b));}if(!_0x1d6458)break;_0x3aa936=_0x1d6458['to']+0x1;}return vD['set'](_0x172a8);}updateDeco(){let _0xdc22fe=0x1,_0x2744a4=this['view']['state']['facet'](jQ)['map'](_0x876d7b=>(this['dynamicDecorationMap'][_0xdc22fe++]='function'==typeof _0x876d7b)?_0x876d7b(this['view']):_0x876d7b),_0x415f4a=!0x1,_0x67880c=this['view']['state']['facet'](VQ)['map']((_0x4a6372,_0x4b005c)=>{let _0x75b052='function'==typeof _0x4a6372;return _0x75b052&&(_0x415f4a=!0x0),_0x75b052?_0x4a6372(this['view']):_0x4a6372;});for(_0x67880c['length']&&(this['dynamicDecorationMap'][_0xdc22fe++]=_0x415f4a,_0x2744a4['push'](C$['join'](_0x67880c))),this['decorations']=[this['editContextFormatting'],..._0x2744a4,this['computeBlockGapDeco'](),this['view']['viewState']['lineGapDeco']];_0xdc22fe<this['decorations']['length'];)this['dynamicDecorationMap'][_0xdc22fe++]=!0x1;this['blockWrappers']=this['view']['state']['facet'](UQ)['map'](_0x274648=>'function'==typeof _0x274648?_0x274648(this['view']):_0x274648);}scrollIntoView(_0x5163a5){var _0xed87b9;if(_0x5163a5['isSnapshot']){let _0x30bfad=this['view']['viewState']['lineBlockAt'](_0x5163a5['range']['head']);return this['view']['scrollDOM']['scrollTop']=_0x30bfad['top']-_0x5163a5['yMargin'],void(this['view']['scrollDOM']['scrollLeft']=_0x5163a5['xMargin']);}for(let _0x59d003 of this['view']['state']['facet'](IQ))try{if(_0x59d003(this['view'],_0x5163a5['range'],_0x5163a5))return!0x0;}catch(_0x561034){RQ(this['view']['state'],_0x561034,'scroll\x20handler');}let _0x53dae0,{range:_0x1e81d2}=_0x5163a5,_0x545922=this['coordsAt'](_0x1e81d2['head'],null!==(_0xed87b9=_0x1e81d2['assoc'])&&void 0x0!==_0xed87b9?_0xed87b9:_0x1e81d2['empty']?0x0:_0x1e81d2['head']>_0x1e81d2['anchor']?-0x1:0x1);if(!_0x545922)return;!_0x1e81d2['empty']&&(_0x53dae0=this['coordsAt'](_0x1e81d2['anchor'],_0x1e81d2['anchor']>_0x1e81d2['head']?-0x1:0x1))&&(_0x545922={'left':Math['min'](_0x545922['left'],_0x53dae0['left']),'top':Math['min'](_0x545922['top'],_0x53dae0['top']),'right':Math['max'](_0x545922['right'],_0x53dae0['right']),'bottom':Math['max'](_0x545922['bottom'],_0x53dae0['bottom'])});let _0x589812=GQ(this['view']),_0x640cae={'left':_0x545922['left']-_0x589812['left'],'top':_0x545922['top']-_0x589812['top'],'right':_0x545922['right']+_0x589812['right'],'bottom':_0x545922['bottom']+_0x589812['bottom']},{offsetWidth:_0x41ca52,offsetHeight:_0x1370b2}=this['view']['scrollDOM'];if(function(_0x54c9bc,_0x4827be,_0x40f4e2,_0x3c7d57,_0xc5f583,_0x2e184f,_0x7ed254,_0x5b6afd){let _0x4a752f=_0x54c9bc['ownerDocument'],_0x1c81c7=_0x4a752f['defaultView']||window;for(let _0x3bcdf7=_0x54c9bc,_0x4dc30f=!0x1;_0x3bcdf7&&!_0x4dc30f;)if(0x1==_0x3bcdf7['nodeType']){let _0x4f910b,_0x2e4b4d=_0x3bcdf7==_0x4a752f['body'],_0x3b2e31=0x1,_0x3ca82e=0x1;if(_0x2e4b4d)_0x4f910b=QD(_0x1c81c7);else{if(/^(fixed|sticky)$/['test'](getComputedStyle(_0x3bcdf7)['position'])&&(_0x4dc30f=!0x0),_0x3bcdf7['scrollHeight']<=_0x3bcdf7['clientHeight']&&_0x3bcdf7['scrollWidth']<=_0x3bcdf7['clientWidth']){_0x3bcdf7=_0x3bcdf7['assignedSlot']||_0x3bcdf7['parentNode'];continue;}let _0x54b6ff=_0x3bcdf7['getBoundingClientRect']();({scaleX:_0x3b2e31,scaleY:_0x3ca82e}=jD(_0x3bcdf7,_0x54b6ff),_0x4f910b={'left':_0x54b6ff['left'],'right':_0x54b6ff['left']+_0x3bcdf7['clientWidth']*_0x3b2e31,'top':_0x54b6ff['top'],'bottom':_0x54b6ff['top']+_0x3bcdf7['clientHeight']*_0x3ca82e});}let _0x3e28fc=0x0,_0x12b0c5=0x0;if('nearest'==_0xc5f583)_0x4827be['top']<_0x4f910b['top']+_0x7ed254?(_0x12b0c5=_0x4827be['top']-(_0x4f910b['top']+_0x7ed254),_0x40f4e2>0x0&&_0x4827be['bottom']>_0x4f910b['bottom']+_0x12b0c5&&(_0x12b0c5=_0x4827be['bottom']-_0x4f910b['bottom']+_0x7ed254)):_0x4827be['bottom']>_0x4f910b['bottom']-_0x7ed254&&(_0x12b0c5=_0x4827be['bottom']-_0x4f910b['bottom']+_0x7ed254,_0x40f4e2<0x0&&_0x4827be['top']-_0x12b0c5<_0x4f910b['top']&&(_0x12b0c5=_0x4827be['top']-(_0x4f910b['top']+_0x7ed254)));else{let _0x5a482a=_0x4827be['bottom']-_0x4827be['top'],_0x5ca4f0=_0x4f910b['bottom']-_0x4f910b['top'];_0x12b0c5=('center'==_0xc5f583&&_0x5a482a<=_0x5ca4f0?_0x4827be['top']+_0x5a482a/0x2-_0x5ca4f0/0x2:'start'==_0xc5f583||'center'==_0xc5f583&&_0x40f4e2<0x0?_0x4827be['top']-_0x7ed254:_0x4827be['bottom']-_0x5ca4f0+_0x7ed254)-_0x4f910b['top'];}if('nearest'==_0x3c7d57?_0x4827be['left']<_0x4f910b['left']+_0x2e184f?(_0x3e28fc=_0x4827be['left']-(_0x4f910b['left']+_0x2e184f),_0x40f4e2>0x0&&_0x4827be['right']>_0x4f910b['right']+_0x3e28fc&&(_0x3e28fc=_0x4827be['right']-_0x4f910b['right']+_0x2e184f)):_0x4827be['right']>_0x4f910b['right']-_0x2e184f&&(_0x3e28fc=_0x4827be['right']-_0x4f910b['right']+_0x2e184f,_0x40f4e2<0x0&&_0x4827be['left']<_0x4f910b['left']+_0x3e28fc&&(_0x3e28fc=_0x4827be['left']-(_0x4f910b['left']+_0x2e184f))):_0x3e28fc=('center'==_0x3c7d57?_0x4827be['left']+(_0x4827be['right']-_0x4827be['left'])/0x2-(_0x4f910b['right']-_0x4f910b['left'])/0x2:'start'==_0x3c7d57==_0x5b6afd?_0x4827be['left']-_0x2e184f:_0x4827be['right']-(_0x4f910b['right']-_0x4f910b['left'])+_0x2e184f)-_0x4f910b['left'],_0x3e28fc||_0x12b0c5){if(_0x2e4b4d)_0x1c81c7['scrollBy'](_0x3e28fc,_0x12b0c5);else{let _0x5366b0=0x0,_0x1bfada=0x0;if(_0x12b0c5){let _0x142dfc=_0x3bcdf7['scrollTop'];_0x3bcdf7['scrollTop']+=_0x12b0c5/_0x3ca82e,_0x1bfada=(_0x3bcdf7['scrollTop']-_0x142dfc)*_0x3ca82e;}if(_0x3e28fc){let _0x58d702=_0x3bcdf7['scrollLeft'];_0x3bcdf7['scrollLeft']+=_0x3e28fc/_0x3b2e31,_0x5366b0=(_0x3bcdf7['scrollLeft']-_0x58d702)*_0x3b2e31;}_0x4827be={'left':_0x4827be['left']-_0x5366b0,'top':_0x4827be['top']-_0x1bfada,'right':_0x4827be['right']-_0x5366b0,'bottom':_0x4827be['bottom']-_0x1bfada},_0x5366b0&&Math['abs'](_0x5366b0-_0x3e28fc)<0x1&&(_0x3c7d57='nearest'),_0x1bfada&&Math['abs'](_0x1bfada-_0x12b0c5)<0x1&&(_0xc5f583='nearest');}}if(_0x2e4b4d)break;(_0x4827be['top']<_0x4f910b['top']||_0x4827be['bottom']>_0x4f910b['bottom']||_0x4827be['left']<_0x4f910b['left']||_0x4827be['right']>_0x4f910b['right'])&&(_0x4827be={'left':Math['max'](_0x4827be['left'],_0x4f910b['left']),'right':Math['min'](_0x4827be['right'],_0x4f910b['right']),'top':Math['max'](_0x4827be['top'],_0x4f910b['top']),'bottom':Math['min'](_0x4827be['bottom'],_0x4f910b['bottom'])}),_0x3bcdf7=_0x3bcdf7['assignedSlot']||_0x3bcdf7['parentNode'];}else{if(0xb!=_0x3bcdf7['nodeType'])break;_0x3bcdf7=_0x3bcdf7['host'];}}(this['view']['scrollDOM'],_0x640cae,_0x1e81d2['head']<_0x1e81d2['anchor']?-0x1:0x1,_0x5163a5['x'],_0x5163a5['y'],Math['max'](Math['min'](_0x5163a5['xMargin'],_0x41ca52),-_0x41ca52),Math['max'](Math['min'](_0x5163a5['yMargin'],_0x1370b2),-_0x1370b2),this['view']['textDirection']==YD['LTR']),window['visualViewport']&&window['innerHeight']-window['visualViewport']['height']>0x1&&(_0x545922['top']>window['pageYOffset']+window['visualViewport']['offsetTop']+window['visualViewport']['height']||_0x545922['bottom']<window['pageYOffset']+window['visualViewport']['offsetTop'])){let _0x5d0c5d=this['view']['docView']['lineAt'](_0x1e81d2['head'],0x1);_0x5d0c5d&&_0x5d0c5d['dom']['scrollIntoView']({'block':'nearest'});}}lineHasWidget(_0xd97a06){let _0x137f03=_0x498953=>_0x498953['isWidget']()||_0x498953['children']['some'](_0x137f03);return _0x137f03(this['tile']['resolveBlock'](_0xd97a06,0x1)['tile']);}destroy(){vj(this['tile']);}};function vj(_0x29a23a,_0x5f8b4a){let _0x2a5431=null==_0x5f8b4a?void 0x0:_0x5f8b4a['get'](_0x29a23a);if(0x1!=_0x2a5431){null==_0x2a5431&&_0x29a23a['destroy']();for(let _0x181854 of _0x29a23a['children'])vj(_0x181854,_0x5f8b4a);}}function _j(_0x3de3e2,_0x398a3d){let _0x4bd22d=_0x3de3e2['observer']['selectionRange'];if(!_0x4bd22d['focusNode'])return null;let _0x10c60d=qD(_0x4bd22d['focusNode'],_0x4bd22d['focusOffset']),_0x1fd9d5=WD(_0x4bd22d['focusNode'],_0x4bd22d['focusOffset']),_0x33de64=_0x10c60d||_0x1fd9d5;if(_0x1fd9d5&&_0x10c60d&&_0x1fd9d5['node']!=_0x10c60d['node']){let _0x3ab5e8=YQ['get'](_0x1fd9d5['node']);if(!_0x3ab5e8||_0x3ab5e8['isText']()&&_0x3ab5e8['text']!=_0x1fd9d5['node']['nodeValue'])_0x33de64=_0x1fd9d5;else{if(_0x3de3e2['docView']['lastCompositionAfterCursor']){let _0x1ac902=YQ['get'](_0x10c60d['node']);!_0x1ac902||_0x1ac902['isText']()&&_0x1ac902['text']!=_0x10c60d['node']['nodeValue']||(_0x33de64=_0x1fd9d5);}}}if(_0x3de3e2['docView']['lastCompositionAfterCursor']=_0x33de64!=_0x10c60d,!_0x33de64)return null;let _0x5b2569=_0x398a3d-_0x33de64['offset'];return{'from':_0x5b2569,'to':_0x5b2569+_0x33de64['node']['nodeValue']['length'],'node':_0x33de64['node']};}let Ej=class DecorationComparator{constructor(){this['changes']=[];}['compareRange'](_0x585eb0,_0x376037){SD(_0x585eb0,_0x376037,this['changes']);}comparePoint(_0x270a3a,_0x332b8e){SD(_0x270a3a,_0x332b8e,this['changes']);}['boundChange'](_0x3e3bbb){SD(_0x3e3bbb,_0x3e3bbb,this['changes']);}};var Tj=class{constructor(){this['changes']=[];}['compareRange'](_0x4e616f,_0x12d7ad){SD(_0x4e616f,_0x12d7ad,this['changes']);}comparePoint(){}['boundChange'](_0x192e5f){SD(_0x192e5f,_0x192e5f,this['changes']);}},Aj=class extends bD{constructor(_0x239c45){super(),this['height']=_0x239c45;}toDOM(){let _0x111e2e=document['createElement']('div');return _0x111e2e['className']='cm-gap',this['updateDOM'](_0x111e2e),_0x111e2e;}['eq'](_0x13e4a7){return _0x13e4a7['height']==this['height'];}updateDOM(_0x141d06){return _0x141d06['style']['height']=this['height']+'px',!0x0;}get editable(){return!0x0;}get estimatedHeight(){return this['height'];}ignoreEvent(){return!0x1;}};function Sj(_0xc2fa43,_0x1be61b,_0x1d28c2){let _0x22f658=_0xc2fa43['lineBlockAt'](_0x1be61b);if(Array['isArray'](_0x22f658['type'])){let _0x1192b3;for(let _0x50783b of _0x22f658['type']){if(_0x50783b['from']>_0x1be61b)break;if(!(_0x50783b['to']<_0x1be61b)){if(_0x50783b['from']<_0x1be61b&&_0x50783b['to']>_0x1be61b)return _0x50783b;_0x1192b3&&(_0x50783b['type']!=yD['Text']||_0x1192b3['type']==_0x50783b['type']&&!(_0x1d28c2<0x0?_0x50783b['from']<_0x1be61b:_0x50783b['to']>_0x1be61b))||(_0x1192b3=_0x50783b);}}return _0x1192b3||_0x22f658;}return _0x22f658;}function Ij(_0x54b1b5,_0x4ced0d,_0x53beb6,_0x40028b){let _0x30fc8e=_0x54b1b5['state']['doc']['lineAt'](_0x4ced0d['head']),_0x5d8e67=_0x54b1b5['bidiSpans'](_0x30fc8e),_0x4618e6=_0x54b1b5['textDirectionAt'](_0x30fc8e['from']);for(let _0x46f521=_0x4ced0d,_0x308fae=null;;){let _0x46df92=mQ(_0x30fc8e,_0x5d8e67,_0x4618e6,_0x46f521,_0x53beb6),_0x5ac72e=fQ;if(!_0x46df92){if(_0x30fc8e['number']==(_0x53beb6?_0x54b1b5['state']['doc']['lines']:0x1))return _0x46f521;_0x5ac72e='\x0a',_0x30fc8e=_0x54b1b5['state']['doc']['line'](_0x30fc8e['number']+(_0x53beb6?0x1:-0x1)),_0x5d8e67=_0x54b1b5['bidiSpans'](_0x30fc8e),_0x46df92=_0x54b1b5['visualLineSide'](_0x30fc8e,!_0x53beb6);}if(_0x308fae){if(!_0x308fae(_0x5ac72e))return _0x46f521;}else{if(!_0x40028b)return _0x46df92;_0x308fae=_0x40028b(_0x5ac72e);}_0x46f521=_0x46df92;}}function kj(_0x494dd6,_0x48cb87,_0x5a53a0){for(;;){let _0x5f4222=0x0;for(let _0x4d3daf of _0x494dd6)_0x4d3daf['between'](_0x48cb87-0x1,_0x48cb87+0x1,(_0x29dd96,_0x36088b,_0x1cd61e)=>{if(_0x48cb87>_0x29dd96&&_0x48cb87<_0x36088b){let _0x139e49=_0x5f4222||_0x5a53a0||(_0x48cb87-_0x29dd96<_0x36088b-_0x48cb87?-0x1:0x1);_0x48cb87=_0x139e49<0x0?_0x29dd96:_0x36088b,_0x5f4222=_0x139e49;}});if(!_0x5f4222)return _0x48cb87;}}function xj(_0x1cdc61,_0x4cdeb){let _0x2b575e=null;for(let _0x58914d=0x0;_0x58914d<_0x4cdeb['ranges']['length'];_0x58914d++){let _0x45d61b=_0x4cdeb['ranges'][_0x58914d],_0x2f8e6f=null;if(_0x45d61b['empty']){let _0x14fc06=kj(_0x1cdc61,_0x45d61b['from'],0x0);_0x14fc06!=_0x45d61b['from']&&(_0x2f8e6f=PL['cursor'](_0x14fc06,-0x1));}else{let _0x245088=kj(_0x1cdc61,_0x45d61b['from'],-0x1),_0x18c4d0=kj(_0x1cdc61,_0x45d61b['to'],0x1);_0x245088==_0x45d61b['from']&&_0x18c4d0==_0x45d61b['to']||(_0x2f8e6f=PL['range'](_0x45d61b['from']==_0x45d61b['anchor']?_0x245088:_0x18c4d0,_0x45d61b['from']==_0x45d61b['head']?_0x245088:_0x18c4d0));}_0x2f8e6f&&(_0x2b575e||(_0x2b575e=_0x4cdeb['ranges']['slice']()),_0x2b575e[_0x58914d]=_0x2f8e6f);}return _0x2b575e?PL['create'](_0x2b575e,_0x4cdeb['mainIndex']):_0x4cdeb;}function Cj(_0x3c46fd,_0x28283b,_0x421ac4){let _0x2cb137=kj(_0x3c46fd['state']['facet'](BQ)['map'](_0x553fd2=>_0x553fd2(_0x3c46fd)),_0x421ac4['from'],_0x28283b['head']>_0x421ac4['from']?-0x1:0x1);return _0x2cb137==_0x421ac4['from']?_0x421ac4:PL['cursor'](_0x2cb137,_0x2cb137<_0x421ac4['from']?0x1:-0x1);}var Rj=class{constructor(_0x470641,_0x3cf637){this['pos']=_0x470641,this['assoc']=_0x3cf637;}};function Pj(_0x1229ab,_0x464efc,_0x213c6e,_0x5038da){let _0x139ac6,_0x34d369=_0x1229ab['contentDOM']['getBoundingClientRect'](),_0xa2ef5c=_0x34d369['top']+_0x1229ab['viewState']['paddingTop'],{x:_0x1e0d13,y:_0x53ae65}=_0x464efc,_0x581822=_0x53ae65-_0xa2ef5c;for(;;){if(_0x581822<0x0)return new Rj(0x0,0x1);if(_0x581822>_0x1229ab['viewState']['docHeight'])return new Rj(_0x1229ab['state']['doc']['length'],-0x1);if(_0x139ac6=_0x1229ab['elementAtHeight'](_0x581822),null==_0x5038da)break;if(_0x139ac6['type']==yD['Text']){if(_0x5038da<0x0?_0x139ac6['to']<_0x1229ab['viewport']['from']:_0x139ac6['from']>_0x1229ab['viewport']['to'])break;let _0x77561c=_0x1229ab['docView']['coordsAt'](_0x5038da<0x0?_0x139ac6['from']:_0x139ac6['to'],_0x5038da>0x0?-0x1:0x1);if(_0x77561c&&(_0x5038da<0x0?_0x77561c['top']<=_0x581822+_0xa2ef5c:_0x77561c['bottom']>=_0x581822+_0xa2ef5c))break;}let _0x1b84d3=_0x1229ab['viewState']['heightOracle']['textHeight']/0x2;_0x581822=_0x5038da>0x0?_0x139ac6['bottom']+_0x1b84d3:_0x139ac6['top']-_0x1b84d3;}if(_0x1229ab['viewport']['from']>=_0x139ac6['to']||_0x1229ab['viewport']['to']<=_0x139ac6['from']){if(_0x213c6e)return null;if(_0x139ac6['type']==yD['Text']){let _0x46d628=function(_0x41fc09,_0x28437c,_0x53bb50,_0x2efacd,_0x13008d){let _0x2405da=Math['round']((_0x2efacd-_0x28437c['left'])*_0x41fc09['defaultCharacterWidth']);if(_0x41fc09['lineWrapping']&&_0x53bb50['height']>1.5*_0x41fc09['defaultLineHeight']){let _0x2687c5=_0x41fc09['viewState']['heightOracle']['textHeight'];_0x2405da+=Math['floor']((_0x13008d-_0x53bb50['top']-0.5*(_0x41fc09['defaultLineHeight']-_0x2687c5))/_0x2687c5)*_0x41fc09['viewState']['heightOracle']['lineLength'];}let _0x2a7589=_0x41fc09['state']['sliceDoc'](_0x53bb50['from'],_0x53bb50['to']);return _0x53bb50['from']+H$(_0x2a7589,_0x2405da,_0x41fc09['state']['tabSize']);}(_0x1229ab,_0x34d369,_0x139ac6,_0x1e0d13,_0x53ae65);return new Rj(_0x46d628,_0x46d628==_0x139ac6['from']?0x1:-0x1);}}if(_0x139ac6['type']!=yD['Text'])return _0x581822<(_0x139ac6['top']+_0x139ac6['bottom'])/0x2?new Rj(_0x139ac6['from'],0x1):new Rj(_0x139ac6['to'],-0x1);let _0x5a06e3=_0x1229ab['docView']['lineAt'](_0x139ac6['from'],0x2);return _0x5a06e3&&_0x5a06e3['length']==_0x139ac6['length']||(_0x5a06e3=_0x1229ab['docView']['lineAt'](_0x139ac6['from'],-0x2)),new Nj(_0x1229ab,_0x1e0d13,_0x53ae65,_0x1229ab['textDirectionAt'](_0x139ac6['from']))['scanTile'](_0x5a06e3,_0x139ac6['from']);}var Nj=class{constructor(_0x359604,_0x2e9b6d,_0x1f9222,_0x50042a){this['view']=_0x359604,this['x']=_0x2e9b6d,this['y']=_0x1f9222,this['baseDir']=_0x50042a,this['line']=null,this['spans']=null;}bidiSpansAt(_0x1801f5){return(!this['line']||this['line']['from']>_0x1801f5||this['line']['to']<_0x1801f5)&&(this['line']=this['view']['state']['doc']['lineAt'](_0x1801f5),this['spans']=this['view']['bidiSpans'](this['line'])),this;}baseDirAt(_0x37875e,_0x52efcb){let {line:_0x3dabae,spans:_0x276ea4}=this['bidiSpansAt'](_0x37875e);return _0x276ea4[aQ['find'](_0x276ea4,_0x37875e-_0x3dabae['from'],-0x1,_0x52efcb)]['level']==this['baseDir'];}dirAt(_0x4139ba,_0x4d7730){let {line:_0x15d575,spans:_0x258471}=this['bidiSpansAt'](_0x4139ba);return _0x258471[aQ['find'](_0x258471,_0x4139ba-_0x15d575['from'],-0x1,_0x4d7730)]['dir'];}['bidiIn'](_0x164f42,_0x2318ad){let {spans:_0x3f2789,line:_0x36e2a2}=this['bidiSpansAt'](_0x164f42);return _0x3f2789['length']>0x1||_0x3f2789['length']&&(_0x3f2789[0x0]['level']!=this['baseDir']||_0x3f2789[0x0]['to']+_0x36e2a2['from']<_0x2318ad);}['scan'](_0x4e948b,_0x38d3b9,_0xceb023=!0x1){let _0x27c4be,_0x5b49f8,_0x2594aa,_0xb0e8b8=0x0,_0x379400=_0x4e948b['length']-0x1,_0x2fbc85=new Set(),_0x231ed8=this['bidiIn'](_0x4e948b[0x0],_0x4e948b[_0x379400]),_0x31a950=-0x1,_0x4ce2c8=0x3b9aca00;t:for(;_0xb0e8b8<_0x379400;){let _0x1ffb00=_0x379400-_0xb0e8b8,_0x53ae06=_0xb0e8b8+_0x379400>>0x1;_0x4cd20e:if(_0x2fbc85['has'](_0x53ae06)){let _0x40fe35=_0xb0e8b8+Math['floor'](Math['random']()*_0x1ffb00);for(let _0x476f6c=0x0;_0x476f6c<_0x1ffb00;_0x476f6c++){if(!_0x2fbc85['has'](_0x40fe35)){_0x53ae06=_0x40fe35;break _0x4cd20e;}_0x40fe35++,_0x40fe35==_0x379400&&(_0x40fe35=_0xb0e8b8);}break t;}_0x2fbc85['add'](_0x53ae06);let _0x54b659=_0x38d3b9(_0x53ae06);if(_0x54b659)for(let _0x61780f=0x0;_0x61780f<_0x54b659['length'];_0x61780f++){let _0x389c2b=_0x54b659[_0x61780f],_0x327b0b=0x0;if(!(0x0==_0x389c2b['width']&&_0x54b659['length']>0x1)){if(_0x389c2b['bottom']<this['y'])(!_0x27c4be||_0x27c4be['bottom']<_0x389c2b['bottom'])&&(_0x27c4be=_0x389c2b),_0x327b0b=0x1;else{if(_0x389c2b['top']>this['y'])(!_0x5b49f8||_0x5b49f8['top']>_0x389c2b['top'])&&(_0x5b49f8=_0x389c2b),_0x327b0b=-0x1;else{let _0x5bcccd=_0x389c2b['left']>this['x']?this['x']-_0x389c2b['left']:_0x389c2b['right']<this['x']?this['x']-_0x389c2b['right']:0x0,_0x136382=Math['abs'](_0x5bcccd);_0x136382<_0x4ce2c8&&(_0x31a950=_0x53ae06,_0x4ce2c8=_0x136382,_0x2594aa=_0x389c2b),_0x5bcccd&&(_0x327b0b=_0x5bcccd<0x0==(this['baseDir']==YD['LTR'])?-0x1:0x1);}}-0x1!=_0x327b0b||_0x231ed8&&!this['baseDirAt'](_0x4e948b[_0x53ae06],0x1)?0x1!=_0x327b0b||_0x231ed8&&!this['baseDirAt'](_0x4e948b[_0x53ae06+0x1],-0x1)||(_0xb0e8b8=_0x53ae06+0x1):_0x379400=_0x53ae06;}}}if(!_0x2594aa){if(!_0x5b49f8&&!_0x27c4be)return{'i':_0x4e948b[0x0],'after':!0x1};let _0x4801df=_0x27c4be&&(!_0x5b49f8||this['y']-_0x27c4be['bottom']<_0x5b49f8['top']-this['y'])?_0x27c4be:_0x5b49f8;return this['y']=(_0x4801df['top']+_0x4801df['bottom'])/0x2,this['scan'](_0x4e948b,_0x38d3b9,!0x0);}if(_0x4ce2c8&&!_0xceb023){let {top:_0x509c7a,bottom:_0x4e6fbc}=_0x2594aa;if(_0x27c4be&&_0x27c4be['bottom']>(_0x509c7a+_0x509c7a+_0x4e6fbc)/0x3)return this['y']=_0x27c4be['bottom']-0x1,this['scan'](_0x4e948b,_0x38d3b9,!0x0);if(_0x5b49f8&&_0x5b49f8['top']<(_0x509c7a+_0x4e6fbc+_0x4e6fbc)/0x3)return this['y']=_0x5b49f8['top']+0x1,this['scan'](_0x4e948b,_0x38d3b9,!0x0);}let _0x4c6c77=(_0x231ed8?this['dirAt'](_0x4e948b[_0x31a950],0x1):this['baseDir'])==YD['LTR'];return{'i':_0x31a950,'after':this['x']>(_0x2594aa['left']+_0x2594aa['right'])/0x2==_0x4c6c77};}scanText(_0x5a8297,_0x1e1994){let _0x1259cd=[];for(let _0x169cac=0x0;_0x169cac<_0x5a8297['length'];_0x169cac=OL(_0x5a8297['text'],_0x169cac))_0x1259cd['push'](_0x1e1994+_0x169cac);_0x1259cd['push'](_0x1e1994+_0x5a8297['length']);let _0x24bb1e=this['scan'](_0x1259cd,_0x32e1e6=>{let _0x2b9c48=_0x1259cd[_0x32e1e6]-_0x1e1994,_0x37ce33=_0x1259cd[_0x32e1e6+0x1]-_0x1e1994;return ZD(_0x5a8297['dom'],_0x2b9c48,_0x37ce33)['getClientRects']();});return _0x24bb1e['after']?new Rj(_0x1259cd[_0x24bb1e['i']+0x1],-0x1):new Rj(_0x1259cd[_0x24bb1e['i']],0x1);}['scanTile'](_0x54e068,_0x4d9d60){if(!_0x54e068['length'])return new Rj(_0x4d9d60,0x1);if(0x1==_0x54e068['children']['length']){let _0x257b48=_0x54e068['children'][0x0];if(_0x257b48['isText']())return this['scanText'](_0x257b48,_0x4d9d60);if(_0x257b48['isComposite']())return this['scanTile'](_0x257b48,_0x4d9d60);}let _0x5239cb=[_0x4d9d60];for(let _0x24c600=0x0,_0x147fea=_0x4d9d60;_0x24c600<_0x54e068['children']['length'];_0x24c600++)_0x5239cb['push'](_0x147fea+=_0x54e068['children'][_0x24c600]['length']);let _0xe62661=this['scan'](_0x5239cb,_0x5412ce=>{let _0x5a4ebf=_0x54e068['children'][_0x5412ce];return 0x30&_0x5a4ebf['flags']?null:(0x1==_0x5a4ebf['dom']['nodeType']?_0x5a4ebf['dom']:ZD(_0x5a4ebf['dom'],0x0,_0x5a4ebf['length']))['getClientRects']();}),_0x140e08=_0x54e068['children'][_0xe62661['i']],_0x5c7b34=_0x5239cb[_0xe62661['i']];return _0x140e08['isText']()?this['scanText'](_0x140e08,_0x5c7b34):_0x140e08['isComposite']()?this['scanTile'](_0x140e08,_0x5c7b34):_0xe62661['after']?new Rj(_0x5239cb[_0xe62661['i']+0x1],-0x1):new Rj(_0x5c7b34,0x1);}};const Mj='';var Lj=class{constructor(_0x36602c,_0x38542f){this['points']=_0x36602c,this['view']=_0x38542f,this['text']='',this['lineSeparator']=_0x38542f['state']['facet'](E$['lineSeparator']);}['append'](_0x5033ff){this['text']+=_0x5033ff;}['lineBreak'](){this['text']+=Mj;}['readRange'](_0x58e612,_0x4a0b4b){if(!_0x58e612)return this;let _0x151cef=_0x58e612['parentNode'];for(let _0x650bac=_0x58e612;;){this['findPointBefore'](_0x151cef,_0x650bac);let _0x4975a4=this['text']['length'];this['readNode'](_0x650bac);let _0x4baf79=YQ['get'](_0x650bac),_0x2aba87=_0x650bac['nextSibling'];if(_0x2aba87==_0x4a0b4b){(null==_0x4baf79?void 0x0:_0x4baf79['breakAfter'])&&!_0x2aba87&&_0x151cef!=this['view']['contentDOM']&&this['lineBreak']();break;}let _0x4bf00f=YQ['get'](_0x2aba87);(_0x4baf79&&_0x4bf00f?_0x4baf79['breakAfter']:(_0x4baf79?_0x4baf79['breakAfter']:MD(_0x650bac))||MD(_0x2aba87)&&('BR'!=_0x650bac['nodeName']||(null==_0x4baf79?void 0x0:_0x4baf79['isWidget']()))&&this['text']['length']>_0x4975a4)&&!Dj(_0x2aba87,_0x4a0b4b)&&this['lineBreak'](),_0x650bac=_0x2aba87;}return this['findPointBefore'](_0x151cef,_0x4a0b4b),this;}readTextNode(_0xf875cf){let _0x28c5e5=_0xf875cf['nodeValue'];for(let _0x301c8c of this['points'])_0x301c8c['node']==_0xf875cf&&(_0x301c8c['pos']=this['text']['length']+Math['min'](_0x301c8c['offset'],_0x28c5e5['length']));for(let _0x4148eb=0x0,_0x5e999c=this['lineSeparator']?null:/\r\n?|\n/g;;){let _0x291f26,_0x5c9441=-0x1,_0x132d3f=0x1;if(this['lineSeparator']?(_0x5c9441=_0x28c5e5['indexOf'](this['lineSeparator'],_0x4148eb),_0x132d3f=this['lineSeparator']['length']):(_0x291f26=_0x5e999c['exec'](_0x28c5e5))&&(_0x5c9441=_0x291f26['index'],_0x132d3f=_0x291f26[0x0]['length']),this['append'](_0x28c5e5['slice'](_0x4148eb,_0x5c9441<0x0?_0x28c5e5['length']:_0x5c9441)),_0x5c9441<0x0)break;if(this['lineBreak'](),_0x132d3f>0x1){for(let _0x32a80b of this['points'])_0x32a80b['node']==_0xf875cf&&_0x32a80b['pos']>this['text']['length']&&(_0x32a80b['pos']-=_0x132d3f-0x1);}_0x4148eb=_0x5c9441+_0x132d3f;}}['readNode'](_0x37c6de){let _0x39acc7=YQ['get'](_0x37c6de),_0x2f3487=_0x39acc7&&_0x39acc7['overrideDOMText'];if(null!=_0x2f3487){this['findPointInside'](_0x37c6de,_0x2f3487['length']);for(let _0x41b197=_0x2f3487['iter']();!_0x41b197['next']()['done'];)_0x41b197['lineBreak']?this['lineBreak']():this['append'](_0x41b197['value']);}else 0x3==_0x37c6de['nodeType']?this['readTextNode'](_0x37c6de):'BR'==_0x37c6de['nodeName']?_0x37c6de['nextSibling']&&this['lineBreak']():0x1==_0x37c6de['nodeType']&&this['readRange'](_0x37c6de['firstChild'],null);}findPointBefore(_0x2619f5,_0x1db168){for(let _0x5f3f02 of this['points'])_0x5f3f02['node']==_0x2619f5&&_0x2619f5['childNodes'][_0x5f3f02['offset']]==_0x1db168&&(_0x5f3f02['pos']=this['text']['length']);}findPointInside(_0x5bd7dd,_0x4c2808){for(let _0x287f00 of this['points'])(0x3==_0x5bd7dd['nodeType']?_0x287f00['node']==_0x5bd7dd:_0x5bd7dd['contains'](_0x287f00['node']))&&(_0x287f00['pos']=this['text']['length']+($j(_0x5bd7dd,_0x287f00['node'],_0x287f00['offset'])?_0x4c2808:0x0));}};function $j(_0x57a7f1,_0x18b51f,_0x886d4){for(;;){if(!_0x18b51f||_0x886d4<$D(_0x18b51f))return!0x1;if(_0x18b51f==_0x57a7f1)return!0x0;_0x886d4=ND(_0x18b51f)+0x1,_0x18b51f=_0x18b51f['parentNode'];}}function Dj(_0x3fbff9,_0x56b11b){let _0x176248;for(;_0x3fbff9!=_0x56b11b&&_0x3fbff9;_0x3fbff9=_0x3fbff9['nextSibling']){let _0xec27a3=YQ['get'](_0x3fbff9);if(!(null==_0xec27a3?void 0x0:_0xec27a3['isWidget']()))return!0x1;_0xec27a3&&(_0x176248||(_0x176248=[]))['push'](_0xec27a3);}if(_0x176248)for(let _0x3158e8 of _0x176248){let _0x38244c=_0x3158e8['overrideDOMText'];if(null==_0x38244c?void 0x0:_0x38244c['length'])return!0x1;}return!0x0;}var Qj=class{constructor(_0x4a7a62,_0x4ddae9){this['node']=_0x4a7a62,this['offset']=_0x4ddae9,this['pos']=-0x1;}},jj=class{constructor(_0x31ee9e,_0x5e90c3,_0x11e27b,_0x341274){this['typeOver']=_0x341274,this['bounds']=null,this['text']='',this['domChanged']=_0x5e90c3>-0x1;let {impreciseHead:_0x2db3aa,impreciseAnchor:_0x32e48d}=_0x31ee9e['docView'],_0x47cac3=_0x31ee9e['state']['selection'];if(_0x31ee9e['state']['readOnly']&&_0x5e90c3>-0x1)this['newSel']=null;else{if(_0x5e90c3>-0x1&&(this['bounds']=Uj(_0x31ee9e['docView']['tile'],_0x5e90c3,_0x11e27b,0x0))){let _0x5a413a=_0x2db3aa||_0x32e48d?[]:function(_0x46785a){let _0x102424=[];if(_0x46785a['root']['activeElement']!=_0x46785a['contentDOM'])return _0x102424;let {anchorNode:_0x129eb0,anchorOffset:_0xb6d85b,focusNode:_0x54e915,focusOffset:_0x3d0379}=_0x46785a['observer']['selectionRange'];return _0x129eb0&&(_0x102424['push'](new Qj(_0x129eb0,_0xb6d85b)),_0x54e915==_0x129eb0&&_0x3d0379==_0xb6d85b||_0x102424['push'](new Qj(_0x54e915,_0x3d0379))),_0x102424;}(_0x31ee9e),_0x4e4ef1=new Lj(_0x5a413a,_0x31ee9e);_0x4e4ef1['readRange'](this['bounds']['startDOM'],this['bounds']['endDOM']),this['text']=_0x4e4ef1['text'],this['newSel']=function(_0xa4dbeb,_0x269e7c){if(0x0==_0xa4dbeb['length'])return null;let _0x55c232=_0xa4dbeb[0x0]['pos'],_0x4913f2=0x2==_0xa4dbeb['length']?_0xa4dbeb[0x1]['pos']:_0x55c232;return _0x55c232>-0x1&&_0x4913f2>-0x1?PL['single'](_0x55c232+_0x269e7c,_0x4913f2+_0x269e7c):null;}(_0x5a413a,this['bounds']['from']);}else{let _0x42e6bc=_0x31ee9e['observer']['selectionRange'],_0x3323b7=_0x2db3aa&&_0x2db3aa['node']==_0x42e6bc['focusNode']&&_0x2db3aa['offset']==_0x42e6bc['focusOffset']||!xD(_0x31ee9e['contentDOM'],_0x42e6bc['focusNode'])?_0x47cac3['main']['head']:_0x31ee9e['docView']['posFromDOM'](_0x42e6bc['focusNode'],_0x42e6bc['focusOffset']),_0x235287=_0x32e48d&&_0x32e48d['node']==_0x42e6bc['anchorNode']&&_0x32e48d['offset']==_0x42e6bc['anchorOffset']||!xD(_0x31ee9e['contentDOM'],_0x42e6bc['anchorNode'])?_0x47cac3['main']['anchor']:_0x31ee9e['docView']['posFromDOM'](_0x42e6bc['anchorNode'],_0x42e6bc['anchorOffset']),_0x5dc8fa=_0x31ee9e['viewport'];if((fD['ios']||fD['chrome'])&&_0x47cac3['main']['empty']&&_0x3323b7!=_0x235287&&(_0x5dc8fa['from']>0x0||_0x5dc8fa['to']<_0x31ee9e['state']['doc']['length'])){let _0x212744=Math['min'](_0x3323b7,_0x235287),_0x54bde6=Math['max'](_0x3323b7,_0x235287),_0x18b1d8=_0x5dc8fa['from']-_0x212744,_0x4e2ac0=_0x5dc8fa['to']-_0x54bde6;0x0!=_0x18b1d8&&0x1!=_0x18b1d8&&0x0!=_0x212744||0x0!=_0x4e2ac0&&-0x1!=_0x4e2ac0&&_0x54bde6!=_0x31ee9e['state']['doc']['length']||(_0x3323b7=0x0,_0x235287=_0x31ee9e['state']['doc']['length']);}if(_0x31ee9e['inputState']['composing']>-0x1&&_0x47cac3['ranges']['length']>0x1)this['newSel']=_0x47cac3['replaceRange'](PL['range'](_0x235287,_0x3323b7));else{if(_0x31ee9e['lineWrapping']&&_0x235287==_0x3323b7&&(!_0x47cac3['main']['empty']||_0x47cac3['main']['head']!=_0x3323b7)&&_0x31ee9e['inputState']['lastTouchTime']>Date['now']()-0x64){let _0x463a82=_0x31ee9e['coordsAtPos'](_0x3323b7,-0x1),_0x4275c7=0x0;_0x463a82&&(_0x4275c7=_0x31ee9e['inputState']['lastTouchY']<=_0x463a82['bottom']?-0x1:0x1),this['newSel']=PL['create']([PL['cursor'](_0x3323b7,_0x4275c7)]);}else this['newSel']=PL['single'](_0x235287,_0x3323b7);}}}}};function Uj(_0x6e0c9f,_0x1147a2,_0xc1b87c,_0x28cd95){if(_0x6e0c9f['isComposite']()){let _0x8b99e6=-0x1,_0x48f456=-0x1,_0x52da0e=-0x1,_0x29f468=-0x1;for(let _0x2c297c=0x0,_0x37db59=_0x28cd95,_0x5e536b=_0x28cd95;_0x2c297c<_0x6e0c9f['children']['length'];_0x2c297c++){let _0x2a845f=_0x6e0c9f['children'][_0x2c297c],_0xa7356c=_0x37db59+_0x2a845f['length'];if(_0x37db59<_0x1147a2&&_0xa7356c>_0xc1b87c)return Uj(_0x2a845f,_0x1147a2,_0xc1b87c,_0x37db59);if(_0xa7356c>=_0x1147a2&&-0x1==_0x8b99e6&&(_0x8b99e6=_0x2c297c,_0x48f456=_0x37db59),_0x37db59>_0xc1b87c&&_0x2a845f['dom']['parentNode']==_0x6e0c9f['dom']){_0x52da0e=_0x2c297c,_0x29f468=_0x5e536b;break;}_0x5e536b=_0xa7356c,_0x37db59=_0xa7356c+_0x2a845f['breakAfter'];}return{'from':_0x48f456,'to':_0x29f468<0x0?_0x28cd95+_0x6e0c9f['length']:_0x29f468,'startDOM':(_0x8b99e6?_0x6e0c9f['children'][_0x8b99e6-0x1]['dom']['nextSibling']:null)||_0x6e0c9f['dom']['firstChild'],'endDOM':_0x52da0e<_0x6e0c9f['children']['length']&&_0x52da0e>=0x0?_0x6e0c9f['children'][_0x52da0e]['dom']:null};}return _0x6e0c9f['isText']()?{'from':_0x28cd95,'to':_0x28cd95+_0x6e0c9f['length'],'startDOM':_0x6e0c9f['dom'],'endDOM':_0x6e0c9f['dom']['nextSibling']}:null;}function Vj(_0x422e0a,_0x3a0877){let _0x176924,{newSel:_0x1e3670}=_0x3a0877,{state:_0x1e0413}=_0x422e0a,_0x2df2f7=_0x1e0413['selection']['main'],_0x28c780=_0x422e0a['inputState']['lastKeyTime']>Date['now']()-0x64?_0x422e0a['inputState']['lastKeyCode']:-0x1;if(_0x3a0877['bounds']){let {from:_0x27fa0f,to:_0x1457d4}=_0x3a0877['bounds'],_0x67cd1c=_0x2df2f7['from'],_0x4b58c4=null;(0x8===_0x28c780||fD['android']&&_0x3a0877['text']['length']<_0x1457d4-_0x27fa0f)&&(_0x67cd1c=_0x2df2f7['to'],_0x4b58c4='end');let _0x58e9ae,_0xf92058,_0x225db0=_0x1e0413['doc']['sliceString'](_0x27fa0f,_0x1457d4,Mj);!_0x2df2f7['empty']&&_0x2df2f7['from']>=_0x27fa0f&&_0x2df2f7['to']<=_0x1457d4&&(_0x3a0877['typeOver']||_0x225db0!=_0x3a0877['text'])&&_0x225db0['slice'](0x0,_0x2df2f7['from']-_0x27fa0f)==_0x3a0877['text']['slice'](0x0,_0x2df2f7['from']-_0x27fa0f)&&_0x225db0['slice'](_0x2df2f7['to']-_0x27fa0f)==_0x3a0877['text']['slice'](_0x58e9ae=_0x3a0877['text']['length']-(_0x225db0['length']-(_0x2df2f7['to']-_0x27fa0f)))?_0x176924={'from':_0x2df2f7['from'],'to':_0x2df2f7['to'],'insert':aL['of'](_0x3a0877['text']['slice'](_0x2df2f7['from']-_0x27fa0f,_0x58e9ae)['split'](Mj))}:(_0xf92058=Hj(_0x225db0,_0x3a0877['text'],_0x67cd1c-_0x27fa0f,_0x4b58c4))&&(fD['chrome']&&0xd==_0x28c780&&_0xf92058['toB']==_0xf92058['from']+0x2&&''==_0x3a0877['text']['slice'](_0xf92058['from'],_0xf92058['toB'])&&_0xf92058['toB']--,_0x176924={'from':_0x27fa0f+_0xf92058['from'],'to':_0x27fa0f+_0xf92058['toA'],'insert':aL['of'](_0x3a0877['text']['slice'](_0xf92058['from'],_0xf92058['toB'])['split'](Mj))});}else _0x1e3670&&(!_0x422e0a['hasFocus']&&_0x1e0413['facet'](PQ)||Fj(_0x1e3670,_0x2df2f7))&&(_0x1e3670=null);if(!_0x176924&&!_0x1e3670)return!0x1;if((fD['mac']||fD['android'])&&_0x176924&&_0x176924['from']==_0x176924['to']&&_0x176924['from']==_0x2df2f7['head']-0x1&&/^\. ?$/['test'](_0x176924['insert']['toString']())&&'off'==_0x422e0a['contentDOM']['getAttribute']('autocorrect')?(_0x1e3670&&0x2==_0x176924['insert']['length']&&(_0x1e3670=PL['single'](_0x1e3670['main']['anchor']-0x1,_0x1e3670['main']['head']-0x1)),_0x176924={'from':_0x176924['from'],'to':_0x176924['to'],'insert':aL['of']([_0x176924['insert']['toString']()['replace']('.','\x20')])}):_0x1e0413['doc']['lineAt'](_0x2df2f7['from'])['to']<_0x2df2f7['to']&&_0x422e0a['docView']['lineHasWidget'](_0x2df2f7['to'])&&_0x422e0a['inputState']['insertingTextAt']>Date['now']()-0x32?_0x176924={'from':_0x2df2f7['from'],'to':_0x2df2f7['to'],'insert':_0x1e0413['toText'](_0x422e0a['inputState']['insertingText'])}:fD['chrome']&&_0x176924&&_0x176924['from']==_0x176924['to']&&_0x176924['from']==_0x2df2f7['head']&&'\x0a\x20'==_0x176924['insert']['toString']()&&_0x422e0a['lineWrapping']&&(_0x1e3670&&(_0x1e3670=PL['single'](_0x1e3670['main']['anchor']-0x1,_0x1e3670['main']['head']-0x1)),_0x176924={'from':_0x2df2f7['from'],'to':_0x2df2f7['to'],'insert':aL['of'](['\x20'])}),_0x176924)return Bj(_0x422e0a,_0x176924,_0x1e3670,_0x28c780);if(_0x1e3670&&!Fj(_0x1e3670,_0x2df2f7)){let _0x431efe=!0x1,_0x5223da='select';return _0x422e0a['inputState']['lastSelectionTime']>Date['now']()-0x32&&('select'==_0x422e0a['inputState']['lastSelectionOrigin']&&(_0x431efe=!0x0),_0x5223da=_0x422e0a['inputState']['lastSelectionOrigin'],'select.pointer'==_0x5223da&&(_0x1e3670=xj(_0x1e0413['facet'](BQ)['map'](_0x1e1725=>_0x1e1725(_0x422e0a)),_0x1e3670))),_0x422e0a['dispatch']({'selection':_0x1e3670,'scrollIntoView':_0x431efe,'userEvent':_0x5223da}),!0x0;}return!0x1;}function Bj(_0x1e364d,_0x326afc,_0x183811,_0x298458=-0x1){if(fD['ios']&&_0x1e364d['inputState']['flushIOSKey'](_0x326afc))return!0x0;let _0x3a21cc=_0x1e364d['state']['selection']['main'];if(fD['android']&&(_0x326afc['to']==_0x3a21cc['to']&&(_0x326afc['from']==_0x3a21cc['from']||_0x326afc['from']==_0x3a21cc['from']-0x1&&'\x20'==_0x1e364d['state']['sliceDoc'](_0x326afc['from'],_0x3a21cc['from']))&&0x1==_0x326afc['insert']['length']&&0x2==_0x326afc['insert']['lines']&&GD(_0x1e364d['contentDOM'],'Enter',0xd)||(_0x326afc['from']==_0x3a21cc['from']-0x1&&_0x326afc['to']==_0x3a21cc['to']&&0x0==_0x326afc['insert']['length']||0x8==_0x298458&&_0x326afc['insert']['length']<_0x326afc['to']-_0x326afc['from']&&_0x326afc['to']>_0x3a21cc['head'])&&GD(_0x1e364d['contentDOM'],'Backspace',0x8)||_0x326afc['from']==_0x3a21cc['from']&&_0x326afc['to']==_0x3a21cc['to']+0x1&&0x0==_0x326afc['insert']['length']&&GD(_0x1e364d['contentDOM'],'Delete',0x2e)))return!0x0;let _0x340d65,_0x33aab0=_0x326afc['insert']['toString']();_0x1e364d['inputState']['composing']>=0x0&&_0x1e364d['inputState']['composing']++;let _0x1ef0da=()=>_0x340d65||(_0x340d65=function(_0x435245,_0x118b0e,_0x2b9141){let _0x2a5ca2,_0x5e3301=_0x435245['state'],_0x20170b=_0x5e3301['selection']['main'],_0x11772a=-0x1;if(_0x118b0e['from']==_0x118b0e['to']&&_0x118b0e['from']<_0x20170b['from']||_0x118b0e['from']>_0x20170b['to']){let _0x38486e=_0x118b0e['from']<_0x20170b['from']?-0x1:0x1,_0x57b309=_0x38486e<0x0?_0x20170b['from']:_0x20170b['to'],_0x7223d2=kj(_0x5e3301['facet'](BQ)['map'](_0x2f90c6=>_0x2f90c6(_0x435245)),_0x57b309,_0x38486e);_0x118b0e['from']==_0x7223d2&&(_0x11772a=_0x7223d2);}if(_0x11772a>-0x1)_0x2a5ca2={'changes':_0x118b0e,'selection':PL['cursor'](_0x118b0e['from']+_0x118b0e['insert']['length'],-0x1)};else{if(_0x118b0e['from']>=_0x20170b['from']&&_0x118b0e['to']<=_0x20170b['to']&&_0x118b0e['to']-_0x118b0e['from']>=(_0x20170b['to']-_0x20170b['from'])/0x3&&(!_0x2b9141||_0x2b9141['main']['empty']&&_0x2b9141['main']['from']==_0x118b0e['from']+_0x118b0e['insert']['length'])&&_0x435245['inputState']['composing']<0x0){let _0x228924=_0x20170b['from']<_0x118b0e['from']?_0x5e3301['sliceDoc'](_0x20170b['from'],_0x118b0e['from']):'',_0x285b7a=_0x20170b['to']>_0x118b0e['to']?_0x5e3301['sliceDoc'](_0x118b0e['to'],_0x20170b['to']):'';_0x2a5ca2=_0x5e3301['replaceSelection'](_0x435245['state']['toText'](_0x228924+_0x118b0e['insert']['sliceString'](0x0,void 0x0,_0x435245['state']['lineBreak'])+_0x285b7a));}else{let _0x26fff5=_0x5e3301['changes'](_0x118b0e),_0x3cbd2f=_0x2b9141&&_0x2b9141['main']['to']<=_0x26fff5['newLength']?_0x2b9141['main']:void 0x0;if(_0x5e3301['selection']['ranges']['length']>0x1&&(_0x435245['inputState']['composing']>=0x0||_0x435245['inputState']['compositionPendingChange'])&&_0x118b0e['to']<=_0x20170b['to']+0xa&&_0x118b0e['to']>=_0x20170b['to']-0xa){let _0x3cdffe,_0x2cb967=_0x435245['state']['sliceDoc'](_0x118b0e['from'],_0x118b0e['to']),_0x13e4bb=_0x2b9141&&_j(_0x435245,_0x2b9141['main']['head']);if(_0x13e4bb){let _0x57f9d=_0x118b0e['insert']['length']-(_0x118b0e['to']-_0x118b0e['from']);_0x3cdffe={'from':_0x13e4bb['from'],'to':_0x13e4bb['to']-_0x57f9d};}else _0x3cdffe=_0x435245['state']['doc']['lineAt'](_0x20170b['head']);let _0x1d8608=_0x20170b['to']-_0x118b0e['to'];_0x2a5ca2=_0x5e3301['changeByRange'](_0x169a6f=>{if(_0x169a6f['from']==_0x20170b['from']&&_0x169a6f['to']==_0x20170b['to'])return{'changes':_0x26fff5,'range':_0x3cbd2f||_0x169a6f['map'](_0x26fff5)};let _0x352023=_0x169a6f['to']-_0x1d8608,_0x2308ce=_0x352023-_0x2cb967['length'];if(_0x435245['state']['sliceDoc'](_0x2308ce,_0x352023)!=_0x2cb967||_0x352023>=_0x3cdffe['from']&&_0x2308ce<=_0x3cdffe['to'])return{'range':_0x169a6f};let _0x336886=_0x5e3301['changes']({'from':_0x2308ce,'to':_0x352023,'insert':_0x118b0e['insert']}),_0x31a2d1=_0x169a6f['to']-_0x20170b['to'];return{'changes':_0x336886,'range':_0x3cbd2f?PL['range'](Math['max'](0x0,_0x3cbd2f['anchor']+_0x31a2d1),Math['max'](0x0,_0x3cbd2f['head']+_0x31a2d1)):_0x169a6f['map'](_0x336886)};});}else _0x2a5ca2={'changes':_0x26fff5,'selection':_0x3cbd2f&&_0x5e3301['selection']['replaceRange'](_0x3cbd2f)};}}let _0x227c26='input.type';return(_0x435245['composing']||_0x435245['inputState']['compositionPendingChange']&&_0x435245['inputState']['compositionEndedAt']>Date['now']()-0x32)&&(_0x435245['inputState']['compositionPendingChange']=!0x1,_0x227c26+='.compose',_0x435245['inputState']['compositionFirstChange']&&(_0x227c26+='.start',_0x435245['inputState']['compositionFirstChange']=!0x1)),_0x5e3301['update'](_0x2a5ca2,{'userEvent':_0x227c26,'scrollIntoView':!0x0});}(_0x1e364d,_0x326afc,_0x183811));return _0x1e364d['state']['facet'](vQ)['some'](_0x63534a=>_0x63534a(_0x1e364d,_0x326afc['from'],_0x326afc['to'],_0x33aab0,_0x1ef0da))||_0x1e364d['dispatch'](_0x1ef0da()),!0x0;}function Hj(_0xfe41c3,_0x3d89e0,_0x300c86,_0x30510d){let _0x33cffa=Math['min'](_0xfe41c3['length'],_0x3d89e0['length']),_0x3931c0=0x0;for(;_0x3931c0<_0x33cffa&&_0xfe41c3['charCodeAt'](_0x3931c0)==_0x3d89e0['charCodeAt'](_0x3931c0);)_0x3931c0++;if(_0x3931c0==_0x33cffa&&_0xfe41c3['length']==_0x3d89e0['length'])return null;let _0x26b0bc=_0xfe41c3['length'],_0x1a6987=_0x3d89e0['length'];for(;_0x26b0bc>0x0&&_0x1a6987>0x0&&_0xfe41c3['charCodeAt'](_0x26b0bc-0x1)==_0x3d89e0['charCodeAt'](_0x1a6987-0x1);)_0x26b0bc--,_0x1a6987--;'end'==_0x30510d&&(_0x300c86-=_0x26b0bc+Math['max'](0x0,_0x3931c0-Math['min'](_0x26b0bc,_0x1a6987))-_0x3931c0);if(_0x26b0bc<_0x3931c0&&_0xfe41c3['length']<_0x3d89e0['length'])_0x3931c0-=_0x300c86<=_0x3931c0&&_0x300c86>=_0x26b0bc?_0x3931c0-_0x300c86:0x0,_0x1a6987=_0x3931c0+(_0x1a6987-_0x26b0bc),_0x26b0bc=_0x3931c0;else _0x1a6987<_0x3931c0&&(_0x3931c0-=_0x300c86<=_0x3931c0&&_0x300c86>=_0x1a6987?_0x3931c0-_0x300c86:0x0,_0x26b0bc=_0x3931c0+(_0x26b0bc-_0x1a6987),_0x1a6987=_0x3931c0);return{'from':_0x3931c0,'toA':_0x26b0bc,'toB':_0x1a6987};}function Fj(_0x2564c6,_0x4c6bd7){return _0x4c6bd7['head']==_0x2564c6['main']['head']&&_0x4c6bd7['anchor']==_0x2564c6['main']['anchor'];}var Zj=class{setSelectionOrigin(_0x5971d3){this['lastSelectionOrigin']=_0x5971d3,this['lastSelectionTime']=Date['now']();}constructor(_0x1ae0f5){this['view']=_0x1ae0f5,this['lastKeyCode']=0x0,this['lastKeyTime']=0x0,this['lastTouchTime']=0x0,this['lastTouchX']=0x0,this['lastTouchY']=0x0,this['lastFocusTime']=0x0,this['lastScrollTop']=0x0,this['lastScrollLeft']=0x0,this['lastWheelEvent']=0x0,this['pendingIOSKey']=void 0x0,this['tabFocusMode']=-0x1,this['lastSelectionOrigin']=null,this['lastSelectionTime']=0x0,this['lastContextMenu']=0x0,this['scrollHandlers']=[],this['handlers']=Object['create'](null),this['composing']=-0x1,this['compositionFirstChange']=null,this['compositionEndedAt']=0x0,this['compositionPendingKey']=!0x1,this['compositionPendingChange']=!0x1,this['insertingText']='',this['insertingTextAt']=0x0,this['mouseSelection']=null,this['draggedContent']=null,this['handleEvent']=this['handleEvent']['bind'](this),this['notifiedFocused']=_0x1ae0f5['hasFocus'],fD['safari']&&_0x1ae0f5['contentDOM']['addEventListener']('input',()=>null),fD['gecko']&&function(_0x532e3d){pU['has'](_0x532e3d)||(pU['add'](_0x532e3d),_0x532e3d['addEventListener']('copy',()=>{}),_0x532e3d['addEventListener']('cut',()=>{}));}(_0x1ae0f5['contentDOM']['ownerDocument']);}handleEvent(_0x3309e0){(function(_0x2bcb96,_0x325d44){if(!_0x325d44['bubbles'])return!0x0;if(_0x325d44['defaultPrevented'])return!0x1;for(let _0x5a5659,_0x5e0ada=_0x325d44['target'];_0x5e0ada!=_0x2bcb96['contentDOM'];_0x5e0ada=_0x5e0ada['parentNode'])if(!_0x5e0ada||0xb==_0x5e0ada['nodeType']||(_0x5a5659=YQ['get'](_0x5e0ada))&&_0x5a5659['isWidget']()&&!_0x5a5659['isHidden']&&_0x5a5659['widget']['ignoreEvent'](_0x325d44))return!0x1;return!0x0;}(this['view'],_0x3309e0)&&!this['ignoreDuringComposition'](_0x3309e0)&&('keydown'==_0x3309e0['type']&&this['keydown'](_0x3309e0)||(0x0!=this['view']['updateState']?Promise['resolve']()['then'](()=>this['runHandlers'](_0x3309e0['type'],_0x3309e0)):this['runHandlers'](_0x3309e0['type'],_0x3309e0))));}['runHandlers'](_0x33432b,_0x7e3afa){let _0x55261b=this['handlers'][_0x33432b];if(_0x55261b){for(let _0x56094a of _0x55261b['observers'])_0x56094a(this['view'],_0x7e3afa);for(let _0x13c2d1 of _0x55261b['handlers']){if(_0x7e3afa['defaultPrevented'])break;if(_0x13c2d1(this['view'],_0x7e3afa)){_0x7e3afa['preventDefault']();break;}}}}['ensureHandlers'](_0x3ab22b){let _0x4e9cb3=Xj(_0x3ab22b),_0x4b110a=this['handlers'],_0x16c7ef=this['view']['contentDOM'];for(let _0x27ad93 in _0x4e9cb3)if('scroll'!=_0x27ad93){let _0x381809=!_0x4e9cb3[_0x27ad93]['handlers']['length'],_0x21f1ef=_0x4b110a[_0x27ad93];_0x21f1ef&&_0x381809!=!_0x21f1ef['handlers']['length']&&(_0x16c7ef['removeEventListener'](_0x27ad93,this['handleEvent']),_0x21f1ef=null),_0x21f1ef||_0x16c7ef['addEventListener'](_0x27ad93,this['handleEvent'],{'passive':_0x381809});}for(let _0x3b016d in _0x4b110a)'scroll'==_0x3b016d||_0x4e9cb3[_0x3b016d]||_0x16c7ef['removeEventListener'](_0x3b016d,this['handleEvent']);this['handlers']=_0x4e9cb3;}['keydown'](_0x195aa6){if(this['lastKeyCode']=_0x195aa6['keyCode'],this['lastKeyTime']=Date['now'](),0x9==_0x195aa6['keyCode']&&this['tabFocusMode']>-0x1&&(!this['tabFocusMode']||Date['now']()<=this['tabFocusMode']))return!0x0;if(this['tabFocusMode']>0x0&&0x1b!=_0x195aa6['keyCode']&&zj['indexOf'](_0x195aa6['keyCode'])<0x0&&(this['tabFocusMode']=-0x1),fD['android']&&fD['chrome']&&!_0x195aa6['synthetic']&&(0xd==_0x195aa6['keyCode']||0x8==_0x195aa6['keyCode']))return this['view']['observer']['delayAndroidKey'](_0x195aa6['key'],_0x195aa6['keyCode']),!0x0;let _0x11bbdb;return!fD['ios']||_0x195aa6['synthetic']||_0x195aa6['altKey']||_0x195aa6['metaKey']||_0x195aa6['shiftKey']||!((_0x11bbdb=qj['find'](_0x329570=>_0x329570['keyCode']==_0x195aa6['keyCode']))&&!_0x195aa6['ctrlKey']||Wj['indexOf'](_0x195aa6['key'])>-0x1&&_0x195aa6['ctrlKey'])?(0xe5!=_0x195aa6['keyCode']&&this['view']['observer']['forceFlush'](),!0x1):(this['pendingIOSKey']=_0x11bbdb||_0x195aa6,setTimeout(()=>this['flushIOSKey'](),0xfa),!0x0);}['flushIOSKey'](_0xc06b53){let _0x185ec8=this['pendingIOSKey'];return!!_0x185ec8&&(!('Enter'==_0x185ec8['key']&&_0xc06b53&&_0xc06b53['from']<_0xc06b53['to']&&/^\S+$/['test'](_0xc06b53['insert']['toString']()))&&(this['pendingIOSKey']=void 0x0,GD(this['view']['contentDOM'],_0x185ec8['key'],_0x185ec8['keyCode'],_0x185ec8 instanceof KeyboardEvent?_0x185ec8:void 0x0)));}ignoreDuringComposition(_0x401d7d){return!(!/^key/['test'](_0x401d7d['type'])||_0x401d7d['synthetic'])&&(this['composing']>0x0||!!(fD['safari']&&!fD['ios']&&this['compositionPendingKey']&&Date['now']()-this['compositionEndedAt']<0x64)&&(this['compositionPendingKey']=!0x1,!0x0));}startMouseSelection(_0x90164){this['mouseSelection']&&this['mouseSelection']['destroy'](),this['mouseSelection']=_0x90164;}update(_0x42cedd){this['view']['observer']['update'](_0x42cedd),this['mouseSelection']&&this['mouseSelection']['update'](_0x42cedd),this['draggedContent']&&_0x42cedd['docChanged']&&(this['draggedContent']=this['draggedContent']['map'](_0x42cedd['changes'])),_0x42cedd['transactions']['length']&&(this['lastKeyCode']=this['lastSelectionTime']=0x0);}destroy(){this['mouseSelection']&&this['mouseSelection']['destroy']();}};function Gj(_0x36178e,_0xe11fd4){return(_0xe4abe6,_0xcbe31b)=>{try{return _0xe11fd4['call'](_0x36178e,_0xcbe31b,_0xe4abe6);}catch(_0x37eedc){RQ(_0xe4abe6['state'],_0x37eedc);}};}function Xj(_0x12f608){let _0x1ac15c=Object['create'](null);function _0x5462b3(_0x4e5f5d){return _0x1ac15c[_0x4e5f5d]||(_0x1ac15c[_0x4e5f5d]={'observers':[],'handlers':[]});}for(let _0x3d4df8 of _0x12f608){let _0x133989=_0x3d4df8['spec'],_0x16b22b=_0x133989&&_0x133989['plugin']['domEventHandlers'],_0x153e67=_0x133989&&_0x133989['plugin']['domEventObservers'];if(_0x16b22b)for(let _0x25f632 in _0x16b22b){let _0x52f98c=_0x16b22b[_0x25f632];_0x52f98c&&_0x5462b3(_0x25f632)['handlers']['push'](Gj(_0x3d4df8['value'],_0x52f98c));}if(_0x153e67)for(let _0x293fd2 in _0x153e67){let _0x52a591=_0x153e67[_0x293fd2];_0x52a591&&_0x5462b3(_0x293fd2)['observers']['push'](Gj(_0x3d4df8['value'],_0x52a591));}}for(let _0x388751 in Jj)_0x5462b3(_0x388751)['handlers']['push'](Jj[_0x388751]);for(let _0x5a966a in tU)_0x5462b3(_0x5a966a)['observers']['push'](tU[_0x5a966a]);return _0x1ac15c;}const qj=[{'key':'Backspace','keyCode':0x8,'inputType':'deleteContentBackward'},{'key':'Enter','keyCode':0xd,'inputType':'insertParagraph'},{'key':'Enter','keyCode':0xd,'inputType':'insertLineBreak'},{'key':'Delete','keyCode':0x2e,'inputType':'deleteContentForward'}],Wj='dthko',zj=[0x10,0x11,0x12,0x14,0x5b,0x5c,0xe0,0xe1];function Yj(_0x2dcec4){return 0.7*Math['max'](0x0,_0x2dcec4)+0x8;}var Kj=class{constructor(_0x3c0d7f,_0x1ec457,_0x30c67,_0x4f40e1){this['view']=_0x3c0d7f,this['startEvent']=_0x1ec457,this['style']=_0x30c67,this['mustSelect']=_0x4f40e1,this['scrollSpeed']={'x':0x0,'y':0x0},this['scrolling']=-0x1,this['lastEvent']=_0x1ec457,this['scrollParents']=UD(_0x3c0d7f['contentDOM']),this['atoms']=_0x3c0d7f['state']['facet'](BQ)['map'](_0x49ebe1=>_0x49ebe1(_0x3c0d7f));let _0x281378=_0x3c0d7f['contentDOM']['ownerDocument'];_0x281378['addEventListener']('mousemove',this['move']=this['move']['bind'](this)),_0x281378['addEventListener']('mouseup',this['up']=this['up']['bind'](this)),this['extend']=_0x1ec457['shiftKey'],this['multiple']=_0x3c0d7f['state']['facet'](E$['allowMultipleSelections'])&&function(_0x15a1f3,_0x236199){let _0x92f54a=_0x15a1f3['state']['facet'](gQ);return _0x92f54a['length']?_0x92f54a[0x0](_0x236199):fD['mac']?_0x236199['metaKey']:_0x236199['ctrlKey'];}(_0x3c0d7f,_0x1ec457),this['dragging']=!(!function(_0x4568f0,_0x2ad0ee){let {main:_0x3a6f32}=_0x4568f0['state']['selection'];if(_0x3a6f32['empty'])return!0x1;let _0x50f47e=kD(_0x4568f0['root']);if(!_0x50f47e||0x0==_0x50f47e['rangeCount'])return!0x0;let _0x4ee3fb=_0x50f47e['getRangeAt'](0x0)['getClientRects']();for(let _0x1485f4=0x0;_0x1485f4<_0x4ee3fb['length'];_0x1485f4++){let _0x7f932d=_0x4ee3fb[_0x1485f4];if(_0x7f932d['left']<=_0x2ad0ee['clientX']&&_0x7f932d['right']>=_0x2ad0ee['clientX']&&_0x7f932d['top']<=_0x2ad0ee['clientY']&&_0x7f932d['bottom']>=_0x2ad0ee['clientY'])return!0x0;}return!0x1;}(_0x3c0d7f,_0x1ec457)||0x1!=lU(_0x1ec457))&&null;}start(_0x3da112){!0x1===this['dragging']&&this['select'](_0x3da112);}['move'](_0x41d2b5){if(0x0==_0x41d2b5['buttons'])return this['destroy']();if(this['dragging']||null==this['dragging']&&(_0x5e634d=this['startEvent'],_0x12ebba=_0x41d2b5,Math['max'](Math['abs'](_0x5e634d['clientX']-_0x12ebba['clientX']),Math['abs'](_0x5e634d['clientY']-_0x12ebba['clientY']))<0xa))return;var _0x5e634d,_0x12ebba;this['select'](this['lastEvent']=_0x41d2b5);let _0x165ad7=0x0,_0x4a5fb6=0x0,_0x3ece5a=0x0,_0x4b7482=0x0,_0x3dbc68=this['view']['win']['innerWidth'],_0x2223ad=this['view']['win']['innerHeight'];this['scrollParents']['x']&&({left:_0x3ece5a,right:_0x3dbc68}=this['scrollParents']['x']['getBoundingClientRect']()),this['scrollParents']['y']&&({top:_0x4b7482,bottom:_0x2223ad}=this['scrollParents']['y']['getBoundingClientRect']());let _0x5b3c12=GQ(this['view']);_0x41d2b5['clientX']-_0x5b3c12['left']<=_0x3ece5a+0x6?_0x165ad7=-Yj(_0x3ece5a-_0x41d2b5['clientX']):_0x41d2b5['clientX']+_0x5b3c12['right']>=_0x3dbc68-0x6&&(_0x165ad7=Yj(_0x41d2b5['clientX']-_0x3dbc68)),_0x41d2b5['clientY']-_0x5b3c12['top']<=_0x4b7482+0x6?_0x4a5fb6=-Yj(_0x4b7482-_0x41d2b5['clientY']):_0x41d2b5['clientY']+_0x5b3c12['bottom']>=_0x2223ad-0x6&&(_0x4a5fb6=Yj(_0x41d2b5['clientY']-_0x2223ad)),this['setScrollSpeed'](_0x165ad7,_0x4a5fb6);}['up'](_0x592b3b){null==this['dragging']&&this['select'](this['lastEvent']),this['dragging']||_0x592b3b['preventDefault'](),this['destroy']();}destroy(){this['setScrollSpeed'](0x0,0x0);let _0xe5b568=this['view']['contentDOM']['ownerDocument'];_0xe5b568['removeEventListener']('mousemove',this['move']),_0xe5b568['removeEventListener']('mouseup',this['up']),this['view']['inputState']['mouseSelection']=this['view']['inputState']['draggedContent']=null;}setScrollSpeed(_0x31a1dc,_0x534033){this['scrollSpeed']={'x':_0x31a1dc,'y':_0x534033},_0x31a1dc||_0x534033?this['scrolling']<0x0&&(this['scrolling']=setInterval(()=>this['scroll'](),0x32)):this['scrolling']>-0x1&&(clearInterval(this['scrolling']),this['scrolling']=-0x1);}['scroll'](){let {x:_0x290e60,y:_0x45f401}=this['scrollSpeed'];_0x290e60&&this['scrollParents']['x']&&(this['scrollParents']['x']['scrollLeft']+=_0x290e60,_0x290e60=0x0),_0x45f401&&this['scrollParents']['y']&&(this['scrollParents']['y']['scrollTop']+=_0x45f401,_0x45f401=0x0),(_0x290e60||_0x45f401)&&this['view']['win']['scrollBy'](_0x290e60,_0x45f401),!0x1===this['dragging']&&this['select'](this['lastEvent']);}select(_0x5a60dc){let {view:_0x54e79c}=this,_0x58a8e5=xj(this['atoms'],this['style']['get'](_0x5a60dc,this['extend'],this['multiple']));!this['mustSelect']&&_0x58a8e5['eq'](_0x54e79c['state']['selection'],!0x1===this['dragging'])||this['view']['dispatch']({'selection':_0x58a8e5,'userEvent':'select.pointer'}),this['mustSelect']=!0x1;}update(_0x125c8d){_0x125c8d['transactions']['some'](_0x4155d8=>_0x4155d8['isUserEvent']('input.type'))?this['destroy']():this['style']['update'](_0x125c8d)&&setTimeout(()=>this['select'](this['lastEvent']),0x14);}};const Jj=Object['create'](null),tU=Object['create'](null),eU=fD['ie']&&fD['ie_version']<0xf||fD['ios']&&fD['webkit_version']<0x25c;function iU(_0x33fc05,_0x430b11,_0x1f0a35){for(let _0x5ef1b5 of _0x33fc05['facet'](_0x430b11))_0x1f0a35=_0x5ef1b5(_0x1f0a35,_0x33fc05);return _0x1f0a35;}function sU(_0x5a0ba9,_0x46a937){_0x46a937=iU(_0x5a0ba9['state'],EQ,_0x46a937);let _0x23aa5b,{state:_0x383646}=_0x5a0ba9,_0x3a8d9e=0x1,_0x4e1536=_0x383646['toText'](_0x46a937),_0x274a8d=_0x4e1536['lines']==_0x383646['selection']['ranges']['length'];if(null!=uU&&_0x383646['selection']['ranges']['every'](_0x230181=>_0x230181['empty'])&&uU==_0x4e1536['toString']()){let _0x5d20fa=-0x1;_0x23aa5b=_0x383646['changeByRange'](_0xa9470c=>{let _0x5b9055=_0x383646['doc']['lineAt'](_0xa9470c['from']);if(_0x5b9055['from']==_0x5d20fa)return{'range':_0xa9470c};_0x5d20fa=_0x5b9055['from'];let _0x3a0a4f=_0x383646['toText']((_0x274a8d?_0x4e1536['line'](_0x3a8d9e++)['text']:_0x46a937)+_0x383646['lineBreak']);return{'changes':{'from':_0x5b9055['from'],'insert':_0x3a0a4f},'range':PL['cursor'](_0xa9470c['from']+_0x3a0a4f['length'])};});}else _0x23aa5b=_0x274a8d?_0x383646['changeByRange'](_0x5492cc=>{let _0x1b1231=_0x4e1536['line'](_0x3a8d9e++);return{'changes':{'from':_0x5492cc['from'],'to':_0x5492cc['to'],'insert':_0x1b1231['text']},'range':PL['cursor'](_0x5492cc['from']+_0x1b1231['length'])};}):_0x383646['replaceSelection'](_0x4e1536);_0x5a0ba9['dispatch'](_0x23aa5b,{'userEvent':'input.paste','scrollIntoView':!0x0});}function nU(_0x487681,_0x3c292c,_0x194469,_0x19d964){if(0x1==_0x19d964)return PL['cursor'](_0x3c292c,_0x194469);if(0x2==_0x19d964)return function(_0xcd5502,_0x4bb553,_0x97eca5=0x1){let _0x1f0239=_0xcd5502['charCategorizer'](_0x4bb553),_0x3d8695=_0xcd5502['doc']['lineAt'](_0x4bb553),_0x1afc92=_0x4bb553-_0x3d8695['from'];if(0x0==_0x3d8695['length'])return PL['cursor'](_0x4bb553);0x0==_0x1afc92?_0x97eca5=0x1:_0x1afc92==_0x3d8695['length']&&(_0x97eca5=-0x1);let _0x8071d1=_0x1afc92,_0xcb23ad=_0x1afc92;_0x97eca5<0x0?_0x8071d1=OL(_0x3d8695['text'],_0x1afc92,!0x1):_0xcb23ad=OL(_0x3d8695['text'],_0x1afc92);let _0x578af1=_0x1f0239(_0x3d8695['text']['slice'](_0x8071d1,_0xcb23ad));for(;_0x8071d1>0x0;){let _0x46f840=OL(_0x3d8695['text'],_0x8071d1,!0x1);if(_0x1f0239(_0x3d8695['text']['slice'](_0x46f840,_0x8071d1))!=_0x578af1)break;_0x8071d1=_0x46f840;}for(;_0xcb23ad<_0x3d8695['length'];){let _0x52ceb1=OL(_0x3d8695['text'],_0xcb23ad);if(_0x1f0239(_0x3d8695['text']['slice'](_0xcb23ad,_0x52ceb1))!=_0x578af1)break;_0xcb23ad=_0x52ceb1;}return PL['range'](_0x8071d1+_0x3d8695['from'],_0xcb23ad+_0x3d8695['from']);}(_0x487681['state'],_0x3c292c,_0x194469);{let _0x2c5833=_0x487681['docView']['lineAt'](_0x3c292c,_0x194469),_0x2d020c=_0x487681['state']['doc']['lineAt'](_0x2c5833?_0x2c5833['posAtEnd']:_0x3c292c),_0x530ca5=_0x2c5833?_0x2c5833['posAtStart']:_0x2d020c['from'],_0x38d2de=_0x2c5833?_0x2c5833['posAtEnd']:_0x2d020c['to'];return _0x38d2de<_0x487681['state']['doc']['length']&&_0x38d2de==_0x2d020c['to']&&_0x38d2de++,PL['range'](_0x530ca5,_0x38d2de);}}tU['scroll']=_0x5a05ad=>{_0x5a05ad['inputState']['lastScrollTop']=_0x5a05ad['scrollDOM']['scrollTop'],_0x5a05ad['inputState']['lastScrollLeft']=_0x5a05ad['scrollDOM']['scrollLeft'];},tU['wheel']=tU['mousewheel']=_0x23179d=>{_0x23179d['inputState']['lastWheelEvent']=Date['now']();},Jj['keydown']=(_0x543e71,_0x2885db)=>(_0x543e71['inputState']['setSelectionOrigin']('select'),0x1b==_0x2885db['keyCode']&&0x0!=_0x543e71['inputState']['tabFocusMode']&&(_0x543e71['inputState']['tabFocusMode']=Date['now']()+0x7d0),!0x1),tU['touchstart']=(_0x52b41b,_0x51d10b)=>{let _0x3884f2=_0x52b41b['inputState'],_0x252d2d=_0x51d10b['targetTouches'][0x0];_0x3884f2['lastTouchTime']=Date['now'](),_0x252d2d&&(_0x3884f2['lastTouchX']=_0x252d2d['clientX'],_0x3884f2['lastTouchY']=_0x252d2d['clientY']),_0x3884f2['setSelectionOrigin']('select.pointer');},tU['touchmove']=_0x3645bb=>{_0x3645bb['inputState']['setSelectionOrigin']('select.pointer');},Jj['mousedown']=(_0x31d611,_0x42f113)=>{if(_0x31d611['observer']['flush'](),_0x31d611['inputState']['lastTouchTime']>Date['now']()-0x7d0)return!0x1;let _0x4f4682=null;for(let _0x3420ef of _0x31d611['state']['facet'](wQ))if(_0x4f4682=_0x3420ef(_0x31d611,_0x42f113),_0x4f4682)break;if(_0x4f4682||0x0!=_0x42f113['button']||(_0x4f4682=function(_0x88f891,_0x8f09c2){let _0x130028=_0x88f891['posAndSideAtCoords']({'x':_0x8f09c2['clientX'],'y':_0x8f09c2['clientY']},!0x1),_0x214cfc=lU(_0x8f09c2),_0xfa57c=_0x88f891['state']['selection'];return{'update'(_0x4ac2af){_0x4ac2af['docChanged']&&(_0x130028['pos']=_0x4ac2af['changes']['mapPos'](_0x130028['pos']),_0xfa57c=_0xfa57c['map'](_0x4ac2af['changes']));},'get'(_0x2577bd,_0x477253,_0x54b3c4){let _0x90bf86,_0x1c0a89=_0x88f891['posAndSideAtCoords']({'x':_0x2577bd['clientX'],'y':_0x2577bd['clientY']},!0x1),_0x2cf721=nU(_0x88f891,_0x1c0a89['pos'],_0x1c0a89['assoc'],_0x214cfc);if(_0x130028['pos']!=_0x1c0a89['pos']&&!_0x477253){let _0x1fa359=nU(_0x88f891,_0x130028['pos'],_0x130028['assoc'],_0x214cfc),_0x497bfc=Math['min'](_0x1fa359['from'],_0x2cf721['from']),_0x5935c5=Math['max'](_0x1fa359['to'],_0x2cf721['to']);_0x2cf721=_0x497bfc<_0x2cf721['from']?PL['range'](_0x497bfc,_0x5935c5,_0x2cf721['assoc']):PL['range'](_0x5935c5,_0x497bfc,_0x2cf721['assoc']);}return _0x477253?_0xfa57c['replaceRange'](_0xfa57c['main']['extend'](_0x2cf721['from'],_0x2cf721['to'],_0x2cf721['assoc'])):_0x54b3c4&&0x1==_0x214cfc&&_0xfa57c['ranges']['length']>0x1&&(_0x90bf86=function(_0x574f81,_0x1d74a5){for(let _0x11c39b=0x0;_0x11c39b<_0x574f81['ranges']['length'];_0x11c39b++){let {from:_0x19a430,to:_0x15630a}=_0x574f81['ranges'][_0x11c39b];if(_0x19a430<=_0x1d74a5&&_0x15630a>=_0x1d74a5)return PL['create'](_0x574f81['ranges']['slice'](0x0,_0x11c39b)['concat'](_0x574f81['ranges']['slice'](_0x11c39b+0x1)),_0x574f81['mainIndex']==_0x11c39b?0x0:_0x574f81['mainIndex']-(_0x574f81['mainIndex']>_0x11c39b?0x1:0x0));}return null;}(_0xfa57c,_0x1c0a89['pos']))?_0x90bf86:_0x54b3c4?_0xfa57c['addRange'](_0x2cf721):PL['create']([_0x2cf721]);}};}(_0x31d611,_0x42f113)),_0x4f4682){let _0x9f3817=!_0x31d611['hasFocus'];_0x31d611['inputState']['startMouseSelection'](new Kj(_0x31d611,_0x42f113,_0x4f4682,_0x9f3817)),_0x9f3817&&_0x31d611['observer']['ignore'](()=>{FD(_0x31d611['contentDOM']);let _0x26e603=_0x31d611['root']['activeElement'];_0x26e603&&!_0x26e603['contains'](_0x31d611['contentDOM'])&&_0x26e603['blur']();});let _0x18684f=_0x31d611['inputState']['mouseSelection'];if(_0x18684f)return _0x18684f['start'](_0x42f113),!0x1===_0x18684f['dragging'];}else _0x31d611['inputState']['setSelectionOrigin']('select.pointer');return!0x1;};const rU=fD['ie']&&fD['ie_version']<=0xb;let oU=null,aU=0x0,cU=0x0;function lU(_0x418524){if(!rU)return _0x418524['detail'];let _0x33c08a=oU,_0x5a120d=cU;return oU=_0x418524,cU=Date['now'](),aU=!_0x33c08a||_0x5a120d>Date['now']()-0x190&&Math['abs'](_0x33c08a['clientX']-_0x418524['clientX'])<0x2&&Math['abs'](_0x33c08a['clientY']-_0x418524['clientY'])<0x2?(aU+0x1)%0x3:0x1;}function hU(_0x3c2158,_0x5a25e5,_0x13ed63,_0x34779e){if(!(_0x13ed63=iU(_0x3c2158['state'],EQ,_0x13ed63)))return;let _0x3b431c=_0x3c2158['posAtCoords']({'x':_0x5a25e5['clientX'],'y':_0x5a25e5['clientY']},!0x1),{draggedContent:_0x3314ae}=_0x3c2158['inputState'],_0x5a5857=_0x34779e&&_0x3314ae&&function(_0x4e2812,_0x5788df){let _0x5a753d=_0x4e2812['state']['facet'](OQ);return _0x5a753d['length']?_0x5a753d[0x0](_0x5788df):fD['mac']?!_0x5788df['altKey']:!_0x5788df['ctrlKey'];}(_0x3c2158,_0x5a25e5)?{'from':_0x3314ae['from'],'to':_0x3314ae['to']}:null,_0x1f3040={'from':_0x3b431c,'insert':_0x13ed63},_0xef579f=_0x3c2158['state']['changes'](_0x5a5857?[_0x5a5857,_0x1f3040]:_0x1f3040);_0x3c2158['focus'](),_0x3c2158['dispatch']({'changes':_0xef579f,'selection':{'anchor':_0xef579f['mapPos'](_0x3b431c,-0x1),'head':_0xef579f['mapPos'](_0x3b431c,0x1)},'userEvent':_0x5a5857?'move.drop':'input.drop'}),_0x3c2158['inputState']['draggedContent']=null;}Jj['dragstart']=(_0x339216,_0x369402)=>{let {selection:{main:_0x35f45f}}=_0x339216['state'];if(_0x369402['target']['draggable']){let _0x560a54=_0x339216['docView']['tile']['nearest'](_0x369402['target']);if(_0x560a54&&_0x560a54['isWidget']()){let _0xbdb9a=_0x560a54['posAtStart'],_0x4d759c=_0xbdb9a+_0x560a54['length'];(_0xbdb9a>=_0x35f45f['to']||_0x4d759c<=_0x35f45f['from'])&&(_0x35f45f=PL['range'](_0xbdb9a,_0x4d759c));}}let {inputState:_0x3adf5e}=_0x339216;return _0x3adf5e['mouseSelection']&&(_0x3adf5e['mouseSelection']['dragging']=!0x0),_0x3adf5e['draggedContent']=_0x35f45f,_0x369402['dataTransfer']&&(_0x369402['dataTransfer']['setData']('Text',iU(_0x339216['state'],TQ,_0x339216['state']['sliceDoc'](_0x35f45f['from'],_0x35f45f['to']))),_0x369402['dataTransfer']['effectAllowed']='copyMove'),!0x1;},Jj['dragend']=_0x590228=>(_0x590228['inputState']['draggedContent']=null,!0x1),Jj['drop']=(_0x335d41,_0x31a0a5)=>{if(!_0x31a0a5['dataTransfer'])return!0x1;if(_0x335d41['state']['readOnly'])return!0x0;let _0x2e3da9=_0x31a0a5['dataTransfer']['files'];if(_0x2e3da9&&_0x2e3da9['length']){let _0x53e6ac=Array(_0x2e3da9['length']),_0x4dc71b=0x0,_0x25acd9=()=>{++_0x4dc71b==_0x2e3da9['length']&&hU(_0x335d41,_0x31a0a5,_0x53e6ac['filter'](_0x3d4833=>null!=_0x3d4833)['join'](_0x335d41['state']['lineBreak']),!0x1);};for(let _0xfcd434=0x0;_0xfcd434<_0x2e3da9['length'];_0xfcd434++){let _0x1ef0a1=new FileReader();_0x1ef0a1['onerror']=_0x25acd9,_0x1ef0a1['onload']=()=>{/[\x00-\x08\x0e-\x1f]{2}/['test'](_0x1ef0a1['result'])||(_0x53e6ac[_0xfcd434]=_0x1ef0a1['result']),_0x25acd9();},_0x1ef0a1['readAsText'](_0x2e3da9[_0xfcd434]);}return!0x0;}{let _0x232d22=_0x31a0a5['dataTransfer']['getData']('Text');if(_0x232d22)return hU(_0x335d41,_0x31a0a5,_0x232d22,!0x0),!0x0;}return!0x1;},Jj['paste']=(_0x2d162e,_0x557ed1)=>{if(_0x2d162e['state']['readOnly'])return!0x0;_0x2d162e['observer']['flush']();let _0x177f89=eU?null:_0x557ed1['clipboardData'];return _0x177f89?(sU(_0x2d162e,_0x177f89['getData']('text/plain')||_0x177f89['getData']('text/uri-list')),!0x0):(function(_0x3f6c6a){let _0x168330=_0x3f6c6a['dom']['parentNode'];if(!_0x168330)return;let _0x25590a=_0x168330['appendChild'](document['createElement']('textarea'));_0x25590a['style']['cssText']='position:\x20fixed;\x20left:\x20-10000px;\x20top:\x2010px',_0x25590a['focus'](),setTimeout(()=>{_0x3f6c6a['focus'](),_0x25590a['remove'](),sU(_0x3f6c6a,_0x25590a['value']);},0x32);}(_0x2d162e),!0x1);};let uU=null;Jj['copy']=Jj['cut']=(_0x419fca,_0x2d25f5)=>{if(!CD(_0x419fca['contentDOM'],_0x419fca['observer']['selectionRange']))return!0x1;let {text:_0x574d09,ranges:_0x237fad,linewise:_0x42e5b6}=function(_0x5822a7){let _0x560f6b=[],_0x5e688a=[],_0x44c911=!0x1;for(let _0x5046f7 of _0x5822a7['selection']['ranges'])_0x5046f7['empty']||(_0x560f6b['push'](_0x5822a7['sliceDoc'](_0x5046f7['from'],_0x5046f7['to'])),_0x5e688a['push'](_0x5046f7));if(!_0x560f6b['length']){let _0x3ac3b3=-0x1;for(let {from:_0x20a4ae}of _0x5822a7['selection']['ranges']){let _0x1cd370=_0x5822a7['doc']['lineAt'](_0x20a4ae);_0x1cd370['number']>_0x3ac3b3&&(_0x560f6b['push'](_0x1cd370['text']),_0x5e688a['push']({'from':_0x1cd370['from'],'to':Math['min'](_0x5822a7['doc']['length'],_0x1cd370['to']+0x1)})),_0x3ac3b3=_0x1cd370['number'];}_0x44c911=!0x0;}return{'text':iU(_0x5822a7,TQ,_0x560f6b['join'](_0x5822a7['lineBreak'])),'ranges':_0x5e688a,'linewise':_0x44c911};}(_0x419fca['state']);if(!_0x574d09&&!_0x42e5b6)return!0x1;uU=_0x42e5b6?_0x574d09:null,'cut'!=_0x2d25f5['type']||_0x419fca['state']['readOnly']||_0x419fca['dispatch']({'changes':_0x237fad,'scrollIntoView':!0x0,'userEvent':'delete.cut'});let _0x29ce21=eU?null:_0x2d25f5['clipboardData'];return _0x29ce21?(_0x29ce21['clearData'](),_0x29ce21['setData']('text/plain',_0x574d09),!0x0):(function(_0x48ae3a,_0x1ba9f0){let _0x8fd176=_0x48ae3a['dom']['parentNode'];if(!_0x8fd176)return;let _0x850834=_0x8fd176['appendChild'](document['createElement']('textarea'));_0x850834['style']['cssText']='position:\x20fixed;\x20left:\x20-10000px;\x20top:\x2010px',_0x850834['value']=_0x1ba9f0,_0x850834['focus'](),_0x850834['selectionEnd']=_0x1ba9f0['length'],_0x850834['selectionStart']=0x0,setTimeout(()=>{_0x850834['remove'](),_0x48ae3a['focus']();},0x32);}(_0x419fca,_0x574d09),!0x1);};const dU=c$['define']();function fU(_0x4c1405,_0x32369c){let _0x404c68=[];for(let _0xa92a62 of _0x4c1405['facet'](_Q)){let _0x49764a=_0xa92a62(_0x4c1405,_0x32369c);_0x49764a&&_0x404c68['push'](_0x49764a);}return _0x404c68['length']?_0x4c1405['update']({'effects':_0x404c68,'annotations':dU['of'](!0x0)}):null;}function mU(_0x1faf33){setTimeout(()=>{let _0x438129=_0x1faf33['hasFocus'];if(_0x438129!=_0x1faf33['inputState']['notifiedFocused']){let _0x22cbcb=fU(_0x1faf33['state'],_0x438129);_0x22cbcb?_0x1faf33['dispatch'](_0x22cbcb):_0x1faf33['update']([]);}},0xa);}tU['focus']=_0x336360=>{_0x336360['inputState']['lastFocusTime']=Date['now'](),_0x336360['scrollDOM']['scrollTop']||!_0x336360['inputState']['lastScrollTop']&&!_0x336360['inputState']['lastScrollLeft']||(_0x336360['scrollDOM']['scrollTop']=_0x336360['inputState']['lastScrollTop'],_0x336360['scrollDOM']['scrollLeft']=_0x336360['inputState']['lastScrollLeft']),mU(_0x336360);},tU['blur']=_0x4ad166=>{_0x4ad166['observer']['clearSelectionRange'](),mU(_0x4ad166);},tU['compositionstart']=tU['compositionupdate']=_0x5e92b0=>{_0x5e92b0['observer']['editContext']||(null==_0x5e92b0['inputState']['compositionFirstChange']&&(_0x5e92b0['inputState']['compositionFirstChange']=!0x0),_0x5e92b0['inputState']['composing']<0x0&&(_0x5e92b0['inputState']['composing']=0x0));},tU['compositionend']=_0x17895b=>{_0x17895b['observer']['editContext']||(_0x17895b['inputState']['composing']=-0x1,_0x17895b['inputState']['compositionEndedAt']=Date['now'](),_0x17895b['inputState']['compositionPendingKey']=!0x0,_0x17895b['inputState']['compositionPendingChange']=_0x17895b['observer']['pendingRecords']()['length']>0x0,_0x17895b['inputState']['compositionFirstChange']=null,fD['chrome']&&fD['android']?_0x17895b['observer']['flushSoon']():_0x17895b['inputState']['compositionPendingChange']?Promise['resolve']()['then'](()=>_0x17895b['observer']['flush']()):setTimeout(()=>{_0x17895b['inputState']['composing']<0x0&&_0x17895b['docView']['hasComposition']&&_0x17895b['update']([]);},0x32));},tU['contextmenu']=_0x55ed6d=>{_0x55ed6d['inputState']['lastContextMenu']=Date['now']();},Jj['beforeinput']=(_0x230901,_0x20e70b)=>{var _0x1dc763,_0x4dcd4a;if('insertText'!=_0x20e70b['inputType']&&'insertCompositionText'!=_0x20e70b['inputType']||(_0x230901['inputState']['insertingText']=_0x20e70b['data'],_0x230901['inputState']['insertingTextAt']=Date['now']()),'insertReplacementText'==_0x20e70b['inputType']&&_0x230901['observer']['editContext']){let _0x497df7=null===(_0x1dc763=_0x20e70b['dataTransfer'])||void 0x0===_0x1dc763?void 0x0:_0x1dc763['getData']('text/plain'),_0x4718d3=_0x20e70b['getTargetRanges']();if(_0x497df7&&_0x4718d3['length']){let _0x3a6ee3=_0x4718d3[0x0];return Bj(_0x230901,{'from':_0x230901['posAtDOM'](_0x3a6ee3['startContainer'],_0x3a6ee3['startOffset']),'to':_0x230901['posAtDOM'](_0x3a6ee3['endContainer'],_0x3a6ee3['endOffset']),'insert':_0x230901['state']['toText'](_0x497df7)},null),!0x0;}}let _0x3e6094;if(fD['chrome']&&fD['android']&&(_0x3e6094=qj['find'](_0x1df8d4=>_0x1df8d4['inputType']==_0x20e70b['inputType']))&&(_0x230901['observer']['delayAndroidKey'](_0x3e6094['key'],_0x3e6094['keyCode']),'Backspace'==_0x3e6094['key']||'Delete'==_0x3e6094['key'])){let _0x1dcbea=(null===(_0x4dcd4a=window['visualViewport'])||void 0x0===_0x4dcd4a?void 0x0:_0x4dcd4a['height'])||0x0;setTimeout(()=>{var _0x1205df;((null===(_0x1205df=window['visualViewport'])||void 0x0===_0x1205df?void 0x0:_0x1205df['height'])||0x0)>_0x1dcbea+0xa&&_0x230901['hasFocus']&&(_0x230901['contentDOM']['blur'](),_0x230901['focus']());},0x64);}return fD['ios']&&'deleteContentForward'==_0x20e70b['inputType']&&_0x230901['observer']['flushSoon'](),fD['safari']&&'insertText'==_0x20e70b['inputType']&&_0x230901['inputState']['composing']>=0x0&&setTimeout(()=>tU['compositionend'](_0x230901,_0x20e70b),0x14),!0x1;};const pU=new Set(),gU=['pre-wrap','normal','pre-line','break-spaces'];let OU=!0x1;function wU(){OU=!0x1;}var bU=class{constructor(_0x1a8da7){this['lineWrapping']=_0x1a8da7,this['doc']=aL['empty'],this['heightSamples']={},this['lineHeight']=0xe,this['charWidth']=0x7,this['textHeight']=0xe,this['lineLength']=0x1e;}heightForGap(_0x3edfe0,_0x14b6a1){let _0x8990b3=this['doc']['lineAt'](_0x14b6a1)['number']-this['doc']['lineAt'](_0x3edfe0)['number']+0x1;return this['lineWrapping']&&(_0x8990b3+=Math['max'](0x0,Math['ceil']((_0x14b6a1-_0x3edfe0-_0x8990b3*this['lineLength']*0.5)/this['lineLength']))),this['lineHeight']*_0x8990b3;}heightForLine(_0x20f7e7){return this['lineWrapping']?(0x1+Math['max'](0x0,Math['ceil']((_0x20f7e7-this['lineLength'])/Math['max'](0x1,this['lineLength']-0x5))))*this['lineHeight']:this['lineHeight'];}setDoc(_0x25d787){return this['doc']=_0x25d787,this;}mustRefreshForWrapping(_0x538151){return gU['indexOf'](_0x538151)>-0x1!=this['lineWrapping'];}mustRefreshForHeights(_0xe6959f){let _0x8b7006=!0x1;for(let _0x3b12a5=0x0;_0x3b12a5<_0xe6959f['length'];_0x3b12a5++){let _0x2e45c6=_0xe6959f[_0x3b12a5];_0x2e45c6<0x0?_0x3b12a5++:this['heightSamples'][Math['floor'](0xa*_0x2e45c6)]||(_0x8b7006=!0x0,this['heightSamples'][Math['floor'](0xa*_0x2e45c6)]=!0x0);}return _0x8b7006;}['refresh'](_0x518c31,_0x46d6cb,_0x166636,_0x48d78,_0x12e58b,_0x4ae72b){let _0x2dd8de=gU['indexOf'](_0x518c31)>-0x1,_0x5a1226=Math['abs'](_0x46d6cb-this['lineHeight'])>0.3||this['lineWrapping']!=_0x2dd8de;if(this['lineWrapping']=_0x2dd8de,this['lineHeight']=_0x46d6cb,this['charWidth']=_0x166636,this['textHeight']=_0x48d78,this['lineLength']=_0x12e58b,_0x5a1226){this['heightSamples']={};for(let _0x1501ff=0x0;_0x1501ff<_0x4ae72b['length'];_0x1501ff++){let _0x5e93ad=_0x4ae72b[_0x1501ff];_0x5e93ad<0x0?_0x1501ff++:this['heightSamples'][Math['floor'](0xa*_0x5e93ad)]=!0x0;}}return _0x5a1226;}},yU=class{constructor(_0x307d78,_0x16ea4c){this['from']=_0x307d78,this['heights']=_0x16ea4c,this['index']=0x0;}get['more'](){return this['index']<this['heights']['length'];}},vU=class BlockInfo{constructor(_0x5370b7,_0x4b4a37,_0x1a136f,_0x1e1611,_0x3079a1){this['from']=_0x5370b7,this['length']=_0x4b4a37,this['top']=_0x1a136f,this['height']=_0x1e1611,this['_content']=_0x3079a1;}get type(){return'number'==typeof this['_content']?yD['Text']:Array['isArray'](this['_content'])?this['_content']:this['_content']['type'];}get to(){return this['from']+this['length'];}get bottom(){return this['top']+this['height'];}get widget(){return this['_content']instanceof TD?this['_content']['widget']:null;}get widgetLineBreaks(){return'number'==typeof this['_content']?this['_content']:0x0;}['join'](_0x15f7a4){let _0x3ada74=(Array['isArray'](this['_content'])?this['_content']:[this])['concat'](Array['isArray'](_0x15f7a4['_content'])?_0x15f7a4['_content']:[_0x15f7a4]);return new BlockInfo(this['from'],this['length']+_0x15f7a4['length'],this['top'],this['height']+_0x15f7a4['height'],_0x3ada74);}},_U=function(_0x2cba7c){return _0x2cba7c[_0x2cba7c['ByPos']=0x0]='ByPos',_0x2cba7c[_0x2cba7c['ByHeight']=0x1]='ByHeight',_0x2cba7c[_0x2cba7c['ByPosNoHeight']=0x2]='ByPosNoHeight',_0x2cba7c;}(_U||(_U={}));const EU=0.001;var TU=class HeightMap{constructor(_0x4cfff0,_0x64f819,_0x34b73c=0x2){this['length']=_0x4cfff0,this['height']=_0x64f819,this['flags']=_0x34b73c;}get outdated(){return(0x2&this['flags'])>0x0;}set outdated(_0x7231d9){this['flags']=(_0x7231d9?0x2:0x0)|-0x3&this['flags'];}setHeight(_0x46b496){this['height']!=_0x46b496&&(Math['abs'](this['height']-_0x46b496)>EU&&(OU=!0x0),this['height']=_0x46b496);}['replace'](_0x50521e,_0x2d127e,_0xff99c1){return HeightMap['of'](_0xff99c1);}decomposeLeft(_0x44da36,_0x5ede25){_0x5ede25['push'](this);}decomposeRight(_0x2449a8,_0x1bf312){_0x1bf312['push'](this);}['applyChanges'](_0x5a5e8f,_0x48e647,_0x4b16d7,_0x4d9d04){let _0x83099=this,_0x8a1c7c=_0x4b16d7['doc'];for(let _0x513323=_0x4d9d04['length']-0x1;_0x513323>=0x0;_0x513323--){let {fromA:_0x48ef1b,toA:_0x48b814,fromB:_0x5a527a,toB:_0x3f9803}=_0x4d9d04[_0x513323],_0x2848d7=_0x83099['lineAt'](_0x48ef1b,_U['ByPosNoHeight'],_0x4b16d7['setDoc'](_0x48e647),0x0,0x0),_0x5b0d67=_0x2848d7['to']>=_0x48b814?_0x2848d7:_0x83099['lineAt'](_0x48b814,_U['ByPosNoHeight'],_0x4b16d7,0x0,0x0);for(_0x3f9803+=_0x5b0d67['to']-_0x48b814,_0x48b814=_0x5b0d67['to'];_0x513323>0x0&&_0x2848d7['from']<=_0x4d9d04[_0x513323-0x1]['toA'];)_0x48ef1b=_0x4d9d04[_0x513323-0x1]['fromA'],_0x5a527a=_0x4d9d04[_0x513323-0x1]['fromB'],_0x513323--,_0x48ef1b<_0x2848d7['from']&&(_0x2848d7=_0x83099['lineAt'](_0x48ef1b,_U['ByPosNoHeight'],_0x4b16d7,0x0,0x0));_0x5a527a+=_0x2848d7['from']-_0x48ef1b,_0x48ef1b=_0x2848d7['from'];let _0x9b0bd2=PU['build'](_0x4b16d7['setDoc'](_0x8a1c7c),_0x5a5e8f,_0x5a527a,_0x3f9803);_0x83099=AU(_0x83099,_0x83099['replace'](_0x48ef1b,_0x48b814,_0x9b0bd2));}return _0x83099['updateHeight'](_0x4b16d7,0x0);}static empty(){return new kU(0x0,0x0,0x0);}static['of'](_0x5a3b42){if(0x1==_0x5a3b42['length'])return _0x5a3b42[0x0];let _0x50da92=0x0,_0x104431=_0x5a3b42['length'],_0x410127=0x0,_0x48b3f1=0x0;for(;;)if(_0x50da92==_0x104431){if(_0x410127>0x2*_0x48b3f1){let _0x4352b4=_0x5a3b42[_0x50da92-0x1];_0x4352b4['break']?_0x5a3b42['splice'](--_0x50da92,0x1,_0x4352b4['left'],null,_0x4352b4['right']):_0x5a3b42['splice'](--_0x50da92,0x1,_0x4352b4['left'],_0x4352b4['right']),_0x104431+=0x1+_0x4352b4['break'],_0x410127-=_0x4352b4['size'];}else{if(!(_0x48b3f1>0x2*_0x410127))break;{let _0x23e070=_0x5a3b42[_0x104431];_0x23e070['break']?_0x5a3b42['splice'](_0x104431,0x1,_0x23e070['left'],null,_0x23e070['right']):_0x5a3b42['splice'](_0x104431,0x1,_0x23e070['left'],_0x23e070['right']),_0x104431+=0x2+_0x23e070['break'],_0x48b3f1-=_0x23e070['size'];}}}else{if(_0x410127<_0x48b3f1){let _0x26f8e1=_0x5a3b42[_0x50da92++];_0x26f8e1&&(_0x410127+=_0x26f8e1['size']);}else{let _0x437fde=_0x5a3b42[--_0x104431];_0x437fde&&(_0x48b3f1+=_0x437fde['size']);}}let _0x2ca46b=0x0;return null==_0x5a3b42[_0x50da92-0x1]?(_0x2ca46b=0x1,_0x50da92--):null==_0x5a3b42[_0x50da92]&&(_0x2ca46b=0x1,_0x104431++),new CU(HeightMap['of'](_0x5a3b42['slice'](0x0,_0x50da92)),_0x2ca46b,HeightMap['of'](_0x5a3b42['slice'](_0x104431)));}};function AU(_0x11f3b6,_0x40cd1a){return _0x11f3b6==_0x40cd1a?_0x11f3b6:(_0x11f3b6['constructor']!=_0x40cd1a['constructor']&&(OU=!0x0),_0x40cd1a);}TU['prototype']['size']=0x1;const SU=vD['replace']({});var IU=class extends TU{constructor(_0x1f5c35,_0x22be63,_0x1d8e7b){super(_0x1f5c35,_0x22be63),this['deco']=_0x1d8e7b,this['spaceAbove']=0x0;}['mainBlock'](_0x188a87,_0x9fe68){return new vU(_0x9fe68,this['length'],_0x188a87+this['spaceAbove'],this['height']-this['spaceAbove'],this['deco']||0x0);}blockAt(_0x26bf9c,_0x10cc9e,_0x1bae14,_0x5e370b){return this['spaceAbove']&&_0x26bf9c<_0x1bae14+this['spaceAbove']?new vU(_0x5e370b,0x0,_0x1bae14,this['spaceAbove'],SU):this['mainBlock'](_0x1bae14,_0x5e370b);}lineAt(_0x485298,_0x28dfe4,_0xf71c93,_0x312225,_0x2a5f59){let _0x35c85e=this['mainBlock'](_0x312225,_0x2a5f59);return this['spaceAbove']?this['blockAt'](0x0,_0xf71c93,_0x312225,_0x2a5f59)['join'](_0x35c85e):_0x35c85e;}['forEachLine'](_0x19d36f,_0x2cbee1,_0x224a2c,_0x4fab7d,_0x81d5bf,_0x4f8b07){_0x19d36f<=_0x81d5bf+this['length']&&_0x2cbee1>=_0x81d5bf&&_0x4f8b07(this['lineAt'](0x0,_U['ByPos'],_0x224a2c,_0x4fab7d,_0x81d5bf));}setMeasuredHeight(_0x4786e5){let _0x344f95=_0x4786e5['heights'][_0x4786e5['index']++];_0x344f95<0x0?(this['spaceAbove']=-_0x344f95,_0x344f95=_0x4786e5['heights'][_0x4786e5['index']++]):this['spaceAbove']=0x0,this['setHeight'](_0x344f95);}updateHeight(_0x1c1093,_0x588d0d=0x0,_0x2c250c=!0x1,_0x290455){return _0x290455&&_0x290455['from']<=_0x588d0d&&_0x290455['more']&&this['setMeasuredHeight'](_0x290455),this['outdated']=!0x1,this;}toString(){return'block('+this['length']+')';}},kU=class HeightMapText extends IU{constructor(_0x219e31,_0x13ff48,_0x1253d1){super(_0x219e31,_0x13ff48,null),this['collapsed']=0x0,this['widgetHeight']=0x0,this['breaks']=0x0,this['spaceAbove']=_0x1253d1;}['mainBlock'](_0x17a5c5,_0x5d8e38){return new vU(_0x5d8e38,this['length'],_0x17a5c5+this['spaceAbove'],this['height']-this['spaceAbove'],this['breaks']);}['replace'](_0xe0ddf6,_0x2fc14d,_0x9643ff){let _0xf6e9d7=_0x9643ff[0x0];return 0x1==_0x9643ff['length']&&(_0xf6e9d7 instanceof HeightMapText||_0xf6e9d7 instanceof xU&&0x4&_0xf6e9d7['flags'])&&Math['abs'](this['length']-_0xf6e9d7['length'])<0xa?(_0xf6e9d7 instanceof xU?_0xf6e9d7=new HeightMapText(_0xf6e9d7['length'],this['height'],this['spaceAbove']):_0xf6e9d7['height']=this['height'],this['outdated']||(_0xf6e9d7['outdated']=!0x1),_0xf6e9d7):TU['of'](_0x9643ff);}updateHeight(_0x55da04,_0x31bd2f=0x0,_0x291e9c=!0x1,_0x4a0638){return _0x4a0638&&_0x4a0638['from']<=_0x31bd2f&&_0x4a0638['more']?this['setMeasuredHeight'](_0x4a0638):(_0x291e9c||this['outdated'])&&(this['spaceAbove']=0x0,this['setHeight'](Math['max'](this['widgetHeight'],_0x55da04['heightForLine'](this['length']-this['collapsed']))+this['breaks']*_0x55da04['lineHeight'])),this['outdated']=!0x1,this;}toString(){return'line('+this['length']+(this['collapsed']?-this['collapsed']:'')+(this['widgetHeight']?':'+this['widgetHeight']:'')+')';}},xU=class HeightMapGap extends TU{constructor(_0x1b37ed){super(_0x1b37ed,0x0);}heightMetrics(_0x5d1ba0,_0x84566e){let _0x10ba32,_0x5a5451=_0x5d1ba0['doc']['lineAt'](_0x84566e)['number'],_0x15c918=_0x5d1ba0['doc']['lineAt'](_0x84566e+this['length'])['number'],_0x17ffac=_0x15c918-_0x5a5451+0x1,_0x59d61f=0x0;if(_0x5d1ba0['lineWrapping']){let _0x8f2409=Math['min'](this['height'],_0x5d1ba0['lineHeight']*_0x17ffac);_0x10ba32=_0x8f2409/_0x17ffac,this['length']>_0x17ffac+0x1&&(_0x59d61f=(this['height']-_0x8f2409)/(this['length']-_0x17ffac-0x1));}else _0x10ba32=this['height']/_0x17ffac;return{'firstLine':_0x5a5451,'lastLine':_0x15c918,'perLine':_0x10ba32,'perChar':_0x59d61f};}blockAt(_0x396372,_0x4b9e1a,_0x2909b7,_0xb5d1e5){let {firstLine:_0xa00459,lastLine:_0x1cd178,perLine:_0x5c49a3,perChar:_0x1e3291}=this['heightMetrics'](_0x4b9e1a,_0xb5d1e5);if(_0x4b9e1a['lineWrapping']){let _0x5e4dfb=_0xb5d1e5+(_0x396372<_0x4b9e1a['lineHeight']?0x0:Math['round'](Math['max'](0x0,Math['min'](0x1,(_0x396372-_0x2909b7)/this['height']))*this['length'])),_0x29f8ae=_0x4b9e1a['doc']['lineAt'](_0x5e4dfb),_0x47f81b=_0x5c49a3+_0x29f8ae['length']*_0x1e3291,_0x3510b0=Math['max'](_0x2909b7,_0x396372-_0x47f81b/0x2);return new vU(_0x29f8ae['from'],_0x29f8ae['length'],_0x3510b0,_0x47f81b,0x0);}{let _0x32864a=Math['max'](0x0,Math['min'](_0x1cd178-_0xa00459,Math['floor']((_0x396372-_0x2909b7)/_0x5c49a3))),{from:_0x31d146,length:_0x27f502}=_0x4b9e1a['doc']['line'](_0xa00459+_0x32864a);return new vU(_0x31d146,_0x27f502,_0x2909b7+_0x5c49a3*_0x32864a,_0x5c49a3,0x0);}}lineAt(_0x44a7c4,_0x26f455,_0x352095,_0x48727e,_0x812fde){if(_0x26f455==_U['ByHeight'])return this['blockAt'](_0x44a7c4,_0x352095,_0x48727e,_0x812fde);if(_0x26f455==_U['ByPosNoHeight']){let {from:_0x5b9115,to:_0x338334}=_0x352095['doc']['lineAt'](_0x44a7c4);return new vU(_0x5b9115,_0x338334-_0x5b9115,0x0,0x0,0x0);}let {firstLine:_0x29b8dc,perLine:_0xbaf58d,perChar:_0x9e837a}=this['heightMetrics'](_0x352095,_0x812fde),_0x16c912=_0x352095['doc']['lineAt'](_0x44a7c4),_0x126364=_0xbaf58d+_0x16c912['length']*_0x9e837a,_0x3025c0=_0x16c912['number']-_0x29b8dc,_0x1726b3=_0x48727e+_0xbaf58d*_0x3025c0+_0x9e837a*(_0x16c912['from']-_0x812fde-_0x3025c0);return new vU(_0x16c912['from'],_0x16c912['length'],Math['max'](_0x48727e,Math['min'](_0x1726b3,_0x48727e+this['height']-_0x126364)),_0x126364,0x0);}['forEachLine'](_0x566c6f,_0x114363,_0x543b07,_0x13ba03,_0x258cc6,_0x5b560e){_0x566c6f=Math['max'](_0x566c6f,_0x258cc6),_0x114363=Math['min'](_0x114363,_0x258cc6+this['length']);let {firstLine:_0x5bdc13,perLine:_0x3c7407,perChar:_0x2a0418}=this['heightMetrics'](_0x543b07,_0x258cc6);for(let _0x11d992=_0x566c6f,_0x2a0c20=_0x13ba03;_0x11d992<=_0x114363;){let _0x4105cb=_0x543b07['doc']['lineAt'](_0x11d992);if(_0x11d992==_0x566c6f){let _0x402b38=_0x4105cb['number']-_0x5bdc13;_0x2a0c20+=_0x3c7407*_0x402b38+_0x2a0418*(_0x566c6f-_0x258cc6-_0x402b38);}let _0x36607f=_0x3c7407+_0x2a0418*_0x4105cb['length'];_0x5b560e(new vU(_0x4105cb['from'],_0x4105cb['length'],_0x2a0c20,_0x36607f,0x0)),_0x2a0c20+=_0x36607f,_0x11d992=_0x4105cb['to']+0x1;}}['replace'](_0x4e02fb,_0x146c5f,_0x55db87){let _0x2d62ec=this['length']-_0x146c5f;if(_0x2d62ec>0x0){let _0x5d3d9d=_0x55db87[_0x55db87['length']-0x1];_0x5d3d9d instanceof HeightMapGap?_0x55db87[_0x55db87['length']-0x1]=new HeightMapGap(_0x5d3d9d['length']+_0x2d62ec):_0x55db87['push'](null,new HeightMapGap(_0x2d62ec-0x1));}if(_0x4e02fb>0x0){let _0x3a032c=_0x55db87[0x0];_0x3a032c instanceof HeightMapGap?_0x55db87[0x0]=new HeightMapGap(_0x4e02fb+_0x3a032c['length']):_0x55db87['unshift'](new HeightMapGap(_0x4e02fb-0x1),null);}return TU['of'](_0x55db87);}decomposeLeft(_0x93c75f,_0x523b84){_0x523b84['push'](new HeightMapGap(_0x93c75f-0x1),null);}decomposeRight(_0x53437a,_0x1108f5){_0x1108f5['push'](null,new HeightMapGap(this['length']-_0x53437a-0x1));}updateHeight(_0xde0bfe,_0x4e447b=0x0,_0x5c6e43=!0x1,_0xf46ad7){let _0x34c802=_0x4e447b+this['length'];if(_0xf46ad7&&_0xf46ad7['from']<=_0x4e447b+this['length']&&_0xf46ad7['more']){let _0x4cc641=[],_0x1e0f2d=Math['max'](_0x4e447b,_0xf46ad7['from']),_0x350175=-0x1;for(_0xf46ad7['from']>_0x4e447b&&_0x4cc641['push'](new HeightMapGap(_0xf46ad7['from']-_0x4e447b-0x1)['updateHeight'](_0xde0bfe,_0x4e447b));_0x1e0f2d<=_0x34c802&&_0xf46ad7['more'];){let _0x469169=_0xde0bfe['doc']['lineAt'](_0x1e0f2d)['length'];_0x4cc641['length']&&_0x4cc641['push'](null);let _0x22aff1=_0xf46ad7['heights'][_0xf46ad7['index']++],_0x3b8cd4=0x0;_0x22aff1<0x0&&(_0x3b8cd4=-_0x22aff1,_0x22aff1=_0xf46ad7['heights'][_0xf46ad7['index']++]),-0x1==_0x350175?_0x350175=_0x22aff1:Math['abs'](_0x22aff1-_0x350175)>=EU&&(_0x350175=-0x2);let _0x291993=new kU(_0x469169,_0x22aff1,_0x3b8cd4);_0x291993['outdated']=!0x1,_0x4cc641['push'](_0x291993),_0x1e0f2d+=_0x469169+0x1;}_0x1e0f2d<=_0x34c802&&_0x4cc641['push'](null,new HeightMapGap(_0x34c802-_0x1e0f2d)['updateHeight'](_0xde0bfe,_0x1e0f2d));let _0x4871ba=TU['of'](_0x4cc641);return(_0x350175<0x0||Math['abs'](_0x4871ba['height']-this['height'])>=EU||Math['abs'](_0x350175-this['heightMetrics'](_0xde0bfe,_0x4e447b)['perLine'])>=EU)&&(OU=!0x0),AU(this,_0x4871ba);}return(_0x5c6e43||this['outdated'])&&(this['setHeight'](_0xde0bfe['heightForGap'](_0x4e447b,_0x4e447b+this['length'])),this['outdated']=!0x1),this;}toString(){return'gap('+this['length']+')';}},CU=class extends TU{constructor(_0x54bcc1,_0x3c871f,_0x51d638){super(_0x54bcc1['length']+_0x3c871f+_0x51d638['length'],_0x54bcc1['height']+_0x51d638['height'],_0x3c871f|(_0x54bcc1['outdated']||_0x51d638['outdated']?0x2:0x0)),this['left']=_0x54bcc1,this['right']=_0x51d638,this['size']=_0x54bcc1['size']+_0x51d638['size'];}get['break'](){return 0x1&this['flags'];}blockAt(_0x2b8eec,_0x5da0f0,_0x22bd31,_0x3daec1){let _0x34a2ca=_0x22bd31+this['left']['height'];return _0x2b8eec<_0x34a2ca?this['left']['blockAt'](_0x2b8eec,_0x5da0f0,_0x22bd31,_0x3daec1):this['right']['blockAt'](_0x2b8eec,_0x5da0f0,_0x34a2ca,_0x3daec1+this['left']['length']+this['break']);}lineAt(_0x1f513a,_0x188751,_0x2cd79d,_0x43398c,_0x204fa2){let _0x16c562=_0x43398c+this['left']['height'],_0x27d8e3=_0x204fa2+this['left']['length']+this['break'],_0x489a2f=_0x188751==_U['ByHeight']?_0x1f513a<_0x16c562:_0x1f513a<_0x27d8e3,_0x55a2c6=_0x489a2f?this['left']['lineAt'](_0x1f513a,_0x188751,_0x2cd79d,_0x43398c,_0x204fa2):this['right']['lineAt'](_0x1f513a,_0x188751,_0x2cd79d,_0x16c562,_0x27d8e3);if(this['break']||(_0x489a2f?_0x55a2c6['to']<_0x27d8e3:_0x55a2c6['from']>_0x27d8e3))return _0x55a2c6;let _0x5096a9=_0x188751==_U['ByPosNoHeight']?_U['ByPosNoHeight']:_U['ByPos'];return _0x489a2f?_0x55a2c6['join'](this['right']['lineAt'](_0x27d8e3,_0x5096a9,_0x2cd79d,_0x16c562,_0x27d8e3)):this['left']['lineAt'](_0x27d8e3,_0x5096a9,_0x2cd79d,_0x43398c,_0x204fa2)['join'](_0x55a2c6);}['forEachLine'](_0x4ce372,_0x3360ef,_0x3f397f,_0x2b42a2,_0x16e96a,_0x3631fe){let _0x19627b=_0x2b42a2+this['left']['height'],_0x48da06=_0x16e96a+this['left']['length']+this['break'];if(this['break'])_0x4ce372<_0x48da06&&this['left']['forEachLine'](_0x4ce372,_0x3360ef,_0x3f397f,_0x2b42a2,_0x16e96a,_0x3631fe),_0x3360ef>=_0x48da06&&this['right']['forEachLine'](_0x4ce372,_0x3360ef,_0x3f397f,_0x19627b,_0x48da06,_0x3631fe);else{let _0x21db80=this['lineAt'](_0x48da06,_U['ByPos'],_0x3f397f,_0x2b42a2,_0x16e96a);_0x4ce372<_0x21db80['from']&&this['left']['forEachLine'](_0x4ce372,_0x21db80['from']-0x1,_0x3f397f,_0x2b42a2,_0x16e96a,_0x3631fe),_0x21db80['to']>=_0x4ce372&&_0x21db80['from']<=_0x3360ef&&_0x3631fe(_0x21db80),_0x3360ef>_0x21db80['to']&&this['right']['forEachLine'](_0x21db80['to']+0x1,_0x3360ef,_0x3f397f,_0x19627b,_0x48da06,_0x3631fe);}}['replace'](_0x1e0c83,_0x585573,_0x53f3cf){let _0x2103ae=this['left']['length']+this['break'];if(_0x585573<_0x2103ae)return this['balanced'](this['left']['replace'](_0x1e0c83,_0x585573,_0x53f3cf),this['right']);if(_0x1e0c83>this['left']['length'])return this['balanced'](this['left'],this['right']['replace'](_0x1e0c83-_0x2103ae,_0x585573-_0x2103ae,_0x53f3cf));let _0x4e2fc9=[];_0x1e0c83>0x0&&this['decomposeLeft'](_0x1e0c83,_0x4e2fc9);let _0x1bc249=_0x4e2fc9['length'];for(let _0x4f4421 of _0x53f3cf)_0x4e2fc9['push'](_0x4f4421);if(_0x1e0c83>0x0&&RU(_0x4e2fc9,_0x1bc249-0x1),_0x585573<this['length']){let _0x44f2a1=_0x4e2fc9['length'];this['decomposeRight'](_0x585573,_0x4e2fc9),RU(_0x4e2fc9,_0x44f2a1);}return TU['of'](_0x4e2fc9);}decomposeLeft(_0x5d35fe,_0x2c4b65){let _0xa16a10=this['left']['length'];if(_0x5d35fe<=_0xa16a10)return this['left']['decomposeLeft'](_0x5d35fe,_0x2c4b65);_0x2c4b65['push'](this['left']),this['break']&&(_0xa16a10++,_0x5d35fe>=_0xa16a10&&_0x2c4b65['push'](null)),_0x5d35fe>_0xa16a10&&this['right']['decomposeLeft'](_0x5d35fe-_0xa16a10,_0x2c4b65);}decomposeRight(_0x3825e4,_0x56dac7){let _0x210f16=this['left']['length'],_0x2c39fa=_0x210f16+this['break'];if(_0x3825e4>=_0x2c39fa)return this['right']['decomposeRight'](_0x3825e4-_0x2c39fa,_0x56dac7);_0x3825e4<_0x210f16&&this['left']['decomposeRight'](_0x3825e4,_0x56dac7),this['break']&&_0x3825e4<_0x2c39fa&&_0x56dac7['push'](null),_0x56dac7['push'](this['right']);}['balanced'](_0x1f0972,_0x4a4f3f){return _0x1f0972['size']>0x2*_0x4a4f3f['size']||_0x4a4f3f['size']>0x2*_0x1f0972['size']?TU['of'](this['break']?[_0x1f0972,null,_0x4a4f3f]:[_0x1f0972,_0x4a4f3f]):(this['left']=AU(this['left'],_0x1f0972),this['right']=AU(this['right'],_0x4a4f3f),this['setHeight'](_0x1f0972['height']+_0x4a4f3f['height']),this['outdated']=_0x1f0972['outdated']||_0x4a4f3f['outdated'],this['size']=_0x1f0972['size']+_0x4a4f3f['size'],this['length']=_0x1f0972['length']+this['break']+_0x4a4f3f['length'],this);}updateHeight(_0x17b14d,_0xa98e2b=0x0,_0x2902c4=!0x1,_0x33ce68){let {left:_0x253aff,right:_0x226807}=this,_0x30f86c=_0xa98e2b+_0x253aff['length']+this['break'],_0x28eded=null;return _0x33ce68&&_0x33ce68['from']<=_0xa98e2b+_0x253aff['length']&&_0x33ce68['more']?_0x28eded=_0x253aff=_0x253aff['updateHeight'](_0x17b14d,_0xa98e2b,_0x2902c4,_0x33ce68):_0x253aff['updateHeight'](_0x17b14d,_0xa98e2b,_0x2902c4),_0x33ce68&&_0x33ce68['from']<=_0x30f86c+_0x226807['length']&&_0x33ce68['more']?_0x28eded=_0x226807=_0x226807['updateHeight'](_0x17b14d,_0x30f86c,_0x2902c4,_0x33ce68):_0x226807['updateHeight'](_0x17b14d,_0x30f86c,_0x2902c4),_0x28eded?this['balanced'](_0x253aff,_0x226807):(this['height']=this['left']['height']+this['right']['height'],this['outdated']=!0x1,this);}toString(){return this['left']+(this['break']?'\x20':'-')+this['right'];}};function RU(_0x4cc5ec,_0x529cc5){let _0x43034f,_0x40b26e;null==_0x4cc5ec[_0x529cc5]&&(_0x43034f=_0x4cc5ec[_0x529cc5-0x1])instanceof xU&&(_0x40b26e=_0x4cc5ec[_0x529cc5+0x1])instanceof xU&&_0x4cc5ec['splice'](_0x529cc5-0x1,0x3,new xU(_0x43034f['length']+0x1+_0x40b26e['length']));}var PU=class NodeBuilder{constructor(_0x3b03ff,_0x400fb4){this['pos']=_0x3b03ff,this['oracle']=_0x400fb4,this['nodes']=[],this['lineStart']=-0x1,this['lineEnd']=-0x1,this['covering']=null,this['writtenTo']=_0x3b03ff;}get['isCovered'](){return this['covering']&&this['nodes'][this['nodes']['length']-0x1]==this['covering'];}['span'](_0x1f82b0,_0x2d6378){if(this['lineStart']>-0x1){let _0x468167=Math['min'](_0x2d6378,this['lineEnd']),_0x1d9e01=this['nodes'][this['nodes']['length']-0x1];_0x1d9e01 instanceof kU?_0x1d9e01['length']+=_0x468167-this['pos']:(_0x468167>this['pos']||!this['isCovered'])&&this['nodes']['push'](new kU(_0x468167-this['pos'],-0x1,0x0)),this['writtenTo']=_0x468167,_0x2d6378>_0x468167&&(this['nodes']['push'](null),this['writtenTo']++,this['lineStart']=-0x1);}this['pos']=_0x2d6378;}point(_0x3a3720,_0x134b8c,_0x3e6cad){if(_0x3a3720<_0x134b8c||_0x3e6cad['heightRelevant']){let _0x2ca7fc=_0x3e6cad['widget']?_0x3e6cad['widget']['estimatedHeight']:0x0,_0x22746d=_0x3e6cad['widget']?_0x3e6cad['widget']['lineBreaks']:0x0;_0x2ca7fc<0x0&&(_0x2ca7fc=this['oracle']['lineHeight']);let _0x2fd5db=_0x134b8c-_0x3a3720;_0x3e6cad['block']?this['addBlock'](new IU(_0x2fd5db,_0x2ca7fc,_0x3e6cad)):(_0x2fd5db||_0x22746d||_0x2ca7fc>=0x5)&&this['addLineDeco'](_0x2ca7fc,_0x22746d,_0x2fd5db);}else _0x134b8c>_0x3a3720&&this['span'](_0x3a3720,_0x134b8c);this['lineEnd']>-0x1&&this['lineEnd']<this['pos']&&(this['lineEnd']=this['oracle']['doc']['lineAt'](this['pos'])['to']);}enterLine(){if(this['lineStart']>-0x1)return;let {from:_0x472c84,to:_0xc4e155}=this['oracle']['doc']['lineAt'](this['pos']);this['lineStart']=_0x472c84,this['lineEnd']=_0xc4e155,this['writtenTo']<_0x472c84&&((this['writtenTo']<_0x472c84-0x1||null==this['nodes'][this['nodes']['length']-0x1])&&this['nodes']['push'](this['blankContent'](this['writtenTo'],_0x472c84-0x1)),this['nodes']['push'](null)),this['pos']>_0x472c84&&this['nodes']['push'](new kU(this['pos']-_0x472c84,-0x1,0x0)),this['writtenTo']=this['pos'];}blankContent(_0x237115,_0x1a0782){let _0x10ec26=new xU(_0x1a0782-_0x237115);return this['oracle']['doc']['lineAt'](_0x237115)['to']==_0x1a0782&&(_0x10ec26['flags']|=0x4),_0x10ec26;}['ensureLine'](){this['enterLine']();let _0xef6db0=this['nodes']['length']?this['nodes'][this['nodes']['length']-0x1]:null;if(_0xef6db0 instanceof kU)return _0xef6db0;let _0x5700c8=new kU(0x0,-0x1,0x0);return this['nodes']['push'](_0x5700c8),_0x5700c8;}['addBlock'](_0xf34d35){this['enterLine']();let _0x2411e2=_0xf34d35['deco'];_0x2411e2&&_0x2411e2['startSide']>0x0&&!this['isCovered']&&this['ensureLine'](),this['nodes']['push'](_0xf34d35),this['writtenTo']=this['pos']=this['pos']+_0xf34d35['length'],_0x2411e2&&_0x2411e2['endSide']>0x0&&(this['covering']=_0xf34d35);}['addLineDeco'](_0x326ff6,_0x1d676e,_0xa97930){let _0x1c8631=this['ensureLine']();_0x1c8631['length']+=_0xa97930,_0x1c8631['collapsed']+=_0xa97930,_0x1c8631['widgetHeight']=Math['max'](_0x1c8631['widgetHeight'],_0x326ff6),_0x1c8631['breaks']+=_0x1d676e,this['writtenTo']=this['pos']=this['pos']+_0xa97930;}['finish'](_0x1d9ffe){let _0x2d9b93=0x0==this['nodes']['length']?null:this['nodes'][this['nodes']['length']-0x1];!(this['lineStart']>-0x1)||_0x2d9b93 instanceof kU||this['isCovered']?(this['writtenTo']<this['pos']||null==_0x2d9b93)&&this['nodes']['push'](this['blankContent'](this['writtenTo'],this['pos'])):this['nodes']['push'](new kU(0x0,-0x1,0x0));let _0x2636a7=_0x1d9ffe;for(let _0x3eb448 of this['nodes'])_0x3eb448 instanceof kU&&_0x3eb448['updateHeight'](this['oracle'],_0x2636a7),_0x2636a7+=_0x3eb448?_0x3eb448['length']:0x1;return this['nodes'];}static['build'](_0x59cbb3,_0x1f1622,_0x3ca94d,_0x38af99){let _0x124db8=new NodeBuilder(_0x3ca94d,_0x59cbb3);return C$['spans'](_0x1f1622,_0x3ca94d,_0x38af99,_0x124db8,0x0),_0x124db8['finish'](_0x3ca94d);}},NU=class{constructor(){this['changes']=[];}['compareRange'](){}comparePoint(_0x5011c6,_0x20e72a,_0x5f3dec,_0x21a18e){(_0x5011c6<_0x20e72a||_0x5f3dec&&_0x5f3dec['heightRelevant']||_0x21a18e&&_0x21a18e['heightRelevant'])&&SD(_0x5011c6,_0x20e72a,this['changes'],0x5);}};function MU(_0x59ed73,_0x2e9372){let _0x4ab8bf=_0x59ed73['getBoundingClientRect'](),_0x3513ee=_0x59ed73['ownerDocument'],_0xc69b3a=_0x3513ee['defaultView']||window,_0x26905a=Math['max'](0x0,_0x4ab8bf['left']),_0x1c9aa8=Math['min'](_0xc69b3a['innerWidth'],_0x4ab8bf['right']),_0x47391e=Math['max'](0x0,_0x4ab8bf['top']),_0xb6810=Math['min'](_0xc69b3a['innerHeight'],_0x4ab8bf['bottom']);for(let _0x1cdcc1=_0x59ed73['parentNode'];_0x1cdcc1&&_0x1cdcc1!=_0x3513ee['body'];)if(0x1==_0x1cdcc1['nodeType']){let _0x3cd11e=_0x1cdcc1,_0x563d0b=window['getComputedStyle'](_0x3cd11e);if((_0x3cd11e['scrollHeight']>_0x3cd11e['clientHeight']||_0x3cd11e['scrollWidth']>_0x3cd11e['clientWidth'])&&'visible'!=_0x563d0b['overflow']){let _0x3e9390=_0x3cd11e['getBoundingClientRect']();_0x26905a=Math['max'](_0x26905a,_0x3e9390['left']),_0x1c9aa8=Math['min'](_0x1c9aa8,_0x3e9390['right']),_0x47391e=Math['max'](_0x47391e,_0x3e9390['top']),_0xb6810=Math['min'](_0x1cdcc1==_0x59ed73['parentNode']?_0xc69b3a['innerHeight']:_0xb6810,_0x3e9390['bottom']);}_0x1cdcc1='absolute'==_0x563d0b['position']||'fixed'==_0x563d0b['position']?_0x3cd11e['offsetParent']:_0x3cd11e['parentNode'];}else{if(0xb!=_0x1cdcc1['nodeType'])break;_0x1cdcc1=_0x1cdcc1['host'];}return{'left':_0x26905a-_0x4ab8bf['left'],'right':Math['max'](_0x26905a,_0x1c9aa8)-_0x4ab8bf['left'],'top':_0x47391e-(_0x4ab8bf['top']+_0x2e9372),'bottom':Math['max'](_0x47391e,_0xb6810)-(_0x4ab8bf['top']+_0x2e9372)};}function LU(_0x13fa69,_0x2578df){let _0x1020d2=_0x13fa69['getBoundingClientRect']();return{'left':0x0,'right':_0x1020d2['right']-_0x1020d2['left'],'top':_0x2578df,'bottom':_0x1020d2['bottom']-(_0x1020d2['top']+_0x2578df)};}var $U=class{constructor(_0x3729fb,_0x54d0d1,_0x5c1684,_0x4368f8){this['from']=_0x3729fb,this['to']=_0x54d0d1,this['size']=_0x5c1684,this['displaySize']=_0x4368f8;}static['same'](_0x99220a,_0x2a0f53){if(_0x99220a['length']!=_0x2a0f53['length'])return!0x1;for(let _0x29d123=0x0;_0x29d123<_0x99220a['length'];_0x29d123++){let _0x496e32=_0x99220a[_0x29d123],_0x55ad98=_0x2a0f53[_0x29d123];if(_0x496e32['from']!=_0x55ad98['from']||_0x496e32['to']!=_0x55ad98['to']||_0x496e32['size']!=_0x55ad98['size'])return!0x1;}return!0x0;}['draw'](_0x9e888d,_0x2a4ba3){return vD['replace']({'widget':new DU(this['displaySize']*(_0x2a4ba3?_0x9e888d['scaleY']:_0x9e888d['scaleX']),_0x2a4ba3)})['range'](this['from'],this['to']);}},DU=class extends bD{constructor(_0x452b33,_0x36794a){super(),this['size']=_0x452b33,this['vertical']=_0x36794a;}['eq'](_0x4c8599){return _0x4c8599['size']==this['size']&&_0x4c8599['vertical']==this['vertical'];}toDOM(){let _0x51c51f=document['createElement']('div');return this['vertical']?_0x51c51f['style']['height']=this['size']+'px':(_0x51c51f['style']['width']=this['size']+'px',_0x51c51f['style']['height']='2px',_0x51c51f['style']['display']='inline-block'),_0x51c51f;}get estimatedHeight(){return this['vertical']?this['size']:-0x1;}},QU=class{constructor(_0x4f50ca,_0x690db0){this['view']=_0x4f50ca,this['state']=_0x690db0,this['pixelViewport']={'left':0x0,'right':window['innerWidth'],'top':0x0,'bottom':0x0},this['inView']=!0x0,this['paddingTop']=0x0,this['paddingBottom']=0x0,this['contentDOMWidth']=0x0,this['contentDOMHeight']=0x0,this['editorHeight']=0x0,this['editorWidth']=0x0,this['scaleX']=0x1,this['scaleY']=0x1,this['scrollOffset']=0x0,this['scrolledToBottom']=!0x1,this['scrollAnchorPos']=0x0,this['scrollAnchorHeight']=-0x1,this['scaler']=BU,this['scrollTarget']=null,this['printing']=!0x1,this['mustMeasureContent']=!0x0,this['defaultTextDirection']=YD['LTR'],this['visibleRanges']=[],this['mustEnforceCursorAssoc']=!0x1;let _0x3856e0=_0x690db0['facet'](QQ)['some'](_0x282d1a=>'function'!=typeof _0x282d1a&&'cm-lineWrapping'==_0x282d1a['class']);this['heightOracle']=new bU(_0x3856e0),this['stateDeco']=HU(_0x690db0),this['heightMap']=TU['empty']()['applyChanges'](this['stateDeco'],aL['empty'],this['heightOracle']['setDoc'](_0x690db0['doc']),[new qQ(0x0,0x0,0x0,_0x690db0['doc']['length'])]);for(let _0x37a345=0x0;_0x37a345<0x2&&(this['viewport']=this['getViewport'](0x0,null),this['updateForViewport']());_0x37a345++);this['updateViewportLines'](),this['lineGaps']=this['ensureLineGaps']([]),this['lineGapDeco']=vD['set'](this['lineGaps']['map'](_0x178f58=>_0x178f58['draw'](this,!0x1))),this['scrollParent']=_0x4f50ca['scrollDOM'],this['computeVisibleRanges']();}updateForViewport(){let _0x4df98e=[this['viewport']],{main:_0x431e3c}=this['state']['selection'];for(let _0x2f1c05=0x0;_0x2f1c05<=0x1;_0x2f1c05++){let _0x44fdf0=_0x2f1c05?_0x431e3c['head']:_0x431e3c['anchor'];if(!_0x4df98e['some'](({from:_0x9633f7,to:_0x740d85})=>_0x44fdf0>=_0x9633f7&&_0x44fdf0<=_0x740d85)){let {from:_0x4f9354,to:_0x29890d}=this['lineBlockAt'](_0x44fdf0);_0x4df98e['push'](new jU(_0x4f9354,_0x29890d));}}return this['viewports']=_0x4df98e['sort']((_0x5af6f7,_0x326d21)=>_0x5af6f7['from']-_0x326d21['from']),this['updateScaler']();}updateScaler(){let _0x5d03f5=this['scaler'];return this['scaler']=this['heightMap']['height']<=0x6acfc0?BU:new FU(this['heightOracle'],this['heightMap'],this['viewports']),_0x5d03f5['eq'](this['scaler'])?0x0:0x2;}updateViewportLines(){this['viewportLines']=[],this['heightMap']['forEachLine'](this['viewport']['from'],this['viewport']['to'],this['heightOracle']['setDoc'](this['state']['doc']),0x0,0x0,_0x31232e=>{this['viewportLines']['push'](ZU(_0x31232e,this['scaler']));});}update(_0x2a7bd8,_0x37d954=null){this['state']=_0x2a7bd8['state'];let _0x6ff9ec=this['stateDeco'];this['stateDeco']=HU(this['state']);let _0xb09005=_0x2a7bd8['changedRanges'],_0x1f611f=qQ['extendWithRanges'](_0xb09005,function(_0x55f225,_0x289d77,_0x9153e9){let _0x14b7a5=new NU();return C$['compare'](_0x55f225,_0x289d77,_0x9153e9,_0x14b7a5,0x0),_0x14b7a5['changes'];}(_0x6ff9ec,this['stateDeco'],_0x2a7bd8?_0x2a7bd8['changes']:TL['empty'](this['state']['doc']['length']))),_0x5d8e72=this['heightMap']['height'],_0x5060ee=this['scrolledToBottom']?null:this['scrollAnchorAt'](this['scrollOffset']);wU(),this['heightMap']=this['heightMap']['applyChanges'](this['stateDeco'],_0x2a7bd8['startState']['doc'],this['heightOracle']['setDoc'](this['state']['doc']),_0x1f611f),(this['heightMap']['height']!=_0x5d8e72||OU)&&(_0x2a7bd8['flags']|=0x2),_0x5060ee?(this['scrollAnchorPos']=_0x2a7bd8['changes']['mapPos'](_0x5060ee['from'],-0x1),this['scrollAnchorHeight']=_0x5060ee['top']):(this['scrollAnchorPos']=-0x1,this['scrollAnchorHeight']=_0x5d8e72);let _0x441015=_0x1f611f['length']?this['mapViewport'](this['viewport'],_0x2a7bd8['changes']):this['viewport'];(_0x37d954&&(_0x37d954['range']['head']<_0x441015['from']||_0x37d954['range']['head']>_0x441015['to'])||!this['viewportIsAppropriate'](_0x441015))&&(_0x441015=this['getViewport'](0x0,_0x37d954));let _0xd62fc3=_0x441015['from']!=this['viewport']['from']||_0x441015['to']!=this['viewport']['to'];this['viewport']=_0x441015,_0x2a7bd8['flags']|=this['updateForViewport'](),(_0xd62fc3||!_0x2a7bd8['changes']['empty']||0x2&_0x2a7bd8['flags'])&&this['updateViewportLines'](),(this['lineGaps']['length']||this['viewport']['to']-this['viewport']['from']>0xfa0)&&this['updateLineGaps'](this['ensureLineGaps'](this['mapLineGaps'](this['lineGaps'],_0x2a7bd8['changes']))),_0x2a7bd8['flags']|=this['computeVisibleRanges'](_0x2a7bd8['changes']),_0x37d954&&(this['scrollTarget']=_0x37d954),!this['mustEnforceCursorAssoc']&&(_0x2a7bd8['selectionSet']||_0x2a7bd8['focusChanged'])&&_0x2a7bd8['view']['lineWrapping']&&_0x2a7bd8['state']['selection']['main']['empty']&&_0x2a7bd8['state']['selection']['main']['assoc']&&!_0x2a7bd8['state']['facet'](SQ)&&(this['mustEnforceCursorAssoc']=!0x0);}['measure'](){let {view:_0x10dc28}=this,_0x26c8d7=_0x10dc28['contentDOM'],_0x2593ca=window['getComputedStyle'](_0x26c8d7),_0x398d2e=this['heightOracle'],_0x5aafd1=_0x2593ca['whiteSpace'];this['defaultTextDirection']='rtl'==_0x2593ca['direction']?YD['RTL']:YD['LTR'];let _0x5080af=this['heightOracle']['mustRefreshForWrapping'](_0x5aafd1)||'refresh'===this['mustMeasureContent'],_0x5a333d=_0x26c8d7['getBoundingClientRect'](),_0x4f2077=_0x5080af||this['mustMeasureContent']||this['contentDOMHeight']!=_0x5a333d['height'];this['contentDOMHeight']=_0x5a333d['height'],this['mustMeasureContent']=!0x1;let _0x356acd=0x0,_0x2fc3d6=0x0;if(_0x5a333d['width']&&_0x5a333d['height']){let {scaleX:_0x13528e,scaleY:_0x2a432f}=jD(_0x26c8d7,_0x5a333d);(_0x13528e>0.005&&Math['abs'](this['scaleX']-_0x13528e)>0.005||_0x2a432f>0.005&&Math['abs'](this['scaleY']-_0x2a432f)>0.005)&&(this['scaleX']=_0x13528e,this['scaleY']=_0x2a432f,_0x356acd|=0x10,_0x5080af=_0x4f2077=!0x0);}let _0x242f3a=(parseInt(_0x2593ca['paddingTop'])||0x0)*this['scaleY'],_0x341049=(parseInt(_0x2593ca['paddingBottom'])||0x0)*this['scaleY'];this['paddingTop']==_0x242f3a&&this['paddingBottom']==_0x341049||(this['paddingTop']=_0x242f3a,this['paddingBottom']=_0x341049,_0x356acd|=0x12),this['editorWidth']!=_0x10dc28['scrollDOM']['clientWidth']&&(_0x398d2e['lineWrapping']&&(_0x4f2077=!0x0),this['editorWidth']=_0x10dc28['scrollDOM']['clientWidth'],_0x356acd|=0x10);let _0x5c2571=UD(this['view']['contentDOM'],!0x1)['y'];_0x5c2571!=this['scrollParent']&&(this['scrollParent']=_0x5c2571,this['scrollAnchorHeight']=-0x1,this['scrollOffset']=0x0);let _0xa88f6b=this['getScrollOffset']();this['scrollOffset']!=_0xa88f6b&&(this['scrollAnchorHeight']=-0x1,this['scrollOffset']=_0xa88f6b),this['scrolledToBottom']=XD(this['scrollParent']||_0x10dc28['win']);let _0x4287f5=(this['printing']?LU:MU)(_0x26c8d7,this['paddingTop']),_0xb0f3ab=_0x4287f5['top']-this['pixelViewport']['top'],_0x468498=_0x4287f5['bottom']-this['pixelViewport']['bottom'];this['pixelViewport']=_0x4287f5;let _0x488723=this['pixelViewport']['bottom']>this['pixelViewport']['top']&&this['pixelViewport']['right']>this['pixelViewport']['left'];if(_0x488723!=this['inView']&&(this['inView']=_0x488723,_0x488723&&(_0x4f2077=!0x0)),!this['inView']&&!this['scrollTarget']&&!function(_0x1d8f0a){let _0x52cd5b=_0x1d8f0a['getBoundingClientRect'](),_0x563e18=_0x1d8f0a['ownerDocument']['defaultView']||window;return _0x52cd5b['left']<_0x563e18['innerWidth']&&_0x52cd5b['right']>0x0&&_0x52cd5b['top']<_0x563e18['innerHeight']&&_0x52cd5b['bottom']>0x0;}(_0x10dc28['dom']))return 0x0;let _0x2df625=_0x5a333d['width'];if(this['contentDOMWidth']==_0x2df625&&this['editorHeight']==_0x10dc28['scrollDOM']['clientHeight']||(this['contentDOMWidth']=_0x5a333d['width'],this['editorHeight']=_0x10dc28['scrollDOM']['clientHeight'],_0x356acd|=0x10),_0x4f2077){let _0x2364a2=_0x10dc28['docView']['measureVisibleLineHeights'](this['viewport']);if(_0x398d2e['mustRefreshForHeights'](_0x2364a2)&&(_0x5080af=!0x0),_0x5080af||_0x398d2e['lineWrapping']&&Math['abs'](_0x2df625-this['contentDOMWidth'])>_0x398d2e['charWidth']){let {lineHeight:_0x3ddeb5,charWidth:_0xc3ad7b,textHeight:_0x352792}=_0x10dc28['docView']['measureTextSize']();_0x5080af=_0x3ddeb5>0x0&&_0x398d2e['refresh'](_0x5aafd1,_0x3ddeb5,_0xc3ad7b,_0x352792,Math['max'](0x5,_0x2df625/_0xc3ad7b),_0x2364a2),_0x5080af&&(_0x10dc28['docView']['minWidth']=0x0,_0x356acd|=0x10);}_0xb0f3ab>0x0&&_0x468498>0x0?_0x2fc3d6=Math['max'](_0xb0f3ab,_0x468498):_0xb0f3ab<0x0&&_0x468498<0x0&&(_0x2fc3d6=Math['min'](_0xb0f3ab,_0x468498)),wU();for(let _0x11bb29 of this['viewports']){let _0x31d252=_0x11bb29['from']==this['viewport']['from']?_0x2364a2:_0x10dc28['docView']['measureVisibleLineHeights'](_0x11bb29);this['heightMap']=(_0x5080af?TU['empty']()['applyChanges'](this['stateDeco'],aL['empty'],this['heightOracle'],[new qQ(0x0,0x0,0x0,_0x10dc28['state']['doc']['length'])]):this['heightMap'])['updateHeight'](_0x398d2e,0x0,_0x5080af,new yU(_0x11bb29['from'],_0x31d252));}OU&&(_0x356acd|=0x2);}let _0x33ded1=!this['viewportIsAppropriate'](this['viewport'],_0x2fc3d6)||this['scrollTarget']&&(this['scrollTarget']['range']['head']<this['viewport']['from']||this['scrollTarget']['range']['head']>this['viewport']['to']);return _0x33ded1&&(0x2&_0x356acd&&(_0x356acd|=this['updateScaler']()),this['viewport']=this['getViewport'](_0x2fc3d6,this['scrollTarget']),_0x356acd|=this['updateForViewport']()),(0x2&_0x356acd||_0x33ded1)&&this['updateViewportLines'](),(this['lineGaps']['length']||this['viewport']['to']-this['viewport']['from']>0xfa0)&&this['updateLineGaps'](this['ensureLineGaps'](_0x5080af?[]:this['lineGaps'],_0x10dc28)),_0x356acd|=this['computeVisibleRanges'](),this['mustEnforceCursorAssoc']&&(this['mustEnforceCursorAssoc']=!0x1,_0x10dc28['docView']['enforceCursorAssoc']()),_0x356acd;}get['visibleTop'](){return this['scaler']['fromDOM'](this['pixelViewport']['top']);}get visibleBottom(){return this['scaler']['fromDOM'](this['pixelViewport']['bottom']);}getViewport(_0x34e75e,_0x392cb1){let _0x1d1104=0.5-Math['max'](-0.5,Math['min'](0.5,_0x34e75e/0x3e8/0x2)),_0x569a7f=this['heightMap'],_0x5a8f8a=this['heightOracle'],{visibleTop:_0x4cc811,visibleBottom:_0x3fef87}=this,_0x4f3327=new jU(_0x569a7f['lineAt'](_0x4cc811-0x3e8*_0x1d1104,_U['ByHeight'],_0x5a8f8a,0x0,0x0)['from'],_0x569a7f['lineAt'](_0x3fef87+0x3e8*(0x1-_0x1d1104),_U['ByHeight'],_0x5a8f8a,0x0,0x0)['to']);if(_0x392cb1){let {head:_0x32080c}=_0x392cb1['range'];if(_0x32080c<_0x4f3327['from']||_0x32080c>_0x4f3327['to']){let _0x1a89ed,_0xe2d529=Math['min'](this['editorHeight'],this['pixelViewport']['bottom']-this['pixelViewport']['top']),_0x5bf700=_0x569a7f['lineAt'](_0x32080c,_U['ByPos'],_0x5a8f8a,0x0,0x0);_0x1a89ed='center'==_0x392cb1['y']?(_0x5bf700['top']+_0x5bf700['bottom'])/0x2-_0xe2d529/0x2:'start'==_0x392cb1['y']||'nearest'==_0x392cb1['y']&&_0x32080c<_0x4f3327['from']?_0x5bf700['top']:_0x5bf700['bottom']-_0xe2d529,_0x4f3327=new jU(_0x569a7f['lineAt'](_0x1a89ed-0x1f4,_U['ByHeight'],_0x5a8f8a,0x0,0x0)['from'],_0x569a7f['lineAt'](_0x1a89ed+_0xe2d529+0x1f4,_U['ByHeight'],_0x5a8f8a,0x0,0x0)['to']);}}return _0x4f3327;}mapViewport(_0xcc6a68,_0x41aa7c){let _0x4bbdc0=_0x41aa7c['mapPos'](_0xcc6a68['from'],-0x1),_0x3fd97a=_0x41aa7c['mapPos'](_0xcc6a68['to'],0x1);return new jU(this['heightMap']['lineAt'](_0x4bbdc0,_U['ByPos'],this['heightOracle'],0x0,0x0)['from'],this['heightMap']['lineAt'](_0x3fd97a,_U['ByPos'],this['heightOracle'],0x0,0x0)['to']);}viewportIsAppropriate({from:_0x5160d5,to:_0x583514},_0x8bda60=0x0){if(!this['inView'])return!0x0;let {top:_0x4e9226}=this['heightMap']['lineAt'](_0x5160d5,_U['ByPos'],this['heightOracle'],0x0,0x0),{bottom:_0x47b7e9}=this['heightMap']['lineAt'](_0x583514,_U['ByPos'],this['heightOracle'],0x0,0x0),{visibleTop:_0x4d2a76,visibleBottom:_0x42ef75}=this;return(0x0==_0x5160d5||_0x4e9226<=_0x4d2a76-Math['max'](0xa,Math['min'](-_0x8bda60,0xfa)))&&(_0x583514==this['state']['doc']['length']||_0x47b7e9>=_0x42ef75+Math['max'](0xa,Math['min'](_0x8bda60,0xfa)))&&_0x4e9226>_0x4d2a76-0x7d0&&_0x47b7e9<_0x42ef75+0x7d0;}['mapLineGaps'](_0x330e31,_0x520ba9){if(!_0x330e31['length']||_0x520ba9['empty'])return _0x330e31;let _0x10a8be=[];for(let _0x50522b of _0x330e31)_0x520ba9['touchesRange'](_0x50522b['from'],_0x50522b['to'])||_0x10a8be['push'](new $U(_0x520ba9['mapPos'](_0x50522b['from']),_0x520ba9['mapPos'](_0x50522b['to']),_0x50522b['size'],_0x50522b['displaySize']));return _0x10a8be;}['ensureLineGaps'](_0x3523ff,_0x3310cb){let _0x1ed772=this['heightOracle']['lineWrapping'],_0x13eba1=_0x1ed772?0x2710:0x7d0,_0x2248df=_0x13eba1>>0x1,_0x35f20f=_0x13eba1<<0x1;if(this['defaultTextDirection']!=YD['LTR']&&!_0x1ed772)return[];let _0x4786f6=[],_0x2047ba=(_0x1e2e71,_0x43a7f1,_0x52f920,_0x56a393)=>{if(_0x43a7f1-_0x1e2e71<_0x2248df)return;let _0xcfe275=this['state']['selection']['main'],_0x1bded7=[_0xcfe275['from']];_0xcfe275['empty']||_0x1bded7['push'](_0xcfe275['to']);for(let _0x539796 of _0x1bded7)if(_0x539796>_0x1e2e71&&_0x539796<_0x43a7f1)return _0x2047ba(_0x1e2e71,_0x539796-0xa,_0x52f920,_0x56a393),void _0x2047ba(_0x539796+0xa,_0x43a7f1,_0x52f920,_0x56a393);let _0x2d6527=function(_0x4a81e1,_0x1f6bf8){for(let _0x7aac82 of _0x4a81e1)if(_0x1f6bf8(_0x7aac82))return _0x7aac82;}(_0x3523ff,_0x3e538b=>_0x3e538b['from']>=_0x52f920['from']&&_0x3e538b['to']<=_0x52f920['to']&&Math['abs'](_0x3e538b['from']-_0x1e2e71)<_0x2248df&&Math['abs'](_0x3e538b['to']-_0x43a7f1)<_0x2248df&&!_0x1bded7['some'](_0x163dc5=>_0x3e538b['from']<_0x163dc5&&_0x3e538b['to']>_0x163dc5));if(!_0x2d6527){if(_0x43a7f1<_0x52f920['to']&&_0x3310cb&&_0x1ed772&&_0x3310cb['visibleRanges']['some'](_0x82da58=>_0x82da58['from']<=_0x43a7f1&&_0x82da58['to']>=_0x43a7f1)){let _0x342e19=_0x3310cb['moveToLineBoundary'](PL['cursor'](_0x43a7f1),!0x1,!0x0)['head'];_0x342e19>_0x1e2e71&&(_0x43a7f1=_0x342e19);}let _0x4ba0d4=this['gapSize'](_0x52f920,_0x1e2e71,_0x43a7f1,_0x56a393);_0x2d6527=new $U(_0x1e2e71,_0x43a7f1,_0x4ba0d4,_0x1ed772||_0x4ba0d4<0x1e8480?_0x4ba0d4:0x1e8480);}_0x4786f6['push'](_0x2d6527);},_0x7500ea=_0x119d0e=>{if(_0x119d0e['length']<_0x35f20f||_0x119d0e['type']!=yD['Text'])return;let _0x51efa0=function(_0x2139d7,_0x1b2ed7,_0x2e5b7c){let _0x44158d=[],_0x540a6e=_0x2139d7,_0x1b8613=0x0;return C$['spans'](_0x2e5b7c,_0x2139d7,_0x1b2ed7,{'span'(){},'point'(_0x19e2cc,_0x1e763d){_0x19e2cc>_0x540a6e&&(_0x44158d['push']({'from':_0x540a6e,'to':_0x19e2cc}),_0x1b8613+=_0x19e2cc-_0x540a6e),_0x540a6e=_0x1e763d;}},0x14),_0x540a6e<_0x1b2ed7&&(_0x44158d['push']({'from':_0x540a6e,'to':_0x1b2ed7}),_0x1b8613+=_0x1b2ed7-_0x540a6e),{'total':_0x1b8613,'ranges':_0x44158d};}(_0x119d0e['from'],_0x119d0e['to'],this['stateDeco']);if(_0x51efa0['total']<_0x35f20f)return;let _0x28914d,_0x5e0a57,_0x204454=this['scrollTarget']?this['scrollTarget']['range']['head']:null;if(_0x1ed772){let _0x332fe0,_0x45a30f,_0x2f0799=_0x13eba1/this['heightOracle']['lineLength']*this['heightOracle']['lineHeight'];if(null!=_0x204454){let _0x3b1aec=VU(_0x51efa0,_0x204454),_0x358c2d=((this['visibleBottom']-this['visibleTop'])/0x2+_0x2f0799)/_0x119d0e['height'];_0x332fe0=_0x3b1aec-_0x358c2d,_0x45a30f=_0x3b1aec+_0x358c2d;}else _0x332fe0=(this['visibleTop']-_0x119d0e['top']-_0x2f0799)/_0x119d0e['height'],_0x45a30f=(this['visibleBottom']-_0x119d0e['top']+_0x2f0799)/_0x119d0e['height'];_0x28914d=UU(_0x51efa0,_0x332fe0),_0x5e0a57=UU(_0x51efa0,_0x45a30f);}else{let _0x541a41=_0x51efa0['total']*this['heightOracle']['charWidth'],_0x1e8721=_0x13eba1*this['heightOracle']['charWidth'],_0x160900=0x0;if(_0x541a41>0x1e8480){for(let _0x518896 of _0x3523ff)_0x518896['from']>=_0x119d0e['from']&&_0x518896['from']<_0x119d0e['to']&&_0x518896['size']!=_0x518896['displaySize']&&_0x518896['from']*this['heightOracle']['charWidth']+_0x160900<this['pixelViewport']['left']&&(_0x160900=_0x518896['size']-_0x518896['displaySize']);}let _0x442a5f,_0x20a50d,_0x306def=this['pixelViewport']['left']+_0x160900,_0x555183=this['pixelViewport']['right']+_0x160900;if(null!=_0x204454){let _0x3fc1a2=VU(_0x51efa0,_0x204454),_0x34b413=((_0x555183-_0x306def)/0x2+_0x1e8721)/_0x541a41;_0x442a5f=_0x3fc1a2-_0x34b413,_0x20a50d=_0x3fc1a2+_0x34b413;}else _0x442a5f=(_0x306def-_0x1e8721)/_0x541a41,_0x20a50d=(_0x555183+_0x1e8721)/_0x541a41;_0x28914d=UU(_0x51efa0,_0x442a5f),_0x5e0a57=UU(_0x51efa0,_0x20a50d);}_0x28914d>_0x119d0e['from']&&_0x2047ba(_0x119d0e['from'],_0x28914d,_0x119d0e,_0x51efa0),_0x5e0a57<_0x119d0e['to']&&_0x2047ba(_0x5e0a57,_0x119d0e['to'],_0x119d0e,_0x51efa0);};for(let _0x4b01b0 of this['viewportLines'])Array['isArray'](_0x4b01b0['type'])?_0x4b01b0['type']['forEach'](_0x7500ea):_0x7500ea(_0x4b01b0);return _0x4786f6;}['gapSize'](_0x431e91,_0x579d63,_0x2071c4,_0x501284){let _0x46660e=VU(_0x501284,_0x2071c4)-VU(_0x501284,_0x579d63);return this['heightOracle']['lineWrapping']?_0x431e91['height']*_0x46660e:_0x501284['total']*this['heightOracle']['charWidth']*_0x46660e;}updateLineGaps(_0x2c01d7){$U['same'](_0x2c01d7,this['lineGaps'])||(this['lineGaps']=_0x2c01d7,this['lineGapDeco']=vD['set'](_0x2c01d7['map'](_0x54717c=>_0x54717c['draw'](this,this['heightOracle']['lineWrapping']))));}computeVisibleRanges(_0x34f029){let _0x2c657d=this['stateDeco'];this['lineGaps']['length']&&(_0x2c657d=_0x2c657d['concat'](this['lineGapDeco']));let _0x3819f2=[];C$['spans'](_0x2c657d,this['viewport']['from'],this['viewport']['to'],{'span'(_0x3f88fd,_0x4841f2){_0x3819f2['push']({'from':_0x3f88fd,'to':_0x4841f2});},'point'(){}},0x14);let _0x231f6a=0x0;if(_0x3819f2['length']!=this['visibleRanges']['length'])_0x231f6a=0xc;else for(let _0xfff5cb=0x0;_0xfff5cb<_0x3819f2['length']&&!(0x8&_0x231f6a);_0xfff5cb++){let _0x5f2950=this['visibleRanges'][_0xfff5cb],_0x7452c7=_0x3819f2[_0xfff5cb];_0x5f2950['from']==_0x7452c7['from']&&_0x5f2950['to']==_0x7452c7['to']||(_0x231f6a|=0x4,_0x34f029&&_0x34f029['mapPos'](_0x5f2950['from'],-0x1)==_0x7452c7['from']&&_0x34f029['mapPos'](_0x5f2950['to'],0x1)==_0x7452c7['to']||(_0x231f6a|=0x8));}return this['visibleRanges']=_0x3819f2,_0x231f6a;}lineBlockAt(_0x33ce37){return _0x33ce37>=this['viewport']['from']&&_0x33ce37<=this['viewport']['to']&&this['viewportLines']['find'](_0x4d065c=>_0x4d065c['from']<=_0x33ce37&&_0x4d065c['to']>=_0x33ce37)||ZU(this['heightMap']['lineAt'](_0x33ce37,_U['ByPos'],this['heightOracle'],0x0,0x0),this['scaler']);}lineBlockAtHeight(_0x2e9d2a){return _0x2e9d2a>=this['viewportLines'][0x0]['top']&&_0x2e9d2a<=this['viewportLines'][this['viewportLines']['length']-0x1]['bottom']&&this['viewportLines']['find'](_0x1c1666=>_0x1c1666['top']<=_0x2e9d2a&&_0x1c1666['bottom']>=_0x2e9d2a)||ZU(this['heightMap']['lineAt'](this['scaler']['fromDOM'](_0x2e9d2a),_U['ByHeight'],this['heightOracle'],0x0,0x0),this['scaler']);}getScrollOffset(){return(this['scrollParent']==this['view']['scrollDOM']?this['scrollParent']['scrollTop']:(this['scrollParent']?this['scrollParent']['getBoundingClientRect']()['top']:0x0)-this['view']['contentDOM']['getBoundingClientRect']()['top'])*this['scaleY'];}scrollAnchorAt(_0x18da78){let _0x55cc40=this['lineBlockAtHeight'](_0x18da78+0x8);return _0x55cc40['from']>=this['viewport']['from']||this['viewportLines'][0x0]['top']-_0x18da78>0xc8?_0x55cc40:this['viewportLines'][0x0];}elementAtHeight(_0x5c0dad){return ZU(this['heightMap']['blockAt'](this['scaler']['fromDOM'](_0x5c0dad),this['heightOracle'],0x0,0x0),this['scaler']);}get docHeight(){return this['scaler']['toDOM'](this['heightMap']['height']);}get contentHeight(){return this['docHeight']+this['paddingTop']+this['paddingBottom'];}},jU=class{constructor(_0x15f4f6,_0x3a0a74){this['from']=_0x15f4f6,this['to']=_0x3a0a74;}};function UU({total:_0x34a726,ranges:_0x68e487},_0x3f429b){if(_0x3f429b<=0x0)return _0x68e487[0x0]['from'];if(_0x3f429b>=0x1)return _0x68e487[_0x68e487['length']-0x1]['to'];let _0x34199d=Math['floor'](_0x34a726*_0x3f429b);for(let _0x25bbe6=0x0;;_0x25bbe6++){let {from:_0x241ba7,to:_0xd8f175}=_0x68e487[_0x25bbe6],_0xcfca34=_0xd8f175-_0x241ba7;if(_0x34199d<=_0xcfca34)return _0x241ba7+_0x34199d;_0x34199d-=_0xcfca34;}}function VU(_0x5ac5b5,_0x265b2a){let _0x1d0e4b=0x0;for(let {from:_0x5c2692,to:_0xde63e4}of _0x5ac5b5['ranges']){if(_0x265b2a<=_0xde63e4){_0x1d0e4b+=_0x265b2a-_0x5c2692;break;}_0x1d0e4b+=_0xde63e4-_0x5c2692;}return _0x1d0e4b/_0x5ac5b5['total'];}const BU={'toDOM':_0x473c0e=>_0x473c0e,'fromDOM':_0xb4a38d=>_0xb4a38d,'scale':0x1,'eq'(_0x297458){return _0x297458==this;}};function HU(_0x2deba8){let _0x415a2a=_0x2deba8['facet'](jQ)['filter'](_0x44a030=>'function'!=typeof _0x44a030),_0x17dd0d=_0x2deba8['facet'](VQ)['filter'](_0x5b7f43=>'function'!=typeof _0x5b7f43);return _0x17dd0d['length']&&_0x415a2a['push'](C$['join'](_0x17dd0d)),_0x415a2a;}var FU=class BigScaler{constructor(_0x2f43a7,_0x2e24c6,_0x49969b){let _0x21d57c=0x0,_0x7d2683=0x0,_0x399ca2=0x0;this['viewports']=_0x49969b['map'](({from:_0x50a0e4,to:_0xc9d80})=>{let _0x2e9601=_0x2e24c6['lineAt'](_0x50a0e4,_U['ByPos'],_0x2f43a7,0x0,0x0)['top'],_0x5426ff=_0x2e24c6['lineAt'](_0xc9d80,_U['ByPos'],_0x2f43a7,0x0,0x0)['bottom'];return _0x21d57c+=_0x5426ff-_0x2e9601,{'from':_0x50a0e4,'to':_0xc9d80,'top':_0x2e9601,'bottom':_0x5426ff,'domTop':0x0,'domBottom':0x0};}),this['scale']=(0x6acfc0-_0x21d57c)/(_0x2e24c6['height']-_0x21d57c);for(let _0x45074b of this['viewports'])_0x45074b['domTop']=_0x399ca2+(_0x45074b['top']-_0x7d2683)*this['scale'],_0x399ca2=_0x45074b['domBottom']=_0x45074b['domTop']+(_0x45074b['bottom']-_0x45074b['top']),_0x7d2683=_0x45074b['bottom'];}toDOM(_0xf10b73){for(let _0xfc1834=0x0,_0x41c6b4=0x0,_0x5ae947=0x0;;_0xfc1834++){let _0x1dc947=_0xfc1834<this['viewports']['length']?this['viewports'][_0xfc1834]:null;if(!_0x1dc947||_0xf10b73<_0x1dc947['top'])return _0x5ae947+(_0xf10b73-_0x41c6b4)*this['scale'];if(_0xf10b73<=_0x1dc947['bottom'])return _0x1dc947['domTop']+(_0xf10b73-_0x1dc947['top']);_0x41c6b4=_0x1dc947['bottom'],_0x5ae947=_0x1dc947['domBottom'];}}['fromDOM'](_0x313cb5){for(let _0x7402d3=0x0,_0x317f04=0x0,_0x148be4=0x0;;_0x7402d3++){let _0x5dde54=_0x7402d3<this['viewports']['length']?this['viewports'][_0x7402d3]:null;if(!_0x5dde54||_0x313cb5<_0x5dde54['domTop'])return _0x317f04+(_0x313cb5-_0x148be4)/this['scale'];if(_0x313cb5<=_0x5dde54['domBottom'])return _0x5dde54['top']+(_0x313cb5-_0x5dde54['domTop']);_0x317f04=_0x5dde54['bottom'],_0x148be4=_0x5dde54['domBottom'];}}['eq'](_0x336884){return _0x336884 instanceof BigScaler&&(this['scale']==_0x336884['scale']&&this['viewports']['length']==_0x336884['viewports']['length']&&this['viewports']['every']((_0xbb0728,_0x474375)=>_0xbb0728['from']==_0x336884['viewports'][_0x474375]['from']&&_0xbb0728['to']==_0x336884['viewports'][_0x474375]['to']));}};function ZU(_0x30228c,_0xdead44){if(0x1==_0xdead44['scale'])return _0x30228c;let _0x2a414c=_0xdead44['toDOM'](_0x30228c['top']),_0x464134=_0xdead44['toDOM'](_0x30228c['bottom']);return new vU(_0x30228c['from'],_0x30228c['length'],_0x2a414c,_0x464134-_0x2a414c,Array['isArray'](_0x30228c['_content'])?_0x30228c['_content']['map'](_0x425a00=>ZU(_0x425a00,_0xdead44)):_0x30228c['_content']);}const GU=LL['define']({'combine':_0x472f1e=>_0x472f1e['join']('\x20')}),XU=LL['define']({'combine':_0x530620=>_0x530620['indexOf'](!0x0)>-0x1}),qU=X$['newName'](),WU=X$['newName'](),zU=X$['newName'](),YU={'&light':'.'+WU,'&dark':'.'+zU};function KU(_0x4c5b66,_0x1a0e95,_0x1fc685){return new X$(_0x1a0e95,{'finish':_0x21c16a=>/&/['test'](_0x21c16a)?_0x21c16a['replace'](/&\w*/,_0x22d4a8=>{if('&'==_0x22d4a8)return _0x4c5b66;if(!_0x1fc685||!_0x1fc685[_0x22d4a8])throw new RangeError('Unsupported\x20selector:\x20'+_0x22d4a8);return _0x1fc685[_0x22d4a8];}):_0x4c5b66+'\x20'+_0x21c16a});}const JU=KU('.'+qU,{'&':{'position':'relative\x20!important','boxSizing':'border-box','&.cm-focused':{'outline':'1px\x20dotted\x20#212121'},'display':'flex\x20!important','flexDirection':'column'},'.cm-scroller':{'display':'flex\x20!important','alignItems':'flex-start\x20!important','fontFamily':'monospace','lineHeight':1.4,'height':'100%','overflowX':'auto','position':'relative','zIndex':0x0,'overflowAnchor':'none'},'.cm-content':{'margin':0x0,'flexGrow':0x2,'flexShrink':0x0,'display':'block','whiteSpace':'pre','wordWrap':'normal','boxSizing':'border-box','minHeight':'100%','padding':'4px\x200','outline':'none','&[contenteditable=true]':{'WebkitUserModify':'read-write-plaintext-only'}},'.cm-lineWrapping':{'whiteSpace_fallback':'pre-wrap','whiteSpace':'break-spaces','wordBreak':'break-word','overflowWrap':'anywhere','flexShrink':0x1},'&light\x20.cm-content':{'caretColor':'black'},'&dark\x20.cm-content':{'caretColor':'white'},'.cm-line':{'display':'block','padding':'0\x202px\x200\x206px'},'.cm-layer':{'userSelect':'none','position':'absolute','left':0x0,'top':0x0,'contain':'size\x20style','&\x20>\x20*':{'position':'absolute'}},'&light\x20.cm-selectionBackground':{'background':'#d9d9d9'},'&dark\x20.cm-selectionBackground':{'background':'#222'},'&light.cm-focused\x20>\x20.cm-scroller\x20>\x20.cm-selectionLayer\x20.cm-selectionBackground':{'background':'#d7d4f0'},'&dark.cm-focused\x20>\x20.cm-scroller\x20>\x20.cm-selectionLayer\x20.cm-selectionBackground':{'background':'#233'},'.cm-cursorLayer':{'pointerEvents':'none'},'&.cm-focused\x20>\x20.cm-scroller\x20>\x20.cm-cursorLayer':{'animation':'steps(1)\x20cm-blink\x201.2s\x20infinite'},'@keyframes\x20cm-blink':{'0%':{},'50%':{'opacity':0x0},'100%':{}},'@keyframes\x20cm-blink2':{'0%':{},'50%':{'opacity':0x0},'100%':{}},'.cm-cursor,\x20.cm-dropCursor':{'borderLeft':'1.2px\x20solid\x20black','marginLeft':'-0.6px','pointerEvents':'none'},'.cm-cursor':{'display':'none'},'&dark\x20.cm-cursor':{'borderLeftColor':'#ddd'},'.cm-selectionHandle':{'backgroundColor':'currentColor','width':'1.5px'},'.cm-selectionHandle-start::before,\x20.cm-selectionHandle-end::before':{'content':'\x22\x22','backgroundColor':'inherit','borderRadius':'50%','width':'8px','height':'8px','position':'absolute','left':'-3.25px'},'.cm-selectionHandle-start::before':{'top':'-8px'},'.cm-selectionHandle-end::before':{'bottom':'-8px'},'.cm-dropCursor':{'position':'absolute'},'&.cm-focused\x20>\x20.cm-scroller\x20>\x20.cm-cursorLayer\x20.cm-cursor':{'display':'block'},'.cm-iso':{'unicodeBidi':'isolate'},'.cm-announced':{'position':'fixed','top':'-10000px'},'@media\x20print':{'.cm-announced':{'display':'none'}},'&light\x20.cm-activeLine':{'backgroundColor':'#cceeff44'},'&dark\x20.cm-activeLine':{'backgroundColor':'#99eeff33'},'&light\x20.cm-specialChar':{'color':'red'},'&dark\x20.cm-specialChar':{'color':'#f78'},'.cm-gutters':{'flexShrink':0x0,'display':'flex','height':'100%','boxSizing':'border-box','zIndex':0xc8},'.cm-gutters-before':{'insetInlineStart':0x0},'.cm-gutters-after':{'insetInlineEnd':0x0},'&light\x20.cm-gutters':{'backgroundColor':'#f5f5f5','color':'#6c6c6c','border':'0px\x20solid\x20#ddd','&.cm-gutters-before':{'borderRightWidth':'1px'},'&.cm-gutters-after':{'borderLeftWidth':'1px'}},'&dark\x20.cm-gutters':{'backgroundColor':'#333338','color':'#ccc'},'.cm-gutter':{'display':'flex\x20!important','flexDirection':'column','flexShrink':0x0,'boxSizing':'border-box','minHeight':'100%','overflow':'hidden'},'.cm-gutterElement':{'boxSizing':'border-box'},'.cm-lineNumbers\x20.cm-gutterElement':{'padding':'0\x203px\x200\x205px','minWidth':'20px','textAlign':'right','whiteSpace':'nowrap'},'&light\x20.cm-activeLineGutter':{'backgroundColor':'#e2f2ff'},'&dark\x20.cm-activeLineGutter':{'backgroundColor':'#222227'},'.cm-panels':{'boxSizing':'border-box','position':'sticky','left':0x0,'right':0x0,'zIndex':0x12c},'&light\x20.cm-panels':{'backgroundColor':'#f5f5f5','color':'black'},'&light\x20.cm-panels-top':{'borderBottom':'1px\x20solid\x20#ddd'},'&light\x20.cm-panels-bottom':{'borderTop':'1px\x20solid\x20#ddd'},'&dark\x20.cm-panels':{'backgroundColor':'#333338','color':'white'},'.cm-dialog':{'padding':'2px\x2019px\x204px\x206px','position':'relative','&\x20label':{'fontSize':'80%'}},'.cm-dialog-close':{'position':'absolute','top':'3px','right':'4px','backgroundColor':'inherit','border':'none','font':'inherit','fontSize':'14px','padding':'0'},'.cm-tab':{'display':'inline-block','overflow':'hidden','verticalAlign':'bottom'},'.cm-widgetBuffer':{'verticalAlign':'text-top','height':'1em','width':0x0,'display':'inline'},'.cm-placeholder':{'color':'#888','display':'inline-block','verticalAlign':'top','userSelect':'none'},'.cm-highlightSpace':{'backgroundImage':'radial-gradient(circle\x20at\x2050%\x2055%,\x20#aaa\x2020%,\x20transparent\x205%)','backgroundPosition':'center'},'.cm-highlightTab':{'backgroundImage':'url(\x27data:image/svg+xml,<svg\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20width=\x22200\x22\x20height=\x2220\x22><path\x20stroke=\x22%23888\x22\x20stroke-width=\x221\x22\x20fill=\x22none\x22\x20d=\x22M1\x2010H196L190\x205M190\x2015L196\x2010M197\x204L197\x2016\x22/></svg>\x27)','backgroundSize':'auto\x20100%','backgroundPosition':'right\x2090%','backgroundRepeat':'no-repeat'},'.cm-trailingSpace':{'backgroundColor':'#ff332255'},'.cm-button':{'verticalAlign':'middle','color':'inherit','fontSize':'70%','padding':'.2em\x201em','borderRadius':'1px'},'&light\x20.cm-button':{'backgroundImage':'linear-gradient(#eff1f5,\x20#d9d9df)','border':'1px\x20solid\x20#888','&:active':{'backgroundImage':'linear-gradient(#b4b4b4,\x20#d0d3d6)'}},'&dark\x20.cm-button':{'backgroundImage':'linear-gradient(#393939,\x20#111)','border':'1px\x20solid\x20#888','&:active':{'backgroundImage':'linear-gradient(#111,\x20#333)'}},'.cm-textfield':{'verticalAlign':'middle','color':'inherit','fontSize':'70%','border':'1px\x20solid\x20silver','padding':'.2em\x20.5em'},'&light\x20.cm-textfield':{'backgroundColor':'white'},'&dark\x20.cm-textfield':{'border':'1px\x20solid\x20#555','backgroundColor':'inherit'}},YU),tV={'childList':!0x0,'characterData':!0x0,'subtree':!0x0,'attributes':!0x0,'characterDataOldValue':!0x0},eV=fD['ie']&&fD['ie_version']<=0xb;var iV=class{constructor(_0x2b161e){this['view']=_0x2b161e,this['active']=!0x1,this['editContext']=null,this['selectionRange']=new VD(),this['selectionChanged']=!0x1,this['delayedFlush']=-0x1,this['resizeTimeout']=-0x1,this['queue']=[],this['delayedAndroidKey']=null,this['flushingAndroidKey']=-0x1,this['lastChange']=0x0,this['scrollTargets']=[],this['intersection']=null,this['resizeScroll']=null,this['intersecting']=!0x1,this['gapIntersection']=null,this['gaps']=[],this['printQuery']=null,this['parentCheck']=-0x1,this['dom']=_0x2b161e['contentDOM'],this['observer']=new MutationObserver(_0x185b01=>{for(let _0x1fffbb of _0x185b01)this['queue']['push'](_0x1fffbb);(fD['ie']&&fD['ie_version']<=0xb||fD['ios']&&_0x2b161e['composing'])&&_0x185b01['some'](_0x5c0c85=>'childList'==_0x5c0c85['type']&&_0x5c0c85['removedNodes']['length']||'characterData'==_0x5c0c85['type']&&_0x5c0c85['oldValue']['length']>_0x5c0c85['target']['nodeValue']['length'])?this['flushSoon']():this['flush']();}),!window['EditContext']||!fD['android']||!0x1===_0x2b161e['constructor']['EDIT_CONTEXT']||fD['chrome']&&fD['chrome_version']<0x7e||(this['editContext']=new rV(_0x2b161e),_0x2b161e['state']['facet'](PQ)&&(_0x2b161e['contentDOM']['editContext']=this['editContext']['editContext'])),eV&&(this['onCharData']=_0x49b514=>{this['queue']['push']({'target':_0x49b514['target'],'type':'characterData','oldValue':_0x49b514['prevValue']}),this['flushSoon']();}),this['onSelectionChange']=this['onSelectionChange']['bind'](this),this['onResize']=this['onResize']['bind'](this),this['onPrint']=this['onPrint']['bind'](this),this['onScroll']=this['onScroll']['bind'](this),window['matchMedia']&&(this['printQuery']=window['matchMedia']('print')),'function'==typeof ResizeObserver&&(this['resizeScroll']=new ResizeObserver(()=>{var _0x10908b;(null===(_0x10908b=this['view']['docView'])||void 0x0===_0x10908b?void 0x0:_0x10908b['lastUpdate'])<Date['now']()-0x4b&&this['onResize']();}),this['resizeScroll']['observe'](_0x2b161e['scrollDOM'])),this['addWindowListeners'](this['win']=_0x2b161e['win']),this['start'](),'function'==typeof IntersectionObserver&&(this['intersection']=new IntersectionObserver(_0xc83c6b=>{this['parentCheck']<0x0&&(this['parentCheck']=setTimeout(this['listenForScroll']['bind'](this),0x3e8)),_0xc83c6b['length']>0x0&&_0xc83c6b[_0xc83c6b['length']-0x1]['intersectionRatio']>0x0!=this['intersecting']&&(this['intersecting']=!this['intersecting'],this['intersecting']!=this['view']['inView']&&this['onScrollChanged'](document['createEvent']('Event')));},{'threshold':[0x0,0.001]}),this['intersection']['observe'](this['dom']),this['gapIntersection']=new IntersectionObserver(_0x235bdd=>{_0x235bdd['length']>0x0&&_0x235bdd[_0x235bdd['length']-0x1]['intersectionRatio']>0x0&&this['onScrollChanged'](document['createEvent']('Event'));},{})),this['listenForScroll'](),this['readSelectionRange']();}['onScrollChanged'](_0x3031c7){this['view']['inputState']['runHandlers']('scroll',_0x3031c7),this['intersecting']&&this['view']['measure']();}['onScroll'](_0x19e584){this['intersecting']&&this['flush'](!0x1),this['editContext']&&this['view']['requestMeasure'](this['editContext']['measureReq']),this['onScrollChanged'](_0x19e584);}['onResize'](){this['resizeTimeout']<0x0&&(this['resizeTimeout']=setTimeout(()=>{this['resizeTimeout']=-0x1,this['view']['requestMeasure']();},0x32));}onPrint(_0x4114b5){('change'!=_0x4114b5['type']&&_0x4114b5['type']||_0x4114b5['matches'])&&(this['view']['viewState']['printing']=!0x0,this['view']['measure'](),setTimeout(()=>{this['view']['viewState']['printing']=!0x1,this['view']['requestMeasure']();},0x1f4));}updateGaps(_0x20a6a1){if(this['gapIntersection']&&(_0x20a6a1['length']!=this['gaps']['length']||this['gaps']['some']((_0x26a4e5,_0x6c58df)=>_0x26a4e5!=_0x20a6a1[_0x6c58df]))){this['gapIntersection']['disconnect']();for(let _0x67dcd6 of _0x20a6a1)this['gapIntersection']['observe'](_0x67dcd6);this['gaps']=_0x20a6a1;}}onSelectionChange(_0x2b9514){let _0x200245=this['selectionChanged'];if(!this['readSelectionRange']()||this['delayedAndroidKey'])return;let {view:_0x41e8a1}=this,_0x398680=this['selectionRange'];if(_0x41e8a1['state']['facet'](PQ)?_0x41e8a1['root']['activeElement']!=this['dom']:!CD(this['dom'],_0x398680))return;let _0x74a14b=_0x398680['anchorNode']&&_0x41e8a1['docView']['tile']['nearest'](_0x398680['anchorNode']);_0x74a14b&&_0x74a14b['isWidget']()&&_0x74a14b['widget']['ignoreEvent'](_0x2b9514)?_0x200245||(this['selectionChanged']=!0x1):(fD['ie']&&fD['ie_version']<=0xb||fD['android']&&fD['chrome'])&&!_0x41e8a1['state']['selection']['main']['empty']&&_0x398680['focusNode']&&PD(_0x398680['focusNode'],_0x398680['focusOffset'],_0x398680['anchorNode'],_0x398680['anchorOffset'])?this['flushSoon']():this['flush'](!0x1);}readSelectionRange(){let {view:_0x45b638}=this,_0x6e9aed=kD(_0x45b638['root']);if(!_0x6e9aed)return!0x1;let _0x286ab1=fD['safari']&&0xb==_0x45b638['root']['nodeType']&&_0x45b638['root']['activeElement']==this['dom']&&function(_0x326ae0,_0x5de254){if(_0x5de254['getComposedRanges']){let _0x1833eb=_0x5de254['getComposedRanges'](_0x326ae0['root'])[0x0];if(_0x1833eb)return nV(_0x326ae0,_0x1833eb);}let _0x296d92=null;function _0x538f94(_0x1bbfe){_0x1bbfe['preventDefault'](),_0x1bbfe['stopImmediatePropagation'](),_0x296d92=_0x1bbfe['getTargetRanges']()[0x0];}return _0x326ae0['contentDOM']['addEventListener']('beforeinput',_0x538f94,!0x0),_0x326ae0['dom']['ownerDocument']['execCommand']('indent'),_0x326ae0['contentDOM']['removeEventListener']('beforeinput',_0x538f94,!0x0),_0x296d92?nV(_0x326ae0,_0x296d92):null;}(this['view'],_0x6e9aed)||_0x6e9aed;if(!_0x286ab1||this['selectionRange']['eq'](_0x286ab1))return!0x1;let _0x55ac95=CD(this['dom'],_0x286ab1);return _0x55ac95&&!this['selectionChanged']&&_0x45b638['inputState']['lastFocusTime']>Date['now']()-0xc8&&_0x45b638['inputState']['lastTouchTime']<Date['now']()-0x12c&&function(_0x4af286,_0x37668a){let _0x16ddf0=_0x37668a['focusNode'],_0xbb8d18=_0x37668a['focusOffset'];if(!_0x16ddf0||_0x37668a['anchorNode']!=_0x16ddf0||_0x37668a['anchorOffset']!=_0xbb8d18)return!0x1;for(_0xbb8d18=Math['min'](_0xbb8d18,$D(_0x16ddf0));;)if(_0xbb8d18){if(0x1!=_0x16ddf0['nodeType'])return!0x1;let _0x2b63ef=_0x16ddf0['childNodes'][_0xbb8d18-0x1];'false'==_0x2b63ef['contentEditable']?_0xbb8d18--:(_0x16ddf0=_0x2b63ef,_0xbb8d18=$D(_0x16ddf0));}else{if(_0x16ddf0==_0x4af286)return!0x0;_0xbb8d18=ND(_0x16ddf0),_0x16ddf0=_0x16ddf0['parentNode'];}}(this['dom'],_0x286ab1)?(this['view']['inputState']['lastFocusTime']=0x0,_0x45b638['docView']['updateSelection'](),!0x1):(this['selectionRange']['setRange'](_0x286ab1),_0x55ac95&&(this['selectionChanged']=!0x0),!0x0);}setSelectionRange(_0x3ee2a3,_0x31b130){this['selectionRange']['set'](_0x3ee2a3['node'],_0x3ee2a3['offset'],_0x31b130['node'],_0x31b130['offset']),this['selectionChanged']=!0x1;}clearSelectionRange(){this['selectionRange']['set'](null,0x0,null,0x0);}listenForScroll(){this['parentCheck']=-0x1;let _0x1d02f5=0x0,_0x5afcbe=null;for(let _0x456c02=this['dom'];_0x456c02;)if(0x1==_0x456c02['nodeType'])!_0x5afcbe&&_0x1d02f5<this['scrollTargets']['length']&&this['scrollTargets'][_0x1d02f5]==_0x456c02?_0x1d02f5++:_0x5afcbe||(_0x5afcbe=this['scrollTargets']['slice'](0x0,_0x1d02f5)),_0x5afcbe&&_0x5afcbe['push'](_0x456c02),_0x456c02=_0x456c02['assignedSlot']||_0x456c02['parentNode'];else{if(0xb!=_0x456c02['nodeType'])break;_0x456c02=_0x456c02['host'];}if(_0x1d02f5<this['scrollTargets']['length']&&!_0x5afcbe&&(_0x5afcbe=this['scrollTargets']['slice'](0x0,_0x1d02f5)),_0x5afcbe){for(let _0x43cc1e of this['scrollTargets'])_0x43cc1e['removeEventListener']('scroll',this['onScroll']);for(let _0x342858 of this['scrollTargets']=_0x5afcbe)_0x342858['addEventListener']('scroll',this['onScroll']);}}['ignore'](_0x5df174){if(!this['active'])return _0x5df174();try{return this['stop'](),_0x5df174();}finally{this['start'](),this['clear']();}}start(){this['active']||(this['observer']['observe'](this['dom'],tV),eV&&this['dom']['addEventListener']('DOMCharacterDataModified',this['onCharData']),this['active']=!0x0);}stop(){this['active']&&(this['active']=!0x1,this['observer']['disconnect'](),eV&&this['dom']['removeEventListener']('DOMCharacterDataModified',this['onCharData']));}['clear'](){this['processRecords'](),this['queue']['length']=0x0,this['selectionChanged']=!0x1;}['delayAndroidKey'](_0x42863c,_0x273b9f){var _0x144cfc;if(!this['delayedAndroidKey']){let _0x24d433=()=>{let _0x106f62=this['delayedAndroidKey'];_0x106f62&&(this['clearDelayedAndroidKey'](),this['view']['inputState']['lastKeyCode']=_0x106f62['keyCode'],this['view']['inputState']['lastKeyTime']=Date['now'](),!this['flush']()&&_0x106f62['force']&&GD(this['dom'],_0x106f62['key'],_0x106f62['keyCode']));};this['flushingAndroidKey']=this['view']['win']['requestAnimationFrame'](_0x24d433);}this['delayedAndroidKey']&&'Enter'!=_0x42863c||(this['delayedAndroidKey']={'key':_0x42863c,'keyCode':_0x273b9f,'force':this['lastChange']<Date['now']()-0x32||!!(null===(_0x144cfc=this['delayedAndroidKey'])||void 0x0===_0x144cfc?void 0x0:_0x144cfc['force'])});}['clearDelayedAndroidKey'](){this['win']['cancelAnimationFrame'](this['flushingAndroidKey']),this['delayedAndroidKey']=null,this['flushingAndroidKey']=-0x1;}['flushSoon'](){this['delayedFlush']<0x0&&(this['delayedFlush']=this['view']['win']['requestAnimationFrame'](()=>{this['delayedFlush']=-0x1,this['flush']();}));}['forceFlush'](){this['delayedFlush']>=0x0&&(this['view']['win']['cancelAnimationFrame'](this['delayedFlush']),this['delayedFlush']=-0x1),this['flush']();}['pendingRecords'](){for(let _0x235658 of this['observer']['takeRecords']())this['queue']['push'](_0x235658);return this['queue'];}['processRecords'](){let _0x26a7de=this['pendingRecords']();_0x26a7de['length']&&(this['queue']=[]);let _0x36239c=-0x1,_0x16b690=-0x1,_0x5dce98=!0x1;for(let _0x2846e1 of _0x26a7de){let _0x12d429=this['readMutation'](_0x2846e1);_0x12d429&&(_0x12d429['typeOver']&&(_0x5dce98=!0x0),-0x1==_0x36239c?{from:_0x36239c,to:_0x16b690}=_0x12d429:(_0x36239c=Math['min'](_0x12d429['from'],_0x36239c),_0x16b690=Math['max'](_0x12d429['to'],_0x16b690)));}return{'from':_0x36239c,'to':_0x16b690,'typeOver':_0x5dce98};}['readChange'](){let {from:_0x2e31b2,to:_0xdcfd89,typeOver:_0xf80666}=this['processRecords'](),_0x486458=this['selectionChanged']&&CD(this['dom'],this['selectionRange']);if(_0x2e31b2<0x0&&!_0x486458)return null;_0x2e31b2>-0x1&&(this['lastChange']=Date['now']()),this['view']['inputState']['lastFocusTime']=0x0,this['selectionChanged']=!0x1;let _0x419ed6=new jj(this['view'],_0x2e31b2,_0xdcfd89,_0xf80666);return this['view']['docView']['domChanged']={'newSel':_0x419ed6['newSel']?_0x419ed6['newSel']['main']:null},_0x419ed6;}['flush'](_0x11fb11=!0x0){if(this['delayedFlush']>=0x0||this['delayedAndroidKey'])return!0x1;_0x11fb11&&this['readSelectionRange']();let _0x4e71b2=this['readChange']();if(!_0x4e71b2)return this['view']['requestMeasure'](),!0x1;let _0x19bab2=this['view']['state'],_0x55d360=Vj(this['view'],_0x4e71b2);return this['view']['state']==_0x19bab2&&(_0x4e71b2['domChanged']||_0x4e71b2['newSel']&&!Fj(this['view']['state']['selection'],_0x4e71b2['newSel']['main']))&&this['view']['update']([]),_0x55d360;}readMutation(_0xf5a754){let _0x5287d3=this['view']['docView']['tile']['nearest'](_0xf5a754['target']);if(!_0x5287d3||_0x5287d3['isWidget']())return null;if(_0x5287d3['markDirty']('attributes'==_0xf5a754['type']),'childList'==_0xf5a754['type']){let _0x39ee36=sV(_0x5287d3,_0xf5a754['previousSibling']||_0xf5a754['target']['previousSibling'],-0x1),_0x3e2584=sV(_0x5287d3,_0xf5a754['nextSibling']||_0xf5a754['target']['nextSibling'],0x1);return{'from':_0x39ee36?_0x5287d3['posAfter'](_0x39ee36):_0x5287d3['posAtStart'],'to':_0x3e2584?_0x5287d3['posBefore'](_0x3e2584):_0x5287d3['posAtEnd'],'typeOver':!0x1};}return'characterData'==_0xf5a754['type']?{'from':_0x5287d3['posAtStart'],'to':_0x5287d3['posAtEnd'],'typeOver':_0xf5a754['target']['nodeValue']==_0xf5a754['oldValue']}:null;}setWindow(_0x34efd){_0x34efd!=this['win']&&(this['removeWindowListeners'](this['win']),this['win']=_0x34efd,this['addWindowListeners'](this['win']));}addWindowListeners(_0x1aba26){_0x1aba26['addEventListener']('resize',this['onResize']),this['printQuery']?this['printQuery']['addEventListener']?this['printQuery']['addEventListener']('change',this['onPrint']):this['printQuery']['addListener'](this['onPrint']):_0x1aba26['addEventListener']('beforeprint',this['onPrint']),_0x1aba26['addEventListener']('scroll',this['onScroll']),_0x1aba26['document']['addEventListener']('selectionchange',this['onSelectionChange']);}removeWindowListeners(_0x2eebb5){_0x2eebb5['removeEventListener']('scroll',this['onScroll']),_0x2eebb5['removeEventListener']('resize',this['onResize']),this['printQuery']?this['printQuery']['removeEventListener']?this['printQuery']['removeEventListener']('change',this['onPrint']):this['printQuery']['removeListener'](this['onPrint']):_0x2eebb5['removeEventListener']('beforeprint',this['onPrint']),_0x2eebb5['document']['removeEventListener']('selectionchange',this['onSelectionChange']);}update(_0x10332d){this['editContext']&&(this['editContext']['update'](_0x10332d),_0x10332d['startState']['facet'](PQ)!=_0x10332d['state']['facet'](PQ)&&(_0x10332d['view']['contentDOM']['editContext']=_0x10332d['state']['facet'](PQ)?this['editContext']['editContext']:null));}destroy(){var _0x4dd2a2,_0x535194,_0x23edd8;this['stop'](),null===(_0x4dd2a2=this['intersection'])||void 0x0===_0x4dd2a2||_0x4dd2a2['disconnect'](),null===(_0x535194=this['gapIntersection'])||void 0x0===_0x535194||_0x535194['disconnect'](),null===(_0x23edd8=this['resizeScroll'])||void 0x0===_0x23edd8||_0x23edd8['disconnect']();for(let _0x5cca34 of this['scrollTargets'])_0x5cca34['removeEventListener']('scroll',this['onScroll']);this['removeWindowListeners'](this['win']),clearTimeout(this['parentCheck']),clearTimeout(this['resizeTimeout']),this['win']['cancelAnimationFrame'](this['delayedFlush']),this['win']['cancelAnimationFrame'](this['flushingAndroidKey']),this['editContext']&&(this['view']['contentDOM']['editContext']=null,this['editContext']['destroy']());}};function sV(_0x3652a9,_0x41ffb6,_0x3a7448){for(;_0x41ffb6;){let _0x31aa9d=YQ['get'](_0x41ffb6);if(_0x31aa9d&&_0x31aa9d['parent']==_0x3652a9)return _0x31aa9d;let _0x3f4270=_0x41ffb6['parentNode'];_0x41ffb6=_0x3f4270!=_0x3652a9['dom']?_0x3f4270:_0x3a7448>0x0?_0x41ffb6['nextSibling']:_0x41ffb6['previousSibling'];}return null;}function nV(_0x35e382,_0x2c2e6f){let _0x23488c=_0x2c2e6f['startContainer'],_0x4def48=_0x2c2e6f['startOffset'],_0x3d2d3f=_0x2c2e6f['endContainer'],_0x5a2897=_0x2c2e6f['endOffset'],_0x21e728=_0x35e382['docView']['domAtPos'](_0x35e382['state']['selection']['main']['anchor'],0x1);return PD(_0x21e728['node'],_0x21e728['offset'],_0x3d2d3f,_0x5a2897)&&([_0x23488c,_0x4def48,_0x3d2d3f,_0x5a2897]=[_0x3d2d3f,_0x5a2897,_0x23488c,_0x4def48]),{'anchorNode':_0x23488c,'anchorOffset':_0x4def48,'focusNode':_0x3d2d3f,'focusOffset':_0x5a2897};}var rV=class{constructor(_0x2569a8){this['from']=0x0,this['to']=0x0,this['pendingContextChange']=null,this['handlers']=Object['create'](null),this['composing']=null,this['resetRange'](_0x2569a8['state']);let _0x468622=this['editContext']=new window['EditContext']({'text':_0x2569a8['state']['doc']['sliceString'](this['from'],this['to']),'selectionStart':this['toContextPos'](Math['max'](this['from'],Math['min'](this['to'],_0x2569a8['state']['selection']['main']['anchor']))),'selectionEnd':this['toContextPos'](_0x2569a8['state']['selection']['main']['head'])});this['handlers']['textupdate']=_0x52c965=>{let _0x6f04f8=_0x2569a8['state']['selection']['main'],{anchor:_0x593fa7,head:_0x2884d6}=_0x6f04f8,_0x219ee7=this['toEditorPos'](_0x52c965['updateRangeStart']),_0x3dfe32=this['toEditorPos'](_0x52c965['updateRangeEnd']);_0x2569a8['inputState']['composing']>=0x0&&!this['composing']&&(this['composing']={'contextBase':_0x52c965['updateRangeStart'],'editorBase':_0x219ee7,'drifted':!0x1});let _0x486fb3=_0x3dfe32-_0x219ee7>_0x52c965['text']['length'];_0x219ee7==this['from']&&_0x593fa7<this['from']?_0x219ee7=_0x593fa7:_0x3dfe32==this['to']&&_0x593fa7>this['to']&&(_0x3dfe32=_0x593fa7);let _0x2e755d=Hj(_0x2569a8['state']['sliceDoc'](_0x219ee7,_0x3dfe32),_0x52c965['text'],(_0x486fb3?_0x6f04f8['from']:_0x6f04f8['to'])-_0x219ee7,_0x486fb3?'end':null);if(!_0x2e755d){let _0x26e3da=PL['single'](this['toEditorPos'](_0x52c965['selectionStart']),this['toEditorPos'](_0x52c965['selectionEnd']));return void(Fj(_0x26e3da,_0x6f04f8)||_0x2569a8['dispatch']({'selection':_0x26e3da,'userEvent':'select'}));}let _0x4d500b={'from':_0x2e755d['from']+_0x219ee7,'to':_0x2e755d['toA']+_0x219ee7,'insert':aL['of'](_0x52c965['text']['slice'](_0x2e755d['from'],_0x2e755d['toB'])['split']('\x0a'))};if((fD['mac']||fD['android'])&&_0x4d500b['from']==_0x2884d6-0x1&&/^\. ?$/['test'](_0x52c965['text'])&&'off'==_0x2569a8['contentDOM']['getAttribute']('autocorrect')&&(_0x4d500b={'from':_0x219ee7,'to':_0x3dfe32,'insert':aL['of']([_0x52c965['text']['replace']('.','\x20')])}),this['pendingContextChange']=_0x4d500b,!_0x2569a8['state']['readOnly']){let _0x141791=this['to']-this['from']+(_0x4d500b['to']-_0x4d500b['from']+_0x4d500b['insert']['length']);Bj(_0x2569a8,_0x4d500b,PL['single'](this['toEditorPos'](_0x52c965['selectionStart'],_0x141791),this['toEditorPos'](_0x52c965['selectionEnd'],_0x141791)));}this['pendingContextChange']&&(this['revertPending'](_0x2569a8['state']),this['setSelection'](_0x2569a8['state'])),_0x4d500b['from']<_0x4d500b['to']&&!_0x4d500b['insert']['length']&&_0x2569a8['inputState']['composing']>=0x0&&!/[\\p{Alphabetic}\\p{Number}_]/['test'](_0x468622['text']['slice'](Math['max'](0x0,_0x52c965['updateRangeStart']-0x1),Math['min'](_0x468622['text']['length'],_0x52c965['updateRangeStart']+0x1)))&&this['handlers']['compositionend'](_0x52c965);},this['handlers']['characterboundsupdate']=_0x48c29d=>{let _0x3b1079=[],_0xeb6810=null;for(let _0x1159f8=this['toEditorPos'](_0x48c29d['rangeStart']),_0x3a9167=this['toEditorPos'](_0x48c29d['rangeEnd']);_0x1159f8<_0x3a9167;_0x1159f8++){let _0x30619b=_0x2569a8['coordsForChar'](_0x1159f8);_0xeb6810=_0x30619b&&new DOMRect(_0x30619b['left'],_0x30619b['top'],_0x30619b['right']-_0x30619b['left'],_0x30619b['bottom']-_0x30619b['top'])||_0xeb6810||new DOMRect(),_0x3b1079['push'](_0xeb6810);}_0x468622['updateCharacterBounds'](_0x48c29d['rangeStart'],_0x3b1079);},this['handlers']['textformatupdate']=_0x348949=>{let _0x48b26c=[];for(let _0x1ccd09 of _0x348949['getTextFormats']()){let _0x1fff2f=_0x1ccd09['underlineStyle'],_0x8b0ffd=_0x1ccd09['underlineThickness'];if(!/none/i['test'](_0x1fff2f)&&!/none/i['test'](_0x8b0ffd)){let _0x50573e=this['toEditorPos'](_0x1ccd09['rangeStart']),_0x3661c8=this['toEditorPos'](_0x1ccd09['rangeEnd']);if(_0x50573e<_0x3661c8){let _0x13141e='text-decoration:\x20underline\x20'+(/^[a-z]/['test'](_0x1fff2f)?_0x1fff2f+'\x20':'Dashed'==_0x1fff2f?'dashed\x20':'Squiggle'==_0x1fff2f?'wavy\x20':'')+(/thin/i['test'](_0x8b0ffd)?0x1:0x2)+'px';_0x48b26c['push'](vD['mark']({'attributes':{'style':_0x13141e}})['range'](_0x50573e,_0x3661c8));}}}_0x2569a8['dispatch']({'effects':CQ['of'](vD['set'](_0x48b26c))});},this['handlers']['compositionstart']=()=>{_0x2569a8['inputState']['composing']<0x0&&(_0x2569a8['inputState']['composing']=0x0,_0x2569a8['inputState']['compositionFirstChange']=!0x0);},this['handlers']['compositionend']=()=>{if(_0x2569a8['inputState']['composing']=-0x1,_0x2569a8['inputState']['compositionFirstChange']=null,this['composing']){let {drifted:_0x49921e}=this['composing'];this['composing']=null,_0x49921e&&this['reset'](_0x2569a8['state']);}};for(let _0x4200cf in this['handlers'])_0x468622['addEventListener'](_0x4200cf,this['handlers'][_0x4200cf]);this['measureReq']={'read':_0x2c3d3a=>{this['editContext']['updateControlBounds'](_0x2c3d3a['contentDOM']['getBoundingClientRect']());let _0x5e1868=kD(_0x2c3d3a['root']);_0x5e1868&&_0x5e1868['rangeCount']&&this['editContext']['updateSelectionBounds'](_0x5e1868['getRangeAt'](0x0)['getBoundingClientRect']());}};}applyEdits(_0x17f3bb){let _0x235da4=0x0,_0xbb7ef8=!0x1,_0x67e976=this['pendingContextChange'];return _0x17f3bb['changes']['iterChanges']((_0x528db3,_0x37a1cb,_0x1daefe,_0x21dae1,_0x25bc9d)=>{if(_0xbb7ef8)return;let _0x8daffd=_0x25bc9d['length']-(_0x37a1cb-_0x528db3);if(_0x67e976&&_0x37a1cb>=_0x67e976['to']){if(_0x67e976['from']==_0x528db3&&_0x67e976['to']==_0x37a1cb&&_0x67e976['insert']['eq'](_0x25bc9d))return _0x67e976=this['pendingContextChange']=null,_0x235da4+=_0x8daffd,void(this['to']+=_0x8daffd);_0x67e976=null,this['revertPending'](_0x17f3bb['state']);}if(_0x528db3+=_0x235da4,(_0x37a1cb+=_0x235da4)<=this['from'])this['from']+=_0x8daffd,this['to']+=_0x8daffd;else{if(_0x528db3<this['to']){if(_0x528db3<this['from']||_0x37a1cb>this['to']||this['to']-this['from']+_0x25bc9d['length']>0x7530)return void(_0xbb7ef8=!0x0);this['editContext']['updateText'](this['toContextPos'](_0x528db3),this['toContextPos'](_0x37a1cb),_0x25bc9d['toString']()),this['to']+=_0x8daffd;}}_0x235da4+=_0x8daffd;}),_0x67e976&&!_0xbb7ef8&&this['revertPending'](_0x17f3bb['state']),!_0xbb7ef8;}update(_0x54d8b4){let _0x5f4c96=this['pendingContextChange'],_0x59e7a8=_0x54d8b4['startState']['selection']['main'];this['composing']&&(this['composing']['drifted']||!_0x54d8b4['changes']['touchesRange'](_0x59e7a8['from'],_0x59e7a8['to'])&&_0x54d8b4['transactions']['some'](_0x3bcc7a=>!_0x3bcc7a['isUserEvent']('input.type')&&_0x3bcc7a['changes']['touchesRange'](this['from'],this['to'])))?(this['composing']['drifted']=!0x0,this['composing']['editorBase']=_0x54d8b4['changes']['mapPos'](this['composing']['editorBase'])):this['applyEdits'](_0x54d8b4)&&this['rangeIsValid'](_0x54d8b4['state'])?(_0x54d8b4['docChanged']||_0x54d8b4['selectionSet']||_0x5f4c96)&&this['setSelection'](_0x54d8b4['state']):(this['pendingContextChange']=null,this['reset'](_0x54d8b4['state'])),(_0x54d8b4['geometryChanged']||_0x54d8b4['docChanged']||_0x54d8b4['selectionSet'])&&_0x54d8b4['view']['requestMeasure'](this['measureReq']);}resetRange(_0x40ee33){let {head:_0x3848b9}=_0x40ee33['selection']['main'];this['from']=Math['max'](0x0,_0x3848b9-0x2710),this['to']=Math['min'](_0x40ee33['doc']['length'],_0x3848b9+0x2710);}reset(_0x3d2d55){this['resetRange'](_0x3d2d55),this['editContext']['updateText'](0x0,this['editContext']['text']['length'],_0x3d2d55['doc']['sliceString'](this['from'],this['to'])),this['setSelection'](_0x3d2d55);}revertPending(_0x1fee71){let _0x553386=this['pendingContextChange'];this['pendingContextChange']=null,this['editContext']['updateText'](this['toContextPos'](_0x553386['from']),this['toContextPos'](_0x553386['from']+_0x553386['insert']['length']),_0x1fee71['doc']['sliceString'](_0x553386['from'],_0x553386['to']));}setSelection(_0x1a5b52){let {main:_0x516117}=_0x1a5b52['selection'],_0x42fba9=this['toContextPos'](Math['max'](this['from'],Math['min'](this['to'],_0x516117['anchor']))),_0x72ddf1=this['toContextPos'](_0x516117['head']);this['editContext']['selectionStart']==_0x42fba9&&this['editContext']['selectionEnd']==_0x72ddf1||this['editContext']['updateSelection'](_0x42fba9,_0x72ddf1);}['rangeIsValid'](_0xe29720){let {head:_0xdbe83c}=_0xe29720['selection']['main'];return!(this['from']>0x0&&_0xdbe83c-this['from']<0x1f4||this['to']<_0xe29720['doc']['length']&&this['to']-_0xdbe83c<0x1f4||this['to']-this['from']>0x7530);}toEditorPos(_0x996b48,_0x56c2f2=this['to']-this['from']){_0x996b48=Math['min'](_0x996b48,_0x56c2f2);let _0x171a59=this['composing'];return _0x171a59&&_0x171a59['drifted']?_0x171a59['editorBase']+(_0x996b48-_0x171a59['contextBase']):_0x996b48+this['from'];}toContextPos(_0x478961){let _0x1a4a2a=this['composing'];return _0x1a4a2a&&_0x1a4a2a['drifted']?_0x1a4a2a['contextBase']+(_0x478961-_0x1a4a2a['editorBase']):_0x478961-this['from'];}destroy(){for(let _0x582962 in this['handlers'])this['editContext']['removeEventListener'](_0x582962,this['handlers'][_0x582962]);}},oV=class EditorView{get state(){return this['viewState']['state'];}get viewport(){return this['viewState']['viewport'];}get['visibleRanges'](){return this['viewState']['visibleRanges'];}get['inView'](){return this['viewState']['inView'];}get['composing'](){return!!this['inputState']&&this['inputState']['composing']>0x0;}get compositionStarted(){return!!this['inputState']&&this['inputState']['composing']>=0x0;}get root(){return this['_root'];}get['win'](){return this['dom']['ownerDocument']['defaultView']||window;}constructor(_0xf0a6ed={}){var _0x33bf96;this['plugins']=[],this['pluginMap']=new Map(),this['editorAttrs']={},this['contentAttrs']={},this['bidiCache']=[],this['destroyed']=!0x1,this['updateState']=0x2,this['measureScheduled']=-0x1,this['measureRequests']=[],this['contentDOM']=document['createElement']('div'),this['scrollDOM']=document['createElement']('div'),this['scrollDOM']['tabIndex']=-0x1,this['scrollDOM']['className']='cm-scroller',this['scrollDOM']['appendChild'](this['contentDOM']),this['announceDOM']=document['createElement']('div'),this['announceDOM']['className']='cm-announced',this['announceDOM']['setAttribute']('aria-live','polite'),this['dom']=document['createElement']('div'),this['dom']['appendChild'](this['announceDOM']),this['dom']['appendChild'](this['scrollDOM']),_0xf0a6ed['parent']&&_0xf0a6ed['parent']['appendChild'](this['dom']);let {dispatch:_0x4b41d2}=_0xf0a6ed;this['dispatchTransactions']=_0xf0a6ed['dispatchTransactions']||_0x4b41d2&&(_0x431266=>_0x431266['forEach'](_0x54e102=>_0x4b41d2(_0x54e102,this)))||(_0x4da920=>this['update'](_0x4da920)),this['dispatch']=this['dispatch']['bind'](this),this['_root']=_0xf0a6ed['root']||function(_0x3f06b0){for(;_0x3f06b0;){if(_0x3f06b0&&(0x9==_0x3f06b0['nodeType']||0xb==_0x3f06b0['nodeType']&&_0x3f06b0['host']))return _0x3f06b0;_0x3f06b0=_0x3f06b0['assignedSlot']||_0x3f06b0['parentNode'];}return null;}(_0xf0a6ed['parent'])||document,this['viewState']=new QU(this,_0xf0a6ed['state']||E$['create'](_0xf0a6ed)),_0xf0a6ed['scrollTo']&&_0xf0a6ed['scrollTo']['is'](xQ)&&(this['viewState']['scrollTarget']=_0xf0a6ed['scrollTo']['value']['clip'](this['viewState']['state'])),this['plugins']=this['state']['facet'](MQ)['map'](_0x719f78=>new $Q(_0x719f78));for(let _0x5d65d0 of this['plugins'])_0x5d65d0['update'](this);this['observer']=new iV(this),this['inputState']=new Zj(this),this['inputState']['ensureHandlers'](this['plugins']),this['docView']=new yj(this),this['mountStyles'](),this['updateAttrs'](),this['updateState']=0x0,this['requestMeasure'](),(null===(_0x33bf96=document['fonts'])||void 0x0===_0x33bf96?void 0x0:_0x33bf96['ready'])&&document['fonts']['ready']['then'](()=>{this['viewState']['mustMeasureContent']='refresh',this['requestMeasure']();});}dispatch(..._0x3fd9d1){let _0x46aec6=0x1==_0x3fd9d1['length']&&_0x3fd9d1[0x0]instanceof d$?_0x3fd9d1:0x1==_0x3fd9d1['length']&&Array['isArray'](_0x3fd9d1[0x0])?_0x3fd9d1[0x0]:[this['state']['update'](..._0x3fd9d1)];this['dispatchTransactions'](_0x46aec6,this);}update(_0x1e06cb){if(0x0!=this['updateState'])throw new Error('Calls\x20to\x20EditorView.update\x20are\x20not\x20allowed\x20while\x20an\x20update\x20is\x20in\x20progress');let _0x7d4ccb,_0x5c74d5=!0x1,_0x456cb3=!0x1,_0x380f99=this['state'];for(let _0x56f454 of _0x1e06cb){if(_0x56f454['startState']!=_0x380f99)throw new RangeError('Trying\x20to\x20update\x20state\x20with\x20a\x20transaction\x20that\x20doesn\x27t\x20start\x20from\x20the\x20previous\x20state.');_0x380f99=_0x56f454['state'];}if(this['destroyed'])return void(this['viewState']['state']=_0x380f99);let _0x4ac354=this['hasFocus'],_0x49c5ac=0x0,_0x5218f0=null;_0x1e06cb['some'](_0x7b8faa=>_0x7b8faa['annotation'](dU))?(this['inputState']['notifiedFocused']=_0x4ac354,_0x49c5ac=0x1):_0x4ac354!=this['inputState']['notifiedFocused']&&(this['inputState']['notifiedFocused']=_0x4ac354,_0x5218f0=fU(_0x380f99,_0x4ac354),_0x5218f0||(_0x49c5ac=0x1));let _0x52d208=this['observer']['delayedAndroidKey'],_0xf5aba1=null;if(_0x52d208?(this['observer']['clearDelayedAndroidKey'](),_0xf5aba1=this['observer']['readChange'](),(_0xf5aba1&&!this['state']['doc']['eq'](_0x380f99['doc'])||!this['state']['selection']['eq'](_0x380f99['selection']))&&(_0xf5aba1=null)):this['observer']['clear'](),_0x380f99['facet'](E$['phrases'])!=this['state']['facet'](E$['phrases']))return this['setState'](_0x380f99);_0x7d4ccb=WQ['create'](this,_0x380f99,_0x1e06cb),_0x7d4ccb['flags']|=_0x49c5ac;let _0x16dd08=this['viewState']['scrollTarget'];try{this['updateState']=0x2;for(let _0x3b4718 of _0x1e06cb){if(_0x16dd08&&(_0x16dd08=_0x16dd08['map'](_0x3b4718['changes'])),_0x3b4718['scrollIntoView']){let {main:_0x57f70d}=_0x3b4718['state']['selection'],{x:_0x5c3c57,y:_0x55847c}=this['state']['facet'](EditorView['cursorScrollMargin']);_0x16dd08=new kQ(_0x57f70d['empty']?_0x57f70d:PL['cursor'](_0x57f70d['head'],_0x57f70d['head']>_0x57f70d['anchor']?-0x1:0x1),'nearest','nearest',_0x55847c,_0x5c3c57);}for(let _0x514ac3 of _0x3b4718['effects'])_0x514ac3['is'](xQ)&&(_0x16dd08=_0x514ac3['value']['clip'](this['state']));}this['viewState']['update'](_0x7d4ccb,_0x16dd08),this['bidiCache']=lV['update'](this['bidiCache'],_0x7d4ccb['changes']),_0x7d4ccb['empty']||(this['updatePlugins'](_0x7d4ccb),this['inputState']['update'](_0x7d4ccb)),_0x5c74d5=this['docView']['update'](_0x7d4ccb),this['state']['facet'](XQ)!=this['styleModules']&&this['mountStyles'](),_0x456cb3=this['updateAttrs'](),this['showAnnouncements'](_0x1e06cb),this['docView']['updateSelection'](_0x5c74d5,_0x1e06cb['some'](_0x1a1be2=>_0x1a1be2['isUserEvent']('select.pointer')));}finally{this['updateState']=0x0;}if(_0x7d4ccb['startState']['facet'](GU)!=_0x7d4ccb['state']['facet'](GU)&&(this['viewState']['mustMeasureContent']=!0x0),(_0x5c74d5||_0x456cb3||_0x16dd08||this['viewState']['mustEnforceCursorAssoc']||this['viewState']['mustMeasureContent'])&&this['requestMeasure'](),_0x5c74d5&&this['docViewUpdate'](),!_0x7d4ccb['empty']){for(let _0x26492c of this['state']['facet'](yQ))try{_0x26492c(_0x7d4ccb);}catch(_0x2f162d){RQ(this['state'],_0x2f162d,'update\x20listener');}}(_0x5218f0||_0xf5aba1)&&Promise['resolve']()['then'](()=>{_0x5218f0&&this['state']==_0x5218f0['startState']&&this['dispatch'](_0x5218f0),_0xf5aba1&&!Vj(this,_0xf5aba1)&&_0x52d208['force']&&GD(this['contentDOM'],_0x52d208['key'],_0x52d208['keyCode']);});}setState(_0x66be11){if(0x0!=this['updateState'])throw new Error('Calls\x20to\x20EditorView.setState\x20are\x20not\x20allowed\x20while\x20an\x20update\x20is\x20in\x20progress');if(this['destroyed'])return void(this['viewState']['state']=_0x66be11);this['updateState']=0x2;let _0xc7d906=this['hasFocus'];try{for(let _0x1022bf of this['plugins'])_0x1022bf['destroy'](this);this['viewState']=new QU(this,_0x66be11),this['plugins']=_0x66be11['facet'](MQ)['map'](_0x5495be=>new $Q(_0x5495be)),this['pluginMap']['clear']();for(let _0x13fac0 of this['plugins'])_0x13fac0['update'](this);this['docView']['destroy'](),this['docView']=new yj(this),this['inputState']['ensureHandlers'](this['plugins']),this['mountStyles'](),this['updateAttrs'](),this['bidiCache']=[];}finally{this['updateState']=0x0;}_0xc7d906&&this['focus'](),this['requestMeasure']();}updatePlugins(_0x5a25c9){let _0x56f011=_0x5a25c9['startState']['facet'](MQ),_0x318b70=_0x5a25c9['state']['facet'](MQ);if(_0x56f011!=_0x318b70){let _0x11875a=[];for(let _0x3b1c7e of _0x318b70){let _0x481e65=_0x56f011['indexOf'](_0x3b1c7e);if(_0x481e65<0x0)_0x11875a['push'](new $Q(_0x3b1c7e));else{let _0x33cf5b=this['plugins'][_0x481e65];_0x33cf5b['mustUpdate']=_0x5a25c9,_0x11875a['push'](_0x33cf5b);}}for(let _0x837e81 of this['plugins'])_0x837e81['mustUpdate']!=_0x5a25c9&&_0x837e81['destroy'](this);this['plugins']=_0x11875a,this['pluginMap']['clear']();}else{for(let _0x42bd7d of this['plugins'])_0x42bd7d['mustUpdate']=_0x5a25c9;}for(let _0x1f5022=0x0;_0x1f5022<this['plugins']['length'];_0x1f5022++)this['plugins'][_0x1f5022]['update'](this);_0x56f011!=_0x318b70&&this['inputState']['ensureHandlers'](this['plugins']);}docViewUpdate(){for(let _0x1b38f8 of this['plugins']){let _0x19dc7f=_0x1b38f8['value'];if(_0x19dc7f&&_0x19dc7f['docViewUpdate'])try{_0x19dc7f['docViewUpdate'](this);}catch(_0x3dbe71){RQ(this['state'],_0x3dbe71,'doc\x20view\x20update\x20listener');}}}['measure'](_0x4d19d8=!0x0){if(this['destroyed'])return;if(this['measureScheduled']>-0x1&&this['win']['cancelAnimationFrame'](this['measureScheduled']),this['observer']['delayedAndroidKey'])return this['measureScheduled']=-0x1,void this['requestMeasure']();this['measureScheduled']=0x0,_0x4d19d8&&this['observer']['forceFlush']();let _0x4a201c=null,_0x5559f0=this['viewState']['scrollParent'],_0x26ef83=this['viewState']['getScrollOffset'](),{scrollAnchorPos:_0x5b2acf,scrollAnchorHeight:_0x5a978b}=this['viewState'];Math['abs'](_0x26ef83-this['viewState']['scrollOffset'])>0x1&&(_0x5a978b=-0x1),this['viewState']['scrollAnchorHeight']=-0x1;try{for(let _0x16a32a=0x0;;_0x16a32a++){if(_0x5a978b<0x0){if(XD(_0x5559f0||this['win']))_0x5b2acf=-0x1,_0x5a978b=this['viewState']['heightMap']['height'];else{let _0x31d166=this['viewState']['scrollAnchorAt'](_0x26ef83);_0x5b2acf=_0x31d166['from'],_0x5a978b=_0x31d166['top'];}}this['updateState']=0x1;let _0x12b2ae=this['viewState']['measure']();if(!_0x12b2ae&&!this['measureRequests']['length']&&null==this['viewState']['scrollTarget'])break;if(_0x16a32a>0x5){console['warn'](this['measureRequests']['length']?'Measure\x20loop\x20restarted\x20more\x20than\x205\x20times':'Viewport\x20failed\x20to\x20stabilize');break;}let _0x4daf62=[];0x4&_0x12b2ae||([this['measureRequests'],_0x4daf62]=[_0x4daf62,this['measureRequests']]);let _0x214f93=_0x4daf62['map'](_0x24be18=>{try{return _0x24be18['read'](this);}catch(_0x17bf3a){return RQ(this['state'],_0x17bf3a),cV;}}),_0x36a5fe=WQ['create'](this,this['state'],[]),_0x51be20=!0x1;_0x36a5fe['flags']|=_0x12b2ae,_0x4a201c?_0x4a201c['flags']|=_0x12b2ae:_0x4a201c=_0x36a5fe,this['updateState']=0x2,_0x36a5fe['empty']||(this['updatePlugins'](_0x36a5fe),this['inputState']['update'](_0x36a5fe),this['updateAttrs'](),_0x51be20=this['docView']['update'](_0x36a5fe),_0x51be20&&this['docViewUpdate']());for(let _0x4bb623=0x0;_0x4bb623<_0x4daf62['length'];_0x4bb623++)if(_0x214f93[_0x4bb623]!=cV)try{let _0xfdce02=_0x4daf62[_0x4bb623];_0xfdce02['write']&&_0xfdce02['write'](_0x214f93[_0x4bb623],this);}catch(_0x3cfd56){RQ(this['state'],_0x3cfd56);}if(_0x51be20&&this['docView']['updateSelection'](!0x0),!_0x36a5fe['viewportChanged']&&0x0==this['measureRequests']['length']){if(this['viewState']['editorHeight']){if(this['viewState']['scrollTarget']){this['docView']['scrollIntoView'](this['viewState']['scrollTarget']),this['viewState']['scrollTarget']=null,_0x5a978b=-0x1;continue;}{let _0x2417ae=((_0x5b2acf<0x0?this['viewState']['heightMap']['height']:this['viewState']['lineBlockAt'](_0x5b2acf)['top'])-_0x5a978b)/this['scaleY'];if((_0x2417ae>0x1||_0x2417ae<-0x1)&&(_0x5559f0==this['scrollDOM']||this['hasFocus']||Math['max'](this['inputState']['lastWheelEvent'],this['inputState']['lastTouchTime'])>Date['now']()-0x64)){_0x26ef83+=_0x2417ae,_0x5559f0?_0x5559f0['scrollTop']+=_0x2417ae:this['win']['scrollBy'](0x0,_0x2417ae),_0x5a978b=-0x1;continue;}}}break;}}}finally{this['updateState']=0x0,this['measureScheduled']=-0x1;}if(_0x4a201c&&!_0x4a201c['empty']){for(let _0x353eb1 of this['state']['facet'](yQ))_0x353eb1(_0x4a201c);}}get themeClasses(){return qU+'\x20'+(this['state']['facet'](XU)?zU:WU)+'\x20'+this['state']['facet'](GU);}updateAttrs(){let _0x439ece=hV(this,DQ,{'class':'cm-editor'+(this['hasFocus']?'\x20cm-focused\x20':'\x20')+this['themeClasses']}),_0xee0b18={'spellcheck':'false','autocorrect':'off','autocapitalize':'off','writingsuggestions':'false','translate':'no','contenteditable':this['state']['facet'](PQ)?'true':'false','class':'cm-content','style':fD['tabSize']+':\x20'+this['state']['tabSize'],'role':'textbox','aria-multiline':'true'};this['state']['readOnly']&&(_0xee0b18['aria-readonly']='true'),hV(this,QQ,_0xee0b18);let _0x4951d2=this['observer']['ignore'](()=>{let _0x5a93a2=OD(this['contentDOM'],this['contentAttrs'],_0xee0b18),_0x3e35f8=OD(this['dom'],this['editorAttrs'],_0x439ece);return _0x5a93a2||_0x3e35f8;});return this['editorAttrs']=_0x439ece,this['contentAttrs']=_0xee0b18,_0x4951d2;}showAnnouncements(_0x2b5476){let _0x4e5161=!0x0;for(let _0x32a715 of _0x2b5476)for(let _0x87c728 of _0x32a715['effects'])_0x87c728['is'](EditorView['announce'])&&(_0x4e5161&&(this['announceDOM']['textContent']=''),_0x4e5161=!0x1,this['announceDOM']['appendChild'](document['createElement']('div'))['textContent']=_0x87c728['value']);}mountStyles(){this['styleModules']=this['state']['facet'](XQ);let _0x23e51f=this['state']['facet'](EditorView['cspNonce']);X$['mount'](this['root'],this['styleModules']['concat'](JU)['reverse'](),_0x23e51f?{'nonce':_0x23e51f}:void 0x0);}['readMeasured'](){if(0x2==this['updateState'])throw new Error('Reading\x20the\x20editor\x20layout\x20isn\x27t\x20allowed\x20during\x20an\x20update');0x0==this['updateState']&&this['measureScheduled']>-0x1&&this['measure'](!0x1);}requestMeasure(_0x51eec0){if(this['measureScheduled']<0x0&&(this['measureScheduled']=this['win']['requestAnimationFrame'](()=>this['measure']())),_0x51eec0){if(this['measureRequests']['indexOf'](_0x51eec0)>-0x1)return;if(null!=_0x51eec0['key']){for(let _0x4b9cb9=0x0;_0x4b9cb9<this['measureRequests']['length'];_0x4b9cb9++)if(this['measureRequests'][_0x4b9cb9]['key']===_0x51eec0['key'])return void(this['measureRequests'][_0x4b9cb9]=_0x51eec0);}this['measureRequests']['push'](_0x51eec0);}}['plugin'](_0x48e07e){let _0x389b45=this['pluginMap']['get'](_0x48e07e);return(void 0x0===_0x389b45||_0x389b45&&_0x389b45['plugin']!=_0x48e07e)&&this['pluginMap']['set'](_0x48e07e,_0x389b45=this['plugins']['find'](_0x1b9f07=>_0x1b9f07['plugin']==_0x48e07e)||null),_0x389b45&&_0x389b45['update'](this)['value'];}get documentTop(){return this['contentDOM']['getBoundingClientRect']()['top']+this['viewState']['paddingTop'];}get documentPadding(){return{'top':this['viewState']['paddingTop'],'bottom':this['viewState']['paddingBottom']};}get['scaleX'](){return this['viewState']['scaleX'];}get['scaleY'](){return this['viewState']['scaleY'];}elementAtHeight(_0x59c6fc){return this['readMeasured'](),this['viewState']['elementAtHeight'](_0x59c6fc);}lineBlockAtHeight(_0xdebfe0){return this['readMeasured'](),this['viewState']['lineBlockAtHeight'](_0xdebfe0);}get viewportLineBlocks(){return this['viewState']['viewportLines'];}lineBlockAt(_0x470003){return this['viewState']['lineBlockAt'](_0x470003);}get contentHeight(){return this['viewState']['contentHeight'];}['moveByChar'](_0x496517,_0x40e3c3,_0x22c75f){return Cj(this,_0x496517,Ij(this,_0x496517,_0x40e3c3,_0x22c75f));}['moveByGroup'](_0x31215d,_0x4a71ff){return Cj(this,_0x31215d,Ij(this,_0x31215d,_0x4a71ff,_0x4d2e7a=>function(_0x53c723,_0x2dc924,_0x273a51){let _0x5ca2d5=_0x53c723['state']['charCategorizer'](_0x2dc924),_0x197c4f=_0x5ca2d5(_0x273a51);return _0x3ffe2b=>{let _0x75fa76=_0x5ca2d5(_0x3ffe2b);return _0x197c4f==b$['Space']&&(_0x197c4f=_0x75fa76),_0x197c4f==_0x75fa76;};}(this,_0x31215d['head'],_0x4d2e7a)));}['visualLineSide'](_0xa5bdf1,_0x17d8bf){let _0x190183=this['bidiSpans'](_0xa5bdf1),_0x44ba0e=this['textDirectionAt'](_0xa5bdf1['from']),_0x59ef88=_0x190183[_0x17d8bf?_0x190183['length']-0x1:0x0];return PL['cursor'](_0x59ef88['side'](_0x17d8bf,_0x44ba0e)+_0xa5bdf1['from'],_0x59ef88['forward'](!_0x17d8bf,_0x44ba0e)?0x1:-0x1);}['moveToLineBoundary'](_0x500cfc,_0x5c2bcc,_0x2be9d4=!0x0){return function(_0x1f127d,_0x24e56a,_0xc062cd,_0x4a4981){let _0x5ec2a3=Sj(_0x1f127d,_0x24e56a['head'],_0x24e56a['assoc']||-0x1),_0x418fd0=_0x4a4981&&_0x5ec2a3['type']==yD['Text']&&(_0x1f127d['lineWrapping']||_0x5ec2a3['widgetLineBreaks'])?_0x1f127d['coordsAtPos'](_0x24e56a['assoc']<0x0&&_0x24e56a['head']>_0x5ec2a3['from']?_0x24e56a['head']-0x1:_0x24e56a['head']):null;if(_0x418fd0){let _0x51b9af=_0x1f127d['dom']['getBoundingClientRect'](),_0x1567f5=_0x1f127d['textDirectionAt'](_0x5ec2a3['from']),_0x49bbd2=_0x1f127d['posAtCoords']({'x':_0xc062cd==(_0x1567f5==YD['LTR'])?_0x51b9af['right']-0x1:_0x51b9af['left']+0x1,'y':(_0x418fd0['top']+_0x418fd0['bottom'])/0x2});if(null!=_0x49bbd2)return PL['cursor'](_0x49bbd2,_0xc062cd?-0x1:0x1);}return PL['cursor'](_0xc062cd?_0x5ec2a3['to']:_0x5ec2a3['from'],_0xc062cd?-0x1:0x1);}(this,_0x500cfc,_0x5c2bcc,_0x2be9d4);}moveVertically(_0x3f227c,_0x45d514,_0x2a0f66){return Cj(this,_0x3f227c,function(_0xd8ffb8,_0x5b80e4,_0x475a0f,_0x980797){let _0x42b067=_0x5b80e4['head'],_0x534dee=_0x475a0f?0x1:-0x1;if(_0x42b067==(_0x475a0f?_0xd8ffb8['state']['doc']['length']:0x0))return PL['cursor'](_0x42b067,_0x5b80e4['assoc']);let _0x3b697f,_0x4a975a=_0x5b80e4['goalColumn'],_0xe9465d=_0xd8ffb8['contentDOM']['getBoundingClientRect'](),_0x5b7ff4=_0xd8ffb8['coordsAtPos'](_0x42b067,_0x5b80e4['assoc']||((_0x5b80e4['empty']?_0x475a0f:_0x5b80e4['head']==_0x5b80e4['from'])?0x1:-0x1)),_0x2815b0=_0xd8ffb8['documentTop'];if(_0x5b7ff4)null==_0x4a975a&&(_0x4a975a=_0x5b7ff4['left']-_0xe9465d['left']),_0x3b697f=_0x534dee<0x0?_0x5b7ff4['top']:_0x5b7ff4['bottom'];else{let _0x1267e4=_0xd8ffb8['viewState']['lineBlockAt'](_0x42b067);null==_0x4a975a&&(_0x4a975a=Math['min'](_0xe9465d['right']-_0xe9465d['left'],_0xd8ffb8['defaultCharacterWidth']*(_0x42b067-_0x1267e4['from']))),_0x3b697f=(_0x534dee<0x0?_0x1267e4['top']:_0x1267e4['bottom'])+_0x2815b0;}let _0x31cd20=_0xe9465d['left']+_0x4a975a,_0x254658=_0xd8ffb8['viewState']['heightOracle']['textHeight']>>0x1,_0x518a92=null!=_0x980797?_0x980797:_0x254658;for(let _0x4720a2=0x0;;_0x4720a2+=_0x254658){let _0x18bca0=_0x3b697f+(_0x518a92+_0x4720a2)*_0x534dee,_0x528957=Pj(_0xd8ffb8,{'x':_0x31cd20,'y':_0x18bca0},!0x1,_0x534dee);if(_0x475a0f?_0x18bca0>_0xe9465d['bottom']:_0x18bca0<_0xe9465d['top'])return PL['cursor'](_0x528957['pos'],_0x528957['assoc']);let _0x58ad1c=_0xd8ffb8['coordsAtPos'](_0x528957['pos'],_0x528957['assoc']),_0x8600ae=_0x58ad1c?(_0x58ad1c['top']+_0x58ad1c['bottom'])/0x2:0x0;if(!_0x58ad1c||(_0x475a0f?_0x8600ae>_0x3b697f:_0x8600ae<_0x3b697f))return PL['cursor'](_0x528957['pos'],_0x528957['assoc'],void 0x0,_0x4a975a);}}(this,_0x3f227c,_0x45d514,_0x2a0f66));}domAtPos(_0x14e5c1,_0x1a060e=0x1){return this['docView']['domAtPos'](_0x14e5c1,_0x1a060e);}posAtDOM(_0x3e5fcf,_0x17f27c=0x0){return this['docView']['posFromDOM'](_0x3e5fcf,_0x17f27c);}posAtCoords(_0x4f6689,_0x50dcf4=!0x0){this['readMeasured']();let _0x41f0a7=Pj(this,_0x4f6689,_0x50dcf4);return _0x41f0a7&&_0x41f0a7['pos'];}posAndSideAtCoords(_0x17ae8c,_0xe46952=!0x0){return this['readMeasured'](),Pj(this,_0x17ae8c,_0xe46952);}coordsAtPos(_0x3f6f25,_0x5e8b9b=0x1){this['readMeasured']();let _0x421b83=this['docView']['coordsAt'](_0x3f6f25,_0x5e8b9b);if(!_0x421b83||_0x421b83['left']==_0x421b83['right'])return _0x421b83;let _0x1dd7d1=this['state']['doc']['lineAt'](_0x3f6f25),_0x3cb3c6=this['bidiSpans'](_0x1dd7d1);return DD(_0x421b83,_0x3cb3c6[aQ['find'](_0x3cb3c6,_0x3f6f25-_0x1dd7d1['from'],-0x1,_0x5e8b9b)]['dir']==YD['LTR']==_0x5e8b9b>0x0);}['coordsForChar'](_0x56c238){return this['readMeasured'](),this['docView']['coordsForChar'](_0x56c238);}get defaultCharacterWidth(){return this['viewState']['heightOracle']['charWidth'];}get defaultLineHeight(){return this['viewState']['heightOracle']['lineHeight'];}get textDirection(){return this['viewState']['defaultTextDirection'];}textDirectionAt(_0x2e13e6){return!this['state']['facet'](AQ)||_0x2e13e6<this['viewport']['from']||_0x2e13e6>this['viewport']['to']?this['textDirection']:(this['readMeasured'](),this['docView']['textDirectionAt'](_0x2e13e6));}get['lineWrapping'](){return this['viewState']['heightOracle']['lineWrapping'];}['bidiSpans'](_0x2b1cda){if(_0x2b1cda['length']>aV)return dQ(_0x2b1cda['length']);let _0x12aaf7,_0x53911b=this['textDirectionAt'](_0x2b1cda['from']);for(let _0x75f1bf of this['bidiCache'])if(_0x75f1bf['from']==_0x2b1cda['from']&&_0x75f1bf['dir']==_0x53911b&&(_0x75f1bf['fresh']||cQ(_0x75f1bf['isolates'],_0x12aaf7=FQ(this,_0x2b1cda))))return _0x75f1bf['order'];_0x12aaf7||(_0x12aaf7=FQ(this,_0x2b1cda));let _0x3386a7=function(_0x4a920d,_0xb587ac,_0x46b594){if(!_0x4a920d)return[new aQ(0x0,0x0,_0xb587ac==JD?0x1:0x0)];if(_0xb587ac==KD&&!_0x46b594['length']&&!oQ['test'](_0x4a920d))return dQ(_0x4a920d['length']);if(_0x46b594['length']){for(;_0x4a920d['length']>lQ['length'];)lQ[lQ['length']]=0x100;}let _0x5d7dd6=[],_0x58617c=_0xb587ac==KD?0x0:0x1;return uQ(_0x4a920d,_0x58617c,_0x58617c,_0x46b594,0x0,_0x4a920d['length'],_0x5d7dd6),_0x5d7dd6;}(_0x2b1cda['text'],_0x53911b,_0x12aaf7);return this['bidiCache']['push'](new lV(_0x2b1cda['from'],_0x2b1cda['to'],_0x53911b,_0x12aaf7,!0x0,_0x3386a7)),_0x3386a7;}get['hasFocus'](){var _0x472db7;return(this['dom']['ownerDocument']['hasFocus']()||fD['safari']&&(null===(_0x472db7=this['inputState'])||void 0x0===_0x472db7?void 0x0:_0x472db7['lastContextMenu'])>Date['now']()-0x7530)&&this['root']['activeElement']==this['contentDOM'];}['focus'](){this['observer']['ignore'](()=>{FD(this['contentDOM']),this['docView']['updateSelection']();});}setRoot(_0x48e9b4){this['_root']!=_0x48e9b4&&(this['_root']=_0x48e9b4,this['observer']['setWindow']((0x9==_0x48e9b4['nodeType']?_0x48e9b4:_0x48e9b4['ownerDocument'])['defaultView']||window),this['mountStyles']());}destroy(){this['root']['activeElement']==this['contentDOM']&&this['contentDOM']['blur']();for(let _0xe80efe of this['plugins'])_0xe80efe['destroy'](this);this['plugins']=[],this['inputState']['destroy'](),this['docView']['destroy'](),this['dom']['remove'](),this['observer']['destroy'](),this['measureScheduled']>-0x1&&this['win']['cancelAnimationFrame'](this['measureScheduled']),this['destroyed']=!0x0;}static scrollIntoView(_0x14beb2,_0x1115bc={}){var _0x5ea7db,_0x2bedfa,_0x5b8d96,_0x66913d;return xQ['of'](new kQ('number'==typeof _0x14beb2?PL['cursor'](_0x14beb2):_0x14beb2,null!==(_0x5ea7db=_0x1115bc['y'])&&void 0x0!==_0x5ea7db?_0x5ea7db:'nearest',null!==(_0x2bedfa=_0x1115bc['x'])&&void 0x0!==_0x2bedfa?_0x2bedfa:'nearest',null!==(_0x5b8d96=_0x1115bc['yMargin'])&&void 0x0!==_0x5b8d96?_0x5b8d96:0x5,null!==(_0x66913d=_0x1115bc['xMargin'])&&void 0x0!==_0x66913d?_0x66913d:0x5));}scrollSnapshot(){let {scrollTop:_0x2e0d73,scrollLeft:_0x166fb1}=this['scrollDOM'],_0x59a4e3=this['viewState']['scrollAnchorAt'](_0x2e0d73);return xQ['of'](new kQ(PL['cursor'](_0x59a4e3['from']),'start','start',_0x59a4e3['top']-_0x2e0d73,_0x166fb1,!0x0));}setTabFocusMode(_0x53ada8){null==_0x53ada8?this['inputState']['tabFocusMode']=this['inputState']['tabFocusMode']<0x0?0x0:-0x1:'boolean'==typeof _0x53ada8?this['inputState']['tabFocusMode']=_0x53ada8?0x0:-0x1:0x0!=this['inputState']['tabFocusMode']&&(this['inputState']['tabFocusMode']=Date['now']()+_0x53ada8);}static domEventHandlers(_0x381dca){return LQ['define'](()=>({}),{'eventHandlers':_0x381dca});}static domEventObservers(_0x23c7be){return LQ['define'](()=>({}),{'eventObservers':_0x23c7be});}static theme(_0x4d3790,_0x2f5a9c){let _0x3bdd71=X$['newName'](),_0x573ced=[GU['of'](_0x3bdd71),XQ['of'](KU('.'+_0x3bdd71,_0x4d3790))];return _0x2f5a9c&&_0x2f5a9c['dark']&&_0x573ced['push'](XU['of'](!0x0)),_0x573ced;}static['baseTheme'](_0x41706b){return qL['lowest'](XQ['of'](KU('.'+qU,_0x41706b,YU)));}static['findFromDOM'](_0x14c99e){var _0xefdda1;let _0x47577e=_0x14c99e['querySelector']('.cm-content'),_0x3690dd=_0x47577e&&YQ['get'](_0x47577e)||YQ['get'](_0x14c99e);return(null===(_0xefdda1=null==_0x3690dd?void 0x0:_0x3690dd['root'])||void 0x0===_0xefdda1?void 0x0:_0xefdda1['view'])||null;}};oV['styleModule']=XQ,oV['inputHandler']=vQ,oV['clipboardInputFilter']=EQ,oV['clipboardOutputFilter']=TQ,oV['scrollHandler']=IQ,oV['focusChangeEffect']=_Q,oV['perLineTextDirection']=AQ,oV['exceptionSink']=bQ,oV['updateListener']=yQ,oV['editable']=PQ,oV['mouseSelectionStyle']=wQ,oV['dragMovesSelection']=OQ,oV['clickAddsSelectionRange']=gQ,oV['decorations']=jQ,oV['blockWrappers']=UQ,oV['outerDecorations']=VQ,oV['atomicRanges']=BQ,oV['bidiIsolatedRanges']=HQ,oV['cursorScrollMargin']=LL['define']({'combine':_0x5894c5=>{let _0x11a7a5=0x5,_0x3ab5d7=0x5;for(let _0x73df24 of _0x5894c5)'number'==typeof _0x73df24?_0x11a7a5=_0x3ab5d7=_0x73df24:{x:_0x11a7a5,y:_0x3ab5d7}=_0x73df24;return{'x':_0x11a7a5,'y':_0x3ab5d7};}}),oV['scrollMargins']=ZQ,oV['darkTheme']=XU,oV['cspNonce']=LL['define']({'combine':_0xfdc134=>_0xfdc134['length']?_0xfdc134[0x0]:''}),oV['contentAttributes']=QQ,oV['editorAttributes']=DQ,oV['lineWrapping']=oV['contentAttributes']['of']({'class':'cm-lineWrapping'}),oV['announce']=u$['define']();const aV=0x1000,cV={};var lV=class CachedOrder{constructor(_0x2c61ba,_0x698a94,_0x2f03db,_0x9c9596,_0x1a6420,_0x3bf9c2){this['from']=_0x2c61ba,this['to']=_0x698a94,this['dir']=_0x2f03db,this['isolates']=_0x9c9596,this['fresh']=_0x1a6420,this['order']=_0x3bf9c2;}static update(_0x2c2d1f,_0xd1b301){if(_0xd1b301['empty']&&!_0x2c2d1f['some'](_0x3bf11b=>_0x3bf11b['fresh']))return _0x2c2d1f;let _0x1febfc=[],_0x7243f7=_0x2c2d1f['length']?_0x2c2d1f[_0x2c2d1f['length']-0x1]['dir']:YD['LTR'];for(let _0x53be45=Math['max'](0x0,_0x2c2d1f['length']-0xa);_0x53be45<_0x2c2d1f['length'];_0x53be45++){let _0xe5ec04=_0x2c2d1f[_0x53be45];_0xe5ec04['dir']!=_0x7243f7||_0xd1b301['touchesRange'](_0xe5ec04['from'],_0xe5ec04['to'])||_0x1febfc['push'](new CachedOrder(_0xd1b301['mapPos'](_0xe5ec04['from'],0x1),_0xd1b301['mapPos'](_0xe5ec04['to'],-0x1),_0xe5ec04['dir'],_0xe5ec04['isolates'],!0x1,_0xe5ec04['order']));}return _0x1febfc;}};function hV(_0x2a9f42,_0x226ec1,_0x4c8f09){for(let _0x1bd2f8=_0x2a9f42['state']['facet'](_0x226ec1),_0x38c236=_0x1bd2f8['length']-0x1;_0x38c236>=0x0;_0x38c236--){let _0x1eec7a=_0x1bd2f8[_0x38c236],_0x318acf='function'==typeof _0x1eec7a?_0x1eec7a(_0x2a9f42):_0x1eec7a;_0x318acf&&mD(_0x318acf,_0x4c8f09);}return _0x4c8f09;}const uV=fD['mac']?'mac':fD['windows']?'win':fD['linux']?'linux':'key';function dV(_0x57b1b6,_0x2910da,_0x44ecf3){return _0x2910da['altKey']&&(_0x57b1b6='Alt-'+_0x57b1b6),_0x2910da['ctrlKey']&&(_0x57b1b6='Ctrl-'+_0x57b1b6),_0x2910da['metaKey']&&(_0x57b1b6='Meta-'+_0x57b1b6),!0x1!==_0x44ecf3&&_0x2910da['shiftKey']&&(_0x57b1b6='Shift-'+_0x57b1b6),_0x57b1b6;}const fV=qL['default'](oV['domEventHandlers']({'keydown':(_0x30db04,_0x543ea7)=>function(_0x1e17ca,_0x386743,_0xca2531,_0x50d549){wV=_0x386743;let _0xe6f958=function(_0x49b381){var _0x4dd9b5=!(K$&&_0x49b381['metaKey']&&_0x49b381['shiftKey']&&!_0x49b381['ctrlKey']&&!_0x49b381['altKey']||J$&&_0x49b381['shiftKey']&&_0x49b381['key']&&0x1==_0x49b381['key']['length']||'Unidentified'==_0x49b381['key'])&&_0x49b381['key']||(_0x49b381['shiftKey']?Y$:z$)[_0x49b381['keyCode']]||_0x49b381['key']||'Unidentified';return'Esc'==_0x4dd9b5&&(_0x4dd9b5='Escape'),'Del'==_0x4dd9b5&&(_0x4dd9b5='Delete'),'Left'==_0x4dd9b5&&(_0x4dd9b5='ArrowLeft'),'Up'==_0x4dd9b5&&(_0x4dd9b5='ArrowUp'),'Right'==_0x4dd9b5&&(_0x4dd9b5='ArrowRight'),'Down'==_0x4dd9b5&&(_0x4dd9b5='ArrowDown'),_0x4dd9b5;}(_0x386743),_0x5d071f=yL(wL(_0xe6f958,0x0))==_0xe6f958['length']&&'\x20'!=_0xe6f958,_0x862439='',_0xa0ed9b=!0x1,_0x2230fd=!0x1,_0x533f05=!0x1;gV&&gV['view']==_0xca2531&&gV['scope']==_0x50d549&&(_0x862439=gV['prefix']+'\x20',zj['indexOf'](_0x386743['keyCode'])<0x0&&(_0x2230fd=!0x0,gV=null));let _0x1c0fc1,_0x449c7b,_0x40f5fa=new Set(),_0x27addd=_0x54caf4=>{if(_0x54caf4){for(let _0x21b6d4 of _0x54caf4['run'])if(!_0x40f5fa['has'](_0x21b6d4)&&(_0x40f5fa['add'](_0x21b6d4),_0x21b6d4(_0xca2531)))return _0x54caf4['stopPropagation']&&(_0x533f05=!0x0),!0x0;_0x54caf4['preventDefault']&&(_0x54caf4['stopPropagation']&&(_0x533f05=!0x0),_0x2230fd=!0x0);}return!0x1;},_0x170d66=_0x1e17ca[_0x50d549];return _0x170d66&&(_0x27addd(_0x170d66[_0x862439+dV(_0xe6f958,_0x386743,!_0x5d071f)])?_0xa0ed9b=!0x0:!_0x5d071f||!(_0x386743['altKey']||_0x386743['metaKey']||_0x386743['ctrlKey'])||fD['windows']&&_0x386743['ctrlKey']&&_0x386743['altKey']||fD['mac']&&_0x386743['altKey']&&!_0x386743['ctrlKey']&&!_0x386743['metaKey']||!(_0x1c0fc1=z$[_0x386743['keyCode']])||_0x1c0fc1==_0xe6f958?_0x5d071f&&_0x386743['shiftKey']&&_0x27addd(_0x170d66[_0x862439+dV(_0xe6f958,_0x386743,!0x0)])&&(_0xa0ed9b=!0x0):(_0x27addd(_0x170d66[_0x862439+dV(_0x1c0fc1,_0x386743,!0x0)])||_0x386743['shiftKey']&&(_0x449c7b=Y$[_0x386743['keyCode']])!=_0xe6f958&&_0x449c7b!=_0x1c0fc1&&_0x27addd(_0x170d66[_0x862439+dV(_0x449c7b,_0x386743,!0x1)]))&&(_0xa0ed9b=!0x0),!_0xa0ed9b&&_0x27addd(_0x170d66['_any'])&&(_0xa0ed9b=!0x0)),_0x2230fd&&(_0xa0ed9b=!0x0),_0xa0ed9b&&_0x533f05&&_0x386743['stopPropagation'](),(wV=null,_0xa0ed9b);}(function(_0x1c0f64){let _0x1dad18=_0x1c0f64['facet'](mV),_0x455fb7=pV['get'](_0x1dad18);return _0x455fb7||pV['set'](_0x1dad18,_0x455fb7=function(_0x20848a,_0x4de935=uV){let _0x6b9592=Object['create'](null),_0x20978f=Object['create'](null),_0x553a95=(_0x3e9cc7,_0x1c4821)=>{let _0x2f77f5=_0x20978f[_0x3e9cc7];if(null==_0x2f77f5)_0x20978f[_0x3e9cc7]=_0x1c4821;else{if(_0x2f77f5!=_0x1c4821)throw new Error('Key\x20binding\x20'+_0x3e9cc7+'\x20is\x20used\x20both\x20as\x20a\x20regular\x20binding\x20and\x20as\x20a\x20multi-stroke\x20prefix');}},_0x333327=(_0x586664,_0x1d95ea,_0x18a3d8,_0x1951c6,_0x3fb900)=>{var _0x55a3e6,_0x20059e;let _0x3762c3=_0x6b9592[_0x586664]||(_0x6b9592[_0x586664]=Object['create'](null)),_0xb3e067=_0x1d95ea['split'](/ (?!$)/)['map'](_0x1a256b=>function(_0x477225,_0x4d9406){const _0x1a0d3a=_0x477225['split'](/-(?!$)/);let _0x36cb63,_0x3f0cb1,_0x5a528d,_0x429f57,_0x2748b1=_0x1a0d3a[_0x1a0d3a['length']-0x1];'Space'==_0x2748b1&&(_0x2748b1='\x20');for(let _0x174a7a=0x0;_0x174a7a<_0x1a0d3a['length']-0x1;++_0x174a7a){const _0x8c7e0f=_0x1a0d3a[_0x174a7a];if(/^(cmd|meta|m)$/i['test'](_0x8c7e0f))_0x429f57=!0x0;else{if(/^a(lt)?$/i['test'](_0x8c7e0f))_0x36cb63=!0x0;else{if(/^(c|ctrl|control)$/i['test'](_0x8c7e0f))_0x3f0cb1=!0x0;else{if(/^s(hift)?$/i['test'](_0x8c7e0f))_0x5a528d=!0x0;else{if(!/^mod$/i['test'](_0x8c7e0f))throw new Error('Unrecognized\x20modifier\x20name:\x20'+_0x8c7e0f);'mac'==_0x4d9406?_0x429f57=!0x0:_0x3f0cb1=!0x0;}}}}}return _0x36cb63&&(_0x2748b1='Alt-'+_0x2748b1),_0x3f0cb1&&(_0x2748b1='Ctrl-'+_0x2748b1),_0x429f57&&(_0x2748b1='Meta-'+_0x2748b1),_0x5a528d&&(_0x2748b1='Shift-'+_0x2748b1),_0x2748b1;}(_0x1a256b,_0x4de935));for(let _0x2b1330=0x1;_0x2b1330<_0xb3e067['length'];_0x2b1330++){let _0xf2abc2=_0xb3e067['slice'](0x0,_0x2b1330)['join']('\x20');_0x553a95(_0xf2abc2,!0x0),_0x3762c3[_0xf2abc2]||(_0x3762c3[_0xf2abc2]={'preventDefault':!0x0,'stopPropagation':!0x1,'run':[_0x13485d=>{let _0x926de5=gV={'view':_0x13485d,'prefix':_0xf2abc2,'scope':_0x586664};return setTimeout(()=>{gV==_0x926de5&&(gV=null);},OV),!0x0;}]});}let _0x35833e=_0xb3e067['join']('\x20');_0x553a95(_0x35833e,!0x1);let _0x4cfe9b=_0x3762c3[_0x35833e]||(_0x3762c3[_0x35833e]={'preventDefault':!0x1,'stopPropagation':!0x1,'run':(null===(_0x20059e=null===(_0x55a3e6=_0x3762c3['_any'])||void 0x0===_0x55a3e6?void 0x0:_0x55a3e6['run'])||void 0x0===_0x20059e?void 0x0:_0x20059e['slice']())||[]});_0x18a3d8&&_0x4cfe9b['run']['push'](_0x18a3d8),_0x1951c6&&(_0x4cfe9b['preventDefault']=!0x0),_0x3fb900&&(_0x4cfe9b['stopPropagation']=!0x0);};for(let _0x87c9fc of _0x20848a){let _0x3ec68e=_0x87c9fc['scope']?_0x87c9fc['scope']['split']('\x20'):['editor'];if(_0x87c9fc['any'])for(let _0x270a09 of _0x3ec68e){let _0x54deac=_0x6b9592[_0x270a09]||(_0x6b9592[_0x270a09]=Object['create'](null));_0x54deac['_any']||(_0x54deac['_any']={'preventDefault':!0x1,'stopPropagation':!0x1,'run':[]});let {any:_0x416ebd}=_0x87c9fc;for(let _0x49d188 in _0x54deac)_0x54deac[_0x49d188]['run']['push'](_0x595a4b=>_0x416ebd(_0x595a4b,wV));}let _0x2c0632=_0x87c9fc[_0x4de935]||_0x87c9fc['key'];if(_0x2c0632){for(let _0x15fef5 of _0x3ec68e)_0x333327(_0x15fef5,_0x2c0632,_0x87c9fc['run'],_0x87c9fc['preventDefault'],_0x87c9fc['stopPropagation']),_0x87c9fc['shift']&&_0x333327(_0x15fef5,'Shift-'+_0x2c0632,_0x87c9fc['shift'],_0x87c9fc['preventDefault'],_0x87c9fc['stopPropagation']);}}return _0x6b9592;}(_0x1dad18['reduce']((_0x25c43b,_0x52185f)=>_0x25c43b['concat'](_0x52185f),[]))),_0x455fb7;}(_0x543ea7['state']),_0x30db04,_0x543ea7,'editor')})),mV=LL['define']({'enables':fV}),pV=new WeakMap();let gV=null;const OV=0xfa0;let wV=null;var bV=class RectangleMarker{constructor(_0x2c1428,_0x17e1dd,_0x2f5bde,_0x4b2ddc,_0x17d069){this['className']=_0x2c1428,this['left']=_0x17e1dd,this['top']=_0x2f5bde,this['width']=_0x4b2ddc,this['height']=_0x17d069;}['draw'](){let _0x4efd53=document['createElement']('div');return _0x4efd53['className']=this['className'],this['adjust'](_0x4efd53),_0x4efd53;}update(_0x47a55c,_0x1729d0){return _0x1729d0['className']==this['className']&&(this['adjust'](_0x47a55c),!0x0);}adjust(_0x147fcb){_0x147fcb['style']['left']=this['left']+'px',_0x147fcb['style']['top']=this['top']+'px',null!=this['width']&&(_0x147fcb['style']['width']=this['width']+'px'),_0x147fcb['style']['height']=this['height']+'px';}['eq'](_0x558fd2){return this['left']==_0x558fd2['left']&&this['top']==_0x558fd2['top']&&this['width']==_0x558fd2['width']&&this['height']==_0x558fd2['height']&&this['className']==_0x558fd2['className'];}static['forRange'](_0x318003,_0x457918,_0x4c7491){if(_0x4c7491['empty']){let _0x40432a=_0x318003['coordsAtPos'](_0x4c7491['head'],_0x4c7491['assoc']||0x1);if(!_0x40432a)return[];let _0x5ea5be=yV(_0x318003);return[new RectangleMarker(_0x457918,_0x40432a['left']-_0x5ea5be['left'],_0x40432a['top']-_0x5ea5be['top'],null,_0x40432a['bottom']-_0x40432a['top'])];}return _V(_0x318003,_0x457918,_0x4c7491);}};function yV(_0x1602ea){let _0x5854de=_0x1602ea['scrollDOM']['getBoundingClientRect']();return{'left':(_0x1602ea['textDirection']==YD['LTR']?_0x5854de['left']:_0x5854de['right']-_0x1602ea['scrollDOM']['clientWidth']*_0x1602ea['scaleX'])-_0x1602ea['scrollDOM']['scrollLeft']*_0x1602ea['scaleX'],'top':_0x5854de['top']-_0x1602ea['scrollDOM']['scrollTop']*_0x1602ea['scaleY']};}function vV(_0x28382c,_0x4c35d4,_0x414c4a,_0x38e0c2){let _0x2a6a29=_0x28382c['coordsAtPos'](_0x4c35d4,0x2*_0x414c4a);if(!_0x2a6a29)return _0x38e0c2;let _0x24096d=_0x28382c['dom']['getBoundingClientRect'](),_0x116b79=(_0x2a6a29['top']+_0x2a6a29['bottom'])/0x2,_0x5d2644=_0x28382c['posAtCoords']({'x':_0x24096d['left']+0x1,'y':_0x116b79}),_0x2b9748=_0x28382c['posAtCoords']({'x':_0x24096d['right']-0x1,'y':_0x116b79});return null==_0x5d2644||null==_0x2b9748?_0x38e0c2:{'from':Math['max'](_0x38e0c2['from'],Math['min'](_0x5d2644,_0x2b9748)),'to':Math['min'](_0x38e0c2['to'],Math['max'](_0x5d2644,_0x2b9748))};}function _V(_0x44d94f,_0x19f2b0,_0x3f0f6c){if(_0x3f0f6c['to']<=_0x44d94f['viewport']['from']||_0x3f0f6c['from']>=_0x44d94f['viewport']['to'])return[];let _0x521761=Math['max'](_0x3f0f6c['from'],_0x44d94f['viewport']['from']),_0x3c4ec0=Math['min'](_0x3f0f6c['to'],_0x44d94f['viewport']['to']),_0x2f1276=_0x44d94f['textDirection']==YD['LTR'],_0x85a5bd=_0x44d94f['contentDOM'],_0x46a4f3=_0x85a5bd['getBoundingClientRect'](),_0x54234a=yV(_0x44d94f),_0x71a3e7=_0x85a5bd['querySelector']('.cm-line'),_0x3437f0=_0x71a3e7&&window['getComputedStyle'](_0x71a3e7),_0x34f3ec=_0x46a4f3['left']+(_0x3437f0?parseInt(_0x3437f0['paddingLeft'])+Math['min'](0x0,parseInt(_0x3437f0['textIndent'])):0x0),_0x27558f=_0x46a4f3['right']-(_0x3437f0?parseInt(_0x3437f0['paddingRight']):0x0),_0x8a80b7=Sj(_0x44d94f,_0x521761,0x1),_0xc0719b=Sj(_0x44d94f,_0x3c4ec0,-0x1),_0x19bd3e=_0x8a80b7['type']==yD['Text']?_0x8a80b7:null,_0x21a784=_0xc0719b['type']==yD['Text']?_0xc0719b:null;if(_0x19bd3e&&(_0x44d94f['lineWrapping']||_0x8a80b7['widgetLineBreaks'])&&(_0x19bd3e=vV(_0x44d94f,_0x521761,0x1,_0x19bd3e)),_0x21a784&&(_0x44d94f['lineWrapping']||_0xc0719b['widgetLineBreaks'])&&(_0x21a784=vV(_0x44d94f,_0x3c4ec0,-0x1,_0x21a784)),_0x19bd3e&&_0x21a784&&_0x19bd3e['from']==_0x21a784['from']&&_0x19bd3e['to']==_0x21a784['to'])return _0x3847c0(_0x1034b4(_0x3f0f6c['from'],_0x3f0f6c['to'],_0x19bd3e));{let _0x570b74=_0x19bd3e?_0x1034b4(_0x3f0f6c['from'],null,_0x19bd3e):_0x4c8c8e(_0x8a80b7,!0x1),_0xabbd0c=_0x21a784?_0x1034b4(null,_0x3f0f6c['to'],_0x21a784):_0x4c8c8e(_0xc0719b,!0x0),_0x3ca6a2=[];return(_0x19bd3e||_0x8a80b7)['to']<(_0x21a784||_0xc0719b)['from']-(_0x19bd3e&&_0x21a784?0x1:0x0)||_0x8a80b7['widgetLineBreaks']>0x1&&_0x570b74['bottom']+_0x44d94f['defaultLineHeight']/0x2<_0xabbd0c['top']?_0x3ca6a2['push'](_0x5b9a2a(_0x34f3ec,_0x570b74['bottom'],_0x27558f,_0xabbd0c['top'])):_0x570b74['bottom']<_0xabbd0c['top']&&_0x44d94f['elementAtHeight']((_0x570b74['bottom']+_0xabbd0c['top'])/0x2)['type']==yD['Text']&&(_0x570b74['bottom']=_0xabbd0c['top']=(_0x570b74['bottom']+_0xabbd0c['top'])/0x2),_0x3847c0(_0x570b74)['concat'](_0x3ca6a2)['concat'](_0x3847c0(_0xabbd0c));}function _0x5b9a2a(_0x2cf04a,_0x3205a3,_0x421598,_0x1d52d3){return new bV(_0x19f2b0,_0x2cf04a-_0x54234a['left'],_0x3205a3-_0x54234a['top'],Math['max'](0x0,_0x421598-_0x2cf04a),_0x1d52d3-_0x3205a3);}function _0x3847c0({top:_0x5e260e,bottom:_0x26ddbf,horizontal:_0x11d8b6}){let _0x9e3e5=[];for(let _0x8ac2dc=0x0;_0x8ac2dc<_0x11d8b6['length'];_0x8ac2dc+=0x2)_0x9e3e5['push'](_0x5b9a2a(_0x11d8b6[_0x8ac2dc],_0x5e260e,_0x11d8b6[_0x8ac2dc+0x1],_0x26ddbf));return _0x9e3e5;}function _0x1034b4(_0x145bc8,_0x1f50dc,_0x430957){let _0x42d56b=0x3b9aca00,_0x4f363d=-0x3b9aca00,_0x385b8a=[];function _0x3fdf61(_0x2f6acb,_0xb6c32c,_0x4239bb,_0x5c62ca,_0x5e0fe1){let _0x1ad5fa=_0x44d94f['coordsAtPos'](_0x2f6acb,_0x2f6acb==_0x430957['to']?-0x2:0x2),_0x1108ae=_0x44d94f['coordsAtPos'](_0x4239bb,_0x4239bb==_0x430957['from']?0x2:-0x2);_0x1ad5fa&&_0x1108ae&&(_0x42d56b=Math['min'](_0x1ad5fa['top'],_0x1108ae['top'],_0x42d56b),_0x4f363d=Math['max'](_0x1ad5fa['bottom'],_0x1108ae['bottom'],_0x4f363d),_0x5e0fe1==YD['LTR']?_0x385b8a['push'](_0x2f1276&&_0xb6c32c?_0x34f3ec:_0x1ad5fa['left'],_0x2f1276&&_0x5c62ca?_0x27558f:_0x1108ae['right']):_0x385b8a['push'](!_0x2f1276&&_0x5c62ca?_0x34f3ec:_0x1108ae['left'],!_0x2f1276&&_0xb6c32c?_0x27558f:_0x1ad5fa['right']));}let _0x268e8d=null!=_0x145bc8?_0x145bc8:_0x430957['from'],_0x2a5da5=null!=_0x1f50dc?_0x1f50dc:_0x430957['to'];for(let _0x2c6cb5 of _0x44d94f['visibleRanges'])if(_0x2c6cb5['to']>_0x268e8d&&_0x2c6cb5['from']<_0x2a5da5)for(let _0x3500b4=Math['max'](_0x2c6cb5['from'],_0x268e8d),_0x2f9776=Math['min'](_0x2c6cb5['to'],_0x2a5da5);;){let _0x3190dc=_0x44d94f['state']['doc']['lineAt'](_0x3500b4);for(let _0x29d602 of _0x44d94f['bidiSpans'](_0x3190dc)){let _0x10a145=_0x29d602['from']+_0x3190dc['from'],_0x39173e=_0x29d602['to']+_0x3190dc['from'];if(_0x10a145>=_0x2f9776)break;_0x39173e>_0x3500b4&&_0x3fdf61(Math['max'](_0x10a145,_0x3500b4),null==_0x145bc8&&_0x10a145<=_0x268e8d,Math['min'](_0x39173e,_0x2f9776),null==_0x1f50dc&&_0x39173e>=_0x2a5da5,_0x29d602['dir']);}if(_0x3500b4=_0x3190dc['to']+0x1,_0x3500b4>=_0x2f9776)break;}return 0x0==_0x385b8a['length']&&_0x3fdf61(_0x268e8d,null==_0x145bc8,_0x2a5da5,null==_0x1f50dc,_0x44d94f['textDirection']),{'top':_0x42d56b,'bottom':_0x4f363d,'horizontal':_0x385b8a};}function _0x4c8c8e(_0x1d9d3a,_0x12bfa3){let _0x469f14=_0x46a4f3['top']+(_0x12bfa3?_0x1d9d3a['top']:_0x1d9d3a['bottom']);return{'top':_0x469f14,'bottom':_0x469f14,'horizontal':[]};}}var EV=class{constructor(_0x420305,_0x304f3a){this['view']=_0x420305,this['layer']=_0x304f3a,this['drawn']=[],this['scaleX']=0x1,this['scaleY']=0x1,this['measureReq']={'read':this['measure']['bind'](this),'write':this['draw']['bind'](this)},this['dom']=_0x420305['scrollDOM']['appendChild'](document['createElement']('div')),this['dom']['classList']['add']('cm-layer'),_0x304f3a['above']&&this['dom']['classList']['add']('cm-layer-above'),_0x304f3a['class']&&this['dom']['classList']['add'](_0x304f3a['class']),this['scale'](),this['dom']['setAttribute']('aria-hidden','true'),this['setOrder'](_0x420305['state']),_0x420305['requestMeasure'](this['measureReq']),_0x304f3a['mount']&&_0x304f3a['mount'](this['dom'],_0x420305);}update(_0xd34160){_0xd34160['startState']['facet'](TV)!=_0xd34160['state']['facet'](TV)&&this['setOrder'](_0xd34160['state']),(this['layer']['update'](_0xd34160,this['dom'])||_0xd34160['geometryChanged'])&&(this['scale'](),_0xd34160['view']['requestMeasure'](this['measureReq']));}docViewUpdate(_0x2353df){!0x1!==this['layer']['updateOnDocViewUpdate']&&_0x2353df['requestMeasure'](this['measureReq']);}setOrder(_0x40f5ab){let _0xd0755c=0x0,_0x309f6d=_0x40f5ab['facet'](TV);for(;_0xd0755c<_0x309f6d['length']&&_0x309f6d[_0xd0755c]!=this['layer'];)_0xd0755c++;this['dom']['style']['zIndex']=String((this['layer']['above']?0x96:-0x1)-_0xd0755c);}['measure'](){return this['layer']['markers'](this['view']);}['scale'](){let {scaleX:_0x53f887,scaleY:_0x253ecd}=this['view'];_0x53f887==this['scaleX']&&_0x253ecd==this['scaleY']||(this['scaleX']=_0x53f887,this['scaleY']=_0x253ecd,this['dom']['style']['transform']='scale('+0x1/_0x53f887+',\x20'+0x1/_0x253ecd+')');}['draw'](_0x40933e){if(_0x40933e['length']!=this['drawn']['length']||_0x40933e['some']((_0x9d81eb,_0x1ee4db)=>{return _0x271d6b=_0x9d81eb,_0x1aa875=this['drawn'][_0x1ee4db],!(_0x271d6b['constructor']==_0x1aa875['constructor']&&_0x271d6b['eq'](_0x1aa875));var _0x271d6b,_0x1aa875;})){let _0x3d0b1a=this['dom']['firstChild'],_0x4a7256=0x0;for(let _0x26a92d of _0x40933e)_0x26a92d['update']&&_0x3d0b1a&&_0x26a92d['constructor']&&this['drawn'][_0x4a7256]['constructor']&&_0x26a92d['update'](_0x3d0b1a,this['drawn'][_0x4a7256])?(_0x3d0b1a=_0x3d0b1a['nextSibling'],_0x4a7256++):this['dom']['insertBefore'](_0x26a92d['draw'](),_0x3d0b1a);for(;_0x3d0b1a;){let _0x47a58a=_0x3d0b1a['nextSibling'];_0x3d0b1a['remove'](),_0x3d0b1a=_0x47a58a;}this['drawn']=_0x40933e,fD['webkit']&&(this['dom']['style']['display']=this['dom']['firstChild']?'':'none');}}destroy(){this['layer']['destroy']&&this['layer']['destroy'](this['dom'],this['view']),this['dom']['remove']();}};const TV=LL['define']();function AV(_0x30b9c4){return[LQ['define'](_0x30b35e=>new EV(_0x30b35e,_0x30b9c4)),TV['of'](_0x30b9c4)];}const SV=LL['define']({'combine':_0x22646f=>T$(_0x22646f,{'cursorBlinkRate':0x4b0,'drawRangeCursor':!0x0,'iosSelectionHandles':!0x0},{'cursorBlinkRate':(_0x3feed6,_0x5546c0)=>Math['min'](_0x3feed6,_0x5546c0),'drawRangeCursor':(_0x2009ad,_0x3eba95)=>_0x2009ad||_0x3eba95})});function IV(_0x2741d2={}){return[SV['of'](_0x2741d2),xV,RV,PV,SQ['of'](!0x0)];}function kV(_0x1d1516){return _0x1d1516['startState']['facet'](SV)!=_0x1d1516['state']['facet'](SV);}const xV=AV({'above':!0x0,'markers'(_0xd2c15a){let {state:_0x588eba}=_0xd2c15a,_0x461e50=_0x588eba['facet'](SV),_0x47210b=[];for(let _0x1fab52 of _0x588eba['selection']['ranges']){let _0x1c1c62=_0x1fab52==_0x588eba['selection']['main'];if(_0x1fab52['empty']||_0x461e50['drawRangeCursor']&&!(_0x1c1c62&&fD['ios']&&_0x461e50['iosSelectionHandles'])){let _0x23f460=_0x1c1c62?'cm-cursor\x20cm-cursor-primary':'cm-cursor\x20cm-cursor-secondary',_0x2c154c=_0x1fab52['empty']?_0x1fab52:PL['cursor'](_0x1fab52['head'],_0x1fab52['assoc']);for(let _0x216846 of bV['forRange'](_0xd2c15a,_0x23f460,_0x2c154c))_0x47210b['push'](_0x216846);}}return _0x47210b;},'update'(_0x114291,_0x567f8e){_0x114291['transactions']['some'](_0x3a1837=>_0x3a1837['selection'])&&(_0x567f8e['style']['animationName']='cm-blink'==_0x567f8e['style']['animationName']?'cm-blink2':'cm-blink');let _0x2f6b93=kV(_0x114291);return _0x2f6b93&&CV(_0x114291['state'],_0x567f8e),_0x114291['docChanged']||_0x114291['selectionSet']||_0x2f6b93;},'mount'(_0x226839,_0x2376b0){CV(_0x2376b0['state'],_0x226839);},'class':'cm-cursorLayer'});function CV(_0xa5087,_0x11164f){_0x11164f['style']['animationDuration']=_0xa5087['facet'](SV)['cursorBlinkRate']+'ms';}const RV=AV({'above':!0x1,'markers'(_0x39663e){let _0x19833b=[],{main:_0x4d4287,ranges:_0x556c7a}=_0x39663e['state']['selection'];for(let _0xbab258 of _0x556c7a)if(!_0xbab258['empty']){for(let _0x316258 of bV['forRange'](_0x39663e,'cm-selectionBackground',_0xbab258))_0x19833b['push'](_0x316258);}if(fD['ios']&&!_0x4d4287['empty']&&_0x39663e['state']['facet'](SV)['iosSelectionHandles']){for(let _0x54ee25 of bV['forRange'](_0x39663e,'cm-selectionHandle\x20cm-selectionHandle-start',PL['cursor'](_0x4d4287['from'],0x1)))_0x19833b['push'](_0x54ee25);for(let _0x18d615 of bV['forRange'](_0x39663e,'cm-selectionHandle\x20cm-selectionHandle-end',PL['cursor'](_0x4d4287['to'],0x1)))_0x19833b['push'](_0x18d615);}return _0x19833b;},'update':(_0x2c31d7,_0x3fa228)=>_0x2c31d7['docChanged']||_0x2c31d7['selectionSet']||_0x2c31d7['viewportChanged']||kV(_0x2c31d7),'class':'cm-selectionLayer'}),PV=qL['highest'](oV['theme']({'.cm-line':{'&\x20::selection,\x20&::selection':{'backgroundColor':'transparent\x20!important'},'caretColor':'transparent\x20!important'},'.cm-content':{'caretColor':'transparent\x20!important','&\x20:focus':{'caretColor':'initial\x20!important','&::selection,\x20&\x20::selection':{'backgroundColor':'Highlight\x20!important'}}}})),NV=u$['define']({'map':(_0x481e94,_0x43b95b)=>null==_0x481e94?null:_0x43b95b['mapPos'](_0x481e94)}),MV=BL['define']({'create':()=>null,'update':(_0x1e1206,_0x2519df)=>(null!=_0x1e1206&&(_0x1e1206=_0x2519df['changes']['mapPos'](_0x1e1206)),_0x2519df['effects']['reduce']((_0xa01ab4,_0x1ad4a8)=>_0x1ad4a8['is'](NV)?_0x1ad4a8['value']:_0xa01ab4,_0x1e1206))}),LV=LQ['fromClass'](class{constructor(_0x2e9a84){this['view']=_0x2e9a84,this['cursor']=null,this['measureReq']={'read':this['readPos']['bind'](this),'write':this['drawCursor']['bind'](this)};}update(_0x8b53c0){var _0x3382d7;let _0x19fe5d=_0x8b53c0['state']['field'](MV);null==_0x19fe5d?null!=this['cursor']&&(null===(_0x3382d7=this['cursor'])||void 0x0===_0x3382d7||_0x3382d7['remove'](),this['cursor']=null):(this['cursor']||(this['cursor']=this['view']['scrollDOM']['appendChild'](document['createElement']('div')),this['cursor']['className']='cm-dropCursor'),(_0x8b53c0['startState']['field'](MV)!=_0x19fe5d||_0x8b53c0['docChanged']||_0x8b53c0['geometryChanged'])&&this['view']['requestMeasure'](this['measureReq']));}['readPos'](){let {view:_0x50d964}=this,_0x22d678=_0x50d964['state']['field'](MV),_0x1d4fd9=null!=_0x22d678&&_0x50d964['coordsAtPos'](_0x22d678);if(!_0x1d4fd9)return null;let _0x33a084=_0x50d964['scrollDOM']['getBoundingClientRect']();return{'left':_0x1d4fd9['left']-_0x33a084['left']+_0x50d964['scrollDOM']['scrollLeft']*_0x50d964['scaleX'],'top':_0x1d4fd9['top']-_0x33a084['top']+_0x50d964['scrollDOM']['scrollTop']*_0x50d964['scaleY'],'height':_0x1d4fd9['bottom']-_0x1d4fd9['top']};}['drawCursor'](_0x13b895){if(this['cursor']){let {scaleX:_0x4d446b,scaleY:_0x5c925b}=this['view'];_0x13b895?(this['cursor']['style']['left']=_0x13b895['left']/_0x4d446b+'px',this['cursor']['style']['top']=_0x13b895['top']/_0x5c925b+'px',this['cursor']['style']['height']=_0x13b895['height']/_0x5c925b+'px'):this['cursor']['style']['left']='-100000px';}}destroy(){this['cursor']&&this['cursor']['remove']();}setDropPos(_0x38b1a9){this['view']['state']['field'](MV)!=_0x38b1a9&&this['view']['dispatch']({'effects':NV['of'](_0x38b1a9)});}},{'eventObservers':{'dragover'(_0x57a4a2){this['setDropPos'](this['view']['posAtCoords']({'x':_0x57a4a2['clientX'],'y':_0x57a4a2['clientY']}));},'dragleave'(_0x23c6b6){_0x23c6b6['target']!=this['view']['contentDOM']&&this['view']['contentDOM']['contains'](_0x23c6b6['relatedTarget'])||this['setDropPos'](null);},'dragend'(){this['setDropPos'](null);},'drop'(){this['setDropPos'](null);}}});function $V(){return[MV,LV];}function DV(_0x344758,_0x1c96f3,_0x4b84de,_0xd2a7fd,_0x1e80d6){_0x1c96f3['lastIndex']=0x0;for(let _0xc144a0,_0x2d4864=_0x344758['iterRange'](_0x4b84de,_0xd2a7fd),_0x322259=_0x4b84de;!_0x2d4864['next']()['done'];_0x322259+=_0x2d4864['value']['length'])if(!_0x2d4864['lineBreak']){for(;_0xc144a0=_0x1c96f3['exec'](_0x2d4864['value']);)_0x1e80d6(_0x322259+_0xc144a0['index'],_0xc144a0);}}var QV=class{constructor(_0x266a22){const {regexp:_0x490ea9,decoration:_0x548bd2,decorate:_0x3468f8,boundary:_0xc4b184,maxLength:_0x4eb7eb=0x3e8}=_0x266a22;if(!_0x490ea9['global'])throw new RangeError('The\x20regular\x20expression\x20given\x20to\x20MatchDecorator\x20should\x20have\x20its\x20\x27g\x27\x20flag\x20set');if(this['regexp']=_0x490ea9,_0x3468f8)this['addMatch']=(_0x32c9dc,_0x56944a,_0x4125f2,_0x3345a1)=>_0x3468f8(_0x3345a1,_0x4125f2,_0x4125f2+_0x32c9dc[0x0]['length'],_0x32c9dc,_0x56944a);else{if('function'==typeof _0x548bd2)this['addMatch']=(_0xb7ffcb,_0x5e9d26,_0x137cee,_0x35d5f9)=>{let _0x3a49fe=_0x548bd2(_0xb7ffcb,_0x5e9d26,_0x137cee);_0x3a49fe&&_0x35d5f9(_0x137cee,_0x137cee+_0xb7ffcb[0x0]['length'],_0x3a49fe);};else{if(!_0x548bd2)throw new RangeError('Either\x20\x27decorate\x27\x20or\x20\x27decoration\x27\x20should\x20be\x20provided\x20to\x20MatchDecorator');this['addMatch']=(_0x5dc694,_0x5719b6,_0x3ee57f,_0x5496d2)=>_0x5496d2(_0x3ee57f,_0x3ee57f+_0x5dc694[0x0]['length'],_0x548bd2);}}this['boundary']=_0xc4b184,this['maxLength']=_0x4eb7eb;}createDeco(_0x5b56cb){let _0xbbe5f0=new R$(),_0x242bb7=_0xbbe5f0['add']['bind'](_0xbbe5f0);for(let {from:_0x4f74e7,to:_0x2f2f93}of function(_0x5e98a3,_0x10583a){let _0x6f34b7=_0x5e98a3['visibleRanges'];if(0x1==_0x6f34b7['length']&&_0x6f34b7[0x0]['from']==_0x5e98a3['viewport']['from']&&_0x6f34b7[0x0]['to']==_0x5e98a3['viewport']['to'])return _0x6f34b7;let _0x5e060b=[];for(let {from:_0x222974,to:_0x49d72f}of _0x6f34b7)_0x222974=Math['max'](_0x5e98a3['state']['doc']['lineAt'](_0x222974)['from'],_0x222974-_0x10583a),_0x49d72f=Math['min'](_0x5e98a3['state']['doc']['lineAt'](_0x49d72f)['to'],_0x49d72f+_0x10583a),_0x5e060b['length']&&_0x5e060b[_0x5e060b['length']-0x1]['to']>=_0x222974?_0x5e060b[_0x5e060b['length']-0x1]['to']=_0x49d72f:_0x5e060b['push']({'from':_0x222974,'to':_0x49d72f});return _0x5e060b;}(_0x5b56cb,this['maxLength']))DV(_0x5b56cb['state']['doc'],this['regexp'],_0x4f74e7,_0x2f2f93,(_0x3c1604,_0x4651a5)=>this['addMatch'](_0x4651a5,_0x5b56cb,_0x3c1604,_0x242bb7));return _0xbbe5f0['finish']();}updateDeco(_0x321800,_0x1c28f2){let _0x3d9ff7=0x3b9aca00,_0x2169f7=-0x1;return _0x321800['docChanged']&&_0x321800['changes']['iterChanges']((_0x5b03ea,_0xee5cdc,_0x11f870,_0x56cf08)=>{_0x56cf08>=_0x321800['view']['viewport']['from']&&_0x11f870<=_0x321800['view']['viewport']['to']&&(_0x3d9ff7=Math['min'](_0x11f870,_0x3d9ff7),_0x2169f7=Math['max'](_0x56cf08,_0x2169f7));}),_0x321800['viewportMoved']||_0x2169f7-_0x3d9ff7>0x3e8?this['createDeco'](_0x321800['view']):_0x2169f7>-0x1?this['updateRange'](_0x321800['view'],_0x1c28f2['map'](_0x321800['changes']),_0x3d9ff7,_0x2169f7):_0x1c28f2;}updateRange(_0x3eabf0,_0x5844f9,_0xed6e34,_0x32df0f){for(let _0x21576b of _0x3eabf0['visibleRanges']){let _0x4ae631=Math['max'](_0x21576b['from'],_0xed6e34),_0x12426f=Math['min'](_0x21576b['to'],_0x32df0f);if(_0x12426f>=_0x4ae631){let _0xb40ff2=_0x3eabf0['state']['doc']['lineAt'](_0x4ae631),_0x56c890=_0xb40ff2['to']<_0x12426f?_0x3eabf0['state']['doc']['lineAt'](_0x12426f):_0xb40ff2,_0x45bc61=Math['max'](_0x21576b['from'],_0xb40ff2['from']),_0x4852ec=Math['min'](_0x21576b['to'],_0x56c890['to']);if(this['boundary']){for(;_0x4ae631>_0xb40ff2['from'];_0x4ae631--)if(this['boundary']['test'](_0xb40ff2['text'][_0x4ae631-0x1-_0xb40ff2['from']])){_0x45bc61=_0x4ae631;break;}for(;_0x12426f<_0x56c890['to'];_0x12426f++)if(this['boundary']['test'](_0x56c890['text'][_0x12426f-_0x56c890['from']])){_0x4852ec=_0x12426f;break;}}let _0x43dd80,_0x19416a=[],_0x5749b0=(_0x243b38,_0x3c5345,_0x48bada)=>_0x19416a['push'](_0x48bada['range'](_0x243b38,_0x3c5345));if(_0xb40ff2==_0x56c890){for(this['regexp']['lastIndex']=_0x45bc61-_0xb40ff2['from'];(_0x43dd80=this['regexp']['exec'](_0xb40ff2['text']))&&_0x43dd80['index']<_0x4852ec-_0xb40ff2['from'];)this['addMatch'](_0x43dd80,_0x3eabf0,_0x43dd80['index']+_0xb40ff2['from'],_0x5749b0);}else DV(_0x3eabf0['state']['doc'],this['regexp'],_0x45bc61,_0x4852ec,(_0x12e0eb,_0x3d2583)=>this['addMatch'](_0x3d2583,_0x3eabf0,_0x12e0eb,_0x5749b0));_0x5844f9=_0x5844f9['update']({'filterFrom':_0x45bc61,'filterTo':_0x4852ec,'filter':(_0xb32792,_0x1d7542)=>_0xb32792<_0x45bc61||_0x1d7542>_0x4852ec,'add':_0x19416a});}}return _0x5844f9;}};const jV=null!=/x/['unicode']?'gu':'g',UV=new RegExp('[\x00-\x08\x0a-\x1f\x7f-\u009f­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\ufeff￹-￼]',jV),VV={0x0:'null',0x7:'bell',0x8:'backspace',0xa:'newline',0xb:'vertical\x20tab',0xd:'carriage\x20return',0x1b:'escape',0x200b:'zero\x20width\x20space',0x200c:'zero\x20width\x20non-joiner',0x200d:'zero\x20width\x20joiner',0x200e:'left-to-right\x20mark',0x200f:'right-to-left\x20mark',0x2028:'line\x20separator',0x202d:'left-to-right\x20override',0x202e:'right-to-left\x20override',0x2066:'left-to-right\x20isolate',0x2067:'right-to-left\x20isolate',0x2069:'pop\x20directional\x20isolate',0x2029:'paragraph\x20separator',0xfeff:'zero\x20width\x20no-break\x20space',0xfffc:'object\x20replacement'};let BV=null;const HV=LL['define']({'combine'(_0x4b5209){let _0x2a7d73=T$(_0x4b5209,{'render':null,'specialChars':UV,'addSpecialChars':null});return(_0x2a7d73['replaceTabs']=!(function(){var _0x3297f6;if(null==BV&&'undefined'!=typeof document&&document['body']){let _0x3645ff=document['body']['style'];BV=null!=(null!==(_0x3297f6=_0x3645ff['tabSize'])&&void 0x0!==_0x3297f6?_0x3297f6:_0x3645ff['MozTabSize']);}return BV||!0x1;}()))&&(_0x2a7d73['specialChars']=new RegExp('\x09|'+_0x2a7d73['specialChars']['source'],jV)),_0x2a7d73['addSpecialChars']&&(_0x2a7d73['specialChars']=new RegExp(_0x2a7d73['specialChars']['source']+'|'+_0x2a7d73['addSpecialChars']['source'],jV)),_0x2a7d73;}});function FV(_0x3a0a63={}){return[HV['of'](_0x3a0a63),ZV||(ZV=LQ['fromClass'](class{constructor(_0x47ae66){this['view']=_0x47ae66,this['decorations']=vD['none'],this['decorationCache']=Object['create'](null),this['decorator']=this['makeDecorator'](_0x47ae66['state']['facet'](HV)),this['decorations']=this['decorator']['createDeco'](_0x47ae66);}makeDecorator(_0x1d21d9){return new QV({'regexp':_0x1d21d9['specialChars'],'decoration':(_0x9381d9,_0xf62dee,_0x1519cb)=>{let {doc:_0xfa053d}=_0xf62dee['state'],_0x5c275f=wL(_0x9381d9[0x0],0x0);if(0x9==_0x5c275f){let _0x1e865b=_0xfa053d['lineAt'](_0x1519cb),_0x23b06a=_0xf62dee['state']['tabSize'],_0x1d4084=B$(_0x1e865b['text'],_0x23b06a,_0x1519cb-_0x1e865b['from']);return vD['replace']({'widget':new XV((_0x23b06a-_0x1d4084%_0x23b06a)*this['view']['defaultCharacterWidth']/this['view']['scaleX'])});}return this['decorationCache'][_0x5c275f]||(this['decorationCache'][_0x5c275f]=vD['replace']({'widget':new GV(_0x1d21d9,_0x5c275f)}));},'boundary':_0x1d21d9['replaceTabs']?void 0x0:/[^]/});}update(_0x3853c3){let _0x1f5e18=_0x3853c3['state']['facet'](HV);_0x3853c3['startState']['facet'](HV)!=_0x1f5e18?(this['decorator']=this['makeDecorator'](_0x1f5e18),this['decorations']=this['decorator']['createDeco'](_0x3853c3['view'])):this['decorations']=this['decorator']['updateDeco'](_0x3853c3,this['decorations']);}},{'decorations':_0x502bd4=>_0x502bd4['decorations']}))];}let ZV=null;var GV=class extends bD{constructor(_0x588b4b,_0x521ca2){super(),this['options']=_0x588b4b,this['code']=_0x521ca2;}['eq'](_0x5754b7){return _0x5754b7['code']==this['code'];}toDOM(_0x24db78){let _0x5e1de3=function(_0x448248){return _0x448248>=0x20?'•':0xa==_0x448248?'␤':String['fromCharCode'](0x2400+_0x448248);}(this['code']),_0x561c1a=_0x24db78['state']['phrase']('Control\x20character')+'\x20'+(VV[this['code']]||'0x'+this['code']['toString'](0x10)),_0x88960d=this['options']['render']&&this['options']['render'](this['code'],_0x561c1a,_0x5e1de3);if(_0x88960d)return _0x88960d;let _0x55752a=document['createElement']('span');return _0x55752a['textContent']=_0x5e1de3,_0x55752a['title']=_0x561c1a,_0x55752a['setAttribute']('aria-label',_0x561c1a),_0x55752a['className']='cm-specialChar',_0x55752a;}ignoreEvent(){return!0x1;}},XV=class extends bD{constructor(_0x58c924){super(),this['width']=_0x58c924;}['eq'](_0x2772ec){return _0x2772ec['width']==this['width'];}toDOM(){let _0x222539=document['createElement']('span');return _0x222539['textContent']='\x09',_0x222539['className']='cm-tab',_0x222539['style']['width']=this['width']+'px',_0x222539;}ignoreEvent(){return!0x1;}};function qV(){return zV;}const WV=vD['line']({'class':'cm-activeLine'}),zV=LQ['fromClass'](class{constructor(_0x9ccf8d){this['decorations']=this['getDeco'](_0x9ccf8d);}update(_0x27012a){(_0x27012a['docChanged']||_0x27012a['selectionSet'])&&(this['decorations']=this['getDeco'](_0x27012a['view']));}getDeco(_0x4f873e){let _0x251a9f=-0x1,_0x9b34ce=[];for(let _0x2c9e30 of _0x4f873e['state']['selection']['ranges']){let _0x59489c=_0x4f873e['lineBlockAt'](_0x2c9e30['head']);_0x59489c['from']>_0x251a9f&&(_0x9b34ce['push'](WV['range'](_0x59489c['from'])),_0x251a9f=_0x59489c['from']);}return vD['set'](_0x9b34ce);}},{'decorations':_0x2ac00c=>_0x2ac00c['decorations']}),YV=0x7d0;function KV(_0x4d8e9d,_0x2db629){let _0x4a851e=_0x4d8e9d['posAtCoords']({'x':_0x2db629['clientX'],'y':_0x2db629['clientY']},!0x1),_0x1a2889=_0x4d8e9d['state']['doc']['lineAt'](_0x4a851e),_0x4d00cb=_0x4a851e-_0x1a2889['from'],_0x1225cc=_0x4d00cb>YV?-0x1:_0x4d00cb==_0x1a2889['length']?function(_0x25f03f,_0xe18c0f){let _0x395300=_0x25f03f['coordsAtPos'](_0x25f03f['viewport']['from']);return _0x395300?Math['round'](Math['abs']((_0x395300['left']-_0xe18c0f)/_0x25f03f['defaultCharacterWidth'])):-0x1;}(_0x4d8e9d,_0x2db629['clientX']):B$(_0x1a2889['text'],_0x4d8e9d['state']['tabSize'],_0x4a851e-_0x1a2889['from']);return{'line':_0x1a2889['number'],'col':_0x1225cc,'off':_0x4d00cb};}function JV(_0x1f7f05,_0x4d96e9){let _0x44f50c=KV(_0x1f7f05,_0x4d96e9),_0x45a39d=_0x1f7f05['state']['selection'];return _0x44f50c?{'update'(_0x2a216c){if(_0x2a216c['docChanged']){let _0x21b7ab=_0x2a216c['changes']['mapPos'](_0x2a216c['startState']['doc']['line'](_0x44f50c['line'])['from']),_0x2379f5=_0x2a216c['state']['doc']['lineAt'](_0x21b7ab);_0x44f50c={'line':_0x2379f5['number'],'col':_0x44f50c['col'],'off':Math['min'](_0x44f50c['off'],_0x2379f5['length'])},_0x45a39d=_0x45a39d['map'](_0x2a216c['changes']);}},'get'(_0x4f8a11,_0x35ae88,_0x48278a){let _0x2835bc=KV(_0x1f7f05,_0x4f8a11);if(!_0x2835bc)return _0x45a39d;let _0x201144=function(_0x1ed84a,_0x4f27d0,_0x413dce){let _0x46d858=Math['min'](_0x4f27d0['line'],_0x413dce['line']),_0xc856e=Math['max'](_0x4f27d0['line'],_0x413dce['line']),_0x5b4a08=[];if(_0x4f27d0['off']>YV||_0x413dce['off']>YV||_0x4f27d0['col']<0x0||_0x413dce['col']<0x0){let _0x564ba1=Math['min'](_0x4f27d0['off'],_0x413dce['off']),_0x309d2b=Math['max'](_0x4f27d0['off'],_0x413dce['off']);for(let _0x5b6fcc=_0x46d858;_0x5b6fcc<=_0xc856e;_0x5b6fcc++){let _0x5a6a0d=_0x1ed84a['doc']['line'](_0x5b6fcc);_0x5a6a0d['length']<=_0x309d2b&&_0x5b4a08['push'](PL['range'](_0x5a6a0d['from']+_0x564ba1,_0x5a6a0d['to']+_0x309d2b));}}else{let _0x1aa356=Math['min'](_0x4f27d0['col'],_0x413dce['col']),_0x1b3035=Math['max'](_0x4f27d0['col'],_0x413dce['col']);for(let _0x37e01e=_0x46d858;_0x37e01e<=_0xc856e;_0x37e01e++){let _0x52f84d=_0x1ed84a['doc']['line'](_0x37e01e),_0x2349f4=H$(_0x52f84d['text'],_0x1aa356,_0x1ed84a['tabSize'],!0x0);if(_0x2349f4<0x0)_0x5b4a08['push'](PL['cursor'](_0x52f84d['to']));else{let _0x1dbdb5=H$(_0x52f84d['text'],_0x1b3035,_0x1ed84a['tabSize']);_0x5b4a08['push'](PL['range'](_0x52f84d['from']+_0x2349f4,_0x52f84d['from']+_0x1dbdb5));}}}return _0x5b4a08;}(_0x1f7f05['state'],_0x44f50c,_0x2835bc);return _0x201144['length']?_0x48278a?PL['create'](_0x201144['concat'](_0x45a39d['ranges'])):PL['create'](_0x201144):_0x45a39d;}}:null;}function tB(_0x4afd4c){let _0x208cd4=(null==_0x4afd4c?void 0x0:_0x4afd4c['eventFilter'])||(_0x12e4f4=>_0x12e4f4['altKey']&&0x0==_0x12e4f4['button']);return oV['mouseSelectionStyle']['of']((_0x4cdc11,_0x509bda)=>_0x208cd4(_0x509bda)?JV(_0x4cdc11,_0x509bda):null);}const eB={'Alt':[0x12,_0x170151=>!!_0x170151['altKey']],'Control':[0x11,_0x6df317=>!!_0x6df317['ctrlKey']],'Shift':[0x10,_0x10f5ae=>!!_0x10f5ae['shiftKey']],'Meta':[0x5b,_0x2156f6=>!!_0x2156f6['metaKey']]},iB={'style':'cursor:\x20crosshair'};function sB(_0x5ba284={}){let [_0x55a1cd,_0x5057f6]=eB[_0x5ba284['key']||'Alt'],_0x5948b1=LQ['fromClass'](class{constructor(_0x183ee8){this['view']=_0x183ee8,this['isDown']=!0x1;}set(_0x10a7e1){this['isDown']!=_0x10a7e1&&(this['isDown']=_0x10a7e1,this['view']['update']([]));}},{'eventObservers':{'keydown'(_0x3cbfee){this['set'](_0x3cbfee['keyCode']==_0x55a1cd||_0x5057f6(_0x3cbfee));},'keyup'(_0x29e604){_0x29e604['keyCode']!=_0x55a1cd&&_0x5057f6(_0x29e604)||this['set'](!0x1);},'mousemove'(_0x5bb23e){this['set'](_0x5057f6(_0x5bb23e));}}});return[_0x5948b1,oV['contentAttributes']['of'](_0x3139b1=>{var _0x5b8e9f;return(null===(_0x5b8e9f=_0x3139b1['plugin'](_0x5948b1))||void 0x0===_0x5b8e9f?void 0x0:_0x5b8e9f['isDown'])?iB:null;})];}const nB='-10000px';var rB=class{constructor(_0x5ac02d,_0x3c8b62,_0x58f7cc,_0x45c8c0){this['facet']=_0x3c8b62,this['createTooltipView']=_0x58f7cc,this['removeTooltipView']=_0x45c8c0,this['input']=_0x5ac02d['state']['facet'](_0x3c8b62),this['tooltips']=this['input']['filter'](t=>t);let _0x3b38cd=null;this['tooltipViews']=this['tooltips']['map'](t=>_0x3b38cd=_0x58f7cc(t,_0x3b38cd));}update(_0x1af2d1,_0x29ccd1){var _0x135bf4;let _0x7a1179=_0x1af2d1['state']['facet'](this['facet']),_0x1ead99=_0x7a1179['filter'](_0x4f80ac=>_0x4f80ac);if(_0x7a1179===this['input']){for(let t of this['tooltipViews'])t['update']&&t['update'](_0x1af2d1);return!0x1;}let _0x4a08ab=[],_0x34d4a1=_0x29ccd1?[]:null;for(let _0x1d17d8=0x0;_0x1d17d8<_0x1ead99['length'];_0x1d17d8++){let _0x914e84=_0x1ead99[_0x1d17d8],_0xf7449f=-0x1;if(_0x914e84){for(let _0x345386=0x0;_0x345386<this['tooltips']['length'];_0x345386++){let _0x4a1fb0=this['tooltips'][_0x345386];_0x4a1fb0&&_0x4a1fb0['create']==_0x914e84['create']&&(_0xf7449f=_0x345386);}if(_0xf7449f<0x0)_0x4a08ab[_0x1d17d8]=this['createTooltipView'](_0x914e84,_0x1d17d8?_0x4a08ab[_0x1d17d8-0x1]:null),_0x34d4a1&&(_0x34d4a1[_0x1d17d8]=!!_0x914e84['above']);else{let _0x3f2d93=_0x4a08ab[_0x1d17d8]=this['tooltipViews'][_0xf7449f];_0x34d4a1&&(_0x34d4a1[_0x1d17d8]=_0x29ccd1[_0xf7449f]),_0x3f2d93['update']&&_0x3f2d93['update'](_0x1af2d1);}}}for(let t of this['tooltipViews'])_0x4a08ab['indexOf'](t)<0x0&&(this['removeTooltipView'](t),null===(_0x135bf4=t['destroy'])||void 0x0===_0x135bf4||_0x135bf4['call'](t));return _0x29ccd1&&(_0x34d4a1['forEach']((_0x194cce,_0x489f3b)=>_0x29ccd1[_0x489f3b]=_0x194cce),_0x29ccd1['length']=_0x34d4a1['length']),this['input']=_0x7a1179,this['tooltips']=_0x1ead99,this['tooltipViews']=_0x4a08ab,!0x0;}};function oB(_0x434d4d){let _0x3380c3=_0x434d4d['dom']['ownerDocument']['documentElement'];return{'top':0x0,'left':0x0,'bottom':_0x3380c3['clientHeight'],'right':_0x3380c3['clientWidth']};}const aB=LL['define']({'combine':_0x20ca4f=>{var _0x7b058f,_0x2a6f2e,_0x5b9474;return{'position':fD['ios']?'absolute':(null===(_0x7b058f=_0x20ca4f['find'](_0x57f2ee=>_0x57f2ee['position']))||void 0x0===_0x7b058f?void 0x0:_0x7b058f['position'])||'fixed','parent':(null===(_0x2a6f2e=_0x20ca4f['find'](_0x36187c=>_0x36187c['parent']))||void 0x0===_0x2a6f2e?void 0x0:_0x2a6f2e['parent'])||null,'tooltipSpace':(null===(_0x5b9474=_0x20ca4f['find'](_0x21f0d6=>_0x21f0d6['tooltipSpace']))||void 0x0===_0x5b9474?void 0x0:_0x5b9474['tooltipSpace'])||oB};}}),cB=new WeakMap(),lB=LQ['fromClass'](class{constructor(_0x1b5204){this['view']=_0x1b5204,this['above']=[],this['inView']=!0x0,this['madeAbsolute']=!0x1,this['lastTransaction']=0x0,this['measureTimeout']=-0x1;let _0x3afe9e=_0x1b5204['state']['facet'](aB);this['position']=_0x3afe9e['position'],this['parent']=_0x3afe9e['parent'],this['classes']=_0x1b5204['themeClasses'],this['createContainer'](),this['measureReq']={'read':this['readMeasure']['bind'](this),'write':this['writeMeasure']['bind'](this),'key':this},this['resizeObserver']='function'==typeof ResizeObserver?new ResizeObserver(()=>this['measureSoon']()):null,this['manager']=new rB(_0x1b5204,fB,(t,_0x29e303)=>this['createTooltip'](t,_0x29e303),t=>{this['resizeObserver']&&this['resizeObserver']['unobserve'](t['dom']),t['dom']['remove']();}),this['above']=this['manager']['tooltips']['map'](t=>!!t['above']),this['intersectionObserver']='function'==typeof IntersectionObserver?new IntersectionObserver(_0x4a757f=>{Date['now']()>this['lastTransaction']-0x32&&_0x4a757f['length']>0x0&&_0x4a757f[_0x4a757f['length']-0x1]['intersectionRatio']<0x1&&this['measureSoon']();},{'threshold':[0x1]}):null,this['observeIntersection'](),_0x1b5204['win']['addEventListener']('resize',this['measureSoon']=this['measureSoon']['bind'](this)),this['maybeMeasure']();}createContainer(){this['parent']?(this['container']=document['createElement']('div'),this['container']['style']['position']='relative',this['container']['className']=this['view']['themeClasses'],this['parent']['appendChild'](this['container'])):this['container']=this['view']['dom'];}observeIntersection(){if(this['intersectionObserver']){this['intersectionObserver']['disconnect']();for(let _0x262e76 of this['manager']['tooltipViews'])this['intersectionObserver']['observe'](_0x262e76['dom']);}}['measureSoon'](){this['measureTimeout']<0x0&&(this['measureTimeout']=setTimeout(()=>{this['measureTimeout']=-0x1,this['maybeMeasure']();},0x32));}update(_0x4f3257){_0x4f3257['transactions']['length']&&(this['lastTransaction']=Date['now']());let _0x2f51a1=this['manager']['update'](_0x4f3257,this['above']);_0x2f51a1&&this['observeIntersection']();let _0x28e46a=_0x2f51a1||_0x4f3257['geometryChanged'],_0x1e59a2=_0x4f3257['state']['facet'](aB);if(_0x1e59a2['position']!=this['position']&&!this['madeAbsolute']){this['position']=_0x1e59a2['position'];for(let t of this['manager']['tooltipViews'])t['dom']['style']['position']=this['position'];_0x28e46a=!0x0;}if(_0x1e59a2['parent']!=this['parent']){this['parent']&&this['container']['remove'](),this['parent']=_0x1e59a2['parent'],this['createContainer']();for(let t of this['manager']['tooltipViews'])this['container']['appendChild'](t['dom']);_0x28e46a=!0x0;}else this['parent']&&this['view']['themeClasses']!=this['classes']&&(this['classes']=this['container']['className']=this['view']['themeClasses']);_0x28e46a&&this['maybeMeasure']();}createTooltip(_0x2b5c19,_0x8d9983){let _0x156e3f=_0x2b5c19['create'](this['view']),_0x278807=_0x8d9983?_0x8d9983['dom']:null;if(_0x156e3f['dom']['classList']['add']('cm-tooltip'),_0x2b5c19['arrow']&&!_0x156e3f['dom']['querySelector']('.cm-tooltip\x20>\x20.cm-tooltip-arrow')){let _0x5b8c13=document['createElement']('div');_0x5b8c13['className']='cm-tooltip-arrow',_0x156e3f['dom']['appendChild'](_0x5b8c13);}return _0x156e3f['dom']['style']['position']=this['position'],_0x156e3f['dom']['style']['top']=nB,_0x156e3f['dom']['style']['left']='0px',this['container']['insertBefore'](_0x156e3f['dom'],_0x278807),_0x156e3f['mount']&&_0x156e3f['mount'](this['view']),this['resizeObserver']&&this['resizeObserver']['observe'](_0x156e3f['dom']),_0x156e3f;}destroy(){var _0x10127c,_0x5e0050,_0x468f0b;this['view']['win']['removeEventListener']('resize',this['measureSoon']);for(let _0x3dd386 of this['manager']['tooltipViews'])_0x3dd386['dom']['remove'](),null===(_0x10127c=_0x3dd386['destroy'])||void 0x0===_0x10127c||_0x10127c['call'](_0x3dd386);this['parent']&&this['container']['remove'](),null===(_0x5e0050=this['resizeObserver'])||void 0x0===_0x5e0050||_0x5e0050['disconnect'](),null===(_0x468f0b=this['intersectionObserver'])||void 0x0===_0x468f0b||_0x468f0b['disconnect'](),clearTimeout(this['measureTimeout']);}['readMeasure'](){let _0x210b06=0x1,_0x2cba1b=0x1,_0xebcb23=!0x1;if('fixed'==this['position']&&this['manager']['tooltipViews']['length']){let {dom:_0x2cb66c}=this['manager']['tooltipViews'][0x0];if(fD['safari']){let _0x1e496d=_0x2cb66c['getBoundingClientRect']();_0xebcb23=Math['abs'](_0x1e496d['top']+0x2710)>0x1||Math['abs'](_0x1e496d['left'])>0x1;}else _0xebcb23=!!_0x2cb66c['offsetParent']&&_0x2cb66c['offsetParent']!=this['container']['ownerDocument']['body'];}if(_0xebcb23||'absolute'==this['position']){if(this['parent']){let _0x487067=this['parent']['getBoundingClientRect']();_0x487067['width']&&_0x487067['height']&&(_0x210b06=_0x487067['width']/this['parent']['offsetWidth'],_0x2cba1b=_0x487067['height']/this['parent']['offsetHeight']);}else({scaleX:_0x210b06,scaleY:_0x2cba1b}=this['view']['viewState']);}let _0x210f3d=this['view']['scrollDOM']['getBoundingClientRect'](),_0x584e35=GQ(this['view']);return{'visible':{'left':_0x210f3d['left']+_0x584e35['left'],'top':_0x210f3d['top']+_0x584e35['top'],'right':_0x210f3d['right']-_0x584e35['right'],'bottom':_0x210f3d['bottom']-_0x584e35['bottom']},'parent':this['parent']?this['container']['getBoundingClientRect']():this['view']['dom']['getBoundingClientRect'](),'pos':this['manager']['tooltips']['map']((t,_0x514255)=>{let _0x437d03=this['manager']['tooltipViews'][_0x514255];return _0x437d03['getCoords']?_0x437d03['getCoords'](t['pos']):this['view']['coordsAtPos'](t['pos']);}),'size':this['manager']['tooltipViews']['map'](({dom:_0x4cd0a1})=>_0x4cd0a1['getBoundingClientRect']()),'space':this['view']['state']['facet'](aB)['tooltipSpace'](this['view']),'scaleX':_0x210b06,'scaleY':_0x2cba1b,'makeAbsolute':_0xebcb23};}writeMeasure(_0x4d3d8e){var _0x522208;if(_0x4d3d8e['makeAbsolute']){this['madeAbsolute']=!0x0,this['position']='absolute';for(let t of this['manager']['tooltipViews'])t['dom']['style']['position']='absolute';}let {visible:_0x155f17,space:_0x366b38,scaleX:_0x5c8aea,scaleY:_0x47cf09}=_0x4d3d8e,_0x49ca86=[];for(let _0x27e9b8=0x0;_0x27e9b8<this['manager']['tooltips']['length'];_0x27e9b8++){let _0x6520a0=this['manager']['tooltips'][_0x27e9b8],_0x5f3b20=this['manager']['tooltipViews'][_0x27e9b8],{dom:_0x5cd5f2}=_0x5f3b20,_0x1902f9=_0x4d3d8e['pos'][_0x27e9b8],_0x5f398a=_0x4d3d8e['size'][_0x27e9b8];if(!_0x1902f9||!0x1!==_0x6520a0['clip']&&(_0x1902f9['bottom']<=Math['max'](_0x155f17['top'],_0x366b38['top'])||_0x1902f9['top']>=Math['min'](_0x155f17['bottom'],_0x366b38['bottom'])||_0x1902f9['right']<Math['max'](_0x155f17['left'],_0x366b38['left'])-0.1||_0x1902f9['left']>Math['min'](_0x155f17['right'],_0x366b38['right'])+0.1)){_0x5cd5f2['style']['top']=nB;continue;}let _0x378fcf=_0x6520a0['arrow']?_0x5f3b20['dom']['querySelector']('.cm-tooltip-arrow'):null,_0x55c8aa=_0x378fcf?0x7:0x0,_0x2170b3=_0x5f398a['right']-_0x5f398a['left'],_0x591d09=null!==(_0x522208=cB['get'](_0x5f3b20))&&void 0x0!==_0x522208?_0x522208:_0x5f398a['bottom']-_0x5f398a['top'],_0x206ac7=_0x5f3b20['offset']||dB,_0x54dc8a=this['view']['textDirection']==YD['LTR'],_0x42fed0=_0x5f398a['width']>_0x366b38['right']-_0x366b38['left']?_0x54dc8a?_0x366b38['left']:_0x366b38['right']-_0x5f398a['width']:_0x54dc8a?Math['max'](_0x366b38['left'],Math['min'](_0x1902f9['left']-(_0x378fcf?0xe:0x0)+_0x206ac7['x'],_0x366b38['right']-_0x2170b3)):Math['min'](Math['max'](_0x366b38['left'],_0x1902f9['left']-_0x2170b3+(_0x378fcf?0xe:0x0)-_0x206ac7['x']),_0x366b38['right']-_0x2170b3),_0x24508f=this['above'][_0x27e9b8];!_0x6520a0['strictSide']&&(_0x24508f?_0x1902f9['top']-_0x591d09-_0x55c8aa-_0x206ac7['y']<_0x366b38['top']:_0x1902f9['bottom']+_0x591d09+_0x55c8aa+_0x206ac7['y']>_0x366b38['bottom'])&&_0x24508f==_0x366b38['bottom']-_0x1902f9['bottom']>_0x1902f9['top']-_0x366b38['top']&&(_0x24508f=this['above'][_0x27e9b8]=!_0x24508f);let _0x5e9917=(_0x24508f?_0x1902f9['top']-_0x366b38['top']:_0x366b38['bottom']-_0x1902f9['bottom'])-_0x55c8aa;if(_0x5e9917<_0x591d09&&!0x1!==_0x5f3b20['resize']){if(_0x5e9917<this['view']['defaultLineHeight']){_0x5cd5f2['style']['top']=nB;continue;}cB['set'](_0x5f3b20,_0x591d09),_0x5cd5f2['style']['height']=(_0x591d09=_0x5e9917)/_0x47cf09+'px';}else _0x5cd5f2['style']['height']&&(_0x5cd5f2['style']['height']='');let _0x2597ca=_0x24508f?_0x1902f9['top']-_0x591d09-_0x55c8aa-_0x206ac7['y']:_0x1902f9['bottom']+_0x55c8aa+_0x206ac7['y'],_0x315567=_0x42fed0+_0x2170b3;if(!0x0!==_0x5f3b20['overlap']){for(let _0x57e389 of _0x49ca86)_0x57e389['left']<_0x315567&&_0x57e389['right']>_0x42fed0&&_0x57e389['top']<_0x2597ca+_0x591d09&&_0x57e389['bottom']>_0x2597ca&&(_0x2597ca=_0x24508f?_0x57e389['top']-_0x591d09-0x2-_0x55c8aa:_0x57e389['bottom']+_0x55c8aa+0x2);}if('absolute'==this['position']?(_0x5cd5f2['style']['top']=(_0x2597ca-_0x4d3d8e['parent']['top'])/_0x47cf09+'px',hB(_0x5cd5f2,(_0x42fed0-_0x4d3d8e['parent']['left'])/_0x5c8aea)):(_0x5cd5f2['style']['top']=_0x2597ca/_0x47cf09+'px',hB(_0x5cd5f2,_0x42fed0/_0x5c8aea)),_0x378fcf){let _0x5a1d8f=_0x1902f9['left']+(_0x54dc8a?_0x206ac7['x']:-_0x206ac7['x'])-(_0x42fed0+0xe-0x7);_0x378fcf['style']['left']=_0x5a1d8f/_0x5c8aea+'px';}!0x0!==_0x5f3b20['overlap']&&_0x49ca86['push']({'left':_0x42fed0,'top':_0x2597ca,'right':_0x315567,'bottom':_0x2597ca+_0x591d09}),_0x5cd5f2['classList']['toggle']('cm-tooltip-above',_0x24508f),_0x5cd5f2['classList']['toggle']('cm-tooltip-below',!_0x24508f),_0x5f3b20['positioned']&&_0x5f3b20['positioned'](_0x4d3d8e['space']);}}['maybeMeasure'](){if(this['manager']['tooltips']['length']&&(this['view']['inView']&&this['view']['requestMeasure'](this['measureReq']),this['inView']!=this['view']['inView']&&(this['inView']=this['view']['inView'],!this['inView']))){for(let _0xeaea35 of this['manager']['tooltipViews'])_0xeaea35['dom']['style']['top']=nB;}}},{'eventObservers':{'scroll'(){this['maybeMeasure']();}}});function hB(_0x7e382d,_0x130a3e){let _0x31f620=parseInt(_0x7e382d['style']['left'],0xa);(isNaN(_0x31f620)||Math['abs'](_0x130a3e-_0x31f620)>0x1)&&(_0x7e382d['style']['left']=_0x130a3e+'px');}const uB=oV['baseTheme']({'.cm-tooltip':{'zIndex':0x1f4,'boxSizing':'border-box'},'&light\x20.cm-tooltip':{'border':'1px\x20solid\x20#bbb','backgroundColor':'#f5f5f5'},'&light\x20.cm-tooltip-section:not(:first-child)':{'borderTop':'1px\x20solid\x20#bbb'},'&dark\x20.cm-tooltip':{'backgroundColor':'#333338','color':'white'},'.cm-tooltip-arrow':{'height':'7px','width':'14px','position':'absolute','zIndex':-0x1,'overflow':'hidden','&:before,\x20&:after':{'content':'\x27\x27','position':'absolute','width':0x0,'height':0x0,'borderLeft':'7px\x20solid\x20transparent','borderRight':'7px\x20solid\x20transparent'},'.cm-tooltip-above\x20&':{'bottom':'-7px','&:before':{'borderTop':'7px\x20solid\x20#bbb'},'&:after':{'borderTop':'7px\x20solid\x20#f5f5f5','bottom':'1px'}},'.cm-tooltip-below\x20&':{'top':'-7px','&:before':{'borderBottom':'7px\x20solid\x20#bbb'},'&:after':{'borderBottom':'7px\x20solid\x20#f5f5f5','top':'1px'}}},'&dark\x20.cm-tooltip\x20.cm-tooltip-arrow':{'&:before':{'borderTopColor':'#333338','borderBottomColor':'#333338'},'&:after':{'borderTopColor':'transparent','borderBottomColor':'transparent'}}}),dB={'x':0x0,'y':0x0},fB=LL['define']({'enables':[lB,uB]});function mB(_0x368102,_0x57cd32){let _0x35e266=_0x368102['plugin'](lB);if(!_0x35e266)return null;let _0x419de8=_0x35e266['manager']['tooltips']['indexOf'](_0x57cd32);return _0x419de8<0x0?null:_0x35e266['manager']['tooltipViews'][_0x419de8];}var pB=class extends A${['compare'](_0x485e6f){return this==_0x485e6f||this['constructor']==_0x485e6f['constructor']&&this['eq'](_0x485e6f);}['eq'](_0x53f62c){return!0x1;}destroy(_0x59c6f6){}};pB['prototype']['elementClass']='',pB['prototype']['toDOM']=void 0x0,pB['prototype']['mapMode']=_L['TrackBefore'],pB['prototype']['startSide']=pB['prototype']['endSide']=-0x1,pB['prototype']['point']=!0x0;const gB=LL['define'](),OB=LL['define'](),wB={'class':'','renderEmptyElements':!0x1,'elementStyle':'','markers':()=>C$['empty'],'lineMarker':()=>null,'widgetMarker':()=>null,'lineMarkerChange':null,'initialSpacer':null,'updateSpacer':null,'domEventHandlers':{},'side':'before'},bB=LL['define']();function yB(_0x39ea1e){return[_B(),bB['of']({...wB,..._0x39ea1e})];}const vB=LL['define']({'combine':_0x331b50=>_0x331b50['some'](_0x2ed95c=>_0x2ed95c)});function _B(_0x5db068){let _0x26ce7d=[EB];return _0x5db068&&!0x1===_0x5db068['fixed']&&_0x26ce7d['push'](vB['of'](!0x0)),_0x26ce7d;}const EB=LQ['fromClass'](class{constructor(_0x5b268c){this['view']=_0x5b268c,this['domAfter']=null,this['prevViewport']=_0x5b268c['viewport'],this['dom']=document['createElement']('div'),this['dom']['className']='cm-gutters\x20cm-gutters-before',this['dom']['setAttribute']('aria-hidden','true'),this['dom']['style']['minHeight']=this['view']['contentHeight']/this['view']['scaleY']+'px',this['gutters']=_0x5b268c['state']['facet'](bB)['map'](_0x261b44=>new IB(_0x5b268c,_0x261b44)),this['fixed']=!_0x5b268c['state']['facet'](vB);for(let _0xbd3888 of this['gutters'])'after'==_0xbd3888['config']['side']?this['getDOMAfter']()['appendChild'](_0xbd3888['dom']):this['dom']['appendChild'](_0xbd3888['dom']);this['fixed']&&(this['dom']['style']['position']='sticky'),this['syncGutters'](!0x1),_0x5b268c['scrollDOM']['insertBefore'](this['dom'],_0x5b268c['contentDOM']);}getDOMAfter(){return this['domAfter']||(this['domAfter']=document['createElement']('div'),this['domAfter']['className']='cm-gutters\x20cm-gutters-after',this['domAfter']['setAttribute']('aria-hidden','true'),this['domAfter']['style']['minHeight']=this['view']['contentHeight']/this['view']['scaleY']+'px',this['domAfter']['style']['position']=this['fixed']?'sticky':'',this['view']['scrollDOM']['appendChild'](this['domAfter'])),this['domAfter'];}update(_0x2943d9){if(this['updateGutters'](_0x2943d9)){let _0x2a11b3=this['prevViewport'],_0x32f78a=_0x2943d9['view']['viewport'],_0x3807e2=Math['min'](_0x2a11b3['to'],_0x32f78a['to'])-Math['max'](_0x2a11b3['from'],_0x32f78a['from']);this['syncGutters'](_0x3807e2<0.8*(_0x32f78a['to']-_0x32f78a['from']));}if(_0x2943d9['geometryChanged']){let _0x503936=this['view']['contentHeight']/this['view']['scaleY']+'px';this['dom']['style']['minHeight']=_0x503936,this['domAfter']&&(this['domAfter']['style']['minHeight']=_0x503936);}this['view']['state']['facet'](vB)!=!this['fixed']&&(this['fixed']=!this['fixed'],this['dom']['style']['position']=this['fixed']?'sticky':'',this['domAfter']&&(this['domAfter']['style']['position']=this['fixed']?'sticky':'')),this['prevViewport']=_0x2943d9['view']['viewport'];}syncGutters(_0x3500e5){let _0x32d369=this['dom']['nextSibling'];_0x3500e5&&(this['dom']['remove'](),this['domAfter']&&this['domAfter']['remove']());let _0x4e6b62=C$['iter'](this['view']['state']['facet'](gB),this['view']['viewport']['from']),_0x5470f2=[],_0x2e9f03=this['gutters']['map'](_0x36d73b=>new SB(_0x36d73b,this['view']['viewport'],-this['view']['documentPadding']['top']));for(let _0x4c52ca of this['view']['viewportLineBlocks'])if(_0x5470f2['length']&&(_0x5470f2=[]),Array['isArray'](_0x4c52ca['type'])){let _0x15e93b=!0x0;for(let _0x2f9060 of _0x4c52ca['type'])if(_0x2f9060['type']==yD['Text']&&_0x15e93b){AB(_0x4e6b62,_0x5470f2,_0x2f9060['from']);for(let _0x2073cd of _0x2e9f03)_0x2073cd['line'](this['view'],_0x2f9060,_0x5470f2);_0x15e93b=!0x1;}else{if(_0x2f9060['widget']){for(let _0x14f898 of _0x2e9f03)_0x14f898['widget'](this['view'],_0x2f9060);}}}else{if(_0x4c52ca['type']==yD['Text']){AB(_0x4e6b62,_0x5470f2,_0x4c52ca['from']);for(let _0x306092 of _0x2e9f03)_0x306092['line'](this['view'],_0x4c52ca,_0x5470f2);}else{if(_0x4c52ca['widget']){for(let _0x4df86b of _0x2e9f03)_0x4df86b['widget'](this['view'],_0x4c52ca);}}}for(let _0x4e9379 of _0x2e9f03)_0x4e9379['finish']();_0x3500e5&&(this['view']['scrollDOM']['insertBefore'](this['dom'],_0x32d369),this['domAfter']&&this['view']['scrollDOM']['appendChild'](this['domAfter']));}updateGutters(_0x1a56b6){let _0x26a9b4=_0x1a56b6['startState']['facet'](bB),_0x918d9=_0x1a56b6['state']['facet'](bB),_0x313a50=_0x1a56b6['docChanged']||_0x1a56b6['heightChanged']||_0x1a56b6['viewportChanged']||!C$['eq'](_0x1a56b6['startState']['facet'](gB),_0x1a56b6['state']['facet'](gB),_0x1a56b6['view']['viewport']['from'],_0x1a56b6['view']['viewport']['to']);if(_0x26a9b4==_0x918d9){for(let _0x30d87c of this['gutters'])_0x30d87c['update'](_0x1a56b6)&&(_0x313a50=!0x0);}else{_0x313a50=!0x0;let _0x47390f=[];for(let _0x5bb859 of _0x918d9){let _0x4e6b93=_0x26a9b4['indexOf'](_0x5bb859);_0x4e6b93<0x0?_0x47390f['push'](new IB(this['view'],_0x5bb859)):(this['gutters'][_0x4e6b93]['update'](_0x1a56b6),_0x47390f['push'](this['gutters'][_0x4e6b93]));}for(let _0x19ec5f of this['gutters'])_0x19ec5f['dom']['remove'](),_0x47390f['indexOf'](_0x19ec5f)<0x0&&_0x19ec5f['destroy']();for(let _0x4fd9e3 of _0x47390f)'after'==_0x4fd9e3['config']['side']?this['getDOMAfter']()['appendChild'](_0x4fd9e3['dom']):this['dom']['appendChild'](_0x4fd9e3['dom']);this['gutters']=_0x47390f;}return _0x313a50;}destroy(){for(let _0x4b7b5d of this['gutters'])_0x4b7b5d['destroy']();this['dom']['remove'](),this['domAfter']&&this['domAfter']['remove']();}},{'provide':_0x5a814b=>oV['scrollMargins']['of'](_0x5ee49a=>{let _0x25581a=_0x5ee49a['plugin'](_0x5a814b);if(!_0x25581a||0x0==_0x25581a['gutters']['length']||!_0x25581a['fixed'])return null;let _0x1995c3=_0x25581a['dom']['offsetWidth']*_0x5ee49a['scaleX'],_0x2b1a23=_0x25581a['domAfter']?_0x25581a['domAfter']['offsetWidth']*_0x5ee49a['scaleX']:0x0;return _0x5ee49a['textDirection']==YD['LTR']?{'left':_0x1995c3,'right':_0x2b1a23}:{'right':_0x1995c3,'left':_0x2b1a23};})});function TB(_0x2b8a08){return Array['isArray'](_0x2b8a08)?_0x2b8a08:[_0x2b8a08];}function AB(_0x2199b7,_0x516f22,_0x1b8a24){for(;_0x2199b7['value']&&_0x2199b7['from']<=_0x1b8a24;)_0x2199b7['from']==_0x1b8a24&&_0x516f22['push'](_0x2199b7['value']),_0x2199b7['next']();}var SB=class{constructor(_0x2301da,_0x16960b,_0x11e311){this['gutter']=_0x2301da,this['height']=_0x11e311,this['i']=0x0,this['cursor']=C$['iter'](_0x2301da['markers'],_0x16960b['from']);}addElement(_0x382240,_0x3b5f76,_0xb12648){let {gutter:_0x21facf}=this,_0x355152=(_0x3b5f76['top']-this['height'])/_0x382240['scaleY'],_0x4ec7d9=_0x3b5f76['height']/_0x382240['scaleY'];if(this['i']==_0x21facf['elements']['length']){let _0x371482=new kB(_0x382240,_0x4ec7d9,_0x355152,_0xb12648);_0x21facf['elements']['push'](_0x371482),_0x21facf['dom']['appendChild'](_0x371482['dom']);}else _0x21facf['elements'][this['i']]['update'](_0x382240,_0x4ec7d9,_0x355152,_0xb12648);this['height']=_0x3b5f76['bottom'],this['i']++;}['line'](_0x2564b8,_0x10176e,_0x32fb38){let _0x2bd48d=[];AB(this['cursor'],_0x2bd48d,_0x10176e['from']),_0x32fb38['length']&&(_0x2bd48d=_0x2bd48d['concat'](_0x32fb38));let _0x4964f1=this['gutter']['config']['lineMarker'](_0x2564b8,_0x10176e,_0x2bd48d);_0x4964f1&&_0x2bd48d['unshift'](_0x4964f1);let _0x240089=this['gutter'];(0x0!=_0x2bd48d['length']||_0x240089['config']['renderEmptyElements'])&&this['addElement'](_0x2564b8,_0x10176e,_0x2bd48d);}widget(_0x4f8f0a,_0x18a795){let _0x4b26ea=this['gutter']['config']['widgetMarker'](_0x4f8f0a,_0x18a795['widget'],_0x18a795),_0x107fe3=_0x4b26ea?[_0x4b26ea]:null;for(let _0x165551 of _0x4f8f0a['state']['facet'](OB)){let _0x2c614b=_0x165551(_0x4f8f0a,_0x18a795['widget'],_0x18a795);_0x2c614b&&(_0x107fe3||(_0x107fe3=[]))['push'](_0x2c614b);}_0x107fe3&&this['addElement'](_0x4f8f0a,_0x18a795,_0x107fe3);}['finish'](){let _0x252e59=this['gutter'];for(;_0x252e59['elements']['length']>this['i'];){let _0x96f010=_0x252e59['elements']['pop']();_0x252e59['dom']['removeChild'](_0x96f010['dom']),_0x96f010['destroy']();}}},IB=class{constructor(_0x5f1965,_0x5c32b6){this['view']=_0x5f1965,this['config']=_0x5c32b6,this['elements']=[],this['spacer']=null,this['dom']=document['createElement']('div'),this['dom']['className']='cm-gutter'+(this['config']['class']?'\x20'+this['config']['class']:'');for(let _0x5d07ae in _0x5c32b6['domEventHandlers'])this['dom']['addEventListener'](_0x5d07ae,_0x47911d=>{let _0x4c9ac7,_0x3e70d2=_0x47911d['target'];if(_0x3e70d2!=this['dom']&&this['dom']['contains'](_0x3e70d2)){for(;_0x3e70d2['parentNode']!=this['dom'];)_0x3e70d2=_0x3e70d2['parentNode'];let _0x3dca23=_0x3e70d2['getBoundingClientRect']();_0x4c9ac7=(_0x3dca23['top']+_0x3dca23['bottom'])/0x2;}else _0x4c9ac7=_0x47911d['clientY'];let _0x583ab9=_0x5f1965['lineBlockAtHeight'](_0x4c9ac7-_0x5f1965['documentTop']);_0x5c32b6['domEventHandlers'][_0x5d07ae](_0x5f1965,_0x583ab9,_0x47911d)&&_0x47911d['preventDefault']();});this['markers']=TB(_0x5c32b6['markers'](_0x5f1965)),_0x5c32b6['initialSpacer']&&(this['spacer']=new kB(_0x5f1965,0x0,0x0,[_0x5c32b6['initialSpacer'](_0x5f1965)]),this['dom']['appendChild'](this['spacer']['dom']),this['spacer']['dom']['style']['cssText']+='visibility:\x20hidden;\x20pointer-events:\x20none');}update(_0x305d06){let _0x56577d=this['markers'];if(this['markers']=TB(this['config']['markers'](_0x305d06['view'])),this['spacer']&&this['config']['updateSpacer']){let _0x5b1c4b=this['config']['updateSpacer'](this['spacer']['markers'][0x0],_0x305d06);_0x5b1c4b!=this['spacer']['markers'][0x0]&&this['spacer']['update'](_0x305d06['view'],0x0,0x0,[_0x5b1c4b]);}let _0x13b80f=_0x305d06['view']['viewport'];return!C$['eq'](this['markers'],_0x56577d,_0x13b80f['from'],_0x13b80f['to'])||!!this['config']['lineMarkerChange']&&this['config']['lineMarkerChange'](_0x305d06);}destroy(){for(let _0x407045 of this['elements'])_0x407045['destroy']();}},kB=class{constructor(_0x25302b,_0x22ac37,_0x2feb47,_0x530c98){this['height']=-0x1,this['above']=0x0,this['markers']=[],this['dom']=document['createElement']('div'),this['dom']['className']='cm-gutterElement',this['update'](_0x25302b,_0x22ac37,_0x2feb47,_0x530c98);}update(_0x492e73,_0x57d9da,_0x7b8020,_0x51a45d){this['height']!=_0x57d9da&&(this['height']=_0x57d9da,this['dom']['style']['height']=_0x57d9da+'px'),this['above']!=_0x7b8020&&(this['dom']['style']['marginTop']=(this['above']=_0x7b8020)?_0x7b8020+'px':''),function(_0x3fe937,_0x32677e){if(_0x3fe937['length']!=_0x32677e['length'])return!0x1;for(let _0x2effff=0x0;_0x2effff<_0x3fe937['length'];_0x2effff++)if(!_0x3fe937[_0x2effff]['compare'](_0x32677e[_0x2effff]))return!0x1;return!0x0;}(this['markers'],_0x51a45d)||this['setMarkers'](_0x492e73,_0x51a45d);}setMarkers(_0x21221d,_0x47d8ec){let _0x1d9382='cm-gutterElement',_0x4db682=this['dom']['firstChild'];for(let _0x47f55c=0x0,_0x1acbda=0x0;;){let _0x3f478b=_0x1acbda,_0x5172f2=_0x47f55c<_0x47d8ec['length']?_0x47d8ec[_0x47f55c++]:null,_0xdfd06=!0x1;if(_0x5172f2){let _0x290fd8=_0x5172f2['elementClass'];_0x290fd8&&(_0x1d9382+='\x20'+_0x290fd8);for(let _0x759b3=_0x1acbda;_0x759b3<this['markers']['length'];_0x759b3++)if(this['markers'][_0x759b3]['compare'](_0x5172f2)){_0x3f478b=_0x759b3,_0xdfd06=!0x0;break;}}else _0x3f478b=this['markers']['length'];for(;_0x1acbda<_0x3f478b;){let _0x368a2a=this['markers'][_0x1acbda++];if(_0x368a2a['toDOM']){_0x368a2a['destroy'](_0x4db682);let _0x500ff6=_0x4db682['nextSibling'];_0x4db682['remove'](),_0x4db682=_0x500ff6;}}if(!_0x5172f2)break;_0x5172f2['toDOM']&&(_0xdfd06?_0x4db682=_0x4db682['nextSibling']:this['dom']['insertBefore'](_0x5172f2['toDOM'](_0x21221d),_0x4db682)),_0xdfd06&&_0x1acbda++;}this['dom']['className']=_0x1d9382,this['markers']=_0x47d8ec;}destroy(){this['setMarkers'](null,[]);}};const xB=LL['define'](),CB=LL['define'](),RB=LL['define']({'combine':_0x3be49d=>T$(_0x3be49d,{'formatNumber':String,'domEventHandlers':{}},{'domEventHandlers'(_0x7b991,_0x6abd83){let _0x375f78=Object['assign']({},_0x7b991);for(let _0x4468b1 in _0x6abd83){let _0x303d9c=_0x375f78[_0x4468b1],_0x24436c=_0x6abd83[_0x4468b1];_0x375f78[_0x4468b1]=_0x303d9c?(_0x36a744,_0x58779d,_0x14cae9)=>_0x303d9c(_0x36a744,_0x58779d,_0x14cae9)||_0x24436c(_0x36a744,_0x58779d,_0x14cae9):_0x24436c;}return _0x375f78;}})});var PB=class extends pB{constructor(_0x5d79f9){super(),this['number']=_0x5d79f9;}['eq'](_0x7e5233){return this['number']==_0x7e5233['number'];}toDOM(){return document['createTextNode'](this['number']);}};function NB(_0x2d8edd,_0x1be8e7){return _0x2d8edd['state']['facet'](RB)['formatNumber'](_0x1be8e7,_0x2d8edd['state']);}const MB=bB['compute']([RB],_0x36a452=>({'class':'cm-lineNumbers','renderEmptyElements':!0x1,'markers':_0x32def6=>_0x32def6['state']['facet'](xB),'lineMarker':(_0x202ec9,_0x47ed89,_0x2f9308)=>_0x2f9308['some'](_0x271b52=>_0x271b52['toDOM'])?null:new PB(NB(_0x202ec9,_0x202ec9['state']['doc']['lineAt'](_0x47ed89['from'])['number'])),'widgetMarker':(_0x1c7c0,_0x5644ae,_0x5340f4)=>{for(let _0x105b0b of _0x1c7c0['state']['facet'](CB)){let _0x27bb24=_0x105b0b(_0x1c7c0,_0x5644ae,_0x5340f4);if(_0x27bb24)return _0x27bb24;}return null;},'lineMarkerChange':_0x4f3fd0=>_0x4f3fd0['startState']['facet'](RB)!=_0x4f3fd0['state']['facet'](RB),'initialSpacer':_0x45d9b6=>new PB(NB(_0x45d9b6,$B(_0x45d9b6['state']['doc']['lines']))),'updateSpacer'(_0x2658a4,_0x3b5cb0){let _0x5b38ef=NB(_0x3b5cb0['view'],$B(_0x3b5cb0['view']['state']['doc']['lines']));return _0x5b38ef==_0x2658a4['number']?_0x2658a4:new PB(_0x5b38ef);},'domEventHandlers':_0x36a452['facet'](RB)['domEventHandlers'],'side':'before'}));function LB(_0x4ef58b={}){return[RB['of'](_0x4ef58b),_B(),MB];}function $B(_0xc2c16c){let _0x491b16=0x9;for(;_0x491b16<_0xc2c16c;)_0x491b16=0xa*_0x491b16+0x9;return _0x491b16;}const DB=new class extends pB{constructor(){super(...arguments),this['elementClass']='cm-activeLineGutter';}}(),QB=gB['compute'](['selection'],_0x5ef0b7=>{let _0x57c54a=[],_0x387ff9=-0x1;for(let _0x5d8603 of _0x5ef0b7['selection']['ranges']){let _0x3db78d=_0x5ef0b7['doc']['lineAt'](_0x5d8603['head'])['from'];_0x3db78d>_0x387ff9&&(_0x387ff9=_0x3db78d,_0x57c54a['push'](DB['range'](_0x3db78d)));}return C$['of'](_0x57c54a);});function jB(){return QB;}const UB=0x400;let VB=0x0;var BB=class{constructor(_0x2104ba,_0x4a6a75){this['from']=_0x2104ba,this['to']=_0x4a6a75;}},HB=class{constructor(_0x225a86={}){this['id']=VB++,this['perNode']=!!_0x225a86['perNode'],this['deserialize']=_0x225a86['deserialize']||(()=>{throw new Error('This\x20node\x20type\x20doesn\x27t\x20define\x20a\x20deserialize\x20function');}),this['combine']=_0x225a86['combine']||null;}['add'](_0x2b8129){if(this['perNode'])throw new RangeError('Can\x27t\x20add\x20per-node\x20props\x20to\x20node\x20types');return'function'!=typeof _0x2b8129&&(_0x2b8129=GB['match'](_0x2b8129)),_0x333ea0=>{let _0x5cf8e2=_0x2b8129(_0x333ea0);return void 0x0===_0x5cf8e2?null:[this,_0x5cf8e2];};}};HB['closedBy']=new HB({'deserialize':_0xa83c73=>_0xa83c73['split']('\x20')}),HB['openedBy']=new HB({'deserialize':_0xb4284f=>_0xb4284f['split']('\x20')}),HB['group']=new HB({'deserialize':_0x1f4a81=>_0x1f4a81['split']('\x20')}),HB['isolate']=new HB({'deserialize':_0x2eb205=>{if(_0x2eb205&&'rtl'!=_0x2eb205&&'ltr'!=_0x2eb205&&'auto'!=_0x2eb205)throw new RangeError('Invalid\x20value\x20for\x20isolate:\x20'+_0x2eb205);return _0x2eb205||'auto';}}),HB['contextHash']=new HB({'perNode':!0x0}),HB['lookAhead']=new HB({'perNode':!0x0}),HB['mounted']=new HB({'perNode':!0x0});var FB=class{constructor(_0x571c96,_0x575fb7,_0x3a97a7,_0x33b5ce=!0x1){this['tree']=_0x571c96,this['overlay']=_0x575fb7,this['parser']=_0x3a97a7,this['bracketed']=_0x33b5ce;}static get(_0x40e71c){return _0x40e71c&&_0x40e71c['props']&&_0x40e71c['props'][HB['mounted']['id']];}};const ZB=Object['create'](null);var GB=class NodeType{constructor(_0x3d48e4,_0x5a6a86,_0x91c8bb,_0x35f167=0x0){this['name']=_0x3d48e4,this['props']=_0x5a6a86,this['id']=_0x91c8bb,this['flags']=_0x35f167;}static['define'](_0x5b2908){let _0x144242=_0x5b2908['props']&&_0x5b2908['props']['length']?Object['create'](null):ZB,_0xa7c1a6=(_0x5b2908['top']?0x1:0x0)|(_0x5b2908['skipped']?0x2:0x0)|(_0x5b2908['error']?0x4:0x0)|(null==_0x5b2908['name']?0x8:0x0),_0x12f4bd=new NodeType(_0x5b2908['name']||'',_0x144242,_0x5b2908['id'],_0xa7c1a6);if(_0x5b2908['props']){for(let _0x5a8971 of _0x5b2908['props'])if(Array['isArray'](_0x5a8971)||(_0x5a8971=_0x5a8971(_0x12f4bd)),_0x5a8971){if(_0x5a8971[0x0]['perNode'])throw new RangeError('Can\x27t\x20store\x20a\x20per-node\x20prop\x20on\x20a\x20node\x20type');_0x144242[_0x5a8971[0x0]['id']]=_0x5a8971[0x1];}}return _0x12f4bd;}['prop'](_0x1e707b){return this['props'][_0x1e707b['id']];}get['isTop'](){return(0x1&this['flags'])>0x0;}get['isSkipped'](){return(0x2&this['flags'])>0x0;}get['isError'](){return(0x4&this['flags'])>0x0;}get['isAnonymous'](){return(0x8&this['flags'])>0x0;}['is'](_0x320518){if('string'==typeof _0x320518){if(this['name']==_0x320518)return!0x0;let _0x2fee0f=this['prop'](HB['group']);return!!_0x2fee0f&&_0x2fee0f['indexOf'](_0x320518)>-0x1;}return this['id']==_0x320518;}static match(_0x3ae923){let _0x556e74=Object['create'](null);for(let _0x166cf3 in _0x3ae923)for(let _0xe2c3ee of _0x166cf3['split']('\x20'))_0x556e74[_0xe2c3ee]=_0x3ae923[_0x166cf3];return _0x2c8b03=>{for(let _0x558844=_0x2c8b03['prop'](HB['group']),_0xeb8251=-0x1;_0xeb8251<(_0x558844?_0x558844['length']:0x0);_0xeb8251++){let _0x5ab5e9=_0x556e74[_0xeb8251<0x0?_0x2c8b03['name']:_0x558844[_0xeb8251]];if(_0x5ab5e9)return _0x5ab5e9;}};}};GB['none']=new GB('',Object['create'](null),0x0,0x8);var XB=class NodeSet{constructor(_0x11d7a5){this['types']=_0x11d7a5;for(let _0x2390aa=0x0;_0x2390aa<_0x11d7a5['length'];_0x2390aa++)if(_0x11d7a5[_0x2390aa]['id']!=_0x2390aa)throw new RangeError('Node\x20type\x20ids\x20should\x20correspond\x20to\x20array\x20positions\x20when\x20creating\x20a\x20node\x20set');}extend(..._0x1119c2){let _0x3aeb27=[];for(let _0x35b845 of this['types']){let _0xe11f4b=null;for(let _0x12d3a5 of _0x1119c2){let _0x4c2eba=_0x12d3a5(_0x35b845);if(_0x4c2eba){_0xe11f4b||(_0xe11f4b=Object['assign']({},_0x35b845['props']));let _0x5c1764=_0x4c2eba[0x1],_0x450f03=_0x4c2eba[0x0];_0x450f03['combine']&&_0x450f03['id']in _0xe11f4b&&(_0x5c1764=_0x450f03['combine'](_0xe11f4b[_0x450f03['id']],_0x5c1764)),_0xe11f4b[_0x450f03['id']]=_0x5c1764;}}_0x3aeb27['push'](_0xe11f4b?new GB(_0x35b845['name'],_0xe11f4b,_0x35b845['id'],_0x35b845['flags']):_0x35b845);}return new NodeSet(_0x3aeb27);}};const qB=new WeakMap(),WB=new WeakMap();var zB;!function(_0x369e37){_0x369e37[_0x369e37['ExcludeBuffers']=0x1]='ExcludeBuffers',_0x369e37[_0x369e37['IncludeAnonymous']=0x2]='IncludeAnonymous',_0x369e37[_0x369e37['IgnoreMounts']=0x4]='IgnoreMounts',_0x369e37[_0x369e37['IgnoreOverlays']=0x8]='IgnoreOverlays',_0x369e37[_0x369e37['EnterBracketed']=0x10]='EnterBracketed';}(zB||(zB={}));var YB=class Tree{constructor(_0x3d709b,_0x46f801,_0x288821,_0x280107,_0x60c530){if(this['type']=_0x3d709b,this['children']=_0x46f801,this['positions']=_0x288821,this['length']=_0x280107,this['props']=null,_0x60c530&&_0x60c530['length']){this['props']=Object['create'](null);for(let [_0x3d1dac,_0x2014bf]of _0x60c530)this['props']['number'==typeof _0x3d1dac?_0x3d1dac:_0x3d1dac['id']]=_0x2014bf;}}toString(){let _0x4c16ec=FB['get'](this);if(_0x4c16ec&&!_0x4c16ec['overlay'])return _0x4c16ec['tree']['toString']();let _0x60946='';for(let _0x155ef5 of this['children']){let _0x1288e2=_0x155ef5['toString']();_0x1288e2&&(_0x60946&&(_0x60946+=','),_0x60946+=_0x1288e2);}return this['type']['name']?(/\W/['test'](this['type']['name'])&&!this['type']['isError']?JSON['stringify'](this['type']['name']):this['type']['name'])+(_0x60946['length']?'('+_0x60946+')':''):_0x60946;}['cursor'](_0x2cc686=0x0){return new hH(this['topNode'],_0x2cc686);}cursorAt(_0x3a24f9,_0x1e1696=0x0,_0x1c168c=0x0){let _0x3cc235=qB['get'](this)||this['topNode'],_0x47fc2a=new hH(_0x3cc235);return _0x47fc2a['moveTo'](_0x3a24f9,_0x1e1696),qB['set'](this,_0x47fc2a['_tree']),_0x47fc2a;}get topNode(){return new sH(this,0x0,0x0,null);}['resolve'](_0x7606d8,_0x3718b3=0x0){let _0x2798cc=eH(qB['get'](this)||this['topNode'],_0x7606d8,_0x3718b3,!0x1);return qB['set'](this,_0x2798cc),_0x2798cc;}['resolveInner'](_0x21f2d5,_0x4acc15=0x0){let _0x2d521e=eH(WB['get'](this)||this['topNode'],_0x21f2d5,_0x4acc15,!0x0);return WB['set'](this,_0x2d521e),_0x2d521e;}resolveStack(_0x17054c,_0x1e67b3=0x0){return function(_0x892747,_0x5f5934,_0x5db4a0){let _0x3a812a=_0x892747['resolveInner'](_0x5f5934,_0x5db4a0),_0x504fad=null;for(let _0x1e3dc3=_0x3a812a instanceof sH?_0x3a812a:_0x3a812a['context']['parent'];_0x1e3dc3;_0x1e3dc3=_0x1e3dc3['parent'])if(_0x1e3dc3['index']<0x0){let _0x3834db=_0x1e3dc3['parent'];(_0x504fad||(_0x504fad=[_0x3a812a]))['push'](_0x3834db['resolve'](_0x5f5934,_0x5db4a0)),_0x1e3dc3=_0x3834db;}else{let _0x216860=FB['get'](_0x1e3dc3['tree']);if(_0x216860&&_0x216860['overlay']&&_0x216860['overlay'][0x0]['from']<=_0x5f5934&&_0x216860['overlay'][_0x216860['overlay']['length']-0x1]['to']>=_0x5f5934){let _0x1040c3=new sH(_0x216860['tree'],_0x216860['overlay'][0x0]['from']+_0x1e3dc3['from'],-0x1,_0x1e3dc3);(_0x504fad||(_0x504fad=[_0x3a812a]))['push'](eH(_0x1040c3,_0x5f5934,_0x5db4a0,!0x1));}}return _0x504fad?cH(_0x504fad):_0x3a812a;}(this,_0x17054c,_0x1e67b3);}iterate(_0x54aa20){let {enter:_0x20e323,leave:_0x1c5d01,from:_0x3aa8d2=0x0,to:_0x40aef0=this['length']}=_0x54aa20,_0x167cf2=_0x54aa20['mode']||0x0,_0x1f7146=(_0x167cf2&zB['IncludeAnonymous'])>0x0;for(let _0x4fb705=this['cursor'](_0x167cf2|zB['IncludeAnonymous']);;){let _0x10d518=!0x1;if(_0x4fb705['from']<=_0x40aef0&&_0x4fb705['to']>=_0x3aa8d2&&(!_0x1f7146&&_0x4fb705['type']['isAnonymous']||!0x1!==_0x20e323(_0x4fb705))){if(_0x4fb705['firstChild']())continue;_0x10d518=!0x0;}for(;_0x10d518&&_0x1c5d01&&(_0x1f7146||!_0x4fb705['type']['isAnonymous'])&&_0x1c5d01(_0x4fb705),!_0x4fb705['nextSibling']();){if(!_0x4fb705['parent']())return;_0x10d518=!0x0;}}}['prop'](_0x3ef127){return _0x3ef127['perNode']?this['props']?this['props'][_0x3ef127['id']]:void 0x0:this['type']['prop'](_0x3ef127);}get['propValues'](){let _0x3b7069=[];if(this['props']){for(let _0x49da23 in this['props'])_0x3b7069['push']([+_0x49da23,this['props'][_0x49da23]]);}return _0x3b7069;}['balance'](_0x31d28e={}){return this['children']['length']<=0x8?this:pH(GB['none'],this['children'],this['positions'],0x0,this['children']['length'],0x0,this['length'],(_0x2c7df3,_0x2931ec,_0xa73bda)=>new Tree(this['type'],_0x2c7df3,_0x2931ec,_0xa73bda,this['propValues']),_0x31d28e['makeTree']||((_0x4f05ab,_0x2dd5b0,_0x4259a7)=>new Tree(GB['none'],_0x4f05ab,_0x2dd5b0,_0x4259a7)));}static['build'](_0x59c347){return dH(_0x59c347);}};YB['empty']=new YB(GB['none'],[],[],0x0);var KB=class FlatBufferCursor{constructor(_0x389f92,_0x5d5041){this['buffer']=_0x389f92,this['index']=_0x5d5041;}get['id'](){return this['buffer'][this['index']-0x4];}get start(){return this['buffer'][this['index']-0x3];}get['end'](){return this['buffer'][this['index']-0x2];}get['size'](){return this['buffer'][this['index']-0x1];}get['pos'](){return this['index'];}next(){this['index']-=0x4;}['fork'](){return new FlatBufferCursor(this['buffer'],this['index']);}},JB=class TreeBuffer{constructor(_0x2fe6d9,_0x327374,_0x2adab9){this['buffer']=_0x2fe6d9,this['length']=_0x327374,this['set']=_0x2adab9;}get type(){return GB['none'];}toString(){let _0x13144d=[];for(let _0x17d306=0x0;_0x17d306<this['buffer']['length'];)_0x13144d['push'](this['childString'](_0x17d306)),_0x17d306=this['buffer'][_0x17d306+0x3];return _0x13144d['join'](',');}childString(_0x32db4e){let _0x5f5aec=this['buffer'][_0x32db4e],_0x4a8a34=this['buffer'][_0x32db4e+0x3],_0x3f40c7=this['set']['types'][_0x5f5aec],_0x2cdb40=_0x3f40c7['name'];if(/\W/['test'](_0x2cdb40)&&!_0x3f40c7['isError']&&(_0x2cdb40=JSON['stringify'](_0x2cdb40)),_0x4a8a34==(_0x32db4e+=0x4))return _0x2cdb40;let _0x59e537=[];for(;_0x32db4e<_0x4a8a34;)_0x59e537['push'](this['childString'](_0x32db4e)),_0x32db4e=this['buffer'][_0x32db4e+0x3];return _0x2cdb40+'('+_0x59e537['join'](',')+')';}['findChild'](_0x49fada,_0x358b5b,_0x13864d,_0x422e19,_0x58611c){let {buffer:_0x1b3985}=this,_0x37189f=-0x1;for(let _0x2454aa=_0x49fada;_0x2454aa!=_0x358b5b&&!(tH(_0x58611c,_0x422e19,_0x1b3985[_0x2454aa+0x1],_0x1b3985[_0x2454aa+0x2])&&(_0x37189f=_0x2454aa,_0x13864d>0x0));_0x2454aa=_0x1b3985[_0x2454aa+0x3]);return _0x37189f;}['slice'](_0x715423,_0x38aaba,_0x5c9616){let _0x237d6a=this['buffer'],_0xb2896b=new Uint16Array(_0x38aaba-_0x715423),_0x2a3304=0x0;for(let _0x288a71=_0x715423,_0x270bbf=0x0;_0x288a71<_0x38aaba;){_0xb2896b[_0x270bbf++]=_0x237d6a[_0x288a71++],_0xb2896b[_0x270bbf++]=_0x237d6a[_0x288a71++]-_0x5c9616;let _0x1185c9=_0xb2896b[_0x270bbf++]=_0x237d6a[_0x288a71++]-_0x5c9616;_0xb2896b[_0x270bbf++]=_0x237d6a[_0x288a71++]-_0x715423,_0x2a3304=Math['max'](_0x2a3304,_0x1185c9);}return new TreeBuffer(_0xb2896b,_0x2a3304,this['set']);}};function tH(_0x6b87f3,_0x2161b6,_0x22eefc,_0x293eaa){switch(_0x6b87f3){case-0x2:return _0x22eefc<_0x2161b6;case-0x1:return _0x293eaa>=_0x2161b6&&_0x22eefc<_0x2161b6;case 0x0:return _0x22eefc<_0x2161b6&&_0x293eaa>_0x2161b6;case 0x1:return _0x22eefc<=_0x2161b6&&_0x293eaa>_0x2161b6;case 0x2:return _0x293eaa>_0x2161b6;case 0x4:return!0x0;}}function eH(_0x37e91a,_0x573915,_0x32eb57,_0x13c609){for(var _0x19af19;_0x37e91a['from']==_0x37e91a['to']||(_0x32eb57<0x1?_0x37e91a['from']>=_0x573915:_0x37e91a['from']>_0x573915)||(_0x32eb57>-0x1?_0x37e91a['to']<=_0x573915:_0x37e91a['to']<_0x573915);){let _0x486f8e=!_0x13c609&&_0x37e91a instanceof sH&&_0x37e91a['index']<0x0?null:_0x37e91a['parent'];if(!_0x486f8e)return _0x37e91a;_0x37e91a=_0x486f8e;}let _0x3e062a=_0x13c609?0x0:zB['IgnoreOverlays'];if(_0x13c609){for(let _0xa0f95b=_0x37e91a,_0xfe33c3=_0xa0f95b['parent'];_0xfe33c3;_0xa0f95b=_0xfe33c3,_0xfe33c3=_0xa0f95b['parent'])_0xa0f95b instanceof sH&&_0xa0f95b['index']<0x0&&(null===(_0x19af19=_0xfe33c3['enter'](_0x573915,_0x32eb57,_0x3e062a))||void 0x0===_0x19af19?void 0x0:_0x19af19['from'])!=_0xa0f95b['from']&&(_0x37e91a=_0xfe33c3);}for(;;){let _0x1b2503=_0x37e91a['enter'](_0x573915,_0x32eb57,_0x3e062a);if(!_0x1b2503)return _0x37e91a;_0x37e91a=_0x1b2503;}}var iH=class{['cursor'](_0x5d6762=0x0){return new hH(this,_0x5d6762);}getChild(_0x38f427,_0x1d746f=null,_0x82ebf2=null){let _0x34132b=nH(this,_0x38f427,_0x1d746f,_0x82ebf2);return _0x34132b['length']?_0x34132b[0x0]:null;}getChildren(_0x60b54f,_0x56d83f=null,_0x3d7c02=null){return nH(this,_0x60b54f,_0x56d83f,_0x3d7c02);}['resolve'](_0x1f2526,_0x3df2a0=0x0){return eH(this,_0x1f2526,_0x3df2a0,!0x1);}['resolveInner'](_0x559195,_0x150ccb=0x0){return eH(this,_0x559195,_0x150ccb,!0x0);}matchContext(_0x2697da){return rH(this['parent'],_0x2697da);}enterUnfinishedNodesBefore(_0x257423){let _0x3ee114=this['childBefore'](_0x257423),_0x1c4dd1=this;for(;_0x3ee114;){let _0x47690a=_0x3ee114['lastChild'];if(!_0x47690a||_0x47690a['to']!=_0x3ee114['to'])break;_0x47690a['type']['isError']&&_0x47690a['from']==_0x47690a['to']?(_0x1c4dd1=_0x3ee114,_0x3ee114=_0x47690a['prevSibling']):_0x3ee114=_0x47690a;}return _0x1c4dd1;}get['node'](){return this;}get next(){return this['parent'];}},sH=class TreeNode extends iH{constructor(_0x5cf886,_0x42158a,_0xda7529,_0x3e9229){super(),this['_tree']=_0x5cf886,this['from']=_0x42158a,this['index']=_0xda7529,this['_parent']=_0x3e9229;}get type(){return this['_tree']['type'];}get['name'](){return this['_tree']['type']['name'];}get to(){return this['from']+this['_tree']['length'];}nextChild(_0x41362b,_0x53ce56,_0x423acd,_0x750d04,_0x5380ad=0x0){for(let _0xe75263=this;;){for(let {children:_0x2bc51c,positions:_0x280266}=_0xe75263['_tree'],_0x35104e=_0x53ce56>0x0?_0x2bc51c['length']:-0x1;_0x41362b!=_0x35104e;_0x41362b+=_0x53ce56){let _0xe55658,_0x4c9262=_0x2bc51c[_0x41362b],_0x5d8cff=_0x280266[_0x41362b]+_0xe75263['from'];if(_0x5380ad&zB['EnterBracketed']&&_0x4c9262 instanceof YB&&(_0xe55658=FB['get'](_0x4c9262))&&!_0xe55658['overlay']&&_0xe55658['bracketed']&&_0x423acd>=_0x5d8cff&&_0x423acd<=_0x5d8cff+_0x4c9262['length']||tH(_0x750d04,_0x423acd,_0x5d8cff,_0x5d8cff+_0x4c9262['length'])){if(_0x4c9262 instanceof JB){if(_0x5380ad&zB['ExcludeBuffers'])continue;let _0x2f2370=_0x4c9262['findChild'](0x0,_0x4c9262['buffer']['length'],_0x53ce56,_0x423acd-_0x5d8cff,_0x750d04);if(_0x2f2370>-0x1)return new aH(new oH(_0xe75263,_0x4c9262,_0x41362b,_0x5d8cff),null,_0x2f2370);}else{if(_0x5380ad&zB['IncludeAnonymous']||!_0x4c9262['type']['isAnonymous']||uH(_0x4c9262)){let _0x1c9240;if(!(_0x5380ad&zB['IgnoreMounts'])&&(_0x1c9240=FB['get'](_0x4c9262))&&!_0x1c9240['overlay'])return new TreeNode(_0x1c9240['tree'],_0x5d8cff,_0x41362b,_0xe75263);let _0x5e8877=new TreeNode(_0x4c9262,_0x5d8cff,_0x41362b,_0xe75263);return _0x5380ad&zB['IncludeAnonymous']||!_0x5e8877['type']['isAnonymous']?_0x5e8877:_0x5e8877['nextChild'](_0x53ce56<0x0?_0x4c9262['children']['length']-0x1:0x0,_0x53ce56,_0x423acd,_0x750d04,_0x5380ad);}}}}if(_0x5380ad&zB['IncludeAnonymous']||!_0xe75263['type']['isAnonymous'])return null;if(_0x41362b=_0xe75263['index']>=0x0?_0xe75263['index']+_0x53ce56:_0x53ce56<0x0?-0x1:_0xe75263['_parent']['_tree']['children']['length'],_0xe75263=_0xe75263['_parent'],!_0xe75263)return null;}}get firstChild(){return this['nextChild'](0x0,0x1,0x0,0x4);}get lastChild(){return this['nextChild'](this['_tree']['children']['length']-0x1,-0x1,0x0,0x4);}childAfter(_0x578a3b){return this['nextChild'](0x0,0x1,_0x578a3b,0x2);}['childBefore'](_0x1de897){return this['nextChild'](this['_tree']['children']['length']-0x1,-0x1,_0x1de897,-0x2);}['prop'](_0x337aad){return this['_tree']['prop'](_0x337aad);}enter(_0x17818a,_0x4b3f13,_0x8a00f0=0x0){let _0x5cebf7;if(!(_0x8a00f0&zB['IgnoreOverlays'])&&(_0x5cebf7=FB['get'](this['_tree']))&&_0x5cebf7['overlay']){let _0x5d7ee8=_0x17818a-this['from'],_0x177a14=_0x8a00f0&zB['EnterBracketed']&&_0x5cebf7['bracketed'];for(let {from:_0x2239e9,to:_0x3c0316}of _0x5cebf7['overlay'])if((_0x4b3f13>0x0||_0x177a14?_0x2239e9<=_0x5d7ee8:_0x2239e9<_0x5d7ee8)&&(_0x4b3f13<0x0||_0x177a14?_0x3c0316>=_0x5d7ee8:_0x3c0316>_0x5d7ee8))return new TreeNode(_0x5cebf7['tree'],_0x5cebf7['overlay'][0x0]['from']+this['from'],-0x1,this);}return this['nextChild'](0x0,0x1,_0x17818a,_0x4b3f13,_0x8a00f0);}nextSignificantParent(){let _0x311d44=this;for(;_0x311d44['type']['isAnonymous']&&_0x311d44['_parent'];)_0x311d44=_0x311d44['_parent'];return _0x311d44;}get parent(){return this['_parent']?this['_parent']['nextSignificantParent']():null;}get nextSibling(){return this['_parent']&&this['index']>=0x0?this['_parent']['nextChild'](this['index']+0x1,0x1,0x0,0x4):null;}get['prevSibling'](){return this['_parent']&&this['index']>=0x0?this['_parent']['nextChild'](this['index']-0x1,-0x1,0x0,0x4):null;}get tree(){return this['_tree'];}toTree(){return this['_tree'];}toString(){return this['_tree']['toString']();}};function nH(_0x4bfa7e,_0x359ddb,_0x1ddf06,_0x1edd25){let _0x76d1fc=_0x4bfa7e['cursor'](),_0x50d5ed=[];if(!_0x76d1fc['firstChild']())return _0x50d5ed;if(null!=_0x1ddf06){for(let _0x40cc35=!0x1;!_0x40cc35;)if(_0x40cc35=_0x76d1fc['type']['is'](_0x1ddf06),!_0x76d1fc['nextSibling']())return _0x50d5ed;}for(;;){if(null!=_0x1edd25&&_0x76d1fc['type']['is'](_0x1edd25))return _0x50d5ed;if(_0x76d1fc['type']['is'](_0x359ddb)&&_0x50d5ed['push'](_0x76d1fc['node']),!_0x76d1fc['nextSibling']())return null==_0x1edd25?_0x50d5ed:[];}}function rH(_0x6bc77b,_0x5ed47b,_0x3fd447=_0x5ed47b['length']-0x1){for(let _0x5cc65a=_0x6bc77b;_0x3fd447>=0x0;_0x5cc65a=_0x5cc65a['parent']){if(!_0x5cc65a)return!0x1;if(!_0x5cc65a['type']['isAnonymous']){if(_0x5ed47b[_0x3fd447]&&_0x5ed47b[_0x3fd447]!=_0x5cc65a['name'])return!0x1;_0x3fd447--;}}return!0x0;}var oH=class{constructor(_0xc75354,_0x2b49e3,_0x329d66,_0x48f11b){this['parent']=_0xc75354,this['buffer']=_0x2b49e3,this['index']=_0x329d66,this['start']=_0x48f11b;}},aH=class BufferNode extends iH{get['name'](){return this['type']['name'];}get['from'](){return this['context']['start']+this['context']['buffer']['buffer'][this['index']+0x1];}get to(){return this['context']['start']+this['context']['buffer']['buffer'][this['index']+0x2];}constructor(_0x505bd8,_0x4d6197,_0x51edb9){super(),this['context']=_0x505bd8,this['_parent']=_0x4d6197,this['index']=_0x51edb9,this['type']=_0x505bd8['buffer']['set']['types'][_0x505bd8['buffer']['buffer'][_0x51edb9]];}['child'](_0x4fdbbc,_0x86ecb9,_0x30f358){let {buffer:_0x51deb1}=this['context'],_0x4c5fdb=_0x51deb1['findChild'](this['index']+0x4,_0x51deb1['buffer'][this['index']+0x3],_0x4fdbbc,_0x86ecb9-this['context']['start'],_0x30f358);return _0x4c5fdb<0x0?null:new BufferNode(this['context'],this,_0x4c5fdb);}get firstChild(){return this['child'](0x1,0x0,0x4);}get lastChild(){return this['child'](-0x1,0x0,0x4);}childAfter(_0x139f4f){return this['child'](0x1,_0x139f4f,0x2);}['childBefore'](_0x31bc57){return this['child'](-0x1,_0x31bc57,-0x2);}['prop'](_0x51c1a8){return this['type']['prop'](_0x51c1a8);}enter(_0x46b596,_0x5bc0c3,_0xf65fb0=0x0){if(_0xf65fb0&zB['ExcludeBuffers'])return null;let {buffer:_0x53a88a}=this['context'],_0x4beb82=_0x53a88a['findChild'](this['index']+0x4,_0x53a88a['buffer'][this['index']+0x3],_0x5bc0c3>0x0?0x1:-0x1,_0x46b596-this['context']['start'],_0x5bc0c3);return _0x4beb82<0x0?null:new BufferNode(this['context'],this,_0x4beb82);}get parent(){return this['_parent']||this['context']['parent']['nextSignificantParent']();}externalSibling(_0x37deb2){return this['_parent']?null:this['context']['parent']['nextChild'](this['context']['index']+_0x37deb2,_0x37deb2,0x0,0x4);}get nextSibling(){let {buffer:_0x1473e1}=this['context'],_0x1a6879=_0x1473e1['buffer'][this['index']+0x3];return _0x1a6879<(this['_parent']?_0x1473e1['buffer'][this['_parent']['index']+0x3]:_0x1473e1['buffer']['length'])?new BufferNode(this['context'],this['_parent'],_0x1a6879):this['externalSibling'](0x1);}get['prevSibling'](){let {buffer:_0x5015c7}=this['context'],_0x4ffde0=this['_parent']?this['_parent']['index']+0x4:0x0;return this['index']==_0x4ffde0?this['externalSibling'](-0x1):new BufferNode(this['context'],this['_parent'],_0x5015c7['findChild'](_0x4ffde0,this['index'],-0x1,0x0,0x4));}get tree(){return null;}toTree(){let _0x50b7e5=[],_0x76f186=[],{buffer:_0x5da216}=this['context'],_0x2657c0=this['index']+0x4,_0x3efd13=_0x5da216['buffer'][this['index']+0x3];if(_0x3efd13>_0x2657c0){let _0x38c172=_0x5da216['buffer'][this['index']+0x1];_0x50b7e5['push'](_0x5da216['slice'](_0x2657c0,_0x3efd13,_0x38c172)),_0x76f186['push'](0x0);}return new YB(this['type'],_0x50b7e5,_0x76f186,this['to']-this['from']);}toString(){return this['context']['buffer']['childString'](this['index']);}};function cH(_0x5a5025){if(!_0x5a5025['length'])return null;let _0x4ea64f=0x0,_0x41a1ed=_0x5a5025[0x0];for(let _0x497a86=0x1;_0x497a86<_0x5a5025['length'];_0x497a86++){let _0x2c0b25=_0x5a5025[_0x497a86];(_0x2c0b25['from']>_0x41a1ed['from']||_0x2c0b25['to']<_0x41a1ed['to'])&&(_0x41a1ed=_0x2c0b25,_0x4ea64f=_0x497a86);}let _0x4b9d29=_0x41a1ed instanceof sH&&_0x41a1ed['index']<0x0?null:_0x41a1ed['parent'],_0x31083e=_0x5a5025['slice']();return _0x4b9d29?_0x31083e[_0x4ea64f]=_0x4b9d29:_0x31083e['splice'](_0x4ea64f,0x1),new lH(_0x31083e,_0x41a1ed);}var lH=class{constructor(_0x54bc0e,_0x2343df){this['heads']=_0x54bc0e,this['node']=_0x2343df;}get next(){return cH(this['heads']);}},hH=class{get['name'](){return this['type']['name'];}constructor(_0x41b66f,_0x319ea4=0x0){if(this['buffer']=null,this['stack']=[],this['index']=0x0,this['bufferNode']=null,this['mode']=_0x319ea4&~zB['EnterBracketed'],_0x41b66f instanceof sH)this['yieldNode'](_0x41b66f);else{this['_tree']=_0x41b66f['context']['parent'],this['buffer']=_0x41b66f['context'];for(let _0x184ab3=_0x41b66f['_parent'];_0x184ab3;_0x184ab3=_0x184ab3['_parent'])this['stack']['unshift'](_0x184ab3['index']);this['bufferNode']=_0x41b66f,this['yieldBuf'](_0x41b66f['index']);}}['yieldNode'](_0x131db8){return!!_0x131db8&&(this['_tree']=_0x131db8,this['type']=_0x131db8['type'],this['from']=_0x131db8['from'],this['to']=_0x131db8['to'],!0x0);}['yieldBuf'](_0x50378f,_0x4a055c){this['index']=_0x50378f;let {start:_0x6e490d,buffer:_0x4e6969}=this['buffer'];return this['type']=_0x4a055c||_0x4e6969['set']['types'][_0x4e6969['buffer'][_0x50378f]],this['from']=_0x6e490d+_0x4e6969['buffer'][_0x50378f+0x1],this['to']=_0x6e490d+_0x4e6969['buffer'][_0x50378f+0x2],!0x0;}['yield'](_0x45c0cf){return!!_0x45c0cf&&(_0x45c0cf instanceof sH?(this['buffer']=null,this['yieldNode'](_0x45c0cf)):(this['buffer']=_0x45c0cf['context'],this['yieldBuf'](_0x45c0cf['index'],_0x45c0cf['type'])));}toString(){return this['buffer']?this['buffer']['buffer']['childString'](this['index']):this['_tree']['toString']();}enterChild(_0x4fef39,_0x43ea1a,_0x45fbef){if(!this['buffer'])return this['yield'](this['_tree']['nextChild'](_0x4fef39<0x0?this['_tree']['_tree']['children']['length']-0x1:0x0,_0x4fef39,_0x43ea1a,_0x45fbef,this['mode']));let {buffer:_0x15037d}=this['buffer'],_0x26bbc0=_0x15037d['findChild'](this['index']+0x4,_0x15037d['buffer'][this['index']+0x3],_0x4fef39,_0x43ea1a-this['buffer']['start'],_0x45fbef);return!(_0x26bbc0<0x0)&&(this['stack']['push'](this['index']),this['yieldBuf'](_0x26bbc0));}firstChild(){return this['enterChild'](0x1,0x0,0x4);}lastChild(){return this['enterChild'](-0x1,0x0,0x4);}childAfter(_0x5c2b9c){return this['enterChild'](0x1,_0x5c2b9c,0x2);}['childBefore'](_0x8a4a2c){return this['enterChild'](-0x1,_0x8a4a2c,-0x2);}enter(_0x5034a6,_0x2eab26,_0x3d1220=this['mode']){return this['buffer']?!(_0x3d1220&zB['ExcludeBuffers'])&&this['enterChild'](0x1,_0x5034a6,_0x2eab26):this['yield'](this['_tree']['enter'](_0x5034a6,_0x2eab26,_0x3d1220));}parent(){if(!this['buffer'])return this['yieldNode'](this['mode']&zB['IncludeAnonymous']?this['_tree']['_parent']:this['_tree']['parent']);if(this['stack']['length'])return this['yieldBuf'](this['stack']['pop']());let _0xad132a=this['mode']&zB['IncludeAnonymous']?this['buffer']['parent']:this['buffer']['parent']['nextSignificantParent']();return this['buffer']=null,this['yieldNode'](_0xad132a);}['sibling'](_0x5e218a){if(!this['buffer'])return!!this['_tree']['_parent']&&this['yield'](this['_tree']['index']<0x0?null:this['_tree']['_parent']['nextChild'](this['_tree']['index']+_0x5e218a,_0x5e218a,0x0,0x4,this['mode']));let {buffer:_0x5d9fb3}=this['buffer'],_0x2a483b=this['stack']['length']-0x1;if(_0x5e218a<0x0){let _0x25a4ec=_0x2a483b<0x0?0x0:this['stack'][_0x2a483b]+0x4;if(this['index']!=_0x25a4ec)return this['yieldBuf'](_0x5d9fb3['findChild'](_0x25a4ec,this['index'],-0x1,0x0,0x4));}else{let _0x3200f6=_0x5d9fb3['buffer'][this['index']+0x3];if(_0x3200f6<(_0x2a483b<0x0?_0x5d9fb3['buffer']['length']:_0x5d9fb3['buffer'][this['stack'][_0x2a483b]+0x3]))return this['yieldBuf'](_0x3200f6);}return _0x2a483b<0x0&&this['yield'](this['buffer']['parent']['nextChild'](this['buffer']['index']+_0x5e218a,_0x5e218a,0x0,0x4,this['mode']));}nextSibling(){return this['sibling'](0x1);}['prevSibling'](){return this['sibling'](-0x1);}atLastNode(_0x464706){let _0x3a0e45,_0x1435e2,{buffer:_0x2037f1}=this;if(_0x2037f1){if(_0x464706>0x0){if(this['index']<_0x2037f1['buffer']['buffer']['length'])return!0x1;}else{for(let _0x2ef7d3=0x0;_0x2ef7d3<this['index'];_0x2ef7d3++)if(_0x2037f1['buffer']['buffer'][_0x2ef7d3+0x3]<this['index'])return!0x1;}({index:_0x3a0e45,parent:_0x1435e2}=_0x2037f1);}else({index:_0x3a0e45,_parent:_0x1435e2}=this['_tree']);for(;_0x1435e2;{index:_0x3a0e45,_parent:_0x1435e2}=_0x1435e2)if(_0x3a0e45>-0x1)for(let _0x5d702f=_0x3a0e45+_0x464706,_0x4fb2dd=_0x464706<0x0?-0x1:_0x1435e2['_tree']['children']['length'];_0x5d702f!=_0x4fb2dd;_0x5d702f+=_0x464706){let _0x41d2b3=_0x1435e2['_tree']['children'][_0x5d702f];if(this['mode']&zB['IncludeAnonymous']||_0x41d2b3 instanceof JB||!_0x41d2b3['type']['isAnonymous']||uH(_0x41d2b3))return!0x1;}return!0x0;}['move'](_0x2fd0e7,_0x39a8b4){if(_0x39a8b4&&this['enterChild'](_0x2fd0e7,0x0,0x4))return!0x0;for(;;){if(this['sibling'](_0x2fd0e7))return!0x0;if(this['atLastNode'](_0x2fd0e7)||!this['parent']())return!0x1;}}next(_0x1fbbf7=!0x0){return this['move'](0x1,_0x1fbbf7);}['prev'](_0x588f57=!0x0){return this['move'](-0x1,_0x588f57);}['moveTo'](_0x4e1111,_0x560af9=0x0){for(;(this['from']==this['to']||(_0x560af9<0x1?this['from']>=_0x4e1111:this['from']>_0x4e1111)||(_0x560af9>-0x1?this['to']<=_0x4e1111:this['to']<_0x4e1111))&&this['parent'](););for(;this['enterChild'](0x1,_0x4e1111,_0x560af9););return this;}get['node'](){if(!this['buffer'])return this['_tree'];let _0x180dec=this['bufferNode'],_0x136076=null,_0x2d7a6c=0x0;if(_0x180dec&&_0x180dec['context']==this['buffer']){t:for(let _0x4ca68f=this['index'],_0xdb715b=this['stack']['length'];_0xdb715b>=0x0;){for(let _0xde0121=_0x180dec;_0xde0121;_0xde0121=_0xde0121['_parent'])if(_0xde0121['index']==_0x4ca68f){if(_0x4ca68f==this['index'])return _0xde0121;_0x136076=_0xde0121,_0x2d7a6c=_0xdb715b+0x1;break t;}_0x4ca68f=this['stack'][--_0xdb715b];}}for(let _0xcfc7d2=_0x2d7a6c;_0xcfc7d2<this['stack']['length'];_0xcfc7d2++)_0x136076=new aH(this['buffer'],_0x136076,this['stack'][_0xcfc7d2]);return this['bufferNode']=new aH(this['buffer'],_0x136076,this['index']);}get tree(){return this['buffer']?null:this['_tree']['_tree'];}iterate(_0x295de1,_0x2b307d){for(let _0x2879a6=0x0;;){let _0x4cf594=!0x1;if(this['type']['isAnonymous']||!0x1!==_0x295de1(this)){if(this['firstChild']()){_0x2879a6++;continue;}this['type']['isAnonymous']||(_0x4cf594=!0x0);}for(;;){if(_0x4cf594&&_0x2b307d&&_0x2b307d(this),_0x4cf594=this['type']['isAnonymous'],!_0x2879a6)return;if(this['nextSibling']())break;this['parent'](),_0x2879a6--,_0x4cf594=!0x0;}}}matchContext(_0x4dfee3){if(!this['buffer'])return rH(this['node']['parent'],_0x4dfee3);let {buffer:_0x353345}=this['buffer'],{types:_0x1d5dff}=_0x353345['set'];for(let _0x8f857=_0x4dfee3['length']-0x1,_0x57d85f=this['stack']['length']-0x1;_0x8f857>=0x0;_0x57d85f--){if(_0x57d85f<0x0)return rH(this['_tree'],_0x4dfee3,_0x8f857);let _0xae5550=_0x1d5dff[_0x353345['buffer'][this['stack'][_0x57d85f]]];if(!_0xae5550['isAnonymous']){if(_0x4dfee3[_0x8f857]&&_0x4dfee3[_0x8f857]!=_0xae5550['name'])return!0x1;_0x8f857--;}}return!0x0;}};function uH(_0x7760cd){return _0x7760cd['children']['some'](_0xad75a9=>_0xad75a9 instanceof JB||!_0xad75a9['type']['isAnonymous']||uH(_0xad75a9));}function dH(_0x1a0b7e){var _0x245493;let {buffer:_0x215190,nodeSet:_0x1cbb1a,maxBufferLength:_0x453e67=UB,reused:_0x1ebd19=[],minRepeatType:_0x4b7b25=_0x1cbb1a['types']['length']}=_0x1a0b7e,_0x1c73bc=Array['isArray'](_0x215190)?new KB(_0x215190,_0x215190['length']):_0x215190,_0x36bfa6=_0x1cbb1a['types'],_0x24f80c=0x0,_0x30003b=0x0;function _0x2dcc16(_0x31a1ff,_0xfc3083,_0x440c75,_0x4ef8c0,_0x2eebc6,_0x2c6241){let {id:_0x51c081,start:_0x3d3506,end:_0x4675a1,size:_0x35d6f4}=_0x1c73bc,_0x1974de=_0x30003b,_0x4fa441=_0x24f80c;if(_0x35d6f4<0x0){if(_0x1c73bc['next'](),-0x1==_0x35d6f4){let _0x1d6876=_0x1ebd19[_0x51c081];return _0x440c75['push'](_0x1d6876),void _0x4ef8c0['push'](_0x3d3506-_0x31a1ff);}if(-0x3==_0x35d6f4)return void(_0x24f80c=_0x51c081);if(-0x4==_0x35d6f4)return void(_0x30003b=_0x51c081);throw new RangeError('Unrecognized\x20record\x20size:\x20'+_0x35d6f4);}let _0x3470ce,_0x4f129f,_0x3206b7=_0x36bfa6[_0x51c081],_0x5a7600=_0x3d3506-_0x31a1ff;if(_0x4675a1-_0x3d3506<=_0x453e67&&(_0x4f129f=function(_0x3c5bbf,_0x57cacc){let _0x28817f=_0x1c73bc['fork'](),_0xc96424=0x0,_0x3c9a38=0x0,_0x31c6a5=0x0,_0x5f3d1d=_0x28817f['end']-_0x453e67,_0x160e0f={'size':0x0,'start':0x0,'skip':0x0};t:for(let _0x2557ff=_0x28817f['pos']-_0x3c5bbf;_0x28817f['pos']>_0x2557ff;){let _0x2be2e4=_0x28817f['size'];if(_0x28817f['id']==_0x57cacc&&_0x2be2e4>=0x0){_0x160e0f['size']=_0xc96424,_0x160e0f['start']=_0x3c9a38,_0x160e0f['skip']=_0x31c6a5,_0x31c6a5+=0x4,_0xc96424+=0x4,_0x28817f['next']();continue;}let _0x4f7be9=_0x28817f['pos']-_0x2be2e4;if(_0x2be2e4<0x0||_0x4f7be9<_0x2557ff||_0x28817f['start']<_0x5f3d1d)break;let _0x4667fd=_0x28817f['id']>=_0x4b7b25?0x4:0x0,_0xbb161=_0x28817f['start'];for(_0x28817f['next']();_0x28817f['pos']>_0x4f7be9;){if(_0x28817f['size']<0x0){if(-0x3!=_0x28817f['size']&&-0x4!=_0x28817f['size'])break t;_0x4667fd+=0x4;}else _0x28817f['id']>=_0x4b7b25&&(_0x4667fd+=0x4);_0x28817f['next']();}_0x3c9a38=_0xbb161,_0xc96424+=_0x2be2e4,_0x31c6a5+=_0x4667fd;}return(_0x57cacc<0x0||_0xc96424==_0x3c5bbf)&&(_0x160e0f['size']=_0xc96424,_0x160e0f['start']=_0x3c9a38,_0x160e0f['skip']=_0x31c6a5),_0x160e0f['size']>0x4?_0x160e0f:void 0x0;}(_0x1c73bc['pos']-_0xfc3083,_0x2eebc6))){let _0xaf1125=new Uint16Array(_0x4f129f['size']-_0x4f129f['skip']),_0x40494d=_0x1c73bc['pos']-_0x4f129f['size'],_0x38afd0=_0xaf1125['length'];for(;_0x1c73bc['pos']>_0x40494d;)_0x38afd0=_0x326bba(_0x4f129f['start'],_0xaf1125,_0x38afd0);_0x3470ce=new JB(_0xaf1125,_0x4675a1-_0x4f129f['start'],_0x1cbb1a),_0x5a7600=_0x4f129f['start']-_0x31a1ff;}else{let _0x382cba=_0x1c73bc['pos']-_0x35d6f4;_0x1c73bc['next']();let _0x4ad6d0=[],_0x57c4db=[],_0x43db59=_0x51c081>=_0x4b7b25?_0x51c081:-0x1,_0x1d5a6a=0x0,_0x416840=_0x4675a1;for(;_0x1c73bc['pos']>_0x382cba;)_0x43db59>=0x0&&_0x1c73bc['id']==_0x43db59&&_0x1c73bc['size']>=0x0?(_0x1c73bc['end']<=_0x416840-_0x453e67&&(_0x2b7bd1(_0x4ad6d0,_0x57c4db,_0x3d3506,_0x1d5a6a,_0x1c73bc['end'],_0x416840,_0x43db59,_0x1974de,_0x4fa441),_0x1d5a6a=_0x4ad6d0['length'],_0x416840=_0x1c73bc['end']),_0x1c73bc['next']()):_0x2c6241>0x9c4?_0x4bc83f(_0x3d3506,_0x382cba,_0x4ad6d0,_0x57c4db):_0x2dcc16(_0x3d3506,_0x382cba,_0x4ad6d0,_0x57c4db,_0x43db59,_0x2c6241+0x1);if(_0x43db59>=0x0&&_0x1d5a6a>0x0&&_0x1d5a6a<_0x4ad6d0['length']&&_0x2b7bd1(_0x4ad6d0,_0x57c4db,_0x3d3506,_0x1d5a6a,_0x3d3506,_0x416840,_0x43db59,_0x1974de,_0x4fa441),_0x4ad6d0['reverse'](),_0x57c4db['reverse'](),_0x43db59>-0x1&&_0x1d5a6a>0x0){let _0x392cd2=function(_0x2d6e54,_0x3c8247){return(_0x256262,_0x1a169f,_0xfab1b0)=>{let _0x2a9343,_0x58b73a,_0x129e77=0x0,_0x370665=_0x256262['length']-0x1;if(_0x370665>=0x0&&(_0x2a9343=_0x256262[_0x370665])instanceof YB){if(!_0x370665&&_0x2a9343['type']==_0x2d6e54&&_0x2a9343['length']==_0xfab1b0)return _0x2a9343;(_0x58b73a=_0x2a9343['prop'](HB['lookAhead']))&&(_0x129e77=_0x1a169f[_0x370665]+_0x2a9343['length']+_0x58b73a);}return _0x152283(_0x2d6e54,_0x256262,_0x1a169f,_0xfab1b0,_0x129e77,_0x3c8247);};}(_0x3206b7,_0x4fa441);_0x3470ce=pH(_0x3206b7,_0x4ad6d0,_0x57c4db,0x0,_0x4ad6d0['length'],0x0,_0x4675a1-_0x3d3506,_0x392cd2,_0x392cd2);}else _0x3470ce=_0x152283(_0x3206b7,_0x4ad6d0,_0x57c4db,_0x4675a1-_0x3d3506,_0x1974de-_0x4675a1,_0x4fa441);}_0x440c75['push'](_0x3470ce),_0x4ef8c0['push'](_0x5a7600);}function _0x4bc83f(_0x4dfae3,_0x480a8f,_0x299185,_0x5057b5){let _0x14fc18=[],_0xd320=0x0,_0x9caf50=-0x1;for(;_0x1c73bc['pos']>_0x480a8f;){let {id:_0x13e0b5,start:_0x2af682,end:_0xae31ee,size:_0x3de699}=_0x1c73bc;if(_0x3de699>0x4)_0x1c73bc['next']();else{if(_0x9caf50>-0x1&&_0x2af682<_0x9caf50)break;_0x9caf50<0x0&&(_0x9caf50=_0xae31ee-_0x453e67),_0x14fc18['push'](_0x13e0b5,_0x2af682,_0xae31ee),_0xd320++,_0x1c73bc['next']();}}if(_0xd320){let _0x547e31=new Uint16Array(0x4*_0xd320),_0x5d64ea=_0x14fc18[_0x14fc18['length']-0x2];for(let _0x3fd638=_0x14fc18['length']-0x3,_0x45d05e=0x0;_0x3fd638>=0x0;_0x3fd638-=0x3)_0x547e31[_0x45d05e++]=_0x14fc18[_0x3fd638],_0x547e31[_0x45d05e++]=_0x14fc18[_0x3fd638+0x1]-_0x5d64ea,_0x547e31[_0x45d05e++]=_0x14fc18[_0x3fd638+0x2]-_0x5d64ea,_0x547e31[_0x45d05e++]=_0x45d05e;_0x299185['push'](new JB(_0x547e31,_0x14fc18[0x2]-_0x5d64ea,_0x1cbb1a)),_0x5057b5['push'](_0x5d64ea-_0x4dfae3);}}function _0x2b7bd1(_0x3c6a17,_0x274a1e,_0x301596,_0x45d8b2,_0x166f95,_0xaa42d,_0x9791c2,_0x253bae,_0x4f8b43){let _0x398d7c=[],_0x28174d=[];for(;_0x3c6a17['length']>_0x45d8b2;)_0x398d7c['push'](_0x3c6a17['pop']()),_0x28174d['push'](_0x274a1e['pop']()+_0x301596-_0x166f95);_0x3c6a17['push'](_0x152283(_0x1cbb1a['types'][_0x9791c2],_0x398d7c,_0x28174d,_0xaa42d-_0x166f95,_0x253bae-_0xaa42d,_0x4f8b43)),_0x274a1e['push'](_0x166f95-_0x301596);}function _0x152283(_0x1b462d,_0x44ae99,_0x435cbb,_0x44f7bd,_0x789201,_0x4e11ba,_0xfe62f3){if(_0x4e11ba){let _0x576545=[HB['contextHash'],_0x4e11ba];_0xfe62f3=_0xfe62f3?[_0x576545]['concat'](_0xfe62f3):[_0x576545];}if(_0x789201>0x19){let _0x284105=[HB['lookAhead'],_0x789201];_0xfe62f3=_0xfe62f3?[_0x284105]['concat'](_0xfe62f3):[_0x284105];}return new YB(_0x1b462d,_0x44ae99,_0x435cbb,_0x44f7bd,_0xfe62f3);}function _0x326bba(_0x4727f6,_0x254bce,_0x2c821d){let {id:_0x1afdce,start:_0x123322,end:_0x37596f,size:_0x128664}=_0x1c73bc;if(_0x1c73bc['next'](),_0x128664>=0x0&&_0x1afdce<_0x4b7b25){let _0x4fa980=_0x2c821d;if(_0x128664>0x4){let _0x559f79=_0x1c73bc['pos']-(_0x128664-0x4);for(;_0x1c73bc['pos']>_0x559f79;)_0x2c821d=_0x326bba(_0x4727f6,_0x254bce,_0x2c821d);}_0x254bce[--_0x2c821d]=_0x4fa980,_0x254bce[--_0x2c821d]=_0x37596f-_0x4727f6,_0x254bce[--_0x2c821d]=_0x123322-_0x4727f6,_0x254bce[--_0x2c821d]=_0x1afdce;}else-0x3==_0x128664?_0x24f80c=_0x1afdce:-0x4==_0x128664&&(_0x30003b=_0x1afdce);return _0x2c821d;}let _0x303b40=[],_0x2a4875=[];for(;_0x1c73bc['pos']>0x0;)_0x2dcc16(_0x1a0b7e['start']||0x0,_0x1a0b7e['bufferStart']||0x0,_0x303b40,_0x2a4875,-0x1,0x0);let _0x117e3e=null!==(_0x245493=_0x1a0b7e['length'])&&void 0x0!==_0x245493?_0x245493:_0x303b40['length']?_0x2a4875[0x0]+_0x303b40[0x0]['length']:0x0;return new YB(_0x36bfa6[_0x1a0b7e['topID']],_0x303b40['reverse'](),_0x2a4875['reverse'](),_0x117e3e);}const fH=new WeakMap();function mH(_0x282f46,_0x40b85e){if(!_0x282f46['isAnonymous']||_0x40b85e instanceof JB||_0x40b85e['type']!=_0x282f46)return 0x1;let _0x3b0997=fH['get'](_0x40b85e);if(null==_0x3b0997){_0x3b0997=0x1;for(let _0x289d79 of _0x40b85e['children']){if(_0x289d79['type']!=_0x282f46||!(_0x289d79 instanceof YB)){_0x3b0997=0x1;break;}_0x3b0997+=mH(_0x282f46,_0x289d79);}fH['set'](_0x40b85e,_0x3b0997);}return _0x3b0997;}function pH(_0x2b9ee6,_0x22dc6d,_0x4d882b,_0x1dd4fc,_0x520826,_0x55b0a4,_0x49fa55,_0x2c8d2d,_0x467b3){let _0x369bac=0x0;for(let _0x5d3a3f=_0x1dd4fc;_0x5d3a3f<_0x520826;_0x5d3a3f++)_0x369bac+=mH(_0x2b9ee6,_0x22dc6d[_0x5d3a3f]);let _0x2a2290=Math['ceil'](1.5*_0x369bac/0x8),_0x57b107=[],_0x4d993d=[];return function _0x34163f(_0xb10dcc,_0x35fed8,_0x3cbd56,_0x385878,_0x7b0463){for(let _0x2f4397=_0x3cbd56;_0x2f4397<_0x385878;){let _0x4e4948=_0x2f4397,_0x416183=_0x35fed8[_0x2f4397],_0x32f25=mH(_0x2b9ee6,_0xb10dcc[_0x2f4397]);for(_0x2f4397++;_0x2f4397<_0x385878;_0x2f4397++){let _0x542f7c=mH(_0x2b9ee6,_0xb10dcc[_0x2f4397]);if(_0x32f25+_0x542f7c>=_0x2a2290)break;_0x32f25+=_0x542f7c;}if(_0x2f4397==_0x4e4948+0x1){if(_0x32f25>_0x2a2290){let _0x182ad1=_0xb10dcc[_0x4e4948];_0x34163f(_0x182ad1['children'],_0x182ad1['positions'],0x0,_0x182ad1['children']['length'],_0x35fed8[_0x4e4948]+_0x7b0463);continue;}_0x57b107['push'](_0xb10dcc[_0x4e4948]);}else{let _0x71cf5f=_0x35fed8[_0x2f4397-0x1]+_0xb10dcc[_0x2f4397-0x1]['length']-_0x416183;_0x57b107['push'](pH(_0x2b9ee6,_0xb10dcc,_0x35fed8,_0x4e4948,_0x2f4397,_0x416183,_0x71cf5f,null,_0x467b3));}_0x4d993d['push'](_0x416183+_0x7b0463-_0x55b0a4);}}(_0x22dc6d,_0x4d882b,_0x1dd4fc,_0x520826,0x0),(_0x2c8d2d||_0x467b3)(_0x57b107,_0x4d993d,_0x49fa55);}var gH=class{constructor(){this['map']=new WeakMap();}setBuffer(_0x5db598,_0x4ef830,_0x42dfac){let _0x45b8e3=this['map']['get'](_0x5db598);_0x45b8e3||this['map']['set'](_0x5db598,_0x45b8e3=new Map()),_0x45b8e3['set'](_0x4ef830,_0x42dfac);}getBuffer(_0x4a7682,_0x134302){let _0x2f9216=this['map']['get'](_0x4a7682);return _0x2f9216&&_0x2f9216['get'](_0x134302);}set(_0x42b646,_0x29250c){_0x42b646 instanceof aH?this['setBuffer'](_0x42b646['context']['buffer'],_0x42b646['index'],_0x29250c):_0x42b646 instanceof sH&&this['map']['set'](_0x42b646['tree'],_0x29250c);}get(_0x229f00){return _0x229f00 instanceof aH?this['getBuffer'](_0x229f00['context']['buffer'],_0x229f00['index']):_0x229f00 instanceof sH?this['map']['get'](_0x229f00['tree']):void 0x0;}cursorSet(_0x8cd3b7,_0x3e844a){_0x8cd3b7['buffer']?this['setBuffer'](_0x8cd3b7['buffer']['buffer'],_0x8cd3b7['index'],_0x3e844a):this['map']['set'](_0x8cd3b7['tree'],_0x3e844a);}cursorGet(_0x583635){return _0x583635['buffer']?this['getBuffer'](_0x583635['buffer']['buffer'],_0x583635['index']):this['map']['get'](_0x583635['tree']);}},OH=class TreeFragment{constructor(_0x556bba,_0x57f3ca,_0x154c6c,_0x305d41,_0xd78923=!0x1,_0x5d056d=!0x1){this['from']=_0x556bba,this['to']=_0x57f3ca,this['tree']=_0x154c6c,this['offset']=_0x305d41,this['open']=(_0xd78923?0x1:0x0)|(_0x5d056d?0x2:0x0);}get openStart(){return(0x1&this['open'])>0x0;}get['openEnd'](){return(0x2&this['open'])>0x0;}static['addTree'](_0x2a4af1,_0x2cf194=[],_0x195065=!0x1){let _0x509d0a=[new TreeFragment(0x0,_0x2a4af1['length'],_0x2a4af1,0x0,!0x1,_0x195065)];for(let _0x516f06 of _0x2cf194)_0x516f06['to']>_0x2a4af1['length']&&_0x509d0a['push'](_0x516f06);return _0x509d0a;}static['applyChanges'](_0x392e03,_0x1fd0ca,_0x1597dc=0x80){if(!_0x1fd0ca['length'])return _0x392e03;let _0x4d1522=[],_0x4832a0=0x1,_0x1c084c=_0x392e03['length']?_0x392e03[0x0]:null;for(let _0x251e9a=0x0,_0x412f57=0x0,_0x3595b5=0x0;;_0x251e9a++){let _0x1cf13c=_0x251e9a<_0x1fd0ca['length']?_0x1fd0ca[_0x251e9a]:null,_0x5b99a3=_0x1cf13c?_0x1cf13c['fromA']:0x3b9aca00;if(_0x5b99a3-_0x412f57>=_0x1597dc)for(;_0x1c084c&&_0x1c084c['from']<_0x5b99a3;){let _0x20a9b3=_0x1c084c;if(_0x412f57>=_0x20a9b3['from']||_0x5b99a3<=_0x20a9b3['to']||_0x3595b5){let _0x3b16fc=Math['max'](_0x20a9b3['from'],_0x412f57)-_0x3595b5,_0x49cfc8=Math['min'](_0x20a9b3['to'],_0x5b99a3)-_0x3595b5;_0x20a9b3=_0x3b16fc>=_0x49cfc8?null:new TreeFragment(_0x3b16fc,_0x49cfc8,_0x20a9b3['tree'],_0x20a9b3['offset']+_0x3595b5,_0x251e9a>0x0,!!_0x1cf13c);}if(_0x20a9b3&&_0x4d1522['push'](_0x20a9b3),_0x1c084c['to']>_0x5b99a3)break;_0x1c084c=_0x4832a0<_0x392e03['length']?_0x392e03[_0x4832a0++]:null;}if(!_0x1cf13c)break;_0x412f57=_0x1cf13c['toA'],_0x3595b5=_0x1cf13c['toA']-_0x1cf13c['toB'];}return _0x4d1522;}},wH=class{startParse(_0x637002,_0x115518,_0x5b1bad){return'string'==typeof _0x637002&&(_0x637002=new bH(_0x637002)),_0x5b1bad=_0x5b1bad?_0x5b1bad['length']?_0x5b1bad['map'](_0x4f719a=>new BB(_0x4f719a['from'],_0x4f719a['to'])):[new BB(0x0,0x0)]:[new BB(0x0,_0x637002['length'])],this['createParse'](_0x637002,_0x115518||[],_0x5b1bad);}['parse'](_0x593a28,_0x5499a5,_0x3fd21e){let _0x13daaf=this['startParse'](_0x593a28,_0x5499a5,_0x3fd21e);for(;;){let _0x4777bb=_0x13daaf['advance']();if(_0x4777bb)return _0x4777bb;}}},bH=class{constructor(_0x1c2cb0){this['string']=_0x1c2cb0;}get length(){return this['string']['length'];}['chunk'](_0x299be6){return this['string']['slice'](_0x299be6);}get['lineChunks'](){return!0x1;}['read'](_0x1deb81,_0x496aa4){return this['string']['slice'](_0x1deb81,_0x496aa4);}};function yH(_0x458309){return(_0x296a30,_0x247edf,_0x33aa86,_0x400a66)=>new AH(_0x296a30,_0x458309,_0x247edf,_0x33aa86,_0x400a66);}var vH=class{constructor(_0x557cae,_0x35000e,_0x5454cd,_0x4e7eaa,_0x3cc07c,_0x47263d){this['parser']=_0x557cae,this['parse']=_0x35000e,this['overlay']=_0x5454cd,this['bracketed']=_0x4e7eaa,this['target']=_0x3cc07c,this['from']=_0x47263d;}};function _H(_0x50a8f9){if(!_0x50a8f9['length']||_0x50a8f9['some'](_0x561f17=>_0x561f17['from']>=_0x561f17['to']))throw new RangeError('Invalid\x20inner\x20parse\x20ranges\x20given:\x20'+JSON['stringify'](_0x50a8f9));}var EH=class{constructor(_0x5c6c18,_0x55bdb9,_0x11ec85,_0x1886ca,_0x25329a,_0x52b7c4,_0x5167a0,_0x6932b0){this['parser']=_0x5c6c18,this['predicate']=_0x55bdb9,this['mounts']=_0x11ec85,this['index']=_0x1886ca,this['start']=_0x25329a,this['bracketed']=_0x52b7c4,this['target']=_0x5167a0,this['prev']=_0x6932b0,this['depth']=0x0,this['ranges']=[];}};const TH=new HB({'perNode':!0x0});var AH=class{constructor(_0x4b415a,_0x13d77d,_0x33de5d,_0x526fdf,_0x250d77){this['nest']=_0x13d77d,this['input']=_0x33de5d,this['fragments']=_0x526fdf,this['ranges']=_0x250d77,this['inner']=[],this['innerDone']=0x0,this['baseTree']=null,this['stoppedAt']=null,this['baseParse']=_0x4b415a;}['advance'](){if(this['baseParse']){let _0x1eb92f=this['baseParse']['advance']();if(!_0x1eb92f)return null;if(this['baseParse']=null,this['baseTree']=_0x1eb92f,this['startInner'](),null!=this['stoppedAt']){for(let _0x563a55 of this['inner'])_0x563a55['parse']['stopAt'](this['stoppedAt']);}}if(this['innerDone']==this['inner']['length']){let _0x6fe58d=this['baseTree'];return null!=this['stoppedAt']&&(_0x6fe58d=new YB(_0x6fe58d['type'],_0x6fe58d['children'],_0x6fe58d['positions'],_0x6fe58d['length'],_0x6fe58d['propValues']['concat']([[TH,this['stoppedAt']]]))),_0x6fe58d;}let _0x54caa2=this['inner'][this['innerDone']],_0x2dcf95=_0x54caa2['parse']['advance']();if(_0x2dcf95){this['innerDone']++;let _0x4c87ce=Object['assign'](Object['create'](null),_0x54caa2['target']['props']);_0x4c87ce[HB['mounted']['id']]=new FB(_0x2dcf95,_0x54caa2['overlay'],_0x54caa2['parser'],_0x54caa2['bracketed']),_0x54caa2['target']['props']=_0x4c87ce;}return null;}get['parsedPos'](){if(this['baseParse'])return 0x0;let _0x6f693=this['input']['length'];for(let _0x3f12a0=this['innerDone'];_0x3f12a0<this['inner']['length'];_0x3f12a0++)this['inner'][_0x3f12a0]['from']<_0x6f693&&(_0x6f693=Math['min'](_0x6f693,this['inner'][_0x3f12a0]['parse']['parsedPos']));return _0x6f693;}stopAt(_0x32d1fa){if(this['stoppedAt']=_0x32d1fa,this['baseParse'])this['baseParse']['stopAt'](_0x32d1fa);else{for(let _0x1bf719=this['innerDone'];_0x1bf719<this['inner']['length'];_0x1bf719++)this['inner'][_0x1bf719]['parse']['stopAt'](_0x32d1fa);}}startInner(){let _0x8040a2=new CH(this['fragments']),_0x1a6132=null,_0x5f4258=null,_0x270e1e=new hH(new sH(this['baseTree'],this['ranges'][0x0]['from'],0x0,null),zB['IncludeAnonymous']|zB['IgnoreMounts']);t:for(let _0x4dcb7c,_0x983dbb;;){let _0x5c3550,_0x333d30=!0x0;if(null!=this['stoppedAt']&&_0x270e1e['from']>=this['stoppedAt'])_0x333d30=!0x1;else{if(_0x8040a2['hasNode'](_0x270e1e)){if(_0x1a6132){let _0x3a10ae=_0x1a6132['mounts']['find'](_0x358d5c=>_0x358d5c['frag']['from']<=_0x270e1e['from']&&_0x358d5c['frag']['to']>=_0x270e1e['to']&&_0x358d5c['mount']['overlay']);if(_0x3a10ae)for(let _0x170acd of _0x3a10ae['mount']['overlay']){let _0x48d45f=_0x170acd['from']+_0x3a10ae['pos'],_0x3175c9=_0x170acd['to']+_0x3a10ae['pos'];_0x48d45f>=_0x270e1e['from']&&_0x3175c9<=_0x270e1e['to']&&!_0x1a6132['ranges']['some'](_0x1b21ed=>_0x1b21ed['from']<_0x3175c9&&_0x1b21ed['to']>_0x48d45f)&&_0x1a6132['ranges']['push']({'from':_0x48d45f,'to':_0x3175c9});}}_0x333d30=!0x1;}else{if(_0x5f4258&&(_0x983dbb=SH(_0x5f4258['ranges'],_0x270e1e['from'],_0x270e1e['to'])))_0x333d30=0x2!=_0x983dbb;else{if(!_0x270e1e['type']['isAnonymous']&&(_0x4dcb7c=this['nest'](_0x270e1e,this['input']))&&(_0x270e1e['from']<_0x270e1e['to']||!_0x4dcb7c['overlay'])){_0x270e1e['tree']||(kH(_0x270e1e),_0x1a6132&&_0x1a6132['depth']++,_0x5f4258&&_0x5f4258['depth']++);let _0xf3c808=_0x8040a2['findMounts'](_0x270e1e['from'],_0x4dcb7c['parser']);if('function'==typeof _0x4dcb7c['overlay'])_0x1a6132=new EH(_0x4dcb7c['parser'],_0x4dcb7c['overlay'],_0xf3c808,this['inner']['length'],_0x270e1e['from'],!!_0x4dcb7c['bracketed'],_0x270e1e['tree'],_0x1a6132);else{let _0x5db2e9=RH(this['ranges'],_0x4dcb7c['overlay']||(_0x270e1e['from']<_0x270e1e['to']?[new BB(_0x270e1e['from'],_0x270e1e['to'])]:[]));_0x5db2e9['length']&&_H(_0x5db2e9),!_0x5db2e9['length']&&_0x4dcb7c['overlay']||this['inner']['push'](new vH(_0x4dcb7c['parser'],_0x5db2e9['length']?_0x4dcb7c['parser']['startParse'](this['input'],NH(_0xf3c808,_0x5db2e9),_0x5db2e9):_0x4dcb7c['parser']['startParse'](''),_0x4dcb7c['overlay']?_0x4dcb7c['overlay']['map'](_0x23a030=>new BB(_0x23a030['from']-_0x270e1e['from'],_0x23a030['to']-_0x270e1e['from'])):null,!!_0x4dcb7c['bracketed'],_0x270e1e['tree'],_0x5db2e9['length']?_0x5db2e9[0x0]['from']:_0x270e1e['from'])),_0x4dcb7c['overlay']?_0x5db2e9['length']&&(_0x5f4258={'ranges':_0x5db2e9,'depth':0x0,'prev':_0x5f4258}):_0x333d30=!0x1;}}else{if(_0x1a6132&&(_0x5c3550=_0x1a6132['predicate'](_0x270e1e))&&(!0x0===_0x5c3550&&(_0x5c3550=new BB(_0x270e1e['from'],_0x270e1e['to'])),_0x5c3550['from']<_0x5c3550['to'])){let _0x4744a2=_0x1a6132['ranges']['length']-0x1;_0x4744a2>=0x0&&_0x1a6132['ranges'][_0x4744a2]['to']==_0x5c3550['from']?_0x1a6132['ranges'][_0x4744a2]={'from':_0x1a6132['ranges'][_0x4744a2]['from'],'to':_0x5c3550['to']}:_0x1a6132['ranges']['push'](_0x5c3550);}}}}}if(_0x333d30&&_0x270e1e['firstChild']())_0x1a6132&&_0x1a6132['depth']++,_0x5f4258&&_0x5f4258['depth']++;else for(;!_0x270e1e['nextSibling']();){if(!_0x270e1e['parent']())break t;if(_0x1a6132&&!--_0x1a6132['depth']){let _0xc902d9=RH(this['ranges'],_0x1a6132['ranges']);_0xc902d9['length']&&(_H(_0xc902d9),this['inner']['splice'](_0x1a6132['index'],0x0,new vH(_0x1a6132['parser'],_0x1a6132['parser']['startParse'](this['input'],NH(_0x1a6132['mounts'],_0xc902d9),_0xc902d9),_0x1a6132['ranges']['map'](_0x4a2fa6=>new BB(_0x4a2fa6['from']-_0x1a6132['start'],_0x4a2fa6['to']-_0x1a6132['start'])),_0x1a6132['bracketed'],_0x1a6132['target'],_0xc902d9[0x0]['from']))),_0x1a6132=_0x1a6132['prev'];}_0x5f4258&&!--_0x5f4258['depth']&&(_0x5f4258=_0x5f4258['prev']);}}}};function SH(_0x4fd85b,_0x4b9dab,_0x307d4c){for(let _0x5de69d of _0x4fd85b){if(_0x5de69d['from']>=_0x307d4c)break;if(_0x5de69d['to']>_0x4b9dab)return _0x5de69d['from']<=_0x4b9dab&&_0x5de69d['to']>=_0x307d4c?0x2:0x1;}return 0x0;}function IH(_0x502809,_0x93ad74,_0x3d98f0,_0x3e5f24,_0x3ab736,_0x264b16){if(_0x93ad74<_0x3d98f0){let _0x32d5c6=_0x502809['buffer'][_0x93ad74+0x1];_0x3e5f24['push'](_0x502809['slice'](_0x93ad74,_0x3d98f0,_0x32d5c6)),_0x3ab736['push'](_0x32d5c6-_0x264b16);}}function kH(_0x408ffa){let {node:_0x4e716a}=_0x408ffa,_0x2ed3d8=[],_0x4413d8=_0x4e716a['context']['buffer'];do{_0x2ed3d8['push'](_0x408ffa['index']),_0x408ffa['parent']();}while(!_0x408ffa['tree']);let _0x4110f8=_0x408ffa['tree'],_0x477d8e=_0x4110f8['children']['indexOf'](_0x4413d8),_0x336447=_0x4110f8['children'][_0x477d8e],_0x2bf258=_0x336447['buffer'],_0xc02a90=[_0x477d8e];_0x4110f8['children'][_0x477d8e]=function _0x5448b6(_0xce27b7,_0x350c7a,_0x331cdc,_0x4d6558,_0x5cd2c1,_0x119ed8){let _0x1d44c6=_0x2ed3d8[_0x119ed8],_0xe107da=[],_0x3ffd88=[];IH(_0x336447,_0xce27b7,_0x1d44c6,_0xe107da,_0x3ffd88,_0x4d6558);let _0x51afe6=_0x2bf258[_0x1d44c6+0x1],_0x555513=_0x2bf258[_0x1d44c6+0x2];_0xc02a90['push'](_0xe107da['length']);let _0x2570d2=_0x119ed8?_0x5448b6(_0x1d44c6+0x4,_0x2bf258[_0x1d44c6+0x3],_0x336447['set']['types'][_0x2bf258[_0x1d44c6]],_0x51afe6,_0x555513-_0x51afe6,_0x119ed8-0x1):_0x4e716a['toTree']();return _0xe107da['push'](_0x2570d2),_0x3ffd88['push'](_0x51afe6-_0x4d6558),IH(_0x336447,_0x2bf258[_0x1d44c6+0x3],_0x350c7a,_0xe107da,_0x3ffd88,_0x4d6558),new YB(_0x331cdc,_0xe107da,_0x3ffd88,_0x5cd2c1);}(0x0,_0x2bf258['length'],GB['none'],0x0,_0x336447['length'],_0x2ed3d8['length']-0x1);for(let _0x1d01d6 of _0xc02a90){let _0x4b4ef9=_0x408ffa['tree']['children'][_0x1d01d6],_0x3ac8de=_0x408ffa['tree']['positions'][_0x1d01d6];_0x408ffa['yield'](new sH(_0x4b4ef9,_0x3ac8de+_0x408ffa['from'],_0x1d01d6,_0x408ffa['_tree']));}}var xH=class{constructor(_0x5077a6,_0xe23bff){this['offset']=_0xe23bff,this['done']=!0x1,this['cursor']=_0x5077a6['cursor'](zB['IncludeAnonymous']|zB['IgnoreMounts']);}['moveTo'](_0x66294a){let {cursor:_0x2fc6d3}=this,_0x607892=_0x66294a-this['offset'];for(;!this['done']&&_0x2fc6d3['from']<_0x607892;)if(_0x2fc6d3['to']>=_0x66294a&&_0x2fc6d3['enter'](_0x607892,0x1,zB['IgnoreOverlays']|zB['ExcludeBuffers']));else{if(!(_0x2fc6d3['to']<=_0x66294a))break;_0x2fc6d3['next'](!0x1)||(this['done']=!0x0);}}['hasNode'](_0x2201eb){if(this['moveTo'](_0x2201eb['from']),!this['done']&&this['cursor']['from']+this['offset']==_0x2201eb['from']&&this['cursor']['tree'])for(let _0x3848ba=this['cursor']['tree'];;){if(_0x3848ba==_0x2201eb['tree'])return!0x0;if(!(_0x3848ba['children']['length']&&0x0==_0x3848ba['positions'][0x0]&&_0x3848ba['children'][0x0]instanceof YB))break;_0x3848ba=_0x3848ba['children'][0x0];}return!0x1;}},CH=class{constructor(_0x171b2f){var _0x41320c;if(this['fragments']=_0x171b2f,this['curTo']=0x0,this['fragI']=0x0,_0x171b2f['length']){let _0x2b1aca=this['curFrag']=_0x171b2f[0x0];this['curTo']=null!==(_0x41320c=_0x2b1aca['tree']['prop'](TH))&&void 0x0!==_0x41320c?_0x41320c:_0x2b1aca['to'],this['inner']=new xH(_0x2b1aca['tree'],-_0x2b1aca['offset']);}else this['curFrag']=this['inner']=null;}['hasNode'](_0x44dc93){for(;this['curFrag']&&_0x44dc93['from']>=this['curTo'];)this['nextFrag']();return this['curFrag']&&this['curFrag']['from']<=_0x44dc93['from']&&this['curTo']>=_0x44dc93['to']&&this['inner']['hasNode'](_0x44dc93);}nextFrag(){var _0xa269dd;if(this['fragI']++,this['fragI']==this['fragments']['length'])this['curFrag']=this['inner']=null;else{let _0x254d6f=this['curFrag']=this['fragments'][this['fragI']];this['curTo']=null!==(_0xa269dd=_0x254d6f['tree']['prop'](TH))&&void 0x0!==_0xa269dd?_0xa269dd:_0x254d6f['to'],this['inner']=new xH(_0x254d6f['tree'],-_0x254d6f['offset']);}}findMounts(_0x13099b,_0x3486e4){var _0x1234f8;let _0x4097a4=[];if(this['inner']){this['inner']['cursor']['moveTo'](_0x13099b,0x1);for(let _0x4bed60=this['inner']['cursor']['node'];_0x4bed60;_0x4bed60=_0x4bed60['parent']){let _0x5b8e51=null===(_0x1234f8=_0x4bed60['tree'])||void 0x0===_0x1234f8?void 0x0:_0x1234f8['prop'](HB['mounted']);if(_0x5b8e51&&_0x5b8e51['parser']==_0x3486e4)for(let _0x2a3e9b=this['fragI'];_0x2a3e9b<this['fragments']['length'];_0x2a3e9b++){let _0x28f660=this['fragments'][_0x2a3e9b];if(_0x28f660['from']>=_0x4bed60['to'])break;_0x28f660['tree']==this['curFrag']['tree']&&_0x4097a4['push']({'frag':_0x28f660,'pos':_0x4bed60['from']-_0x28f660['offset'],'mount':_0x5b8e51});}}}return _0x4097a4;}};function RH(_0x33b86a,_0x1d110e){let _0x2e2816=null,_0x47a506=_0x1d110e;for(let _0x43c4e8=0x1,_0x477918=0x0;_0x43c4e8<_0x33b86a['length'];_0x43c4e8++){let _0x2e82d0=_0x33b86a[_0x43c4e8-0x1]['to'],_0x49665c=_0x33b86a[_0x43c4e8]['from'];for(;_0x477918<_0x47a506['length'];_0x477918++){let _0xa183f1=_0x47a506[_0x477918];if(_0xa183f1['from']>=_0x49665c)break;_0xa183f1['to']<=_0x2e82d0||(_0x2e2816||(_0x47a506=_0x2e2816=_0x1d110e['slice']()),_0xa183f1['from']<_0x2e82d0?(_0x2e2816[_0x477918]=new BB(_0xa183f1['from'],_0x2e82d0),_0xa183f1['to']>_0x49665c&&_0x2e2816['splice'](_0x477918+0x1,0x0,new BB(_0x49665c,_0xa183f1['to']))):_0xa183f1['to']>_0x49665c?_0x2e2816[_0x477918--]=new BB(_0x49665c,_0xa183f1['to']):_0x2e2816['splice'](_0x477918--,0x1));}}return _0x47a506;}function PH(_0x2672fb,_0x210552,_0xa4ea62,_0x2274f4){let _0x3b6c00=0x0,_0x283fb1=0x0,_0x19b00d=!0x1,_0x5b8ad2=!0x1,_0x10654c=-0x3b9aca00,_0x2cb15b=[];for(;;){let _0xd7f0a8=_0x3b6c00==_0x2672fb['length']?0x3b9aca00:_0x19b00d?_0x2672fb[_0x3b6c00]['to']:_0x2672fb[_0x3b6c00]['from'],_0x4bd34e=_0x283fb1==_0x210552['length']?0x3b9aca00:_0x5b8ad2?_0x210552[_0x283fb1]['to']:_0x210552[_0x283fb1]['from'];if(_0x19b00d!=_0x5b8ad2){let _0x30226=Math['max'](_0x10654c,_0xa4ea62),_0xaed178=Math['min'](_0xd7f0a8,_0x4bd34e,_0x2274f4);_0x30226<_0xaed178&&_0x2cb15b['push'](new BB(_0x30226,_0xaed178));}if(_0x10654c=Math['min'](_0xd7f0a8,_0x4bd34e),0x3b9aca00==_0x10654c)break;_0xd7f0a8==_0x10654c&&(_0x19b00d?(_0x19b00d=!0x1,_0x3b6c00++):_0x19b00d=!0x0),_0x4bd34e==_0x10654c&&(_0x5b8ad2?(_0x5b8ad2=!0x1,_0x283fb1++):_0x5b8ad2=!0x0);}return _0x2cb15b;}function NH(_0x2f5c51,_0xa3b865){let _0x55a0a8=[];for(let {pos:_0x540a89,mount:_0x31d99b,frag:_0x3ac1b2}of _0x2f5c51){let _0x185472=_0x540a89+(_0x31d99b['overlay']?_0x31d99b['overlay'][0x0]['from']:0x0),_0x23c581=_0x185472+_0x31d99b['tree']['length'],_0xafd875=Math['max'](_0x3ac1b2['from'],_0x185472),_0x4de8d1=Math['min'](_0x3ac1b2['to'],_0x23c581);if(_0x31d99b['overlay']){let _0x68da71=PH(_0xa3b865,_0x31d99b['overlay']['map'](_0x24e3f6=>new BB(_0x24e3f6['from']+_0x540a89,_0x24e3f6['to']+_0x540a89)),_0xafd875,_0x4de8d1);for(let _0x2c416b=0x0,_0x833c73=_0xafd875;;_0x2c416b++){let _0x4ea1c5=_0x2c416b==_0x68da71['length'],_0x15d038=_0x4ea1c5?_0x4de8d1:_0x68da71[_0x2c416b]['from'];if(_0x15d038>_0x833c73&&_0x55a0a8['push'](new OH(_0x833c73,_0x15d038,_0x31d99b['tree'],-_0x185472,_0x3ac1b2['from']>=_0x833c73||_0x3ac1b2['openStart'],_0x3ac1b2['to']<=_0x15d038||_0x3ac1b2['openEnd'])),_0x4ea1c5)break;_0x833c73=_0x68da71[_0x2c416b]['to'];}}else _0x55a0a8['push'](new OH(_0xafd875,_0x4de8d1,_0x31d99b['tree'],-_0x185472,_0x3ac1b2['from']>=_0x185472||_0x3ac1b2['openStart'],_0x3ac1b2['to']<=_0x23c581||_0x3ac1b2['openEnd']));}return _0x55a0a8;}let MH=0x0;var LH=class Tag{constructor(_0x1781d5,_0x39508c,_0xe69a8a,_0x23f660){this['name']=_0x1781d5,this['set']=_0x39508c,this['base']=_0xe69a8a,this['modified']=_0x23f660,this['id']=MH++;}toString(){let {name:_0x275076}=this;for(let _0x508d32 of this['modified'])_0x508d32['name']&&(_0x275076=_0x508d32['name']+'('+_0x275076+')');return _0x275076;}static['define'](_0x516e7b,_0xe02b70){let _0x209aba='string'==typeof _0x516e7b?_0x516e7b:'?';if(_0x516e7b instanceof Tag&&(_0xe02b70=_0x516e7b),null==_0xe02b70?void 0x0:_0xe02b70['base'])throw new Error('Can\x20not\x20derive\x20from\x20a\x20modified\x20tag');let _0x303fac=new Tag(_0x209aba,[],null,[]);if(_0x303fac['set']['push'](_0x303fac),_0xe02b70){for(let t of _0xe02b70['set'])_0x303fac['set']['push'](t);}return _0x303fac;}static['defineModifier'](_0x1db538){let _0x412e73=new DH(_0x1db538);return _0x57f094=>_0x57f094['modified']['indexOf'](_0x412e73)>-0x1?_0x57f094:DH['get'](_0x57f094['base']||_0x57f094,_0x57f094['modified']['concat'](_0x412e73)['sort']((_0x248873,_0x17a7f6)=>_0x248873['id']-_0x17a7f6['id']));}};let $H=0x0;var DH=class Modifier{constructor(_0x25ce74){this['name']=_0x25ce74,this['instances']=[],this['id']=$H++;}static get(_0x1a3c57,_0x56d7a8){if(!_0x56d7a8['length'])return _0x1a3c57;let _0x3a957f=_0x56d7a8[0x0]['instances']['find'](t=>{return t['base']==_0x1a3c57&&(_0x14a0f6=_0x56d7a8,_0x30f001=t['modified'],_0x14a0f6['length']==_0x30f001['length']&&_0x14a0f6['every']((_0x36462d,_0x18dfd2)=>_0x36462d==_0x30f001[_0x18dfd2]));var _0x14a0f6,_0x30f001;});if(_0x3a957f)return _0x3a957f;let _0x19f8f3=[],_0x475817=new LH(_0x1a3c57['name'],_0x19f8f3,_0x1a3c57,_0x56d7a8);for(let _0x53acce of _0x56d7a8)_0x53acce['instances']['push'](_0x475817);let _0x1732bd=function(_0x40915a){let _0x3701bd=[[]];for(let _0x1302c0=0x0;_0x1302c0<_0x40915a['length'];_0x1302c0++)for(let _0x15f38c=0x0,_0x101eaa=_0x3701bd['length'];_0x15f38c<_0x101eaa;_0x15f38c++)_0x3701bd['push'](_0x3701bd[_0x15f38c]['concat'](_0x40915a[_0x1302c0]));return _0x3701bd['sort']((_0x507bef,_0x3d64a1)=>_0x3d64a1['length']-_0x507bef['length']);}(_0x56d7a8);for(let _0xec8dc of _0x1a3c57['set'])if(!_0xec8dc['modified']['length']){for(let _0x47208c of _0x1732bd)_0x19f8f3['push'](Modifier['get'](_0xec8dc,_0x47208c));}return _0x475817;}};function QH(_0x385776){let _0x57b92e=Object['create'](null);for(let _0x7e0a27 in _0x385776){let _0x31ab7a=_0x385776[_0x7e0a27];Array['isArray'](_0x31ab7a)||(_0x31ab7a=[_0x31ab7a]);for(let _0x541753 of _0x7e0a27['split']('\x20'))if(_0x541753){let _0x566aee=[],_0x46e964=0x2,_0x10362f=_0x541753;for(let _0x2a4d55=0x0;;){if('...'==_0x10362f&&_0x2a4d55>0x0&&_0x2a4d55+0x3==_0x541753['length']){_0x46e964=0x1;break;}let _0x236fe3=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/['exec'](_0x10362f);if(!_0x236fe3)throw new RangeError('Invalid\x20path:\x20'+_0x541753);if(_0x566aee['push']('*'==_0x236fe3[0x0]?'':'\x22'==_0x236fe3[0x0][0x0]?JSON['parse'](_0x236fe3[0x0]):_0x236fe3[0x0]),_0x2a4d55+=_0x236fe3[0x0]['length'],_0x2a4d55==_0x541753['length'])break;let _0x1fcec5=_0x541753[_0x2a4d55++];if(_0x2a4d55==_0x541753['length']&&'!'==_0x1fcec5){_0x46e964=0x0;break;}if('/'!=_0x1fcec5)throw new RangeError('Invalid\x20path:\x20'+_0x541753);_0x10362f=_0x541753['slice'](_0x2a4d55);}let _0x50beda=_0x566aee['length']-0x1,_0x14a294=_0x566aee[_0x50beda];if(!_0x14a294)throw new RangeError('Invalid\x20path:\x20'+_0x541753);_0x57b92e[_0x14a294]=new UH(_0x31ab7a,_0x46e964,_0x50beda>0x0?_0x566aee['slice'](0x0,_0x50beda):null)['sort'](_0x57b92e[_0x14a294]);}}return jH['add'](_0x57b92e);}const jH=new HB({'combine'(_0x4d05be,_0x5def92){let _0x1ea988,_0x4c08eb,_0x23c312;for(;_0x4d05be||_0x5def92;){if(!_0x4d05be||_0x5def92&&_0x4d05be['depth']>=_0x5def92['depth']?(_0x23c312=_0x5def92,_0x5def92=_0x5def92['next']):(_0x23c312=_0x4d05be,_0x4d05be=_0x4d05be['next']),_0x1ea988&&_0x1ea988['mode']==_0x23c312['mode']&&!_0x23c312['context']&&!_0x1ea988['context'])continue;let _0x16f80d=new UH(_0x23c312['tags'],_0x23c312['mode'],_0x23c312['context']);_0x1ea988?_0x1ea988['next']=_0x16f80d:_0x4c08eb=_0x16f80d,_0x1ea988=_0x16f80d;}return _0x4c08eb;}});var UH=class{constructor(_0x3abfa3,_0x19cb5a,_0x2f1625,_0x5145eb){this['tags']=_0x3abfa3,this['mode']=_0x19cb5a,this['context']=_0x2f1625,this['next']=_0x5145eb;}get['opaque'](){return 0x0==this['mode'];}get inherit(){return 0x1==this['mode'];}sort(_0x1b0890){return!_0x1b0890||_0x1b0890['depth']<this['depth']?(this['next']=_0x1b0890,this):(_0x1b0890['next']=this['sort'](_0x1b0890['next']),_0x1b0890);}get depth(){return this['context']?this['context']['length']:0x0;}};function VH(_0x50ec0b,_0x145930){let _0x3a487c=Object['create'](null);for(let _0x33c026 of _0x50ec0b)if(Array['isArray'](_0x33c026['tag'])){for(let _0x399b3f of _0x33c026['tag'])_0x3a487c[_0x399b3f['id']]=_0x33c026['class'];}else _0x3a487c[_0x33c026['tag']['id']]=_0x33c026['class'];let {scope:_0x394a44,all:_0x3bf85e=null}=_0x145930||{};return{'style':_0x4a4b56=>{let _0x3dd6b0=_0x3bf85e;for(let _0x4272c7 of _0x4a4b56)for(let _0x34323e of _0x4272c7['set']){let _0x5563ce=_0x3a487c[_0x34323e['id']];if(_0x5563ce){_0x3dd6b0=_0x3dd6b0?_0x3dd6b0+'\x20'+_0x5563ce:_0x5563ce;break;}}return _0x3dd6b0;},'scope':_0x394a44};}function BH(_0x434d34,_0x1fd259,_0x2fac08,_0x144de4=0x0,_0x4af131=_0x434d34['length']){let _0x4f9ce0=new HH(_0x144de4,Array['isArray'](_0x1fd259)?_0x1fd259:[_0x1fd259],_0x2fac08);_0x4f9ce0['highlightRange'](_0x434d34['cursor'](),_0x144de4,_0x4af131,'',_0x4f9ce0['highlighters']),_0x4f9ce0['flush'](_0x4af131);}UH['empty']=new UH([],0x2,null);var HH=class{constructor(_0x3777a1,_0x37e934,_0x3931d3){this['at']=_0x3777a1,this['highlighters']=_0x37e934,this['span']=_0x3931d3,this['class']='';}startSpan(_0x3213f2,_0xc8f344){_0xc8f344!=this['class']&&(this['flush'](_0x3213f2),_0x3213f2>this['at']&&(this['at']=_0x3213f2),this['class']=_0xc8f344);}['flush'](_0x59eb01){_0x59eb01>this['at']&&this['class']&&this['span'](this['at'],_0x59eb01,this['class']);}highlightRange(_0x40f2db,_0x3d2cb0,_0x5a2509,_0x3add9b,_0x527c9e){let {type:_0x13ad0b,from:_0x373352,to:_0x46fb45}=_0x40f2db;if(_0x373352>=_0x5a2509||_0x46fb45<=_0x3d2cb0)return;_0x13ad0b['isTop']&&(_0x527c9e=this['highlighters']['filter'](_0x49df3b=>!_0x49df3b['scope']||_0x49df3b['scope'](_0x13ad0b)));let _0x5cb11d=_0x3add9b,_0x310a77=function(_0x4b52e1){let _0x3a6f58=_0x4b52e1['type']['prop'](jH);for(;_0x3a6f58&&_0x3a6f58['context']&&!_0x4b52e1['matchContext'](_0x3a6f58['context']);)_0x3a6f58=_0x3a6f58['next'];return _0x3a6f58||null;}(_0x40f2db)||UH['empty'],_0x45a283=function(_0x25cd1c,_0x35de8c){let _0x238992=null;for(let _0x13e379 of _0x25cd1c){let _0x49a1b8=_0x13e379['style'](_0x35de8c);_0x49a1b8&&(_0x238992=_0x238992?_0x238992+'\x20'+_0x49a1b8:_0x49a1b8);}return _0x238992;}(_0x527c9e,_0x310a77['tags']);if(_0x45a283&&(_0x5cb11d&&(_0x5cb11d+='\x20'),_0x5cb11d+=_0x45a283,0x1==_0x310a77['mode']&&(_0x3add9b+=(_0x3add9b?'\x20':'')+_0x45a283)),this['startSpan'](Math['max'](_0x3d2cb0,_0x373352),_0x5cb11d),_0x310a77['opaque'])return;let _0x36d072=_0x40f2db['tree']&&_0x40f2db['tree']['prop'](HB['mounted']);if(_0x36d072&&_0x36d072['overlay']){let _0x5651ef=_0x40f2db['node']['enter'](_0x36d072['overlay'][0x0]['from']+_0x373352,0x1),_0x33c754=this['highlighters']['filter'](_0x179b7d=>!_0x179b7d['scope']||_0x179b7d['scope'](_0x36d072['tree']['type'])),_0xb87a52=_0x40f2db['firstChild']();for(let _0x450f1f=0x0,_0x382108=_0x373352;;_0x450f1f++){let _0x203ca3=_0x450f1f<_0x36d072['overlay']['length']?_0x36d072['overlay'][_0x450f1f]:null,_0x596cc5=_0x203ca3?_0x203ca3['from']+_0x373352:_0x46fb45,_0x1dd82f=Math['max'](_0x3d2cb0,_0x382108),_0xad0107=Math['min'](_0x5a2509,_0x596cc5);if(_0x1dd82f<_0xad0107&&_0xb87a52){for(;_0x40f2db['from']<_0xad0107&&(this['highlightRange'](_0x40f2db,_0x1dd82f,_0xad0107,_0x3add9b,_0x527c9e),this['startSpan'](Math['min'](_0xad0107,_0x40f2db['to']),_0x5cb11d),!(_0x40f2db['to']>=_0x596cc5)&&_0x40f2db['nextSibling']()););}if(!_0x203ca3||_0x596cc5>_0x5a2509)break;_0x382108=_0x203ca3['to']+_0x373352,_0x382108>_0x3d2cb0&&(this['highlightRange'](_0x5651ef['cursor'](),Math['max'](_0x3d2cb0,_0x203ca3['from']+_0x373352),Math['min'](_0x5a2509,_0x382108),'',_0x33c754),this['startSpan'](Math['min'](_0x5a2509,_0x382108),_0x5cb11d));}_0xb87a52&&_0x40f2db['parent']();}else{if(_0x40f2db['firstChild']()){_0x36d072&&(_0x3add9b='');do{if(!(_0x40f2db['to']<=_0x3d2cb0)){if(_0x40f2db['from']>=_0x5a2509)break;this['highlightRange'](_0x40f2db,_0x3d2cb0,_0x5a2509,_0x3add9b,_0x527c9e),this['startSpan'](Math['min'](_0x5a2509,_0x40f2db['to']),_0x5cb11d);}}while(_0x40f2db['nextSibling']());_0x40f2db['parent']();}}}};const t=LH['define'],FH=t(),ZH=t(),GH=t(ZH),XH=t(ZH),qH=t(),WH=t(qH),zH=t(qH),YH=t(),KH=t(YH),JH=t(),tF=t(),eF=t(),iF=t(eF),sF=t(),nF={'comment':FH,'lineComment':t(FH),'blockComment':t(FH),'docComment':t(FH),'name':ZH,'variableName':t(ZH),'typeName':GH,'tagName':t(GH),'propertyName':XH,'attributeName':t(XH),'className':t(ZH),'labelName':t(ZH),'namespace':t(ZH),'macroName':t(ZH),'literal':qH,'string':WH,'docString':t(WH),'character':t(WH),'attributeValue':t(WH),'number':zH,'integer':t(zH),'float':t(zH),'bool':t(qH),'regexp':t(qH),'escape':t(qH),'color':t(qH),'url':t(qH),'keyword':JH,'self':t(JH),'null':t(JH),'atom':t(JH),'unit':t(JH),'modifier':t(JH),'operatorKeyword':t(JH),'controlKeyword':t(JH),'definitionKeyword':t(JH),'moduleKeyword':t(JH),'operator':tF,'derefOperator':t(tF),'arithmeticOperator':t(tF),'logicOperator':t(tF),'bitwiseOperator':t(tF),'compareOperator':t(tF),'updateOperator':t(tF),'definitionOperator':t(tF),'typeOperator':t(tF),'controlOperator':t(tF),'punctuation':eF,'separator':t(eF),'bracket':iF,'angleBracket':t(iF),'squareBracket':t(iF),'paren':t(iF),'brace':t(iF),'content':YH,'heading':KH,'heading1':t(KH),'heading2':t(KH),'heading3':t(KH),'heading4':t(KH),'heading5':t(KH),'heading6':t(KH),'contentSeparator':t(YH),'list':t(YH),'quote':t(YH),'emphasis':t(YH),'strong':t(YH),'link':t(YH),'monospace':t(YH),'strikethrough':t(YH),'inserted':t(),'deleted':t(),'changed':t(),'invalid':t(),'meta':sF,'documentMeta':t(sF),'annotation':t(sF),'processingInstruction':t(sF),'definition':LH['defineModifier']('definition'),'constant':LH['defineModifier']('constant'),'function':LH['defineModifier']('function'),'standard':LH['defineModifier']('standard'),'local':LH['defineModifier']('local'),'special':LH['defineModifier']('special')};for(let e in nF){let s=nF[e];s instanceof LH&&(s['name']=e);}VH([{'tag':nF['link'],'class':'tok-link'},{'tag':nF['heading'],'class':'tok-heading'},{'tag':nF['emphasis'],'class':'tok-emphasis'},{'tag':nF['strong'],'class':'tok-strong'},{'tag':nF['keyword'],'class':'tok-keyword'},{'tag':nF['atom'],'class':'tok-atom'},{'tag':nF['bool'],'class':'tok-bool'},{'tag':nF['url'],'class':'tok-url'},{'tag':nF['labelName'],'class':'tok-labelName'},{'tag':nF['inserted'],'class':'tok-inserted'},{'tag':nF['deleted'],'class':'tok-deleted'},{'tag':nF['literal'],'class':'tok-literal'},{'tag':nF['string'],'class':'tok-string'},{'tag':nF['number'],'class':'tok-number'},{'tag':[nF['regexp'],nF['escape'],nF['special'](nF['string'])],'class':'tok-string2'},{'tag':nF['variableName'],'class':'tok-variableName'},{'tag':nF['local'](nF['variableName']),'class':'tok-variableName\x20tok-local'},{'tag':nF['definition'](nF['variableName']),'class':'tok-variableName\x20tok-definition'},{'tag':nF['special'](nF['variableName']),'class':'tok-variableName2'},{'tag':nF['definition'](nF['propertyName']),'class':'tok-propertyName\x20tok-definition'},{'tag':nF['typeName'],'class':'tok-typeName'},{'tag':nF['namespace'],'class':'tok-namespace'},{'tag':nF['className'],'class':'tok-className'},{'tag':nF['macroName'],'class':'tok-macroName'},{'tag':nF['propertyName'],'class':'tok-propertyName'},{'tag':nF['operator'],'class':'tok-operator'},{'tag':nF['comment'],'class':'tok-comment'},{'tag':nF['meta'],'class':'tok-meta'},{'tag':nF['invalid'],'class':'tok-invalid'},{'tag':nF['punctuation'],'class':'tok-punctuation'}]);var rF;const oF=new HB();function aF(_0x24f2b0){return LL['define']({'combine':_0x24f2b0?_0x3dd4cf=>_0x3dd4cf['concat'](_0x24f2b0):void 0x0});}const cF=new HB();var lF=class{constructor(_0x1c7d12,_0x2ef8cf,_0x5ac193=[],_0x4bf8ee=''){this['data']=_0x1c7d12,this['name']=_0x4bf8ee,E$['prototype']['hasOwnProperty']('tree')||Object['defineProperty'](E$['prototype'],'tree',{'get'(){return dF(this);}}),this['parser']=_0x2ef8cf,this['extension']=[vF['of'](this),E$['languageData']['of']((_0x203052,_0x29fb1b,_0x196a1a)=>{let _0x1ee061=hF(_0x203052,_0x29fb1b,_0x196a1a),_0x90daa2=_0x1ee061['type']['prop'](oF);if(!_0x90daa2)return[];let _0x24b15c=_0x203052['facet'](_0x90daa2),_0x559d13=_0x1ee061['type']['prop'](cF);if(_0x559d13){let _0x4ab6e0=_0x1ee061['resolve'](_0x29fb1b-_0x1ee061['from'],_0x196a1a);for(let _0x2e121d of _0x559d13)if(_0x2e121d['test'](_0x4ab6e0,_0x203052)){let _0x610e59=_0x203052['facet'](_0x2e121d['facet']);return'replace'==_0x2e121d['type']?_0x610e59:_0x610e59['concat'](_0x24b15c);}}return _0x24b15c;})]['concat'](_0x5ac193);}isActiveAt(_0x442e81,_0x59bcf2,_0x32bb48=-0x1){return hF(_0x442e81,_0x59bcf2,_0x32bb48)['type']['prop'](oF)==this['data'];}['findRegions'](_0xa2e5ff){let _0x338741=_0xa2e5ff['facet'](vF);if((null==_0x338741?void 0x0:_0x338741['data'])==this['data'])return[{'from':0x0,'to':_0xa2e5ff['doc']['length']}];if(!_0x338741||!_0x338741['allowsNesting'])return[];let _0x4e75ef=[],_0x1185fc=(_0x60566b,_0x5dac31)=>{if(_0x60566b['prop'](oF)==this['data'])return void _0x4e75ef['push']({'from':_0x5dac31,'to':_0x5dac31+_0x60566b['length']});let _0x258992=_0x60566b['prop'](HB['mounted']);if(_0x258992){if(_0x258992['tree']['prop'](oF)==this['data']){if(_0x258992['overlay']){for(let _0x529798 of _0x258992['overlay'])_0x4e75ef['push']({'from':_0x529798['from']+_0x5dac31,'to':_0x529798['to']+_0x5dac31});}else _0x4e75ef['push']({'from':_0x5dac31,'to':_0x5dac31+_0x60566b['length']});return;}if(_0x258992['overlay']){let _0x51cf58=_0x4e75ef['length'];if(_0x1185fc(_0x258992['tree'],_0x258992['overlay'][0x0]['from']+_0x5dac31),_0x4e75ef['length']>_0x51cf58)return;}}for(let _0x4fea75=0x0;_0x4fea75<_0x60566b['children']['length'];_0x4fea75++){let _0x4e3b50=_0x60566b['children'][_0x4fea75];_0x4e3b50 instanceof YB&&_0x1185fc(_0x4e3b50,_0x60566b['positions'][_0x4fea75]+_0x5dac31);}};return _0x1185fc(dF(_0xa2e5ff),0x0),_0x4e75ef;}get allowsNesting(){return!0x0;}};function hF(_0x55f64e,_0x505f3c,_0x830735){let _0x25c15f=_0x55f64e['facet'](vF),_0x373530=dF(_0x55f64e)['topNode'];if(!_0x25c15f||_0x25c15f['allowsNesting']){for(let _0x4a4815=_0x373530;_0x4a4815;_0x4a4815=_0x4a4815['enter'](_0x505f3c,_0x830735,zB['ExcludeBuffers']|zB['EnterBracketed']))_0x4a4815['type']['isTop']&&(_0x373530=_0x4a4815);}return _0x373530;}lF['setState']=u$['define']();var uF=class LRLanguage extends lF{constructor(_0x76020e,_0x3e9036,_0x55a01b){super(_0x76020e,_0x3e9036,[],_0x55a01b),this['parser']=_0x3e9036;}static['define'](_0xd905cc){let _0x3ca56e=aF(_0xd905cc['languageData']);return new LRLanguage(_0x3ca56e,_0xd905cc['parser']['configure']({'props':[oF['add'](_0x174d2c=>_0x174d2c['isTop']?_0x3ca56e:void 0x0)]}),_0xd905cc['name']);}['configure'](_0x4520b6,_0x4b08ea){return new LRLanguage(this['data'],this['parser']['configure'](_0x4520b6),_0x4b08ea||this['name']);}get allowsNesting(){return this['parser']['hasWrappers']();}};function dF(_0xf485){let _0x2b45ed=_0xf485['field'](lF['state'],!0x1);return _0x2b45ed?_0x2b45ed['tree']:YB['empty'];}var fF=class{constructor(_0x219e32){this['doc']=_0x219e32,this['cursorPos']=0x0,this['string']='',this['cursor']=_0x219e32['iter']();}get length(){return this['doc']['length'];}['syncTo'](_0x52071c){return this['string']=this['cursor']['next'](_0x52071c-this['cursorPos'])['value'],this['cursorPos']=_0x52071c+this['string']['length'],this['cursorPos']-this['string']['length'];}['chunk'](_0x4b16dd){return this['syncTo'](_0x4b16dd),this['string'];}get['lineChunks'](){return!0x0;}['read'](_0x2d2a9a,_0x2ed10e){let _0x2c3241=this['cursorPos']-this['string']['length'];return _0x2d2a9a<_0x2c3241||_0x2ed10e>=this['cursorPos']?this['doc']['sliceString'](_0x2d2a9a,_0x2ed10e):this['string']['slice'](_0x2d2a9a-_0x2c3241,_0x2ed10e-_0x2c3241);}};let mF=null;var pF=class ParseContext{constructor(_0x24061d,_0xc65b45,_0x2e9b2f=[],_0x4c14cf,_0x11ba6e,_0x2fa50f,_0x11f200,_0x14e2eb){this['parser']=_0x24061d,this['state']=_0xc65b45,this['fragments']=_0x2e9b2f,this['tree']=_0x4c14cf,this['treeLen']=_0x11ba6e,this['viewport']=_0x2fa50f,this['skipped']=_0x11f200,this['scheduleOn']=_0x14e2eb,this['parse']=null,this['tempSkipped']=[];}static create(_0x1a8b1a,_0x1283b5,_0x3311aa){return new ParseContext(_0x1a8b1a,_0x1283b5,[],YB['empty'],0x0,_0x3311aa,[],null);}startParse(){return this['parser']['startParse'](new fF(this['state']['doc']),this['fragments']);}['work'](_0x226a15,_0x4dfb13){return null!=_0x4dfb13&&_0x4dfb13>=this['state']['doc']['length']&&(_0x4dfb13=void 0x0),this['tree']!=YB['empty']&&this['isDone'](null!=_0x4dfb13?_0x4dfb13:this['state']['doc']['length'])?(this['takeTree'](),!0x0):this['withContext'](()=>{var _0x286508;if('number'==typeof _0x226a15){let _0x3c6f2d=Date['now']()+_0x226a15;_0x226a15=()=>Date['now']()>_0x3c6f2d;}for(this['parse']||(this['parse']=this['startParse']()),null!=_0x4dfb13&&(null==this['parse']['stoppedAt']||this['parse']['stoppedAt']>_0x4dfb13)&&_0x4dfb13<this['state']['doc']['length']&&this['parse']['stopAt'](_0x4dfb13);;){let _0x348965=this['parse']['advance']();if(_0x348965){if(this['fragments']=this['withoutTempSkipped'](OH['addTree'](_0x348965,this['fragments'],null!=this['parse']['stoppedAt'])),this['treeLen']=null!==(_0x286508=this['parse']['stoppedAt'])&&void 0x0!==_0x286508?_0x286508:this['state']['doc']['length'],this['tree']=_0x348965,this['parse']=null,!(this['treeLen']<(null!=_0x4dfb13?_0x4dfb13:this['state']['doc']['length'])))return!0x0;this['parse']=this['startParse']();}if(_0x226a15())return!0x1;}});}takeTree(){let _0x5a1b57,_0xe22cd9;this['parse']&&(_0x5a1b57=this['parse']['parsedPos'])>=this['treeLen']&&((null==this['parse']['stoppedAt']||this['parse']['stoppedAt']>_0x5a1b57)&&this['parse']['stopAt'](_0x5a1b57),this['withContext'](()=>{for(;!(_0xe22cd9=this['parse']['advance']()););}),this['treeLen']=_0x5a1b57,this['tree']=_0xe22cd9,this['fragments']=this['withoutTempSkipped'](OH['addTree'](this['tree'],this['fragments'],!0x0)),this['parse']=null);}withContext(_0x473b62){let _0x33beca=mF;mF=this;try{return _0x473b62();}finally{mF=_0x33beca;}}withoutTempSkipped(_0x59fb1d){for(let _0x50636f;_0x50636f=this['tempSkipped']['pop']();)_0x59fb1d=gF(_0x59fb1d,_0x50636f['from'],_0x50636f['to']);return _0x59fb1d;}['changes'](_0x10be7d,_0x2e52d6){let {fragments:_0x2ea59c,tree:_0x5b1ce8,treeLen:_0x41c5a0,viewport:_0x546a35,skipped:_0x3d9a0f}=this;if(this['takeTree'](),!_0x10be7d['empty']){let _0x6c2720=[];if(_0x10be7d['iterChangedRanges']((_0x5a40e7,_0x3e1842,_0x557ba0,_0x75520d)=>_0x6c2720['push']({'fromA':_0x5a40e7,'toA':_0x3e1842,'fromB':_0x557ba0,'toB':_0x75520d})),_0x2ea59c=OH['applyChanges'](_0x2ea59c,_0x6c2720),_0x5b1ce8=YB['empty'],_0x41c5a0=0x0,_0x546a35={'from':_0x10be7d['mapPos'](_0x546a35['from'],-0x1),'to':_0x10be7d['mapPos'](_0x546a35['to'],0x1)},this['skipped']['length']){_0x3d9a0f=[];for(let _0x3e5146 of this['skipped']){let _0x3f69fb=_0x10be7d['mapPos'](_0x3e5146['from'],0x1),_0x9c80c5=_0x10be7d['mapPos'](_0x3e5146['to'],-0x1);_0x3f69fb<_0x9c80c5&&_0x3d9a0f['push']({'from':_0x3f69fb,'to':_0x9c80c5});}}}return new ParseContext(this['parser'],_0x2e52d6,_0x2ea59c,_0x5b1ce8,_0x41c5a0,_0x546a35,_0x3d9a0f,this['scheduleOn']);}updateViewport(_0x4fa9a5){if(this['viewport']['from']==_0x4fa9a5['from']&&this['viewport']['to']==_0x4fa9a5['to'])return!0x1;this['viewport']=_0x4fa9a5;let _0x5ac2e9=this['skipped']['length'];for(let _0x23c296=0x0;_0x23c296<this['skipped']['length'];_0x23c296++){let {from:_0x2235cc,to:_0x44f902}=this['skipped'][_0x23c296];_0x2235cc<_0x4fa9a5['to']&&_0x44f902>_0x4fa9a5['from']&&(this['fragments']=gF(this['fragments'],_0x2235cc,_0x44f902),this['skipped']['splice'](_0x23c296--,0x1));}return!(this['skipped']['length']>=_0x5ac2e9)&&(this['reset'](),!0x0);}reset(){this['parse']&&(this['takeTree'](),this['parse']=null);}skipUntilInView(_0x368442,_0xc177eb){this['skipped']['push']({'from':_0x368442,'to':_0xc177eb});}static getSkippingParser(_0x3a6d39){return new class extends wH{createParse(_0x58f04a,_0xed5a4c,_0x41174b){let _0x3a8130=_0x41174b[0x0]['from'],_0x39746e=_0x41174b[_0x41174b['length']-0x1]['to'];return{'parsedPos':_0x3a8130,'advance'(){let _0x4789c2=mF;if(_0x4789c2){for(let _0x42bdb0 of _0x41174b)_0x4789c2['tempSkipped']['push'](_0x42bdb0);_0x3a6d39&&(_0x4789c2['scheduleOn']=_0x4789c2['scheduleOn']?Promise['all']([_0x4789c2['scheduleOn'],_0x3a6d39]):_0x3a6d39);}return this['parsedPos']=_0x39746e,new YB(GB['none'],[],[],_0x39746e-_0x3a8130);},'stoppedAt':null,'stopAt'(){}};}}();}['isDone'](_0x165e9f){_0x165e9f=Math['min'](_0x165e9f,this['state']['doc']['length']);let _0x1d36e1=this['fragments'];return this['treeLen']>=_0x165e9f&&_0x1d36e1['length']&&0x0==_0x1d36e1[0x0]['from']&&_0x1d36e1[0x0]['to']>=_0x165e9f;}static get(){return mF;}};function gF(_0x1f932d,_0x371180,_0x1f6743){return OH['applyChanges'](_0x1f932d,[{'fromA':_0x371180,'toA':_0x1f6743,'fromB':_0x371180,'toB':_0x1f6743}]);}var OF=class LanguageState{constructor(_0x4fc1b8){this['context']=_0x4fc1b8,this['tree']=_0x4fc1b8['tree'];}['apply'](_0x56ee43){if(!_0x56ee43['docChanged']&&this['tree']==this['context']['tree'])return this;let _0x119d3a=this['context']['changes'](_0x56ee43['changes'],_0x56ee43['state']),_0x45fd5a=this['context']['treeLen']==_0x56ee43['startState']['doc']['length']?void 0x0:Math['max'](_0x56ee43['changes']['mapPos'](this['context']['treeLen']),_0x119d3a['viewport']['to']);return _0x119d3a['work'](0x14,_0x45fd5a)||_0x119d3a['takeTree'](),new LanguageState(_0x119d3a);}static init(_0x22920c){let _0x159b3d=Math['min'](0xbb8,_0x22920c['doc']['length']),_0xeec50e=pF['create'](_0x22920c['facet'](vF)['parser'],_0x22920c,{'from':0x0,'to':_0x159b3d});return _0xeec50e['work'](0x14,_0x159b3d)||_0xeec50e['takeTree'](),new LanguageState(_0xeec50e);}};lF['state']=BL['define']({'create':OF['init'],'update'(_0x3bc474,_0x16363d){for(let _0x53be82 of _0x16363d['effects'])if(_0x53be82['is'](lF['setState']))return _0x53be82['value'];return _0x16363d['startState']['facet'](vF)!=_0x16363d['state']['facet'](vF)?OF['init'](_0x16363d['state']):_0x3bc474['apply'](_0x16363d);}});let wF=_0x2cb856=>{let _0x1eaaea=setTimeout(()=>_0x2cb856(),0x1f4);return()=>clearTimeout(_0x1eaaea);};'undefined'!=typeof requestIdleCallback&&(wF=_0x149175=>{let _0xafa07a=-0x1,_0x972f3a=setTimeout(()=>{_0xafa07a=requestIdleCallback(_0x149175,{'timeout':0x190});},0x64);return()=>_0xafa07a<0x0?clearTimeout(_0x972f3a):cancelIdleCallback(_0xafa07a);});const bF='undefined'!=typeof navigator&&(null===(rF=navigator['scheduling'])||void 0x0===rF?void 0x0:rF['isInputPending'])?()=>navigator['scheduling']['isInputPending']():null,yF=LQ['fromClass'](class ParseWorker{constructor(_0x3c9a93){this['view']=_0x3c9a93,this['working']=null,this['workScheduled']=0x0,this['chunkEnd']=-0x1,this['chunkBudget']=-0x1,this['work']=this['work']['bind'](this),this['scheduleWork']();}update(_0x18c6ad){let _0x2ba52b=this['view']['state']['field'](lF['state'])['context'];(_0x2ba52b['updateViewport'](_0x18c6ad['view']['viewport'])||this['view']['viewport']['to']>_0x2ba52b['treeLen'])&&this['scheduleWork'](),(_0x18c6ad['docChanged']||_0x18c6ad['selectionSet'])&&(this['view']['hasFocus']&&(this['chunkBudget']+=0x32),this['scheduleWork']()),this['checkAsyncSchedule'](_0x2ba52b);}['scheduleWork'](){if(this['working'])return;let {state:_0x28837c}=this['view'],_0x386ea7=_0x28837c['field'](lF['state']);_0x386ea7['tree']==_0x386ea7['context']['tree']&&_0x386ea7['context']['isDone'](_0x28837c['doc']['length'])||(this['working']=wF(this['work']));}['work'](_0x4db556){this['working']=null;let _0x1ddc2d=Date['now']();if(this['chunkEnd']<_0x1ddc2d&&(this['chunkEnd']<0x0||this['view']['hasFocus'])&&(this['chunkEnd']=_0x1ddc2d+0x7530,this['chunkBudget']=0xbb8),this['chunkBudget']<=0x0)return;let {state:_0x277b0b,viewport:{to:_0x4ffcea}}=this['view'],_0x160613=_0x277b0b['field'](lF['state']);if(_0x160613['tree']==_0x160613['context']['tree']&&_0x160613['context']['isDone'](_0x4ffcea+0x186a0))return;let _0x874eb5=Date['now']()+Math['min'](this['chunkBudget'],0x64,_0x4db556&&!bF?Math['max'](0x19,_0x4db556['timeRemaining']()-0x5):0x3b9aca00),_0x455580=_0x160613['context']['treeLen']<_0x4ffcea&&_0x277b0b['doc']['length']>_0x4ffcea+0x3e8,_0x42b4bc=_0x160613['context']['work'](()=>bF&&bF()||Date['now']()>_0x874eb5,_0x4ffcea+(_0x455580?0x0:0x186a0));this['chunkBudget']-=Date['now']()-_0x1ddc2d,(_0x42b4bc||this['chunkBudget']<=0x0)&&(_0x160613['context']['takeTree'](),this['view']['dispatch']({'effects':lF['setState']['of'](new OF(_0x160613['context']))})),this['chunkBudget']>0x0&&(!_0x42b4bc||_0x455580)&&this['scheduleWork'](),this['checkAsyncSchedule'](_0x160613['context']);}['checkAsyncSchedule'](_0x4117de){_0x4117de['scheduleOn']&&(this['workScheduled']++,_0x4117de['scheduleOn']['then'](()=>this['scheduleWork']())['catch'](_0x44158e=>RQ(this['view']['state'],_0x44158e))['then'](()=>this['workScheduled']--),_0x4117de['scheduleOn']=null);}destroy(){this['working']&&this['working']();}['isWorking'](){return!!(this['working']||this['workScheduled']>0x0);}},{'eventHandlers':{'focus'(){this['scheduleWork']();}}}),vF=LL['define']({'combine':_0x3d04b1=>_0x3d04b1['length']?_0x3d04b1[0x0]:null,'enables':_0x2f32cd=>[lF['state'],yF,oV['contentAttributes']['compute']([_0x2f32cd],_0xdf4b00=>{let _0x3ac5c4=_0xdf4b00['facet'](_0x2f32cd);return _0x3ac5c4&&_0x3ac5c4['name']?{'data-language':_0x3ac5c4['name']}:{};})]});var _F=class{constructor(_0x4b0f43,_0x2c45fc=[]){this['language']=_0x4b0f43,this['support']=_0x2c45fc,this['extension']=[_0x4b0f43,_0x2c45fc];}},EF=class LanguageDescription{constructor(_0x3734a3,_0x4c9a99,_0x5f10cd,_0x519f63,_0x18b725,_0x36c60b=void 0x0){this['name']=_0x3734a3,this['alias']=_0x4c9a99,this['extensions']=_0x5f10cd,this['filename']=_0x519f63,this['loadFunc']=_0x18b725,this['support']=_0x36c60b,this['loading']=null;}['load'](){return this['loading']||(this['loading']=this['loadFunc']()['then'](_0x4af09b=>this['support']=_0x4af09b,_0x1e1dca=>{throw this['loading']=null,_0x1e1dca;}));}static['of'](_0xcdac91){let {load:_0x3d7b71,support:_0x4cc50b}=_0xcdac91;if(!_0x3d7b71){if(!_0x4cc50b)throw new RangeError('Must\x20pass\x20either\x20\x27load\x27\x20or\x20\x27support\x27\x20to\x20LanguageDescription.of');_0x3d7b71=()=>Promise['resolve'](_0x4cc50b);}return new LanguageDescription(_0xcdac91['name'],(_0xcdac91['alias']||[])['concat'](_0xcdac91['name'])['map'](_0xbf7c13=>_0xbf7c13['toLowerCase']()),_0xcdac91['extensions']||[],_0xcdac91['filename'],_0x3d7b71,_0x4cc50b);}static matchFilename(_0x20b117,_0x280a14){for(let _0x53178d of _0x20b117)if(_0x53178d['filename']&&_0x53178d['filename']['test'](_0x280a14))return _0x53178d;let _0x30780f=/\.([^.]+)$/['exec'](_0x280a14);if(_0x30780f){for(let _0x1d0ed8 of _0x20b117)if(_0x1d0ed8['extensions']['indexOf'](_0x30780f[0x1])>-0x1)return _0x1d0ed8;}return null;}static matchLanguageName(_0x1dffe2,_0x4843ed,_0x5a915c=!0x0){_0x4843ed=_0x4843ed['toLowerCase']();for(let _0x4c8884 of _0x1dffe2)if(_0x4c8884['alias']['some'](_0x4ceec3=>_0x4ceec3==_0x4843ed))return _0x4c8884;if(_0x5a915c){for(let _0x371e9c of _0x1dffe2)for(let _0x3e2712 of _0x371e9c['alias']){let _0x139a1c=_0x4843ed['indexOf'](_0x3e2712);if(_0x139a1c>-0x1&&(_0x3e2712['length']>0x2||!/\w/['test'](_0x4843ed[_0x139a1c-0x1])&&!/\w/['test'](_0x4843ed[_0x139a1c+_0x3e2712['length']])))return _0x371e9c;}}return null;}};const TF=LL['define'](),AF=LL['define']({'combine':_0x5be8f7=>{if(!_0x5be8f7['length'])return'\x20\x20';let _0x4ab453=_0x5be8f7[0x0];if(!_0x4ab453||/\S/['test'](_0x4ab453)||Array['from'](_0x4ab453)['some'](_0x1912f6=>_0x1912f6!=_0x4ab453[0x0]))throw new Error('Invalid\x20indent\x20unit:\x20'+JSON['stringify'](_0x5be8f7[0x0]));return _0x4ab453;}});function SF(_0x24b16e){let _0x33a0ce=_0x24b16e['facet'](AF);return 0x9==_0x33a0ce['charCodeAt'](0x0)?_0x24b16e['tabSize']*_0x33a0ce['length']:_0x33a0ce['length'];}function IF(_0x11f4f7,_0x34ab70){let _0x4533d2='',_0x373e3d=_0x11f4f7['tabSize'],_0x451c7e=_0x11f4f7['facet'](AF)[0x0];if('\x09'==_0x451c7e){for(;_0x34ab70>=_0x373e3d;)_0x4533d2+='\x09',_0x34ab70-=_0x373e3d;_0x451c7e='\x20';}for(let _0xed418=0x0;_0xed418<_0x34ab70;_0xed418++)_0x4533d2+=_0x451c7e;return _0x4533d2;}function kF(_0x45cae8,_0x33b9fe){_0x45cae8 instanceof E$&&(_0x45cae8=new xF(_0x45cae8));for(let _0x3f356b of _0x45cae8['state']['facet'](TF)){let _0x4d8de0=_0x3f356b(_0x45cae8,_0x33b9fe);if(void 0x0!==_0x4d8de0)return _0x4d8de0;}let _0x319b43=dF(_0x45cae8['state']);return _0x319b43['length']>=_0x33b9fe?function(_0x2a9d28,_0x17689a,_0x11bf61){let _0x1c1838=_0x17689a['resolveStack'](_0x11bf61),_0x1d4ffa=_0x17689a['resolveInner'](_0x11bf61,-0x1)['resolve'](_0x11bf61,0x0)['enterUnfinishedNodesBefore'](_0x11bf61);if(_0x1d4ffa!=_0x1c1838['node']){let _0x43fd37=[];for(let _0x423120=_0x1d4ffa;_0x423120&&!(_0x423120['from']<_0x1c1838['node']['from']||_0x423120['to']>_0x1c1838['node']['to']||_0x423120['from']==_0x1c1838['node']['from']&&_0x423120['type']==_0x1c1838['node']['type']);_0x423120=_0x423120['parent'])_0x43fd37['push'](_0x423120);for(let _0x26ad10=_0x43fd37['length']-0x1;_0x26ad10>=0x0;_0x26ad10--)_0x1c1838={'node':_0x43fd37[_0x26ad10],'next':_0x1c1838};}return RF(_0x1c1838,_0x2a9d28,_0x11bf61);}(_0x45cae8,_0x319b43,_0x33b9fe):null;}var xF=class{constructor(_0xcca4fc,_0x3e51f9={}){this['state']=_0xcca4fc,this['options']=_0x3e51f9,this['unit']=SF(_0xcca4fc);}lineAt(_0x13de9d,_0x50f5bc=0x1){let _0x1d53bc=this['state']['doc']['lineAt'](_0x13de9d),{simulateBreak:_0x504c15,simulateDoubleBreak:_0x1d490d}=this['options'];return null!=_0x504c15&&_0x504c15>=_0x1d53bc['from']&&_0x504c15<=_0x1d53bc['to']?_0x1d490d&&_0x504c15==_0x13de9d?{'text':'','from':_0x13de9d}:(_0x50f5bc<0x0?_0x504c15<_0x13de9d:_0x504c15<=_0x13de9d)?{'text':_0x1d53bc['text']['slice'](_0x504c15-_0x1d53bc['from']),'from':_0x504c15}:{'text':_0x1d53bc['text']['slice'](0x0,_0x504c15-_0x1d53bc['from']),'from':_0x1d53bc['from']}:_0x1d53bc;}textAfterPos(_0x5d9ba2,_0x1a3355=0x1){if(this['options']['simulateDoubleBreak']&&_0x5d9ba2==this['options']['simulateBreak'])return'';let {text:_0x21ecca,from:_0x12a332}=this['lineAt'](_0x5d9ba2,_0x1a3355);return _0x21ecca['slice'](_0x5d9ba2-_0x12a332,Math['min'](_0x21ecca['length'],_0x5d9ba2+0x64-_0x12a332));}['column'](_0x2b1c7a,_0x1f566e=0x1){let {text:_0x3ae7b7,from:_0xe37fb0}=this['lineAt'](_0x2b1c7a,_0x1f566e),_0xc287aa=this['countColumn'](_0x3ae7b7,_0x2b1c7a-_0xe37fb0),_0x330812=this['options']['overrideIndentation']?this['options']['overrideIndentation'](_0xe37fb0):-0x1;return _0x330812>-0x1&&(_0xc287aa+=_0x330812-this['countColumn'](_0x3ae7b7,_0x3ae7b7['search'](/\S|$/))),_0xc287aa;}countColumn(_0x28132e,_0x3a195e=_0x28132e['length']){return B$(_0x28132e,this['state']['tabSize'],_0x3a195e);}lineIndent(_0x10c68a,_0x5c7ce9=0x1){let {text:_0x1ce8c5,from:_0x49ca30}=this['lineAt'](_0x10c68a,_0x5c7ce9),_0x3f2cbc=this['options']['overrideIndentation'];if(_0x3f2cbc){let _0x4b1307=_0x3f2cbc(_0x49ca30);if(_0x4b1307>-0x1)return _0x4b1307;}return this['countColumn'](_0x1ce8c5,_0x1ce8c5['search'](/\S|$/));}get simulatedBreak(){return this['options']['simulateBreak']||null;}};const CF=new HB();function RF(_0x45bb93,_0x33f938,_0x1062f9){for(let _0x4064a9=_0x45bb93;_0x4064a9;_0x4064a9=_0x4064a9['next']){let _0x143092=PF(_0x4064a9['node']);if(_0x143092)return _0x143092(MF['create'](_0x33f938,_0x1062f9,_0x4064a9));}return 0x0;}function PF(_0x43f9c1){let _0x4976c4=_0x43f9c1['type']['prop'](CF);if(_0x4976c4)return _0x4976c4;let _0xedd0e5,_0xb7ebc3=_0x43f9c1['firstChild'];if(_0xb7ebc3&&(_0xedd0e5=_0xb7ebc3['type']['prop'](HB['closedBy']))){let _0x17c84e=_0x43f9c1['lastChild'],_0x3fb50f=_0x17c84e&&_0xedd0e5['indexOf'](_0x17c84e['name'])>-0x1;return _0x36acc9=>DF(_0x36acc9,!0x0,0x1,void 0x0,_0x3fb50f&&!function(_0x340996){return _0x340996['pos']==_0x340996['options']['simulateBreak']&&_0x340996['options']['simulateDoubleBreak'];}(_0x36acc9)?_0x17c84e['from']:void 0x0);}return null==_0x43f9c1['parent']?NF:null;}function NF(){return 0x0;}var MF=class TreeIndentContext extends xF{constructor(_0x458b3a,_0x5dd817,_0xfc4c0){super(_0x458b3a['state'],_0x458b3a['options']),this['base']=_0x458b3a,this['pos']=_0x5dd817,this['context']=_0xfc4c0;}get['node'](){return this['context']['node'];}static create(_0x5d6f9a,_0x5183e7,_0x50f640){return new TreeIndentContext(_0x5d6f9a,_0x5183e7,_0x50f640);}get textAfter(){return this['textAfterPos'](this['pos']);}get baseIndent(){return this['baseIndentFor'](this['node']);}baseIndentFor(_0x3d557a){let _0x14b3cb=this['state']['doc']['lineAt'](_0x3d557a['from']);for(;;){let _0x1805ab=_0x3d557a['resolve'](_0x14b3cb['from']);for(;_0x1805ab['parent']&&_0x1805ab['parent']['from']==_0x1805ab['from'];)_0x1805ab=_0x1805ab['parent'];if(LF(_0x1805ab,_0x3d557a))break;_0x14b3cb=this['state']['doc']['lineAt'](_0x1805ab['from']);}return this['lineIndent'](_0x14b3cb['from']);}continue(){return RF(this['context']['next'],this['base'],this['pos']);}};function LF(_0xfdcc9,_0x5007f0){for(let _0x59a7e6=_0x5007f0;_0x59a7e6;_0x59a7e6=_0x59a7e6['parent'])if(_0xfdcc9==_0x59a7e6)return!0x0;return!0x1;}function $F({closing:_0x1b6b9a,align:_0x647c16=!0x0,units:_0xdd8831=0x1}){return _0xc9c13d=>DF(_0xc9c13d,_0x647c16,_0xdd8831,_0x1b6b9a);}function DF(_0x3b140b,_0x1ab64a,_0x1b9b4c,_0x1ff090,_0x42426c){let _0x38b915=_0x3b140b['textAfter'],_0xf037de=_0x38b915['match'](/^\s*/)[0x0]['length'],_0x53cf3b=_0x1ff090&&_0x38b915['slice'](_0xf037de,_0xf037de+_0x1ff090['length'])==_0x1ff090||_0x42426c==_0x3b140b['pos']+_0xf037de,_0x1efc6f=_0x1ab64a?function(_0x8c51b6){let _0x12ae33=_0x8c51b6['node'],_0x4ecdae=_0x12ae33['childAfter'](_0x12ae33['from']),_0x12e831=_0x12ae33['lastChild'];if(!_0x4ecdae)return null;let _0x29a76d=_0x8c51b6['options']['simulateBreak'],_0xf7d8d6=_0x8c51b6['state']['doc']['lineAt'](_0x4ecdae['from']),_0x10d32a=null==_0x29a76d||_0x29a76d<=_0xf7d8d6['from']?_0xf7d8d6['to']:Math['min'](_0xf7d8d6['to'],_0x29a76d);for(let _0x1b0b4a=_0x4ecdae['to'];;){let _0x1e9ac5=_0x12ae33['childAfter'](_0x1b0b4a);if(!_0x1e9ac5||_0x1e9ac5==_0x12e831)return null;if(!_0x1e9ac5['type']['isSkipped']){if(_0x1e9ac5['from']>=_0x10d32a)return null;let _0x4eaf82=/^ */['exec'](_0xf7d8d6['text']['slice'](_0x4ecdae['to']-_0xf7d8d6['from']))[0x0]['length'];return{'from':_0x4ecdae['from'],'to':_0x4ecdae['to']+_0x4eaf82};}_0x1b0b4a=_0x1e9ac5['to'];}}(_0x3b140b):null;return _0x1efc6f?_0x53cf3b?_0x3b140b['column'](_0x1efc6f['from']):_0x3b140b['column'](_0x1efc6f['to']):_0x3b140b['baseIndent']+(_0x53cf3b?0x0:_0x3b140b['unit']*_0x1b9b4c);}function QF({except:_0x5b1184,units:_0x248bd7=0x1}={}){return _0x1087e7=>{let _0x44ba74=_0x5b1184&&_0x5b1184['test'](_0x1087e7['textAfter']);return _0x1087e7['baseIndent']+(_0x44ba74?0x0:_0x248bd7*_0x1087e7['unit']);};}function jF(){return E$['transactionFilter']['of'](_0x13b585=>{if(!_0x13b585['docChanged']||!_0x13b585['isUserEvent']('input.type')&&!_0x13b585['isUserEvent']('input.complete'))return _0x13b585;let _0x276e90=_0x13b585['startState']['languageDataAt']('indentOnInput',_0x13b585['startState']['selection']['main']['head']);if(!_0x276e90['length'])return _0x13b585;let _0x121c9e=_0x13b585['newDoc'],{head:_0x30f027}=_0x13b585['newSelection']['main'],_0x163a73=_0x121c9e['lineAt'](_0x30f027);if(_0x30f027>_0x163a73['from']+0xc8)return _0x13b585;let _0x1dc35c=_0x121c9e['sliceString'](_0x163a73['from'],_0x30f027);if(!_0x276e90['some'](_0x84d1f0=>_0x84d1f0['test'](_0x1dc35c)))return _0x13b585;let {state:_0x32872b}=_0x13b585,_0x59d5ba=-0x1,_0x3d1751=[];for(let {head:_0x887d8e}of _0x32872b['selection']['ranges']){let _0x4e0eb9=_0x32872b['doc']['lineAt'](_0x887d8e);if(_0x4e0eb9['from']==_0x59d5ba)continue;_0x59d5ba=_0x4e0eb9['from'];let _0x24b318=kF(_0x32872b,_0x4e0eb9['from']);if(null==_0x24b318)continue;let _0xcdf2cb=/^\s*/['exec'](_0x4e0eb9['text'])[0x0],_0x1d2e5b=IF(_0x32872b,_0x24b318);_0xcdf2cb!=_0x1d2e5b&&_0x3d1751['push']({'from':_0x4e0eb9['from'],'to':_0x4e0eb9['from']+_0xcdf2cb['length'],'insert':_0x1d2e5b});}return _0x3d1751['length']?[_0x13b585,{'changes':_0x3d1751,'sequential':!0x0}]:_0x13b585;});}const UF=LL['define'](),VF=new HB();function BF(_0x1c4894){let _0x1a4a32=_0x1c4894['firstChild'],_0xa5b7af=_0x1c4894['lastChild'];return _0x1a4a32&&_0x1a4a32['to']<_0xa5b7af['from']?{'from':_0x1a4a32['to'],'to':_0xa5b7af['type']['isError']?_0x1c4894['to']:_0xa5b7af['from']}:null;}function HF(_0x56e710){let _0x3134ed=_0x56e710['lastChild'];return _0x3134ed&&_0x3134ed['to']==_0x56e710['to']&&_0x3134ed['type']['isError'];}function FF(_0x593208,_0x383c2b,_0x6d0751){for(let _0xfe8bbd of _0x593208['facet'](UF)){let _0x4e3437=_0xfe8bbd(_0x593208,_0x383c2b,_0x6d0751);if(_0x4e3437)return _0x4e3437;}return function(_0x3ffc7e,_0x21c8af,_0x30d276){let _0x4cfe8f=dF(_0x3ffc7e);if(_0x4cfe8f['length']<_0x30d276)return null;let _0x87059a=null;for(let _0x561ab2=_0x4cfe8f['resolveStack'](_0x30d276,0x1);_0x561ab2;_0x561ab2=_0x561ab2['next']){let _0x15e47c=_0x561ab2['node'];if(_0x15e47c['to']<=_0x30d276||_0x15e47c['from']>_0x30d276)continue;if(_0x87059a&&_0x15e47c['from']<_0x21c8af)break;let _0x4c273b=_0x15e47c['type']['prop'](VF);if(_0x4c273b&&(_0x15e47c['to']<_0x4cfe8f['length']-0x32||_0x4cfe8f['length']==_0x3ffc7e['doc']['length']||!HF(_0x15e47c))){let _0x5736cc=_0x4c273b(_0x15e47c,_0x3ffc7e);_0x5736cc&&_0x5736cc['from']<=_0x30d276&&_0x5736cc['from']>=_0x21c8af&&_0x5736cc['to']>_0x30d276&&(_0x87059a=_0x5736cc);}}return _0x87059a;}(_0x593208,_0x383c2b,_0x6d0751);}function ZF(_0x32d3b6,_0x5afc82){let _0x538c27=_0x5afc82['mapPos'](_0x32d3b6['from'],0x1),_0x2a0fbd=_0x5afc82['mapPos'](_0x32d3b6['to'],-0x1);return _0x538c27>=_0x2a0fbd?void 0x0:{'from':_0x538c27,'to':_0x2a0fbd};}const GF=u$['define']({'map':ZF}),XF=u$['define']({'map':ZF});function qF(_0x3c68cd){let _0x1d9c6d=[];for(let {head:_0x245507}of _0x3c68cd['state']['selection']['ranges'])_0x1d9c6d['some'](_0x35a5af=>_0x35a5af['from']<=_0x245507&&_0x35a5af['to']>=_0x245507)||_0x1d9c6d['push'](_0x3c68cd['lineBlockAt'](_0x245507));return _0x1d9c6d;}const WF=BL['define']({'create':()=>vD['none'],'update'(_0x48a6cd,_0x5aba41){_0x5aba41['isUserEvent']('delete')&&_0x5aba41['changes']['iterChangedRanges']((_0x359546,_0x51cccd)=>_0x48a6cd=zF(_0x48a6cd,_0x359546,_0x51cccd)),_0x48a6cd=_0x48a6cd['map'](_0x5aba41['changes']);for(let _0x4cbc6f of _0x5aba41['effects'])if(_0x4cbc6f['is'](GF)&&!KF(_0x48a6cd,_0x4cbc6f['value']['from'],_0x4cbc6f['value']['to'])){let {preparePlaceholder:_0x1118b1}=_0x5aba41['state']['facet'](sZ),_0x81b8bc=_0x1118b1?vD['replace']({'widget':new aZ(_0x1118b1(_0x5aba41['state'],_0x4cbc6f['value']))}):oZ;_0x48a6cd=_0x48a6cd['update']({'add':[_0x81b8bc['range'](_0x4cbc6f['value']['from'],_0x4cbc6f['value']['to'])]});}else _0x4cbc6f['is'](XF)&&(_0x48a6cd=_0x48a6cd['update']({'filter':(_0xfd6093,_0x28f769)=>_0x4cbc6f['value']['from']!=_0xfd6093||_0x4cbc6f['value']['to']!=_0x28f769,'filterFrom':_0x4cbc6f['value']['from'],'filterTo':_0x4cbc6f['value']['to']}));return _0x5aba41['selection']&&(_0x48a6cd=zF(_0x48a6cd,_0x5aba41['selection']['main']['head'])),_0x48a6cd;},'provide':_0x186b44=>oV['decorations']['from'](_0x186b44),'toJSON'(_0x136c5a,_0x45ecbd){let _0x456986=[];return _0x136c5a['between'](0x0,_0x45ecbd['doc']['length'],(_0x1d8375,_0x1e24cf)=>{_0x456986['push'](_0x1d8375,_0x1e24cf);}),_0x456986;},'fromJSON'(_0x546752){if(!Array['isArray'](_0x546752)||_0x546752['length']%0x2)throw new RangeError('Invalid\x20JSON\x20for\x20fold\x20state');let _0x1efced=[];for(let _0x50ecac=0x0;_0x50ecac<_0x546752['length'];){let _0x405223=_0x546752[_0x50ecac++],_0x1243c9=_0x546752[_0x50ecac++];if('number'!=typeof _0x405223||'number'!=typeof _0x1243c9)throw new RangeError('Invalid\x20JSON\x20for\x20fold\x20state');_0x1efced['push'](oZ['range'](_0x405223,_0x1243c9));}return vD['set'](_0x1efced,!0x0);}});function zF(_0x2913c3,_0x34bf0c,_0x484652=_0x34bf0c){let _0x5c2fd5=!0x1;return _0x2913c3['between'](_0x34bf0c,_0x484652,(_0x328332,_0x4e6ae9)=>{_0x328332<_0x484652&&_0x4e6ae9>_0x34bf0c&&(_0x5c2fd5=!0x0);}),_0x5c2fd5?_0x2913c3['update']({'filterFrom':_0x34bf0c,'filterTo':_0x484652,'filter':(_0x2e69ca,_0x483077)=>_0x2e69ca>=_0x484652||_0x483077<=_0x34bf0c}):_0x2913c3;}function YF(_0x1e8d31,_0x30ba63,_0x54081c){var _0x122e9b;let _0x2488da=null;return null===(_0x122e9b=_0x1e8d31['field'](WF,!0x1))||void 0x0===_0x122e9b||_0x122e9b['between'](_0x30ba63,_0x54081c,(_0x22301d,_0x708a4d)=>{(!_0x2488da||_0x2488da['from']>_0x22301d)&&(_0x2488da={'from':_0x22301d,'to':_0x708a4d});}),_0x2488da;}function KF(_0x15f04f,_0xc8f62c,_0x59bcbb){let _0x1b41e9=!0x1;return _0x15f04f['between'](_0xc8f62c,_0xc8f62c,(_0x525646,_0x131563)=>{_0x525646==_0xc8f62c&&_0x131563==_0x59bcbb&&(_0x1b41e9=!0x0);}),_0x1b41e9;}function JF(_0x1736c6,_0x2b41dc){return _0x1736c6['field'](WF,!0x1)?_0x2b41dc:_0x2b41dc['concat'](u$['appendConfig']['of'](nZ()));}function tZ(_0x15624a,_0x4309ff,_0x38878b=!0x0){let _0x366310=_0x15624a['state']['doc']['lineAt'](_0x4309ff['from'])['number'],_0x1c4027=_0x15624a['state']['doc']['lineAt'](_0x4309ff['to'])['number'];return oV['announce']['of'](_0x15624a['state']['phrase'](_0x38878b?'Folded\x20lines':'Unfolded\x20lines')+'\x20'+_0x366310+'\x20'+_0x15624a['state']['phrase']('to')+'\x20'+_0x1c4027+'.');}const eZ=[{'key':'Ctrl-Shift-[','mac':'Cmd-Alt-[','run':_0x30ae7a=>{for(let _0x312ab6 of qF(_0x30ae7a)){let _0x199344=FF(_0x30ae7a['state'],_0x312ab6['from'],_0x312ab6['to']);if(_0x199344)return _0x30ae7a['dispatch']({'effects':JF(_0x30ae7a['state'],[GF['of'](_0x199344),tZ(_0x30ae7a,_0x199344)])}),!0x0;}return!0x1;}},{'key':'Ctrl-Shift-]','mac':'Cmd-Alt-]','run':_0x5e5923=>{if(!_0x5e5923['state']['field'](WF,!0x1))return!0x1;let _0x4c5f84=[];for(let _0x4b22da of qF(_0x5e5923)){let _0x29bd9f=YF(_0x5e5923['state'],_0x4b22da['from'],_0x4b22da['to']);_0x29bd9f&&_0x4c5f84['push'](XF['of'](_0x29bd9f),tZ(_0x5e5923,_0x29bd9f,!0x1));}return _0x4c5f84['length']&&_0x5e5923['dispatch']({'effects':_0x4c5f84}),_0x4c5f84['length']>0x0;}},{'key':'Ctrl-Alt-[','run':_0x2e283c=>{let {state:_0x3a9012}=_0x2e283c,_0x3918c9=[];for(let _0x2e7a29=0x0;_0x2e7a29<_0x3a9012['doc']['length'];){let _0x22bb9f=_0x2e283c['lineBlockAt'](_0x2e7a29),_0x2b6919=FF(_0x3a9012,_0x22bb9f['from'],_0x22bb9f['to']);_0x2b6919&&_0x3918c9['push'](GF['of'](_0x2b6919)),_0x2e7a29=(_0x2b6919?_0x2e283c['lineBlockAt'](_0x2b6919['to']):_0x22bb9f)['to']+0x1;}return _0x3918c9['length']&&_0x2e283c['dispatch']({'effects':JF(_0x2e283c['state'],_0x3918c9)}),!!_0x3918c9['length'];}},{'key':'Ctrl-Alt-]','run':_0x909b5e=>{let _0x494da5=_0x909b5e['state']['field'](WF,!0x1);if(!_0x494da5||!_0x494da5['size'])return!0x1;let _0xf487af=[];return _0x494da5['between'](0x0,_0x909b5e['state']['doc']['length'],(_0x2909ce,_0xa9e8f5)=>{_0xf487af['push'](XF['of']({'from':_0x2909ce,'to':_0xa9e8f5}));}),_0x909b5e['dispatch']({'effects':_0xf487af}),!0x0;}}],iZ={'placeholderDOM':null,'preparePlaceholder':null,'placeholderText':'…'},sZ=LL['define']({'combine':_0x5df399=>T$(_0x5df399,iZ)});function nZ(_0x57e2b4){let _0x4d8913=[WF,uZ];return _0x57e2b4&&_0x4d8913['push'](sZ['of'](_0x57e2b4)),_0x4d8913;}function rZ(_0xf5d845,_0x413c1d){let {state:_0x20af86}=_0xf5d845,_0x428e26=_0x20af86['facet'](sZ),_0x27ef5d=_0x3ef451=>{let _0x281ef9=_0xf5d845['lineBlockAt'](_0xf5d845['posAtDOM'](_0x3ef451['target'])),_0x7681=YF(_0xf5d845['state'],_0x281ef9['from'],_0x281ef9['to']);_0x7681&&_0xf5d845['dispatch']({'effects':XF['of'](_0x7681)}),_0x3ef451['preventDefault']();};if(_0x428e26['placeholderDOM'])return _0x428e26['placeholderDOM'](_0xf5d845,_0x27ef5d,_0x413c1d);let _0x7daa42=document['createElement']('span');return _0x7daa42['textContent']=_0x428e26['placeholderText'],_0x7daa42['setAttribute']('aria-label',_0x20af86['phrase']('folded\x20code')),_0x7daa42['title']=_0x20af86['phrase']('unfold'),_0x7daa42['className']='cm-foldPlaceholder',_0x7daa42['onclick']=_0x27ef5d,_0x7daa42;}const oZ=vD['replace']({'widget':new class extends bD{toDOM(_0x4da1bf){return rZ(_0x4da1bf,null);}}()});var aZ=class extends bD{constructor(_0x23b71a){super(),this['value']=_0x23b71a;}['eq'](_0xf83f30){return this['value']==_0xf83f30['value'];}toDOM(_0x3d7ab1){return rZ(_0x3d7ab1,this['value']);}};const cZ={'openText':'⌄','closedText':'›','markerDOM':null,'domEventHandlers':{},'foldingChanged':()=>!0x1};var lZ=class extends pB{constructor(_0x1838a0,_0x4123aa){super(),this['config']=_0x1838a0,this['open']=_0x4123aa;}['eq'](_0x5c3c58){return this['config']==_0x5c3c58['config']&&this['open']==_0x5c3c58['open'];}toDOM(_0x16c750){if(this['config']['markerDOM'])return this['config']['markerDOM'](this['open']);let _0x2a780c=document['createElement']('span');return _0x2a780c['textContent']=this['open']?this['config']['openText']:this['config']['closedText'],_0x2a780c['title']=_0x16c750['state']['phrase'](this['open']?'Fold\x20line':'Unfold\x20line'),_0x2a780c;}};function hZ(_0x2c47ea={}){let _0x5b3d9e={...cZ,..._0x2c47ea},_0x2e279b=new lZ(_0x5b3d9e,!0x0),_0x59dfeb=new lZ(_0x5b3d9e,!0x1),_0x15cc23=LQ['fromClass'](class{constructor(_0x251429){this['from']=_0x251429['viewport']['from'],this['markers']=this['buildMarkers'](_0x251429);}update(_0x96e6f7){(_0x96e6f7['docChanged']||_0x96e6f7['viewportChanged']||_0x96e6f7['startState']['facet'](vF)!=_0x96e6f7['state']['facet'](vF)||_0x96e6f7['startState']['field'](WF,!0x1)!=_0x96e6f7['state']['field'](WF,!0x1)||dF(_0x96e6f7['startState'])!=dF(_0x96e6f7['state'])||_0x5b3d9e['foldingChanged'](_0x96e6f7))&&(this['markers']=this['buildMarkers'](_0x96e6f7['view']));}['buildMarkers'](_0x2e36eb){let _0x3d9a2c=new R$();for(let _0x389fa2 of _0x2e36eb['viewportLineBlocks']){let _0x4690c2=YF(_0x2e36eb['state'],_0x389fa2['from'],_0x389fa2['to'])?_0x59dfeb:FF(_0x2e36eb['state'],_0x389fa2['from'],_0x389fa2['to'])?_0x2e279b:null;_0x4690c2&&_0x3d9a2c['add'](_0x389fa2['from'],_0x389fa2['from'],_0x4690c2);}return _0x3d9a2c['finish']();}}),{domEventHandlers:_0x36c6f0}=_0x5b3d9e;return[_0x15cc23,yB({'class':'cm-foldGutter','markers'(_0x3666f9){var _0x1fe6a5;return(null===(_0x1fe6a5=_0x3666f9['plugin'](_0x15cc23))||void 0x0===_0x1fe6a5?void 0x0:_0x1fe6a5['markers'])||C$['empty'];},'initialSpacer':()=>new lZ(_0x5b3d9e,!0x1),'domEventHandlers':{..._0x36c6f0,'click':(_0x44384e,_0x1a91bc,_0x527677)=>{if(_0x36c6f0['click']&&_0x36c6f0['click'](_0x44384e,_0x1a91bc,_0x527677))return!0x0;let _0x59ca10=YF(_0x44384e['state'],_0x1a91bc['from'],_0x1a91bc['to']);if(_0x59ca10)return _0x44384e['dispatch']({'effects':XF['of'](_0x59ca10)}),!0x0;let _0x2b271f=FF(_0x44384e['state'],_0x1a91bc['from'],_0x1a91bc['to']);return!!_0x2b271f&&(_0x44384e['dispatch']({'effects':GF['of'](_0x2b271f)}),!0x0);}}}),nZ()];}const uZ=oV['baseTheme']({'.cm-foldPlaceholder':{'backgroundColor':'#eee','border':'1px\x20solid\x20#ddd','color':'#888','borderRadius':'.2em','margin':'0\x201px','padding':'0\x201px','cursor':'pointer'},'.cm-foldGutter\x20span':{'padding':'0\x201px','cursor':'pointer'}});var dZ=class HighlightStyle{constructor(_0x44d5b2,_0x340fa0){let _0x15829b;function _0x298b6c(_0x957697){let _0x57bdb0=X$['newName']();return(_0x15829b||(_0x15829b=Object['create'](null)))['.'+_0x57bdb0]=_0x957697,_0x57bdb0;}this['specs']=_0x44d5b2;const _0x92e4e4='string'==typeof _0x340fa0['all']?_0x340fa0['all']:_0x340fa0['all']?_0x298b6c(_0x340fa0['all']):void 0x0,_0x5eef96=_0x340fa0['scope'];this['scope']=_0x5eef96 instanceof lF?_0x2807e4=>_0x2807e4['prop'](oF)==_0x5eef96['data']:_0x5eef96?_0x20e0d9=>_0x20e0d9==_0x5eef96:void 0x0,this['style']=VH(_0x44d5b2['map'](_0x409d03=>({'tag':_0x409d03['tag'],'class':_0x409d03['class']||_0x298b6c(Object['assign']({},_0x409d03,{'tag':null}))})),{'all':_0x92e4e4})['style'],this['module']=_0x15829b?new X$(_0x15829b):null,this['themeType']=_0x340fa0['themeType'];}static['define'](_0x428254,_0x3041a9){return new HighlightStyle(_0x428254,_0x3041a9||{});}};const fZ=LL['define'](),mZ=LL['define']({'combine':_0x11332f=>_0x11332f['length']?[_0x11332f[0x0]]:null});function pZ(_0x59a8bc){let _0x50e129=_0x59a8bc['facet'](fZ);return _0x50e129['length']?_0x50e129:_0x59a8bc['facet'](mZ);}function gZ(_0x11b380,_0x12355b){let _0x465169,_0x1ff504=[wZ];return _0x11b380 instanceof dZ&&(_0x11b380['module']&&_0x1ff504['push'](oV['styleModule']['of'](_0x11b380['module'])),_0x465169=_0x11b380['themeType']),(null==_0x12355b?void 0x0:_0x12355b['fallback'])?_0x1ff504['push'](mZ['of'](_0x11b380)):_0x465169?_0x1ff504['push'](fZ['computeN']([oV['darkTheme']],_0x539868=>_0x539868['facet'](oV['darkTheme'])==('dark'==_0x465169)?[_0x11b380]:[])):_0x1ff504['push'](fZ['of'](_0x11b380)),_0x1ff504;}var OZ=class{constructor(_0x2a6e34){this['markCache']=Object['create'](null),this['tree']=dF(_0x2a6e34['state']),this['decorations']=this['buildDeco'](_0x2a6e34,pZ(_0x2a6e34['state'])),this['decoratedTo']=_0x2a6e34['viewport']['to'];}update(_0x884e2d){let _0x476e37=dF(_0x884e2d['state']),_0x21f5b5=pZ(_0x884e2d['state']),_0x25dd92=_0x21f5b5!=pZ(_0x884e2d['startState']),{viewport:_0x20a246}=_0x884e2d['view'],_0x4fb9ba=_0x884e2d['changes']['mapPos'](this['decoratedTo'],0x1);_0x476e37['length']<_0x20a246['to']&&!_0x25dd92&&_0x476e37['type']==this['tree']['type']&&_0x4fb9ba>=_0x20a246['to']?(this['decorations']=this['decorations']['map'](_0x884e2d['changes']),this['decoratedTo']=_0x4fb9ba):(_0x476e37!=this['tree']||_0x884e2d['viewportChanged']||_0x25dd92)&&(this['tree']=_0x476e37,this['decorations']=this['buildDeco'](_0x884e2d['view'],_0x21f5b5),this['decoratedTo']=_0x20a246['to']);}['buildDeco'](_0x5ece29,_0x1a54b7){if(!_0x1a54b7||!this['tree']['length'])return vD['none'];let _0x19f9b9=new R$();for(let {from:_0x120ee5,to:_0xce374b}of _0x5ece29['visibleRanges'])BH(this['tree'],_0x1a54b7,(_0x2b2f5c,_0xa7090f,_0x2a0d55)=>{_0x19f9b9['add'](_0x2b2f5c,_0xa7090f,this['markCache'][_0x2a0d55]||(this['markCache'][_0x2a0d55]=vD['mark']({'class':_0x2a0d55})));},_0x120ee5,_0xce374b);return _0x19f9b9['finish']();}};const wZ=qL['high'](LQ['fromClass'](OZ,{'decorations':_0x2b9ff=>_0x2b9ff['decorations']})),bZ=dZ['define']([{'tag':nF['meta'],'color':'#404740'},{'tag':nF['link'],'textDecoration':'underline'},{'tag':nF['heading'],'textDecoration':'underline','fontWeight':'bold'},{'tag':nF['emphasis'],'fontStyle':'italic'},{'tag':nF['strong'],'fontWeight':'bold'},{'tag':nF['strikethrough'],'textDecoration':'line-through'},{'tag':nF['keyword'],'color':'#708'},{'tag':[nF['atom'],nF['bool'],nF['url'],nF['contentSeparator'],nF['labelName']],'color':'#219'},{'tag':[nF['literal'],nF['inserted']],'color':'#164'},{'tag':[nF['string'],nF['deleted']],'color':'#a11'},{'tag':[nF['regexp'],nF['escape'],nF['special'](nF['string'])],'color':'#e40'},{'tag':nF['definition'](nF['variableName']),'color':'#00f'},{'tag':nF['local'](nF['variableName']),'color':'#30a'},{'tag':[nF['typeName'],nF['namespace']],'color':'#085'},{'tag':nF['className'],'color':'#167'},{'tag':[nF['special'](nF['variableName']),nF['macroName']],'color':'#256'},{'tag':nF['definition'](nF['propertyName']),'color':'#00c'},{'tag':nF['comment'],'color':'#940'},{'tag':nF['invalid'],'color':'#f00'}]),yZ=oV['baseTheme']({'&.cm-focused\x20.cm-matchingBracket':{'backgroundColor':'#328c8252'},'&.cm-focused\x20.cm-nonmatchingBracket':{'backgroundColor':'#bb555544'}}),vZ='()[]{}',_Z=LL['define']({'combine':_0x1ebf40=>T$(_0x1ebf40,{'afterCursor':!0x0,'brackets':vZ,'maxScanDistance':0x2710,'renderMatch':AZ})}),EZ=vD['mark']({'class':'cm-matchingBracket'}),TZ=vD['mark']({'class':'cm-nonmatchingBracket'});function AZ(_0x13d10e){let _0x36c42c=[],_0x304a79=_0x13d10e['matched']?EZ:TZ;return _0x36c42c['push'](_0x304a79['range'](_0x13d10e['start']['from'],_0x13d10e['start']['to'])),_0x13d10e['end']&&_0x36c42c['push'](_0x304a79['range'](_0x13d10e['end']['from'],_0x13d10e['end']['to'])),_0x36c42c;}function SZ(_0x3dc2e3){let _0x30c9bb=[],_0x1640c4=_0x3dc2e3['facet'](_Z);for(let _0x1f121c of _0x3dc2e3['selection']['ranges']){if(!_0x1f121c['empty'])continue;let _0x46da98=PZ(_0x3dc2e3,_0x1f121c['head'],-0x1,_0x1640c4)||_0x1f121c['head']>0x0&&PZ(_0x3dc2e3,_0x1f121c['head']-0x1,0x1,_0x1640c4)||_0x1640c4['afterCursor']&&(PZ(_0x3dc2e3,_0x1f121c['head'],0x1,_0x1640c4)||_0x1f121c['head']<_0x3dc2e3['doc']['length']&&PZ(_0x3dc2e3,_0x1f121c['head']+0x1,-0x1,_0x1640c4));_0x46da98&&(_0x30c9bb=_0x30c9bb['concat'](_0x1640c4['renderMatch'](_0x46da98,_0x3dc2e3)));}return vD['set'](_0x30c9bb,!0x0);}const IZ=[LQ['fromClass'](class{constructor(_0x2bda17){this['paused']=!0x1,this['decorations']=SZ(_0x2bda17['state']);}update(_0x2f46c6){(_0x2f46c6['docChanged']||_0x2f46c6['selectionSet']||this['paused'])&&(_0x2f46c6['view']['composing']?(this['decorations']=this['decorations']['map'](_0x2f46c6['changes']),this['paused']=!0x0):(this['decorations']=SZ(_0x2f46c6['state']),this['paused']=!0x1));}},{'decorations':_0x13ef59=>_0x13ef59['decorations']}),yZ];function kZ(_0x2eb030={}){return[_Z['of'](_0x2eb030),IZ];}const xZ=new HB();function CZ(_0x221d2f,_0x258374,_0x4619f0){let _0x358562=_0x221d2f['prop'](_0x258374<0x0?HB['openedBy']:HB['closedBy']);if(_0x358562)return _0x358562;if(0x1==_0x221d2f['name']['length']){let _0x4c91d3=_0x4619f0['indexOf'](_0x221d2f['name']);if(_0x4c91d3>-0x1&&_0x4c91d3%0x2==(_0x258374<0x0?0x1:0x0))return[_0x4619f0[_0x4c91d3+_0x258374]];}return null;}function RZ(_0x3e1f48){let _0x53f35e=_0x3e1f48['type']['prop'](xZ);return _0x53f35e?_0x53f35e(_0x3e1f48['node']):_0x3e1f48;}function PZ(_0x162486,_0x375f6c,_0x59b6c4,_0x484864={}){let _0x1cd2fc=_0x484864['maxScanDistance']||0x2710,_0x389f75=_0x484864['brackets']||vZ,_0x30aae3=dF(_0x162486),_0x18b3fa=_0x30aae3['resolveInner'](_0x375f6c,_0x59b6c4);for(let _0x57cdc3=_0x18b3fa;_0x57cdc3;_0x57cdc3=_0x57cdc3['parent']){let _0xe51b1e=CZ(_0x57cdc3['type'],_0x59b6c4,_0x389f75);if(_0xe51b1e&&_0x57cdc3['from']<_0x57cdc3['to']){let _0x59411a=RZ(_0x57cdc3);if(_0x59411a&&(_0x59b6c4>0x0?_0x375f6c>=_0x59411a['from']&&_0x375f6c<_0x59411a['to']:_0x375f6c>_0x59411a['from']&&_0x375f6c<=_0x59411a['to']))return NZ(_0x162486,_0x375f6c,_0x59b6c4,_0x57cdc3,_0x59411a,_0xe51b1e,_0x389f75);}}return function(_0x330971,_0xd385cb,_0x3671b0,_0x2f0e82,_0x5290f6,_0x471aa7,_0x1e9683){if(_0x3671b0<0x0?!_0xd385cb:_0xd385cb==_0x330971['doc']['length'])return null;let _0x323997=_0x3671b0<0x0?_0x330971['sliceDoc'](_0xd385cb-0x1,_0xd385cb):_0x330971['sliceDoc'](_0xd385cb,_0xd385cb+0x1),_0x57fcf6=_0x1e9683['indexOf'](_0x323997);if(_0x57fcf6<0x0||_0x57fcf6%0x2==0x0!=_0x3671b0>0x0)return null;let _0x47751c={'from':_0x3671b0<0x0?_0xd385cb-0x1:_0xd385cb,'to':_0x3671b0>0x0?_0xd385cb+0x1:_0xd385cb},_0x15d5a1=_0x330971['doc']['iterRange'](_0xd385cb,_0x3671b0>0x0?_0x330971['doc']['length']:0x0),_0x40d13d=0x0;for(let _0x267201=0x0;!_0x15d5a1['next']()['done']&&_0x267201<=_0x471aa7;){let _0x22091e=_0x15d5a1['value'];_0x3671b0<0x0&&(_0x267201+=_0x22091e['length']);let _0x5250cc=_0xd385cb+_0x267201*_0x3671b0;for(let _0x33d1fa=_0x3671b0>0x0?0x0:_0x22091e['length']-0x1,_0x45317a=_0x3671b0>0x0?_0x22091e['length']:-0x1;_0x33d1fa!=_0x45317a;_0x33d1fa+=_0x3671b0){let _0x544d85=_0x1e9683['indexOf'](_0x22091e[_0x33d1fa]);if(!(_0x544d85<0x0||_0x2f0e82['resolveInner'](_0x5250cc+_0x33d1fa,0x1)['type']!=_0x5290f6)){if(_0x544d85%0x2==0x0==_0x3671b0>0x0)_0x40d13d++;else{if(0x1==_0x40d13d)return{'start':_0x47751c,'end':{'from':_0x5250cc+_0x33d1fa,'to':_0x5250cc+_0x33d1fa+0x1},'matched':_0x544d85>>0x1==_0x57fcf6>>0x1};_0x40d13d--;}}}_0x3671b0>0x0&&(_0x267201+=_0x22091e['length']);}return _0x15d5a1['done']?{'start':_0x47751c,'matched':!0x1}:null;}(_0x162486,_0x375f6c,_0x59b6c4,_0x30aae3,_0x18b3fa['type'],_0x1cd2fc,_0x389f75);}function NZ(_0x302eef,_0x553ba5,_0x52a879,_0x5bb78f,_0x1c7314,_0x16e208,_0x554ea3){let _0x49d5cd=_0x5bb78f['parent'],_0x448765={'from':_0x1c7314['from'],'to':_0x1c7314['to']},_0x1f09ce=0x0,_0x40fb4f=null==_0x49d5cd?void 0x0:_0x49d5cd['cursor']();if(_0x40fb4f&&(_0x52a879<0x0?_0x40fb4f['childBefore'](_0x5bb78f['from']):_0x40fb4f['childAfter'](_0x5bb78f['to'])))do{if(_0x52a879<0x0?_0x40fb4f['to']<=_0x5bb78f['from']:_0x40fb4f['from']>=_0x5bb78f['to']){if(0x0==_0x1f09ce&&_0x16e208['indexOf'](_0x40fb4f['type']['name'])>-0x1&&_0x40fb4f['from']<_0x40fb4f['to']){let _0x573959=RZ(_0x40fb4f);return{'start':_0x448765,'end':_0x573959?{'from':_0x573959['from'],'to':_0x573959['to']}:void 0x0,'matched':!0x0};}if(CZ(_0x40fb4f['type'],_0x52a879,_0x554ea3))_0x1f09ce++;else{if(CZ(_0x40fb4f['type'],-_0x52a879,_0x554ea3)){if(0x0==_0x1f09ce){let _0x1ef78c=RZ(_0x40fb4f);return{'start':_0x448765,'end':_0x1ef78c&&_0x1ef78c['from']<_0x1ef78c['to']?{'from':_0x1ef78c['from'],'to':_0x1ef78c['to']}:void 0x0,'matched':!0x1};}_0x1f09ce--;}}}}while(_0x52a879<0x0?_0x40fb4f['prevSibling']():_0x40fb4f['nextSibling']());return{'start':_0x448765,'matched':!0x1};}const MZ=Object['create'](null),LZ=[GB['none']],$Z=[],DZ=Object['create'](null),QZ=Object['create'](null);for(let [e,s]of[['variable','variableName'],['variable-2','variableName.special'],['string-2','string.special'],['def','variableName.definition'],['tag','tagName'],['attribute','attributeName'],['type','typeName'],['builtin','variableName.standard'],['qualifier','modifier'],['error','invalid'],['header','heading'],['property','propertyName']])QZ[e]=UZ(MZ,s);function jZ(_0x7d4cfe,_0x5ebbd1){$Z['indexOf'](_0x7d4cfe)>-0x1||($Z['push'](_0x7d4cfe),console['warn'](_0x5ebbd1));}function UZ(_0x7a92eb,_0x3eb00c){let _0xb5e6a2=[];for(let _0x245298 of _0x3eb00c['split']('\x20')){let _0x3fc522=[];for(let _0x4bbe13 of _0x245298['split']('.')){let _0x232e1e=_0x7a92eb[_0x4bbe13]||nF[_0x4bbe13];_0x232e1e?'function'==typeof _0x232e1e?_0x3fc522['length']?_0x3fc522=_0x3fc522['map'](_0x232e1e):jZ(_0x4bbe13,'Modifier\x20'+_0x4bbe13+'\x20used\x20at\x20start\x20of\x20tag'):_0x3fc522['length']?jZ(_0x4bbe13,'Tag\x20'+_0x4bbe13+'\x20used\x20as\x20modifier'):_0x3fc522=Array['isArray'](_0x232e1e)?_0x232e1e:[_0x232e1e]:jZ(_0x4bbe13,'Unknown\x20highlighting\x20tag\x20'+_0x4bbe13);}for(let _0x213b13 of _0x3fc522)_0xb5e6a2['push'](_0x213b13);}if(!_0xb5e6a2['length'])return 0x0;let _0x412d56=_0x3eb00c['replace'](/ /g,'_'),_0x2cf8c5=_0x412d56+'\x20'+_0xb5e6a2['map'](t=>t['id']),_0x3803f4=DZ[_0x2cf8c5];if(_0x3803f4)return _0x3803f4['id'];let _0xd2b12d=DZ[_0x2cf8c5]=GB['define']({'id':LZ['length'],'name':_0x412d56,'props':[QH({[_0x412d56]:_0xb5e6a2})]});return LZ['push'](_0xd2b12d),_0xd2b12d['id'];}YD['RTL'],YD['LTR'];function VZ(_0x248249,_0x4768ca){return({state:_0xbbad91,dispatch:_0x32ed6e})=>{if(_0xbbad91['readOnly'])return!0x1;let _0x268840=_0x248249(_0x4768ca,_0xbbad91);return!!_0x268840&&(_0x32ed6e(_0xbbad91['update'](_0x268840)),!0x0);};}const BZ=VZ(qZ,0x0),HZ=VZ(XZ,0x0),FZ=VZ((_0xa29db6,_0x17abd9)=>XZ(_0xa29db6,_0x17abd9,function(_0x47d30c){let _0x1df395=[];for(let _0x4e7e39 of _0x47d30c['selection']['ranges']){let _0x4b88a5=_0x47d30c['doc']['lineAt'](_0x4e7e39['from']),_0x5bdf8c=_0x4e7e39['to']<=_0x4b88a5['to']?_0x4b88a5:_0x47d30c['doc']['lineAt'](_0x4e7e39['to']);_0x5bdf8c['from']>_0x4b88a5['from']&&_0x5bdf8c['from']==_0x4e7e39['to']&&(_0x5bdf8c=_0x4e7e39['to']==_0x4b88a5['to']+0x1?_0x4b88a5:_0x47d30c['doc']['lineAt'](_0x4e7e39['to']-0x1));let _0x19761f=_0x1df395['length']-0x1;_0x19761f>=0x0&&_0x1df395[_0x19761f]['to']>_0x4b88a5['from']?_0x1df395[_0x19761f]['to']=_0x5bdf8c['to']:_0x1df395['push']({'from':_0x4b88a5['from']+/^\s*/['exec'](_0x4b88a5['text'])[0x0]['length'],'to':_0x5bdf8c['to']});}return _0x1df395;}(_0x17abd9)),0x0);function ZZ(_0x2ebb07,_0x2bd359){let _0xafa807=_0x2ebb07['languageDataAt']('commentTokens',_0x2bd359,0x1);return _0xafa807['length']?_0xafa807[0x0]:{};}const GZ=0x32;function XZ(_0x4d399f,_0xac08d6,_0x5a73a2=_0xac08d6['selection']['ranges']){let _0x1b0a14=_0x5a73a2['map'](_0xca0965=>ZZ(_0xac08d6,_0xca0965['from'])['block']);if(!_0x1b0a14['every'](_0x21317e=>_0x21317e))return null;let _0x5abf94=_0x5a73a2['map']((_0x140086,_0x16d2fe)=>function(_0x4ef7f4,{open:_0x58b31b,close:_0x5b9c4d},_0x3a66ef,_0x26fe77){let _0x12e354,_0x5af542,_0x3138bc=_0x4ef7f4['sliceDoc'](_0x3a66ef-GZ,_0x3a66ef),_0x530715=_0x4ef7f4['sliceDoc'](_0x26fe77,_0x26fe77+GZ),_0x1ff66a=/\s*$/['exec'](_0x3138bc)[0x0]['length'],_0x3957e6=/^\s*/['exec'](_0x530715)[0x0]['length'],_0xf9f6f8=_0x3138bc['length']-_0x1ff66a;if(_0x3138bc['slice'](_0xf9f6f8-_0x58b31b['length'],_0xf9f6f8)==_0x58b31b&&_0x530715['slice'](_0x3957e6,_0x3957e6+_0x5b9c4d['length'])==_0x5b9c4d)return{'open':{'pos':_0x3a66ef-_0x1ff66a,'margin':_0x1ff66a&&0x1},'close':{'pos':_0x26fe77+_0x3957e6,'margin':_0x3957e6&&0x1}};_0x26fe77-_0x3a66ef<=0x2*GZ?_0x12e354=_0x5af542=_0x4ef7f4['sliceDoc'](_0x3a66ef,_0x26fe77):(_0x12e354=_0x4ef7f4['sliceDoc'](_0x3a66ef,_0x3a66ef+GZ),_0x5af542=_0x4ef7f4['sliceDoc'](_0x26fe77-GZ,_0x26fe77));let _0x42a6c0=/^\s*/['exec'](_0x12e354)[0x0]['length'],_0x400feb=/\s*$/['exec'](_0x5af542)[0x0]['length'],_0x417fad=_0x5af542['length']-_0x400feb-_0x5b9c4d['length'];return _0x12e354['slice'](_0x42a6c0,_0x42a6c0+_0x58b31b['length'])==_0x58b31b&&_0x5af542['slice'](_0x417fad,_0x417fad+_0x5b9c4d['length'])==_0x5b9c4d?{'open':{'pos':_0x3a66ef+_0x42a6c0+_0x58b31b['length'],'margin':/\s/['test'](_0x12e354['charAt'](_0x42a6c0+_0x58b31b['length']))?0x1:0x0},'close':{'pos':_0x26fe77-_0x400feb-_0x5b9c4d['length'],'margin':/\s/['test'](_0x5af542['charAt'](_0x417fad-0x1))?0x1:0x0}}:null;}(_0xac08d6,_0x1b0a14[_0x16d2fe],_0x140086['from'],_0x140086['to']));if(0x2!=_0x4d399f&&!_0x5abf94['every'](_0x5701f1=>_0x5701f1))return{'changes':_0xac08d6['changes'](_0x5a73a2['map']((_0x1b60be,_0x3a51f4)=>_0x5abf94[_0x3a51f4]?[]:[{'from':_0x1b60be['from'],'insert':_0x1b0a14[_0x3a51f4]['open']+'\x20'},{'from':_0x1b60be['to'],'insert':'\x20'+_0x1b0a14[_0x3a51f4]['close']}]))};if(0x1!=_0x4d399f&&_0x5abf94['some'](_0x5d36d9=>_0x5d36d9)){let _0x1ff460=[];for(let _0x199e09,_0x54d143=0x0;_0x54d143<_0x5abf94['length'];_0x54d143++)if(_0x199e09=_0x5abf94[_0x54d143]){let _0x16bec8=_0x1b0a14[_0x54d143],{open:_0x40e513,close:_0x5557c4}=_0x199e09;_0x1ff460['push']({'from':_0x40e513['pos']-_0x16bec8['open']['length'],'to':_0x40e513['pos']+_0x40e513['margin']},{'from':_0x5557c4['pos']-_0x5557c4['margin'],'to':_0x5557c4['pos']+_0x16bec8['close']['length']});}return{'changes':_0x1ff460};}return null;}function qZ(_0x2605bc,_0x5900e5,_0x14c734=_0x5900e5['selection']['ranges']){let _0x8aca7e=[],_0x3501a1=-0x1;for(let {from:_0x798390,to:_0x209c81}of _0x14c734){let _0x28c89f=_0x8aca7e['length'],_0x35398d=0x3b9aca00,_0x3259be=ZZ(_0x5900e5,_0x798390)['line'];if(_0x3259be){for(let _0x405a34=_0x798390;_0x405a34<=_0x209c81;){let _0x42fff7=_0x5900e5['doc']['lineAt'](_0x405a34);if(_0x42fff7['from']>_0x3501a1&&(_0x798390==_0x209c81||_0x209c81>_0x42fff7['from'])){_0x3501a1=_0x42fff7['from'];let _0x134c56=/^\s*/['exec'](_0x42fff7['text'])[0x0]['length'],_0x3181a6=_0x134c56==_0x42fff7['length'],_0x18370f=_0x42fff7['text']['slice'](_0x134c56,_0x134c56+_0x3259be['length'])==_0x3259be?_0x134c56:-0x1;_0x134c56<_0x42fff7['text']['length']&&_0x134c56<_0x35398d&&(_0x35398d=_0x134c56),_0x8aca7e['push']({'line':_0x42fff7,'comment':_0x18370f,'token':_0x3259be,'indent':_0x134c56,'empty':_0x3181a6,'single':!0x1});}_0x405a34=_0x42fff7['to']+0x1;}if(_0x35398d<0x3b9aca00){for(let _0x34d4fc=_0x28c89f;_0x34d4fc<_0x8aca7e['length'];_0x34d4fc++)_0x8aca7e[_0x34d4fc]['indent']<_0x8aca7e[_0x34d4fc]['line']['text']['length']&&(_0x8aca7e[_0x34d4fc]['indent']=_0x35398d);}_0x8aca7e['length']==_0x28c89f+0x1&&(_0x8aca7e[_0x28c89f]['single']=!0x0);}}if(0x2!=_0x2605bc&&_0x8aca7e['some'](_0x1ec550=>_0x1ec550['comment']<0x0&&(!_0x1ec550['empty']||_0x1ec550['single']))){let _0x793870=[];for(let {line:_0x5d42fb,token:_0x1eac56,indent:_0x42cb29,empty:_0x1b412d,single:_0x21fb79}of _0x8aca7e)!_0x21fb79&&_0x1b412d||_0x793870['push']({'from':_0x5d42fb['from']+_0x42cb29,'insert':_0x1eac56+'\x20'});let _0x1b7cf1=_0x5900e5['changes'](_0x793870);return{'changes':_0x1b7cf1,'selection':_0x5900e5['selection']['map'](_0x1b7cf1,0x1)};}if(0x1!=_0x2605bc&&_0x8aca7e['some'](_0x1ed1a8=>_0x1ed1a8['comment']>=0x0)){let _0x2dab22=[];for(let {line:_0x198a08,comment:_0x54514c,token:_0x2146d0}of _0x8aca7e)if(_0x54514c>=0x0){let _0xd77401=_0x198a08['from']+_0x54514c,_0x5510b1=_0xd77401+_0x2146d0['length'];'\x20'==_0x198a08['text'][_0x5510b1-_0x198a08['from']]&&_0x5510b1++,_0x2dab22['push']({'from':_0xd77401,'to':_0x5510b1});}return{'changes':_0x2dab22};}return null;}const WZ=c$['define'](),zZ=c$['define'](),YZ=LL['define'](),KZ=LL['define']({'combine':_0x2db713=>T$(_0x2db713,{'minDepth':0x64,'newGroupDelay':0x1f4,'joinToEvent':(_0x577dcd,_0x4ada0e)=>_0x4ada0e},{'minDepth':Math['max'],'newGroupDelay':Math['min'],'joinToEvent':(_0x486a95,_0x4646fe)=>(_0x5f41f3,_0x20e1a1)=>_0x486a95(_0x5f41f3,_0x20e1a1)||_0x4646fe(_0x5f41f3,_0x20e1a1)})}),JZ=BL['define']({'create':()=>gG['empty'],'update'(_0x4dd7a0,_0x3e9e7d){let _0x42ee26=_0x3e9e7d['state']['facet'](KZ),_0xd17d8=_0x3e9e7d['annotation'](WZ);if(_0xd17d8){let _0x124dca=oG['fromTransaction'](_0x3e9e7d,_0xd17d8['selection']),_0x46bd21=_0xd17d8['side'],_0x29a7e7=0x0==_0x46bd21?_0x4dd7a0['undone']:_0x4dd7a0['done'];return _0x29a7e7=_0x124dca?aG(_0x29a7e7,_0x29a7e7['length'],_0x42ee26['minDepth'],_0x124dca):uG(_0x29a7e7,_0x3e9e7d['startState']['selection']),new gG(0x0==_0x46bd21?_0xd17d8['rest']:_0x29a7e7,0x0==_0x46bd21?_0x29a7e7:_0xd17d8['rest']);}let _0x4e24e1=_0x3e9e7d['annotation'](zZ);if('full'!=_0x4e24e1&&'before'!=_0x4e24e1||(_0x4dd7a0=_0x4dd7a0['isolate']()),!0x1===_0x3e9e7d['annotation'](d$['addToHistory']))return _0x3e9e7d['changes']['empty']?_0x4dd7a0:_0x4dd7a0['addMapping'](_0x3e9e7d['changes']['desc']);let _0x4fb834=oG['fromTransaction'](_0x3e9e7d),_0x29a4df=_0x3e9e7d['annotation'](d$['time']),_0x4abacf=_0x3e9e7d['annotation'](d$['userEvent']);return _0x4fb834?_0x4dd7a0=_0x4dd7a0['addChanges'](_0x4fb834,_0x29a4df,_0x4abacf,_0x42ee26,_0x3e9e7d):_0x3e9e7d['selection']&&(_0x4dd7a0=_0x4dd7a0['addSelection'](_0x3e9e7d['startState']['selection'],_0x29a4df,_0x4abacf,_0x42ee26['newGroupDelay'])),'full'!=_0x4e24e1&&'after'!=_0x4e24e1||(_0x4dd7a0=_0x4dd7a0['isolate']()),_0x4dd7a0;},'toJSON':_0x536de7=>({'done':_0x536de7['done']['map'](_0x5c2859=>_0x5c2859['toJSON']()),'undone':_0x536de7['undone']['map'](_0x4425bb=>_0x4425bb['toJSON']())}),'fromJSON':_0x42b7a9=>new gG(_0x42b7a9['done']['map'](oG['fromJSON']),_0x42b7a9['undone']['map'](oG['fromJSON']))});function tG(_0x1f9e2f={}){return[JZ,KZ['of'](_0x1f9e2f),oV['domEventHandlers']({'beforeinput'(_0x246eee,_0x3186f6){let _0x4e7462='historyUndo'==_0x246eee['inputType']?iG:'historyRedo'==_0x246eee['inputType']?sG:null;return!!_0x4e7462&&(_0x246eee['preventDefault'](),_0x4e7462(_0x3186f6));}})];}function eG(_0x545202,_0x1c9128){return function({state:_0xfbdb77,dispatch:_0x273ea7}){if(!_0x1c9128&&_0xfbdb77['readOnly'])return!0x1;let _0x153d3f=_0xfbdb77['field'](JZ,!0x1);if(!_0x153d3f)return!0x1;let _0x10d28f=_0x153d3f['pop'](_0x545202,_0xfbdb77,_0x1c9128);return!!_0x10d28f&&(_0x273ea7(_0x10d28f),!0x0);};}const iG=eG(0x0,!0x1),sG=eG(0x1,!0x1),nG=eG(0x0,!0x0),rG=eG(0x1,!0x0);var oG=class HistEvent{constructor(_0x378e02,_0x444c5b,_0x22dec1,_0x303641,_0x15daf2){this['changes']=_0x378e02,this['effects']=_0x444c5b,this['mapped']=_0x22dec1,this['startSelection']=_0x303641,this['selectionsAfter']=_0x15daf2;}setSelAfter(_0x952057){return new HistEvent(this['changes'],this['effects'],this['mapped'],this['startSelection'],_0x952057);}toJSON(){var _0x2f2415,_0xd9847d,_0xfad9d0;return{'changes':null===(_0x2f2415=this['changes'])||void 0x0===_0x2f2415?void 0x0:_0x2f2415['toJSON'](),'mapped':null===(_0xd9847d=this['mapped'])||void 0x0===_0xd9847d?void 0x0:_0xd9847d['toJSON'](),'startSelection':null===(_0xfad9d0=this['startSelection'])||void 0x0===_0xfad9d0?void 0x0:_0xfad9d0['toJSON'](),'selectionsAfter':this['selectionsAfter']['map'](_0x2bf56e=>_0x2bf56e['toJSON']())};}static['fromJSON'](_0xcddab7){return new HistEvent(_0xcddab7['changes']&&TL['fromJSON'](_0xcddab7['changes']),[],_0xcddab7['mapped']&&EL['fromJSON'](_0xcddab7['mapped']),_0xcddab7['startSelection']&&PL['fromJSON'](_0xcddab7['startSelection']),_0xcddab7['selectionsAfter']['map'](PL['fromJSON']));}static fromTransaction(_0x5dca8b,_0x5d86f9){let _0x1660c7=lG;for(let _0xcd1456 of _0x5dca8b['startState']['facet'](YZ)){let _0x514bb7=_0xcd1456(_0x5dca8b);_0x514bb7['length']&&(_0x1660c7=_0x1660c7['concat'](_0x514bb7));}return!_0x1660c7['length']&&_0x5dca8b['changes']['empty']?null:new HistEvent(_0x5dca8b['changes']['invert'](_0x5dca8b['startState']['doc']),_0x1660c7,void 0x0,_0x5d86f9||_0x5dca8b['startState']['selection'],lG);}static selection(_0x550c21){return new HistEvent(void 0x0,lG,void 0x0,void 0x0,_0x550c21);}};function aG(_0x2deadb,_0x1dfc0a,_0x22eff4,_0x318891){let _0x1fca67=_0x1dfc0a+0x1>_0x22eff4+0x14?_0x1dfc0a-_0x22eff4-0x1:0x0,_0x1e6775=_0x2deadb['slice'](_0x1fca67,_0x1dfc0a);return _0x1e6775['push'](_0x318891),_0x1e6775;}function cG(_0x5b39af,_0x2ee54e){return _0x5b39af['length']?_0x2ee54e['length']?_0x5b39af['concat'](_0x2ee54e):_0x5b39af:_0x2ee54e;}const lG=[],hG=0xc8;function uG(_0x14a35d,_0x21a1e4){if(_0x14a35d['length']){let _0x59ec57=_0x14a35d[_0x14a35d['length']-0x1],_0xd1d443=_0x59ec57['selectionsAfter']['slice'](Math['max'](0x0,_0x59ec57['selectionsAfter']['length']-hG));return _0xd1d443['length']&&_0xd1d443[_0xd1d443['length']-0x1]['eq'](_0x21a1e4)?_0x14a35d:(_0xd1d443['push'](_0x21a1e4),aG(_0x14a35d,_0x14a35d['length']-0x1,0x3b9aca00,_0x59ec57['setSelAfter'](_0xd1d443)));}return[oG['selection']([_0x21a1e4])];}function dG(_0x1022ec){let _0x187a8c=_0x1022ec[_0x1022ec['length']-0x1],_0x10917d=_0x1022ec['slice']();return _0x10917d[_0x1022ec['length']-0x1]=_0x187a8c['setSelAfter'](_0x187a8c['selectionsAfter']['slice'](0x0,_0x187a8c['selectionsAfter']['length']-0x1)),_0x10917d;}function fG(_0x4c9f02,_0x1df532){if(!_0x4c9f02['length'])return _0x4c9f02;let _0x3286ae=_0x4c9f02['length'],_0x11052b=lG;for(;_0x3286ae;){let _0x485afa=mG(_0x4c9f02[_0x3286ae-0x1],_0x1df532,_0x11052b);if(_0x485afa['changes']&&!_0x485afa['changes']['empty']||_0x485afa['effects']['length']){let _0x4f22e4=_0x4c9f02['slice'](0x0,_0x3286ae);return _0x4f22e4[_0x3286ae-0x1]=_0x485afa,_0x4f22e4;}_0x1df532=_0x485afa['mapped'],_0x3286ae--,_0x11052b=_0x485afa['selectionsAfter'];}return _0x11052b['length']?[oG['selection'](_0x11052b)]:lG;}function mG(_0x492a52,_0x2c6fb6,_0x4d491c){let _0x2e911d=cG(_0x492a52['selectionsAfter']['length']?_0x492a52['selectionsAfter']['map'](_0xca4f7c=>_0xca4f7c['map'](_0x2c6fb6)):lG,_0x4d491c);if(!_0x492a52['changes'])return oG['selection'](_0x2e911d);let _0x52efdc=_0x492a52['changes']['map'](_0x2c6fb6),_0x1f35d8=_0x2c6fb6['mapDesc'](_0x492a52['changes'],!0x0),_0x15f80c=_0x492a52['mapped']?_0x492a52['mapped']['composeDesc'](_0x1f35d8):_0x1f35d8;return new oG(_0x52efdc,u$['mapEffects'](_0x492a52['effects'],_0x2c6fb6),_0x15f80c,_0x492a52['startSelection']['map'](_0x1f35d8),_0x2e911d);}const pG=/^(input\.type|delete)($|\.)/;var gG=class HistoryState{constructor(_0x3bc17a,_0x1e3003,_0x5edddb=0x0,_0x2d1183=void 0x0){this['done']=_0x3bc17a,this['undone']=_0x1e3003,this['prevTime']=_0x5edddb,this['prevUserEvent']=_0x2d1183;}isolate(){return this['prevTime']?new HistoryState(this['done'],this['undone']):this;}['addChanges'](_0x181bcc,_0x9971c1,_0x28221a,_0x594862,_0x31da9c){let _0x28cfa9=this['done'],_0x10c88e=_0x28cfa9[_0x28cfa9['length']-0x1];return _0x28cfa9=_0x10c88e&&_0x10c88e['changes']&&!_0x10c88e['changes']['empty']&&_0x181bcc['changes']&&(!_0x28221a||pG['test'](_0x28221a))&&(!_0x10c88e['selectionsAfter']['length']&&_0x9971c1-this['prevTime']<_0x594862['newGroupDelay']&&_0x594862['joinToEvent'](_0x31da9c,function(_0x3e9509,_0x22001f){let _0x2203aa=[],_0x31873d=!0x1;return _0x3e9509['iterChangedRanges']((_0x43423b,t)=>_0x2203aa['push'](_0x43423b,t)),_0x22001f['iterChangedRanges']((_0xfc8f4b,_0x44d336,_0x174dbb,t)=>{for(let _0x4c6827=0x0;_0x4c6827<_0x2203aa['length'];){let _0x554096=_0x2203aa[_0x4c6827++],_0x455d0c=_0x2203aa[_0x4c6827++];t>=_0x554096&&_0x174dbb<=_0x455d0c&&(_0x31873d=!0x0);}}),_0x31873d;}(_0x10c88e['changes'],_0x181bcc['changes']))||'input.type.compose'==_0x28221a)?aG(_0x28cfa9,_0x28cfa9['length']-0x1,_0x594862['minDepth'],new oG(_0x181bcc['changes']['compose'](_0x10c88e['changes']),cG(u$['mapEffects'](_0x181bcc['effects'],_0x10c88e['changes']),_0x10c88e['effects']),_0x10c88e['mapped'],_0x10c88e['startSelection'],lG)):aG(_0x28cfa9,_0x28cfa9['length'],_0x594862['minDepth'],_0x181bcc),new HistoryState(_0x28cfa9,lG,_0x9971c1,_0x28221a);}addSelection(_0x55f327,_0x59a367,_0x15d58e,_0x3d50ac){let _0x119809=this['done']['length']?this['done'][this['done']['length']-0x1]['selectionsAfter']:lG;return _0x119809['length']>0x0&&_0x59a367-this['prevTime']<_0x3d50ac&&_0x15d58e==this['prevUserEvent']&&_0x15d58e&&/^select($|\.)/['test'](_0x15d58e)&&(_0x4ea92b=_0x119809[_0x119809['length']-0x1],_0xb1fc2d=_0x55f327,_0x4ea92b['ranges']['length']==_0xb1fc2d['ranges']['length']&&0x0===_0x4ea92b['ranges']['filter']((_0x530b05,_0x3636bb)=>_0x530b05['empty']!=_0xb1fc2d['ranges'][_0x3636bb]['empty'])['length'])?this:new HistoryState(uG(this['done'],_0x55f327),this['undone'],_0x59a367,_0x15d58e);var _0x4ea92b,_0xb1fc2d;}['addMapping'](_0x1e10ef){return new HistoryState(fG(this['done'],_0x1e10ef),fG(this['undone'],_0x1e10ef),this['prevTime'],this['prevUserEvent']);}['pop'](_0x447050,_0x5b7271,_0x34518f){let _0x3b2970=0x0==_0x447050?this['done']:this['undone'];if(0x0==_0x3b2970['length'])return null;let _0x68209d=_0x3b2970[_0x3b2970['length']-0x1],_0x583a0b=_0x68209d['selectionsAfter'][0x0]||_0x5b7271['selection'];if(_0x34518f&&_0x68209d['selectionsAfter']['length'])return _0x5b7271['update']({'selection':_0x68209d['selectionsAfter'][_0x68209d['selectionsAfter']['length']-0x1],'annotations':WZ['of']({'side':_0x447050,'rest':dG(_0x3b2970),'selection':_0x583a0b}),'userEvent':0x0==_0x447050?'select.undo':'select.redo','scrollIntoView':!0x0});if(_0x68209d['changes']){let _0x349639=0x1==_0x3b2970['length']?lG:_0x3b2970['slice'](0x0,_0x3b2970['length']-0x1);return _0x68209d['mapped']&&(_0x349639=fG(_0x349639,_0x68209d['mapped'])),_0x5b7271['update']({'changes':_0x68209d['changes'],'selection':_0x68209d['startSelection'],'effects':_0x68209d['effects'],'annotations':WZ['of']({'side':_0x447050,'rest':_0x349639,'selection':_0x583a0b}),'filter':!0x1,'userEvent':0x0==_0x447050?'undo':'redo','scrollIntoView':!0x0});}return null;}};gG['empty']=new gG(lG,lG);const OG=[{'key':'Mod-z','run':iG,'preventDefault':!0x0},{'key':'Mod-y','mac':'Mod-Shift-z','run':sG,'preventDefault':!0x0},{'linux':'Ctrl-Shift-z','run':sG,'preventDefault':!0x0},{'key':'Mod-u','run':nG,'preventDefault':!0x0},{'key':'Alt-u','mac':'Mod-Shift-u','run':rG,'preventDefault':!0x0}];function wG(_0x2e9296,_0x4b6550){return PL['create'](_0x2e9296['ranges']['map'](_0x4b6550),_0x2e9296['mainIndex']);}function bG(_0x2acb99,_0x4ff570){return _0x2acb99['update']({'selection':_0x4ff570,'scrollIntoView':!0x0,'userEvent':'select'});}function yG({state:_0x2b6625,dispatch:_0x6ded54},_0x2a882b){let _0x5e9ace=wG(_0x2b6625['selection'],_0x2a882b);return!_0x5e9ace['eq'](_0x2b6625['selection'],!0x0)&&(_0x6ded54(bG(_0x2b6625,_0x5e9ace)),!0x0);}function vG(_0x205048,_0x41e4da){return PL['cursor'](_0x41e4da?_0x205048['to']:_0x205048['from']);}function _G(_0x4c7ffc,_0x19259c){return yG(_0x4c7ffc,_0x2b9311=>_0x2b9311['empty']?_0x4c7ffc['moveByChar'](_0x2b9311,_0x19259c):vG(_0x2b9311,_0x19259c));}function EG(_0x162498){return _0x162498['textDirectionAt'](_0x162498['state']['selection']['main']['head'])==YD['LTR'];}const TG=_0x4f90fb=>_G(_0x4f90fb,!EG(_0x4f90fb)),AG=_0x43d9f9=>_G(_0x43d9f9,EG(_0x43d9f9));function SG(_0x155e32,_0xea0f16){return yG(_0x155e32,_0xd5036f=>_0xd5036f['empty']?_0x155e32['moveByGroup'](_0xd5036f,_0xea0f16):vG(_0xd5036f,_0xea0f16));}'undefined'!=typeof Intl&&Intl['Segmenter'];function IG(_0x23de5f,_0x177853,_0x24f390){if(_0x177853['type']['prop'](_0x24f390))return!0x0;let _0x54f754=_0x177853['to']-_0x177853['from'];return _0x54f754&&(_0x54f754>0x2||/[^\s,.;:]/['test'](_0x23de5f['sliceDoc'](_0x177853['from'],_0x177853['to'])))||_0x177853['firstChild'];}function kG(_0x2ef757,_0x7bcdb8,_0x1ee123){let _0x556954,_0x549b1b,_0x10146d=dF(_0x2ef757)['resolveInner'](_0x7bcdb8['head']),_0x24292a=_0x1ee123?HB['closedBy']:HB['openedBy'];for(let _0x442b8d=_0x7bcdb8['head'];;){let _0x44c9ce=_0x1ee123?_0x10146d['childAfter'](_0x442b8d):_0x10146d['childBefore'](_0x442b8d);if(!_0x44c9ce)break;IG(_0x2ef757,_0x44c9ce,_0x24292a)?_0x10146d=_0x44c9ce:_0x442b8d=_0x1ee123?_0x44c9ce['to']:_0x44c9ce['from'];}return _0x549b1b=_0x10146d['type']['prop'](_0x24292a)&&(_0x556954=_0x1ee123?PZ(_0x2ef757,_0x10146d['from'],0x1):PZ(_0x2ef757,_0x10146d['to'],-0x1))&&_0x556954['matched']?_0x1ee123?_0x556954['end']['to']:_0x556954['end']['from']:_0x1ee123?_0x10146d['to']:_0x10146d['from'],PL['cursor'](_0x549b1b,_0x1ee123?-0x1:0x1);}function xG(_0x308309,_0x50d01b){return yG(_0x308309,_0x3a5beb=>{if(!_0x3a5beb['empty'])return vG(_0x3a5beb,_0x50d01b);let _0x59028a=_0x308309['moveVertically'](_0x3a5beb,_0x50d01b);return _0x59028a['head']!=_0x3a5beb['head']?_0x59028a:_0x308309['moveToLineBoundary'](_0x3a5beb,_0x50d01b);});}const CG=_0x2dcf98=>xG(_0x2dcf98,!0x1),RG=_0x205835=>xG(_0x205835,!0x0);function PG(_0x484028){let _0x415f90,_0x50b053=_0x484028['scrollDOM']['clientHeight']<_0x484028['scrollDOM']['scrollHeight']-0x2,_0x41cad3=0x0,_0x4d665e=0x0;if(_0x50b053){for(let _0x582f10 of _0x484028['state']['facet'](oV['scrollMargins'])){let _0xfe2320=_0x582f10(_0x484028);(null==_0xfe2320?void 0x0:_0xfe2320['top'])&&(_0x41cad3=Math['max'](null==_0xfe2320?void 0x0:_0xfe2320['top'],_0x41cad3)),(null==_0xfe2320?void 0x0:_0xfe2320['bottom'])&&(_0x4d665e=Math['max'](null==_0xfe2320?void 0x0:_0xfe2320['bottom'],_0x4d665e));}_0x415f90=_0x484028['scrollDOM']['clientHeight']-_0x41cad3-_0x4d665e;}else _0x415f90=(_0x484028['dom']['ownerDocument']['defaultView']||window)['innerHeight'];return{'marginTop':_0x41cad3,'marginBottom':_0x4d665e,'selfScroll':_0x50b053,'height':Math['max'](_0x484028['defaultLineHeight'],_0x415f90-0x5)};}function NG(_0x479638,_0x3b29c1){let _0x4bef5e,_0x507bca=PG(_0x479638),{state:_0x4564c2}=_0x479638,_0x39fa1c=wG(_0x4564c2['selection'],_0x3f655a=>_0x3f655a['empty']?_0x479638['moveVertically'](_0x3f655a,_0x3b29c1,_0x507bca['height']):vG(_0x3f655a,_0x3b29c1));if(_0x39fa1c['eq'](_0x4564c2['selection']))return!0x1;if(_0x507bca['selfScroll']){let _0x3dd180=_0x479638['coordsAtPos'](_0x4564c2['selection']['main']['head']),_0x16b09c=_0x479638['scrollDOM']['getBoundingClientRect'](),_0x5123d4=_0x16b09c['top']+_0x507bca['marginTop'],_0x58d2f=_0x16b09c['bottom']-_0x507bca['marginBottom'];_0x3dd180&&_0x3dd180['top']>_0x5123d4&&_0x3dd180['bottom']<_0x58d2f&&(_0x4bef5e=oV['scrollIntoView'](_0x39fa1c['main']['head'],{'y':'start','yMargin':_0x3dd180['top']-_0x5123d4}));}return _0x479638['dispatch'](bG(_0x4564c2,_0x39fa1c),{'effects':_0x4bef5e}),!0x0;}const MG=_0x36df70=>NG(_0x36df70,!0x1),LG=_0x487c83=>NG(_0x487c83,!0x0);function $G(_0x41fda9,_0x114a83,_0xf2bd62){let _0x43b18e=_0x41fda9['lineBlockAt'](_0x114a83['head']),_0x3f7aac=_0x41fda9['moveToLineBoundary'](_0x114a83,_0xf2bd62);if(_0x3f7aac['head']==_0x114a83['head']&&_0x3f7aac['head']!=(_0xf2bd62?_0x43b18e['to']:_0x43b18e['from'])&&(_0x3f7aac=_0x41fda9['moveToLineBoundary'](_0x114a83,_0xf2bd62,!0x1)),!_0xf2bd62&&_0x3f7aac['head']==_0x43b18e['from']&&_0x43b18e['length']){let _0x1bd781=/^\s*/['exec'](_0x41fda9['state']['sliceDoc'](_0x43b18e['from'],Math['min'](_0x43b18e['from']+0x64,_0x43b18e['to'])))[0x0]['length'];_0x1bd781&&_0x114a83['head']!=_0x43b18e['from']+_0x1bd781&&(_0x3f7aac=PL['cursor'](_0x43b18e['from']+_0x1bd781));}return _0x3f7aac;}function DG(_0x3d1d31,_0x5e14cf){let _0x1851ce=wG(_0x3d1d31['state']['selection'],_0x54bf07=>{let _0x3bbb12=_0x5e14cf(_0x54bf07);return PL['range'](_0x54bf07['anchor'],_0x3bbb12['head'],_0x3bbb12['goalColumn'],_0x3bbb12['bidiLevel']||void 0x0);});return!_0x1851ce['eq'](_0x3d1d31['state']['selection'])&&(_0x3d1d31['dispatch'](bG(_0x3d1d31['state'],_0x1851ce)),!0x0);}function QG(_0x27ab22,_0x28bb0a){return DG(_0x27ab22,_0x4c70fa=>_0x27ab22['moveByChar'](_0x4c70fa,_0x28bb0a));}const jG=_0x35a2f2=>QG(_0x35a2f2,!EG(_0x35a2f2)),UG=_0x358406=>QG(_0x358406,EG(_0x358406));function VG(_0x3b52a9,_0x3b65b2){return DG(_0x3b52a9,_0x2139e8=>_0x3b52a9['moveByGroup'](_0x2139e8,_0x3b65b2));}function BG(_0x4f5762,_0x61afe5){return DG(_0x4f5762,_0x29a7f6=>_0x4f5762['moveVertically'](_0x29a7f6,_0x61afe5));}const HG=_0x33ff18=>BG(_0x33ff18,!0x1),FG=_0x859e02=>BG(_0x859e02,!0x0);function ZG(_0x263505,_0x412773){return DG(_0x263505,_0x16dbdd=>_0x263505['moveVertically'](_0x16dbdd,_0x412773,PG(_0x263505)['height']));}const GG=_0x525ddb=>ZG(_0x525ddb,!0x1),XG=_0x2d124d=>ZG(_0x2d124d,!0x0),qG=({state:_0x1bc12b,dispatch:_0x776aca})=>(_0x776aca(bG(_0x1bc12b,{'anchor':0x0})),!0x0),WG=({state:_0x11cf0e,dispatch:_0x133e4b})=>(_0x133e4b(bG(_0x11cf0e,{'anchor':_0x11cf0e['doc']['length']})),!0x0),zG=({state:_0x348b44,dispatch:_0x2e9c64})=>(_0x2e9c64(bG(_0x348b44,{'anchor':_0x348b44['selection']['main']['anchor'],'head':0x0})),!0x0),YG=({state:_0x244202,dispatch:_0x425302})=>(_0x425302(bG(_0x244202,{'anchor':_0x244202['selection']['main']['anchor'],'head':_0x244202['doc']['length']})),!0x0);function KG(_0x158d1c,_0x59f8fa){if(_0x158d1c['state']['readOnly'])return!0x1;let _0x5b9f6c='delete.selection',{state:_0x304214}=_0x158d1c,_0x5ee478=_0x304214['changeByRange'](_0xd848d0=>{let {from:_0x20adb5,to:_0x2f64f8}=_0xd848d0;if(_0x20adb5==_0x2f64f8){let _0x114188=_0x59f8fa(_0xd848d0);_0x114188<_0x20adb5?(_0x5b9f6c='delete.backward',_0x114188=JG(_0x158d1c,_0x114188,!0x1)):_0x114188>_0x20adb5&&(_0x5b9f6c='delete.forward',_0x114188=JG(_0x158d1c,_0x114188,!0x0)),_0x20adb5=Math['min'](_0x20adb5,_0x114188),_0x2f64f8=Math['max'](_0x2f64f8,_0x114188);}else _0x20adb5=JG(_0x158d1c,_0x20adb5,!0x1),_0x2f64f8=JG(_0x158d1c,_0x2f64f8,!0x0);return _0x20adb5==_0x2f64f8?{'range':_0xd848d0}:{'changes':{'from':_0x20adb5,'to':_0x2f64f8},'range':PL['cursor'](_0x20adb5,_0x20adb5<_0xd848d0['head']?-0x1:0x1)};});return!_0x5ee478['changes']['empty']&&(_0x158d1c['dispatch'](_0x304214['update'](_0x5ee478,{'scrollIntoView':!0x0,'userEvent':_0x5b9f6c,'effects':'delete.selection'==_0x5b9f6c?oV['announce']['of'](_0x304214['phrase']('Selection\x20deleted')):void 0x0})),!0x0);}function JG(_0x30efe1,_0x37349e,_0x5add1b){if(_0x30efe1 instanceof oV){for(let _0x306263 of _0x30efe1['state']['facet'](oV['atomicRanges'])['map'](_0x288d76=>_0x288d76(_0x30efe1)))_0x306263['between'](_0x37349e,_0x37349e,(_0x436fc2,_0x1f0434)=>{_0x436fc2<_0x37349e&&_0x1f0434>_0x37349e&&(_0x37349e=_0x5add1b?_0x1f0434:_0x436fc2);});}return _0x37349e;}const tX=(_0x1dbadc,_0x328328,_0x17df84)=>KG(_0x1dbadc,_0x35066d=>{let _0x4fc399,_0x1deedf,_0x320c06=_0x35066d['from'],{state:_0x5e6df6}=_0x1dbadc,_0x141e74=_0x5e6df6['doc']['lineAt'](_0x320c06);if(_0x17df84&&!_0x328328&&_0x320c06>_0x141e74['from']&&_0x320c06<_0x141e74['from']+0xc8&&!/[^ \t]/['test'](_0x4fc399=_0x141e74['text']['slice'](0x0,_0x320c06-_0x141e74['from']))){if('\x09'==_0x4fc399[_0x4fc399['length']-0x1])return _0x320c06-0x1;let _0x100f81=B$(_0x4fc399,_0x5e6df6['tabSize'])%SF(_0x5e6df6)||SF(_0x5e6df6);for(let _0x26dd01=0x0;_0x26dd01<_0x100f81&&'\x20'==_0x4fc399[_0x4fc399['length']-0x1-_0x26dd01];_0x26dd01++)_0x320c06--;_0x1deedf=_0x320c06;}else _0x1deedf=OL(_0x141e74['text'],_0x320c06-_0x141e74['from'],_0x328328,_0x328328)+_0x141e74['from'],_0x1deedf==_0x320c06&&_0x141e74['number']!=(_0x328328?_0x5e6df6['doc']['lines']:0x1)?_0x1deedf+=_0x328328?0x1:-0x1:!_0x328328&&/[\ufe00-\ufe0f]/['test'](_0x141e74['text']['slice'](_0x1deedf-_0x141e74['from'],_0x320c06-_0x141e74['from']))&&(_0x1deedf=OL(_0x141e74['text'],_0x1deedf-_0x141e74['from'],!0x1,!0x1)+_0x141e74['from']);return _0x1deedf;}),eX=_0x1fde24=>tX(_0x1fde24,!0x1,!0x0),iX=_0x5b04da=>tX(_0x5b04da,!0x0,!0x1),sX=(_0x505018,_0x373b00)=>KG(_0x505018,_0x1c5260=>{let _0x32b5ff=_0x1c5260['head'],{state:_0x51f22b}=_0x505018,_0x18ccb4=_0x51f22b['doc']['lineAt'](_0x32b5ff),_0x46f6cf=_0x51f22b['charCategorizer'](_0x32b5ff);for(let _0x542dce=null;;){if(_0x32b5ff==(_0x373b00?_0x18ccb4['to']:_0x18ccb4['from'])){_0x32b5ff==_0x1c5260['head']&&_0x18ccb4['number']!=(_0x373b00?_0x51f22b['doc']['lines']:0x1)&&(_0x32b5ff+=_0x373b00?0x1:-0x1);break;}let _0xf87811=OL(_0x18ccb4['text'],_0x32b5ff-_0x18ccb4['from'],_0x373b00)+_0x18ccb4['from'],_0x103501=_0x18ccb4['text']['slice'](Math['min'](_0x32b5ff,_0xf87811)-_0x18ccb4['from'],Math['max'](_0x32b5ff,_0xf87811)-_0x18ccb4['from']),_0xb4cd2a=_0x46f6cf(_0x103501);if(null!=_0x542dce&&_0xb4cd2a!=_0x542dce)break;'\x20'==_0x103501&&_0x32b5ff==_0x1c5260['head']||(_0x542dce=_0xb4cd2a),_0x32b5ff=_0xf87811;}return _0x32b5ff;}),nX=_0x535834=>sX(_0x535834,!0x1);function rX(_0x31a49c){let _0x3e17f0=[],_0x1e954c=-0x1;for(let _0x538e69 of _0x31a49c['selection']['ranges']){let _0x5be30e=_0x31a49c['doc']['lineAt'](_0x538e69['from']),_0x1a50d2=_0x31a49c['doc']['lineAt'](_0x538e69['to']);if(_0x538e69['empty']||_0x538e69['to']!=_0x1a50d2['from']||(_0x1a50d2=_0x31a49c['doc']['lineAt'](_0x538e69['to']-0x1)),_0x1e954c>=_0x5be30e['number']){let _0x3c4872=_0x3e17f0[_0x3e17f0['length']-0x1];_0x3c4872['to']=_0x1a50d2['to'],_0x3c4872['ranges']['push'](_0x538e69);}else _0x3e17f0['push']({'from':_0x5be30e['from'],'to':_0x1a50d2['to'],'ranges':[_0x538e69]});_0x1e954c=_0x1a50d2['number']+0x1;}return _0x3e17f0;}function oX(_0x52ef12,_0x409141,_0x3f0934){if(_0x52ef12['readOnly'])return!0x1;let _0x2212cc=[],_0x4b34ed=[];for(let _0x327637 of rX(_0x52ef12)){if(_0x3f0934?_0x327637['to']==_0x52ef12['doc']['length']:0x0==_0x327637['from'])continue;let _0x43b241=_0x52ef12['doc']['lineAt'](_0x3f0934?_0x327637['to']+0x1:_0x327637['from']-0x1),_0x49e76e=_0x43b241['length']+0x1;if(_0x3f0934){_0x2212cc['push']({'from':_0x327637['to'],'to':_0x43b241['to']},{'from':_0x327637['from'],'insert':_0x43b241['text']+_0x52ef12['lineBreak']});for(let _0x4e2a0f of _0x327637['ranges'])_0x4b34ed['push'](PL['range'](Math['min'](_0x52ef12['doc']['length'],_0x4e2a0f['anchor']+_0x49e76e),Math['min'](_0x52ef12['doc']['length'],_0x4e2a0f['head']+_0x49e76e)));}else{_0x2212cc['push']({'from':_0x43b241['from'],'to':_0x327637['from']},{'from':_0x327637['to'],'insert':_0x52ef12['lineBreak']+_0x43b241['text']});for(let _0x25136a of _0x327637['ranges'])_0x4b34ed['push'](PL['range'](_0x25136a['anchor']-_0x49e76e,_0x25136a['head']-_0x49e76e));}}return!!_0x2212cc['length']&&(_0x409141(_0x52ef12['update']({'changes':_0x2212cc,'scrollIntoView':!0x0,'selection':PL['create'](_0x4b34ed,_0x52ef12['selection']['mainIndex']),'userEvent':'move.line'})),!0x0);}function aX(_0x156174,_0x361fc6,_0x3517c5){if(_0x156174['readOnly'])return!0x1;let _0x17b00a=[];for(let _0x4412e2 of rX(_0x156174))_0x3517c5?_0x17b00a['push']({'from':_0x4412e2['from'],'insert':_0x156174['doc']['slice'](_0x4412e2['from'],_0x4412e2['to'])+_0x156174['lineBreak']}):_0x17b00a['push']({'from':_0x4412e2['to'],'insert':_0x156174['lineBreak']+_0x156174['doc']['slice'](_0x4412e2['from'],_0x4412e2['to'])});return _0x361fc6(_0x156174['update']({'changes':_0x17b00a,'scrollIntoView':!0x0,'userEvent':'input.copyline'})),!0x0;}const cX=hX(!0x1),lX=hX(!0x0);function hX(_0x5ab02b){return({state:_0x54d44c,dispatch:_0x30f6c1})=>{if(_0x54d44c['readOnly'])return!0x1;let _0x21d4dd=_0x54d44c['changeByRange'](_0x163516=>{let {from:_0x2c06f2,to:_0x578f6a}=_0x163516,_0x133337=_0x54d44c['doc']['lineAt'](_0x2c06f2),_0x28c3d2=!_0x5ab02b&&_0x2c06f2==_0x578f6a&&function(_0x335f1f,_0x22fc3e){if(/\(\)|\[\]|\{\}/['test'](_0x335f1f['sliceDoc'](_0x22fc3e-0x1,_0x22fc3e+0x1)))return{'from':_0x22fc3e,'to':_0x22fc3e};let _0xbeb290,_0xd0b0ca=dF(_0x335f1f)['resolveInner'](_0x22fc3e),_0xc02694=_0xd0b0ca['childBefore'](_0x22fc3e),_0x4d9796=_0xd0b0ca['childAfter'](_0x22fc3e);return _0xc02694&&_0x4d9796&&_0xc02694['to']<=_0x22fc3e&&_0x4d9796['from']>=_0x22fc3e&&(_0xbeb290=_0xc02694['type']['prop'](HB['closedBy']))&&_0xbeb290['indexOf'](_0x4d9796['name'])>-0x1&&_0x335f1f['doc']['lineAt'](_0xc02694['to'])['from']==_0x335f1f['doc']['lineAt'](_0x4d9796['from'])['from']&&!/\S/['test'](_0x335f1f['sliceDoc'](_0xc02694['to'],_0x4d9796['from']))?{'from':_0xc02694['to'],'to':_0x4d9796['from']}:null;}(_0x54d44c,_0x2c06f2);_0x5ab02b&&(_0x2c06f2=_0x578f6a=(_0x578f6a<=_0x133337['to']?_0x133337:_0x54d44c['doc']['lineAt'](_0x578f6a))['to']);let _0xe39a80=new xF(_0x54d44c,{'simulateBreak':_0x2c06f2,'simulateDoubleBreak':!!_0x28c3d2}),_0x1ef526=kF(_0xe39a80,_0x2c06f2);for(null==_0x1ef526&&(_0x1ef526=B$(/^\s*/['exec'](_0x54d44c['doc']['lineAt'](_0x2c06f2)['text'])[0x0],_0x54d44c['tabSize']));_0x578f6a<_0x133337['to']&&/\s/['test'](_0x133337['text'][_0x578f6a-_0x133337['from']]);)_0x578f6a++;_0x28c3d2?{from:_0x2c06f2,to:_0x578f6a}=_0x28c3d2:_0x2c06f2>_0x133337['from']&&_0x2c06f2<_0x133337['from']+0x64&&!/\S/['test'](_0x133337['text']['slice'](0x0,_0x2c06f2))&&(_0x2c06f2=_0x133337['from']);let _0x269b26=['',IF(_0x54d44c,_0x1ef526)];return _0x28c3d2&&_0x269b26['push'](IF(_0x54d44c,_0xe39a80['lineIndent'](_0x133337['from'],-0x1))),{'changes':{'from':_0x2c06f2,'to':_0x578f6a,'insert':aL['of'](_0x269b26)},'range':PL['cursor'](_0x2c06f2+0x1+_0x269b26[0x1]['length'])};});return _0x30f6c1(_0x54d44c['update'](_0x21d4dd,{'scrollIntoView':!0x0,'userEvent':'input'})),!0x0;};}function uX(_0x349277,_0x13d1fe){let _0x48e0e5=-0x1;return _0x349277['changeByRange'](_0x138403=>{let _0x499e3c=[];for(let _0x27cf7f=_0x138403['from'];_0x27cf7f<=_0x138403['to'];){let _0xe8e6b6=_0x349277['doc']['lineAt'](_0x27cf7f);_0xe8e6b6['number']>_0x48e0e5&&(_0x138403['empty']||_0x138403['to']>_0xe8e6b6['from'])&&(_0x13d1fe(_0xe8e6b6,_0x499e3c,_0x138403),_0x48e0e5=_0xe8e6b6['number']),_0x27cf7f=_0xe8e6b6['to']+0x1;}let _0x43f665=_0x349277['changes'](_0x499e3c);return{'changes':_0x499e3c,'range':PL['range'](_0x43f665['mapPos'](_0x138403['anchor'],0x1),_0x43f665['mapPos'](_0x138403['head'],0x1))};});}const dX=({state:_0x321beb,dispatch:_0x1c8868})=>!_0x321beb['readOnly']&&(_0x1c8868(_0x321beb['update'](uX(_0x321beb,(_0x329537,_0x68e5eb)=>{_0x68e5eb['push']({'from':_0x329537['from'],'insert':_0x321beb['facet'](AF)});}),{'userEvent':'input.indent'})),!0x0),fX=({state:_0x567dce,dispatch:_0x3a93be})=>!_0x567dce['readOnly']&&(_0x3a93be(_0x567dce['update'](uX(_0x567dce,(_0x9bf923,_0x16479f)=>{let _0x55a479=/^\s*/['exec'](_0x9bf923['text'])[0x0];if(!_0x55a479)return;let _0x1d6786=B$(_0x55a479,_0x567dce['tabSize']),_0x211919=0x0,_0x240d10=IF(_0x567dce,Math['max'](0x0,_0x1d6786-SF(_0x567dce)));for(;_0x211919<_0x55a479['length']&&_0x211919<_0x240d10['length']&&_0x55a479['charCodeAt'](_0x211919)==_0x240d10['charCodeAt'](_0x211919);)_0x211919++;_0x16479f['push']({'from':_0x9bf923['from']+_0x211919,'to':_0x9bf923['from']+_0x55a479['length'],'insert':_0x240d10['slice'](_0x211919)});}),{'userEvent':'delete.dedent'})),!0x0),mX=_0x4d2771=>(_0x4d2771['setTabFocusMode'](),!0x0),pX=[{'key':'Ctrl-b','run':TG,'shift':jG,'preventDefault':!0x0},{'key':'Ctrl-f','run':AG,'shift':UG},{'key':'Ctrl-p','run':CG,'shift':HG},{'key':'Ctrl-n','run':RG,'shift':FG},{'key':'Ctrl-a','run':_0x9c6013=>yG(_0x9c6013,_0x38a884=>PL['cursor'](_0x9c6013['lineBlockAt'](_0x38a884['head'])['from'],0x1)),'shift':_0x1d7e28=>DG(_0x1d7e28,_0x2cd113=>PL['cursor'](_0x1d7e28['lineBlockAt'](_0x2cd113['head'])['from']))},{'key':'Ctrl-e','run':_0x375b49=>yG(_0x375b49,_0x3b36fd=>PL['cursor'](_0x375b49['lineBlockAt'](_0x3b36fd['head'])['to'],-0x1)),'shift':_0xa5e403=>DG(_0xa5e403,_0x15f456=>PL['cursor'](_0xa5e403['lineBlockAt'](_0x15f456['head'])['to']))},{'key':'Ctrl-d','run':iX},{'key':'Ctrl-h','run':eX},{'key':'Ctrl-k','run':_0x239bcd=>KG(_0x239bcd,_0x1d1be1=>{let _0x1b7517=_0x239bcd['lineBlockAt'](_0x1d1be1['head'])['to'];return _0x1d1be1['head']<_0x1b7517?_0x1b7517:Math['min'](_0x239bcd['state']['doc']['length'],_0x1d1be1['head']+0x1);})},{'key':'Ctrl-Alt-h','run':nX},{'key':'Ctrl-o','run':({state:_0x57ec09,dispatch:_0x101b85})=>{if(_0x57ec09['readOnly'])return!0x1;let _0x5a5b39=_0x57ec09['changeByRange'](_0x50170e=>({'changes':{'from':_0x50170e['from'],'to':_0x50170e['to'],'insert':aL['of'](['',''])},'range':PL['cursor'](_0x50170e['from'])}));return _0x101b85(_0x57ec09['update'](_0x5a5b39,{'scrollIntoView':!0x0,'userEvent':'input'})),!0x0;}},{'key':'Ctrl-t','run':({state:_0x2368ad,dispatch:_0x1a84bd})=>{if(_0x2368ad['readOnly'])return!0x1;let _0x311401=_0x2368ad['changeByRange'](_0x4bcb10=>{if(!_0x4bcb10['empty']||0x0==_0x4bcb10['from']||_0x4bcb10['from']==_0x2368ad['doc']['length'])return{'range':_0x4bcb10};let _0x255095=_0x4bcb10['from'],_0x32a6a5=_0x2368ad['doc']['lineAt'](_0x255095),_0x1839be=_0x255095==_0x32a6a5['from']?_0x255095-0x1:OL(_0x32a6a5['text'],_0x255095-_0x32a6a5['from'],!0x1)+_0x32a6a5['from'],_0x787a63=_0x255095==_0x32a6a5['to']?_0x255095+0x1:OL(_0x32a6a5['text'],_0x255095-_0x32a6a5['from'],!0x0)+_0x32a6a5['from'];return{'changes':{'from':_0x1839be,'to':_0x787a63,'insert':_0x2368ad['doc']['slice'](_0x255095,_0x787a63)['append'](_0x2368ad['doc']['slice'](_0x1839be,_0x255095))},'range':PL['cursor'](_0x787a63)};});return!_0x311401['changes']['empty']&&(_0x1a84bd(_0x2368ad['update'](_0x311401,{'scrollIntoView':!0x0,'userEvent':'move.character'})),!0x0);}},{'key':'Ctrl-v','run':LG}],gX=[{'key':'ArrowLeft','run':TG,'shift':jG,'preventDefault':!0x0},{'key':'Mod-ArrowLeft','mac':'Alt-ArrowLeft','run':_0xbe3452=>SG(_0xbe3452,!EG(_0xbe3452)),'shift':_0x5ec09f=>VG(_0x5ec09f,!EG(_0x5ec09f)),'preventDefault':!0x0},{'mac':'Cmd-ArrowLeft','run':_0x1a272e=>yG(_0x1a272e,_0x4236ca=>$G(_0x1a272e,_0x4236ca,!EG(_0x1a272e))),'shift':_0x58a82e=>DG(_0x58a82e,_0x22961f=>$G(_0x58a82e,_0x22961f,!EG(_0x58a82e))),'preventDefault':!0x0},{'key':'ArrowRight','run':AG,'shift':UG,'preventDefault':!0x0},{'key':'Mod-ArrowRight','mac':'Alt-ArrowRight','run':_0x191b04=>SG(_0x191b04,EG(_0x191b04)),'shift':_0x2aabe4=>VG(_0x2aabe4,EG(_0x2aabe4)),'preventDefault':!0x0},{'mac':'Cmd-ArrowRight','run':_0x1cae42=>yG(_0x1cae42,_0xd58c4c=>$G(_0x1cae42,_0xd58c4c,EG(_0x1cae42))),'shift':_0x181a9f=>DG(_0x181a9f,_0x320615=>$G(_0x181a9f,_0x320615,EG(_0x181a9f))),'preventDefault':!0x0},{'key':'ArrowUp','run':CG,'shift':HG,'preventDefault':!0x0},{'mac':'Cmd-ArrowUp','run':qG,'shift':zG},{'mac':'Ctrl-ArrowUp','run':MG,'shift':GG},{'key':'ArrowDown','run':RG,'shift':FG,'preventDefault':!0x0},{'mac':'Cmd-ArrowDown','run':WG,'shift':YG},{'mac':'Ctrl-ArrowDown','run':LG,'shift':XG},{'key':'PageUp','run':MG,'shift':GG},{'key':'PageDown','run':LG,'shift':XG},{'key':'Home','run':_0x172691=>yG(_0x172691,_0x1e9b7b=>$G(_0x172691,_0x1e9b7b,!0x1)),'shift':_0x35a507=>DG(_0x35a507,_0x573b56=>$G(_0x35a507,_0x573b56,!0x1)),'preventDefault':!0x0},{'key':'Mod-Home','run':qG,'shift':zG},{'key':'End','run':_0x166862=>yG(_0x166862,_0x290718=>$G(_0x166862,_0x290718,!0x0)),'shift':_0x1cb1ea=>DG(_0x1cb1ea,_0x3faa37=>$G(_0x1cb1ea,_0x3faa37,!0x0)),'preventDefault':!0x0},{'key':'Mod-End','run':WG,'shift':YG},{'key':'Enter','run':cX,'shift':cX},{'key':'Mod-a','run':({state:_0x4ce05a,dispatch:_0x44f975})=>(_0x44f975(_0x4ce05a['update']({'selection':{'anchor':0x0,'head':_0x4ce05a['doc']['length']},'userEvent':'select'})),!0x0)},{'key':'Backspace','run':eX,'shift':eX},{'key':'Delete','run':iX},{'key':'Mod-Backspace','mac':'Alt-Backspace','run':nX},{'key':'Mod-Delete','mac':'Alt-Delete','run':_0x5cb114=>sX(_0x5cb114,!0x0)},{'mac':'Mod-Backspace','run':_0x447833=>KG(_0x447833,_0x586783=>{let _0x5db17c=_0x447833['moveToLineBoundary'](_0x586783,!0x1)['head'];return _0x586783['head']>_0x5db17c?_0x5db17c:Math['max'](0x0,_0x586783['head']-0x1);})},{'mac':'Mod-Delete','run':_0x481fab=>KG(_0x481fab,_0x3dd9f8=>{let _0x5f2277=_0x481fab['moveToLineBoundary'](_0x3dd9f8,!0x0)['head'];return _0x3dd9f8['head']<_0x5f2277?_0x5f2277:Math['min'](_0x481fab['state']['doc']['length'],_0x3dd9f8['head']+0x1);})}]['concat'](pX['map'](_0x3cec5b=>({'mac':_0x3cec5b['key'],'run':_0x3cec5b['run'],'shift':_0x3cec5b['shift']}))),OX=[{'key':'Alt-ArrowLeft','mac':'Ctrl-ArrowLeft','run':_0x11d5c2=>yG(_0x11d5c2,_0x25f252=>kG(_0x11d5c2['state'],_0x25f252,!EG(_0x11d5c2))),'shift':_0x5e2ea7=>DG(_0x5e2ea7,_0x3fd8a=>kG(_0x5e2ea7['state'],_0x3fd8a,!EG(_0x5e2ea7)))},{'key':'Alt-ArrowRight','mac':'Ctrl-ArrowRight','run':_0x695cad=>yG(_0x695cad,_0x1366b8=>kG(_0x695cad['state'],_0x1366b8,EG(_0x695cad))),'shift':_0x48fdd7=>DG(_0x48fdd7,_0x17b9a4=>kG(_0x48fdd7['state'],_0x17b9a4,EG(_0x48fdd7)))},{'key':'Alt-ArrowUp','run':({state:_0x29372e,dispatch:_0x2180f2})=>oX(_0x29372e,_0x2180f2,!0x1)},{'key':'Shift-Alt-ArrowUp','run':({state:_0x27bf4c,dispatch:_0x4282cf})=>aX(_0x27bf4c,_0x4282cf,!0x1)},{'key':'Alt-ArrowDown','run':({state:_0x5a3e2e,dispatch:_0x2b3792})=>oX(_0x5a3e2e,_0x2b3792,!0x0)},{'key':'Shift-Alt-ArrowDown','run':({state:_0x25a85d,dispatch:_0x543186})=>aX(_0x25a85d,_0x543186,!0x0)},{'key':'Escape','run':({state:_0x83e5a5,dispatch:_0x4f5d73})=>{let _0x52839f=_0x83e5a5['selection'],_0x3683a1=null;return _0x52839f['ranges']['length']>0x1?_0x3683a1=PL['create']([_0x52839f['main']]):_0x52839f['main']['empty']||(_0x3683a1=PL['create']([PL['cursor'](_0x52839f['main']['head'])])),!!_0x3683a1&&(_0x4f5d73(bG(_0x83e5a5,_0x3683a1)),!0x0);}},{'key':'Mod-Enter','run':lX},{'key':'Alt-l','mac':'Ctrl-l','run':({state:_0x5588b2,dispatch:_0x19f501})=>{let _0x431bad=rX(_0x5588b2)['map'](({from:_0x3fdba2,to:_0x16b6db})=>PL['range'](_0x3fdba2,Math['min'](_0x16b6db+0x1,_0x5588b2['doc']['length'])));return _0x19f501(_0x5588b2['update']({'selection':PL['create'](_0x431bad),'userEvent':'select'})),!0x0;}},{'key':'Mod-i','run':({state:_0x36244c,dispatch:_0x19f1f3})=>{let _0x21ad6d=wG(_0x36244c['selection'],_0x26c417=>{let _0x30195d=dF(_0x36244c),_0x3bfeb2=_0x30195d['resolveStack'](_0x26c417['from'],0x1);if(_0x26c417['empty']){let _0x26e593=_0x30195d['resolveStack'](_0x26c417['from'],-0x1);_0x26e593['node']['from']>=_0x3bfeb2['node']['from']&&_0x26e593['node']['to']<=_0x3bfeb2['node']['to']&&(_0x3bfeb2=_0x26e593);}for(let _0x3ea7f5=_0x3bfeb2;_0x3ea7f5;_0x3ea7f5=_0x3ea7f5['next']){let {node:_0x386ef7}=_0x3ea7f5;if((_0x386ef7['from']<_0x26c417['from']&&_0x386ef7['to']>=_0x26c417['to']||_0x386ef7['to']>_0x26c417['to']&&_0x386ef7['from']<=_0x26c417['from'])&&_0x3ea7f5['next'])return PL['range'](_0x386ef7['to'],_0x386ef7['from']);}return _0x26c417;});return!_0x21ad6d['eq'](_0x36244c['selection'])&&(_0x19f1f3(bG(_0x36244c,_0x21ad6d)),!0x0);},'preventDefault':!0x0},{'key':'Mod-[','run':fX},{'key':'Mod-]','run':dX},{'key':'Mod-Alt-\x5c','run':({state:_0x164e09,dispatch:_0x3e0519})=>{if(_0x164e09['readOnly'])return!0x1;let _0x50a7e5=Object['create'](null),_0x43b823=new xF(_0x164e09,{'overrideIndentation':_0xffb113=>{let _0x69563d=_0x50a7e5[_0xffb113];return null==_0x69563d?-0x1:_0x69563d;}}),_0x42f7e1=uX(_0x164e09,(_0x2238e7,_0x5e7ba6,_0xda1193)=>{let _0x30d3e4=kF(_0x43b823,_0x2238e7['from']);if(null==_0x30d3e4)return;/\S/['test'](_0x2238e7['text'])||(_0x30d3e4=0x0);let _0x4009df=/^\s*/['exec'](_0x2238e7['text'])[0x0],_0x335d56=IF(_0x164e09,_0x30d3e4);(_0x4009df!=_0x335d56||_0xda1193['from']<_0x2238e7['from']+_0x4009df['length'])&&(_0x50a7e5[_0x2238e7['from']]=_0x30d3e4,_0x5e7ba6['push']({'from':_0x2238e7['from'],'to':_0x2238e7['from']+_0x4009df['length'],'insert':_0x335d56}));});return _0x42f7e1['changes']['empty']||_0x3e0519(_0x164e09['update'](_0x42f7e1,{'userEvent':'indent'})),!0x0;}},{'key':'Shift-Mod-k','run':_0x96ef3c=>{if(_0x96ef3c['state']['readOnly'])return!0x1;let {state:_0x247f25}=_0x96ef3c,_0x5c41e6=_0x247f25['changes'](rX(_0x247f25)['map'](({from:_0x13eabd,to:_0x3bc9e6})=>(_0x13eabd>0x0?_0x13eabd--:_0x3bc9e6<_0x247f25['doc']['length']&&_0x3bc9e6++,{'from':_0x13eabd,'to':_0x3bc9e6}))),_0x35fc36=wG(_0x247f25['selection'],_0x5c7fd9=>{let _0x1ee733;if(_0x96ef3c['lineWrapping']){let _0x23e37f=_0x96ef3c['lineBlockAt'](_0x5c7fd9['head']),_0x449664=_0x96ef3c['coordsAtPos'](_0x5c7fd9['head'],_0x5c7fd9['assoc']||0x1);_0x449664&&(_0x1ee733=_0x23e37f['bottom']+_0x96ef3c['documentTop']-_0x449664['bottom']+_0x96ef3c['defaultLineHeight']/0x2);}return _0x96ef3c['moveVertically'](_0x5c7fd9,!0x0,_0x1ee733);})['map'](_0x5c41e6);return _0x96ef3c['dispatch']({'changes':_0x5c41e6,'selection':_0x35fc36,'scrollIntoView':!0x0,'userEvent':'delete.line'}),!0x0;}},{'key':'Shift-Mod-\x5c','run':({state:_0x254799,dispatch:_0x232819})=>function(_0x10221e,_0x3542c0,_0x3ef37c){let _0x1f9f86=!0x1,_0x1735a3=wG(_0x10221e['selection'],_0x4d2e54=>{let _0x30dfe7=PZ(_0x10221e,_0x4d2e54['head'],-0x1)||PZ(_0x10221e,_0x4d2e54['head'],0x1)||_0x4d2e54['head']>0x0&&PZ(_0x10221e,_0x4d2e54['head']-0x1,0x1)||_0x4d2e54['head']<_0x10221e['doc']['length']&&PZ(_0x10221e,_0x4d2e54['head']+0x1,-0x1);if(!_0x30dfe7||!_0x30dfe7['end'])return _0x4d2e54;_0x1f9f86=!0x0;let _0x38406a=_0x30dfe7['start']['from']==_0x4d2e54['head']?_0x30dfe7['end']['to']:_0x30dfe7['end']['from'];return _0x3ef37c?PL['range'](_0x4d2e54['anchor'],_0x38406a):PL['cursor'](_0x38406a);});return!!_0x1f9f86&&(_0x3542c0(bG(_0x10221e,_0x1735a3)),!0x0);}(_0x254799,_0x232819,!0x1)},{'key':'Mod-/','run':_0x5f1669=>{let {state:_0x558647}=_0x5f1669,_0x79c479=_0x558647['doc']['lineAt'](_0x558647['selection']['main']['from']),_0x129e5c=ZZ(_0x5f1669['state'],_0x79c479['from']);return _0x129e5c['line']?BZ(_0x5f1669):!!_0x129e5c['block']&&FZ(_0x5f1669);}},{'key':'Alt-A','run':HZ},{'key':'Ctrl-m','mac':'Shift-Alt-m','run':mX}]['concat'](gX);var wX=class{constructor(_0x37c5d3,_0x4a022c,_0x5cd34f,_0x554dce){this['state']=_0x37c5d3,this['pos']=_0x4a022c,this['explicit']=_0x5cd34f,this['view']=_0x554dce,this['abortListeners']=[],this['abortOnDocChange']=!0x1;}tokenBefore(_0x59b817){let _0x395bcd=dF(this['state'])['resolveInner'](this['pos'],-0x1);for(;_0x395bcd&&_0x59b817['indexOf'](_0x395bcd['name'])<0x0;)_0x395bcd=_0x395bcd['parent'];return _0x395bcd?{'from':_0x395bcd['from'],'to':this['pos'],'text':this['state']['sliceDoc'](_0x395bcd['from'],this['pos']),'type':_0x395bcd['type']}:null;}matchBefore(_0xfee9c){let _0x21b0e0=this['state']['doc']['lineAt'](this['pos']),_0x5a0636=Math['max'](_0x21b0e0['from'],this['pos']-0xfa),_0x9c6503=_0x21b0e0['text']['slice'](_0x5a0636-_0x21b0e0['from'],this['pos']-_0x21b0e0['from']),_0xe8a6af=_0x9c6503['search'](EX(_0xfee9c,!0x1));return _0xe8a6af<0x0?null:{'from':_0x5a0636+_0xe8a6af,'to':this['pos'],'text':_0x9c6503['slice'](_0xe8a6af)};}get aborted(){return null==this['abortListeners'];}addEventListener(_0x1b40ed,_0x41219c,_0x509588){'abort'==_0x1b40ed&&this['abortListeners']&&(this['abortListeners']['push'](_0x41219c),_0x509588&&_0x509588['onDocChange']&&(this['abortOnDocChange']=!0x0));}};function bX(_0x1bd651){let _0x16f047=Object['keys'](_0x1bd651)['join'](''),_0x32bdd6=/\w/['test'](_0x16f047);return _0x32bdd6&&(_0x16f047=_0x16f047['replace'](/\w/g,'')),'['+(_0x32bdd6?'\x5cw':'')+_0x16f047['replace'](/[^\w\s]/g,'\x5c$&')+']';}function yX(_0x198fb1){let _0x4cc92f=_0x198fb1['map'](_0x403f52=>'string'==typeof _0x403f52?{'label':_0x403f52}:_0x403f52),[_0x409cf4,_0x318d2d]=_0x4cc92f['every'](_0xf04390=>/^\w+$/['test'](_0xf04390['label']))?[/\w*$/,/\w+$/]:function(_0x5ec016){let _0xc63cd3=Object['create'](null),_0x4348ec=Object['create'](null);for(let {label:_0x1bbd9f}of _0x5ec016){_0xc63cd3[_0x1bbd9f[0x0]]=!0x0;for(let _0x32c845=0x1;_0x32c845<_0x1bbd9f['length'];_0x32c845++)_0x4348ec[_0x1bbd9f[_0x32c845]]=!0x0;}let _0x50c409=bX(_0xc63cd3)+bX(_0x4348ec)+'*$';return[new RegExp('^'+_0x50c409),new RegExp(_0x50c409)];}(_0x4cc92f);return _0x436318=>{let _0x2fbb6d=_0x436318['matchBefore'](_0x318d2d);return _0x2fbb6d||_0x436318['explicit']?{'from':_0x2fbb6d?_0x2fbb6d['from']:_0x436318['pos'],'options':_0x4cc92f,'validFor':_0x409cf4}:null;};}var vX=class{constructor(_0x5780f4,_0x154a49,_0x1f942e,_0x9ecea1){this['completion']=_0x5780f4,this['source']=_0x154a49,this['match']=_0x1f942e,this['score']=_0x9ecea1;}};function _X(_0x38abf7){return _0x38abf7['selection']['main']['from'];}function EX(_0x5c4f3c,_0x46836e){var _0x3f51ff;let {source:_0x2f2eee}=_0x5c4f3c,_0x3d71d7=_0x46836e&&'^'!=_0x2f2eee[0x0],_0x23c5e9='$'!=_0x2f2eee[_0x2f2eee['length']-0x1];return _0x3d71d7||_0x23c5e9?new RegExp((_0x3d71d7?'^':'')+'(?:'+_0x2f2eee+')'+(_0x23c5e9?'$':''),null!==(_0x3f51ff=_0x5c4f3c['flags'])&&void 0x0!==_0x3f51ff?_0x3f51ff:_0x5c4f3c['ignoreCase']?'i':''):_0x5c4f3c;}const TX=c$['define']();function AX(_0x23c730,_0x4d8a83,_0x5b5e6a,_0xd72c6c){let {main:_0x5f36b1}=_0x23c730['selection'],_0x3d16ae=_0x5b5e6a-_0x5f36b1['from'],_0x2bc286=_0xd72c6c-_0x5f36b1['from'];return{..._0x23c730['changeByRange'](_0x5641f5=>{if(_0x5641f5!=_0x5f36b1&&_0x5b5e6a!=_0xd72c6c&&_0x23c730['sliceDoc'](_0x5641f5['from']+_0x3d16ae,_0x5641f5['from']+_0x2bc286)!=_0x23c730['sliceDoc'](_0x5b5e6a,_0xd72c6c))return{'range':_0x5641f5};let _0x45c841=_0x23c730['toText'](_0x4d8a83);return{'changes':{'from':_0x5641f5['from']+_0x3d16ae,'to':_0xd72c6c==_0x5f36b1['from']?_0x5641f5['to']:_0x5641f5['from']+_0x2bc286,'insert':_0x45c841},'range':PL['cursor'](_0x5641f5['from']+_0x3d16ae+_0x45c841['length'])};}),'scrollIntoView':!0x0,'userEvent':'input.complete'};}const SX=new WeakMap();function IX(_0x554ac1){if(!Array['isArray'](_0x554ac1))return _0x554ac1;let _0x37c627=SX['get'](_0x554ac1);return _0x37c627||SX['set'](_0x554ac1,_0x37c627=yX(_0x554ac1)),_0x37c627;}const kX=u$['define'](),xX=u$['define']();var CX=class{constructor(_0x29110c){this['pattern']=_0x29110c,this['chars']=[],this['folded']=[],this['any']=[],this['precise']=[],this['byWord']=[],this['score']=0x0,this['matched']=[];for(let _0xefcb28=0x0;_0xefcb28<_0x29110c['length'];){let _0x2a49c5=wL(_0x29110c,_0xefcb28),_0x5602cd=yL(_0x2a49c5);this['chars']['push'](_0x2a49c5);let _0x5a66ec=_0x29110c['slice'](_0xefcb28,_0xefcb28+_0x5602cd),_0x460a4b=_0x5a66ec['toUpperCase']();this['folded']['push'](wL(_0x460a4b==_0x5a66ec?_0x5a66ec['toLowerCase']():_0x460a4b,0x0)),_0xefcb28+=_0x5602cd;}this['astral']=_0x29110c['length']!=this['chars']['length'];}ret(_0x5f2bc5,_0x17307b){return this['score']=_0x5f2bc5,this['matched']=_0x17307b,this;}match(_0x2b6f15){if(0x0==this['pattern']['length'])return this['ret'](-0x64,[]);if(_0x2b6f15['length']<this['pattern']['length'])return null;let {chars:_0x5af37c,folded:_0x282254,any:_0x555454,precise:_0x40d096,byWord:_0x3c7fb7}=this;if(0x1==_0x5af37c['length']){let _0x4280e5=wL(_0x2b6f15,0x0),_0x2db420=yL(_0x4280e5),_0x4adee7=_0x2db420==_0x2b6f15['length']?0x0:-0x64;if(_0x4280e5==_0x5af37c[0x0]);else{if(_0x4280e5!=_0x282254[0x0])return null;_0x4adee7+=-0xc8;}return this['ret'](_0x4adee7,[0x0,_0x2db420]);}let _0x1c59ca=_0x2b6f15['indexOf'](this['pattern']);if(0x0==_0x1c59ca)return this['ret'](_0x2b6f15['length']==this['pattern']['length']?0x0:-0x64,[0x0,this['pattern']['length']]);let _0x38a952=_0x5af37c['length'],_0x4fb4ea=0x0;if(_0x1c59ca<0x0){for(let _0xdbb750=0x0,_0x417175=Math['min'](_0x2b6f15['length'],0xc8);_0xdbb750<_0x417175&&_0x4fb4ea<_0x38a952;){let _0x5ce3c0=wL(_0x2b6f15,_0xdbb750);_0x5ce3c0!=_0x5af37c[_0x4fb4ea]&&_0x5ce3c0!=_0x282254[_0x4fb4ea]||(_0x555454[_0x4fb4ea++]=_0xdbb750),_0xdbb750+=yL(_0x5ce3c0);}if(_0x4fb4ea<_0x38a952)return null;}let _0x301fda=0x0,_0x578d66=0x0,_0x2cb413=!0x1,_0x2ff82a=0x0,_0x54661f=-0x1,_0x54c66e=-0x1,_0x338c66=/[a-z]/['test'](_0x2b6f15),_0x20f63d=!0x0;for(let _0x1950e9=0x0,_0x735b54=Math['min'](_0x2b6f15['length'],0xc8),_0x5b8de1=0x0;_0x1950e9<_0x735b54&&_0x578d66<_0x38a952;){let _0x453412=wL(_0x2b6f15,_0x1950e9);_0x1c59ca<0x0&&(_0x301fda<_0x38a952&&_0x453412==_0x5af37c[_0x301fda]&&(_0x40d096[_0x301fda++]=_0x1950e9),_0x2ff82a<_0x38a952&&(_0x453412==_0x5af37c[_0x2ff82a]||_0x453412==_0x282254[_0x2ff82a]?(0x0==_0x2ff82a&&(_0x54661f=_0x1950e9),_0x54c66e=_0x1950e9+0x1,_0x2ff82a++):_0x2ff82a=0x0));let _0x1d8e6e,_0x4d77b1=_0x453412<0xff?_0x453412>=0x30&&_0x453412<=0x39||_0x453412>=0x61&&_0x453412<=0x7a?0x2:_0x453412>=0x41&&_0x453412<=0x5a?0x1:0x0:(_0x1d8e6e=bL(_0x453412))!=_0x1d8e6e['toLowerCase']()?0x1:_0x1d8e6e!=_0x1d8e6e['toUpperCase']()?0x2:0x0;(!_0x1950e9||0x1==_0x4d77b1&&_0x338c66||0x0==_0x5b8de1&&0x0!=_0x4d77b1)&&(_0x5af37c[_0x578d66]==_0x453412||_0x282254[_0x578d66]==_0x453412&&(_0x2cb413=!0x0)?_0x3c7fb7[_0x578d66++]=_0x1950e9:_0x3c7fb7['length']&&(_0x20f63d=!0x1)),_0x5b8de1=_0x4d77b1,_0x1950e9+=yL(_0x453412);}return _0x578d66==_0x38a952&&0x0==_0x3c7fb7[0x0]&&_0x20f63d?this['result']((_0x2cb413?-0xc8:0x0)-0x64,_0x3c7fb7,_0x2b6f15):_0x2ff82a==_0x38a952&&0x0==_0x54661f?this['ret'](-0xc8-_0x2b6f15['length']+(_0x54c66e==_0x2b6f15['length']?0x0:-0x64),[0x0,_0x54c66e]):_0x1c59ca>-0x1?this['ret'](-0x2bc-_0x2b6f15['length'],[_0x1c59ca,_0x1c59ca+this['pattern']['length']]):_0x2ff82a==_0x38a952?this['ret'](-0x384-_0x2b6f15['length'],[_0x54661f,_0x54c66e]):_0x578d66==_0x38a952?this['result']((_0x2cb413?-0xc8:0x0)-0x64-0x2bc+(_0x20f63d?0x0:-0x44c),_0x3c7fb7,_0x2b6f15):0x2==_0x5af37c['length']?null:this['result']((_0x555454[0x0]?-0x2bc:0x0)-0xc8-0x44c,_0x555454,_0x2b6f15);}result(_0x460a14,_0x4171ff,_0x4001d3){let _0x27bab4=[],_0x329375=0x0;for(let _0x399bc7 of _0x4171ff){let _0x1015cc=_0x399bc7+(this['astral']?yL(wL(_0x4001d3,_0x399bc7)):0x1);_0x329375&&_0x27bab4[_0x329375-0x1]==_0x399bc7?_0x27bab4[_0x329375-0x1]=_0x1015cc:(_0x27bab4[_0x329375++]=_0x399bc7,_0x27bab4[_0x329375++]=_0x1015cc);}return this['ret'](_0x460a14-_0x4001d3['length'],_0x27bab4);}},RX=class{constructor(_0x682287){this['pattern']=_0x682287,this['matched']=[],this['score']=0x0,this['folded']=_0x682287['toLowerCase']();}match(_0x57bf88){if(_0x57bf88['length']<this['pattern']['length'])return null;let _0x5b483b=_0x57bf88['slice'](0x0,this['pattern']['length']),_0x5791f1=_0x5b483b==this['pattern']?0x0:_0x5b483b['toLowerCase']()==this['folded']?-0xc8:null;return null==_0x5791f1?null:(this['matched']=[0x0,_0x5b483b['length']],this['score']=_0x5791f1+(_0x57bf88['length']==this['pattern']['length']?0x0:-0x64),this);}};const PX=LL['define']({'combine':_0x268510=>T$(_0x268510,{'activateOnTyping':!0x0,'activateOnCompletion':()=>!0x1,'activateOnTypingDelay':0x64,'selectOnOpen':!0x0,'override':null,'closeOnBlur':!0x0,'maxRenderedOptions':0x64,'defaultKeymap':!0x0,'tooltipClass':()=>'','optionClass':()=>'','aboveCursor':!0x1,'icons':!0x0,'addToOptions':[],'positionInfo':MX,'filterStrict':!0x1,'compareCompletions':(_0x5671a3,_0x59b4bf)=>(_0x5671a3['sortText']||_0x5671a3['label'])['localeCompare'](_0x59b4bf['sortText']||_0x59b4bf['label']),'interactionDelay':0x4b,'updateSyncTime':0x64},{'defaultKeymap':(_0x24150b,_0x4a90b7)=>_0x24150b&&_0x4a90b7,'closeOnBlur':(_0x5a5001,_0x451183)=>_0x5a5001&&_0x451183,'icons':(_0x198697,_0xdbdc08)=>_0x198697&&_0xdbdc08,'tooltipClass':(_0x13a60e,_0xc1ee11)=>_0x2e899e=>NX(_0x13a60e(_0x2e899e),_0xc1ee11(_0x2e899e)),'optionClass':(_0x3912a5,_0x41a761)=>_0x248d3d=>NX(_0x3912a5(_0x248d3d),_0x41a761(_0x248d3d)),'addToOptions':(_0x38b6a9,_0x5b2e03)=>_0x38b6a9['concat'](_0x5b2e03),'filterStrict':(_0xc2ae35,_0x24785e)=>_0xc2ae35||_0x24785e})});function NX(_0x48539e,_0x27a0cf){return _0x48539e?_0x27a0cf?_0x48539e+'\x20'+_0x27a0cf:_0x48539e:_0x27a0cf;}function MX(_0x1ad055,_0x3d0cbc,_0xeafe4a,_0x1886e6,_0x11ccfd,_0x44d2cd){let _0x4697ec,_0x2e0823,_0x3ea797=_0x1ad055['textDirection']==YD['RTL'],_0x544eb6=_0x3ea797,_0xd4eeff=!0x1,_0x3756e6='top',_0x40c2a4=_0x3d0cbc['left']-_0x11ccfd['left'],_0x41da20=_0x11ccfd['right']-_0x3d0cbc['right'],_0x4aa4a7=_0x1886e6['right']-_0x1886e6['left'],_0x2b4734=_0x1886e6['bottom']-_0x1886e6['top'];if(_0x544eb6&&_0x40c2a4<Math['min'](_0x4aa4a7,_0x41da20)?_0x544eb6=!0x1:!_0x544eb6&&_0x41da20<Math['min'](_0x4aa4a7,_0x40c2a4)&&(_0x544eb6=!0x0),_0x4aa4a7<=(_0x544eb6?_0x40c2a4:_0x41da20))_0x4697ec=Math['max'](_0x11ccfd['top'],Math['min'](_0xeafe4a['top'],_0x11ccfd['bottom']-_0x2b4734))-_0x3d0cbc['top'],_0x2e0823=Math['min'](0x190,_0x544eb6?_0x40c2a4:_0x41da20);else{_0xd4eeff=!0x0,_0x2e0823=Math['min'](0x190,(_0x3ea797?_0x3d0cbc['right']:_0x11ccfd['right']-_0x3d0cbc['left'])-0x1e);let _0xeadbba=_0x11ccfd['bottom']-_0x3d0cbc['bottom'];_0xeadbba>=_0x2b4734||_0xeadbba>_0x3d0cbc['top']?_0x4697ec=_0xeafe4a['bottom']-_0x3d0cbc['top']:(_0x3756e6='bottom',_0x4697ec=_0x3d0cbc['bottom']-_0xeafe4a['top']);}return{'style':_0x3756e6+':\x20'+_0x4697ec/((_0x3d0cbc['bottom']-_0x3d0cbc['top'])/_0x44d2cd['offsetHeight'])+'px;\x20max-width:\x20'+_0x2e0823/((_0x3d0cbc['right']-_0x3d0cbc['left'])/_0x44d2cd['offsetWidth'])+'px','class':'cm-completionInfo-'+(_0xd4eeff?_0x3ea797?'left-narrow':'right-narrow':_0x544eb6?'left':'right')};}const LX=u$['define']();function $X(_0x585c6c,_0x561377,_0x35b604){if(_0x585c6c<=_0x35b604)return{'from':0x0,'to':_0x585c6c};if(_0x561377<0x0&&(_0x561377=0x0),_0x561377<=_0x585c6c>>0x1){let _0x13fb2a=Math['floor'](_0x561377/_0x35b604);return{'from':_0x13fb2a*_0x35b604,'to':(_0x13fb2a+0x1)*_0x35b604};}let _0x2384bb=Math['ceil']((_0x585c6c-_0x561377)/_0x35b604);return{'from':_0x585c6c-_0x2384bb*_0x35b604,'to':_0x585c6c-(_0x2384bb-0x1)*_0x35b604};}var DX=class{constructor(_0x5b611a,_0x412b87,_0x5e8690){this['view']=_0x5b611a,this['stateField']=_0x412b87,this['applyCompletion']=_0x5e8690,this['info']=null,this['infoDestroy']=null,this['placeInfoReq']={'read':()=>this['measureInfo'](),'write':_0x527355=>this['placeInfo'](_0x527355),'key':this},this['space']=null,this['currentClass']='';let _0x3144b6=_0x5b611a['state']['field'](_0x412b87),{options:_0x44bdc5,selected:_0x4be8c5}=_0x3144b6['open'],_0x4cf74f=_0x5b611a['state']['facet'](PX);this['optionContent']=function(_0x5a92b9){let _0x5a0605=_0x5a92b9['addToOptions']['slice']();return _0x5a92b9['icons']&&_0x5a0605['push']({'render'(_0x5298da){let _0x47d13f=document['createElement']('div');return _0x47d13f['classList']['add']('cm-completionIcon'),_0x5298da['type']&&_0x47d13f['classList']['add'](..._0x5298da['type']['split'](/\s+/g)['map'](_0x52edf3=>'cm-completionIcon-'+_0x52edf3)),_0x47d13f['setAttribute']('aria-hidden','true'),_0x47d13f;},'position':0x14}),_0x5a0605['push']({'render'(_0x378149,_0x4de7e7,_0x1e1d88,_0x2f6c7f){let _0x9ac2f2=document['createElement']('span');_0x9ac2f2['className']='cm-completionLabel';let _0x190bdb=_0x378149['displayLabel']||_0x378149['label'],_0x2e4f0d=0x0;for(let _0x31da19=0x0;_0x31da19<_0x2f6c7f['length'];){let _0x264379=_0x2f6c7f[_0x31da19++],_0x4d9950=_0x2f6c7f[_0x31da19++];_0x264379>_0x2e4f0d&&_0x9ac2f2['appendChild'](document['createTextNode'](_0x190bdb['slice'](_0x2e4f0d,_0x264379)));let _0x5976d5=_0x9ac2f2['appendChild'](document['createElement']('span'));_0x5976d5['appendChild'](document['createTextNode'](_0x190bdb['slice'](_0x264379,_0x4d9950))),_0x5976d5['className']='cm-completionMatchedText',_0x2e4f0d=_0x4d9950;}return _0x2e4f0d<_0x190bdb['length']&&_0x9ac2f2['appendChild'](document['createTextNode'](_0x190bdb['slice'](_0x2e4f0d))),_0x9ac2f2;},'position':0x32},{'render'(_0xd59808){if(!_0xd59808['detail'])return null;let _0x3984ea=document['createElement']('span');return _0x3984ea['className']='cm-completionDetail',_0x3984ea['textContent']=_0xd59808['detail'],_0x3984ea;},'position':0x50}),_0x5a0605['sort']((_0x9dd080,_0x96f45f)=>_0x9dd080['position']-_0x96f45f['position'])['map'](_0x3e8322=>_0x3e8322['render']);}(_0x4cf74f),this['optionClass']=_0x4cf74f['optionClass'],this['tooltipClass']=_0x4cf74f['tooltipClass'],this['range']=$X(_0x44bdc5['length'],_0x4be8c5,_0x4cf74f['maxRenderedOptions']),this['dom']=document['createElement']('div'),this['dom']['className']='cm-tooltip-autocomplete',this['updateTooltipClass'](_0x5b611a['state']),this['dom']['addEventListener']('mousedown',_0x577ae5=>{let {options:_0x52c41a}=_0x5b611a['state']['field'](_0x412b87)['open'];for(let _0x58209e,_0xf3db8c=_0x577ae5['target'];_0xf3db8c&&_0xf3db8c!=this['dom'];_0xf3db8c=_0xf3db8c['parentNode'])if('LI'==_0xf3db8c['nodeName']&&(_0x58209e=/-(\d+)$/['exec'](_0xf3db8c['id']))&&+_0x58209e[0x1]<_0x52c41a['length'])return this['applyCompletion'](_0x5b611a,_0x52c41a[+_0x58209e[0x1]]),void _0x577ae5['preventDefault']();if(_0x577ae5['target']==this['list']){let _0x583fba=this['list']['classList']['contains']('cm-completionListIncompleteTop')&&_0x577ae5['clientY']<this['list']['firstChild']['getBoundingClientRect']()['top']?this['range']['from']-0x1:this['list']['classList']['contains']('cm-completionListIncompleteBottom')&&_0x577ae5['clientY']>this['list']['lastChild']['getBoundingClientRect']()['bottom']?this['range']['to']:null;null!=_0x583fba&&(_0x5b611a['dispatch']({'effects':LX['of'](_0x583fba)}),_0x577ae5['preventDefault']());}}),this['dom']['addEventListener']('focusout',_0x178813=>{let _0x380f9a=_0x5b611a['state']['field'](this['stateField'],!0x1);_0x380f9a&&_0x380f9a['tooltip']&&_0x5b611a['state']['facet'](PX)['closeOnBlur']&&_0x178813['relatedTarget']!=_0x5b611a['contentDOM']&&_0x5b611a['dispatch']({'effects':xX['of'](null)});}),this['showOptions'](_0x44bdc5,_0x3144b6['id']);}mount(){this['updateSel']();}showOptions(_0x465d12,_0x4086a5){this['list']&&this['list']['remove'](),this['list']=this['dom']['appendChild'](this['createListBox'](_0x465d12,_0x4086a5,this['range'])),this['list']['addEventListener']('scroll',()=>{this['info']&&this['view']['requestMeasure'](this['placeInfoReq']);});}update(_0x3573f6){var _0xd0bdad;let _0x191b7c=_0x3573f6['state']['field'](this['stateField']),_0xec36d3=_0x3573f6['startState']['field'](this['stateField']);if(this['updateTooltipClass'](_0x3573f6['state']),_0x191b7c!=_0xec36d3){let {options:_0x440ed7,selected:_0x5088bd,disabled:_0xc70ae2}=_0x191b7c['open'];_0xec36d3['open']&&_0xec36d3['open']['options']==_0x440ed7||(this['range']=$X(_0x440ed7['length'],_0x5088bd,_0x3573f6['state']['facet'](PX)['maxRenderedOptions']),this['showOptions'](_0x440ed7,_0x191b7c['id'])),this['updateSel'](),_0xc70ae2!=(null===(_0xd0bdad=_0xec36d3['open'])||void 0x0===_0xd0bdad?void 0x0:_0xd0bdad['disabled'])&&this['dom']['classList']['toggle']('cm-tooltip-autocomplete-disabled',!!_0xc70ae2);}}updateTooltipClass(_0x46c8f2){let _0x12f8d8=this['tooltipClass'](_0x46c8f2);if(_0x12f8d8!=this['currentClass']){for(let _0x4b17f5 of this['currentClass']['split']('\x20'))_0x4b17f5&&this['dom']['classList']['remove'](_0x4b17f5);for(let _0x208ba7 of _0x12f8d8['split']('\x20'))_0x208ba7&&this['dom']['classList']['add'](_0x208ba7);this['currentClass']=_0x12f8d8;}}positioned(_0x2d2b2e){this['space']=_0x2d2b2e,this['info']&&this['view']['requestMeasure'](this['placeInfoReq']);}updateSel(){let _0x499760=this['view']['state']['field'](this['stateField']),_0x51e682=_0x499760['open'];(_0x51e682['selected']>-0x1&&_0x51e682['selected']<this['range']['from']||_0x51e682['selected']>=this['range']['to'])&&(this['range']=$X(_0x51e682['options']['length'],_0x51e682['selected'],this['view']['state']['facet'](PX)['maxRenderedOptions']),this['showOptions'](_0x51e682['options'],_0x499760['id']));let _0x535006=this['updateSelectedOption'](_0x51e682['selected']);if(_0x535006){this['destroyInfo']();let {completion:_0x26d800}=_0x51e682['options'][_0x51e682['selected']],{info:_0x544ea5}=_0x26d800;if(!_0x544ea5)return;let _0x30412d='string'==typeof _0x544ea5?document['createTextNode'](_0x544ea5):_0x544ea5(_0x26d800);if(!_0x30412d)return;'then'in _0x30412d?_0x30412d['then'](_0x210667=>{_0x210667&&this['view']['state']['field'](this['stateField'],!0x1)==_0x499760&&this['addInfoPane'](_0x210667,_0x26d800);})['catch'](_0x2724f5=>RQ(this['view']['state'],_0x2724f5,'completion\x20info')):(this['addInfoPane'](_0x30412d,_0x26d800),_0x535006['setAttribute']('aria-describedby',this['info']['id']));}}['addInfoPane'](_0x147346,_0x193c46){this['destroyInfo']();let _0x3a1e1a=this['info']=document['createElement']('div');if(_0x3a1e1a['className']='cm-tooltip\x20cm-completionInfo',_0x3a1e1a['id']='cm-completionInfo-'+Math['floor'](0xffff*Math['random']())['toString'](0x10),null!=_0x147346['nodeType'])_0x3a1e1a['appendChild'](_0x147346),this['infoDestroy']=null;else{let {dom:_0x555971,destroy:_0x868838}=_0x147346;_0x3a1e1a['appendChild'](_0x555971),this['infoDestroy']=_0x868838||null;}this['dom']['appendChild'](_0x3a1e1a),this['view']['requestMeasure'](this['placeInfoReq']);}updateSelectedOption(_0x3ef78e){let _0x110863=null;for(let _0x1f6635=this['list']['firstChild'],_0x4b3a36=this['range']['from'];_0x1f6635;_0x1f6635=_0x1f6635['nextSibling'],_0x4b3a36++)'LI'==_0x1f6635['nodeName']&&_0x1f6635['id']?_0x4b3a36==_0x3ef78e?_0x1f6635['hasAttribute']('aria-selected')||(_0x1f6635['setAttribute']('aria-selected','true'),_0x110863=_0x1f6635):_0x1f6635['hasAttribute']('aria-selected')&&(_0x1f6635['removeAttribute']('aria-selected'),_0x1f6635['removeAttribute']('aria-describedby')):_0x4b3a36--;return _0x110863&&function(_0x1332b0,_0x25ca2e){let _0x5c3d28=_0x1332b0['getBoundingClientRect'](),_0x226244=_0x25ca2e['getBoundingClientRect'](),_0x52be2e=_0x5c3d28['height']/_0x1332b0['offsetHeight'];_0x226244['top']<_0x5c3d28['top']?_0x1332b0['scrollTop']-=(_0x5c3d28['top']-_0x226244['top'])/_0x52be2e:_0x226244['bottom']>_0x5c3d28['bottom']&&(_0x1332b0['scrollTop']+=(_0x226244['bottom']-_0x5c3d28['bottom'])/_0x52be2e);}(this['list'],_0x110863),_0x110863;}['measureInfo'](){let _0x395e39=this['dom']['querySelector']('[aria-selected]');if(!_0x395e39||!this['info'])return null;let _0x3aaf2d=this['dom']['getBoundingClientRect'](),_0x4cc8a6=this['info']['getBoundingClientRect'](),_0x44d4e9=_0x395e39['getBoundingClientRect'](),_0x5d73ca=this['space'];if(!_0x5d73ca){let _0x4497bf=this['dom']['ownerDocument']['documentElement'];_0x5d73ca={'left':0x0,'top':0x0,'right':_0x4497bf['clientWidth'],'bottom':_0x4497bf['clientHeight']};}return _0x44d4e9['top']>Math['min'](_0x5d73ca['bottom'],_0x3aaf2d['bottom'])-0xa||_0x44d4e9['bottom']<Math['max'](_0x5d73ca['top'],_0x3aaf2d['top'])+0xa?null:this['view']['state']['facet'](PX)['positionInfo'](this['view'],_0x3aaf2d,_0x44d4e9,_0x4cc8a6,_0x5d73ca,this['dom']);}['placeInfo'](_0x20fcb3){this['info']&&(_0x20fcb3?(_0x20fcb3['style']&&(this['info']['style']['cssText']=_0x20fcb3['style']),this['info']['className']='cm-tooltip\x20cm-completionInfo\x20'+(_0x20fcb3['class']||'')):this['info']['style']['cssText']='top:\x20-1e6px');}createListBox(_0x2956ae,_0x4933c3,_0x12f0e4){const _0x5679ca=document['createElement']('ul');_0x5679ca['id']=_0x4933c3,_0x5679ca['setAttribute']('role','listbox'),_0x5679ca['setAttribute']('aria-expanded','true'),_0x5679ca['setAttribute']('aria-label',this['view']['state']['phrase']('Completions')),_0x5679ca['addEventListener']('mousedown',_0x570c92=>{_0x570c92['target']==_0x5679ca&&_0x570c92['preventDefault']();});let _0x28aa6d=null;for(let _0x510af4=_0x12f0e4['from'];_0x510af4<_0x12f0e4['to'];_0x510af4++){let {completion:_0x1eed5f,match:_0x47c9c5}=_0x2956ae[_0x510af4],{section:_0x16420b}=_0x1eed5f;if(_0x16420b){let _0x1c00e6='string'==typeof _0x16420b?_0x16420b:_0x16420b['name'];if(_0x1c00e6!=_0x28aa6d&&(_0x510af4>_0x12f0e4['from']||0x0==_0x12f0e4['from'])){if(_0x28aa6d=_0x1c00e6,'string'!=typeof _0x16420b&&_0x16420b['header'])_0x5679ca['appendChild'](_0x16420b['header'](_0x16420b));else _0x5679ca['appendChild'](document['createElement']('completion-section'))['textContent']=_0x1c00e6;}}const _0x50aea3=_0x5679ca['appendChild'](document['createElement']('li'));_0x50aea3['id']=_0x4933c3+'-'+_0x510af4,_0x50aea3['setAttribute']('role','option');let _0x3cd329=this['optionClass'](_0x1eed5f);_0x3cd329&&(_0x50aea3['className']=_0x3cd329);for(let _0x28b2c2 of this['optionContent']){let _0x476a09=_0x28b2c2(_0x1eed5f,this['view']['state'],this['view'],_0x47c9c5);_0x476a09&&_0x50aea3['appendChild'](_0x476a09);}}return _0x12f0e4['from']&&_0x5679ca['classList']['add']('cm-completionListIncompleteTop'),_0x12f0e4['to']<_0x2956ae['length']&&_0x5679ca['classList']['add']('cm-completionListIncompleteBottom'),_0x5679ca;}destroyInfo(){this['info']&&(this['infoDestroy']&&this['infoDestroy'](),this['info']['remove'](),this['info']=null);}destroy(){this['destroyInfo']();}};function QX(_0x233939,_0x4ca1a2){return _0x32084a=>new DX(_0x32084a,_0x233939,_0x4ca1a2);}function jX(_0x191f0f){return 0x64*(_0x191f0f['boost']||0x0)+(_0x191f0f['apply']?0xa:0x0)+(_0x191f0f['info']?0x5:0x0)+(_0x191f0f['type']?0x1:0x0);}var UX=class CompletionDialog{constructor(_0x570707,_0x4a59fe,_0x1ed689,_0x42c27b,_0x7d215d,_0x25a41a){this['options']=_0x570707,this['attrs']=_0x4a59fe,this['tooltip']=_0x1ed689,this['timestamp']=_0x42c27b,this['selected']=_0x7d215d,this['disabled']=_0x25a41a;}setSelected(_0xf0aecb,_0xcb5692){return _0xf0aecb==this['selected']||_0xf0aecb>=this['options']['length']?this:new CompletionDialog(this['options'],FX(_0xcb5692,_0xf0aecb),this['tooltip'],this['timestamp'],_0xf0aecb,this['disabled']);}static['build'](_0x12da7e,_0x2913a9,_0x4efdab,_0x2dedb7,_0xcb31da,_0x318ef1){if(_0x2dedb7&&!_0x318ef1&&_0x12da7e['some'](_0x4a41ba=>_0x4a41ba['isPending']))return _0x2dedb7['setDisabled']();let _0x2fb19b=function(_0x1af19b,_0x149070){let _0x5d119f=[],_0x4fb749=null,_0x2ea853=null,_0x43c996=_0x3941f3=>{_0x5d119f['push'](_0x3941f3);let {section:_0x119bb5}=_0x3941f3['completion'];if(_0x119bb5){_0x4fb749||(_0x4fb749=[]);let _0x2423b2='string'==typeof _0x119bb5?_0x119bb5:_0x119bb5['name'];_0x4fb749['some'](_0x3f23ef=>_0x3f23ef['name']==_0x2423b2)||_0x4fb749['push']('string'==typeof _0x119bb5?{'name':_0x2423b2}:_0x119bb5);}},_0x8040d6=_0x149070['facet'](PX);for(let _0x5f38e1 of _0x1af19b)if(_0x5f38e1['hasResult']()){let _0x20a19c=_0x5f38e1['result']['getMatch'];if(!0x1===_0x5f38e1['result']['filter']){for(let _0x185606 of _0x5f38e1['result']['options'])_0x43c996(new vX(_0x185606,_0x5f38e1['source'],_0x20a19c?_0x20a19c(_0x185606):[],0x3b9aca00-_0x5d119f['length']));}else{let _0x4b64a9,_0x5c1d02=_0x149070['sliceDoc'](_0x5f38e1['from'],_0x5f38e1['to']),_0x59ba3b=_0x8040d6['filterStrict']?new RX(_0x5c1d02):new CX(_0x5c1d02);for(let _0x2313ed of _0x5f38e1['result']['options'])if(_0x4b64a9=_0x59ba3b['match'](_0x2313ed['label'])){let _0x384b14=_0x2313ed['displayLabel']?_0x20a19c?_0x20a19c(_0x2313ed,_0x4b64a9['matched']):[]:_0x4b64a9['matched'],_0x264eab=_0x4b64a9['score']+(_0x2313ed['boost']||0x0);if(_0x43c996(new vX(_0x2313ed,_0x5f38e1['source'],_0x384b14,_0x264eab)),'object'==typeof _0x2313ed['section']&&'dynamic'===_0x2313ed['section']['rank']){let {name:_0x1a9f4e}=_0x2313ed['section'];_0x2ea853||(_0x2ea853=Object['create'](null)),_0x2ea853[_0x1a9f4e]=Math['max'](_0x264eab,_0x2ea853[_0x1a9f4e]||-0x3b9aca00);}}}}if(_0x4fb749){let _0x2b72ed=Object['create'](null),_0x45db2d=0x0,_0x5c7aa4=(_0x49e6f7,_0x3463af)=>('dynamic'===_0x49e6f7['rank']&&'dynamic'===_0x3463af['rank']?_0x2ea853[_0x3463af['name']]-_0x2ea853[_0x49e6f7['name']]:0x0)||('number'==typeof _0x49e6f7['rank']?_0x49e6f7['rank']:0x3b9aca00)-('number'==typeof _0x3463af['rank']?_0x3463af['rank']:0x3b9aca00)||(_0x49e6f7['name']<_0x3463af['name']?-0x1:0x1);for(let _0x2f65f0 of _0x4fb749['sort'](_0x5c7aa4))_0x45db2d-=0x186a0,_0x2b72ed[_0x2f65f0['name']]=_0x45db2d;for(let _0x591342 of _0x5d119f){let {section:_0x3b8562}=_0x591342['completion'];_0x3b8562&&(_0x591342['score']+=_0x2b72ed['string'==typeof _0x3b8562?_0x3b8562:_0x3b8562['name']]);}}let _0x356c2c=[],_0x368201=null,_0x5876e4=_0x8040d6['compareCompletions'];for(let _0x260226 of _0x5d119f['sort']((_0x1a8d8b,_0x1c99be)=>_0x1c99be['score']-_0x1a8d8b['score']||_0x5876e4(_0x1a8d8b['completion'],_0x1c99be['completion']))){let _0x323c13=_0x260226['completion'];!_0x368201||_0x368201['label']!=_0x323c13['label']||_0x368201['detail']!=_0x323c13['detail']||null!=_0x368201['type']&&null!=_0x323c13['type']&&_0x368201['type']!=_0x323c13['type']||_0x368201['apply']!=_0x323c13['apply']||_0x368201['boost']!=_0x323c13['boost']?_0x356c2c['push'](_0x260226):jX(_0x260226['completion'])>jX(_0x368201)&&(_0x356c2c[_0x356c2c['length']-0x1]=_0x260226),_0x368201=_0x260226['completion'];}return _0x356c2c;}(_0x12da7e,_0x2913a9);if(!_0x2fb19b['length'])return _0x2dedb7&&_0x12da7e['some'](_0x2d1387=>_0x2d1387['isPending'])?_0x2dedb7['setDisabled']():null;let _0x8b797b=_0x2913a9['facet'](PX)['selectOnOpen']?0x0:-0x1;if(_0x2dedb7&&_0x2dedb7['selected']!=_0x8b797b&&-0x1!=_0x2dedb7['selected']){let _0x12da99=_0x2dedb7['options'][_0x2dedb7['selected']]['completion'];for(let _0x3199ef=0x0;_0x3199ef<_0x2fb19b['length'];_0x3199ef++)if(_0x2fb19b[_0x3199ef]['completion']==_0x12da99){_0x8b797b=_0x3199ef;break;}}return new CompletionDialog(_0x2fb19b,FX(_0x4efdab,_0x8b797b),{'pos':_0x12da7e['reduce']((_0x26d282,_0x29be69)=>_0x29be69['hasResult']()?Math['min'](_0x26d282,_0x29be69['from']):_0x26d282,0x5f5e100),'create':KX,'above':_0xcb31da['aboveCursor']},_0x2dedb7?_0x2dedb7['timestamp']:Date['now'](),_0x8b797b,!0x1);}['map'](_0x37c277){return new CompletionDialog(this['options'],this['attrs'],{...this['tooltip'],'pos':_0x37c277['mapPos'](this['tooltip']['pos'])},this['timestamp'],this['selected'],this['disabled']);}setDisabled(){return new CompletionDialog(this['options'],this['attrs'],this['tooltip'],this['timestamp'],this['selected'],!0x0);}},VX=class CompletionState{constructor(_0x25eb80,_0x4e5583,_0x26936c){this['active']=_0x25eb80,this['id']=_0x4e5583,this['open']=_0x26936c;}static start(){return new CompletionState(ZX,'cm-ac-'+Math['floor'](0x1e8480*Math['random']())['toString'](0x24),null);}update(_0x124422){let {state:_0x42654b}=_0x124422,_0x48aad5=_0x42654b['facet'](PX),_0x557f3f=(_0x48aad5['override']||_0x42654b['languageDataAt']('autocomplete',_X(_0x42654b))['map'](IX))['map'](_0xc6bc80=>(this['active']['find'](_0xad5057=>_0xad5057['source']==_0xc6bc80)||new XX(_0xc6bc80,this['active']['some'](_0x37480a=>0x0!=_0x37480a['state'])?0x1:0x0))['update'](_0x124422,_0x48aad5));_0x557f3f['length']==this['active']['length']&&_0x557f3f['every']((_0x65efbc,_0x52f66e)=>_0x65efbc==this['active'][_0x52f66e])&&(_0x557f3f=this['active']);let _0x35989e=this['open'],_0x5b9380=_0x124422['effects']['some'](_0x435302=>_0x435302['is'](WX));_0x35989e&&_0x124422['docChanged']&&(_0x35989e=_0x35989e['map'](_0x124422['changes'])),_0x124422['selection']||_0x557f3f['some'](_0x1c6b65=>_0x1c6b65['hasResult']()&&_0x124422['changes']['touchesRange'](_0x1c6b65['from'],_0x1c6b65['to']))||!function(_0x122bb8,_0x5f4845){if(_0x122bb8==_0x5f4845)return!0x0;for(let _0x785d4a=0x0,_0xbdc7dc=0x0;;){for(;_0x785d4a<_0x122bb8['length']&&!_0x122bb8[_0x785d4a]['hasResult']();)_0x785d4a++;for(;_0xbdc7dc<_0x5f4845['length']&&!_0x5f4845[_0xbdc7dc]['hasResult']();)_0xbdc7dc++;let _0x1f03f4=_0x785d4a==_0x122bb8['length'],_0x1cc837=_0xbdc7dc==_0x5f4845['length'];if(_0x1f03f4||_0x1cc837)return _0x1f03f4==_0x1cc837;if(_0x122bb8[_0x785d4a++]['result']!=_0x5f4845[_0xbdc7dc++]['result'])return!0x1;}}(_0x557f3f,this['active'])||_0x5b9380?_0x35989e=UX['build'](_0x557f3f,_0x42654b,this['id'],_0x35989e,_0x48aad5,_0x5b9380):_0x35989e&&_0x35989e['disabled']&&!_0x557f3f['some'](_0x6bdb37=>_0x6bdb37['isPending'])&&(_0x35989e=null),!_0x35989e&&_0x557f3f['every'](_0x139c85=>!_0x139c85['isPending'])&&_0x557f3f['some'](_0x1e695d=>_0x1e695d['hasResult']())&&(_0x557f3f=_0x557f3f['map'](_0x1c1d4e=>_0x1c1d4e['hasResult']()?new XX(_0x1c1d4e['source'],0x0):_0x1c1d4e));for(let _0x2463a1 of _0x124422['effects'])_0x2463a1['is'](LX)&&(_0x35989e=_0x35989e&&_0x35989e['setSelected'](_0x2463a1['value'],this['id']));return _0x557f3f==this['active']&&_0x35989e==this['open']?this:new CompletionState(_0x557f3f,this['id'],_0x35989e);}get tooltip(){return this['open']?this['open']['tooltip']:null;}get attrs(){return this['open']?this['open']['attrs']:this['active']['length']?BX:HX;}};const BX={'aria-autocomplete':'list'},HX={};function FX(_0x5e76f6,_0x2d2db8){let _0x24bc55={'aria-autocomplete':'list','aria-haspopup':'listbox','aria-controls':_0x5e76f6};return _0x2d2db8>-0x1&&(_0x24bc55['aria-activedescendant']=_0x5e76f6+'-'+_0x2d2db8),_0x24bc55;}const ZX=[];function GX(_0x3aba6d,_0x3dae5b){if(_0x3aba6d['isUserEvent']('input.complete')){let _0x47b95c=_0x3aba6d['annotation'](TX);if(_0x47b95c&&_0x3dae5b['activateOnCompletion'](_0x47b95c))return 0xc;}let _0x5716d0=_0x3aba6d['isUserEvent']('input.type');return _0x5716d0&&_0x3dae5b['activateOnTyping']?0x5:_0x5716d0?0x1:_0x3aba6d['isUserEvent']('delete.backward')?0x2:_0x3aba6d['selection']?0x8:_0x3aba6d['docChanged']?0x10:0x0;}var XX=class ActiveSource{constructor(_0x3f7e5e,_0x4c0dbc,_0x235556=!0x1){this['source']=_0x3f7e5e,this['state']=_0x4c0dbc,this['explicit']=_0x235556;}hasResult(){return!0x1;}get['isPending'](){return 0x1==this['state'];}update(_0x22de58,_0x550b5d){let _0x42daa3=GX(_0x22de58,_0x550b5d),_0x121acc=this;(0x8&_0x42daa3||0x10&_0x42daa3&&this['touches'](_0x22de58))&&(_0x121acc=new ActiveSource(_0x121acc['source'],0x0)),0x4&_0x42daa3&&0x0==_0x121acc['state']&&(_0x121acc=new ActiveSource(this['source'],0x1)),_0x121acc=_0x121acc['updateFor'](_0x22de58,_0x42daa3);for(let _0x23af27 of _0x22de58['effects'])if(_0x23af27['is'](kX))_0x121acc=new ActiveSource(_0x121acc['source'],0x1,_0x23af27['value']);else{if(_0x23af27['is'](xX))_0x121acc=new ActiveSource(_0x121acc['source'],0x0);else{if(_0x23af27['is'](WX)){for(let _0x4b2c8a of _0x23af27['value'])_0x4b2c8a['source']==_0x121acc['source']&&(_0x121acc=_0x4b2c8a);}}}return _0x121acc;}updateFor(_0x4b564b,_0x1e87cf){return this['map'](_0x4b564b['changes']);}['map'](_0x3a89ac){return this;}touches(_0x23289a){return _0x23289a['changes']['touchesRange'](_X(_0x23289a['state']));}},qX=class ActiveResult extends XX{constructor(_0x2394ea,_0x2b9725,_0x26039f,_0x196f28,_0x4ca3db,_0x463af5){super(_0x2394ea,0x3,_0x2b9725),this['limit']=_0x26039f,this['result']=_0x196f28,this['from']=_0x4ca3db,this['to']=_0x463af5;}hasResult(){return!0x0;}updateFor(_0x46d86e,_0xd2f76f){var _0x3f8430;if(!(0x3&_0xd2f76f))return this['map'](_0x46d86e['changes']);let _0x2abe94=this['result'];_0x2abe94['map']&&!_0x46d86e['changes']['empty']&&(_0x2abe94=_0x2abe94['map'](_0x2abe94,_0x46d86e['changes']));let _0x28ae6e=_0x46d86e['changes']['mapPos'](this['from']),_0xee7e4f=_0x46d86e['changes']['mapPos'](this['to'],0x1),_0x281822=_X(_0x46d86e['state']);if(_0x281822>_0xee7e4f||!_0x2abe94||0x2&_0xd2f76f&&(_X(_0x46d86e['startState'])==this['from']||_0x281822<this['limit']))return new XX(this['source'],0x4&_0xd2f76f?0x1:0x0);let _0x364d3b=_0x46d86e['changes']['mapPos'](this['limit']);return function(_0x57eedf,_0xe3d9ad,_0x3fb64d,_0x1f35c3){if(!_0x57eedf)return!0x1;let _0x4934e7=_0xe3d9ad['sliceDoc'](_0x3fb64d,_0x1f35c3);return'function'==typeof _0x57eedf?_0x57eedf(_0x4934e7,_0x3fb64d,_0x1f35c3,_0xe3d9ad):EX(_0x57eedf,!0x0)['test'](_0x4934e7);}(_0x2abe94['validFor'],_0x46d86e['state'],_0x28ae6e,_0xee7e4f)?new ActiveResult(this['source'],this['explicit'],_0x364d3b,_0x2abe94,_0x28ae6e,_0xee7e4f):_0x2abe94['update']&&(_0x2abe94=_0x2abe94['update'](_0x2abe94,_0x28ae6e,_0xee7e4f,new wX(_0x46d86e['state'],_0x281822,!0x1)))?new ActiveResult(this['source'],this['explicit'],_0x364d3b,_0x2abe94,_0x2abe94['from'],null!==(_0x3f8430=_0x2abe94['to'])&&void 0x0!==_0x3f8430?_0x3f8430:_X(_0x46d86e['state'])):new XX(this['source'],0x1,this['explicit']);}['map'](_0x18ae8e){if(_0x18ae8e['empty'])return this;let _0x420130=this['result']['map']?this['result']['map'](this['result'],_0x18ae8e):this['result'];return _0x420130?new ActiveResult(this['source'],this['explicit'],_0x18ae8e['mapPos'](this['limit']),_0x420130,_0x18ae8e['mapPos'](this['from']),_0x18ae8e['mapPos'](this['to'],0x1)):new XX(this['source'],0x0);}touches(_0x3b99f5){return _0x3b99f5['changes']['touchesRange'](this['from'],this['to']);}};const WX=u$['define']({'map':(_0x3e244f,_0x3daeb8)=>_0x3e244f['map'](_0x4c3392=>_0x4c3392['map'](_0x3daeb8))}),zX=BL['define']({'create':()=>VX['start'](),'update':(_0x55061a,_0x33be66)=>_0x55061a['update'](_0x33be66),'provide':_0x14e25f=>[fB['from'](_0x14e25f,_0x3ab0f5=>_0x3ab0f5['tooltip']),oV['contentAttributes']['from'](_0x14e25f,_0x4f0b66=>_0x4f0b66['attrs'])]});function YX(_0x2c4560,_0x4487da){const _0x4df582=_0x4487da['completion']['apply']||_0x4487da['completion']['label'];let _0x4d3c9d=_0x2c4560['state']['field'](zX)['active']['find'](_0x4a3ca5=>_0x4a3ca5['source']==_0x4487da['source']);return _0x4d3c9d instanceof qX&&('string'==typeof _0x4df582?_0x2c4560['dispatch']({...AX(_0x2c4560['state'],_0x4df582,_0x4d3c9d['from'],_0x4d3c9d['to']),'annotations':TX['of'](_0x4487da['completion'])}):_0x4df582(_0x2c4560,_0x4487da['completion'],_0x4d3c9d['from'],_0x4d3c9d['to']),!0x0);}const KX=QX(zX,YX);function JX(_0x5dd13e,_0x11d781='option'){return _0x365510=>{let _0x1b027f=_0x365510['state']['field'](zX,!0x1);if(!_0x1b027f||!_0x1b027f['open']||_0x1b027f['open']['disabled']||Date['now']()-_0x1b027f['open']['timestamp']<_0x365510['state']['facet'](PX)['interactionDelay'])return!0x1;let _0x5c579d,_0xd4ce21=0x1;'page'==_0x11d781&&(_0x5c579d=mB(_0x365510,_0x1b027f['open']['tooltip']))&&(_0xd4ce21=Math['max'](0x2,Math['floor'](_0x5c579d['dom']['offsetHeight']/_0x5c579d['dom']['querySelector']('li')['offsetHeight'])-0x1));let {length:_0x52d3d0}=_0x1b027f['open']['options'],_0x2620ea=_0x1b027f['open']['selected']>-0x1?_0x1b027f['open']['selected']+_0xd4ce21*(_0x5dd13e?0x1:-0x1):_0x5dd13e?0x0:_0x52d3d0-0x1;return _0x2620ea<0x0?_0x2620ea='page'==_0x11d781?0x0:_0x52d3d0-0x1:_0x2620ea>=_0x52d3d0&&(_0x2620ea='page'==_0x11d781?_0x52d3d0-0x1:0x0),_0x365510['dispatch']({'effects':LX['of'](_0x2620ea)}),!0x0;};}const tq=_0x2d8a42=>!!_0x2d8a42['state']['field'](zX,!0x1)&&(_0x2d8a42['dispatch']({'effects':kX['of'](!0x0)}),!0x0);var eq=class{constructor(_0x433659,_0x41a1a0){this['active']=_0x433659,this['context']=_0x41a1a0,this['time']=Date['now'](),this['updates']=[],this['done']=void 0x0;}};const iq=LQ['fromClass'](class{constructor(_0x3d9e6f){this['view']=_0x3d9e6f,this['debounceUpdate']=-0x1,this['running']=[],this['debounceAccept']=-0x1,this['pendingStart']=!0x1,this['composing']=0x0;for(let _0xa770d7 of _0x3d9e6f['state']['field'](zX)['active'])_0xa770d7['isPending']&&this['startQuery'](_0xa770d7);}update(_0x44a500){let _0x169645=_0x44a500['state']['field'](zX),_0x144ebd=_0x44a500['state']['facet'](PX);if(!_0x44a500['selectionSet']&&!_0x44a500['docChanged']&&_0x44a500['startState']['field'](zX)==_0x169645)return;let _0x20f737=_0x44a500['transactions']['some'](_0x745780=>{let _0x13be9d=GX(_0x745780,_0x144ebd);return 0x8&_0x13be9d||(_0x745780['selection']||_0x745780['docChanged'])&&!(0x3&_0x13be9d);});for(let _0x4aa8d2=0x0;_0x4aa8d2<this['running']['length'];_0x4aa8d2++){let _0x2860a6=this['running'][_0x4aa8d2];if(_0x20f737||_0x2860a6['context']['abortOnDocChange']&&_0x44a500['docChanged']||_0x2860a6['updates']['length']+_0x44a500['transactions']['length']>0x32&&Date['now']()-_0x2860a6['time']>0x3e8){for(let _0x4e3ba4 of _0x2860a6['context']['abortListeners'])try{_0x4e3ba4();}catch(_0x21d8d0){RQ(this['view']['state'],_0x21d8d0);}_0x2860a6['context']['abortListeners']=null,this['running']['splice'](_0x4aa8d2--,0x1);}else _0x2860a6['updates']['push'](..._0x44a500['transactions']);}this['debounceUpdate']>-0x1&&clearTimeout(this['debounceUpdate']),_0x44a500['transactions']['some'](_0x8bdf0a=>_0x8bdf0a['effects']['some'](_0x49efb3=>_0x49efb3['is'](kX)))&&(this['pendingStart']=!0x0);let _0x50b310=this['pendingStart']?0x32:_0x144ebd['activateOnTypingDelay'];if(this['debounceUpdate']=_0x169645['active']['some'](_0x1d9878=>_0x1d9878['isPending']&&!this['running']['some'](_0x18a48e=>_0x18a48e['active']['source']==_0x1d9878['source']))?setTimeout(()=>this['startUpdate'](),_0x50b310):-0x1,0x0!=this['composing']){for(let _0x16108b of _0x44a500['transactions'])_0x16108b['isUserEvent']('input.type')?this['composing']=0x2:0x2==this['composing']&&_0x16108b['selection']&&(this['composing']=0x3);}}startUpdate(){this['debounceUpdate']=-0x1,this['pendingStart']=!0x1;let {state:_0x559a11}=this['view'],_0x553e7d=_0x559a11['field'](zX);for(let _0xa56495 of _0x553e7d['active'])_0xa56495['isPending']&&!this['running']['some'](_0x40b4b3=>_0x40b4b3['active']['source']==_0xa56495['source'])&&this['startQuery'](_0xa56495);this['running']['length']&&_0x553e7d['open']&&_0x553e7d['open']['disabled']&&(this['debounceAccept']=setTimeout(()=>this['accept'](),this['view']['state']['facet'](PX)['updateSyncTime']));}startQuery(_0x1f0ab6){let {state:_0x4ac242}=this['view'],_0x955925=_X(_0x4ac242),_0xda0181=new wX(_0x4ac242,_0x955925,_0x1f0ab6['explicit'],this['view']),_0x2fac45=new eq(_0x1f0ab6,_0xda0181);this['running']['push'](_0x2fac45),Promise['resolve'](_0x1f0ab6['source'](_0xda0181))['then'](_0x28ec8f=>{_0x2fac45['context']['aborted']||(_0x2fac45['done']=_0x28ec8f||null,this['scheduleAccept']());},_0x44be6c=>{this['view']['dispatch']({'effects':xX['of'](null)}),RQ(this['view']['state'],_0x44be6c);});}scheduleAccept(){this['running']['every'](_0x2299e9=>void 0x0!==_0x2299e9['done'])?this['accept']():this['debounceAccept']<0x0&&(this['debounceAccept']=setTimeout(()=>this['accept'](),this['view']['state']['facet'](PX)['updateSyncTime']));}accept(){var _0x6164ae;this['debounceAccept']>-0x1&&clearTimeout(this['debounceAccept']),this['debounceAccept']=-0x1;let _0x4236ad=[],_0x251c4a=this['view']['state']['facet'](PX),_0x35f5fc=this['view']['state']['field'](zX);for(let _0x10a33d=0x0;_0x10a33d<this['running']['length'];_0x10a33d++){let _0x1e2ce1=this['running'][_0x10a33d];if(void 0x0===_0x1e2ce1['done'])continue;if(this['running']['splice'](_0x10a33d--,0x1),_0x1e2ce1['done']){let _0x5a9540=_X(_0x1e2ce1['updates']['length']?_0x1e2ce1['updates'][0x0]['startState']:this['view']['state']),_0x4fc320=Math['min'](_0x5a9540,_0x1e2ce1['done']['from']+(_0x1e2ce1['active']['explicit']?0x0:0x1)),_0x5c2e72=new qX(_0x1e2ce1['active']['source'],_0x1e2ce1['active']['explicit'],_0x4fc320,_0x1e2ce1['done'],_0x1e2ce1['done']['from'],null!==(_0x6164ae=_0x1e2ce1['done']['to'])&&void 0x0!==_0x6164ae?_0x6164ae:_0x5a9540);for(let _0x5f544d of _0x1e2ce1['updates'])_0x5c2e72=_0x5c2e72['update'](_0x5f544d,_0x251c4a);if(_0x5c2e72['hasResult']()){_0x4236ad['push'](_0x5c2e72);continue;}}let _0x145a54=_0x35f5fc['active']['find'](_0x10385e=>_0x10385e['source']==_0x1e2ce1['active']['source']);if(_0x145a54&&_0x145a54['isPending']){if(null==_0x1e2ce1['done']){let _0x32135d=new XX(_0x1e2ce1['active']['source'],0x0);for(let _0x578fae of _0x1e2ce1['updates'])_0x32135d=_0x32135d['update'](_0x578fae,_0x251c4a);_0x32135d['isPending']||_0x4236ad['push'](_0x32135d);}else this['startQuery'](_0x145a54);}}(_0x4236ad['length']||_0x35f5fc['open']&&_0x35f5fc['open']['disabled'])&&this['view']['dispatch']({'effects':WX['of'](_0x4236ad)});}},{'eventHandlers':{'blur'(_0x17936c){let _0xc4e253=this['view']['state']['field'](zX,!0x1);if(_0xc4e253&&_0xc4e253['tooltip']&&this['view']['state']['facet'](PX)['closeOnBlur']){let _0x41a29a=_0xc4e253['open']&&mB(this['view'],_0xc4e253['open']['tooltip']);_0x41a29a&&_0x41a29a['dom']['contains'](_0x17936c['relatedTarget'])||setTimeout(()=>this['view']['dispatch']({'effects':xX['of'](null)}),0xa);}},'compositionstart'(){this['composing']=0x1;},'compositionend'(){0x3==this['composing']&&setTimeout(()=>this['view']['dispatch']({'effects':kX['of'](!0x1)}),0x14),this['composing']=0x0;}}}),sq='object'==typeof navigator&&/Win/['test'](navigator['platform']),nq=qL['highest'](oV['domEventHandlers']({'keydown'(_0x462aee,_0x46ec59){let _0x4a7762=_0x46ec59['state']['field'](zX,!0x1);if(!_0x4a7762||!_0x4a7762['open']||_0x4a7762['open']['disabled']||_0x4a7762['open']['selected']<0x0||_0x462aee['key']['length']>0x1||_0x462aee['ctrlKey']&&(!sq||!_0x462aee['altKey'])||_0x462aee['metaKey'])return!0x1;let _0xe78818=_0x4a7762['open']['options'][_0x4a7762['open']['selected']],_0x937f3b=_0x4a7762['active']['find'](_0x5ea488=>_0x5ea488['source']==_0xe78818['source']),_0x5eec76=_0xe78818['completion']['commitCharacters']||_0x937f3b['result']['commitCharacters'];return _0x5eec76&&_0x5eec76['indexOf'](_0x462aee['key'])>-0x1&&YX(_0x46ec59,_0xe78818),!0x1;}})),rq=oV['baseTheme']({'.cm-tooltip.cm-tooltip-autocomplete':{'&\x20>\x20ul':{'fontFamily':'monospace','whiteSpace':'nowrap','overflow':'hidden\x20auto','maxWidth_fallback':'700px','maxWidth':'min(700px,\x2095vw)','minWidth':'250px','maxHeight':'10em','height':'100%','listStyle':'none','margin':0x0,'padding':0x0,'&\x20>\x20li,\x20&\x20>\x20completion-section':{'padding':'1px\x203px','lineHeight':1.2},'&\x20>\x20li':{'overflowX':'hidden','textOverflow':'ellipsis','cursor':'pointer'},'&\x20>\x20completion-section':{'display':'list-item','borderBottom':'1px\x20solid\x20silver','paddingLeft':'0.5em','opacity':0.7}}},'&light\x20.cm-tooltip-autocomplete\x20ul\x20li[aria-selected]':{'background':'#17c','color':'white'},'&light\x20.cm-tooltip-autocomplete-disabled\x20ul\x20li[aria-selected]':{'background':'#777'},'&dark\x20.cm-tooltip-autocomplete\x20ul\x20li[aria-selected]':{'background':'#347','color':'white'},'&dark\x20.cm-tooltip-autocomplete-disabled\x20ul\x20li[aria-selected]':{'background':'#444'},'.cm-completionListIncompleteTop:before,\x20.cm-completionListIncompleteBottom:after':{'content':'\x22···\x22','opacity':0.5,'display':'block','textAlign':'center','cursor':'pointer'},'.cm-tooltip.cm-completionInfo':{'position':'absolute','padding':'3px\x209px','width':'max-content','maxWidth':'400px','boxSizing':'border-box','whiteSpace':'pre-line'},'.cm-completionInfo.cm-completionInfo-left':{'right':'100%'},'.cm-completionInfo.cm-completionInfo-right':{'left':'100%'},'.cm-completionInfo.cm-completionInfo-left-narrow':{'right':'30px'},'.cm-completionInfo.cm-completionInfo-right-narrow':{'left':'30px'},'&light\x20.cm-snippetField':{'backgroundColor':'#00000022'},'&dark\x20.cm-snippetField':{'backgroundColor':'#ffffff22'},'.cm-snippetFieldPosition':{'verticalAlign':'text-top','width':0x0,'height':'1.15em','display':'inline-block','margin':'0\x20-0.7px\x20-.7em','borderLeft':'1.4px\x20dotted\x20#888'},'.cm-completionMatchedText':{'textDecoration':'underline'},'.cm-completionDetail':{'marginLeft':'0.5em','fontStyle':'italic'},'.cm-completionIcon':{'fontSize':'90%','width':'.8em','display':'inline-block','textAlign':'center','paddingRight':'.6em','opacity':'0.6','boxSizing':'content-box'},'.cm-completionIcon-function,\x20.cm-completionIcon-method':{'&:after':{'content':'\x27ƒ\x27'}},'.cm-completionIcon-class':{'&:after':{'content':'\x27○\x27'}},'.cm-completionIcon-interface':{'&:after':{'content':'\x27◌\x27'}},'.cm-completionIcon-variable':{'&:after':{'content':'\x27𝑥\x27'}},'.cm-completionIcon-constant':{'&:after':{'content':'\x27𝐶\x27'}},'.cm-completionIcon-type':{'&:after':{'content':'\x27𝑡\x27'}},'.cm-completionIcon-enum':{'&:after':{'content':'\x27∪\x27'}},'.cm-completionIcon-property':{'&:after':{'content':'\x27□\x27'}},'.cm-completionIcon-keyword':{'&:after':{'content':'\x27🔑︎\x27'}},'.cm-completionIcon-namespace':{'&:after':{'content':'\x27▢\x27'}},'.cm-completionIcon-text':{'&:after':{'content':'\x27abc\x27','fontSize':'50%','verticalAlign':'middle'}}});var oq=class{constructor(_0x1deea6,_0x584faf,_0x251cfa,_0x205b4d){this['field']=_0x1deea6,this['line']=_0x584faf,this['from']=_0x251cfa,this['to']=_0x205b4d;}},aq=class FieldRange{constructor(_0x5f1e25,_0x3d1e16,_0x19078d){this['field']=_0x5f1e25,this['from']=_0x3d1e16,this['to']=_0x19078d;}['map'](_0x55e49c){let _0x589367=_0x55e49c['mapPos'](this['from'],-0x1,_L['TrackDel']),_0x5f5ab6=_0x55e49c['mapPos'](this['to'],0x1,_L['TrackDel']);return null==_0x589367||null==_0x5f5ab6?null:new FieldRange(this['field'],_0x589367,_0x5f5ab6);}},cq=class Snippet{constructor(_0x2082fa,_0x265e6c){this['lines']=_0x2082fa,this['fieldPositions']=_0x265e6c;}instantiate(_0x523c77,_0x6f9b23){let _0x130bf5=[],_0x44f1c8=[_0x6f9b23],_0x127f5c=_0x523c77['doc']['lineAt'](_0x6f9b23),_0x80430c=/^\s*/['exec'](_0x127f5c['text'])[0x0];for(let _0x51dcc3 of this['lines']){if(_0x130bf5['length']){let _0x551477=_0x80430c,_0x2d7868=/^\t*/['exec'](_0x51dcc3)[0x0]['length'];for(let _0x233609=0x0;_0x233609<_0x2d7868;_0x233609++)_0x551477+=_0x523c77['facet'](AF);_0x44f1c8['push'](_0x6f9b23+_0x551477['length']-_0x2d7868),_0x51dcc3=_0x551477+_0x51dcc3['slice'](_0x2d7868);}_0x130bf5['push'](_0x51dcc3),_0x6f9b23+=_0x51dcc3['length']+0x1;}return{'text':_0x130bf5,'ranges':this['fieldPositions']['map'](_0x354d33=>new aq(_0x354d33['field'],_0x44f1c8[_0x354d33['line']]+_0x354d33['from'],_0x44f1c8[_0x354d33['line']]+_0x354d33['to']))};}static['parse'](_0x77a0ec){let _0x57edf2,_0x481598=[],_0x19917a=[],_0x449392=[];for(let _0x38e870 of _0x77a0ec['split'](/\r\n?|\n/)){for(;_0x57edf2=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/['exec'](_0x38e870);){let _0x52fad4=_0x57edf2[0x1]?+_0x57edf2[0x1]:null,_0x117f30=_0x57edf2[0x2]||_0x57edf2[0x3]||'',_0x20ab97=-0x1;0x0===_0x52fad4&&(_0x52fad4=0x3b9aca00);let _0x5e8a05=_0x117f30['replace'](/\\[{}]/g,_0x53ff10=>_0x53ff10[0x1]);for(let _0x5488f2=0x0;_0x5488f2<_0x481598['length'];_0x5488f2++)(null!=_0x52fad4?_0x481598[_0x5488f2]['seq']==_0x52fad4:_0x5e8a05&&_0x481598[_0x5488f2]['name']==_0x5e8a05)&&(_0x20ab97=_0x5488f2);if(_0x20ab97<0x0){let _0x2b69e5=0x0;for(;_0x2b69e5<_0x481598['length']&&(null==_0x52fad4||null!=_0x481598[_0x2b69e5]['seq']&&_0x481598[_0x2b69e5]['seq']<_0x52fad4);)_0x2b69e5++;_0x481598['splice'](_0x2b69e5,0x0,{'seq':_0x52fad4,'name':_0x5e8a05}),_0x20ab97=_0x2b69e5;for(let _0x42e748 of _0x449392)_0x42e748['field']>=_0x20ab97&&_0x42e748['field']++;}for(let _0x1d97db of _0x449392)if(_0x1d97db['line']==_0x19917a['length']&&_0x1d97db['from']>_0x57edf2['index']){let _0x1436a3=_0x57edf2[0x2]?0x3+(_0x57edf2[0x1]||'')['length']:0x2;_0x1d97db['from']-=_0x1436a3,_0x1d97db['to']-=_0x1436a3;}_0x449392['push'](new oq(_0x20ab97,_0x19917a['length'],_0x57edf2['index'],_0x57edf2['index']+_0x5e8a05['length'])),_0x38e870=_0x38e870['slice'](0x0,_0x57edf2['index'])+_0x117f30+_0x38e870['slice'](_0x57edf2['index']+_0x57edf2[0x0]['length']);}_0x38e870=_0x38e870['replace'](/\\([{}])/g,(_0x5ba2ae,_0x4db3f2,_0x4dd33a)=>{for(let _0x4853b3 of _0x449392)_0x4853b3['line']==_0x19917a['length']&&_0x4853b3['from']>_0x4dd33a&&(_0x4853b3['from']--,_0x4853b3['to']--);return _0x4db3f2;}),_0x19917a['push'](_0x38e870);}return new Snippet(_0x19917a,_0x449392);}};let lq=vD['widget']({'widget':new class extends bD{toDOM(){let _0x28fe5a=document['createElement']('span');return _0x28fe5a['className']='cm-snippetFieldPosition',_0x28fe5a;}ignoreEvent(){return!0x1;}}()}),hq=vD['mark']({'class':'cm-snippetField'});var uq=class ActiveSnippet{constructor(_0xed7762,_0x4f2d54){this['ranges']=_0xed7762,this['active']=_0x4f2d54,this['deco']=vD['set'](_0xed7762['map'](_0x46743f=>(_0x46743f['from']==_0x46743f['to']?lq:hq)['range'](_0x46743f['from'],_0x46743f['to'])),!0x0);}['map'](_0x25c5fe){let _0xcccc6=[];for(let _0x41a9c5 of this['ranges']){let _0x527e85=_0x41a9c5['map'](_0x25c5fe);if(!_0x527e85)return null;_0xcccc6['push'](_0x527e85);}return new ActiveSnippet(_0xcccc6,this['active']);}selectionInsideField(_0x5b8387){return _0x5b8387['ranges']['every'](_0xe858ea=>this['ranges']['some'](_0x567656=>_0x567656['field']==this['active']&&_0x567656['from']<=_0xe858ea['from']&&_0x567656['to']>=_0xe858ea['to']));}};const dq=u$['define']({'map':(_0x3693d2,_0x4afa1b)=>_0x3693d2&&_0x3693d2['map'](_0x4afa1b)}),fq=u$['define'](),mq=BL['define']({'create':()=>null,'update'(_0xbf4f9a,_0x2b7fc9){for(let _0x3d3bc5 of _0x2b7fc9['effects']){if(_0x3d3bc5['is'](dq))return _0x3d3bc5['value'];if(_0x3d3bc5['is'](fq)&&_0xbf4f9a)return new uq(_0xbf4f9a['ranges'],_0x3d3bc5['value']);}return _0xbf4f9a&&_0x2b7fc9['docChanged']&&(_0xbf4f9a=_0xbf4f9a['map'](_0x2b7fc9['changes'])),_0xbf4f9a&&_0x2b7fc9['selection']&&!_0xbf4f9a['selectionInsideField'](_0x2b7fc9['selection'])&&(_0xbf4f9a=null),_0xbf4f9a;},'provide':_0x4bdfab=>oV['decorations']['from'](_0x4bdfab,_0x34d993=>_0x34d993?_0x34d993['deco']:vD['none'])});function pq(_0x1be99e,_0x3f6ba8){return PL['create'](_0x1be99e['filter'](_0x4a0558=>_0x4a0558['field']==_0x3f6ba8)['map'](_0xa0f435=>PL['range'](_0xa0f435['from'],_0xa0f435['to'])));}function gq(_0x374f4d){let _0x38fb63=cq['parse'](_0x374f4d);return(_0x1c005f,_0x44eedd,_0x46b705,_0x5d7165)=>{let {text:_0x58f566,ranges:_0x145526}=_0x38fb63['instantiate'](_0x1c005f['state'],_0x46b705),{main:_0x54744c}=_0x1c005f['state']['selection'],_0x17d07b={'changes':{'from':_0x46b705,'to':_0x5d7165==_0x54744c['from']?_0x54744c['to']:_0x5d7165,'insert':aL['of'](_0x58f566)},'scrollIntoView':!0x0,'annotations':_0x44eedd?[TX['of'](_0x44eedd),d$['userEvent']['of']('input.complete')]:void 0x0};if(_0x145526['length']&&(_0x17d07b['selection']=pq(_0x145526,0x0)),_0x145526['some'](_0x4ea92d=>_0x4ea92d['field']>0x0)){let _0x4d82ab=new uq(_0x145526,0x0),_0x389223=_0x17d07b['effects']=[dq['of'](_0x4d82ab)];void 0x0===_0x1c005f['state']['field'](mq,!0x1)&&_0x389223['push'](u$['appendConfig']['of']([mq,yq,_q,rq]));}_0x1c005f['dispatch'](_0x1c005f['state']['update'](_0x17d07b));};}function Oq(_0x2c6ee3){return({state:_0x2b4111,dispatch:_0x3b19b2})=>{let _0x2a8a51=_0x2b4111['field'](mq,!0x1);if(!_0x2a8a51||_0x2c6ee3<0x0&&0x0==_0x2a8a51['active'])return!0x1;let _0x440396=_0x2a8a51['active']+_0x2c6ee3,_0x173351=_0x2c6ee3>0x0&&!_0x2a8a51['ranges']['some'](_0x20b5bc=>_0x20b5bc['field']==_0x440396+_0x2c6ee3);return _0x3b19b2(_0x2b4111['update']({'selection':pq(_0x2a8a51['ranges'],_0x440396),'effects':dq['of'](_0x173351?null:new uq(_0x2a8a51['ranges'],_0x440396)),'scrollIntoView':!0x0})),!0x0;};}const wq=[{'key':'Tab','run':Oq(0x1),'shift':Oq(-0x1)},{'key':'Escape','run':({state:_0x5c66cf,dispatch:_0x448325})=>!!_0x5c66cf['field'](mq,!0x1)&&(_0x448325(_0x5c66cf['update']({'effects':dq['of'](null)})),!0x0)}],bq=LL['define']({'combine':_0x198d30=>_0x198d30['length']?_0x198d30[0x0]:wq}),yq=qL['highest'](mV['compute']([bq],_0x32ce4f=>_0x32ce4f['facet'](bq)));function vq(_0x4241a6,_0x3e331a){return{..._0x3e331a,'apply':gq(_0x4241a6)};}const _q=oV['domEventHandlers']({'mousedown'(_0x3046a3,_0xf74221){let _0xd6f284,_0x58e69c=_0xf74221['state']['field'](mq,!0x1);if(!_0x58e69c||null==(_0xd6f284=_0xf74221['posAtCoords']({'x':_0x3046a3['clientX'],'y':_0x3046a3['clientY']})))return!0x1;let _0x19b3d8=_0x58e69c['ranges']['find'](_0x20c1fb=>_0x20c1fb['from']<=_0xd6f284&&_0x20c1fb['to']>=_0xd6f284);return!(!_0x19b3d8||_0x19b3d8['field']==_0x58e69c['active'])&&(_0xf74221['dispatch']({'selection':pq(_0x58e69c['ranges'],_0x19b3d8['field']),'effects':dq['of'](_0x58e69c['ranges']['some'](_0x5bc729=>_0x5bc729['field']>_0x19b3d8['field'])?new uq(_0x58e69c['ranges'],_0x19b3d8['field']):null),'scrollIntoView':!0x0}),!0x0);}}),Eq={'brackets':['(','[','{','\x27','\x22'],'before':')]}:;>','stringPrefixes':[]},Tq=u$['define']({'map'(_0x374273,_0x220317){let _0x2b4462=_0x220317['mapPos'](_0x374273,-0x1,_L['TrackAfter']);return null==_0x2b4462?void 0x0:_0x2b4462;}}),Aq=new class extends A${}();Aq['startSide']=0x1,Aq['endSide']=-0x1;const Sq=BL['define']({'create':()=>C$['empty'],'update'(_0x28f746,_0x492144){if(_0x28f746=_0x28f746['map'](_0x492144['changes']),_0x492144['selection']){let _0x24af6e=_0x492144['state']['doc']['lineAt'](_0x492144['selection']['main']['head']);_0x28f746=_0x28f746['update']({'filter':_0x20028b=>_0x20028b>=_0x24af6e['from']&&_0x20028b<=_0x24af6e['to']});}for(let _0x4de833 of _0x492144['effects'])_0x4de833['is'](Tq)&&(_0x28f746=_0x28f746['update']({'add':[Aq['range'](_0x4de833['value'],_0x4de833['value']+0x1)]}));return _0x28f746;}});function Iq(){return[Pq,Sq];}const kq='()[]{}<>«»»«［］｛｝';function xq(_0x56d256){for(let _0x144570=0x0;_0x144570<0x10;_0x144570+=0x2)if(kq['charCodeAt'](_0x144570)==_0x56d256)return kq['charAt'](_0x144570+0x1);return bL(_0x56d256<0x80?_0x56d256:_0x56d256+0x1);}function Cq(_0x3dd046,_0x10bb43){return _0x3dd046['languageDataAt']('closeBrackets',_0x10bb43)[0x0]||Eq;}const Rq='object'==typeof navigator&&/Android\b/['test'](navigator['userAgent']),Pq=oV['inputHandler']['of']((_0x170dde,_0x138e26,_0x2ff9ff,_0x3fc5af)=>{if((Rq?_0x170dde['composing']:_0x170dde['compositionStarted'])||_0x170dde['state']['readOnly'])return!0x1;let _0x301801=_0x170dde['state']['selection']['main'];if(_0x3fc5af['length']>0x2||0x2==_0x3fc5af['length']&&0x1==yL(wL(_0x3fc5af,0x0))||_0x138e26!=_0x301801['from']||_0x2ff9ff!=_0x301801['to'])return!0x1;let _0x1c01ad=function(_0x4c7e81,_0x4457fa){let _0xd47d9=Cq(_0x4c7e81,_0x4c7e81['selection']['main']['head']),_0x60fa25=_0xd47d9['brackets']||Eq['brackets'];for(let _0x418f25 of _0x60fa25){let _0x1bfd34=xq(wL(_0x418f25,0x0));if(_0x4457fa==_0x418f25)return _0x1bfd34==_0x418f25?Qq(_0x4c7e81,_0x418f25,_0x60fa25['indexOf'](_0x418f25+_0x418f25+_0x418f25)>-0x1,_0xd47d9):$q(_0x4c7e81,_0x418f25,_0x1bfd34,_0xd47d9['before']||Eq['before']);if(_0x4457fa==_0x1bfd34&&Mq(_0x4c7e81,_0x4c7e81['selection']['main']['from']))return Dq(_0x4c7e81,_0x418f25,_0x1bfd34);}return null;}(_0x170dde['state'],_0x3fc5af);return!!_0x1c01ad&&(_0x170dde['dispatch'](_0x1c01ad),!0x0);}),Nq=[{'key':'Backspace','run':({state:_0x5885f2,dispatch:_0x5f3754})=>{if(_0x5885f2['readOnly'])return!0x1;let _0x1dd32a=Cq(_0x5885f2,_0x5885f2['selection']['main']['head'])['brackets']||Eq['brackets'],_0x4fd433=null,_0x215575=_0x5885f2['changeByRange'](_0xbbfa86=>{if(_0xbbfa86['empty']){let _0x17e1c7=function(_0x3780e6,_0x3a17dd){let _0x3a2eb8=_0x3780e6['sliceString'](_0x3a17dd-0x2,_0x3a17dd);return yL(wL(_0x3a2eb8,0x0))==_0x3a2eb8['length']?_0x3a2eb8:_0x3a2eb8['slice'](0x1);}(_0x5885f2['doc'],_0xbbfa86['head']);for(let _0x4e7b1a of _0x1dd32a)if(_0x4e7b1a==_0x17e1c7&&Lq(_0x5885f2['doc'],_0xbbfa86['head'])==xq(wL(_0x4e7b1a,0x0)))return{'changes':{'from':_0xbbfa86['head']-_0x4e7b1a['length'],'to':_0xbbfa86['head']+_0x4e7b1a['length']},'range':PL['cursor'](_0xbbfa86['head']-_0x4e7b1a['length'])};}return{'range':_0x4fd433=_0xbbfa86};});return _0x4fd433||_0x5f3754(_0x5885f2['update'](_0x215575,{'scrollIntoView':!0x0,'userEvent':'delete.backward'})),!_0x4fd433;}}];function Mq(_0x471e4f,_0x45e3ff){let _0xbcdd8d=!0x1;return _0x471e4f['field'](Sq)['between'](0x0,_0x471e4f['doc']['length'],_0x1f88b6=>{_0x1f88b6==_0x45e3ff&&(_0xbcdd8d=!0x0);}),_0xbcdd8d;}function Lq(_0x2e7ae3,_0x50882a){let _0x486e0e=_0x2e7ae3['sliceString'](_0x50882a,_0x50882a+0x2);return _0x486e0e['slice'](0x0,yL(wL(_0x486e0e,0x0)));}function $q(_0x268bd4,_0x15eb25,_0x553f53,_0x2a11a9){let _0x2cfe83=null,_0x2d07c9=_0x268bd4['changeByRange'](_0x1f461a=>{if(!_0x1f461a['empty'])return{'changes':[{'insert':_0x15eb25,'from':_0x1f461a['from']},{'insert':_0x553f53,'from':_0x1f461a['to']}],'effects':Tq['of'](_0x1f461a['to']+_0x15eb25['length']),'range':PL['range'](_0x1f461a['anchor']+_0x15eb25['length'],_0x1f461a['head']+_0x15eb25['length'])};let _0x19da3b=Lq(_0x268bd4['doc'],_0x1f461a['head']);return!_0x19da3b||/\s/['test'](_0x19da3b)||_0x2a11a9['indexOf'](_0x19da3b)>-0x1?{'changes':{'insert':_0x15eb25+_0x553f53,'from':_0x1f461a['head']},'effects':Tq['of'](_0x1f461a['head']+_0x15eb25['length']),'range':PL['cursor'](_0x1f461a['head']+_0x15eb25['length'])}:{'range':_0x2cfe83=_0x1f461a};});return _0x2cfe83?null:_0x268bd4['update'](_0x2d07c9,{'scrollIntoView':!0x0,'userEvent':'input.type'});}function Dq(_0x270d5f,_0x1f6e69,_0x5dc402){let _0x3cb5a2=null,_0x47963c=_0x270d5f['changeByRange'](_0x6ee098=>_0x6ee098['empty']&&Lq(_0x270d5f['doc'],_0x6ee098['head'])==_0x5dc402?{'changes':{'from':_0x6ee098['head'],'to':_0x6ee098['head']+_0x5dc402['length'],'insert':_0x5dc402},'range':PL['cursor'](_0x6ee098['head']+_0x5dc402['length'])}:_0x3cb5a2={'range':_0x6ee098});return _0x3cb5a2?null:_0x270d5f['update'](_0x47963c,{'scrollIntoView':!0x0,'userEvent':'input.type'});}function Qq(_0x4f785f,_0x4fda7c,_0x3a16da,_0x30d7a7){let _0xf2a913=_0x30d7a7['stringPrefixes']||Eq['stringPrefixes'],_0x23fa5c=null,_0x5973a2=_0x4f785f['changeByRange'](_0x536fbc=>{if(!_0x536fbc['empty'])return{'changes':[{'insert':_0x4fda7c,'from':_0x536fbc['from']},{'insert':_0x4fda7c,'from':_0x536fbc['to']}],'effects':Tq['of'](_0x536fbc['to']+_0x4fda7c['length']),'range':PL['range'](_0x536fbc['anchor']+_0x4fda7c['length'],_0x536fbc['head']+_0x4fda7c['length'])};let _0x3c6460,_0x36b733=_0x536fbc['head'],_0x54cc10=Lq(_0x4f785f['doc'],_0x36b733);if(_0x54cc10==_0x4fda7c){if(jq(_0x4f785f,_0x36b733))return{'changes':{'insert':_0x4fda7c+_0x4fda7c,'from':_0x36b733},'effects':Tq['of'](_0x36b733+_0x4fda7c['length']),'range':PL['cursor'](_0x36b733+_0x4fda7c['length'])};if(Mq(_0x4f785f,_0x36b733)){let _0x50c15b=_0x3a16da&&_0x4f785f['sliceDoc'](_0x36b733,_0x36b733+0x3*_0x4fda7c['length'])==_0x4fda7c+_0x4fda7c+_0x4fda7c?_0x4fda7c+_0x4fda7c+_0x4fda7c:_0x4fda7c;return{'changes':{'from':_0x36b733,'to':_0x36b733+_0x50c15b['length'],'insert':_0x50c15b},'range':PL['cursor'](_0x36b733+_0x50c15b['length'])};}}else{if(_0x3a16da&&_0x4f785f['sliceDoc'](_0x36b733-0x2*_0x4fda7c['length'],_0x36b733)==_0x4fda7c+_0x4fda7c&&(_0x3c6460=Uq(_0x4f785f,_0x36b733-0x2*_0x4fda7c['length'],_0xf2a913))>-0x1&&jq(_0x4f785f,_0x3c6460))return{'changes':{'insert':_0x4fda7c+_0x4fda7c+_0x4fda7c+_0x4fda7c,'from':_0x36b733},'effects':Tq['of'](_0x36b733+_0x4fda7c['length']),'range':PL['cursor'](_0x36b733+_0x4fda7c['length'])};if(_0x4f785f['charCategorizer'](_0x36b733)(_0x54cc10)!=b$['Word']&&Uq(_0x4f785f,_0x36b733,_0xf2a913)>-0x1&&!function(_0xc03457,_0x22952e,_0xcdfe1f,_0x2ee9ee){let _0x21e38f=dF(_0xc03457)['resolveInner'](_0x22952e,-0x1),_0x3ba22e=_0x2ee9ee['reduce']((_0x18e976,_0x5bed19)=>Math['max'](_0x18e976,_0x5bed19['length']),0x0);for(let _0x517422=0x0;_0x517422<0x5;_0x517422++){let _0x595bf7=_0xc03457['sliceDoc'](_0x21e38f['from'],Math['min'](_0x21e38f['to'],_0x21e38f['from']+_0xcdfe1f['length']+_0x3ba22e)),_0x428424=_0x595bf7['indexOf'](_0xcdfe1f);if(!_0x428424||_0x428424>-0x1&&_0x2ee9ee['indexOf'](_0x595bf7['slice'](0x0,_0x428424))>-0x1){let _0x3317ab=_0x21e38f['firstChild'];for(;_0x3317ab&&_0x3317ab['from']==_0x21e38f['from']&&_0x3317ab['to']-_0x3317ab['from']>_0xcdfe1f['length']+_0x428424;){if(_0xc03457['sliceDoc'](_0x3317ab['to']-_0xcdfe1f['length'],_0x3317ab['to'])==_0xcdfe1f)return!0x1;_0x3317ab=_0x3317ab['firstChild'];}return!0x0;}let _0x14c366=_0x21e38f['to']==_0x22952e&&_0x21e38f['parent'];if(!_0x14c366)break;_0x21e38f=_0x14c366;}return!0x1;}(_0x4f785f,_0x36b733,_0x4fda7c,_0xf2a913))return{'changes':{'insert':_0x4fda7c+_0x4fda7c,'from':_0x36b733},'effects':Tq['of'](_0x36b733+_0x4fda7c['length']),'range':PL['cursor'](_0x36b733+_0x4fda7c['length'])};}return{'range':_0x23fa5c=_0x536fbc};});return _0x23fa5c?null:_0x4f785f['update'](_0x5973a2,{'scrollIntoView':!0x0,'userEvent':'input.type'});}function jq(_0x47dd5d,_0x4de142){let _0x1a2d94=dF(_0x47dd5d)['resolveInner'](_0x4de142+0x1);return _0x1a2d94['parent']&&_0x1a2d94['from']==_0x4de142;}function Uq(_0x3c9bdf,_0x1daac,_0x57c984){let _0x39cebb=_0x3c9bdf['charCategorizer'](_0x1daac);if(_0x39cebb(_0x3c9bdf['sliceDoc'](_0x1daac-0x1,_0x1daac))!=b$['Word'])return _0x1daac;for(let _0x5e4b20 of _0x57c984){let _0xdfc09e=_0x1daac-_0x5e4b20['length'];if(_0x3c9bdf['sliceDoc'](_0xdfc09e,_0x1daac)==_0x5e4b20&&_0x39cebb(_0x3c9bdf['sliceDoc'](_0xdfc09e-0x1,_0xdfc09e))!=b$['Word'])return _0xdfc09e;}return-0x1;}function Vq(_0x154df3={}){return[nq,zX,PX['of'](_0x154df3),iq,Hq,rq];}const Bq=[{'key':'Ctrl-Space','run':tq},{'mac':'Alt-`','run':tq},{'mac':'Alt-i','run':tq},{'key':'Escape','run':_0x2fd3b5=>{let _0x5255b5=_0x2fd3b5['state']['field'](zX,!0x1);return!(!_0x5255b5||!_0x5255b5['active']['some'](_0x50562a=>0x0!=_0x50562a['state']))&&(_0x2fd3b5['dispatch']({'effects':xX['of'](null)}),!0x0);}},{'key':'ArrowDown','run':JX(!0x0)},{'key':'ArrowUp','run':JX(!0x1)},{'key':'PageDown','run':JX(!0x0,'page')},{'key':'PageUp','run':JX(!0x1,'page')},{'key':'Enter','run':_0x20c122=>{let _0x2d672a=_0x20c122['state']['field'](zX,!0x1);return!(_0x20c122['state']['readOnly']||!_0x2d672a||!_0x2d672a['open']||_0x2d672a['open']['selected']<0x0||_0x2d672a['open']['disabled']||Date['now']()-_0x2d672a['open']['timestamp']<_0x20c122['state']['facet'](PX)['interactionDelay'])&&YX(_0x20c122,_0x2d672a['open']['options'][_0x2d672a['open']['selected']]);}}],Hq=qL['highest'](mV['computeN']([PX],_0x2e2476=>_0x2e2476['facet'](PX)['defaultKeymap']?[Bq]:[]));var Fq=class Stack{constructor(_0x225b5c,_0x10933f,_0x755b52,_0x4e3635,_0xe14b2d,_0x26ad74,_0x193e64,_0x5e6ab2,_0x43b96c,_0x605f68=0x0,_0x116ab4){this['p']=_0x225b5c,this['stack']=_0x10933f,this['state']=_0x755b52,this['reducePos']=_0x4e3635,this['pos']=_0xe14b2d,this['score']=_0x26ad74,this['buffer']=_0x193e64,this['bufferBase']=_0x5e6ab2,this['curContext']=_0x43b96c,this['lookAhead']=_0x605f68,this['parent']=_0x116ab4;}toString(){return'['+this['stack']['filter']((_0x49c37b,_0x3d3e32)=>_0x3d3e32%0x3==0x0)['concat'](this['state'])+']@'+this['pos']+(this['score']?'!'+this['score']:'');}static start(_0xe651b7,_0xd744d0,_0x130674=0x0){let _0x111eea=_0xe651b7['parser']['context'];return new Stack(_0xe651b7,[],_0xd744d0,_0x130674,_0x130674,0x0,[],0x0,_0x111eea?new Zq(_0x111eea,_0x111eea['start']):null,0x0,null);}get context(){return this['curContext']?this['curContext']['context']:null;}pushState(_0x23a468,_0x43f7d7){this['stack']['push'](this['state'],_0x43f7d7,this['bufferBase']+this['buffer']['length']),this['state']=_0x23a468;}['reduce'](_0x3f541e){var _0x17d521;let _0x14a290=_0x3f541e>>0x13,_0x15825e=0xffff&_0x3f541e,{parser:_0x1114eb}=this['p'],_0x729d2d=this['reducePos']<this['pos']-0x19&&this['setLookAhead'](this['pos']),_0xbc5bd6=_0x1114eb['dynamicPrecedence'](_0x15825e);if(_0xbc5bd6&&(this['score']+=_0xbc5bd6),0x0==_0x14a290)return _0x15825e<_0x1114eb['minRepeatTerm']&&this['reducePos']<this['pos']&&(this['reducePos']=this['pos']),this['pushState'](_0x1114eb['getGoto'](this['state'],_0x15825e,!0x0),this['reducePos']),_0x15825e<_0x1114eb['minRepeatTerm']&&this['storeNode'](_0x15825e,this['reducePos'],this['reducePos'],_0x729d2d?0x8:0x4,!0x0),void this['reduceContext'](_0x15825e,this['reducePos']);let _0x1a6944=this['stack']['length']-0x3*(_0x14a290-0x1)-(0x40000&_0x3f541e?0x6:0x0),_0x38c4bc=_0x1a6944?this['stack'][_0x1a6944-0x2]:this['p']['ranges'][0x0]['from'];_0x15825e<_0x1114eb['minRepeatTerm']&&_0x38c4bc==this['reducePos']&&this['reducePos']<this['pos']&&(this['reducePos']=this['pos']);let _0x5045f4=this['reducePos']-_0x38c4bc;_0x5045f4>=0x7d0&&!(null===(_0x17d521=this['p']['parser']['nodeSet']['types'][_0x15825e])||void 0x0===_0x17d521?void 0x0:_0x17d521['isAnonymous'])&&(_0x38c4bc==this['p']['lastBigReductionStart']?(this['p']['bigReductionCount']++,this['p']['lastBigReductionSize']=_0x5045f4):this['p']['lastBigReductionSize']<_0x5045f4&&(this['p']['bigReductionCount']=0x1,this['p']['lastBigReductionStart']=_0x38c4bc,this['p']['lastBigReductionSize']=_0x5045f4));let _0x159197=_0x1a6944?this['stack'][_0x1a6944-0x1]:0x0,_0x507575=this['bufferBase']+this['buffer']['length']-_0x159197;if(_0x15825e<_0x1114eb['minRepeatTerm']||0x20000&_0x3f541e){let _0x5a5663=_0x1114eb['stateFlag'](this['state'],0x1)?this['pos']:this['reducePos'];this['storeNode'](_0x15825e,_0x38c4bc,_0x5a5663,_0x507575+0x4,!0x0);}if(0x40000&_0x3f541e)this['state']=this['stack'][_0x1a6944];else{let _0x512a85=this['stack'][_0x1a6944-0x3];this['state']=_0x1114eb['getGoto'](_0x512a85,_0x15825e,!0x0);}for(;this['stack']['length']>_0x1a6944;)this['stack']['pop']();this['reduceContext'](_0x15825e,_0x38c4bc);}storeNode(_0x2aaf82,_0x73f79f,_0x4ed3e,_0x309bd0=0x4,_0x201b55=!0x1){if(0x0==_0x2aaf82&&(!this['stack']['length']||this['stack'][this['stack']['length']-0x1]<this['buffer']['length']+this['bufferBase'])){let _0x25fbb3=this['buffer']['length'];if(_0x25fbb3>0x0&&0x0==this['buffer'][_0x25fbb3-0x4]&&this['buffer'][_0x25fbb3-0x1]>-0x1){if(_0x73f79f==_0x4ed3e)return;if(this['buffer'][_0x25fbb3-0x2]>=_0x73f79f)return void(this['buffer'][_0x25fbb3-0x2]=_0x4ed3e);}}if(_0x201b55&&this['pos']!=_0x4ed3e){let _0x49910a=this['buffer']['length'];if(_0x49910a>0x0&&(0x0!=this['buffer'][_0x49910a-0x4]||this['buffer'][_0x49910a-0x1]<0x0)){let _0x3d6bf4=!0x1;for(let _0x5e419f=_0x49910a;_0x5e419f>0x0&&this['buffer'][_0x5e419f-0x2]>_0x4ed3e;_0x5e419f-=0x4)if(this['buffer'][_0x5e419f-0x1]>=0x0){_0x3d6bf4=!0x0;break;}if(_0x3d6bf4){for(;_0x49910a>0x0&&this['buffer'][_0x49910a-0x2]>_0x4ed3e;)this['buffer'][_0x49910a]=this['buffer'][_0x49910a-0x4],this['buffer'][_0x49910a+0x1]=this['buffer'][_0x49910a-0x3],this['buffer'][_0x49910a+0x2]=this['buffer'][_0x49910a-0x2],this['buffer'][_0x49910a+0x3]=this['buffer'][_0x49910a-0x1],_0x49910a-=0x4,_0x309bd0>0x4&&(_0x309bd0-=0x4);}}this['buffer'][_0x49910a]=_0x2aaf82,this['buffer'][_0x49910a+0x1]=_0x73f79f,this['buffer'][_0x49910a+0x2]=_0x4ed3e,this['buffer'][_0x49910a+0x3]=_0x309bd0;}else this['buffer']['push'](_0x2aaf82,_0x73f79f,_0x4ed3e,_0x309bd0);}shift(_0x584876,_0x1acc3d,_0x264138,_0x4e2d62){if(0x20000&_0x584876)this['pushState'](0xffff&_0x584876,this['pos']);else{if(0x40000&_0x584876)this['pos']=_0x4e2d62,this['shiftContext'](_0x1acc3d,_0x264138),_0x1acc3d<=this['p']['parser']['maxNode']&&this['buffer']['push'](_0x1acc3d,_0x264138,_0x4e2d62,0x4);else{let _0x5814ab=_0x584876,{parser:_0xe26d90}=this['p'];this['pos']=_0x4e2d62;let _0x5cc907=_0xe26d90['stateFlag'](_0x5814ab,0x1);!_0x5cc907&&(_0x4e2d62>_0x264138||_0x1acc3d<=_0xe26d90['maxNode'])&&(this['reducePos']=_0x4e2d62),this['pushState'](_0x5814ab,_0x5cc907?_0x264138:Math['min'](_0x264138,this['reducePos'])),this['shiftContext'](_0x1acc3d,_0x264138),_0x1acc3d<=_0xe26d90['maxNode']&&this['buffer']['push'](_0x1acc3d,_0x264138,_0x4e2d62,0x4);}}}['apply'](_0x35ea1e,_0x4aa4b7,_0x3d77a3,_0x53fa52){0x10000&_0x35ea1e?this['reduce'](_0x35ea1e):this['shift'](_0x35ea1e,_0x4aa4b7,_0x3d77a3,_0x53fa52);}['useNode'](_0x4cee08,_0x4ba2de){let _0x36948c=this['p']['reused']['length']-0x1;(_0x36948c<0x0||this['p']['reused'][_0x36948c]!=_0x4cee08)&&(this['p']['reused']['push'](_0x4cee08),_0x36948c++);let _0x14d5d4=this['pos'];this['reducePos']=this['pos']=_0x14d5d4+_0x4cee08['length'],this['pushState'](_0x4ba2de,_0x14d5d4),this['buffer']['push'](_0x36948c,_0x14d5d4,this['reducePos'],-0x1),this['curContext']&&this['updateContext'](this['curContext']['tracker']['reuse'](this['curContext']['context'],_0x4cee08,this,this['p']['stream']['reset'](this['pos']-_0x4cee08['length'])));}split(){let _0x4fa5ce=this,_0x4338cd=_0x4fa5ce['buffer']['length'];for(_0x4338cd&&0x0==_0x4fa5ce['buffer'][_0x4338cd-0x4]&&(_0x4338cd-=0x4);_0x4338cd>0x0&&_0x4fa5ce['buffer'][_0x4338cd-0x2]>_0x4fa5ce['reducePos'];)_0x4338cd-=0x4;let _0x680217=_0x4fa5ce['buffer']['slice'](_0x4338cd),_0x4340b0=_0x4fa5ce['bufferBase']+_0x4338cd;for(;_0x4fa5ce&&_0x4340b0==_0x4fa5ce['bufferBase'];)_0x4fa5ce=_0x4fa5ce['parent'];return new Stack(this['p'],this['stack']['slice'](),this['state'],this['reducePos'],this['pos'],this['score'],_0x680217,_0x4340b0,this['curContext'],this['lookAhead'],_0x4fa5ce);}recoverByDelete(_0x20b126,_0xf62403){let _0x55c867=_0x20b126<=this['p']['parser']['maxNode'];_0x55c867&&this['storeNode'](_0x20b126,this['pos'],_0xf62403,0x4),this['storeNode'](0x0,this['pos'],_0xf62403,_0x55c867?0x8:0x4),this['pos']=this['reducePos']=_0xf62403,this['score']-=0xbe;}canShift(_0x4ee077){for(let _0x19062e=new Gq(this);;){let _0x882bac=this['p']['parser']['stateSlot'](_0x19062e['state'],0x4)||this['p']['parser']['hasAction'](_0x19062e['state'],_0x4ee077);if(0x0==_0x882bac)return!0x1;if(!(0x10000&_0x882bac))return!0x0;_0x19062e['reduce'](_0x882bac);}}recoverByInsert(_0x37dfae){if(this['stack']['length']>=0x12c)return[];let _0x16d54d=this['p']['parser']['nextStates'](this['state']);if(_0x16d54d['length']>0x8||this['stack']['length']>=0x78){let _0x20a379=[];for(let _0x68368c,_0x241f96=0x0;_0x241f96<_0x16d54d['length'];_0x241f96+=0x2)(_0x68368c=_0x16d54d[_0x241f96+0x1])!=this['state']&&this['p']['parser']['hasAction'](_0x68368c,_0x37dfae)&&_0x20a379['push'](_0x16d54d[_0x241f96],_0x68368c);if(this['stack']['length']<0x78)for(let _0x57bf7b=0x0;_0x20a379['length']<0x8&&_0x57bf7b<_0x16d54d['length'];_0x57bf7b+=0x2){let _0x5aa1c9=_0x16d54d[_0x57bf7b+0x1];_0x20a379['some']((_0x4eb8d2,_0x267dc1)=>0x1&_0x267dc1&&_0x4eb8d2==_0x5aa1c9)||_0x20a379['push'](_0x16d54d[_0x57bf7b],_0x5aa1c9);}_0x16d54d=_0x20a379;}let _0x4a1ab4=[];for(let _0x1092c7=0x0;_0x1092c7<_0x16d54d['length']&&_0x4a1ab4['length']<0x4;_0x1092c7+=0x2){let _0x3e8f18=_0x16d54d[_0x1092c7+0x1];if(_0x3e8f18==this['state'])continue;let _0xbaea60=this['split']();_0xbaea60['pushState'](_0x3e8f18,this['pos']),_0xbaea60['storeNode'](0x0,_0xbaea60['pos'],_0xbaea60['pos'],0x4,!0x0),_0xbaea60['shiftContext'](_0x16d54d[_0x1092c7],this['pos']),_0xbaea60['reducePos']=this['pos'],_0xbaea60['score']-=0xc8,_0x4a1ab4['push'](_0xbaea60);}return _0x4a1ab4;}['forceReduce'](){let {parser:_0x214624}=this['p'],_0x49f9f5=_0x214624['stateSlot'](this['state'],0x5);if(!(0x10000&_0x49f9f5))return!0x1;if(!_0x214624['validAction'](this['state'],_0x49f9f5)){let _0x15c7d7=_0x49f9f5>>0x13,_0x63f8ec=0xffff&_0x49f9f5,_0x4b6363=this['stack']['length']-0x3*_0x15c7d7;if(_0x4b6363<0x0||_0x214624['getGoto'](this['stack'][_0x4b6363],_0x63f8ec,!0x1)<0x0){let _0x5add2d=this['findForcedReduction']();if(null==_0x5add2d)return!0x1;_0x49f9f5=_0x5add2d;}this['storeNode'](0x0,this['pos'],this['pos'],0x4,!0x0),this['score']-=0x64;}return this['reducePos']=this['pos'],this['reduce'](_0x49f9f5),!0x0;}findForcedReduction(){let {parser:_0x55e4b4}=this['p'],_0x3151b4=[],_0x16aa61=(_0x1eadfc,_0x5e05c2)=>{if(!_0x3151b4['includes'](_0x1eadfc))return _0x3151b4['push'](_0x1eadfc),_0x55e4b4['allActions'](_0x1eadfc,_0x171be9=>{if(0x60000&_0x171be9);else{if(0x10000&_0x171be9){let _0x31a09a=(_0x171be9>>0x13)-_0x5e05c2;if(_0x31a09a>0x1){let _0x5900b6=0xffff&_0x171be9,_0x476919=this['stack']['length']-0x3*_0x31a09a;if(_0x476919>=0x0&&_0x55e4b4['getGoto'](this['stack'][_0x476919],_0x5900b6,!0x1)>=0x0)return _0x31a09a<<0x13|0x10000|_0x5900b6;}}else{let _0x317b30=_0x16aa61(_0x171be9,_0x5e05c2+0x1);if(null!=_0x317b30)return _0x317b30;}}});};return _0x16aa61(this['state'],0x0);}['forceAll'](){for(;!this['p']['parser']['stateFlag'](this['state'],0x2);)if(!this['forceReduce']()){this['storeNode'](0x0,this['pos'],this['pos'],0x4,!0x0);break;}return this;}get['deadEnd'](){if(0x3!=this['stack']['length'])return!0x1;let {parser:_0x50fe1c}=this['p'];return 0xffff==_0x50fe1c['data'][_0x50fe1c['stateSlot'](this['state'],0x1)]&&!_0x50fe1c['stateSlot'](this['state'],0x4);}restart(){this['storeNode'](0x0,this['pos'],this['pos'],0x4,!0x0),this['state']=this['stack'][0x0],this['stack']['length']=0x0;}sameState(_0x575101){if(this['state']!=_0x575101['state']||this['stack']['length']!=_0x575101['stack']['length'])return!0x1;for(let _0x38f049=0x0;_0x38f049<this['stack']['length'];_0x38f049+=0x3)if(this['stack'][_0x38f049]!=_0x575101['stack'][_0x38f049])return!0x1;return!0x0;}get['parser'](){return this['p']['parser'];}dialectEnabled(_0x15fcfc){return this['p']['parser']['dialect']['flags'][_0x15fcfc];}shiftContext(_0x576804,_0xe71e20){this['curContext']&&this['updateContext'](this['curContext']['tracker']['shift'](this['curContext']['context'],_0x576804,this,this['p']['stream']['reset'](_0xe71e20)));}reduceContext(_0x530787,_0x3a6ebe){this['curContext']&&this['updateContext'](this['curContext']['tracker']['reduce'](this['curContext']['context'],_0x530787,this,this['p']['stream']['reset'](_0x3a6ebe)));}emitContext(){let _0x165d73=this['buffer']['length']-0x1;(_0x165d73<0x0||-0x3!=this['buffer'][_0x165d73])&&this['buffer']['push'](this['curContext']['hash'],this['pos'],this['pos'],-0x3);}emitLookAhead(){let _0x486be5=this['buffer']['length']-0x1;(_0x486be5<0x0||-0x4!=this['buffer'][_0x486be5])&&this['buffer']['push'](this['lookAhead'],this['pos'],this['pos'],-0x4);}updateContext(_0x38539f){if(_0x38539f!=this['curContext']['context']){let _0x181a22=new Zq(this['curContext']['tracker'],_0x38539f);_0x181a22['hash']!=this['curContext']['hash']&&this['emitContext'](),this['curContext']=_0x181a22;}}setLookAhead(_0x1b59cb){return!(_0x1b59cb<=this['lookAhead'])&&(this['emitLookAhead'](),this['lookAhead']=_0x1b59cb,!0x0);}['close'](){this['curContext']&&this['curContext']['tracker']['strict']&&this['emitContext'](),this['lookAhead']>0x0&&this['emitLookAhead']();}},Zq=class{constructor(_0x1ec9a9,_0x5398b7){this['tracker']=_0x1ec9a9,this['context']=_0x5398b7,this['hash']=_0x1ec9a9['strict']?_0x1ec9a9['hash'](_0x5398b7):0x0;}},Gq=class{constructor(_0xe571eb){this['start']=_0xe571eb,this['state']=_0xe571eb['state'],this['stack']=_0xe571eb['stack'],this['base']=this['stack']['length'];}['reduce'](_0x2acde6){let _0x378db3=0xffff&_0x2acde6,_0x6fcf48=_0x2acde6>>0x13;0x0==_0x6fcf48?(this['stack']==this['start']['stack']&&(this['stack']=this['stack']['slice']()),this['stack']['push'](this['state'],0x0,0x0),this['base']+=0x3):this['base']-=0x3*(_0x6fcf48-0x1);let _0x4286d6=this['start']['p']['parser']['getGoto'](this['stack'][this['base']-0x3],_0x378db3,!0x0);this['state']=_0x4286d6;}},Xq=class StackBufferCursor{constructor(_0x2acb95,_0x20bd94,_0x5ed5c5){this['stack']=_0x2acb95,this['pos']=_0x20bd94,this['index']=_0x5ed5c5,this['buffer']=_0x2acb95['buffer'],0x0==this['index']&&this['maybeNext']();}static create(_0x375f18,_0x5d78f6=_0x375f18['bufferBase']+_0x375f18['buffer']['length']){return new StackBufferCursor(_0x375f18,_0x5d78f6,_0x5d78f6-_0x375f18['bufferBase']);}maybeNext(){let _0x51381d=this['stack']['parent'];null!=_0x51381d&&(this['index']=this['stack']['bufferBase']-_0x51381d['bufferBase'],this['stack']=_0x51381d,this['buffer']=_0x51381d['buffer']);}get['id'](){return this['buffer'][this['index']-0x4];}get start(){return this['buffer'][this['index']-0x3];}get['end'](){return this['buffer'][this['index']-0x2];}get['size'](){return this['buffer'][this['index']-0x1];}next(){this['index']-=0x4,this['pos']-=0x4,0x0==this['index']&&this['maybeNext']();}['fork'](){return new StackBufferCursor(this['stack'],this['pos'],this['index']);}};function qq(_0x4c1747,_0x3973b7=Uint16Array){if('string'!=typeof _0x4c1747)return _0x4c1747;let _0x39cd0d=null;for(let _0x4d0ccd=0x0,_0x263c5f=0x0;_0x4d0ccd<_0x4c1747['length'];){let _0x5c0d91=0x0;for(;;){let _0x472b0f=_0x4c1747['charCodeAt'](_0x4d0ccd++),_0xae1eea=!0x1;if(0x7e==_0x472b0f){_0x5c0d91=0xffff;break;}_0x472b0f>=0x5c&&_0x472b0f--,_0x472b0f>=0x22&&_0x472b0f--;let _0x36910e=_0x472b0f-0x20;if(_0x36910e>=0x2e&&(_0x36910e-=0x2e,_0xae1eea=!0x0),_0x5c0d91+=_0x36910e,_0xae1eea)break;_0x5c0d91*=0x2e;}_0x39cd0d?_0x39cd0d[_0x263c5f++]=_0x5c0d91:_0x39cd0d=new _0x3973b7(_0x5c0d91);}return _0x39cd0d;}var Wq=class{constructor(){this['start']=-0x1,this['value']=-0x1,this['end']=-0x1,this['extended']=-0x1,this['lookAhead']=0x0,this['mask']=0x0,this['context']=0x0;}};const zq=new Wq();var Yq=class{constructor(_0x1fcc94,_0x14561b){this['input']=_0x1fcc94,this['ranges']=_0x14561b,this['chunk']='',this['chunkOff']=0x0,this['chunk2']='',this['chunk2Pos']=0x0,this['next']=-0x1,this['token']=zq,this['rangeIndex']=0x0,this['pos']=this['chunkPos']=_0x14561b[0x0]['from'],this['range']=_0x14561b[0x0],this['end']=_0x14561b[_0x14561b['length']-0x1]['to'],this['readNext']();}resolveOffset(_0x37397b,_0x38374d){let _0x3483c4=this['range'],_0x3e2317=this['rangeIndex'],_0x5cc166=this['pos']+_0x37397b;for(;_0x5cc166<_0x3483c4['from'];){if(!_0x3e2317)return null;let _0x166d0f=this['ranges'][--_0x3e2317];_0x5cc166-=_0x3483c4['from']-_0x166d0f['to'],_0x3483c4=_0x166d0f;}for(;_0x38374d<0x0?_0x5cc166>_0x3483c4['to']:_0x5cc166>=_0x3483c4['to'];){if(_0x3e2317==this['ranges']['length']-0x1)return null;let _0x1786d4=this['ranges'][++_0x3e2317];_0x5cc166+=_0x1786d4['from']-_0x3483c4['to'],_0x3483c4=_0x1786d4;}return _0x5cc166;}['clipPos'](_0x49041b){if(_0x49041b>=this['range']['from']&&_0x49041b<this['range']['to'])return _0x49041b;for(let _0x3a3c83 of this['ranges'])if(_0x3a3c83['to']>_0x49041b)return Math['max'](_0x49041b,_0x3a3c83['from']);return this['end'];}['peek'](_0x4e2c14){let _0x2e10a2,_0x1f20a0,_0xa9075=this['chunkOff']+_0x4e2c14;if(_0xa9075>=0x0&&_0xa9075<this['chunk']['length'])_0x2e10a2=this['pos']+_0x4e2c14,_0x1f20a0=this['chunk']['charCodeAt'](_0xa9075);else{let _0x196682=this['resolveOffset'](_0x4e2c14,0x1);if(null==_0x196682)return-0x1;if(_0x2e10a2=_0x196682,_0x2e10a2>=this['chunk2Pos']&&_0x2e10a2<this['chunk2Pos']+this['chunk2']['length'])_0x1f20a0=this['chunk2']['charCodeAt'](_0x2e10a2-this['chunk2Pos']);else{let _0x90f41b=this['rangeIndex'],_0x2fdc13=this['range'];for(;_0x2fdc13['to']<=_0x2e10a2;)_0x2fdc13=this['ranges'][++_0x90f41b];this['chunk2']=this['input']['chunk'](this['chunk2Pos']=_0x2e10a2),_0x2e10a2+this['chunk2']['length']>_0x2fdc13['to']&&(this['chunk2']=this['chunk2']['slice'](0x0,_0x2fdc13['to']-_0x2e10a2)),_0x1f20a0=this['chunk2']['charCodeAt'](0x0);}}return _0x2e10a2>=this['token']['lookAhead']&&(this['token']['lookAhead']=_0x2e10a2+0x1),_0x1f20a0;}acceptToken(_0x53696a,_0x34d209=0x0){let _0x13c97d=_0x34d209?this['resolveOffset'](_0x34d209,-0x1):this['pos'];if(null==_0x13c97d||_0x13c97d<this['token']['start'])throw new RangeError('Token\x20end\x20out\x20of\x20bounds');this['token']['value']=_0x53696a,this['token']['end']=_0x13c97d;}acceptTokenTo(_0x26348c,_0x403e28){this['token']['value']=_0x26348c,this['token']['end']=_0x403e28;}getChunk(){if(this['pos']>=this['chunk2Pos']&&this['pos']<this['chunk2Pos']+this['chunk2']['length']){let {chunk:_0x4df668,chunkPos:_0x3bc5be}=this;this['chunk']=this['chunk2'],this['chunkPos']=this['chunk2Pos'],this['chunk2']=_0x4df668,this['chunk2Pos']=_0x3bc5be,this['chunkOff']=this['pos']-this['chunkPos'];}else{this['chunk2']=this['chunk'],this['chunk2Pos']=this['chunkPos'];let _0x2d4f2f=this['input']['chunk'](this['pos']),_0x352b74=this['pos']+_0x2d4f2f['length'];this['chunk']=_0x352b74>this['range']['to']?_0x2d4f2f['slice'](0x0,this['range']['to']-this['pos']):_0x2d4f2f,this['chunkPos']=this['pos'],this['chunkOff']=0x0;}}readNext(){return this['chunkOff']>=this['chunk']['length']&&(this['getChunk'](),this['chunkOff']==this['chunk']['length'])?this['next']=-0x1:this['next']=this['chunk']['charCodeAt'](this['chunkOff']);}['advance'](_0x48d635=0x1){for(this['chunkOff']+=_0x48d635;this['pos']+_0x48d635>=this['range']['to'];){if(this['rangeIndex']==this['ranges']['length']-0x1)return this['setDone']();_0x48d635-=this['range']['to']-this['pos'],this['range']=this['ranges'][++this['rangeIndex']],this['pos']=this['range']['from'];}return this['pos']+=_0x48d635,this['pos']>=this['token']['lookAhead']&&(this['token']['lookAhead']=this['pos']+0x1),this['readNext']();}setDone(){return this['pos']=this['chunkPos']=this['end'],this['range']=this['ranges'][this['rangeIndex']=this['ranges']['length']-0x1],this['chunk']='',this['next']=-0x1;}reset(_0xcf59d8,_0xf89129){if(_0xf89129?(this['token']=_0xf89129,_0xf89129['start']=_0xcf59d8,_0xf89129['lookAhead']=_0xcf59d8+0x1,_0xf89129['value']=_0xf89129['extended']=-0x1):this['token']=zq,this['pos']!=_0xcf59d8){if(this['pos']=_0xcf59d8,_0xcf59d8==this['end'])return this['setDone'](),this;for(;_0xcf59d8<this['range']['from'];)this['range']=this['ranges'][--this['rangeIndex']];for(;_0xcf59d8>=this['range']['to'];)this['range']=this['ranges'][++this['rangeIndex']];_0xcf59d8>=this['chunkPos']&&_0xcf59d8<this['chunkPos']+this['chunk']['length']?this['chunkOff']=_0xcf59d8-this['chunkPos']:(this['chunk']='',this['chunkOff']=0x0),this['readNext']();}return this;}['read'](_0x4df6dd,_0x5c391f){if(_0x4df6dd>=this['chunkPos']&&_0x5c391f<=this['chunkPos']+this['chunk']['length'])return this['chunk']['slice'](_0x4df6dd-this['chunkPos'],_0x5c391f-this['chunkPos']);if(_0x4df6dd>=this['chunk2Pos']&&_0x5c391f<=this['chunk2Pos']+this['chunk2']['length'])return this['chunk2']['slice'](_0x4df6dd-this['chunk2Pos'],_0x5c391f-this['chunk2Pos']);if(_0x4df6dd>=this['range']['from']&&_0x5c391f<=this['range']['to'])return this['input']['read'](_0x4df6dd,_0x5c391f);let _0x1c9682='';for(let _0x1811b9 of this['ranges']){if(_0x1811b9['from']>=_0x5c391f)break;_0x1811b9['to']>_0x4df6dd&&(_0x1c9682+=this['input']['read'](Math['max'](_0x1811b9['from'],_0x4df6dd),Math['min'](_0x1811b9['to'],_0x5c391f)));}return _0x1c9682;}},Kq=class{constructor(_0x14ed23,_0x81cd2e){this['data']=_0x14ed23,this['id']=_0x81cd2e;}token(_0x2161f8,_0x14f133){let {parser:_0x85d155}=_0x14f133['p'];eW(this['data'],_0x2161f8,_0x14f133,this['id'],_0x85d155['data'],_0x85d155['tokenPrecTable']);}};Kq['prototype']['contextual']=Kq['prototype']['fallback']=Kq['prototype']['extend']=!0x1;var Jq=class{constructor(_0x581ad1,_0x3048f7,_0x408d14){this['precTable']=_0x3048f7,this['elseToken']=_0x408d14,this['data']='string'==typeof _0x581ad1?qq(_0x581ad1):_0x581ad1;}token(_0x24a50a,_0x201b4e){let _0x1fd2c0=_0x24a50a['pos'],_0x206554=0x0;for(;;){let _0x592558=_0x24a50a['next']<0x0,_0xba3dfb=_0x24a50a['resolveOffset'](0x1,0x1);if(eW(this['data'],_0x24a50a,_0x201b4e,0x0,this['data'],this['precTable']),_0x24a50a['token']['value']>-0x1)break;if(null==this['elseToken'])return;if(_0x592558||_0x206554++,null==_0xba3dfb)break;_0x24a50a['reset'](_0xba3dfb,_0x24a50a['token']);}_0x206554&&(_0x24a50a['reset'](_0x1fd2c0,_0x24a50a['token']),_0x24a50a['acceptToken'](this['elseToken'],_0x206554));}};Jq['prototype']['contextual']=Kq['prototype']['fallback']=Kq['prototype']['extend']=!0x1;var tW=class{constructor(_0x15e952,_0x227e07={}){this['token']=_0x15e952,this['contextual']=!!_0x227e07['contextual'],this['fallback']=!!_0x227e07['fallback'],this['extend']=!!_0x227e07['extend'];}};function eW(_0x31c7b4,_0x3286a1,_0x44af92,_0x14a4c0,_0x5aa213,_0x14a503){let _0x591700=0x0,_0x18da99=0x1<<_0x14a4c0,{dialect:_0x31c17e}=_0x44af92['p']['parser'];t:for(;0x0!=(_0x18da99&_0x31c7b4[_0x591700]);){let _0x4ef5be=_0x31c7b4[_0x591700+0x1];for(let _0xd6caca=_0x591700+0x3;_0xd6caca<_0x4ef5be;_0xd6caca+=0x2)if((_0x31c7b4[_0xd6caca+0x1]&_0x18da99)>0x0){let _0x7718d2=_0x31c7b4[_0xd6caca];if(_0x31c17e['allows'](_0x7718d2)&&(-0x1==_0x3286a1['token']['value']||_0x3286a1['token']['value']==_0x7718d2||sW(_0x7718d2,_0x3286a1['token']['value'],_0x5aa213,_0x14a503))){_0x3286a1['acceptToken'](_0x7718d2);break;}}let _0x5935fd=_0x3286a1['next'],_0x566aea=0x0,_0x5c91bf=_0x31c7b4[_0x591700+0x2];if(!(_0x3286a1['next']<0x0&&_0x5c91bf>_0x566aea&&0xffff==_0x31c7b4[_0x4ef5be+0x3*_0x5c91bf-0x3])){for(;_0x566aea<_0x5c91bf;){let _0x5e5aa0=_0x566aea+_0x5c91bf>>0x1,_0x3c41bd=_0x4ef5be+_0x5e5aa0+(_0x5e5aa0<<0x1),_0x92967f=_0x31c7b4[_0x3c41bd],_0x4b65f0=_0x31c7b4[_0x3c41bd+0x1]||0x10000;if(_0x5935fd<_0x92967f)_0x5c91bf=_0x5e5aa0;else{if(!(_0x5935fd>=_0x4b65f0)){_0x591700=_0x31c7b4[_0x3c41bd+0x2],_0x3286a1['advance']();continue t;}_0x566aea=_0x5e5aa0+0x1;}}break;}_0x591700=_0x31c7b4[_0x4ef5be+0x3*_0x5c91bf-0x1];}}function iW(_0x1e8a18,_0x478f26,_0x3c33f9){for(let _0x5827d6,_0x5f2787=_0x478f26;0xffff!=(_0x5827d6=_0x1e8a18[_0x5f2787]);_0x5f2787++)if(_0x5827d6==_0x3c33f9)return _0x5f2787-_0x478f26;return-0x1;}function sW(_0x3dbf35,_0x4657b5,_0x4c43d2,_0x38b865){let _0x4b51d1=iW(_0x4c43d2,_0x38b865,_0x4657b5);return _0x4b51d1<0x0||iW(_0x4c43d2,_0x38b865,_0x3dbf35)<_0x4b51d1;}const nW='undefined'!=typeof process&&process.env&&/\bparse\b/['test'](process.env.LOG);let rW=null;function oW(_0x3b4d2a,_0x54afde,_0x12943b){let _0x1fb1b6=_0x3b4d2a['cursor'](zB['IncludeAnonymous']);for(_0x1fb1b6['moveTo'](_0x54afde);;)if(!(_0x12943b<0x0?_0x1fb1b6['childBefore'](_0x54afde):_0x1fb1b6['childAfter'](_0x54afde)))for(;;){if((_0x12943b<0x0?_0x1fb1b6['to']<_0x54afde:_0x1fb1b6['from']>_0x54afde)&&!_0x1fb1b6['type']['isError'])return _0x12943b<0x0?Math['max'](0x0,Math['min'](_0x1fb1b6['to']-0x1,_0x54afde-0x19)):Math['min'](_0x3b4d2a['length'],Math['max'](_0x1fb1b6['from']+0x1,_0x54afde+0x19));if(_0x12943b<0x0?_0x1fb1b6['prevSibling']():_0x1fb1b6['nextSibling']())break;if(!_0x1fb1b6['parent']())return _0x12943b<0x0?0x0:_0x3b4d2a['length'];}}var aW=class{constructor(_0x3ebde0,_0x521f51){this['fragments']=_0x3ebde0,this['nodeSet']=_0x521f51,this['i']=0x0,this['fragment']=null,this['safeFrom']=-0x1,this['safeTo']=-0x1,this['trees']=[],this['start']=[],this['index']=[],this['nextFragment']();}nextFragment(){let _0x1965f0=this['fragment']=this['i']==this['fragments']['length']?null:this['fragments'][this['i']++];if(_0x1965f0){for(this['safeFrom']=_0x1965f0['openStart']?oW(_0x1965f0['tree'],_0x1965f0['from']+_0x1965f0['offset'],0x1)-_0x1965f0['offset']:_0x1965f0['from'],this['safeTo']=_0x1965f0['openEnd']?oW(_0x1965f0['tree'],_0x1965f0['to']+_0x1965f0['offset'],-0x1)-_0x1965f0['offset']:_0x1965f0['to'];this['trees']['length'];)this['trees']['pop'](),this['start']['pop'](),this['index']['pop']();this['trees']['push'](_0x1965f0['tree']),this['start']['push'](-_0x1965f0['offset']),this['index']['push'](0x0),this['nextStart']=this['safeFrom'];}else this['nextStart']=0x3b9aca00;}nodeAt(_0x5dae0e){if(_0x5dae0e<this['nextStart'])return null;for(;this['fragment']&&this['safeTo']<=_0x5dae0e;)this['nextFragment']();if(!this['fragment'])return null;for(;;){let _0x2a5904=this['trees']['length']-0x1;if(_0x2a5904<0x0)return this['nextFragment'](),null;let _0x5a1f26=this['trees'][_0x2a5904],_0x221865=this['index'][_0x2a5904];if(_0x221865==_0x5a1f26['children']['length']){this['trees']['pop'](),this['start']['pop'](),this['index']['pop']();continue;}let _0x3b51bc=_0x5a1f26['children'][_0x221865],_0x1c0c28=this['start'][_0x2a5904]+_0x5a1f26['positions'][_0x221865];if(_0x1c0c28>_0x5dae0e)return this['nextStart']=_0x1c0c28,null;if(_0x3b51bc instanceof YB){if(_0x1c0c28==_0x5dae0e){if(_0x1c0c28<this['safeFrom'])return null;let _0x598067=_0x1c0c28+_0x3b51bc['length'];if(_0x598067<=this['safeTo']){let _0x3ba844=_0x3b51bc['prop'](HB['lookAhead']);if(!_0x3ba844||_0x598067+_0x3ba844<this['fragment']['to'])return _0x3b51bc;}}this['index'][_0x2a5904]++,_0x1c0c28+_0x3b51bc['length']>=Math['max'](this['safeFrom'],_0x5dae0e)&&(this['trees']['push'](_0x3b51bc),this['start']['push'](_0x1c0c28),this['index']['push'](0x0));}else this['index'][_0x2a5904]++,this['nextStart']=_0x1c0c28+_0x3b51bc['length'];}}},cW=class{constructor(_0x37d08f,_0xb9e206){this['stream']=_0xb9e206,this['tokens']=[],this['mainToken']=null,this['actions']=[],this['tokens']=_0x37d08f['tokenizers']['map'](_0x368f48=>new Wq());}getActions(_0xb36c38){let _0x272be9=0x0,_0x1350ab=null,{parser:_0x16f306}=_0xb36c38['p'],{tokenizers:_0x4b82fd}=_0x16f306,_0x261259=_0x16f306['stateSlot'](_0xb36c38['state'],0x3),_0xbd502b=_0xb36c38['curContext']?_0xb36c38['curContext']['hash']:0x0,_0x24a741=0x0;for(let _0x5d2957=0x0;_0x5d2957<_0x4b82fd['length'];_0x5d2957++){if(!(0x1<<_0x5d2957&_0x261259))continue;let _0xd2c916=_0x4b82fd[_0x5d2957],_0x2367eb=this['tokens'][_0x5d2957];if((!_0x1350ab||_0xd2c916['fallback'])&&((_0xd2c916['contextual']||_0x2367eb['start']!=_0xb36c38['pos']||_0x2367eb['mask']!=_0x261259||_0x2367eb['context']!=_0xbd502b)&&(this['updateCachedToken'](_0x2367eb,_0xd2c916,_0xb36c38),_0x2367eb['mask']=_0x261259,_0x2367eb['context']=_0xbd502b),_0x2367eb['lookAhead']>_0x2367eb['end']+0x19&&(_0x24a741=Math['max'](_0x2367eb['lookAhead'],_0x24a741)),0x0!=_0x2367eb['value'])){let _0x58dbc5=_0x272be9;if(_0x2367eb['extended']>-0x1&&(_0x272be9=this['addActions'](_0xb36c38,_0x2367eb['extended'],_0x2367eb['end'],_0x272be9)),_0x272be9=this['addActions'](_0xb36c38,_0x2367eb['value'],_0x2367eb['end'],_0x272be9),!_0xd2c916['extend']&&(_0x1350ab=_0x2367eb,_0x272be9>_0x58dbc5))break;}}for(;this['actions']['length']>_0x272be9;)this['actions']['pop']();return _0x24a741&&_0xb36c38['setLookAhead'](_0x24a741),_0x1350ab||_0xb36c38['pos']!=this['stream']['end']||(_0x1350ab=new Wq(),_0x1350ab['value']=_0xb36c38['p']['parser']['eofTerm'],_0x1350ab['start']=_0x1350ab['end']=_0xb36c38['pos'],_0x272be9=this['addActions'](_0xb36c38,_0x1350ab['value'],_0x1350ab['end'],_0x272be9)),this['mainToken']=_0x1350ab,this['actions'];}getMainToken(_0x12ef35){if(this['mainToken'])return this['mainToken'];let _0x1520cd=new Wq(),{pos:_0xf29298,p:_0x1a2740}=_0x12ef35;return _0x1520cd['start']=_0xf29298,_0x1520cd['end']=Math['min'](_0xf29298+0x1,_0x1a2740['stream']['end']),_0x1520cd['value']=_0xf29298==_0x1a2740['stream']['end']?_0x1a2740['parser']['eofTerm']:0x0,_0x1520cd;}updateCachedToken(_0x3d90c6,_0x185327,_0x24f505){let _0x2acfbf=this['stream']['clipPos'](_0x24f505['pos']);if(_0x185327['token'](this['stream']['reset'](_0x2acfbf,_0x3d90c6),_0x24f505),_0x3d90c6['value']>-0x1){let {parser:_0x1c7d9e}=_0x24f505['p'];for(let _0x28621e=0x0;_0x28621e<_0x1c7d9e['specialized']['length'];_0x28621e++)if(_0x1c7d9e['specialized'][_0x28621e]==_0x3d90c6['value']){let _0x551420=_0x1c7d9e['specializers'][_0x28621e](this['stream']['read'](_0x3d90c6['start'],_0x3d90c6['end']),_0x24f505);if(_0x551420>=0x0&&_0x24f505['p']['parser']['dialect']['allows'](_0x551420>>0x1)){0x1&_0x551420?_0x3d90c6['extended']=_0x551420>>0x1:_0x3d90c6['value']=_0x551420>>0x1;break;}}}else _0x3d90c6['value']=0x0,_0x3d90c6['end']=this['stream']['clipPos'](_0x2acfbf+0x1);}putAction(_0x4f040f,_0x17f71c,_0x4d23a8,_0x365944){for(let _0x13cdf2=0x0;_0x13cdf2<_0x365944;_0x13cdf2+=0x3)if(this['actions'][_0x13cdf2]==_0x4f040f)return _0x365944;return this['actions'][_0x365944++]=_0x4f040f,this['actions'][_0x365944++]=_0x17f71c,this['actions'][_0x365944++]=_0x4d23a8,_0x365944;}addActions(_0x1acd7b,_0x15e192,_0xe750fa,_0x5755a6){let {state:_0x562500}=_0x1acd7b,{parser:_0xada93c}=_0x1acd7b['p'],{data:_0x5412e8}=_0xada93c;for(let _0x272fb2=0x0;_0x272fb2<0x2;_0x272fb2++)for(let _0x181c72=_0xada93c['stateSlot'](_0x562500,_0x272fb2?0x2:0x1);;_0x181c72+=0x3){if(0xffff==_0x5412e8[_0x181c72]){if(0x1!=_0x5412e8[_0x181c72+0x1]){0x0==_0x5755a6&&0x2==_0x5412e8[_0x181c72+0x1]&&(_0x5755a6=this['putAction'](pW(_0x5412e8,_0x181c72+0x2),_0x15e192,_0xe750fa,_0x5755a6));break;}_0x181c72=pW(_0x5412e8,_0x181c72+0x2);}_0x5412e8[_0x181c72]==_0x15e192&&(_0x5755a6=this['putAction'](pW(_0x5412e8,_0x181c72+0x1),_0x15e192,_0xe750fa,_0x5755a6));}return _0x5755a6;}},lW=class{constructor(_0xdc181f,_0x3c851b,_0x2160b6,_0x24d94f){this['parser']=_0xdc181f,this['input']=_0x3c851b,this['ranges']=_0x24d94f,this['recovering']=0x0,this['nextStackID']=0x2654,this['minStackPos']=0x0,this['reused']=[],this['stoppedAt']=null,this['lastBigReductionStart']=-0x1,this['lastBigReductionSize']=0x0,this['bigReductionCount']=0x0,this['stream']=new Yq(_0x3c851b,_0x24d94f),this['tokens']=new cW(_0xdc181f,this['stream']),this['topTerm']=_0xdc181f['top'][0x1];let {from:_0x1d66df}=_0x24d94f[0x0];this['stacks']=[Fq['start'](this,_0xdc181f['top'][0x0],_0x1d66df)],this['fragments']=_0x2160b6['length']&&this['stream']['end']-_0x1d66df>0x4*_0xdc181f['bufferLength']?new aW(_0x2160b6,_0xdc181f['nodeSet']):null;}get['parsedPos'](){return this['minStackPos'];}['advance'](){let _0x1623b1,_0x1834e3,_0x1d8e49=this['stacks'],_0xdb7fbe=this['minStackPos'],_0x30c5ea=this['stacks']=[];if(this['bigReductionCount']>0x12c&&0x1==_0x1d8e49['length']){let [_0x37ddac]=_0x1d8e49;for(;_0x37ddac['forceReduce']()&&_0x37ddac['stack']['length']&&_0x37ddac['stack'][_0x37ddac['stack']['length']-0x2]>=this['lastBigReductionStart'];);this['bigReductionCount']=this['lastBigReductionSize']=0x0;}for(let _0x4949f2=0x0;_0x4949f2<_0x1d8e49['length'];_0x4949f2++){let _0x650faf=_0x1d8e49[_0x4949f2];for(;;){if(this['tokens']['mainToken']=null,_0x650faf['pos']>_0xdb7fbe)_0x30c5ea['push'](_0x650faf);else{if(this['advanceStack'](_0x650faf,_0x30c5ea,_0x1d8e49))continue;{_0x1623b1||(_0x1623b1=[],_0x1834e3=[]),_0x1623b1['push'](_0x650faf);let _0x5c1fdc=this['tokens']['getMainToken'](_0x650faf);_0x1834e3['push'](_0x5c1fdc['value'],_0x5c1fdc['end']);}}break;}}if(!_0x30c5ea['length']){let _0x1b8893=_0x1623b1&&function(_0x216f30){let _0x320fdb=null;for(let _0x5bede5 of _0x216f30){let _0x357605=_0x5bede5['p']['stoppedAt'];(_0x5bede5['pos']==_0x5bede5['p']['stream']['end']||null!=_0x357605&&_0x5bede5['pos']>_0x357605)&&_0x5bede5['p']['parser']['stateFlag'](_0x5bede5['state'],0x2)&&(!_0x320fdb||_0x320fdb['score']<_0x5bede5['score'])&&(_0x320fdb=_0x5bede5);}return _0x320fdb;}(_0x1623b1);if(_0x1b8893)return nW&&console['log']('Finish\x20with\x20'+this['stackID'](_0x1b8893)),this['stackToTree'](_0x1b8893);if(this['parser']['strict'])throw nW&&_0x1623b1&&console['log']('Stuck\x20with\x20token\x20'+(this['tokens']['mainToken']?this['parser']['getName'](this['tokens']['mainToken']['value']):'none')),new SyntaxError('No\x20parse\x20at\x20'+_0xdb7fbe);this['recovering']||(this['recovering']=0x5);}if(this['recovering']&&_0x1623b1){let _0x18945d=null!=this['stoppedAt']&&_0x1623b1[0x0]['pos']>this['stoppedAt']?_0x1623b1[0x0]:this['runRecovery'](_0x1623b1,_0x1834e3,_0x30c5ea);if(_0x18945d)return nW&&console['log']('Force-finish\x20'+this['stackID'](_0x18945d)),this['stackToTree'](_0x18945d['forceAll']());}if(this['recovering']){let _0x424114=0x1==this['recovering']?0x1:0x3*this['recovering'];if(_0x30c5ea['length']>_0x424114){for(_0x30c5ea['sort']((_0x3c4aa2,_0x49f889)=>_0x49f889['score']-_0x3c4aa2['score']);_0x30c5ea['length']>_0x424114;)_0x30c5ea['pop']();}_0x30c5ea['some'](_0x256b6d=>_0x256b6d['reducePos']>_0xdb7fbe)&&this['recovering']--;}else{if(_0x30c5ea['length']>0x1){t:for(let _0x528edc=0x0;_0x528edc<_0x30c5ea['length']-0x1;_0x528edc++){let _0x19683e=_0x30c5ea[_0x528edc];for(let _0x4ebac7=_0x528edc+0x1;_0x4ebac7<_0x30c5ea['length'];_0x4ebac7++){let _0x138983=_0x30c5ea[_0x4ebac7];if(_0x19683e['sameState'](_0x138983)||_0x19683e['buffer']['length']>0x1f4&&_0x138983['buffer']['length']>0x1f4){if(!((_0x19683e['score']-_0x138983['score']||_0x19683e['buffer']['length']-_0x138983['buffer']['length'])>0x0)){_0x30c5ea['splice'](_0x528edc--,0x1);continue t;}_0x30c5ea['splice'](_0x4ebac7--,0x1);}}}_0x30c5ea['length']>0xc&&(_0x30c5ea['sort']((_0x5cfb45,_0x17bba2)=>_0x17bba2['score']-_0x5cfb45['score']),_0x30c5ea['splice'](0xc,_0x30c5ea['length']-0xc));}}this['minStackPos']=_0x30c5ea[0x0]['pos'];for(let _0x195a88=0x1;_0x195a88<_0x30c5ea['length'];_0x195a88++)_0x30c5ea[_0x195a88]['pos']<this['minStackPos']&&(this['minStackPos']=_0x30c5ea[_0x195a88]['pos']);return null;}stopAt(_0x50d232){if(null!=this['stoppedAt']&&this['stoppedAt']<_0x50d232)throw new RangeError('Can\x27t\x20move\x20stoppedAt\x20forward');this['stoppedAt']=_0x50d232;}advanceStack(_0x1a8c38,_0x5e91a7,_0x3cb73f){let _0x49ebe9=_0x1a8c38['pos'],{parser:_0x50e993}=this,_0x48c4fa=nW?this['stackID'](_0x1a8c38)+'\x20->\x20':'';if(null!=this['stoppedAt']&&_0x49ebe9>this['stoppedAt'])return _0x1a8c38['forceReduce']()?_0x1a8c38:null;if(this['fragments']){let _0x1926ce=_0x1a8c38['curContext']&&_0x1a8c38['curContext']['tracker']['strict'],_0x383a82=_0x1926ce?_0x1a8c38['curContext']['hash']:0x0;for(let _0x57cd1e=this['fragments']['nodeAt'](_0x49ebe9);_0x57cd1e;){let _0x5da52f=this['parser']['nodeSet']['types'][_0x57cd1e['type']['id']]==_0x57cd1e['type']?_0x50e993['getGoto'](_0x1a8c38['state'],_0x57cd1e['type']['id']):-0x1;if(_0x5da52f>-0x1&&_0x57cd1e['length']&&(!_0x1926ce||(_0x57cd1e['prop'](HB['contextHash'])||0x0)==_0x383a82))return _0x1a8c38['useNode'](_0x57cd1e,_0x5da52f),nW&&console['log'](_0x48c4fa+this['stackID'](_0x1a8c38)+('\x20(via\x20reuse\x20of\x20'+_0x50e993['getName'](_0x57cd1e['type']['id'])+')')),!0x0;if(!(_0x57cd1e instanceof YB)||0x0==_0x57cd1e['children']['length']||_0x57cd1e['positions'][0x0]>0x0)break;let _0x13b872=_0x57cd1e['children'][0x0];if(!(_0x13b872 instanceof YB&&0x0==_0x57cd1e['positions'][0x0]))break;_0x57cd1e=_0x13b872;}}let _0x1b3ffe=_0x50e993['stateSlot'](_0x1a8c38['state'],0x4);if(_0x1b3ffe>0x0)return _0x1a8c38['reduce'](_0x1b3ffe),nW&&console['log'](_0x48c4fa+this['stackID'](_0x1a8c38)+('\x20(via\x20always-reduce\x20'+_0x50e993['getName'](0xffff&_0x1b3ffe)+')')),!0x0;if(_0x1a8c38['stack']['length']>=0x20d0){for(;_0x1a8c38['stack']['length']>0x1770&&_0x1a8c38['forceReduce'](););}let _0x4dd8a6=this['tokens']['getActions'](_0x1a8c38);for(let _0x4fd183=0x0;_0x4fd183<_0x4dd8a6['length'];){let _0x149f04=_0x4dd8a6[_0x4fd183++],_0x58d680=_0x4dd8a6[_0x4fd183++],_0x3db0c2=_0x4dd8a6[_0x4fd183++],_0x14186e=_0x4fd183==_0x4dd8a6['length']||!_0x3cb73f,_0x3b55cf=_0x14186e?_0x1a8c38:_0x1a8c38['split'](),_0x4bb30b=this['tokens']['mainToken'];if(_0x3b55cf['apply'](_0x149f04,_0x58d680,_0x4bb30b?_0x4bb30b['start']:_0x3b55cf['pos'],_0x3db0c2),nW&&console['log'](_0x48c4fa+this['stackID'](_0x3b55cf)+('\x20(via\x20'+(0x10000&_0x149f04?'reduce\x20of\x20'+_0x50e993['getName'](0xffff&_0x149f04):'shift')+'\x20for\x20'+_0x50e993['getName'](_0x58d680)+'\x20@\x20'+_0x49ebe9+(_0x3b55cf==_0x1a8c38?'':',\x20split')+')')),_0x14186e)return!0x0;_0x3b55cf['pos']>_0x49ebe9?_0x5e91a7['push'](_0x3b55cf):_0x3cb73f['push'](_0x3b55cf);}return!0x1;}['advanceFully'](_0x354ac5,_0xbb7692){let _0x4fc8e4=_0x354ac5['pos'];for(;;){if(!this['advanceStack'](_0x354ac5,null,null))return!0x1;if(_0x354ac5['pos']>_0x4fc8e4)return hW(_0x354ac5,_0xbb7692),!0x0;}}['runRecovery'](_0x4f61f3,_0x33b9c5,_0x64fc08){let _0x138fad=null,_0x3c7473=!0x1;for(let _0x2003a7=0x0;_0x2003a7<_0x4f61f3['length'];_0x2003a7++){let _0x1bde42=_0x4f61f3[_0x2003a7],_0x525cea=_0x33b9c5[_0x2003a7<<0x1],_0x233b41=_0x33b9c5[0x1+(_0x2003a7<<0x1)],_0x54fd2c=nW?this['stackID'](_0x1bde42)+'\x20->\x20':'';if(_0x1bde42['deadEnd']){if(_0x3c7473)continue;if(_0x3c7473=!0x0,_0x1bde42['restart'](),nW&&console['log'](_0x54fd2c+this['stackID'](_0x1bde42)+'\x20(restarted)'),this['advanceFully'](_0x1bde42,_0x64fc08))continue;}let _0x343a0a=_0x1bde42['split'](),_0x4175f3=_0x54fd2c;for(let _0x3115c4=0x0;_0x3115c4<0xa&&_0x343a0a['forceReduce']()&&(nW&&console['log'](_0x4175f3+this['stackID'](_0x343a0a)+'\x20(via\x20force-reduce)'),!this['advanceFully'](_0x343a0a,_0x64fc08));_0x3115c4++)nW&&(_0x4175f3=this['stackID'](_0x343a0a)+'\x20->\x20');for(let _0x309d00 of _0x1bde42['recoverByInsert'](_0x525cea))nW&&console['log'](_0x54fd2c+this['stackID'](_0x309d00)+'\x20(via\x20recover-insert)'),this['advanceFully'](_0x309d00,_0x64fc08);this['stream']['end']>_0x1bde42['pos']?(_0x233b41==_0x1bde42['pos']&&(_0x233b41++,_0x525cea=0x0),_0x1bde42['recoverByDelete'](_0x525cea,_0x233b41),nW&&console['log'](_0x54fd2c+this['stackID'](_0x1bde42)+('\x20(via\x20recover-delete\x20'+this['parser']['getName'](_0x525cea)+')')),hW(_0x1bde42,_0x64fc08)):(!_0x138fad||_0x138fad['score']<_0x343a0a['score'])&&(_0x138fad=_0x343a0a);}return _0x138fad;}stackToTree(_0x562a4e){return _0x562a4e['close'](),YB['build']({'buffer':Xq['create'](_0x562a4e),'nodeSet':this['parser']['nodeSet'],'topID':this['topTerm'],'maxBufferLength':this['parser']['bufferLength'],'reused':this['reused'],'start':this['ranges'][0x0]['from'],'length':_0x562a4e['pos']-this['ranges'][0x0]['from'],'minRepeatType':this['parser']['minRepeatTerm']});}stackID(_0x45042f){let _0x1fbdd5=(rW||(rW=new WeakMap()))['get'](_0x45042f);return _0x1fbdd5||rW['set'](_0x45042f,_0x1fbdd5=String['fromCodePoint'](this['nextStackID']++)),_0x1fbdd5+_0x45042f;}};function hW(_0x325a1e,_0x1b44a3){for(let _0x3d8151=0x0;_0x3d8151<_0x1b44a3['length'];_0x3d8151++){let _0x34c0fc=_0x1b44a3[_0x3d8151];if(_0x34c0fc['pos']==_0x325a1e['pos']&&_0x34c0fc['sameState'](_0x325a1e))return void(_0x1b44a3[_0x3d8151]['score']<_0x325a1e['score']&&(_0x1b44a3[_0x3d8151]=_0x325a1e));}_0x1b44a3['push'](_0x325a1e);}var uW=class{constructor(_0x18ae9c,_0x351499,_0x508587){this['source']=_0x18ae9c,this['flags']=_0x351499,this['disabled']=_0x508587;}['allows'](_0x4d9ee5){return!this['disabled']||0x0==this['disabled'][_0x4d9ee5];}};const dW=_0x572523=>_0x572523;var fW=class{constructor(_0x3d1800){this['start']=_0x3d1800['start'],this['shift']=_0x3d1800['shift']||dW,this['reduce']=_0x3d1800['reduce']||dW,this['reuse']=_0x3d1800['reuse']||dW,this['hash']=_0x3d1800['hash']||(()=>0x0),this['strict']=!0x1!==_0x3d1800['strict'];}},mW=class LRParser extends wH{constructor(_0x390c9b){if(super(),this['wrappers']=[],0xe!=_0x390c9b['version'])throw new RangeError('Parser\x20version\x20('+_0x390c9b['version']+')\x20doesn\x27t\x20match\x20runtime\x20version\x20(14)');let _0x583831=_0x390c9b['nodeNames']['split']('\x20');this['minRepeatTerm']=_0x583831['length'];for(let _0x365f9b=0x0;_0x365f9b<_0x390c9b['repeatNodeCount'];_0x365f9b++)_0x583831['push']('');let _0xc74d49=Object['keys'](_0x390c9b['topRules'])['map'](_0x1fb474=>_0x390c9b['topRules'][_0x1fb474][0x1]),_0x1f67d6=[];for(let _0x16e697=0x0;_0x16e697<_0x583831['length'];_0x16e697++)_0x1f67d6['push']([]);function _0x20a5f0(_0x5f077e,_0x3df6f6,_0x2186cd){_0x1f67d6[_0x5f077e]['push']([_0x3df6f6,_0x3df6f6['deserialize'](String(_0x2186cd))]);}if(_0x390c9b['nodeProps'])for(let _0x1e4408 of _0x390c9b['nodeProps']){let _0x252480=_0x1e4408[0x0];'string'==typeof _0x252480&&(_0x252480=HB[_0x252480]);for(let _0x158b89=0x1;_0x158b89<_0x1e4408['length'];){let _0x369cef=_0x1e4408[_0x158b89++];if(_0x369cef>=0x0)_0x20a5f0(_0x369cef,_0x252480,_0x1e4408[_0x158b89++]);else{let _0x3ece3a=_0x1e4408[_0x158b89+-_0x369cef];for(let _0xb209b3=-_0x369cef;_0xb209b3>0x0;_0xb209b3--)_0x20a5f0(_0x1e4408[_0x158b89++],_0x252480,_0x3ece3a);_0x158b89++;}}}this['nodeSet']=new XB(_0x583831['map']((_0xd3a796,_0x536951)=>GB['define']({'name':_0x536951>=this['minRepeatTerm']?void 0x0:_0xd3a796,'id':_0x536951,'props':_0x1f67d6[_0x536951],'top':_0xc74d49['indexOf'](_0x536951)>-0x1,'error':0x0==_0x536951,'skipped':_0x390c9b['skippedNodes']&&_0x390c9b['skippedNodes']['indexOf'](_0x536951)>-0x1}))),_0x390c9b['propSources']&&(this['nodeSet']=this['nodeSet']['extend'](..._0x390c9b['propSources'])),this['strict']=!0x1,this['bufferLength']=UB;let _0x76ddf6=qq(_0x390c9b['tokenData']);this['context']=_0x390c9b['context'],this['specializerSpecs']=_0x390c9b['specialized']||[],this['specialized']=new Uint16Array(this['specializerSpecs']['length']);for(let _0x537cbe=0x0;_0x537cbe<this['specializerSpecs']['length'];_0x537cbe++)this['specialized'][_0x537cbe]=this['specializerSpecs'][_0x537cbe]['term'];this['specializers']=this['specializerSpecs']['map'](gW),this['states']=qq(_0x390c9b['states'],Uint32Array),this['data']=qq(_0x390c9b['stateData']),this['goto']=qq(_0x390c9b['goto']),this['maxTerm']=_0x390c9b['maxTerm'],this['tokenizers']=_0x390c9b['tokenizers']['map'](_0x19b648=>'number'==typeof _0x19b648?new Kq(_0x76ddf6,_0x19b648):_0x19b648),this['topRules']=_0x390c9b['topRules'],this['dialects']=_0x390c9b['dialects']||{},this['dynamicPrecedences']=_0x390c9b['dynamicPrecedences']||null,this['tokenPrecTable']=_0x390c9b['tokenPrec'],this['termNames']=_0x390c9b['termNames']||null,this['maxNode']=this['nodeSet']['types']['length']-0x1,this['dialect']=this['parseDialect'](),this['top']=this['topRules'][Object['keys'](this['topRules'])[0x0]];}createParse(_0x279b42,_0x48fa32,_0x3224f1){let _0x398c16=new lW(this,_0x279b42,_0x48fa32,_0x3224f1);for(let _0x331883 of this['wrappers'])_0x398c16=_0x331883(_0x398c16,_0x279b42,_0x48fa32,_0x3224f1);return _0x398c16;}getGoto(_0x50731b,_0xd65310,_0x1b5267=!0x1){let _0xf23db9=this['goto'];if(_0xd65310>=_0xf23db9[0x0])return-0x1;for(let _0x4998d4=_0xf23db9[_0xd65310+0x1];;){let _0x4ef074=_0xf23db9[_0x4998d4++],_0x1bfbae=0x1&_0x4ef074,_0x3b1e58=_0xf23db9[_0x4998d4++];if(_0x1bfbae&&_0x1b5267)return _0x3b1e58;for(let _0xf9e598=_0x4998d4+(_0x4ef074>>0x1);_0x4998d4<_0xf9e598;_0x4998d4++)if(_0xf23db9[_0x4998d4]==_0x50731b)return _0x3b1e58;if(_0x1bfbae)return-0x1;}}hasAction(_0x5abb3d,_0x3beb5d){let _0x455759=this['data'];for(let _0xf27c3b=0x0;_0xf27c3b<0x2;_0xf27c3b++)for(let _0x3f4bab,_0x124253=this['stateSlot'](_0x5abb3d,_0xf27c3b?0x2:0x1);;_0x124253+=0x3){if(0xffff==(_0x3f4bab=_0x455759[_0x124253])){if(0x1!=_0x455759[_0x124253+0x1]){if(0x2==_0x455759[_0x124253+0x1])return pW(_0x455759,_0x124253+0x2);break;}_0x3f4bab=_0x455759[_0x124253=pW(_0x455759,_0x124253+0x2)];}if(_0x3f4bab==_0x3beb5d||0x0==_0x3f4bab)return pW(_0x455759,_0x124253+0x1);}return 0x0;}stateSlot(_0xdf4549,_0x1daef3){return this['states'][0x6*_0xdf4549+_0x1daef3];}stateFlag(_0x3ccf29,_0x12b05e){return(this['stateSlot'](_0x3ccf29,0x0)&_0x12b05e)>0x0;}validAction(_0x3285cb,_0x533298){return!!this['allActions'](_0x3285cb,_0x542fa3=>_0x542fa3==_0x533298||null);}allActions(_0x26f20b,_0x502f23){let _0x15bde6=this['stateSlot'](_0x26f20b,0x4),_0x2825d9=_0x15bde6?_0x502f23(_0x15bde6):void 0x0;for(let _0x1c40ac=this['stateSlot'](_0x26f20b,0x1);null==_0x2825d9;_0x1c40ac+=0x3){if(0xffff==this['data'][_0x1c40ac]){if(0x1!=this['data'][_0x1c40ac+0x1])break;_0x1c40ac=pW(this['data'],_0x1c40ac+0x2);}_0x2825d9=_0x502f23(pW(this['data'],_0x1c40ac+0x1));}return _0x2825d9;}nextStates(_0x23d01b){let _0x2a1180=[];for(let _0x430c36=this['stateSlot'](_0x23d01b,0x1);;_0x430c36+=0x3){if(0xffff==this['data'][_0x430c36]){if(0x1!=this['data'][_0x430c36+0x1])break;_0x430c36=pW(this['data'],_0x430c36+0x2);}if(!(0x1&this['data'][_0x430c36+0x2])){let _0x4b5100=this['data'][_0x430c36+0x1];_0x2a1180['some']((_0x260cb5,_0x335a67)=>0x1&_0x335a67&&_0x260cb5==_0x4b5100)||_0x2a1180['push'](this['data'][_0x430c36],_0x4b5100);}}return _0x2a1180;}['configure'](_0x188fdb){let _0x2341e3=Object['assign'](Object['create'](LRParser['prototype']),this);if(_0x188fdb['props']&&(_0x2341e3['nodeSet']=this['nodeSet']['extend'](..._0x188fdb['props'])),_0x188fdb['top']){let _0x2b6018=this['topRules'][_0x188fdb['top']];if(!_0x2b6018)throw new RangeError('Invalid\x20top\x20rule\x20name\x20'+_0x188fdb['top']);_0x2341e3['top']=_0x2b6018;}return _0x188fdb['tokenizers']&&(_0x2341e3['tokenizers']=this['tokenizers']['map'](t=>{let _0x370bd7=_0x188fdb['tokenizers']['find'](_0x4d8586=>_0x4d8586['from']==t);return _0x370bd7?_0x370bd7['to']:t;})),_0x188fdb['specializers']&&(_0x2341e3['specializers']=this['specializers']['slice'](),_0x2341e3['specializerSpecs']=this['specializerSpecs']['map']((_0x477c6a,_0x2b1afd)=>{let _0x4f9c14=_0x188fdb['specializers']['find'](_0x569987=>_0x569987['from']==_0x477c6a['external']);if(!_0x4f9c14)return _0x477c6a;let _0x5dca59=Object['assign'](Object['assign']({},_0x477c6a),{'external':_0x4f9c14['to']});return _0x2341e3['specializers'][_0x2b1afd]=gW(_0x5dca59),_0x5dca59;})),_0x188fdb['contextTracker']&&(_0x2341e3['context']=_0x188fdb['contextTracker']),_0x188fdb['dialect']&&(_0x2341e3['dialect']=this['parseDialect'](_0x188fdb['dialect'])),null!=_0x188fdb['strict']&&(_0x2341e3['strict']=_0x188fdb['strict']),_0x188fdb['wrap']&&(_0x2341e3['wrappers']=_0x2341e3['wrappers']['concat'](_0x188fdb['wrap'])),null!=_0x188fdb['bufferLength']&&(_0x2341e3['bufferLength']=_0x188fdb['bufferLength']),_0x2341e3;}['hasWrappers'](){return this['wrappers']['length']>0x0;}getName(_0x20c083){return this['termNames']?this['termNames'][_0x20c083]:String(_0x20c083<=this['maxNode']&&this['nodeSet']['types'][_0x20c083]['name']||_0x20c083);}get['eofTerm'](){return this['maxNode']+0x1;}get topNode(){return this['nodeSet']['types'][this['top'][0x1]];}['dynamicPrecedence'](_0x13a56a){let _0x4a4647=this['dynamicPrecedences'];return null==_0x4a4647?0x0:_0x4a4647[_0x13a56a]||0x0;}parseDialect(_0x7108a9){let _0x367be6=Object['keys'](this['dialects']),_0x40621a=_0x367be6['map'](()=>!0x1);if(_0x7108a9)for(let _0x3da95f of _0x7108a9['split']('\x20')){let _0x58368b=_0x367be6['indexOf'](_0x3da95f);_0x58368b>=0x0&&(_0x40621a[_0x58368b]=!0x0);}let _0x4d2de3=null;for(let _0x2d2e31=0x0;_0x2d2e31<_0x367be6['length'];_0x2d2e31++)if(!_0x40621a[_0x2d2e31]){for(let _0x550106,_0x414f15=this['dialects'][_0x367be6[_0x2d2e31]];0xffff!=(_0x550106=this['data'][_0x414f15++]);)(_0x4d2de3||(_0x4d2de3=new Uint8Array(this['maxTerm']+0x1)))[_0x550106]=0x1;}return new uW(_0x7108a9,_0x40621a,_0x4d2de3);}static['deserialize'](_0x42321f){return new LRParser(_0x42321f);}};function pW(_0x30f064,_0x3044ff){return _0x30f064[_0x3044ff]|_0x30f064[_0x3044ff+0x1]<<0x10;}function gW(_0x221bcb){if(_0x221bcb['external']){let _0x4cc139=_0x221bcb['extend']?0x1:0x0;return(_0x39f287,_0x2e3b40)=>_0x221bcb['external'](_0x39f287,_0x2e3b40)<<0x1|_0x4cc139;}return _0x221bcb['get'];}const OW={'area':!0x0,'base':!0x0,'br':!0x0,'col':!0x0,'command':!0x0,'embed':!0x0,'frame':!0x0,'hr':!0x0,'img':!0x0,'input':!0x0,'keygen':!0x0,'link':!0x0,'meta':!0x0,'param':!0x0,'source':!0x0,'track':!0x0,'wbr':!0x0,'menuitem':!0x0},wW={'dd':!0x0,'li':!0x0,'optgroup':!0x0,'option':!0x0,'p':!0x0,'rp':!0x0,'rt':!0x0,'tbody':!0x0,'td':!0x0,'tfoot':!0x0,'th':!0x0,'tr':!0x0},bW={'dd':{'dd':!0x0,'dt':!0x0},'dt':{'dd':!0x0,'dt':!0x0},'li':{'li':!0x0},'option':{'option':!0x0,'optgroup':!0x0},'optgroup':{'optgroup':!0x0},'p':{'address':!0x0,'article':!0x0,'aside':!0x0,'blockquote':!0x0,'dir':!0x0,'div':!0x0,'dl':!0x0,'fieldset':!0x0,'footer':!0x0,'form':!0x0,'h1':!0x0,'h2':!0x0,'h3':!0x0,'h4':!0x0,'h5':!0x0,'h6':!0x0,'header':!0x0,'hgroup':!0x0,'hr':!0x0,'menu':!0x0,'nav':!0x0,'ol':!0x0,'p':!0x0,'pre':!0x0,'section':!0x0,'table':!0x0,'ul':!0x0},'rp':{'rp':!0x0,'rt':!0x0},'rt':{'rp':!0x0,'rt':!0x0},'tbody':{'tbody':!0x0,'tfoot':!0x0},'td':{'td':!0x0,'th':!0x0},'tfoot':{'tbody':!0x0},'th':{'td':!0x0,'th':!0x0},'thead':{'tbody':!0x0,'tfoot':!0x0},'tr':{'tr':!0x0}};function yW(_0x2398ea){return 0x2d==_0x2398ea||0x2e==_0x2398ea||0x3a==_0x2398ea||_0x2398ea>=0x41&&_0x2398ea<=0x5a||0x5f==_0x2398ea||_0x2398ea>=0x61&&_0x2398ea<=0x7a||_0x2398ea>=0xa1;}let vW=null,_W=null,EW=0x0;function TW(_0x201591,_0x5e141d){let _0x3afa86=_0x201591['pos']+_0x5e141d;if(EW==_0x3afa86&&_W==_0x201591)return vW;let _0x5e131e=_0x201591['peek'](_0x5e141d),_0x4c47ef='';for(;yW(_0x5e131e);)_0x4c47ef+=String['fromCharCode'](_0x5e131e),_0x5e131e=_0x201591['peek'](++_0x5e141d);return _W=_0x201591,EW=_0x3afa86,vW=_0x4c47ef?_0x4c47ef['toLowerCase']():_0x5e131e==AW||_0x5e131e==SW?void 0x0:null;}const AW=0x3f,SW=0x21;function IW(_0x53bcbf,_0x9d434c){this['name']=_0x53bcbf,this['parent']=_0x9d434c;}const kW=[0x6,0xa,0x7,0x8,0x9],xW=new fW({'start':null,'shift':(_0x86603a,_0x451223,_0x2132c5,_0x243f71)=>kW['indexOf'](_0x451223)>-0x1?new IW(TW(_0x243f71,0x1)||'',_0x86603a):_0x86603a,'reduce':(_0x4a4b5a,_0x5470d1)=>0x15==_0x5470d1&&_0x4a4b5a?_0x4a4b5a['parent']:_0x4a4b5a,'reuse'(_0x42a2a0,_0xe06eb8,_0x49b2cc,_0x4b4705){let _0x3d688b=_0xe06eb8['type']['id'];return 0x6==_0x3d688b||0x25==_0x3d688b?new IW(TW(_0x4b4705,0x1)||'',_0x42a2a0):_0x42a2a0;},'strict':!0x1}),CW=new tW((_0x409468,_0x574853)=>{if(0x3c!=_0x409468['next'])return void(_0x409468['next']<0x0&&_0x574853['context']&&_0x409468['acceptToken'](0x3a));_0x409468['advance']();let _0x50494a=0x2f==_0x409468['next'];_0x50494a&&_0x409468['advance']();let _0x10f84c=TW(_0x409468,0x0);if(void 0x0===_0x10f84c)return;if(!_0x10f84c)return _0x409468['acceptToken'](_0x50494a?0xf:0xe);let _0x5a70c6=_0x574853['context']?_0x574853['context']['name']:null;if(_0x50494a){if(_0x10f84c==_0x5a70c6)return _0x409468['acceptToken'](0xb);if(_0x5a70c6&&wW[_0x5a70c6])return _0x409468['acceptToken'](0x3a,-0x2);if(_0x574853['dialectEnabled'](0x0))return _0x409468['acceptToken'](0xc);for(let _0x43ac31=_0x574853['context'];_0x43ac31;_0x43ac31=_0x43ac31['parent'])if(_0x43ac31['name']==_0x10f84c)return;_0x409468['acceptToken'](0xd);}else{if('script'==_0x10f84c)return _0x409468['acceptToken'](0x7);if('style'==_0x10f84c)return _0x409468['acceptToken'](0x8);if('textarea'==_0x10f84c)return _0x409468['acceptToken'](0x9);if(OW['hasOwnProperty'](_0x10f84c))return _0x409468['acceptToken'](0xa);_0x5a70c6&&bW[_0x5a70c6]&&bW[_0x5a70c6][_0x10f84c]?_0x409468['acceptToken'](0x3a,-0x1):_0x409468['acceptToken'](0x6);}},{'contextual':!0x0}),RW=new tW(_0x10f7b4=>{for(let _0x586081=0x0,_0x510fe6=0x0;;_0x510fe6++){if(_0x10f7b4['next']<0x0){_0x510fe6&&_0x10f7b4['acceptToken'](0x3b);break;}if(0x2d==_0x10f7b4['next'])_0x586081++;else{if(0x3e==_0x10f7b4['next']&&_0x586081>=0x2){_0x510fe6>=0x3&&_0x10f7b4['acceptToken'](0x3b,-0x2);break;}_0x586081=0x0;}_0x10f7b4['advance']();}}),PW=new tW((_0x3f7b34,_0x1851c4)=>{if(0x2f==_0x3f7b34['next']&&0x3e==_0x3f7b34['peek'](0x1)){let _0x2465e7=_0x1851c4['dialectEnabled'](0x1)||function(_0x4f72d9){for(;_0x4f72d9;_0x4f72d9=_0x4f72d9['parent'])if('svg'==_0x4f72d9['name']||'math'==_0x4f72d9['name'])return!0x0;return!0x1;}(_0x1851c4['context']);_0x3f7b34['acceptToken'](_0x2465e7?0x5:0x4,0x2);}else 0x3e==_0x3f7b34['next']&&_0x3f7b34['acceptToken'](0x4,0x1);});function NW(_0x372b51,_0x11025d,_0x568b29){let _0x5e6bcf=0x2+_0x372b51['length'];return new tW(_0x36b1c3=>{for(let _0x2d2c14=0x0,_0x5297b0=0x0,_0x124350=0x0;;_0x124350++){if(_0x36b1c3['next']<0x0){_0x124350&&_0x36b1c3['acceptToken'](_0x11025d);break;}if(0x0==_0x2d2c14&&0x3c==_0x36b1c3['next']||0x1==_0x2d2c14&&0x2f==_0x36b1c3['next']||_0x2d2c14>=0x2&&_0x2d2c14<_0x5e6bcf&&_0x36b1c3['next']==_0x372b51['charCodeAt'](_0x2d2c14-0x2))_0x2d2c14++,_0x5297b0++;else{if(_0x2d2c14==_0x5e6bcf&&0x3e==_0x36b1c3['next']){_0x124350>_0x5297b0?_0x36b1c3['acceptToken'](_0x11025d,-_0x5297b0):_0x36b1c3['acceptToken'](_0x568b29,-(_0x5297b0-0x2));break;}if((0xa==_0x36b1c3['next']||0xd==_0x36b1c3['next'])&&_0x124350){_0x36b1c3['acceptToken'](_0x11025d,0x1);break;}_0x2d2c14=_0x5297b0=0x0;}_0x36b1c3['advance']();}});}const MW=NW('script',0x37,0x1),LW=NW('style',0x38,0x2),$W=NW('textarea',0x39,0x3),DW=QH({'Text\x20RawText\x20IncompleteTag\x20IncompleteCloseTag':nF['content'],'StartTag\x20StartCloseTag\x20SelfClosingEndTag\x20EndTag':nF['angleBracket'],'TagName':nF['tagName'],'MismatchedCloseTag/TagName':[nF['tagName'],nF['invalid']],'AttributeName':nF['attributeName'],'AttributeValue\x20UnquotedAttributeValue':nF['attributeValue'],'Is':nF['definitionOperator'],'EntityReference\x20CharacterReference':nF['character'],'Comment':nF['blockComment'],'ProcessingInst':nF['processingInstruction'],'DoctypeDecl':nF['documentMeta']}),QW=mW['deserialize']({'version':0xe,'states':',xOVO!rOOO!ZQ#tO\x27#CrO!`Q#tO\x27#C{O!eQ#tO\x27#DOO!jQ#tO\x27#DRO!oQ#tO\x27#DTO!tOaO\x27#CqO#PObO\x27#CqO#[OdO\x27#CqO$kO!rO\x27#CqOOO`\x27#Cq\x27#CqO$rO$fO\x27#DUO$zQ#tO\x27#DWO%PQ#tO\x27#DXOOO`\x27#Dl\x27#DlOOO`\x27#DZ\x27#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa\x27#D_\x27#D_O&_OaO\x27#CyO&jOaO,59]OOOb\x27#D`\x27#D`O&rObO\x27#C|O&}ObO,59]OOOd\x27#Da\x27#DaO\x27VOdO\x27#DPO\x27bOdO,59]OOO`\x27#Db\x27#DbO\x27jO!rO,59]O\x27qQ#tO\x27#DSOOO`,59],59]OOOp\x27#Dc\x27#DcO\x27vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO\x27#CtOOQW\x27#D[\x27#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO)fQ&rO1G/ZOOOa-E7]-E7]O)qQ#tO\x27#CzOOO`1G.w1G.wOOOb-E7^-E7^O)vQ#tO\x27#C}OOOd-E7_-E7_O){Q#tO\x27#DQOOO`-E7`-E7`O*QQ#|O,59nOOOp-E7a-E7aOOO`1G/[1G/[OOO`1G/^1G/^OOO`1G/_1G/_O*VQ,UO,59`OOQW-E7Y-E7YOOOa7+$d7+$dOOO`7+$u7+$uOOOb7+$m7+$mOOOd7+$p7+$pOOO`7+$s7+$sO*bQ#|O,59fO*gQ#|O,59iO*lQ#|O,59lOOO`1G/Y1G/YO*qO7[O\x27#CwO+SOMhO\x27#CwOOQW1G.z1G.zOOO`1G/Q1G/QOOO`1G/T1G/TOOO`1G/W1G/WOOOO\x27#D]\x27#D]O+eO7[O,59cOOQW,59c,59cOOOO\x27#D^\x27#D^O+vOMhO,59cOOOO-E7Z-E7ZOOQW1G.}1G.}OOOO-E7[-E7[','stateData':',c~O!_OS~OUSOVPOWQOXROYTO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O|_O!eZO~OgaO~OgbO~OgcO~OgdO~OgeO~O!XfOPmP![mP~O!YiOQpP![pP~O!ZlORsP![sP~OUSOVPOWQOXROYTOZqO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O!eZO~O![rO~P#gO!]sO!fuO~OgvO~OgwO~OS|OT}OiyO~OS!POT}OiyO~OS!ROT}OiyO~OS!TOT}OiyO~OS}OT}OiyO~O!XfOPmX![mX~OP!WO![!XO~O!YiOQpX![pX~OQ!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~','goto':'%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp','nodeNames':'⚠\x20StartCloseTag\x20StartCloseTag\x20StartCloseTag\x20EndTag\x20SelfClosingEndTag\x20StartTag\x20StartTag\x20StartTag\x20StartTag\x20StartTag\x20StartCloseTag\x20StartCloseTag\x20StartCloseTag\x20IncompleteTag\x20IncompleteCloseTag\x20Document\x20Text\x20EntityReference\x20CharacterReference\x20InvalidEntity\x20Element\x20OpenTag\x20TagName\x20Attribute\x20AttributeName\x20Is\x20AttributeValue\x20UnquotedAttributeValue\x20ScriptText\x20CloseTag\x20OpenTag\x20StyleText\x20CloseTag\x20OpenTag\x20TextareaText\x20CloseTag\x20OpenTag\x20CloseTag\x20SelfClosingTag\x20Comment\x20ProcessingInst\x20MismatchedCloseTag\x20CloseTag\x20DoctypeDecl','maxTerm':0x44,'context':xW,'nodeProps':[['closedBy',-0xa,0x1,0x2,0x3,0x7,0x8,0x9,0xa,0xb,0xc,0xd,'EndTag',0x6,'EndTag\x20SelfClosingEndTag',-0x4,0x16,0x1f,0x22,0x25,'CloseTag'],['openedBy',0x4,'StartTag\x20StartCloseTag',0x5,'StartTag',-0x4,0x1e,0x21,0x24,0x26,'OpenTag'],['group',-0xa,0xe,0xf,0x12,0x13,0x14,0x15,0x28,0x29,0x2a,0x2b,'Entity',0x11,'Entity\x20TextContent',-0x3,0x1d,0x20,0x23,'TextContent\x20Entity'],['isolate',-0xb,0x16,0x1e,0x1f,0x21,0x22,0x24,0x25,0x26,0x27,0x2a,0x2b,'ltr',-0x3,0x1b,0x1c,0x28,'']],'propSources':[DW],'skippedNodes':[0x0],'repeatNodeCount':0x9,'tokenData':'!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;\x27SMz;\x27S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|caPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;\x27S$q;\x27S;=`+z<%lO$q!R&bXaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;\x27S&X;\x27S;=`*y<%lO&Xq\x27UVaP!dpOv&}wx\x27kx!^&}!^!_(V!_;\x27S&};\x27S;=`(n<%lO&}P\x27pTaPOv\x27kw!^\x27k!_;\x27S\x27k;\x27S;=`(P<%lO\x27kP(SP;=`<%l\x27kp([S!dpOv(Vx;\x27S(V;\x27S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({WaP!b`Or(trs\x27ksv(tw!^(t!^!_)e!_;\x27S(t;\x27S;=`*P<%lO(t`)jT!b`Or)esv)ew;\x27S)e;\x27S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!b`!dpOr*Vrs(Vsv*Vwx)ex;\x27S*V;\x27S;=`*s<%lO*V!Q*vP;=`<%l*V!R*|P;=`<%l&XW+UYlWOX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;\x27S+P;\x27S;=`+t<%lO+PW+wP;=`<%l+P!Z+}P;=`<%l$q!a,]`aP!b`!dp!_^OX&XXY,QYZ,QZ]&X]^,Q^p&Xpq,Qqr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;\x27S&X;\x27S;=`*y<%lO&X!_-ljiSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;\x27S-_;\x27S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q[/ebiSlWOX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;\x27S/^;\x27S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+PS0rXiSqr0msw0mx!P0m!Q!^0m!a#s0m$f;\x27S0m;\x27S;=`1_<%l?Ah0m?BY?Mn0mS1bP;=`<%l0m[1hP;=`<%l/^!V1vciSaP!b`!dpOq&Xqr1krs&}sv1kvw0mwx(tx!P1k!P!Q&X!Q!^1k!^!_*V!_!a&X!a#s1k#s$f&X$f;\x27S1k;\x27S;=`3R<%l?Ah1k?Ah?BY&X?BY?Mn1k?MnO&X!V3UP;=`<%l1k!_3[P;=`<%l-_!Z3hV!ahaP!dpOv&}wx\x27kx!^&}!^!_(V!_;\x27S&};\x27S;=`(n<%lO&}!_4WiiSlWd!ROX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst>]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;\x27S8t;\x27S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zblWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;\x27S5u;\x27S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;\x27S7S;\x27S;=`7q<%lO7S!R7qOb!R!R7tP;=`<%l7S!Z8OYlWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;\x27S+P;\x27S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{iiSlWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;\x27S8t;\x27S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbiSlWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;\x27S/^;\x27S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!V<QciSOp7Sqr;{rs7Sst0mtw;{wx7Sx!P;{!P!Q7S!Q!];{!]!^=]!^!a7S!a#s;{#s$f7S$f;\x27S;{;\x27S;=`>P<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXiSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;\x27S0m;\x27S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;\x27SBw;\x27S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TalWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;\x27S@O;\x27S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;\x27SAY;\x27S;=`At<%lOAY!RAtOc!R!RAwP;=`<%lAY!ZBRYlWc!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;\x27S+P;\x27S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;\x27SBw;\x27S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbiSlWc!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;\x27S/^;\x27S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbiSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;\x27SE{;\x27S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXiSc!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;\x27S0m;\x27S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!cxaP!b`Or(trs\x27ksv(tw!^(t!^!_)e!_;\x27S(t;\x27S;=`*P<%lO(t!aIYliSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;\x27S-_;\x27S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_kiSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;\x27S-_;\x27S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_XaP!b`!dp!fQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;\x27S&X;\x27S;=`*y<%lO&X!aNZ!ZiSgQaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;\x27SMz;\x27S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!b`!dpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;\x27S*V;\x27S;=`*s<%lO*V!R!%Q]!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!\x27]!g#W*V#W#X!0`#X;\x27S*V;\x27S;=`*s<%lO*V!R!&QX!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;\x27S*V;\x27S;=`*s<%lO*V!R!&vV!b`!dp!ePOr*Vrs(Vsv*Vwx)ex;\x27S*V;\x27S;=`*s<%lO*V!R!\x27dX!b`!dpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;\x27S*V;\x27S;=`*s<%lO*V!R!(WX!b`!dpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;\x27S*V;\x27S;=`*s<%lO*V!R!(zX!b`!dpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;\x27S*V;\x27S;=`*s<%lO*V!R!)nX!b`!dpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;\x27S*V;\x27S;=`*s<%lO*V!R!*bX!b`!dpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;\x27S*V;\x27S;=`*s<%lO*V!R!+UX!b`!dpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;\x27S*V;\x27S;=`*s<%lO*V!R!+xY!b`!dpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;\x27S!+q;\x27S;=`!0Y<%lO!+qq!,mV!dpOv!,hvx!-Sx!`!,h!`!a!-q!a;\x27S!,h;\x27S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;\x27S!-S;\x27S;=`!-k<%lO!-SP!-kO|PP!-nP;=`<%l!-Sq!-xS!dp|POv(Vx;\x27S(V;\x27S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!b`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;\x27S!.[;\x27S;=`!/d<%lO!.[a!/TT!b`|POr)esv)ew;\x27S)e;\x27S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!b`!dp|POr*Vrs(Vsv*Vwx)ex;\x27S*V;\x27S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!b`!dpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;\x27S*V;\x27S;=`*s<%lO*V!R!1ZX!b`!dpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;\x27S*V;\x27S;=`*s<%lO*V!R!1}X!b`!dpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;\x27S*V;\x27S;=`*s<%lO*V!R!2qX!b`!dpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;\x27S*V;\x27S;=`*s<%lO*V!R!3eX!b`!dpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;\x27S*V;\x27S;=`*s<%lO*V!R!4XX!b`!dpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;\x27S*V;\x27S;=`*s<%lO*V!R!4{Y!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;\x27S!4t;\x27S;=`!;r<%lO!4tq!5pV!dpOv!5kvx!6Vx!a!5k!a!b!7W!b;\x27S!5k;\x27S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;\x27S!6V;\x27S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;\x27S!6V;\x27S;=`!7Q<%lO!6VP!7QOyPP!7TP;=`<%l!6Vq!7]V!dpOv!5kvx!6Vx!`!5k!`!a!7r!a;\x27S!5k;\x27S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;\x27S(V;\x27S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;\x27S!8];\x27S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;\x27S!8];\x27S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;\x27S)e;\x27S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;\x27S!4t;\x27S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;\x27S*V;\x27S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;\x27S&X;\x27S;=`*y<%lO&X','tokenizers':[MW,LW,$W,PW,CW,RW,0x0,0x1,0x2,0x3,0x4,0x5],'topRules':{'Document':[0x0,0x10]},'dialects':{'noMatch':0x0,'selfClosing':0x203},'tokenPrec':0x205});function jW(_0x38e1b8,_0x65345c){let _0x2dd1a1=Object['create'](null);for(let _0x312960 of _0x38e1b8['getChildren'](0x18)){let _0x5b740c=_0x312960['getChild'](0x19),_0x5b56f8=_0x312960['getChild'](0x1b)||_0x312960['getChild'](0x1c);_0x5b740c&&(_0x2dd1a1[_0x65345c['read'](_0x5b740c['from'],_0x5b740c['to'])]=_0x5b56f8?0x1b==_0x5b56f8['type']['id']?_0x65345c['read'](_0x5b56f8['from']+0x1,_0x5b56f8['to']-0x1):_0x65345c['read'](_0x5b56f8['from'],_0x5b56f8['to']):'');}return _0x2dd1a1;}function UW(_0x42a385,_0x57b849){let _0x1b177a=_0x42a385['getChild'](0x17);return _0x1b177a?_0x57b849['read'](_0x1b177a['from'],_0x1b177a['to']):'\x20';}function VW(_0xbd8b1f,_0xe095ce,_0x43dac5){let _0x2a2f4f;for(let _0x4b7887 of _0x43dac5)if(!_0x4b7887['attrs']||_0x4b7887['attrs'](_0x2a2f4f||(_0x2a2f4f=jW(_0xbd8b1f['node']['parent']['firstChild'],_0xe095ce))))return{'parser':_0x4b7887['parser'],'bracketed':!0x0};return null;}function BW(_0x3ffa11=[],_0x4558e1=[]){let _0x3e4b43=[],_0x29cf43=[],_0x217ea0=[],_0x1581f4=[];for(let _0x325f90 of _0x3ffa11)('script'==_0x325f90['tag']?_0x3e4b43:'style'==_0x325f90['tag']?_0x29cf43:'textarea'==_0x325f90['tag']?_0x217ea0:_0x1581f4)['push'](_0x325f90);let _0x278364=_0x4558e1['length']?Object['create'](null):null;for(let _0x377f57 of _0x4558e1)(_0x278364[_0x377f57['name']]||(_0x278364[_0x377f57['name']]=[]))['push'](_0x377f57);return yH((_0x409447,_0x179bcd)=>{let _0x12b2a9=_0x409447['type']['id'];if(0x1d==_0x12b2a9)return VW(_0x409447,_0x179bcd,_0x3e4b43);if(0x20==_0x12b2a9)return VW(_0x409447,_0x179bcd,_0x29cf43);if(0x23==_0x12b2a9)return VW(_0x409447,_0x179bcd,_0x217ea0);if(0x15==_0x12b2a9&&_0x1581f4['length']){let _0x42b1ba,_0x538e8e=_0x409447['node'],_0x5bac20=_0x538e8e['firstChild'],_0x256915=_0x5bac20&&UW(_0x5bac20,_0x179bcd);if(_0x256915){for(let _0xc3d0d7 of _0x1581f4)if(_0xc3d0d7['tag']==_0x256915&&(!_0xc3d0d7['attrs']||_0xc3d0d7['attrs'](_0x42b1ba||(_0x42b1ba=jW(_0x5bac20,_0x179bcd))))){let _0x58aa5a=_0x538e8e['lastChild'],_0x5d3a83=0x26==_0x58aa5a['type']['id']?_0x58aa5a['from']:_0x538e8e['to'];if(_0x5d3a83>_0x5bac20['to'])return{'parser':_0xc3d0d7['parser'],'overlay':[{'from':_0x5bac20['to'],'to':_0x5d3a83}]};}}}if(_0x278364&&0x18==_0x12b2a9){let _0x1441b2,_0x143383=_0x409447['node'];if(_0x1441b2=_0x143383['firstChild']){let _0x2175ec=_0x278364[_0x179bcd['read'](_0x1441b2['from'],_0x1441b2['to'])];if(_0x2175ec)for(let _0x4e8ecf of _0x2175ec){if(_0x4e8ecf['tagName']&&_0x4e8ecf['tagName']!=UW(_0x143383['parent'],_0x179bcd))continue;let _0x9a5191=_0x143383['lastChild'];if(0x1b==_0x9a5191['type']['id']){let _0x456a20=_0x9a5191['from']+0x1,_0x4314ad=_0x9a5191['lastChild'],_0x3fe89c=_0x9a5191['to']-(_0x4314ad&&_0x4314ad['isError']?0x0:0x1);if(_0x3fe89c>_0x456a20)return{'parser':_0x4e8ecf['parser'],'overlay':[{'from':_0x456a20,'to':_0x3fe89c}],'bracketed':!0x0};}else{if(0x1c==_0x9a5191['type']['id'])return{'parser':_0x4e8ecf['parser'],'overlay':[{'from':_0x9a5191['from'],'to':_0x9a5191['to']}]};}}}}return null;});}const HW=[0x9,0xa,0xb,0xc,0xd,0x20,0x85,0xa0,0x1680,0x2000,0x2001,0x2002,0x2003,0x2004,0x2005,0x2006,0x2007,0x2008,0x2009,0x200a,0x2028,0x2029,0x202f,0x205f,0x3000];function FW(_0x3a350b){return _0x3a350b>=0x41&&_0x3a350b<=0x5a||_0x3a350b>=0x61&&_0x3a350b<=0x7a||_0x3a350b>=0xa1;}function ZW(_0x379585){return _0x379585>=0x30&&_0x379585<=0x39;}function GW(_0x8f5d0){return ZW(_0x8f5d0)||_0x8f5d0>=0x61&&_0x8f5d0<=0x66||_0x8f5d0>=0x41&&_0x8f5d0<=0x46;}const XW=(_0x4eb77c,_0x5682ba,_0xfd0f5c)=>(_0x6a268e,_0x41f8f6)=>{for(let _0x562b94=!0x1,_0x3d5b5a=0x0,_0x5e13c8=0x0;;_0x5e13c8++){let {next:_0xfeab74}=_0x6a268e;if(FW(_0xfeab74)||0x2d==_0xfeab74||0x5f==_0xfeab74||_0x562b94&&ZW(_0xfeab74))!_0x562b94&&(0x2d!=_0xfeab74||_0x5e13c8>0x0)&&(_0x562b94=!0x0),_0x3d5b5a===_0x5e13c8&&0x2d==_0xfeab74&&_0x3d5b5a++,_0x6a268e['advance']();else{if(0x5c!=_0xfeab74||0xa==_0x6a268e['peek'](0x1)){_0x562b94&&_0x6a268e['acceptToken'](0x2==_0x3d5b5a&&_0x41f8f6['canShift'](0x2)?_0x5682ba:0x28==_0xfeab74?_0xfd0f5c:_0x4eb77c);break;}if(_0x6a268e['advance'](),GW(_0x6a268e['next'])){do{_0x6a268e['advance']();}while(GW(_0x6a268e['next']));0x20==_0x6a268e['next']&&_0x6a268e['advance']();}else _0x6a268e['next']>-0x1&&_0x6a268e['advance']();_0x562b94=!0x0;}}},qW=new tW(XW(0x88,0x2,0x89),{'contextual':!0x0}),WW=new tW(XW(0x8a,0x3,0x4),{'contextual':!0x0}),zW=new tW(_0x4bcedc=>{if(HW['includes'](_0x4bcedc['peek'](-0x1))){let {next:_0x325774}=_0x4bcedc;(FW(_0x325774)||0x5f==_0x325774||0x23==_0x325774||0x2e==_0x325774||0x2a==_0x325774||0x5b==_0x325774||0x3a==_0x325774&&FW(_0x4bcedc['peek'](0x1))||0x2d==_0x325774||0x26==_0x325774)&&_0x4bcedc['acceptToken'](0x87);}}),YW=new tW(_0x4eb03f=>{if(!HW['includes'](_0x4eb03f['peek'](-0x1))){let {next:_0xd49056}=_0x4eb03f;if(0x25==_0xd49056&&(_0x4eb03f['advance'](),_0x4eb03f['acceptToken'](0x1)),FW(_0xd49056)){do{_0x4eb03f['advance']();}while(FW(_0x4eb03f['next'])||ZW(_0x4eb03f['next']));_0x4eb03f['acceptToken'](0x1);}}}),KW=QH({'AtKeyword\x20import\x20charset\x20namespace\x20keyframes\x20media\x20supports\x20font-feature-values':nF['definitionKeyword'],'from\x20to\x20selector\x20scope\x20MatchFlag':nF['keyword'],'NamespaceName':nF['namespace'],'KeyframeName':nF['labelName'],'KeyframeRangeName':nF['operatorKeyword'],'TagName':nF['tagName'],'ClassName':nF['className'],'PseudoClassName':nF['constant'](nF['className']),'IdName':nF['labelName'],'FeatureName\x20PropertyName':nF['propertyName'],'AttributeName':nF['attributeName'],'NumberLiteral':nF['number'],'KeywordQuery':nF['keyword'],'UnaryQueryOp':nF['operatorKeyword'],'CallTag\x20ValueName\x20FontName':nF['atom'],'VariableName':nF['variableName'],'Callee':nF['operatorKeyword'],'Unit':nF['unit'],'UniversalSelector\x20NestingSelector':nF['definitionOperator'],'MatchOp\x20CompareOp':nF['compareOperator'],'ChildOp\x20SiblingOp,\x20LogicOp':nF['logicOperator'],'BinOp':nF['arithmeticOperator'],'Important':nF['modifier'],'Comment':nF['blockComment'],'ColorLiteral':nF['color'],'ParenthesizedContent\x20StringLiteral':nF['string'],':':nF['punctuation'],'PseudoOp\x20#':nF['derefOperator'],';\x20,\x20|':nF['separator'],'(\x20)':nF['paren'],'[\x20]':nF['squareBracket'],'{\x20}':nF['brace']}),JW={'__proto__':null,'lang':0x2c,'nth-child':0x2c,'nth-last-child':0x2c,'nth-of-type':0x2c,'nth-last-of-type':0x2c,'dir':0x2c,'host-context':0x2c,'if':0x5a,'url':0x84,'url-prefix':0x84,'domain':0x84,'regexp':0x84},tz={'__proto__':null,'or':0x68,'and':0x68,'not':0x70,'only':0x70,'layer':0xba},ez={'__proto__':null,'selector':0x76,'layer':0xb6},iz={'__proto__':null,'@import':0xb2,'@media':0xbe,'@charset':0xc2,'@namespace':0xc6,'@keyframes':0xcc,'@supports':0xd8,'@scope':0xdc,'@font-feature-values':0xe2},sz={'__proto__':null,'to':0xdf},nz=mW['deserialize']({'version':0xe,'states':'IpQYQdOOO#}QdOOP$UO`OOO%OQaO\x27#CfOOQP\x27#Ce\x27#CeO%VQdO\x27#CgO%[Q`O\x27#CgO%aQaO\x27#FdO&XQdO\x27#CkO&xQaO\x27#CcO\x27SQdO\x27#CnO\x27_QdO\x27#DtO\x27dQdO\x27#DvO\x27oQdO\x27#D}O\x27oQdO\x27#EQOOQP\x27#Fd\x27#FdO)OQhO\x27#EsOOQS\x27#Fc\x27#FcOOQS\x27#Ev\x27#EvQYQdOOO)VQdO\x27#EWO*cQhO\x27#E^O)VQdO\x27#E`O*jQdO\x27#EbO*uQdO\x27#EeO)zQhO\x27#EkO*}QdO\x27#EmO+YQdO\x27#EpO+_QaO\x27#CfO+fQ`O\x27#ETO+kQ`O\x27#FnO+vQdO\x27#FnQOQ`OOP,QO&jO\x27#CaPOOO)CAR)CAROOQP\x27#Ci\x27#CiOOQP,59R,59RO%VQdO,59ROOQP\x27#Cm\x27#CmOOQP,59V,59VO&XQdO,59VO,]QdO,59YO\x27_QdO,5:`O\x27dQdO,5:bO\x27oQdO,5:iO\x27oQdO,5:kO\x27oQdO,5:lO\x27oQdO\x27#E}O,hQ`O,58}O,pQdO\x27#ESOOQS,58},58}OOQP\x27#Cq\x27#CqOOQO\x27#Dr\x27#DrOOQP,59Y,59YO,wQ`O,59YO,|Q`O,59YOOQP\x27#Du\x27#DuOOQP,5:`,5:`O-RQpO\x27#DwO-^QdO\x27#DxO-cQ`O\x27#DxO-hQpO,5:bO.RQaO,5:iO.iQaO,5:lOOQW\x27#D^\x27#D^O/eQhO\x27#DgO/xQhO,5;_O)zQhO\x27#DeO0VQ`O\x27#DkO0[QhO\x27#DnOOQW\x27#Fj\x27#FjOOQS,5;_,5;_O0aQ`O\x27#DhOOQS-E8t-E8tOOQ[\x27#Cv\x27#CvO0fQdO\x27#CwO0|QdO\x27#C}O1dQdO\x27#DQO1zQ!pO\x27#DSO4TQ!jO,5:rOOQO\x27#DX\x27#DXO,|Q`O\x27#DWO4eQ!nO\x27#FgO6hQ`O\x27#DYO6mQ`O\x27#DoOOQ[\x27#Fg\x27#FgO6rQhO\x27#FqO7QQ`O,5:xO7VQ!bO,5:zOOQS\x27#Ed\x27#EdO7_Q`O,5:|O7dQdO,5:|OOQO\x27#Eg\x27#EgO7lQ`O,5;PO7qQhO,5;VO\x27oQdO\x27#DjOOQS,5;X,5;XO0aQ`O,5;XO7yQdO,5;XOOQS\x27#FU\x27#FUO8RQdO\x27#ErO7QQ`O,5;[O8ZQdO,5:oO8kQdO\x27#FPO8xQ`O,5<YO8xQ`O,5<YPOOO\x27#Eu\x27#EuP9TO&jO,58{POOO,58{,58{OOQP1G.m1G.mOOQP1G.q1G.qOOQP1G.t1G.tO,wQ`O1G.tO,|Q`O1G.tOOQP1G/z1G/zO9`QpO1G/|O9hQaO1G0TO:OQaO1G0VO:fQaO1G0WO:|QaO,5;iOOQO-E8{-E8{OOQS1G.i1G.iO;WQ`O,5:nO;]QdO\x27#DsO;dQdO\x27#CuOOQO\x27#Dz\x27#DzOOQO,5:d,5:dO-^QdO,5:dOOQP1G/|1G/|O)VQdO1G/|O;kQ!jO\x27#D^O;yQ!bO,59yO<RQhO,5:ROOQO\x27#Fk\x27#FkO;|Q!bO,59}O<ZQhO\x27#FVO)zQhO,59{O)zQhO\x27#FVO=OQhO1G0yOOQS1G0y1G0yO=YQhO,5:PO>QQhO\x27#DlOOQW,5:V,5:VOOQW,5:Y,5:YOOQW,5:S,5:SO>[Q!fO\x27#FhOOQS\x27#Fh\x27#FhOOQS\x27#Ex\x27#ExO?lQdO,59cOOQ[,59c,59cO@SQdO,59iOOQ[,59i,59iO@jQdO,59lOOQ[,59l,59lOOQ[,59n,59nO)VQdO,59pOAQQhO\x27#EYOOQW\x27#EY\x27#EYOAlQ`O1G0^O4^QhO1G0^OOQ[,59r,59rO)zQhO\x27#D[OOQ[,59t,59tOAqQ#tO,5:ZOA|QhO\x27#FROBZQ`O,5<]OOQS1G0d1G0dOOQS1G0f1G0fOOQS1G0h1G0hOBfQ`O1G0hOBkQdO\x27#EhOOQS1G0k1G0kOOQS1G0q1G0qOBvQaO,5:UO7QQ`O1G0sOOQS1G0s1G0sO0aQ`O1G0sOOQS-E9S-E9SOOQS1G0v1G0vOB}Q!fO1G0ZOCeQ`O\x27#EVOOQO1G0Z1G0ZOOQO,5;k,5;kOCjQdO,5;kOOQO-E8}-E8}OCwQ`O1G1tPOOO-E8s-E8sPOOO1G.g1G.gOOQP7+$`7+$`OOQP7+%h7+%hO)VQdO7+%hOOQS1G0Y1G0YODSQaO\x27#FmOD^Q`O,5:_ODcQ!fO\x27#EwOEaQdO\x27#FfOEkQ`O,59aOOQO1G0O1G0OOEpQ!bO7+%hO)VQdO1G/eOE{QhO1G/iOOQW1G/m1G/mOOQW1G/g1G/gOF^QhO,5;qOOQW-E9T-E9TOOQS7+&e7+&eOGRQhO\x27#D^OGaQhO\x27#FlOGlQ`O\x27#FlOGqQ`O,5:WOOQS-E8v-E8vOOQ[1G.}1G.}OOQ[1G/T1G/TOOQ[1G/W1G/WOOQ[1G/[1G/[OGvQdO,5:tOOQS7+%x7+%xOG{Q`O7+%xOHQQhO\x27#D]OHYQ`O,59vO)zQhO,59vOOQ[1G/u1G/uOHbQ`O1G/uOHgQhO,5;mOOQO-E9P-E9POOQS7+&S7+&SOHuQbO\x27#DSOOQO\x27#Ej\x27#EjOITQ`O\x27#EiOOQO\x27#Ei\x27#EiOI`Q`O\x27#FSOIhQdO,5;SOOQS,5;S,5;SOOQ[1G/p1G/pOOQS7+&_7+&_O7QQ`O7+&_OIsQ!fO\x27#FOO)VQdO\x27#FOOJzQdO7+%uOOQO7+%u7+%uOOQO,5:q,5:qOOQO1G1V1G1VOK_Q!bO<<ISOKjQdO\x27#E|OKtQ`O,5<XOOQP1G/y1G/yOOQS-E8u-E8uOK|QdO\x27#E{OLWQ`O,5<QOOQ]1G.{1G.{OOQP<<IS<<ISOL`Q`O<<ISOLeQdO7+%POOQO\x27#D`\x27#D`OLlQ!bO7+%TOLtQhO\x27#EzOMRQ`O,5<WO)VQdO,5<WOOQW1G/r1G/rOOQO\x27#E[\x27#E[OMZQ`O1G0`OOQS<<Id<<IdO)VQdO,59wOMzQhO1G/bOOQ[1G/b1G/bONRQ`O1G/bOOQW-E8w-E8wOOQ[7+%a7+%aOOQO,5;T,5;TOBnQdO\x27#FTOI`Q`O,5;nOOQS,5;n,5;nOOQS-E9Q-E9QOOQS1G0n1G0nOOQS<<Iy<<IyONZQ!fO,5;jOOQS-E8|-E8|OOQO<<Ia<<IaOOQPAN>nAN>nO!\x20bQ`OAN>nO!\x20gQaO,5;hOOQO-E8z-E8zO!\x20qQdO,5;gOOQO-E8y-E8yOOQW<<Hk<<HkOOQW<<Ho<<HoO!\x20{QhO<<HoO!!^QhO,5;fO!!iQ`O,5;fOOQO-E8x-E8xO!!nQdO1G1rOGvQdO\x27#FQO!!xQ`O7+%zOOQW7+%z7+%zO!#QQ!bO1G/cOOQ[7+$|7+$|O!#]QhO7+$|P!#dQ`O\x27#EyOOQO,5;o,5;oOOQO-E9R-E9ROOQS1G1Y1G1YOOQPG24YG24YO!#iQ`OAN>ZO)VQdO1G1QO!#nQ`O7+\x27^OOQO,5;l,5;lOOQO-E9O-E9OOOQW<<If<<IfOOQ[<<Hh<<HhPOQW,5;e,5;eOOQWG23uG23uO!#vQdO7+&l','stateData':'!$Z~O$QOS$RQQ~OWVO^_O`WOcYOdYOl`OmZOp[O!r]O!u^O!{dO#ReO#TfO#VgO#YhO#`iO#bjO#ekO#|RO$XTO~OQmOWVO^_O`WOcYOdYOl`OmZOp[O!r]O!u^O!{dO#ReO#TfO#VgO#YhO#`iO#bjO#ekO#|lO$XTO~O#z$bP~P!jO$RqO~O`YXcYXdYXmYXpYXsYX!aYX!rYX!uYX#{YX$X[X~OgYX~P$ZO#|sO~O$XuO~O$XuO`$WXc$WXd$WXm$WXp$WXs$WX!a$WX!r$WX!u$WX#{$WXg$WX~O#|vO~O`xOcyOdyOmzOp{O!r|O!u!OO#{}O~Os!RO!a!PO~P&^Of!XO#|!TO#}!UO~O#|!YO~OW!^O#|![O$X!]O~OWVO^_O`WOcYOdYOmZOp[O!r]O!u^O#|RO$XTO~OS!fOc!gOd!gOh!cOs!RO!Y!eO!]!jO$O!bO~On!iO~P(dOQ!tOh!mOp!nOs!oOu!wOw!wO}!uO!d!vO#|!lO#}!rO$]!pO~OS!fOc!gOd!gOh!cO!Y!eO!]!jO$O!bO~Os$eP~P)zOw!|O!d!vO#|!{O~Ow#OO#|#OO~Oh#ROs!RO#c#TO~O#|#VO~Oc!xX~P$ZOc#YO~On#ZO#z$bXr$bX~O#z$bXr$bX~P!jO$S#^O$T#^O$U#`O~Of#eO#|!TO#}!UO~Os!RO!a!PO~Or$bP~P!jOh#oO~Oh#pO~Oo!kX!o!kX$X!mX~O#|#qO~O$X#sO~Oo#tO!o#uO~O`xOcyOdyOmzOp{O~Os!qa!a!qa!r!qa!u!qa#{!qag!qa~P-pOs!ta!a!ta!r!ta!u!ta#{!tag!ta~P-pOS!fOc!gOd!gOh!cO!Y!eO!]!jO~OR#yOu#yOw#yO$O#vO$]!pO~P/POn$PO!U#|O!a#}O~P(dOh$RO~O$O$TO~Oh#RO~O`$WOc$WOg$ZOl$WOm$WOn$WO~P)VO`$WOc$WOl$WOm$WOn$WOo$]O~P)VO`$WOc$WOl$WOm$WOn$WOr$_O~P)VOP$`OSvXcvXdvXhvXnvXyvX!YvX!]vX!}vX#PvX$OvX!WvXQvX`vXgvXlvXmvXpvXsvXuvXwvX}vX!dvX#|vX#}vX$]vXovXrvX!avX#zvX$dvX!pvX~Oy$aO!}$bO#P$cOn$eP~P)zOh#pOS$ZXc$ZXd$ZXn$ZXy$ZX!Y$ZX!]$ZX!}$ZX#P$ZX$O$ZXQ$ZX`$ZXg$ZXl$ZXm$ZXp$ZXs$ZXu$ZXw$ZX}$ZX!d$ZX#|$ZX#}$ZX$]$ZXo$ZXr$ZX!a$ZX#z$ZX$d$ZX!p$ZX~Oh$gO~Oh$iO~O!U#|O!a$jOs$eXn$eX~Os!RO~On$mOy$aO~On$nO~Ow$oO!d!vO~Os$pO~Os!RO!U#|O~Os!RO#c$vO~O#|#VOs#fX~O$d$zOn!wa#z!war!wa~P)VOn#sX#z#sXr#sX~P!jOn#ZO#z$bar$ba~O$S#^O$T#^O$U%RO~Oo%TO!o%UO~Os!qi!a!qi!r!qi!u!qi#{!qig!qi~P-pOs!si!a!si!r!si!u!si#{!sig!si~P-pOs!ti!a!ti!r!ti!u!ti#{!tig!ti~P-pOs#qa!a#qa~P&^Or%VO~Og$aP~P\x27oOg$YP~P)VOc!SXg!QX!U!QX!W!SX~Oc%_O!W%`O~Og%aO!U#|O~O!U#|OS#yXc#yXd#yXh#yXn#yXs#yX!Y#yX!]#yX!a#yX$O#yX~On%eO!a#}O~P(dO!U#|OS!Xac!Xad!Xah!Xan!Xas!Xa!Y!Xa!]!Xa!a!Xa$O!Xag!Xa~O$O%fOg$`P~P/POy$aOQ$[X`$[Xc$[Xg$[Xh$[Xl$[Xm$[Xn$[Xp$[Xs$[Xu$[Xw$[X}$[X!d$[X#|$[X#}$[X$]$[Xo$[Xr$[X~O`$WOc$WOg%kOl$WOm$WOn$WO~P)VO`$WOc$WOl$WOm$WOn$WOo%lO~P)VO`$WOc$WOl$WOm$WOn$WOr%mO~P)VOh%oOS!|Xc!|Xd!|Xn!|X!Y!|X!]!|X$O!|X~On%pO~Og%uOw%vO!e%vO~Os#uX!a#uXn#uX~P)zO!a$jOs$ean$ea~On%yO~Or&QO#|%{O$]%zO~Og&RO~P&^Oy$aO!a&VO$d$zOn!wi#z!wir!wi~P)VO$c&YO~On#sa#z#sar#sa~P!jOn#ZO#z$bir$bi~O!a&]Og$aX~P&^Og&_O~Oy$aOQ#kXg#kXh#kXp#kXs#kXu#kXw#kX}#kX!a#kX!d#kX#|#kX#}#kX$]#kX~O!a&aOg$YX~P)VOg&cO~Oo&dOy$aO!p&eO~OR#yOu#yOw#yO$O&gO$]!pO~O!U#|OS#yac#yad#yah#yan#yas#ya!Y#ya!]#ya!a#ya$O#ya~Oc!SXg!QX!U!QX!a!QX~O!U#|O!a&iOg$`X~Oc&kO~Og&lO~O#|&mO~On&oO~Oc&pO!U#|O~Og&rOn&qO~Og&uO~O!U#|Os#ua!a#uan#ua~OP$`OsvX!avXgvX~O$]%zOs#]X!a#]X~Os!RO!a&wO~Or&{O#|%{O$]%zO~Oy$aOQ#rXh#rXn#rXp#rXs#rXu#rXw#rX}#rX!a#rX!d#rX#z#rX#|#rX#}#rX$]#rX$d#rXr#rX~O!a&VO$d$zOn!wq#z!wqr!wq~P)VOo\x27QOy$aO!p\x27RO~Og#pX!a#pX~P\x27oO!a&]Og$aa~Og#oX!a#oX~P)VO!a&aOg$Ya~Oo\x27QO~Og\x27WO~P)VOg\x27XO!W\x27YO~O$O%fOg#nX!a#nX~P/PO!a&iOg$`a~O`\x27_Og\x27aO~OS#mac#mad#mah#ma!Y#ma!]#ma$O#ma~Og\x27cO~PMcOg\x27cOn\x27dO~Oy$aOQ#rah#ran#rap#ras#rau#raw#ra}#ra!a#ra!d#ra#z#ra#|#ra#}#ra$]#ra$d#rar#ra~Oo\x27iO~Og#pa!a#pa~P&^Og#oa!a#oa~P)VOR#yOu#yOw#yO$O&gO$]%zO~O!U#|Og#na!a#na~Oc\x27kO~O!a&iOg$`i~P)VO`\x27_Og\x27oO~Oy$aOg!Pin!Pi~Og\x27pO~PMcOn\x27qO~Og\x27rO~O!a&iOg$`q~Og#nq!a#nq~P)VO$Q!e$R$]`$]y!u~','goto':'4h$fPPPPP$gP$jP$s%V$s%i%{P$sP&R$sPP&XPPP&_&i&iPPPPP&iPP&iP\x27VP&iP&i(Q&iP(n(q(w(w)Z(wP(wP(wP(w(wP)j(w)vP(w)yPP*m*s$s*y$s+P+P+V+ZPP$sP$s$sP+a,],j,q$jP,zP,}P$jP$jP$jP-T$jP-W-Z-^-e$jP$jPP$jP-j$jP-m-s.S.j.x/O/Y/`/f/l/r/|0S0Y0`0f0lPPPPPPPPPPP0r0{P1q1t2vP3O3x4R4U4XPP4_RrQ_aOPco!R#Z$}q_OP]^co|}!O!P!R#R#Z#o$}&]qSOP]^co|}!O!P!R#R#Z#o$}&]qUOP]^co|}!O!P!R#R#Z#o$}&]QtTR#auQwWR#bxQ!VYR#cyQ#c!XS$f!s!tR%S#e!V!wdf!m!n!o#Y#p#u$Y$[$^$a$y%U%Z%_&V&W&a&f&k&p\x27U\x27^\x27k\x27s!U!wdf!m!n!o#Y#p#u$Y$[$^$a$y%U%Z%_&V&W&a&f&k&p\x27U\x27^\x27k\x27sU#y!c%`\x27YU%}$p&P&wR&v%|!V!sdf!m!n!o#Y#p#u$Y$[$^$a$y%U%Z%_&V&W&a&f&k&p\x27U\x27^\x27k\x27sR$h!uQ%s$gR&s%tq!h`ei!c!d!e!q#|#}$O$R$e$g$j%t&iQ#w!cQ%h$RQ&h%`Q\x27[&iR\x27j\x27YQ#UjQ$U!jQ$t#TR&T$vR$S!f!U!wdf!m!n!o#Y#p#u$Y$[$^$a$y%U%Z%_&V&W&a&f&k&p\x27U\x27^\x27k\x27sQ!|gR$o!}Q!WYR#dyQ#c!WR%S#dQ!ZZR#fzQ!_[R#g{T!^[{Q#r!]R%]#sQ!SXQ!i`Q#SjQ#m!QQ$P!dQ$l!yQ$r#QQ$u#UQ$x#XQ%e$OQ&S$tQ&y&OQ&|&TR\x27h&xSnP!RQ#]oQ$|#ZR&Z$}ZmPo!R#Z$}Q${#YQ&X$yR\x27P&WR$e!qQ&n%oR\x27m\x27_R!}gR#PhR$q#PS&O$p&PR\x27f&wV%|$p&P&wR#XkQ#_qR%Q#_QcOSoP!RU!kco$}R$}#ZQ%Z#pY&`%Z&f\x27U\x27^\x27sQ&f%_Q\x27U&aQ\x27^&kR\x27s\x27kQ$Y!mQ$[!nQ$^!oV%j$Y$[$^Q%t$gR&t%tQ&j%gS\x27]&j\x27lR\x27l\x27^Q&b%ZR\x27V&bQ&^%WR\x27T&^Q!QXR#l!QQ&W$yR\x27O&WQ#[nS%O#[%PR%P#]Q\x27`&nR\x27n\x27`Q$k!xR%x$kQ&P$pR&z&PQ&x&OR\x27g&xQ#WkR$w#WQ$O!dR%d$O_bOPco!R#Z$}^XOPco!R#Z$}Q!`]Q!a^Q#h|Q#i}Q#j!OQ#k!PQ$s#RQ%W#oR\x27S&]R%[#pQ!qdQ!zf[$V!m!n!o$Y$[$^Q$y#Yd%Y#p%Z%_&a&f&k\x27U\x27^\x27k\x27sQ%^#uQ%n$aS&U$y&WQ&[%UQ&}&VR\x27b&p]$X!m!n!o$Y$[$^Q!d`U!xe!q$eQ#QiQ#x!cS#{!d$OQ$Q!eQ%b#|Q%c#}Q%g$RS%r$g%tQ%w$jR\x27Z&iQ#z!cQ&h%`R\x27j\x27YR%i$RR%X#oQpPR#n!RQ!yeQ$d!qR%q$e','nodeNames':'⚠\x20Unit\x20VariableName\x20VariableName\x20QueryCallee\x20Comment\x20StyleSheet\x20RuleSet\x20UniversalSelector\x20TagSelector\x20TagName\x20NamespacedTagSelector\x20NamespaceName\x20TagName\x20NestingSelector\x20ClassSelector\x20.\x20ClassName\x20PseudoClassSelector\x20:\x20::\x20PseudoClassName\x20PseudoClassName\x20)\x20(\x20ArgList\x20ValueName\x20ParenthesizedValue\x20AtKeyword\x20#\x20;\x20]\x20[\x20BracketedValue\x20}\x20{\x20BracedValue\x20ColorLiteral\x20NumberLiteral\x20StringLiteral\x20BinaryExpression\x20BinOp\x20CallExpression\x20Callee\x20IfExpression\x20if\x20ArgList\x20IfBranch\x20KeywordQuery\x20FeatureQuery\x20FeatureName\x20BinaryQuery\x20LogicOp\x20ComparisonQuery\x20CompareOp\x20UnaryQuery\x20UnaryQueryOp\x20ParenthesizedQuery\x20SelectorQuery\x20selector\x20ParenthesizedSelector\x20CallQuery\x20ArgList\x20,\x20PseudoQuery\x20CallLiteral\x20CallTag\x20ParenthesizedContent\x20PseudoClassName\x20ArgList\x20IdSelector\x20IdName\x20AttributeSelector\x20AttributeName\x20NamespacedAttribute\x20NamespaceName\x20AttributeName\x20MatchOp\x20MatchFlag\x20ChildSelector\x20ChildOp\x20DescendantSelector\x20SiblingSelector\x20SiblingOp\x20Block\x20Declaration\x20PropertyName\x20Important\x20ImportStatement\x20import\x20Layer\x20layer\x20LayerName\x20layer\x20MediaStatement\x20media\x20CharsetStatement\x20charset\x20NamespaceStatement\x20namespace\x20NamespaceName\x20KeyframesStatement\x20keyframes\x20KeyframeName\x20KeyframeList\x20KeyframeSelector\x20KeyframeRangeName\x20SupportsStatement\x20supports\x20ScopeStatement\x20scope\x20to\x20FontFeatureStatement\x20font-feature-values\x20FontName\x20AtRule\x20Styles','maxTerm':0x9f,'nodeProps':[['isolate',-0x2,0x5,0x27,''],['openedBy',0x17,'(',0x1f,'[',0x22,'{'],['closedBy',0x18,')',0x20,']',0x23,'}']],'propSources':[KW],'skippedNodes':[0x0,0x5,0x75],'repeatNodeCount':0x11,'tokenData':'K`~R!bOX%ZX^&R^p%Zpq&Rqr)ers)vst+jtu2Xuv%Zvw3Rwx3dxy5Ryz5dz{5i{|6S|}:u}!O;W!O!P;u!P!Q<^!Q![=V![!]>Q!]!^>|!^!_?_!_!`@Z!`!a@n!a!b%Z!b!cAo!c!k%Z!k!lC|!l!u%Z!u!vC|!v!}%Z!}#OD_#O#P%Z#P#QDp#Q#R2X#R#]%Z#]#^ER#^#g%Z#g#hC|#h#o%Z#o#pIf#p#qIw#q#rJ`#r#sJq#s#y%Z#y#z&R#z$f%Z$f$g&R$g#BY%Z#BY#BZ&R#BZ$IS%Z$IS$I_&R$I_$I|%Z$I|$JO&R$JO$JT%Z$JT$JU&R$JU$KV%Z$KV$KW&R$KW&FU%Z&FU&FV&R&FV;\x27S%Z;\x27S;=`KY<%lO%Z`%^SOy%jz;\x27S%j;\x27S;=`%{<%lO%j`%oS!e`Oy%jz;\x27S%j;\x27S;=`%{<%lO%j`&OP;=`<%l%j~&Wh$Q~OX%jX^\x27r^p%jpq\x27rqy%jz#y%j#y#z\x27r#z$f%j$f$g\x27r$g#BY%j#BY#BZ\x27r#BZ$IS%j$IS$I_\x27r$I_$I|%j$I|$JO\x27r$JO$JT%j$JT$JU\x27r$JU$KV%j$KV$KW\x27r$KW&FU%j&FU&FV\x27r&FV;\x27S%j;\x27S;=`%{<%lO%j~\x27yh$Q~!e`OX%jX^\x27r^p%jpq\x27rqy%jz#y%j#y#z\x27r#z$f%j$f$g\x27r$g#BY%j#BY#BZ\x27r#BZ$IS%j$IS$I_\x27r$I_$I|%j$I|$JO\x27r$JO$JT%j$JT$JU\x27r$JU$KV%j$KV$KW\x27r$KW&FU%j&FU&FV\x27r&FV;\x27S%j;\x27S;=`%{<%lO%jj)jS$dYOy%jz;\x27S%j;\x27S;=`%{<%lO%j~)yWOY)vZr)vrs*cs#O)v#O#P*h#P;\x27S)v;\x27S;=`+d<%lO)v~*hOw~~*kRO;\x27S)v;\x27S;=`*t;=`O)v~*wXOY)vZr)vrs*cs#O)v#O#P*h#P;\x27S)v;\x27S;=`+d;=`<%l)v<%lO)v~+gP;=`<%l)vj+oYmYOy%jz!Q%j!Q![,_![!c%j!c!i,_!i#T%j#T#Z,_#Z;\x27S%j;\x27S;=`%{<%lO%jj,dY!e`Oy%jz!Q%j!Q![-S![!c%j!c!i-S!i#T%j#T#Z-S#Z;\x27S%j;\x27S;=`%{<%lO%jj-XY!e`Oy%jz!Q%j!Q![-w![!c%j!c!i-w!i#T%j#T#Z-w#Z;\x27S%j;\x27S;=`%{<%lO%jj.OYuY!e`Oy%jz!Q%j!Q![.n![!c%j!c!i.n!i#T%j#T#Z.n#Z;\x27S%j;\x27S;=`%{<%lO%jj.uYuY!e`Oy%jz!Q%j!Q![/e![!c%j!c!i/e!i#T%j#T#Z/e#Z;\x27S%j;\x27S;=`%{<%lO%jj/jY!e`Oy%jz!Q%j!Q![0Y![!c%j!c!i0Y!i#T%j#T#Z0Y#Z;\x27S%j;\x27S;=`%{<%lO%jj0aYuY!e`Oy%jz!Q%j!Q![1P![!c%j!c!i1P!i#T%j#T#Z1P#Z;\x27S%j;\x27S;=`%{<%lO%jj1UY!e`Oy%jz!Q%j!Q![1t![!c%j!c!i1t!i#T%j#T#Z1t#Z;\x27S%j;\x27S;=`%{<%lO%jj1{SuY!e`Oy%jz;\x27S%j;\x27S;=`%{<%lO%jd2[UOy%jz!_%j!_!`2n!`;\x27S%j;\x27S;=`%{<%lO%jd2uS!oS!e`Oy%jz;\x27S%j;\x27S;=`%{<%lO%jb3WS^QOy%jz;\x27S%j;\x27S;=`%{<%lO%j~3gWOY3dZw3dwx*cx#O3d#O#P4P#P;\x27S3d;\x27S;=`4{<%lO3d~4SRO;\x27S3d;\x27S;=`4];=`O3d~4`XOY3dZw3dwx*cx#O3d#O#P4P#P;\x27S3d;\x27S;=`4{;=`<%l3d<%lO3d~5OP;=`<%l3dj5WShYOy%jz;\x27S%j;\x27S;=`%{<%lO%j~5iOg~n5pUWQyWOy%jz!_%j!_!`2n!`;\x27S%j;\x27S;=`%{<%lO%jj6ZWyW!uQOy%jz!O%j!O!P6s!P!Q%j!Q![9x![;\x27S%j;\x27S;=`%{<%lO%jj6xU!e`Oy%jz!Q%j!Q![7[![;\x27S%j;\x27S;=`%{<%lO%jj7cY!e`$]YOy%jz!Q%j!Q![7[![!g%j!g!h8R!h#X%j#X#Y8R#Y;\x27S%j;\x27S;=`%{<%lO%jj8WY!e`Oy%jz{%j{|8v|}%j}!O8v!O!Q%j!Q![9_![;\x27S%j;\x27S;=`%{<%lO%jj8{U!e`Oy%jz!Q%j!Q![9_![;\x27S%j;\x27S;=`%{<%lO%jj9fU!e`$]YOy%jz!Q%j!Q![9_![;\x27S%j;\x27S;=`%{<%lO%jj:P[!e`$]YOy%jz!O%j!O!P7[!P!Q%j!Q![9x![!g%j!g!h8R!h#X%j#X#Y8R#Y;\x27S%j;\x27S;=`%{<%lO%jj:zS!aYOy%jz;\x27S%j;\x27S;=`%{<%lO%jj;]WyWOy%jz!O%j!O!P6s!P!Q%j!Q![9x![;\x27S%j;\x27S;=`%{<%lO%jj;zU`YOy%jz!Q%j!Q![7[![;\x27S%j;\x27S;=`%{<%lO%j~<cTyWOy%jz{<r{;\x27S%j;\x27S;=`%{<%lO%j~<yS!e`$R~Oy%jz;\x27S%j;\x27S;=`%{<%lO%jj=[[$]YOy%jz!O%j!O!P7[!P!Q%j!Q![9x![!g%j!g!h8R!h#X%j#X#Y8R#Y;\x27S%j;\x27S;=`%{<%lO%jj>VUcYOy%jz![%j![!]>i!];\x27S%j;\x27S;=`%{<%lO%jj>pSdY!e`Oy%jz;\x27S%j;\x27S;=`%{<%lO%jj?RSnYOy%jz;\x27S%j;\x27S;=`%{<%lO%jh?dU!WWOy%jz!_%j!_!`?v!`;\x27S%j;\x27S;=`%{<%lO%jh?}S!WW!e`Oy%jz;\x27S%j;\x27S;=`%{<%lO%jl@bS!WW!oSOy%jz;\x27S%j;\x27S;=`%{<%lO%jj@uV!rQ!WWOy%jz!_%j!_!`?v!`!aA[!a;\x27S%j;\x27S;=`%{<%lO%jbAcS!rQ!e`Oy%jz;\x27S%j;\x27S;=`%{<%lO%jjArYOy%jz}%j}!OBb!O!c%j!c!}CP!}#T%j#T#oCP#o;\x27S%j;\x27S;=`%{<%lO%jjBgW!e`Oy%jz!c%j!c!}CP!}#T%j#T#oCP#o;\x27S%j;\x27S;=`%{<%lO%jjCW[lY!e`Oy%jz}%j}!OCP!O!Q%j!Q![CP![!c%j!c!}CP!}#T%j#T#oCP#o;\x27S%j;\x27S;=`%{<%lO%jhDRS!pWOy%jz;\x27S%j;\x27S;=`%{<%lO%jjDdSpYOy%jz;\x27S%j;\x27S;=`%{<%lO%jnDuSo^Oy%jz;\x27S%j;\x27S;=`%{<%lO%jjEWU!pWOy%jz#a%j#a#bEj#b;\x27S%j;\x27S;=`%{<%lO%jbEoU!e`Oy%jz#d%j#d#eFR#e;\x27S%j;\x27S;=`%{<%lO%jbFWU!e`Oy%jz#c%j#c#dFj#d;\x27S%j;\x27S;=`%{<%lO%jbFoU!e`Oy%jz#f%j#f#gGR#g;\x27S%j;\x27S;=`%{<%lO%jbGWU!e`Oy%jz#h%j#h#iGj#i;\x27S%j;\x27S;=`%{<%lO%jbGoU!e`Oy%jz#T%j#T#UHR#U;\x27S%j;\x27S;=`%{<%lO%jbHWU!e`Oy%jz#b%j#b#cHj#c;\x27S%j;\x27S;=`%{<%lO%jbHoU!e`Oy%jz#h%j#h#iIR#i;\x27S%j;\x27S;=`%{<%lO%jbIYS$cQ!e`Oy%jz;\x27S%j;\x27S;=`%{<%lO%jjIkSsYOy%jz;\x27S%j;\x27S;=`%{<%lO%jfI|U$XUOy%jz!_%j!_!`2n!`;\x27S%j;\x27S;=`%{<%lO%jjJeSrYOy%jz;\x27S%j;\x27S;=`%{<%lO%jfJvU!uQOy%jz!_%j!_!`2n!`;\x27S%j;\x27S;=`%{<%lO%j`K]P;=`<%l%Z','tokenizers':[zW,YW,qW,WW,0x1,0x2,0x3,0x4,new Jq('m~RRYZ[z{a~~g~aO$T~~dP!P!Qg~lO$U~~',0x1c,0x8e)],'topRules':{'StyleSheet':[0x0,0x6],'Styles':[0x1,0x74]},'dynamicPrecedences':{0x54:0x1},'specialized':[{'term':0x89,'get':_0x1b91cb=>JW[_0x1b91cb]||-0x1},{'term':0x8a,'get':_0x4b3b04=>tz[_0x4b3b04]||-0x1},{'term':0x4,'get':_0x35d48b=>ez[_0x35d48b]||-0x1},{'term':0x1c,'get':_0x21340a=>iz[_0x21340a]||-0x1},{'term':0x88,'get':_0x1dce65=>sz[_0x1dce65]||-0x1}],'tokenPrec':0x8d0});let rz=null;function oz(){if(!rz&&'object'==typeof document&&document['body']){let {style:_0x472c60}=document['body'],_0x3b341b=[],_0x59b122=new Set();for(let _0x39954f in _0x472c60)'cssText'!=_0x39954f&&'cssFloat'!=_0x39954f&&'string'==typeof _0x472c60[_0x39954f]&&(/[A-Z]/['test'](_0x39954f)&&(_0x39954f=_0x39954f['replace'](/[A-Z]/g,_0x240a67=>'-'+_0x240a67['toLowerCase']())),_0x59b122['has'](_0x39954f)||(_0x3b341b['push'](_0x39954f),_0x59b122['add'](_0x39954f)));rz=_0x3b341b['sort']()['map'](_0x335b88=>({'type':'property','label':_0x335b88,'apply':_0x335b88+':\x20'}));}return rz||[];}const az=['active','after','any-link','autofill','backdrop','before','checked','cue','default','defined','disabled','empty','enabled','file-selector-button','first','first-child','first-letter','first-line','first-of-type','focus','focus-visible','focus-within','fullscreen','has','host','host-context','hover','in-range','indeterminate','invalid','is','lang','last-child','last-of-type','left','link','marker','modal','not','nth-child','nth-last-child','nth-last-of-type','nth-of-type','only-child','only-of-type','optional','out-of-range','part','placeholder','placeholder-shown','read-only','read-write','required','right','root','scope','selection','slotted','target','target-text','valid','visited','where']['map'](_0xbaaf60=>({'type':'class','label':_0xbaaf60})),cz=['above','absolute','activeborder','additive','activecaption','after-white-space','ahead','alias','all','all-scroll','alphabetic','alternate','always','antialiased','appworkspace','asterisks','attr','auto','auto-flow','avoid','avoid-column','avoid-page','avoid-region','axis-pan','background','backwards','baseline','below','bidi-override','blink','block','block-axis','bold','bolder','border','border-box','both','bottom','break','break-all','break-word','bullets','button','button-bevel','buttonface','buttonhighlight','buttonshadow','buttontext','calc','capitalize','caps-lock-indicator','caption','captiontext','caret','cell','center','checkbox','circle','cjk-decimal','clear','clip','close-quote','col-resize','collapse','color','color-burn','color-dodge','column','column-reverse','compact','condensed','contain','content','contents','content-box','context-menu','continuous','copy','counter','counters','cover','crop','cross','crosshair','currentcolor','cursive','cyclic','darken','dashed','decimal','decimal-leading-zero','default','default-button','dense','destination-atop','destination-in','destination-out','destination-over','difference','disc','discard','disclosure-closed','disclosure-open','document','dot-dash','dot-dot-dash','dotted','double','down','e-resize','ease','ease-in','ease-in-out','ease-out','element','ellipse','ellipsis','embed','end','ethiopic-abegede-gez','ethiopic-halehame-aa-er','ethiopic-halehame-gez','ew-resize','exclusion','expanded','extends','extra-condensed','extra-expanded','fantasy','fast','fill','fill-box','fixed','flat','flex','flex-end','flex-start','footnotes','forwards','from','geometricPrecision','graytext','grid','groove','hand','hard-light','help','hidden','hide','higher','highlight','highlighttext','horizontal','hsl','hsla','hue','icon','ignore','inactiveborder','inactivecaption','inactivecaptiontext','infinite','infobackground','infotext','inherit','initial','inline','inline-axis','inline-block','inline-flex','inline-grid','inline-table','inset','inside','intrinsic','invert','italic','justify','keep-all','landscape','large','larger','left','level','lighter','lighten','line-through','linear','linear-gradient','lines','list-item','listbox','listitem','local','logical','loud','lower','lower-hexadecimal','lower-latin','lower-norwegian','lowercase','ltr','luminosity','manipulation','match','matrix','matrix3d','medium','menu','menutext','message-box','middle','min-intrinsic','mix','monospace','move','multiple','multiple_mask_images','multiply','n-resize','narrower','ne-resize','nesw-resize','no-close-quote','no-drop','no-open-quote','no-repeat','none','normal','not-allowed','nowrap','ns-resize','numbers','numeric','nw-resize','nwse-resize','oblique','opacity','open-quote','optimizeLegibility','optimizeSpeed','outset','outside','outside-shape','overlay','overline','padding','padding-box','painted','page','paused','perspective','pinch-zoom','plus-darker','plus-lighter','pointer','polygon','portrait','pre','pre-line','pre-wrap','preserve-3d','progress','push-button','radial-gradient','radio','read-only','read-write','read-write-plaintext-only','rectangle','region','relative','repeat','repeating-linear-gradient','repeating-radial-gradient','repeat-x','repeat-y','reset','reverse','rgb','rgba','ridge','right','rotate','rotate3d','rotateX','rotateY','rotateZ','round','row','row-resize','row-reverse','rtl','run-in','running','s-resize','sans-serif','saturation','scale','scale3d','scaleX','scaleY','scaleZ','screen','scroll','scrollbar','scroll-position','se-resize','self-start','self-end','semi-condensed','semi-expanded','separate','serif','show','single','skew','skewX','skewY','skip-white-space','slide','slider-horizontal','slider-vertical','sliderthumb-horizontal','sliderthumb-vertical','slow','small','small-caps','small-caption','smaller','soft-light','solid','source-atop','source-in','source-out','source-over','space','space-around','space-between','space-evenly','spell-out','square','start','static','status-bar','stretch','stroke','stroke-box','sub','subpixel-antialiased','svg_masks','super','sw-resize','symbolic','symbols','system-ui','table','table-caption','table-cell','table-column','table-column-group','table-footer-group','table-header-group','table-row','table-row-group','text','text-bottom','text-top','textarea','textfield','thick','thin','threeddarkshadow','threedface','threedhighlight','threedlightshadow','threedshadow','to','top','transform','translate','translate3d','translateX','translateY','translateZ','transparent','ultra-condensed','ultra-expanded','underline','unidirectional-pan','unset','up','upper-latin','uppercase','url','var','vertical','vertical-text','view-box','visible','visibleFill','visiblePainted','visibleStroke','visual','w-resize','wait','wave','wider','window','windowframe','windowtext','words','wrap','wrap-reverse','x-large','x-small','xor','xx-large','xx-small']['map'](_0x478462=>({'type':'keyword','label':_0x478462}))['concat'](['aliceblue','antiquewhite','aqua','aquamarine','azure','beige','bisque','black','blanchedalmond','blue','blueviolet','brown','burlywood','cadetblue','chartreuse','chocolate','coral','cornflowerblue','cornsilk','crimson','cyan','darkblue','darkcyan','darkgoldenrod','darkgray','darkgreen','darkkhaki','darkmagenta','darkolivegreen','darkorange','darkorchid','darkred','darksalmon','darkseagreen','darkslateblue','darkslategray','darkturquoise','darkviolet','deeppink','deepskyblue','dimgray','dodgerblue','firebrick','floralwhite','forestgreen','fuchsia','gainsboro','ghostwhite','gold','goldenrod','gray','grey','green','greenyellow','honeydew','hotpink','indianred','indigo','ivory','khaki','lavender','lavenderblush','lawngreen','lemonchiffon','lightblue','lightcoral','lightcyan','lightgoldenrodyellow','lightgray','lightgreen','lightpink','lightsalmon','lightseagreen','lightskyblue','lightslategray','lightsteelblue','lightyellow','lime','limegreen','linen','magenta','maroon','mediumaquamarine','mediumblue','mediumorchid','mediumpurple','mediumseagreen','mediumslateblue','mediumspringgreen','mediumturquoise','mediumvioletred','midnightblue','mintcream','mistyrose','moccasin','navajowhite','navy','oldlace','olive','olivedrab','orange','orangered','orchid','palegoldenrod','palegreen','paleturquoise','palevioletred','papayawhip','peachpuff','peru','pink','plum','powderblue','purple','rebeccapurple','red','rosybrown','royalblue','saddlebrown','salmon','sandybrown','seagreen','seashell','sienna','silver','skyblue','slateblue','slategray','snow','springgreen','steelblue','tan','teal','thistle','tomato','turquoise','violet','wheat','white','whitesmoke','yellow','yellowgreen']['map'](_0x28a2fc=>({'type':'constant','label':_0x28a2fc}))),lz=['a','abbr','address','article','aside','b','bdi','bdo','blockquote','body','br','button','canvas','caption','cite','code','col','colgroup','dd','del','details','dfn','dialog','div','dl','dt','em','figcaption','figure','footer','form','header','hgroup','h1','h2','h3','h4','h5','h6','hr','html','i','iframe','img','input','ins','kbd','label','legend','li','main','meter','nav','ol','output','p','pre','ruby','section','select','small','source','span','strong','sub','summary','sup','table','tbody','td','template','textarea','tfoot','th','thead','tr','u','ul']['map'](_0x47b785=>({'type':'type','label':_0x47b785})),hz=['@charset','@color-profile','@container','@counter-style','@font-face','@font-feature-values','@font-palette-values','@import','@keyframes','@layer','@media','@namespace','@page','@position-try','@property','@scope','@starting-style','@supports','@view-transition']['map'](_0xa748c2=>({'type':'keyword','label':_0xa748c2})),uz=/^(\w[\w-]*|-\w[\w-]*|)$/,dz=/^-(-[\w-]*)?$/,fz=new gH(),mz=['Declaration'];function pz(_0x430a3d){for(let _0x2132ed=_0x430a3d;;){if(_0x2132ed['type']['isTop'])return _0x2132ed;if(!(_0x2132ed=_0x2132ed['parent']))return _0x430a3d;}}function gz(_0x1baf74,_0x27773b,_0x21806e){if(_0x27773b['to']-_0x27773b['from']>0x1000){let _0x47b661=fz['get'](_0x27773b);if(_0x47b661)return _0x47b661;let _0x2bb3d7=[],_0x5b9c22=new Set(),_0x49d882=_0x27773b['cursor'](zB['IncludeAnonymous']);if(_0x49d882['firstChild']())do{for(let _0x2e5715 of gz(_0x1baf74,_0x49d882['node'],_0x21806e))_0x5b9c22['has'](_0x2e5715['label'])||(_0x5b9c22['add'](_0x2e5715['label']),_0x2bb3d7['push'](_0x2e5715));}while(_0x49d882['nextSibling']());return fz['set'](_0x27773b,_0x2bb3d7),_0x2bb3d7;}{let _0x321da6=[],_0x2687a4=new Set();return _0x27773b['cursor']()['iterate'](_0x50d758=>{var _0x1ea492;if(_0x21806e(_0x50d758)&&_0x50d758['matchContext'](mz)&&':'==(null===(_0x1ea492=_0x50d758['node']['nextSibling'])||void 0x0===_0x1ea492?void 0x0:_0x1ea492['name'])){let _0x846ef6=_0x1baf74['sliceString'](_0x50d758['from'],_0x50d758['to']);_0x2687a4['has'](_0x846ef6)||(_0x2687a4['add'](_0x846ef6),_0x321da6['push']({'label':_0x846ef6,'type':'variable'}));}}),_0x321da6;}}const Oz=_0x3ab5e9=>_0x111ef2=>{let {state:_0x3d5208,pos:_0x42b00e}=_0x111ef2,_0xac27ad=dF(_0x3d5208)['resolveInner'](_0x42b00e,-0x1),_0x33c18e=_0xac27ad['type']['isError']&&_0xac27ad['from']==_0xac27ad['to']-0x1&&'-'==_0x3d5208['doc']['sliceString'](_0xac27ad['from'],_0xac27ad['to']);if('PropertyName'==_0xac27ad['name']||(_0x33c18e||'TagName'==_0xac27ad['name'])&&/^(Block|Styles)$/['test'](_0xac27ad['resolve'](_0xac27ad['to'])['name']))return{'from':_0xac27ad['from'],'options':oz(),'validFor':uz};if('ValueName'==_0xac27ad['name'])return{'from':_0xac27ad['from'],'options':cz,'validFor':uz};if('PseudoClassName'==_0xac27ad['name'])return{'from':_0xac27ad['from'],'options':az,'validFor':uz};if(_0x3ab5e9(_0xac27ad)||(_0x111ef2['explicit']||_0x33c18e)&&function(_0x154694,_0xfb52e2){var _0x299f95;if(('('==_0x154694['name']||_0x154694['type']['isError'])&&(_0x154694=_0x154694['parent']||_0x154694),'ArgList'!=_0x154694['name'])return!0x1;let _0x284585=null===(_0x299f95=_0x154694['parent'])||void 0x0===_0x299f95?void 0x0:_0x299f95['firstChild'];return'Callee'==(null==_0x284585?void 0x0:_0x284585['name'])&&'var'==_0xfb52e2['sliceString'](_0x284585['from'],_0x284585['to']);}(_0xac27ad,_0x3d5208['doc']))return{'from':_0x3ab5e9(_0xac27ad)||_0x33c18e?_0xac27ad['from']:_0x42b00e,'options':gz(_0x3d5208['doc'],pz(_0xac27ad),_0x3ab5e9),'validFor':dz};if('TagName'==_0xac27ad['name']){for(let {parent:_0x36f0be}=_0xac27ad;_0x36f0be;_0x36f0be=_0x36f0be['parent'])if('Block'==_0x36f0be['name'])return{'from':_0xac27ad['from'],'options':oz(),'validFor':uz};return{'from':_0xac27ad['from'],'options':lz,'validFor':uz};}if('AtKeyword'==_0xac27ad['name'])return{'from':_0xac27ad['from'],'options':hz,'validFor':uz};if(!_0x111ef2['explicit'])return null;let _0x2521fe=_0xac27ad['resolve'](_0x42b00e),_0x31c176=_0x2521fe['childBefore'](_0x42b00e);return _0x31c176&&':'==_0x31c176['name']&&'PseudoClassSelector'==_0x2521fe['name']?{'from':_0x42b00e,'options':az,'validFor':uz}:_0x31c176&&':'==_0x31c176['name']&&'Declaration'==_0x2521fe['name']||'ArgList'==_0x2521fe['name']?{'from':_0x42b00e,'options':cz,'validFor':uz}:'Block'==_0x2521fe['name']||'Styles'==_0x2521fe['name']?{'from':_0x42b00e,'options':oz(),'validFor':uz}:null;},wz=Oz(_0x443ae4=>'VariableName'==_0x443ae4['name']),bz=uF['define']({'name':'css','parser':nz['configure']({'props':[CF['add']({'Declaration':QF()}),VF['add']({'Block\x20KeyframeList':BF})]}),'languageData':{'commentTokens':{'block':{'open':'/*','close':'*/'}},'indentOnInput':/^\s*\}$/,'wordChars':'-'}}),yz=[0x9,0xa,0xb,0xc,0xd,0x20,0x85,0xa0,0x1680,0x2000,0x2001,0x2002,0x2003,0x2004,0x2005,0x2006,0x2007,0x2008,0x2009,0x200a,0x2028,0x2029,0x202f,0x205f,0x3000],vz=new fW({'start':!0x1,'shift':(_0x39fd91,_0x2887fe)=>0x5==_0x2887fe||0x6==_0x2887fe||0x140==_0x2887fe?_0x39fd91:0x141==_0x2887fe,'strict':!0x1}),_z=new tW((_0x131bd2,_0x1dc21b)=>{let {next:_0x2bc6d0}=_0x131bd2;(0x7d==_0x2bc6d0||-0x1==_0x2bc6d0||_0x1dc21b['context'])&&_0x131bd2['acceptToken'](0x13e);},{'contextual':!0x0,'fallback':!0x0}),Ez=new tW((_0x509c8f,_0x22d84a)=>{let _0x529565,{next:_0x2300c6}=_0x509c8f;yz['indexOf'](_0x2300c6)>-0x1||(0x2f!=_0x2300c6||0x2f!=(_0x529565=_0x509c8f['peek'](0x1))&&0x2a!=_0x529565)&&(0x7d==_0x2300c6||0x3b==_0x2300c6||-0x1==_0x2300c6||_0x22d84a['context']||_0x509c8f['acceptToken'](0x13c));},{'contextual':!0x0}),Tz=new tW((_0x2fb4bf,_0x49b237)=>{0x5b!=_0x2fb4bf['next']||_0x49b237['context']||_0x2fb4bf['acceptToken'](0x13d);},{'contextual':!0x0}),Az=new tW((_0x2a96fa,_0x11fbdc)=>{let {next:_0x1eaca8}=_0x2a96fa;if(0x2b==_0x1eaca8||0x2d==_0x1eaca8){if(_0x2a96fa['advance'](),_0x1eaca8==_0x2a96fa['next']){_0x2a96fa['advance']();let _0x368233=!_0x11fbdc['context']&&_0x11fbdc['canShift'](0x1);_0x2a96fa['acceptToken'](_0x368233?0x1:0x2);}}else 0x3f==_0x1eaca8&&0x2e==_0x2a96fa['peek'](0x1)&&(_0x2a96fa['advance'](),_0x2a96fa['advance'](),(_0x2a96fa['next']<0x30||_0x2a96fa['next']>0x39)&&_0x2a96fa['acceptToken'](0x3));},{'contextual':!0x0});function Sz(_0x191fd6,_0x73bbeb){return _0x191fd6>=0x41&&_0x191fd6<=0x5a||_0x191fd6>=0x61&&_0x191fd6<=0x7a||0x5f==_0x191fd6||_0x191fd6>=0xc0||!_0x73bbeb&&_0x191fd6>=0x30&&_0x191fd6<=0x39;}const Iz=new tW((_0x3568d4,_0x5653de)=>{if(0x3c!=_0x3568d4['next']||!_0x5653de['dialectEnabled'](0x0))return;if(_0x3568d4['advance'](),0x2f==_0x3568d4['next'])return;let _0x2a3dc5=0x0;for(;yz['indexOf'](_0x3568d4['next'])>-0x1;)_0x3568d4['advance'](),_0x2a3dc5++;if(Sz(_0x3568d4['next'],!0x0)){for(_0x3568d4['advance'](),_0x2a3dc5++;Sz(_0x3568d4['next'],!0x1);)_0x3568d4['advance'](),_0x2a3dc5++;for(;yz['indexOf'](_0x3568d4['next'])>-0x1;)_0x3568d4['advance'](),_0x2a3dc5++;if(0x2c==_0x3568d4['next'])return;for(let _0x32e1ae=0x0;;_0x32e1ae++){if(0x7==_0x32e1ae){if(!Sz(_0x3568d4['next'],!0x0))return;break;}if(_0x3568d4['next']!='extends'['charCodeAt'](_0x32e1ae))break;_0x3568d4['advance'](),_0x2a3dc5++;}}_0x3568d4['acceptToken'](0x4,-_0x2a3dc5);}),kz=QH({'get\x20set\x20async\x20static':nF['modifier'],'for\x20while\x20do\x20if\x20else\x20switch\x20try\x20catch\x20finally\x20return\x20throw\x20break\x20continue\x20default\x20case\x20defer':nF['controlKeyword'],'in\x20of\x20await\x20yield\x20void\x20typeof\x20delete\x20instanceof\x20as\x20satisfies':nF['operatorKeyword'],'let\x20var\x20const\x20using\x20function\x20class\x20extends':nF['definitionKeyword'],'import\x20export\x20from':nF['moduleKeyword'],'with\x20debugger\x20new':nF['keyword'],'TemplateString':nF['special'](nF['string']),'super':nF['atom'],'BooleanLiteral':nF['bool'],'this':nF['self'],'null':nF['null'],'Star':nF['modifier'],'VariableName':nF['variableName'],'CallExpression/VariableName\x20TaggedTemplateExpression/VariableName':nF['function'](nF['variableName']),'VariableDefinition':nF['definition'](nF['variableName']),'Label':nF['labelName'],'PropertyName':nF['propertyName'],'PrivatePropertyName':nF['special'](nF['propertyName']),'CallExpression/MemberExpression/PropertyName':nF['function'](nF['propertyName']),'FunctionDeclaration/VariableDefinition':nF['function'](nF['definition'](nF['variableName'])),'ClassDeclaration/VariableDefinition':nF['definition'](nF['className']),'NewExpression/VariableName':nF['className'],'PropertyDefinition':nF['definition'](nF['propertyName']),'PrivatePropertyDefinition':nF['definition'](nF['special'](nF['propertyName'])),'UpdateOp':nF['updateOperator'],'LineComment\x20Hashbang':nF['lineComment'],'BlockComment':nF['blockComment'],'Number':nF['number'],'String':nF['string'],'Escape':nF['escape'],'ArithOp':nF['arithmeticOperator'],'LogicOp':nF['logicOperator'],'BitOp':nF['bitwiseOperator'],'CompareOp':nF['compareOperator'],'RegExp':nF['regexp'],'Equals':nF['definitionOperator'],'Arrow':nF['function'](nF['punctuation']),':\x20Spread':nF['punctuation'],'(\x20)':nF['paren'],'[\x20]':nF['squareBracket'],'{\x20}':nF['brace'],'InterpolationStart\x20InterpolationEnd':nF['special'](nF['brace']),'.':nF['derefOperator'],',\x20;':nF['separator'],'@':nF['meta'],'TypeName':nF['typeName'],'TypeDefinition':nF['definition'](nF['typeName']),'type\x20enum\x20interface\x20implements\x20namespace\x20module\x20declare':nF['definitionKeyword'],'abstract\x20global\x20Privacy\x20readonly\x20override':nF['modifier'],'is\x20keyof\x20unique\x20infer\x20asserts':nF['operatorKeyword'],'JSXAttributeValue':nF['attributeValue'],'JSXText':nF['content'],'JSXStartTag\x20JSXStartCloseTag\x20JSXSelfCloseEndTag\x20JSXEndTag':nF['angleBracket'],'JSXIdentifier\x20JSXNameSpacedName':nF['tagName'],'JSXAttribute/JSXIdentifier\x20JSXAttribute/JSXNameSpacedName':nF['attributeName'],'JSXBuiltin/JSXIdentifier':nF['standard'](nF['tagName'])}),xz={'__proto__':null,'export':0x14,'as':0x19,'from':0x21,'default':0x24,'async':0x29,'function':0x2a,'in':0x34,'out':0x37,'const':0x38,'extends':0x3c,'this':0x40,'true':0x48,'false':0x48,'null':0x54,'void':0x58,'typeof':0x5c,'super':0x6c,'new':0x8e,'delete':0x9a,'yield':0xa3,'await':0xa7,'class':0xac,'public':0xeb,'private':0xeb,'protected':0xeb,'readonly':0xed,'instanceof':0x100,'satisfies':0x103,'import':0x124,'keyof':0x15d,'unique':0x161,'infer':0x167,'asserts':0x18b,'is':0x18d,'abstract':0x1a1,'implements':0x1a3,'type':0x1a5,'let':0x1a8,'var':0x1aa,'using':0x1ad,'interface':0x1b3,'enum':0x1b7,'namespace':0x1bd,'module':0x1bf,'declare':0x1c3,'global':0x1c7,'defer':0x1d7,'for':0x1dc,'of':0x1e5,'while':0x1e8,'with':0x1ec,'do':0x1f0,'if':0x1f4,'else':0x1f6,'switch':0x1fa,'case':0x200,'try':0x206,'catch':0x20a,'finally':0x20e,'return':0x212,'throw':0x216,'break':0x21a,'continue':0x21e,'debugger':0x222},Cz={'__proto__':null,'async':0x81,'get':0x83,'set':0x85,'declare':0xc3,'public':0xc5,'private':0xc5,'protected':0xc5,'static':0xc7,'abstract':0xc9,'override':0xcb,'readonly':0xd1,'accessor':0xd3,'new':0x191},Rz={'__proto__':null,'<':0xc1},Pz=mW['deserialize']({'version':0xe,'states':'$F|Q%TQlOOO%[QlOOO\x27_QpOOP(lO`OOO*zQ!0MxO\x27#CiO+RO#tO\x27#CjO+aO&jO\x27#CjO+oO#@ItO\x27#DaO.QQlO\x27#DgO.bQlO\x27#DrO%[QlO\x27#DzO0fQlO\x27#ESOOQ!0Lf\x27#E[\x27#E[O1PQ`O\x27#EXOOQO\x27#Ep\x27#EpOOQO\x27#Il\x27#IlO1XQ`O\x27#GsO1dQ`O\x27#EoO1iQ`O\x27#EoO3hQ!0MxO\x27#JrO6[Q!0MxO\x27#JsO6uQ`O\x27#F]O6zQ,UO\x27#FtOOQ!0Lf\x27#Ff\x27#FfO7VO7dO\x27#FfO9XQMhO\x27#F|O9`Q`O\x27#F{OOQ!0Lf\x27#Js\x27#JsOOQ!0Lb\x27#Jr\x27#JrO9eQ`O\x27#GwOOQ[\x27#K_\x27#K_O9pQ`O\x27#IYO9uQ!0LrO\x27#IZOOQ[\x27#J`\x27#J`OOQ[\x27#I_\x27#I_Q`QlOOQ`QlOOO9}Q!L^O\x27#DvO:UQlO\x27#EOO:]QlO\x27#EQO9kQ`O\x27#GsO:dQMhO\x27#CoO:rQ`O\x27#EnO:}Q`O\x27#EyO;hQMhO\x27#FeO;xQ`O\x27#GsOOQO\x27#K`\x27#K`O;}Q`O\x27#K`O<]Q`O\x27#G{O<]Q`O\x27#G|O<]Q`O\x27#HOO9kQ`O\x27#HRO=SQ`O\x27#HUO>kQ`O\x27#CeO>{Q`O\x27#HcO?TQ`O\x27#HiO?TQ`O\x27#HkO`QlO\x27#HmO?TQ`O\x27#HoO?TQ`O\x27#HrO?YQ`O\x27#HxO?_Q!0LsO\x27#IOO%[QlO\x27#IQO?jQ!0LsO\x27#ISO?uQ!0LsO\x27#IUO9uQ!0LrO\x27#IWO@QQ!0MxO\x27#CiOASQpO\x27#DlQOQ`OOO%[QlO\x27#EQOAjQ`O\x27#ETO:dQMhO\x27#EnOAuQ`O\x27#EnOBQQ!bO\x27#FeOOQ[\x27#Cg\x27#CgOOQ!0Lb\x27#Dq\x27#DqOOQ!0Lb\x27#Jv\x27#JvO%[QlO\x27#JvOOQO\x27#Jy\x27#JyOOQO\x27#Ih\x27#IhOCQQpO\x27#EgOOQ!0Lb\x27#Ef\x27#EfOOQ!0Lb\x27#J}\x27#J}OC|Q!0MSO\x27#EgODWQpO\x27#EWOOQO\x27#Jx\x27#JxODlQpO\x27#JyOEyQpO\x27#EWODWQpO\x27#EgPFWO&2DjO\x27#CbPOOO)CD})CD}OOOO\x27#I`\x27#I`OFcO#tO,59UOOQ!0Lh,59U,59UOOOO\x27#Ia\x27#IaOFqO&jO,59UOGPQ!L^O\x27#DcOOOO\x27#Ic\x27#IcOGWO#@ItO,59{OOQ!0Lf,59{,59{OGfQlO\x27#IdOGyQ`O\x27#JtOIxQ!fO\x27#JtO+}QlO\x27#JtOJPQ`O,5:ROJgQ`O\x27#EpOJtQ`O\x27#KTOKPQ`O\x27#KSOKPQ`O\x27#KSOKXQ`O,5;^OK^Q`O\x27#KROOQ!0Ln,5:^,5:^OKeQlO,5:^OMcQ!0MxO,5:fONSQ`O,5:nONmQ!0LrO\x27#KQONtQ`O\x27#KPO9eQ`O\x27#KPO!\x20YQ`O\x27#KPO!\x20bQ`O,5;]O!\x20gQ`O\x27#KPO!#lQ!fO\x27#JsOOQ!0Lh\x27#Ci\x27#CiO%[QlO\x27#ESO!$[Q!fO,5:sOOQS\x27#Jz\x27#JzOOQO-E<j-E<jO9kQ`O,5=_O!$rQ`O,5=_O!$wQlO,5;ZO!&zQMhO\x27#EkO!(eQ`O,5;ZO!(jQlO\x27#DyO!(tQpO,5;dO!(|QpO,5;dO%[QlO,5;dOOQ[\x27#FT\x27#FTOOQ[\x27#FV\x27#FVO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eOOQ[\x27#FZ\x27#FZO!)[QlO,5;tOOQ!0Lf,5;y,5;yOOQ!0Lf,5;z,5;zOOQ!0Lf,5;|,5;|O%[QlO\x27#IpO!+_Q!0LrO,5<iO%[QlO,5;eO!&zQMhO,5;eO!+|QMhO,5;eO!-nQMhO\x27#E^O%[QlO,5;wOOQ!0Lf,5;{,5;{O!-uQ,UO\x27#FjO!.rQ,UO\x27#KXO!.^Q,UO\x27#KXO!.yQ,UO\x27#KXOOQO\x27#KX\x27#KXO!/_Q,UO,5<SOOOW,5<`,5<`O!/pQlO\x27#FvOOOW\x27#Io\x27#IoO7VO7dO,5<QO!/wQ,UO\x27#FxOOQ!0Lf,5<Q,5<QO!0hQ$IUO\x27#CyOOQ!0Lh\x27#C}\x27#C}O!0{O#@ItO\x27#DRO!1iQMjO,5<eO!1pQ`O,5<hO!3YQ(CWO\x27#GXO!3jQ`O\x27#GYO!3oQ`O\x27#GYO!5_Q(CWO\x27#G^O!6dQpO\x27#GbOOQO\x27#Gn\x27#GnO!,TQMhO\x27#GmOOQO\x27#Gp\x27#GpO!,TQMhO\x27#GoO!7VQ$IUO\x27#JlOOQ!0Lh\x27#Jl\x27#JlO!7aQ`O\x27#JkO!7oQ`O\x27#JjO!7wQ`O\x27#CuOOQ!0Lh\x27#C{\x27#C{O!8YQ`O\x27#C}OOQ!0Lh\x27#DV\x27#DVOOQ!0Lh\x27#DX\x27#DXO!8_Q`O,5<eO1SQ`O\x27#DZO!,TQMhO\x27#GPO!,TQMhO\x27#GRO!8gQ`O\x27#GTO!8lQ`O\x27#GUO!3oQ`O\x27#G[O!,TQMhO\x27#GaO<]Q`O\x27#JkO!8qQ`O\x27#EqO!9`Q`O,5<gOOQ!0Lb\x27#Cr\x27#CrO!9hQ`O\x27#ErO!:bQpO\x27#EsOOQ!0Lb\x27#KR\x27#KRO!:iQ!0LrO\x27#KaO9uQ!0LrO,5=cO`QlO,5>tOOQ[\x27#Jh\x27#JhOOQ[,5>u,5>uOOQ[-E<]-E<]O!<hQ!0MxO,5:bO!:]QpO,5:`O!?RQ!0MxO,5:jO%[QlO,5:jO!AiQ!0MxO,5:lOOQO,5@z,5@zO!BYQMhO,5=_O!BhQ!0LrO\x27#JiO9`Q`O\x27#JiO!ByQ!0LrO,59ZO!CUQpO,59ZO!C^QMhO,59ZO:dQMhO,59ZO!CiQ`O,5;ZO!CqQ`O\x27#HbO!DVQ`O\x27#KdO%[QlO,5;}O!:]QpO,5<PO!D_Q`O,5=zO!DdQ`O,5=zO!DiQ`O,5=zO!DwQ`O,5=zO9uQ!0LrO,5=zO<]Q`O,5=jOOQO\x27#Cy\x27#CyO!EOQpO,5=gO!EWQMhO,5=hO!EcQ`O,5=jO!EhQ!bO,5=mO!EpQ`O\x27#K`O?YQ`O\x27#HWO9kQ`O\x27#HYO!EuQ`O\x27#HYO:dQMhO\x27#H[O!EzQ`O\x27#H[OOQ[,5=p,5=pO!FPQ`O\x27#H]O!FbQ`O\x27#CoO!FgQ`O,59PO!FqQ`O,59PO!HvQlO,59POOQ[,59P,59PO!IWQ!0LrO,59PO%[QlO,59PO!KcQlO\x27#HeOOQ[\x27#Hf\x27#HfOOQ[\x27#Hg\x27#HgO`QlO,5=}O!KyQ`O,5=}O`QlO,5>TO`QlO,5>VO!LOQ`O,5>XO`QlO,5>ZO!LTQ`O,5>^O!LYQlO,5>dOOQ[,5>j,5>jO%[QlO,5>jO9uQ!0LrO,5>lOOQ[,5>n,5>nO#!dQ`O,5>nOOQ[,5>p,5>pO#!dQ`O,5>pOOQ[,5>r,5>rO##QQpO\x27#D_O%[QlO\x27#JvO##sQpO\x27#JvO##}QpO\x27#DmO#$`QpO\x27#DmO#&qQlO\x27#DmO#&xQ`O\x27#JuO#\x27QQ`O,5:WO#\x27VQ`O\x27#EtO#\x27eQ`O\x27#KUO#\x27mQ`O,5;_O#\x27rQpO\x27#DmO#(PQpO\x27#EVOOQ!0Lf,5:o,5:oO%[QlO,5:oO#(WQ`O,5:oO?YQ`O,5;YO!CUQpO,5;YO!C^QMhO,5;YO:dQMhO,5;YO#(`Q`O,5@bO#(eQ07dO,5:sOOQO-E<f-E<fO#)kQ!0MSO,5;RODWQpO,5:rO#)uQpO,5:rODWQpO,5;RO!ByQ!0LrO,5:rOOQ!0Lb\x27#Ej\x27#EjOOQO,5;R,5;RO%[QlO,5;RO#*SQ!0LrO,5;RO#*_Q!0LrO,5;RO!CUQpO,5:rOOQO,5;X,5;XO#*mQ!0LrO,5;RPOOO\x27#I^\x27#I^P#+RO&2DjO,58|POOO,58|,58|OOOO-E<^-E<^OOQ!0Lh1G.p1G.pOOOO-E<_-E<_OOOO,59},59}O#+^Q!bO,59}OOOO-E<a-E<aOOQ!0Lf1G/g1G/gO#+cQ!fO,5?OO+}QlO,5?OOOQO,5?U,5?UO#+mQlO\x27#IdOOQO-E<b-E<bO#+zQ`O,5@`O#,SQ!fO,5@`O#,ZQ`O,5@nOOQ!0Lf1G/m1G/mO%[QlO,5@oO#,cQ`O\x27#IjOOQO-E<h-E<hO#,ZQ`O,5@nOOQ!0Lb1G0x1G0xOOQ!0Ln1G/x1G/xOOQ!0Ln1G0Y1G0YO%[QlO,5@lO#,wQ!0LrO,5@lO#-YQ!0LrO,5@lO#-aQ`O,5@kO9eQ`O,5@kO#-iQ`O,5@kO#-wQ`O\x27#ImO#-aQ`O,5@kOOQ!0Lb1G0w1G0wO!(tQpO,5:uO!)PQpO,5:uOOQS,5:w,5:wO#.iQdO,5:wO#.qQMhO1G2yO9kQ`O1G2yOOQ!0Lf1G0u1G0uO#/PQ!0MxO1G0uO#0UQ!0MvO,5;VOOQ!0Lh\x27#GW\x27#GWO#0rQ!0MzO\x27#JlO!$wQlO1G0uO#2}Q!fO\x27#JwO%[QlO\x27#JwO#3XQ`O,5:eOOQ!0Lh\x27#D_\x27#D_OOQ!0Lf1G1O1G1OO%[QlO1G1OOOQ!0Lf1G1f1G1fO#3^Q`O1G1OO#5rQ!0MxO1G1PO#5yQ!0MxO1G1PO#8aQ!0MxO1G1PO#8hQ!0MxO1G1PO#;OQ!0MxO1G1PO#=fQ!0MxO1G1PO#=mQ!0MxO1G1PO#=tQ!0MxO1G1PO#@[Q!0MxO1G1PO#@cQ!0MxO1G1PO#BpQ?MtO\x27#CiO#DkQ?MtO1G1`O#DrQ?MtO\x27#JsO#EVQ!0MxO,5?[OOQ!0Lb-E<n-E<nO#GdQ!0MxO1G1PO#HaQ!0MzO1G1POOQ!0Lf1G1P1G1PO#IdQMjO\x27#J|O#InQ`O,5:xO#IsQ!0MxO1G1cO#JgQ,UO,5<WO#JoQ,UO,5<XO#JwQ,UO\x27#FoO#K`Q`O\x27#FnOOQO\x27#KY\x27#KYOOQO\x27#In\x27#InO#KeQ,UO1G1nOOQ!0Lf1G1n1G1nOOOW1G1y1G1yO#KvQ?MtO\x27#JrO#LQQ`O,5<bO!)[QlO,5<bOOOW-E<m-E<mOOQ!0Lf1G1l1G1lO#LVQpO\x27#KXOOQ!0Lf,5<d,5<dO#L_QpO,5<dO#LdQMhO\x27#DTOOOO\x27#Ib\x27#IbO#LkO#@ItO,59mOOQ!0Lh,59m,59mO%[QlO1G2PO!8lQ`O\x27#IrO#LvQ`O,5<zOOQ!0Lh,5<w,5<wO!,TQMhO\x27#IuO#MdQMjO,5=XO!,TQMhO\x27#IwO#NVQMjO,5=ZO!&zQMhO,5=]OOQO1G2S1G2SO#NaQ!dO\x27#CrO#NtQ(CWO\x27#ErO$\x20|QpO\x27#GbO$!dQ!dO,5<sO$!kQ`O\x27#K[O9eQ`O\x27#K[O$!yQ`O,5<uO$#aQ!dO\x27#C{O!,TQMhO,5<tO$#kQ`O\x27#GZO$$PQ`O,5<tO$$UQ!dO\x27#GWO$$cQ!dO\x27#K]O$$mQ`O\x27#K]O!&zQMhO\x27#K]O$$rQ`O,5<xO$$wQlO\x27#JvO$%RQpO\x27#GcO#$`QpO\x27#GcO$%dQ`O\x27#GgO!3oQ`O\x27#GkO$%iQ!0LrO\x27#ItO$%tQpO,5<|OOQ!0Lp,5<|,5<|O$%{QpO\x27#GcO$&YQpO\x27#GdO$&kQpO\x27#GdO$&pQMjO,5=XO$\x27QQMjO,5=ZOOQ!0Lh,5=^,5=^O!,TQMhO,5@VO!,TQMhO,5@VO$\x27bQ`O\x27#IyO$\x27vQ`O,5@UO$(OQ`O,59aOOQ!0Lh,59i,59iO$(TQ`O,5@VO$)TQ$IYO,59uOOQ!0Lh\x27#Jp\x27#JpO$)vQMjO,5<kO$*iQMjO,5<mO@zQ`O,5<oOOQ!0Lh,5<p,5<pO$*sQ`O,5<vO$*xQMjO,5<{O$+YQ`O\x27#KPO!$wQlO1G2RO$+_Q`O1G2RO9eQ`O\x27#KSO9eQ`O\x27#EtO%[QlO\x27#EtO9eQ`O\x27#I{O$+dQ!0LrO,5@{OOQ[1G2}1G2}OOQ[1G4`1G4`OOQ!0Lf1G/|1G/|OOQ!0Lf1G/z1G/zO$-fQ!0MxO1G0UOOQ[1G2y1G2yO!&zQMhO1G2yO%[QlO1G2yO#.tQ`O1G2yO$/jQMhO\x27#EkOOQ!0Lb,5@T,5@TO$/wQ!0LrO,5@TOOQ[1G.u1G.uO!ByQ!0LrO1G.uO!CUQpO1G.uO!C^QMhO1G.uO$0YQ`O1G0uO$0_Q`O\x27#CiO$0jQ`O\x27#KeO$0rQ`O,5=|O$0wQ`O\x27#KeO$0|Q`O\x27#KeO$1[Q`O\x27#JRO$1jQ`O,5AOO$1rQ!fO1G1iOOQ!0Lf1G1k1G1kO9kQ`O1G3fO@zQ`O1G3fO$1yQ`O1G3fO$2OQ`O1G3fO!DiQ`O1G3fO9uQ!0LrO1G3fOOQ[1G3f1G3fO!EcQ`O1G3UO!&zQMhO1G3RO$2TQ`O1G3ROOQ[1G3S1G3SO!&zQMhO1G3SO$2YQ`O1G3SO$2bQpO\x27#HQOOQ[1G3U1G3UO!6_QpO\x27#I}O!EhQ!bO1G3XOOQ[1G3X1G3XOOQ[,5=r,5=rO$2jQMhO,5=tO9kQ`O,5=tO$%dQ`O,5=vO9`Q`O,5=vO!CUQpO,5=vO!C^QMhO,5=vO:dQMhO,5=vO$2xQ`O\x27#KcO$3TQ`O,5=wOOQ[1G.k1G.kO$3YQ!0LrO1G.kO@zQ`O1G.kO$3eQ`O1G.kO9uQ!0LrO1G.kO$5mQ!fO,5AQO$5zQ`O,5AQO9eQ`O,5AQO$6VQlO,5>PO$6^Q`O,5>POOQ[1G3i1G3iO`QlO1G3iOOQ[1G3o1G3oOOQ[1G3q1G3qO?TQ`O1G3sO$6cQlO1G3uO$:gQlO\x27#HtOOQ[1G3x1G3xO$:tQ`O\x27#HzO?YQ`O\x27#H|OOQ[1G4O1G4OO$:|QlO1G4OO9uQ!0LrO1G4UOOQ[1G4W1G4WOOQ!0Lb\x27#G_\x27#G_O9uQ!0LrO1G4YO9uQ!0LrO1G4[O$?TQ`O,5@bO!)[QlO,5;`O9eQ`O,5;`O?YQ`O,5:XO!)[QlO,5:XO!CUQpO,5:XO$?YQ?MtO,5:XOOQO,5;`,5;`O$?dQpO\x27#IeO$?zQ`O,5@aOOQ!0Lf1G/r1G/rO$@SQpO\x27#IkO$@^Q`O,5@pOOQ!0Lb1G0y1G0yO#$`QpO,5:XOOQO\x27#Ig\x27#IgO$@fQpO,5:qOOQ!0Ln,5:q,5:qO#(ZQ`O1G0ZOOQ!0Lf1G0Z1G0ZO%[QlO1G0ZOOQ!0Lf1G0t1G0tO?YQ`O1G0tO!CUQpO1G0tO!C^QMhO1G0tOOQ!0Lb1G5|1G5|O!ByQ!0LrO1G0^OOQO1G0m1G0mO%[QlO1G0mO$@mQ!0LrO1G0mO$@xQ!0LrO1G0mO!CUQpO1G0^ODWQpO1G0^O$AWQ!0LrO1G0mOOQO1G0^1G0^O$AlQ!0MxO1G0mPOOO-E<[-E<[POOO1G.h1G.hOOOO1G/i1G/iO$AvQ!bO,5<iO$BOQ!fO1G4jOOQO1G4p1G4pO%[QlO,5?OO$BYQ`O1G5zO$BbQ`O1G6YO$BjQ!fO1G6ZO9eQ`O,5?UO$BtQ!0MxO1G6WO%[QlO1G6WO$CUQ!0LrO1G6WO$CgQ`O1G6VO$CgQ`O1G6VO9eQ`O1G6VO$CoQ`O,5?XO9eQ`O,5?XOOQO,5?X,5?XO$DTQ`O,5?XO$+YQ`O,5?XOOQO-E<k-E<kOOQS1G0a1G0aOOQS1G0c1G0cO#.lQ`O1G0cOOQ[7+(e7+(eO!&zQMhO7+(eO%[QlO7+(eO$DcQ`O7+(eO$DnQMhO7+(eO$D|Q!0MzO,5=XO$GXQ!0MzO,5=ZO$IdQ!0MzO,5=XO$KuQ!0MzO,5=ZO$NWQ!0MzO,59uO%!]Q!0MzO,5<kO%$hQ!0MzO,5<mO%&sQ!0MzO,5<{OOQ!0Lf7+&a7+&aO%)UQ!0MxO7+&aO%)xQlO\x27#IfO%*VQ`O,5@cO%*_Q!fO,5@cOOQ!0Lf1G0P1G0PO%*iQ`O7+&jOOQ!0Lf7+&j7+&jO%*nQ?MtO,5:fO%[QlO7+&zO%*xQ?MtO,5:bO%+VQ?MtO,5:jO%+aQ?MtO,5:lO%+kQMhO\x27#IiO%+uQ`O,5@hOOQ!0Lh1G0d1G0dOOQO1G1r1G1rOOQO1G1s1G1sO%+}Q!jO,5<ZO!)[QlO,5<YOOQO-E<l-E<lOOQ!0Lf7+\x27Y7+\x27YOOOW7+\x27e7+\x27eOOOW1G1|1G1|O%,YQ`O1G1|OOQ!0Lf1G2O1G2OOOOO,59o,59oO%,_Q!dO,59oOOOO-E<`-E<`OOQ!0Lh1G/X1G/XO%,fQ!0MxO7+\x27kOOQ!0Lh,5?^,5?^O%-YQMhO1G2fP%-aQ`O\x27#IrPOQ!0Lh-E<p-E<pO%-}QMjO,5?aOOQ!0Lh-E<s-E<sO%.pQMjO,5?cOOQ!0Lh-E<u-E<uO%.zQ!dO1G2wO%/RQ!dO\x27#CrO%/iQMhO\x27#KSO$$wQlO\x27#JvOOQ!0Lh1G2_1G2_O%/sQ`O\x27#IqO%0[Q`O,5@vO%0[Q`O,5@vO%0dQ`O,5@vO%0oQ`O,5@vOOQO1G2a1G2aO%0}QMjO1G2`O$+YQ`O\x27#K[O!,TQMhO1G2`O%1_Q(CWO\x27#IsO%1lQ`O,5@wO!&zQMhO,5@wO%1tQ!dO,5@wOOQ!0Lh1G2d1G2dO%4UQ!fO\x27#CiO%4`Q`O,5=POOQ!0Lb,5<},5<}O%4hQpO,5<}OOQ!0Lb,5=O,5=OOCwQ`O,5<}O%4sQpO,5<}OOQ!0Lb,5=R,5=RO$+YQ`O,5=VOOQO,5?`,5?`OOQO-E<r-E<rOOQ!0Lp1G2h1G2hO#$`QpO,5<}O$$wQlO,5=PO%5RQ`O,5=OO%5^QpO,5=OO!,TQMhO\x27#IuO%6WQMjO1G2sO!,TQMhO\x27#IwO%6yQMjO1G2uO%7TQMjO1G5qO%7_QMjO1G5qOOQO,5?e,5?eOOQO-E<w-E<wOOQO1G.{1G.{O!,TQMhO1G5qO!,TQMhO1G5qO!:]QpO,59wO%[QlO,59wOOQ!0Lh,5<j,5<jO%7lQ`O1G2ZO!,TQMhO1G2bO%7qQ!0MxO7+\x27mOOQ!0Lf7+\x27m7+\x27mO!$wQlO7+\x27mO%8eQ`O,5;`OOQ!0Lb,5?g,5?gOOQ!0Lb-E<y-E<yO%8jQ!dO\x27#K^O#(ZQ`O7+(eO4UQ!fO7+(eO$DfQ`O7+(eO%8tQ!0MvO\x27#CiO%9XQ!0MvO,5=SO%9lQ`O,5=SO%9tQ`O,5=SOOQ!0Lb1G5o1G5oOOQ[7+$a7+$aO!ByQ!0LrO7+$aO!CUQpO7+$aO!$wQlO7+&aO%9yQ`O\x27#JQO%:bQ`O,5APOOQO1G3h1G3hO9kQ`O,5APO%:bQ`O,5APO%:jQ`O,5APOOQO,5?m,5?mOOQO-E=P-E=POOQ!0Lf7+\x27T7+\x27TO%:oQ`O7+)QO9uQ!0LrO7+)QO9kQ`O7+)QO@zQ`O7+)QO%:tQ`O7+)QOOQ[7+)Q7+)QOOQ[7+(p7+(pO%:yQ!0MvO7+(mO!&zQMhO7+(mO!E^Q`O7+(nOOQ[7+(n7+(nO!&zQMhO7+(nO%;TQ`O\x27#KbO%;`Q`O,5=lOOQO,5?i,5?iOOQO-E<{-E<{OOQ[7+(s7+(sO%<rQpO\x27#HZOOQ[1G3`1G3`O!&zQMhO1G3`O%[QlO1G3`O%<yQ`O1G3`O%=UQMhO1G3`O9uQ!0LrO1G3bO$%dQ`O1G3bO9`Q`O1G3bO!CUQpO1G3bO!C^QMhO1G3bO%=dQ`O\x27#JPO%=xQ`O,5@}O%>QQpO,5@}OOQ!0Lb1G3c1G3cOOQ[7+$V7+$VO@zQ`O7+$VO9uQ!0LrO7+$VO%>]Q`O7+$VO%[QlO1G6lO%[QlO1G6mO%>bQ!0LrO1G6lO%>lQlO1G3kO%>sQ`O1G3kO%>xQlO1G3kOOQ[7+)T7+)TO9uQ!0LrO7+)_O`QlO7+)aOOQ[\x27#Kh\x27#KhOOQ[\x27#JS\x27#JSO%?PQlO,5>`OOQ[,5>`,5>`O%[QlO\x27#HuO%?^Q`O\x27#HwOOQ[,5>f,5>fO9eQ`O,5>fOOQ[,5>h,5>hOOQ[7+)j7+)jOOQ[7+)p7+)pOOQ[7+)t7+)tOOQ[7+)v7+)vO%?cQpO1G5|O%?}Q?MtO1G0zO%@XQ`O1G0zOOQO1G/s1G/sO%@dQ?MtO1G/sO?YQ`O1G/sO!)[QlO\x27#DmOOQO,5?P,5?POOQO-E<c-E<cOOQO,5?V,5?VOOQO-E<i-E<iO!CUQpO1G/sOOQO-E<e-E<eOOQ!0Ln1G0]1G0]OOQ!0Lf7+%u7+%uO#(ZQ`O7+%uOOQ!0Lf7+&`7+&`O?YQ`O7+&`O!CUQpO7+&`OOQO7+%x7+%xO$AlQ!0MxO7+&XOOQO7+&X7+&XO%[QlO7+&XO%@nQ!0LrO7+&XO!ByQ!0LrO7+%xO!CUQpO7+%xO%@yQ!0LrO7+&XO%AXQ!0MxO7++rO%[QlO7++rO%AiQ`O7++qO%AiQ`O7++qOOQO1G4s1G4sO9eQ`O1G4sO%AqQ`O1G4sOOQS7+%}7+%}O#(ZQ`O<<LPO4UQ!fO<<LPO%BPQ`O<<LPOOQ[<<LP<<LPO!&zQMhO<<LPO%[QlO<<LPO%BXQ`O<<LPO%BdQ!0MzO,5?aO%DoQ!0MzO,5?cO%FzQ!0MzO1G2`O%I]Q!0MzO1G2sO%KhQ!0MzO1G2uO%MsQ!fO,5?QO%[QlO,5?QOOQO-E<d-E<dO%M}Q`O1G5}OOQ!0Lf<<JU<<JUO%NVQ?MtO1G0uO&!^Q?MtO1G1PO&!eQ?MtO1G1PO&$fQ?MtO1G1PO&$mQ?MtO1G1PO&&nQ?MtO1G1PO&(oQ?MtO1G1PO&(vQ?MtO1G1PO&(}Q?MtO1G1PO&+OQ?MtO1G1PO&+VQ?MtO1G1PO&+^Q!0MxO<<JfO&-UQ?MtO1G1PO&.RQ?MvO1G1PO&/UQ?MvO\x27#JlO&1[Q?MtO1G1cO&1iQ?MtO1G0UO&1sQMjO,5?TOOQO-E<g-E<gO!)[QlO\x27#FqOOQO\x27#KZ\x27#KZOOQO1G1u1G1uO&1}Q`O1G1tO&2SQ?MtO,5?[OOOW7+\x27h7+\x27hOOOO1G/Z1G/ZO&2^Q!dO1G4xOOQ!0Lh7+(Q7+(QP!&zQMhO,5?^O!,TQMhO7+(cO&2eQ`O,5?]O9eQ`O,5?]O$+YQ`O,5?]OOQO-E<o-E<oO&2sQ`O1G6bO&2sQ`O1G6bO&2{Q`O1G6bO&3WQMjO7+\x27zO&3hQ!dO,5?_O&3rQ`O,5?_O!&zQMhO,5?_OOQO-E<q-E<qO&3wQ!dO1G6cO&4RQ`O1G6cO&4ZQ`O1G2kO!&zQMhO1G2kOOQ!0Lb1G2i1G2iOOQ!0Lb1G2j1G2jO%4hQpO1G2iO!CUQpO1G2iOCwQ`O1G2iOOQ!0Lb1G2q1G2qO&4`QpO1G2iO&4nQ`O1G2kO$+YQ`O1G2jOCwQ`O1G2jO$$wQlO1G2kO&4vQ`O1G2jO&5jQMjO,5?aOOQ!0Lh-E<t-E<tO&6]QMjO,5?cOOQ!0Lh-E<v-E<vO!,TQMhO7++]O&6gQMjO7++]O&6qQMjO7++]OOQ!0Lh1G/c1G/cO&7OQ`O1G/cOOQ!0Lh7+\x27u7+\x27uO&7TQMjO7+\x27|O&7eQ!0MxO<<KXOOQ!0Lf<<KX<<KXO&8XQ`O1G0zO!&zQMhO\x27#IzO&8^Q`O,5@xO&:`Q!fO<<LPO!&zQMhO1G2nO&:gQ!0LrO1G2nOOQ[<<G{<<G{O!ByQ!0LrO<<G{O&:xQ!0MxO<<I{OOQ!0Lf<<I{<<I{OOQO,5?l,5?lO&;lQ`O,5?lO&;qQ`O,5?lOOQO-E=O-E=OO&<PQ`O1G6kO&<PQ`O1G6kO9kQ`O1G6kO@zQ`O<<LlOOQ[<<Ll<<LlO&<XQ`O<<LlO9uQ!0LrO<<LlO9kQ`O<<LlOOQ[<<LX<<LXO%:yQ!0MvO<<LXOOQ[<<LY<<LYO!E^Q`O<<LYO&<^QpO\x27#I|O&<iQ`O,5@|O!)[QlO,5@|OOQ[1G3W1G3WOOQO\x27#JO\x27#JOO9uQ!0LrO\x27#JOO&<qQpO,5=uOOQ[,5=u,5=uO&<xQpO\x27#EgO&=PQpO\x27#GeO&=UQ`O7+(zO&=ZQ`O7+(zOOQ[7+(z7+(zO!&zQMhO7+(zO%[QlO7+(zO&=cQ`O7+(zOOQ[7+(|7+(|O9uQ!0LrO7+(|O$%dQ`O7+(|O9`Q`O7+(|O!CUQpO7+(|O&=nQ`O,5?kOOQO-E<}-E<}OOQO\x27#H^\x27#H^O&=yQ`O1G6iO9uQ!0LrO<<GqOOQ[<<Gq<<GqO@zQ`O<<GqO&>RQ`O7+,WO&>WQ`O7+,XO%[QlO7+,WO%[QlO7+,XOOQ[7+)V7+)VO&>]Q`O7+)VO&>bQlO7+)VO&>iQ`O7+)VOOQ[<<Ly<<LyOOQ[<<L{<<L{OOQ[-E=Q-E=QOOQ[1G3z1G3zO&>nQ`O,5>aOOQ[,5>c,5>cO&>sQ`O1G4QO9eQ`O7+&fO!)[QlO7+&fOOQO7+%_7+%_O&>xQ?MtO1G6ZO?YQ`O7+%_OOQ!0Lf<<Ia<<IaOOQ!0Lf<<Iz<<IzO?YQ`O<<IzOOQO<<Is<<IsO$AlQ!0MxO<<IsO%[QlO<<IsOOQO<<Id<<IdO!ByQ!0LrO<<IdO&?SQ!0LrO<<IsO&?_Q!0MxO<=\x20^O&?oQ`O<=\x20]OOQO7+*_7+*_O9eQ`O7+*_OOQ[ANAkANAkO&?wQ!fOANAkO!&zQMhOANAkO#(ZQ`OANAkO4UQ!fOANAkO&@OQ`OANAkO%[QlOANAkO&@WQ!0MzO7+\x27zO&BiQ!0MzO,5?aO&DtQ!0MzO,5?cO&GPQ!0MzO7+\x27|O&IbQ!fO1G4lO&IlQ?MtO7+&aO&KpQ?MvO,5=XO&MwQ?MvO,5=ZO&NXQ?MvO,5=XO&NiQ?MvO,5=ZO&NyQ?MvO,59uO\x27#PQ?MvO,5<kO\x27%SQ?MvO,5<mO\x27\x27hQ?MvO,5<{O\x27)^Q?MtO7+\x27kO\x27)kQ?MtO7+\x27mO\x27)xQ`O,5<]OOQO7+\x27`7+\x27`OOQ!0Lh7+*d7+*dO\x27)}QMjO<<K}OOQO1G4w1G4wO\x27*UQ`O1G4wO\x27*aQ`O1G4wO\x27*oQ`O7++|O\x27*oQ`O7++|O!&zQMhO1G4yO\x27*wQ!dO1G4yO\x27+RQ`O7++}O\x27+ZQ`O7+(VO\x27+fQ!dO7+(VOOQ!0Lb7+(T7+(TOOQ!0Lb7+(U7+(UO!CUQpO7+(TOCwQ`O7+(TO\x27+pQ`O7+(VO!&zQMhO7+(VO$+YQ`O7+(UO\x27+uQ`O7+(VOCwQ`O7+(UO\x27+}QMjO<<NwO!,TQMhO<<NwOOQ!0Lh7+$}7+$}O\x27,XQ!dO,5?fOOQO-E<x-E<xO\x27,cQ!0MvO7+(YO!&zQMhO7+(YOOQ[AN=gAN=gO9kQ`O1G5WOOQO1G5W1G5WO\x27,sQ`O1G5WO\x27,xQ`O7+,VO\x27,xQ`O7+,VO9uQ!0LrOANBWO@zQ`OANBWOOQ[ANBWANBWO\x27-QQ`OANBWOOQ[ANAsANAsOOQ[ANAtANAtO\x27-VQ`O,5?hOOQO-E<z-E<zO\x27-bQ?MtO1G6hOOQO,5?j,5?jOOQO-E<|-E<|OOQ[1G3a1G3aO\x27-lQ`O,5=POOQ[<<Lf<<LfO!&zQMhO<<LfO&=UQ`O<<LfO\x27-qQ`O<<LfO%[QlO<<LfOOQ[<<Lh<<LhO9uQ!0LrO<<LhO$%dQ`O<<LhO9`Q`O<<LhO\x27-yQpO1G5VO\x27.UQ`O7+,TOOQ[AN=]AN=]O9uQ!0LrOAN=]OOQ[<=\x20r<=\x20rOOQ[<=\x20s<=\x20sO\x27.^Q`O<=\x20rO\x27.cQ`O<=\x20sOOQ[<<Lq<<LqO\x27.hQ`O<<LqO\x27.mQlO<<LqOOQ[1G3{1G3{O?YQ`O7+)lO\x27.tQ`O<<JQO\x27/PQ?MtO<<JQOOQO<<Hy<<HyOOQ!0LfAN?fAN?fOOQOAN?_AN?_O$AlQ!0MxOAN?_OOQOAN?OAN?OO%[QlOAN?_OOQO<<My<<MyOOQ[G27VG27VO!&zQMhOG27VO#(ZQ`OG27VO\x27/ZQ!fOG27VO4UQ!fOG27VO\x27/bQ`OG27VO\x27/jQ?MtO<<JfO\x27/wQ?MvO1G2`O\x271mQ?MvO,5?aO\x273pQ?MvO,5?cO\x275sQ?MvO1G2sO\x277vQ?MvO1G2uO\x279yQ?MtO<<KXO\x27:WQ?MtO<<I{OOQO1G1w1G1wO!,TQMhOANAiOOQO7+*c7+*cO\x27:eQ`O7+*cO\x27:pQ`O<=\x20hO\x27:xQ!dO7+*eOOQ!0Lb<<Kq<<KqO$+YQ`O<<KqOCwQ`O<<KqO\x27;SQ`O<<KqO!&zQMhO<<KqOOQ!0Lb<<Ko<<KoO!CUQpO<<KoO\x27;_Q!dO<<KqOOQ!0Lb<<Kp<<KpO\x27;iQ`O<<KqO!&zQMhO<<KqO$+YQ`O<<KpO\x27;nQMjOANDcO\x27;xQ!0MvO<<KtOOQO7+*r7+*rO9kQ`O7+*rO\x27<YQ`O<=\x20qOOQ[G27rG27rO9uQ!0LrOG27rO@zQ`OG27rO!)[QlO1G5SO\x27<bQ`O7+,SO\x27<jQ`O1G2kO&=UQ`OANBQOOQ[ANBQANBQO!&zQMhOANBQO\x27<oQ`OANBQOOQ[ANBSANBSO9uQ!0LrOANBSO$%dQ`OANBSOOQO\x27#H_\x27#H_OOQO7+*q7+*qOOQ[G22wG22wOOQ[ANE^ANE^OOQ[ANE_ANE_OOQ[ANB]ANB]O\x27<wQ`OANB]OOQ[<<MW<<MWO!)[QlOAN?lOOQOG24yG24yO$AlQ!0MxOG24yO#(ZQ`OLD,qOOQ[LD,qLD,qO!&zQMhOLD,qO\x27<|Q!fOLD,qO\x27=TQ?MvO7+\x27zO\x27>yQ?MvO,5?aO\x27@|Q?MvO,5?cO\x27CPQ?MvO7+\x27|O\x27DuQMjOG27TOOQO<<M}<<M}OOQ!0LbANA]ANA]O$+YQ`OANA]OCwQ`OANA]O\x27EVQ!dOANA]OOQ!0LbANAZANAZO\x27E^Q`OANA]O!&zQMhOANA]O\x27EiQ!dOANA]OOQ!0LbANA[ANA[OOQO<<N^<<N^OOQ[LD-^LD-^O9uQ!0LrOLD-^O\x27EsQ?MtO7+*nOOQO\x27#Gf\x27#GfOOQ[G27lG27lO&=UQ`OG27lO!&zQMhOG27lOOQ[G27nG27nO9uQ!0LrOG27nOOQ[G27wG27wO\x27E}Q?MtOG25WOOQOLD*eLD*eOOQ[!$(!]!$(!]O#(ZQ`O!$(!]O!&zQMhO!$(!]O\x27FXQ!0MzOG27TOOQ!0LbG26wG26wO$+YQ`OG26wO\x27HjQ`OG26wOCwQ`OG26wO\x27HuQ!dOG26wO!&zQMhOG26wOOQ[!$(!x!$(!xOOQ[LD-WLD-WO&=UQ`OLD-WOOQ[LD-YLD-YOOQ[!)9Ew!)9EwO#(ZQ`O!)9EwOOQ!0LbLD,cLD,cO$+YQ`OLD,cOCwQ`OLD,cO\x27H|Q`OLD,cO\x27IXQ!dOLD,cOOQ[!$(!r!$(!rOOQ[!.K;c!.K;cO\x27I`Q?MvOG27TOOQ!0Lb!$(\x20}!$(\x20}O$+YQ`O!$(\x20}OCwQ`O!$(\x20}O\x27KUQ`O!$(\x20}OOQ!0Lb!)9Ei!)9EiO$+YQ`O!)9EiOCwQ`O!)9EiOOQ!0Lb!.K;T!.K;TO$+YQ`O!.K;TOOQ!0Lb!4/0o!4/0oO!)[QlO\x27#DzO1PQ`O\x27#EXO\x27KaQ!fO\x27#JrO\x27KhQ!L^O\x27#DvO\x27KoQlO\x27#EOO\x27KvQ!fO\x27#CiO\x27N^Q!fO\x27#CiO!)[QlO\x27#EQO\x27NnQlO,5;ZO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO\x27#IpO(!qQ`O,5<iO!)[QlO,5;eO(!yQMhO,5;eO($dQMhO,5;eO!)[QlO,5;wO!&zQMhO\x27#GmO(!yQMhO\x27#GmO!&zQMhO\x27#GoO(!yQMhO\x27#GoO1SQ`O\x27#DZO1SQ`O\x27#DZO!&zQMhO\x27#GPO(!yQMhO\x27#GPO!&zQMhO\x27#GRO(!yQMhO\x27#GRO!&zQMhO\x27#GaO(!yQMhO\x27#GaO!)[QlO,5:jO($kQpO\x27#D_O($uQpO\x27#JvO!)[QlO,5@oO\x27NnQlO1G0uO(%PQ?MtO\x27#CiO!)[QlO1G2PO!&zQMhO\x27#IuO(!yQMhO\x27#IuO!&zQMhO\x27#IwO(!yQMhO\x27#IwO(%ZQ!dO\x27#CrO!&zQMhO,5<tO(!yQMhO,5<tO\x27NnQlO1G2RO!)[QlO7+&zO!&zQMhO1G2`O(!yQMhO1G2`O!&zQMhO\x27#IuO(!yQMhO\x27#IuO!&zQMhO\x27#IwO(!yQMhO\x27#IwO!&zQMhO1G2bO(!yQMhO1G2bO\x27NnQlO7+\x27mO\x27NnQlO7+&aO!&zQMhOANAiO(!yQMhOANAiO(%nQ`O\x27#EoO(%sQ`O\x27#EoO(%{Q`O\x27#F]O(&QQ`O\x27#EyO(&VQ`O\x27#KTO(&bQ`O\x27#KRO(&mQ`O,5;ZO(&rQMjO,5<eO(&yQ`O\x27#GYO(\x27OQ`O\x27#GYO(\x27TQ`O,5<eO(\x27]Q`O,5<gO(\x27eQ`O,5;ZO(\x27mQ?MtO1G1`O(\x27tQ`O,5<tO(\x27yQ`O,5<tO((OQ`O,5<vO((TQ`O,5<vO((YQ`O1G2RO((_Q`O1G0uO((dQMjO<<K}O((kQMjO<<K}O((rQMhO\x27#F|O9`Q`O\x27#F{OAuQ`O\x27#EnO!)[QlO,5;tO!3oQ`O\x27#GYO!3oQ`O\x27#GYO!3oQ`O\x27#G[O!3oQ`O\x27#G[O!,TQMhO7+(cO!,TQMhO7+(cO%.zQ!dO1G2wO%.zQ!dO1G2wO!&zQMhO,5=]O!&zQMhO,5=]','stateData':'()x~O\x27|OS\x27}OSTOS(ORQ~OPYOQYOSfOY!VOaqOdzOeyOl!POpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_XO!iuO!lZO!oYO!pYO!qYO!svO!uwO!xxO!|]O$W|O$niO%h}O%j!QO%l!OO%m!OO%n!OO%q!RO%s!SO%v!TO%w!TO%y!UO&W!WO&^!XO&`!YO&b!ZO&d![O&g!]O&m!^O&s!_O&u!`O&w!aO&y!bO&{!cO(TSO(VTO(YUO(aVO(o[O~OWtO~P`OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(T!dO(VTO(YUO(aVO(o[O~Oa!wOs!nO!S!oO!b!yO!c!vO!d!vO!|<VO#T!pO#U!pO#V!xO#W!pO#X!pO#[!zO#]!zO(U!lO(VTO(YUO(e!mO(o!sO~O(O!{O~OP]XR]X[]Xa]Xj]Xr]X!Q]X!S]X!]]X!l]X!p]X#R]X#S]X#`]X#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X\x27z]X(a]X(r]X(y]X(z]X~O!g%RX~P(qO_!}O(V#PO(W!}O(X#PO~O_#QO(X#PO(Y#PO(Z#QO~Ox#SO!U#TO(b#TO(c#VO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(T<ZO(VTO(YUO(aVO(o[O~O![#ZO!]#WO!Y(hP!Y(vP~P+}O!^#cO~P`OPYOQYOSfOd!jOe!iOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(VTO(YUO(aVO(o[O~Op#mO![#iO!|]O#i#lO#j#iO(T<[O!k(sP~P.iO!l#oO(T#nO~O!x#sO!|]O%h#tO~O#k#uO~O!g#vO#k#uO~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!]$_O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO#z$WO#{$XO(aVO(r$YO(y#|O(z#}O~Oa(fX\x27z(fX\x27w(fX!k(fX!Y(fX!_(fX%i(fX!g(fX~P1qO#S$dO#`$eO$Q$eOP(gXR(gX[(gXj(gXr(gX!Q(gX!S(gX!](gX!l(gX!p(gX#R(gX#n(gX#o(gX#p(gX#q(gX#r(gX#s(gX#t(gX#u(gX#v(gX#x(gX#z(gX#{(gX(a(gX(r(gX(y(gX(z(gX!_(gX%i(gX~Oa(gX\x27z(gX\x27w(gX!Y(gX!k(gXv(gX!g(gX~P4UO#`$eO~O$]$hO$_$gO$f$mO~OSfO!_$nO$i$oO$k$qO~Oh%VOj%dOk%dOp%WOr%XOs$tOt$tOz%YO|%ZO!O%]O!S${O!_$|O!i%bO!l$xO#j%cO$W%`O$t%^O$v%_O$y%aO(T$sO(VTO(YUO(a$uO(y$}O(z%POg(^P~Ol%[O~P7eO!l%eO~O!S%hO!_%iO(T%gO~O!g%mO~Oa%nO\x27z%nO~O!Q%rO~P%[O(U!lO~P%[O%n%vO~P%[Oh%VO!l%eO(T%gO(U!lO~Oe%}O!l%eO(T%gO~Oj$RO~O!_&PO(T%gO(U!lO(VTO(YUO`)WP~O!Q&SO!l&RO%j&VO&T&WO~P;SO!x#sO~O%s&YO!S)SX!_)SX(T)SX~O(T&ZO~Ol!PO!u&`O%j!QO%l!OO%m!OO%n!OO%q!RO%s!SO%v!TO%w!TO~Od&eOe&dO!x&bO%h&cO%{&aO~P<bOd&hOeyOl!PO!_&gO!u&`O!xxO!|]O%h}O%l!OO%m!OO%n!OO%q!RO%s!SO%v!TO%w!TO%y!UO~Ob&kO#`&nO%j&iO(U!lO~P=gO!l&oO!u&sO~O!l#oO~O!_XO~Oa%nO\x27x&{O\x27z%nO~Oa%nO\x27x\x27OO\x27z%nO~Oa%nO\x27x\x27QO\x27z%nO~O\x27w]X!Y]Xv]X!k]X&[]X!_]X%i]X!g]X~P(qO!b\x27_O!c\x27WO!d\x27WO(U!lO(VTO(YUO~Os\x27UO!S\x27TO![\x27XO(e\x27SO!^(iP!^(xP~P@nOn\x27bO!_\x27`O(T%gO~Oe\x27gO!l%eO(T%gO~O!Q&SO!l&RO~Os!nO!S!oO!|<VO#T!pO#U!pO#W!pO#X!pO(U!lO(VTO(YUO(e!mO(o!sO~O!b\x27mO!c\x27lO!d\x27lO#V!pO#[\x27nO#]\x27nO~PBYOa%nOh%VO!g#vO!l%eO\x27z%nO(r\x27pO~O!p\x27tO#`\x27rO~PChOs!nO!S!oO(VTO(YUO(e!mO(o!sO~O!_XOs(mX!S(mX!b(mX!c(mX!d(mX!|(mX#T(mX#U(mX#V(mX#W(mX#X(mX#[(mX#](mX(U(mX(V(mX(Y(mX(e(mX(o(mX~O!c\x27lO!d\x27lO(U!lO~PDWO(P\x27xO(Q\x27xO(R\x27zO~O_!}O(V\x27|O(W!}O(X\x27|O~O_#QO(X\x27|O(Y\x27|O(Z#QO~Ov(OO~P%[Ox#SO!U#TO(b#TO(c(RO~O![(TO!Y\x27WX!Y\x27^X!]\x27WX!]\x27^X~P+}O!](VO!Y(hX~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!](VO!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO#z$WO#{$XO(aVO(r$YO(y#|O(z#}O~O!Y(hX~PHRO!Y([O~O!Y(uX!](uX!g(uX!k(uX(r(uX~O#`(uX#k#dX!^(uX~PJUO#`(]O!Y(wX!](wX~O!](^O!Y(vX~O!Y(aO~O#`$eO~PJUO!^(bO~P`OR#zO!Q#yO!S#{O!l#xO(aVOP!na[!naj!nar!na!]!na!p!na#R!na#n!na#o!na#p!na#q!na#r!na#s!na#t!na#u!na#v!na#x!na#z!na#{!na(r!na(y!na(z!na~Oa!na\x27z!na\x27w!na!Y!na!k!nav!na!_!na%i!na!g!na~PKlO!k(cO~O!g#vO#`(dO(r\x27pO!](tXa(tX\x27z(tX~O!k(tX~PNXO!S%hO!_%iO!|]O#i(iO#j(hO(T%gO~O!](jO!k(sX~O!k(lO~O!S%hO!_%iO#j(hO(T%gO~OP(gXR(gX[(gXj(gXr(gX!Q(gX!S(gX!](gX!l(gX!p(gX#R(gX#n(gX#o(gX#p(gX#q(gX#r(gX#s(gX#t(gX#u(gX#v(gX#x(gX#z(gX#{(gX(a(gX(r(gX(y(gX(z(gX~O!g#vO!k(gX~P!\x20uOR(nO!Q(mO!l#xO#S$dO!|!{a!S!{a~O!x!{a%h!{a!_!{a#i!{a#j!{a(T!{a~P!#vO!x(rO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_XO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(T!dO(VTO(YUO(aVO(o[O~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<sO!S${O!_$|O!i>VO!l$xO#j<yO$W%`O$t<uO$v<wO$y%aO(T(vO(VTO(YUO(a$uO(y$}O(z%PO~O#k(xO~O![(zO!k(kP~P%[O(e(|O(o[O~O!S)OO!l#xO(e(|O(o[O~OP<UOQ<UOSfOd>ROe!iOpkOr<UOskOtkOzkO|<UO!O<UO!SWO!WkO!XkO!_!eO!i<XO!lZO!o<UO!p<UO!q<UO!s<YO!u<]O!x!hO$W!kO$n>PO(T)]O(VTO(YUO(aVO(o[O~O!]$_Oa$qa\x27z$qa\x27w$qa!k$qa!Y$qa!_$qa%i$qa!g$qa~Ol)dO~P!&zOh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O%]O!S${O!_$|O!i%bO!l$xO#j%cO$W%`O$t%^O$v%_O$y%aO(T(vO(VTO(YUO(a$uO(y$}O(z%PO~Og(pP~P!,TO!Q)iO!g)hO!_$^X$Z$^X$]$^X$_$^X$f$^X~O!g)hO!_({X$Z({X$]({X$_({X$f({X~O!Q)iO~P!.^O!Q)iO!_({X$Z({X$]({X$_({X$f({X~O!_)kO$Z)oO$])jO$_)jO$f)pO~O![)sO~P!)[O$]$hO$_$gO$f)wO~On$zX!Q$zX#S$zX\x27y$zX(y$zX(z$zX~OgmXg$zXnmX!]mX#`mX~P!0SOx)yO(b)zO(c)|O~On*VO!Q*OO\x27y*PO(y$}O(z%PO~Og)}O~P!1WOg*WO~Oh%VOr%XOs$tOt$tOz%YO|%ZO!O<sO!S*YO!_*ZO!i>VO!l$xO#j<yO$W%`O$t<uO$v<wO$y%aO(VTO(YUO(a$uO(y$}O(z%PO~Op*`O![*^O(T*XO!k)OP~P!1uO#k*aO~O!l*bO~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<sO!S${O!_$|O!i>VO!l$xO#j<yO$W%`O$t<uO$v<wO$y%aO(T*dO(VTO(YUO(a$uO(y$}O(z%PO~O![*gO!Y)PP~P!3tOr*sOs!nO!S*iO!b*qO!c*kO!d*kO!l*bO#[*rO%`*mO(U!lO(VTO(YUO(e!mO~O!^*pO~P!5iO#S$dOn(`X!Q(`X\x27y(`X(y(`X(z(`X!](`X#`(`X~Og(`X$O(`X~P!6kOn*xO#`*wOg(_X!](_X~O!]*yOg(^X~Oj%dOk%dOl%dO(T&ZOg(^P~Os*|O~Og)}O(T&ZO~O!l+SO~O(T(vO~Op+WO!S%hO![#iO!_%iO!|]O#i#lO#j#iO(T%gO!k(sP~O!g#vO#k+XO~O!S%hO![+ZO!](^O!_%iO(T%gO!Y(vP~Os\x27[O!S+]O![+[O(VTO(YUO(e(|O~O!^(xP~P!9|O!]+^Oa)TX\x27z)TX~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO#z$WO#{$XO(aVO(r$YO(y#|O(z#}O~Oa!ja!]!ja\x27z!ja\x27w!ja!Y!ja!k!jav!ja!_!ja%i!ja!g!ja~P!:tOR#zO!Q#yO!S#{O!l#xO(aVOP!ra[!raj!rar!ra!]!ra!p!ra#R!ra#n!ra#o!ra#p!ra#q!ra#r!ra#s!ra#t!ra#u!ra#v!ra#x!ra#z!ra#{!ra(r!ra(y!ra(z!ra~Oa!ra\x27z!ra\x27w!ra!Y!ra!k!rav!ra!_!ra%i!ra!g!ra~P!=[OR#zO!Q#yO!S#{O!l#xO(aVOP!ta[!taj!tar!ta!]!ta!p!ta#R!ta#n!ta#o!ta#p!ta#q!ta#r!ta#s!ta#t!ta#u!ta#v!ta#x!ta#z!ta#{!ta(r!ta(y!ta(z!ta~Oa!ta\x27z!ta\x27w!ta!Y!ta!k!tav!ta!_!ta%i!ta!g!ta~P!?rOh%VOn+gO!_\x27`O%i+fO~O!g+iOa(]X!_(]X\x27z(]X!](]X~Oa%nO!_XO\x27z%nO~Oh%VO!l%eO~Oh%VO!l%eO(T%gO~O!g#vO#k(xO~Ob+tO%j+uO(T+qO(VTO(YUO!^)XP~O!]+vO`)WX~O[+zO~O`+{O~O!_&PO(T%gO(U!lO`)WP~O%j,OO~P;SOh%VO#`,SO~Oh%VOn,VO!_$|O~O!_,XO~O!Q,ZO!_XO~O%n%vO~O!x,`O~Oe,eO~Ob,fO(T#nO(VTO(YUO!^)VP~Oe%}O~O%j!QO(T&ZO~P=gO[,kO`,jO~OPYOQYOSfOdzOeyOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!iuO!lZO!oYO!pYO!qYO!svO!xxO!|]O$niO%h}O(VTO(YUO(aVO(o[O~O!_!eO!u!gO$W!kO(T!dO~P!FyO`,jOa%nO\x27z%nO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!x!hO$W!kO$niO(T!dO(VTO(YUO(aVO(o[O~Oa,pOl!OO!uwO%l!OO%m!OO%n!OO~P!IcO!l&oO~O&^,vO~O!_,xO~O&o,zO&q,{OP&laQ&laS&laY&laa&lad&lae&lal&lap&lar&las&lat&laz&la|&la!O&la!S&la!W&la!X&la!_&la!i&la!l&la!o&la!p&la!q&la!s&la!u&la!x&la!|&la$W&la$n&la%h&la%j&la%l&la%m&la%n&la%q&la%s&la%v&la%w&la%y&la&W&la&^&la&`&la&b&la&d&la&g&la&m&la&s&la&u&la&w&la&y&la&{&la\x27w&la(T&la(V&la(Y&la(a&la(o&la!^&la&e&lab&la&j&la~O(T-QO~Oh!eX!]!RX!^!RX!g!RX!g!eX!l!eX#`!RX~O!]!eX!^!eX~P#!iO!g-VO#`-UOh(jX!]#hX!^#hX!g(jX!l(jX~O!](jX!^(jX~P##[Oh%VO!g-XO!l%eO!]!aX!^!aX~Os!nO!S!oO(VTO(YUO(e!mO~OP<UOQ<UOSfOd>ROe!iOpkOr<UOskOtkOzkO|<UO!O<UO!SWO!WkO!XkO!_!eO!i<XO!lZO!o<UO!p<UO!q<UO!s<YO!u<]O!x!hO$W!kO$n>PO(VTO(YUO(aVO(o[O~O(T=QO~P#$qO!]-]O!^(iX~O!^-_O~O!g-VO#`-UO!]#hX!^#hX~O!]-`O!^(xX~O!^-bO~O!c-cO!d-cO(U!lO~P#$`O!^-fO~P\x27_On-iO!_\x27`O~O!Y-nO~Os!{a!b!{a!c!{a!d!{a#T!{a#U!{a#V!{a#W!{a#X!{a#[!{a#]!{a(U!{a(V!{a(Y!{a(e!{a(o!{a~P!#vO!p-sO#`-qO~PChO!c-uO!d-uO(U!lO~PDWOa%nO#`-qO\x27z%nO~Oa%nO!g#vO#`-qO\x27z%nO~Oa%nO!g#vO!p-sO#`-qO\x27z%nO(r\x27pO~O(P\x27xO(Q\x27xO(R-zO~Ov-{O~O!Y\x27Wa!]\x27Wa~P!:tO![.PO!Y\x27WX!]\x27WX~P%[O!](VO!Y(ha~O!Y(ha~PHRO!](^O!Y(va~O!S%hO![.TO!_%iO(T%gO!Y\x27^X!]\x27^X~O#`.VO!](ta!k(taa(ta\x27z(ta~O!g#vO~P#,wO!](jO!k(sa~O!S%hO!_%iO#j.ZO(T%gO~Op.`O!S%hO![.]O!_%iO!|]O#i._O#j.]O(T%gO!]\x27aX!k\x27aX~OR.dO!l#xO~Oh%VOn.gO!_\x27`O%i.fO~Oa#ci!]#ci\x27z#ci\x27w#ci!Y#ci!k#civ#ci!_#ci%i#ci!g#ci~P!:tOn>]O!Q*OO\x27y*PO(y$}O(z%PO~O#k#_aa#_a#`#_a\x27z#_a!]#_a!k#_a!_#_a!Y#_a~P#/sO#k(`XP(`XR(`X[(`Xa(`Xj(`Xr(`X!S(`X!l(`X!p(`X#R(`X#n(`X#o(`X#p(`X#q(`X#r(`X#s(`X#t(`X#u(`X#v(`X#x(`X#z(`X#{(`X\x27z(`X(a(`X(r(`X!k(`X!Y(`X\x27w(`Xv(`X!_(`X%i(`X!g(`X~P!6kO!].tO!k(kX~P!:tO!k.wO~O!Y.yO~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O(aVO[#mia#mij#mir#mi!]#mi#R#mi#o#mi#p#mi#q#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi\x27z#mi(r#mi(y#mi(z#mi\x27w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#n#mi~P#3cO#n$OO~P#3cOP$[OR#zOr$aO!Q#yO!S#{O!l#xO!p$[O#n$OO#o$PO#p$PO#q$PO(aVO[#mia#mij#mi!]#mi#R#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi\x27z#mi(r#mi(y#mi(z#mi\x27w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#r#mi~P#6QO#r$QO~P#6QOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO(aVOa#mi!]#mi#x#mi#z#mi#{#mi\x27z#mi(r#mi(y#mi(z#mi\x27w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#v#mi~P#8oOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO(aVO(z#}Oa#mi!]#mi#z#mi#{#mi\x27z#mi(r#mi(y#mi\x27w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#x$UO~P#;VO#x#mi~P#;VO#v$SO~P#8oOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO(aVO(y#|O(z#}Oa#mi!]#mi#{#mi\x27z#mi(r#mi\x27w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#z#mi~P#={O#z$WO~P#={OP]XR]X[]Xj]Xr]X!Q]X!S]X!l]X!p]X#R]X#S]X#`]X#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X(a]X(r]X(y]X(z]X!]]X!^]X~O$O]X~P#@jOP$[OR#zO[<mOj<bOr<kO!Q#yO!S#{O!l#xO!p$[O#R<bO#n<_O#o<`O#p<`O#q<`O#r<aO#s<bO#t<bO#u<lO#v<cO#x<eO#z<gO#{<hO(aVO(r$YO(y#|O(z#}O~O$O.{O~P#BwO#S$dO#`<nO$Q<nO$O(gX!^(gX~P!\x20uOa\x27da!]\x27da\x27z\x27da\x27w\x27da!k\x27da!Y\x27dav\x27da!_\x27da%i\x27da!g\x27da~P!:tO[#mia#mij#mir#mi!]#mi#R#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi\x27z#mi(r#mi\x27w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O#n$OO#o$PO#p$PO#q$PO(aVO(y#mi(z#mi~P#EyOn>]O!Q*OO\x27y*PO(y$}O(z%POP#miR#mi!S#mi!l#mi!p#mi#n#mi#o#mi#p#mi#q#mi(a#mi~P#EyO!]/POg(pX~P!1WOg/RO~Oa$Pi!]$Pi\x27z$Pi\x27w$Pi!Y$Pi!k$Piv$Pi!_$Pi%i$Pi!g$Pi~P!:tO$]/SO$_/SO~O$]/TO$_/TO~O!g)hO#`/UO!_$cX$Z$cX$]$cX$_$cX$f$cX~O![/VO~O!_)kO$Z/XO$])jO$_)jO$f/YO~O!]<iO!^(fX~P#BwO!^/ZO~O!g)hO$f({X~O$f/]O~Ov/^O~P!&zOx)yO(b)zO(c/aO~O!S/dO~O(y$}On%aa!Q%aa\x27y%aa(z%aa!]%aa#`%aa~Og%aa$O%aa~P#L{O(z%POn%ca!Q%ca\x27y%ca(y%ca!]%ca#`%ca~Og%ca$O%ca~P#MnO!]fX!gfX!kfX!k$zX(rfX~P!0SOp%WO![/mO!](^O(T/lO!Y(vP!Y)PP~P!1uOr*sO!b*qO!c*kO!d*kO!l*bO#[*rO%`*mO(U!lO(VTO(YUO~Os<}O!S/nO![+[O!^*pO(e<|O!^(xP~P$\x20[O!k/oO~P#/sO!]/pO!g#vO(r\x27pO!k)OX~O!k/uO~OnoX!QoX\x27yoX(yoX(zoX~O!g#vO!koX~P$#OOp/wO!S%hO![*^O!_%iO(T%gO!k)OP~O#k/xO~O!Y$zX!]$zX!g%RX~P!0SO!]/yO!Y)PX~P#/sO!g/{O~O!Y/}O~OpkO(T0OO~P.iOh%VOr0TO!g#vO!l%eO(r\x27pO~O!g+iO~Oa%nO!]0XO\x27z%nO~O!^0ZO~P!5iO!c0[O!d0[O(U!lO~P#$`Os!nO!S0]O(VTO(YUO(e!mO~O#[0_O~Og%aa!]%aa#`%aa$O%aa~P!1WOg%ca!]%ca#`%ca$O%ca~P!1WOj%dOk%dOl%dO(T&ZOg\x27mX!]\x27mX~O!]*yOg(^a~Og0hO~On0jO#`0iOg(_a!](_a~OR0kO!Q0kO!S0lO#S$dOn}a\x27y}a(y}a(z}a!]}a#`}a~Og}a$O}a~P$(cO!Q*OO\x27y*POn$sa(y$sa(z$sa!]$sa#`$sa~Og$sa$O$sa~P$)_O!Q*OO\x27y*POn$ua(y$ua(z$ua!]$ua#`$ua~Og$ua$O$ua~P$*QO#k0oO~Og%Ta!]%Ta#`%Ta$O%Ta~P!1WO!g#vO~O#k0rO~O!]+^Oa)Ta\x27z)Ta~OR#zO!Q#yO!S#{O!l#xO(aVOP!ri[!rij!rir!ri!]!ri!p!ri#R!ri#n!ri#o!ri#p!ri#q!ri#r!ri#s!ri#t!ri#u!ri#v!ri#x!ri#z!ri#{!ri(r!ri(y!ri(z!ri~Oa!ri\x27z!ri\x27w!ri!Y!ri!k!riv!ri!_!ri%i!ri!g!ri~P$+oOh%VOr%XOs$tOt$tOz%YO|%ZO!O<sO!S${O!_$|O!i>VO!l$xO#j<yO$W%`O$t<uO$v<wO$y%aO(VTO(YUO(a$uO(y$}O(z%PO~Op0{O%]0|O(T0zO~P$.VO!g+iOa(]a!_(]a\x27z(]a!](]a~O#k1SO~O[]X!]fX!^fX~O!]1TO!^)XX~O!^1VO~O[1WO~Ob1YO(T+qO(VTO(YUO~O!_&PO(T%gO`\x27uX!]\x27uX~O!]+vO`)Wa~O!k1]O~P!:tO[1`O~O`1aO~O#`1fO~On1iO!_$|O~O(e(|O!^)UP~Oh%VOn1rO!_1oO%i1qO~O[1|O!]1zO!^)VX~O!^1}O~O`2POa%nO\x27z%nO~O(T#nO(VTO(YUO~O#S$dO#`$eO$Q$eOP(gXR(gX[(gXr(gX!Q(gX!S(gX!](gX!l(gX!p(gX#R(gX#n(gX#o(gX#p(gX#q(gX#r(gX#s(gX#t(gX#u(gX#v(gX#x(gX#z(gX#{(gX(a(gX(r(gX(y(gX(z(gX~Oj2SO&[2TOa(gX~P$3pOj2SO#`$eO&[2TO~Oa2VO~P%[Oa2XO~O&e2[OP&ciQ&ciS&ciY&cia&cid&cie&cil&cip&cir&cis&cit&ciz&ci|&ci!O&ci!S&ci!W&ci!X&ci!_&ci!i&ci!l&ci!o&ci!p&ci!q&ci!s&ci!u&ci!x&ci!|&ci$W&ci$n&ci%h&ci%j&ci%l&ci%m&ci%n&ci%q&ci%s&ci%v&ci%w&ci%y&ci&W&ci&^&ci&`&ci&b&ci&d&ci&g&ci&m&ci&s&ci&u&ci&w&ci&y&ci&{&ci\x27w&ci(T&ci(V&ci(Y&ci(a&ci(o&ci!^&cib&ci&j&ci~Ob2bO!^2`O&j2aO~P`O!_XO!l2dO~O&q,{OP&liQ&liS&liY&lia&lid&lie&lil&lip&lir&lis&lit&liz&li|&li!O&li!S&li!W&li!X&li!_&li!i&li!l&li!o&li!p&li!q&li!s&li!u&li!x&li!|&li$W&li$n&li%h&li%j&li%l&li%m&li%n&li%q&li%s&li%v&li%w&li%y&li&W&li&^&li&`&li&b&li&d&li&g&li&m&li&s&li&u&li&w&li&y&li&{&li\x27w&li(T&li(V&li(Y&li(a&li(o&li!^&li&e&lib&li&j&li~O!Y2jO~O!]!aa!^!aa~P#BwOs!nO!S!oO![2pO(e!mO!]\x27XX!^\x27XX~P@nO!]-]O!^(ia~O!]\x27_X!^\x27_X~P!9|O!]-`O!^(xa~O!^2wO~P\x27_Oa%nO#`3QO\x27z%nO~Oa%nO!g#vO#`3QO\x27z%nO~Oa%nO!g#vO!p3UO#`3QO\x27z%nO(r\x27pO~Oa%nO\x27z%nO~P!:tO!]$_Ov$qa~O!Y\x27Wi!]\x27Wi~P!:tO!](VO!Y(hi~O!](^O!Y(vi~O!Y(wi!](wi~P!:tO!](ti!k(tia(ti\x27z(ti~P!:tO#`3WO!](ti!k(tia(ti\x27z(ti~O!](jO!k(si~O!S%hO!_%iO!|]O#i3]O#j3[O(T%gO~O!S%hO!_%iO#j3[O(T%gO~On3dO!_\x27`O%i3cO~Oh%VOn3dO!_\x27`O%i3cO~O#k%aaP%aaR%aa[%aaa%aaj%aar%aa!S%aa!l%aa!p%aa#R%aa#n%aa#o%aa#p%aa#q%aa#r%aa#s%aa#t%aa#u%aa#v%aa#x%aa#z%aa#{%aa\x27z%aa(a%aa(r%aa!k%aa!Y%aa\x27w%aav%aa!_%aa%i%aa!g%aa~P#L{O#k%caP%caR%ca[%caa%caj%car%ca!S%ca!l%ca!p%ca#R%ca#n%ca#o%ca#p%ca#q%ca#r%ca#s%ca#t%ca#u%ca#v%ca#x%ca#z%ca#{%ca\x27z%ca(a%ca(r%ca!k%ca!Y%ca\x27w%cav%ca!_%ca%i%ca!g%ca~P#MnO#k%aaP%aaR%aa[%aaa%aaj%aar%aa!S%aa!]%aa!l%aa!p%aa#R%aa#n%aa#o%aa#p%aa#q%aa#r%aa#s%aa#t%aa#u%aa#v%aa#x%aa#z%aa#{%aa\x27z%aa(a%aa(r%aa!k%aa!Y%aa\x27w%aa#`%aav%aa!_%aa%i%aa!g%aa~P#/sO#k%caP%caR%ca[%caa%caj%car%ca!S%ca!]%ca!l%ca!p%ca#R%ca#n%ca#o%ca#p%ca#q%ca#r%ca#s%ca#t%ca#u%ca#v%ca#x%ca#z%ca#{%ca\x27z%ca(a%ca(r%ca!k%ca!Y%ca\x27w%ca#`%cav%ca!_%ca%i%ca!g%ca~P#/sO#k}aP}a[}aa}aj}ar}a!l}a!p}a#R}a#n}a#o}a#p}a#q}a#r}a#s}a#t}a#u}a#v}a#x}a#z}a#{}a\x27z}a(a}a(r}a!k}a!Y}a\x27w}av}a!_}a%i}a!g}a~P$(cO#k$saP$saR$sa[$saa$saj$sar$sa!S$sa!l$sa!p$sa#R$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#t$sa#u$sa#v$sa#x$sa#z$sa#{$sa\x27z$sa(a$sa(r$sa!k$sa!Y$sa\x27w$sav$sa!_$sa%i$sa!g$sa~P$)_O#k$uaP$uaR$ua[$uaa$uaj$uar$ua!S$ua!l$ua!p$ua#R$ua#n$ua#o$ua#p$ua#q$ua#r$ua#s$ua#t$ua#u$ua#v$ua#x$ua#z$ua#{$ua\x27z$ua(a$ua(r$ua!k$ua!Y$ua\x27w$uav$ua!_$ua%i$ua!g$ua~P$*QO#k%TaP%TaR%Ta[%Taa%Taj%Tar%Ta!S%Ta!]%Ta!l%Ta!p%Ta#R%Ta#n%Ta#o%Ta#p%Ta#q%Ta#r%Ta#s%Ta#t%Ta#u%Ta#v%Ta#x%Ta#z%Ta#{%Ta\x27z%Ta(a%Ta(r%Ta!k%Ta!Y%Ta\x27w%Ta#`%Tav%Ta!_%Ta%i%Ta!g%Ta~P#/sOa#cq!]#cq\x27z#cq\x27w#cq!Y#cq!k#cqv#cq!_#cq%i#cq!g#cq~P!:tO![3lO!]\x27YX!k\x27YX~P%[O!].tO!k(ka~O!].tO!k(ka~P!:tO!Y3oO~O$O!na!^!na~PKlO$O!ja!]!ja!^!ja~P#BwO$O!ra!^!ra~P!=[O$O!ta!^!ta~P!?rOg\x27]X!]\x27]X~P!,TO!]/POg(pa~OSfO!_4TO$d4UO~O!^4YO~Ov4ZO~P#/sOa$mq!]$mq\x27z$mq\x27w$mq!Y$mq!k$mqv$mq!_$mq%i$mq!g$mq~P!:tO!Y4]O~P!&zO!S4^O~O!Q*OO\x27y*PO(z%POn\x27ia(y\x27ia!]\x27ia#`\x27ia~Og\x27ia$O\x27ia~P%-fO!Q*OO\x27y*POn\x27ka(y\x27ka(z\x27ka!]\x27ka#`\x27ka~Og\x27ka$O\x27ka~P%.XO(r$YO~P#/sO!YfX!Y$zX!]fX!]$zX!g%RX#`fX~P!0SOp%WO(T=WO~P!1uOp4bO!S%hO![4aO!_%iO(T%gO!]\x27eX!k\x27eX~O!]/pO!k)Oa~O!]/pO!g#vO!k)Oa~O!]/pO!g#vO(r\x27pO!k)Oa~Og$|i!]$|i#`$|i$O$|i~P!1WO![4jO!Y\x27gX!]\x27gX~P!3tO!]/yO!Y)Pa~O!]/yO!Y)Pa~P#/sOP]XR]X[]Xj]Xr]X!Q]X!S]X!Y]X!]]X!l]X!p]X#R]X#S]X#`]X#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X(a]X(r]X(y]X(z]X~Oj%YX!g%YX~P%2OOj4oO!g#vO~Oh%VO!g#vO!l%eO~Oh%VOr4tO!l%eO(r\x27pO~Or4yO!g#vO(r\x27pO~Os!nO!S4zO(VTO(YUO(e!mO~O(y$}On%ai!Q%ai\x27y%ai(z%ai!]%ai#`%ai~Og%ai$O%ai~P%5oO(z%POn%ci!Q%ci\x27y%ci(y%ci!]%ci#`%ci~Og%ci$O%ci~P%6bOg(_i!](_i~P!1WO#`5QOg(_i!](_i~P!1WO!k5VO~Oa$oq!]$oq\x27z$oq\x27w$oq!Y$oq!k$oqv$oq!_$oq%i$oq!g$oq~P!:tO!Y5ZO~O!]5[O!_)QX~P#/sOa$zX!_$zX%^]X\x27z$zX!]$zX~P!0SO%^5_OaoX!_oX\x27zoX!]oX~P$#OOp5`O(T#nO~O%^5_O~Ob5fO%j5gO(T+qO(VTO(YUO!]\x27tX!^\x27tX~O!]1TO!^)Xa~O[5kO~O`5lO~O[5pO~Oa%nO\x27z%nO~P#/sO!]5uO#`5wO!^)UX~O!^5xO~Or6OOs!nO!S*iO!b!yO!c!vO!d!vO!|<VO#T!pO#U!pO#V!pO#W!pO#X!pO#[5}O#]!zO(U!lO(VTO(YUO(e!mO(o!sO~O!^5|O~P%;eOn6TO!_1oO%i6SO~Oh%VOn6TO!_1oO%i6SO~Ob6[O(T#nO(VTO(YUO!]\x27sX!^\x27sX~O!]1zO!^)Va~O(VTO(YUO(e6^O~O`6bO~Oj6eO&[6fO~PNXO!k6gO~P%[Oa6iO~Oa6iO~P%[Ob2bO!^6nO&j2aO~P`O!g6pO~O!g6rOh(ji!](ji!^(ji!g(ji!l(jir(ji(r(ji~O!]#hi!^#hi~P#BwO#`6sO!]#hi!^#hi~O!]!ai!^!ai~P#BwOa%nO#`6|O\x27z%nO~Oa%nO!g#vO#`6|O\x27z%nO~O!](tq!k(tqa(tq\x27z(tq~P!:tO!](jO!k(sq~O!S%hO!_%iO#j7TO(T%gO~O!_\x27`O%i7WO~On7[O!_\x27`O%i7WO~O#k\x27iaP\x27iaR\x27ia[\x27iaa\x27iaj\x27iar\x27ia!S\x27ia!l\x27ia!p\x27ia#R\x27ia#n\x27ia#o\x27ia#p\x27ia#q\x27ia#r\x27ia#s\x27ia#t\x27ia#u\x27ia#v\x27ia#x\x27ia#z\x27ia#{\x27ia\x27z\x27ia(a\x27ia(r\x27ia!k\x27ia!Y\x27ia\x27w\x27iav\x27ia!_\x27ia%i\x27ia!g\x27ia~P%-fO#k\x27kaP\x27kaR\x27ka[\x27kaa\x27kaj\x27kar\x27ka!S\x27ka!l\x27ka!p\x27ka#R\x27ka#n\x27ka#o\x27ka#p\x27ka#q\x27ka#r\x27ka#s\x27ka#t\x27ka#u\x27ka#v\x27ka#x\x27ka#z\x27ka#{\x27ka\x27z\x27ka(a\x27ka(r\x27ka!k\x27ka!Y\x27ka\x27w\x27kav\x27ka!_\x27ka%i\x27ka!g\x27ka~P%.XO#k$|iP$|iR$|i[$|ia$|ij$|ir$|i!S$|i!]$|i!l$|i!p$|i#R$|i#n$|i#o$|i#p$|i#q$|i#r$|i#s$|i#t$|i#u$|i#v$|i#x$|i#z$|i#{$|i\x27z$|i(a$|i(r$|i!k$|i!Y$|i\x27w$|i#`$|iv$|i!_$|i%i$|i!g$|i~P#/sO#k%aiP%aiR%ai[%aia%aij%air%ai!S%ai!l%ai!p%ai#R%ai#n%ai#o%ai#p%ai#q%ai#r%ai#s%ai#t%ai#u%ai#v%ai#x%ai#z%ai#{%ai\x27z%ai(a%ai(r%ai!k%ai!Y%ai\x27w%aiv%ai!_%ai%i%ai!g%ai~P%5oO#k%ciP%ciR%ci[%cia%cij%cir%ci!S%ci!l%ci!p%ci#R%ci#n%ci#o%ci#p%ci#q%ci#r%ci#s%ci#t%ci#u%ci#v%ci#x%ci#z%ci#{%ci\x27z%ci(a%ci(r%ci!k%ci!Y%ci\x27w%civ%ci!_%ci%i%ci!g%ci~P%6bO!]\x27Ya!k\x27Ya~P!:tO!].tO!k(ki~O$O#ci!]#ci!^#ci~P#BwOP$[OR#zO!Q#yO!S#{O!l#xO!p$[O(aVO[#mij#mir#mi#R#mi#o#mi#p#mi#q#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi$O#mi(r#mi(y#mi(z#mi!]#mi!^#mi~O#n#mi~P%NdO#n<_O~P%NdOP$[OR#zOr<kO!Q#yO!S#{O!l#xO!p$[O#n<_O#o<`O#p<`O#q<`O(aVO[#mij#mi#R#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi$O#mi(r#mi(y#mi(z#mi!]#mi!^#mi~O#r#mi~P&!lO#r<aO~P&!lOP$[OR#zO[<mOj<bOr<kO!Q#yO!S#{O!l#xO!p$[O#R<bO#n<_O#o<`O#p<`O#q<`O#r<aO#s<bO#t<bO#u<lO(aVO#x#mi#z#mi#{#mi$O#mi(r#mi(y#mi(z#mi!]#mi!^#mi~O#v#mi~P&$tOP$[OR#zO[<mOj<bOr<kO!Q#yO!S#{O!l#xO!p$[O#R<bO#n<_O#o<`O#p<`O#q<`O#r<aO#s<bO#t<bO#u<lO#v<cO(aVO(z#}O#z#mi#{#mi$O#mi(r#mi(y#mi!]#mi!^#mi~O#x<eO~P&&uO#x#mi~P&&uO#v<cO~P&$tOP$[OR#zO[<mOj<bOr<kO!Q#yO!S#{O!l#xO!p$[O#R<bO#n<_O#o<`O#p<`O#q<`O#r<aO#s<bO#t<bO#u<lO#v<cO#x<eO(aVO(y#|O(z#}O#{#mi$O#mi(r#mi!]#mi!^#mi~O#z#mi~P&)UO#z<gO~P&)UOa#|y!]#|y\x27z#|y\x27w#|y!Y#|y!k#|yv#|y!_#|y%i#|y!g#|y~P!:tO[#mij#mir#mi#R#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi$O#mi(r#mi!]#mi!^#mi~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O#n<_O#o<`O#p<`O#q<`O(aVO(y#mi(z#mi~P&,QOn>^O!Q*OO\x27y*PO(y$}O(z%POP#miR#mi!S#mi!l#mi!p#mi#n#mi#o#mi#p#mi#q#mi(a#mi~P&,QO#S$dOP(`XR(`X[(`Xj(`Xn(`Xr(`X!Q(`X!S(`X!l(`X!p(`X#R(`X#n(`X#o(`X#p(`X#q(`X#r(`X#s(`X#t(`X#u(`X#v(`X#x(`X#z(`X#{(`X$O(`X\x27y(`X(a(`X(r(`X(y(`X(z(`X!](`X!^(`X~O$O$Pi!]$Pi!^$Pi~P#BwO$O!ri!^!ri~P$+oOg\x27]a!]\x27]a~P!1WO!^7nO~O!]\x27da!^\x27da~P#BwO!Y7oO~P#/sO!g#vO(r\x27pO!]\x27ea!k\x27ea~O!]/pO!k)Oi~O!]/pO!g#vO!k)Oi~Og$|q!]$|q#`$|q$O$|q~P!1WO!Y\x27ga!]\x27ga~P#/sO!g7vO~O!]/yO!Y)Pi~P#/sO!]/yO!Y)Pi~O!Y7yO~Oh%VOr8OO!l%eO(r\x27pO~Oj8QO!g#vO~Or8TO!g#vO(r\x27pO~O!Q*OO\x27y*PO(z%POn\x27ja(y\x27ja!]\x27ja#`\x27ja~Og\x27ja$O\x27ja~P&5RO!Q*OO\x27y*POn\x27la(y\x27la(z\x27la!]\x27la#`\x27la~Og\x27la$O\x27la~P&5tOg(_q!](_q~P!1WO#`8VOg(_q!](_q~P!1WO!Y8WO~Og%Oq!]%Oq#`%Oq$O%Oq~P!1WOa$oy!]$oy\x27z$oy\x27w$oy!Y$oy!k$oyv$oy!_$oy%i$oy!g$oy~P!:tO!g6rO~O!]5[O!_)Qa~O!_\x27`OP$TaR$Ta[$Taj$Tar$Ta!Q$Ta!S$Ta!]$Ta!l$Ta!p$Ta#R$Ta#n$Ta#o$Ta#p$Ta#q$Ta#r$Ta#s$Ta#t$Ta#u$Ta#v$Ta#x$Ta#z$Ta#{$Ta(a$Ta(r$Ta(y$Ta(z$Ta~O%i7WO~P&8fO%^8[Oa%[i!_%[i\x27z%[i!]%[i~Oa#cy!]#cy\x27z#cy\x27w#cy!Y#cy!k#cyv#cy!_#cy%i#cy!g#cy~P!:tO[8^O~Ob8`O(T+qO(VTO(YUO~O!]1TO!^)Xi~O`8dO~O(e(|O!]\x27pX!^\x27pX~O!]5uO!^)Ua~O!^8nO~P%;eO(o!sO~P$&YO#[8oO~O!_1oO~O!_1oO%i8qO~On8tO!_1oO%i8qO~O[8yO!]\x27sa!^\x27sa~O!]1zO!^)Vi~O!k8}O~O!k9OO~O!k9RO~O!k9RO~P%[Oa9TO~O!g9UO~O!k9VO~O!](wi!^(wi~P#BwOa%nO#`9_O\x27z%nO~O!](ty!k(tya(ty\x27z(ty~P!:tO!](jO!k(sy~O%i9bO~P&8fO!_\x27`O%i9bO~O#k$|qP$|qR$|q[$|qa$|qj$|qr$|q!S$|q!]$|q!l$|q!p$|q#R$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#t$|q#u$|q#v$|q#x$|q#z$|q#{$|q\x27z$|q(a$|q(r$|q!k$|q!Y$|q\x27w$|q#`$|qv$|q!_$|q%i$|q!g$|q~P#/sO#k\x27jaP\x27jaR\x27ja[\x27jaa\x27jaj\x27jar\x27ja!S\x27ja!l\x27ja!p\x27ja#R\x27ja#n\x27ja#o\x27ja#p\x27ja#q\x27ja#r\x27ja#s\x27ja#t\x27ja#u\x27ja#v\x27ja#x\x27ja#z\x27ja#{\x27ja\x27z\x27ja(a\x27ja(r\x27ja!k\x27ja!Y\x27ja\x27w\x27jav\x27ja!_\x27ja%i\x27ja!g\x27ja~P&5RO#k\x27laP\x27laR\x27la[\x27laa\x27laj\x27lar\x27la!S\x27la!l\x27la!p\x27la#R\x27la#n\x27la#o\x27la#p\x27la#q\x27la#r\x27la#s\x27la#t\x27la#u\x27la#v\x27la#x\x27la#z\x27la#{\x27la\x27z\x27la(a\x27la(r\x27la!k\x27la!Y\x27la\x27w\x27lav\x27la!_\x27la%i\x27la!g\x27la~P&5tO#k%OqP%OqR%Oq[%Oqa%Oqj%Oqr%Oq!S%Oq!]%Oq!l%Oq!p%Oq#R%Oq#n%Oq#o%Oq#p%Oq#q%Oq#r%Oq#s%Oq#t%Oq#u%Oq#v%Oq#x%Oq#z%Oq#{%Oq\x27z%Oq(a%Oq(r%Oq!k%Oq!Y%Oq\x27w%Oq#`%Oqv%Oq!_%Oq%i%Oq!g%Oq~P#/sO!]\x27Yi!k\x27Yi~P!:tO$O#cq!]#cq!^#cq~P#BwO(y$}OP%aaR%aa[%aaj%aar%aa!S%aa!l%aa!p%aa#R%aa#n%aa#o%aa#p%aa#q%aa#r%aa#s%aa#t%aa#u%aa#v%aa#x%aa#z%aa#{%aa$O%aa(a%aa(r%aa!]%aa!^%aa~On%aa!Q%aa\x27y%aa(z%aa~P&IyO(z%POP%caR%ca[%caj%car%ca!S%ca!l%ca!p%ca#R%ca#n%ca#o%ca#p%ca#q%ca#r%ca#s%ca#t%ca#u%ca#v%ca#x%ca#z%ca#{%ca$O%ca(a%ca(r%ca!]%ca!^%ca~On%ca!Q%ca\x27y%ca(y%ca~P&LQOn>^O!Q*OO\x27y*PO(z%PO~P&IyOn>^O!Q*OO\x27y*PO(y$}O~P&LQOR0kO!Q0kO!S0lO#S$dOP}a[}aj}an}ar}a!l}a!p}a#R}a#n}a#o}a#p}a#q}a#r}a#s}a#t}a#u}a#v}a#x}a#z}a#{}a$O}a\x27y}a(a}a(r}a(y}a(z}a!]}a!^}a~O!Q*OO\x27y*POP$saR$sa[$saj$san$sar$sa!S$sa!l$sa!p$sa#R$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#t$sa#u$sa#v$sa#x$sa#z$sa#{$sa$O$sa(a$sa(r$sa(y$sa(z$sa!]$sa!^$sa~O!Q*OO\x27y*POP$uaR$ua[$uaj$uan$uar$ua!S$ua!l$ua!p$ua#R$ua#n$ua#o$ua#p$ua#q$ua#r$ua#s$ua#t$ua#u$ua#v$ua#x$ua#z$ua#{$ua$O$ua(a$ua(r$ua(y$ua(z$ua!]$ua!^$ua~On>^O!Q*OO\x27y*PO(y$}O(z%PO~OP%TaR%Ta[%Taj%Tar%Ta!S%Ta!l%Ta!p%Ta#R%Ta#n%Ta#o%Ta#p%Ta#q%Ta#r%Ta#s%Ta#t%Ta#u%Ta#v%Ta#x%Ta#z%Ta#{%Ta$O%Ta(a%Ta(r%Ta!]%Ta!^%Ta~P\x27\x27VO$O$mq!]$mq!^$mq~P#BwO$O$oq!]$oq!^$oq~P#BwO!^9oO~O$O9pO~P!1WO!g#vO!]\x27ei!k\x27ei~O!g#vO(r\x27pO!]\x27ei!k\x27ei~O!]/pO!k)Oq~O!Y\x27gi!]\x27gi~P#/sO!]/yO!Y)Pq~Or9wO!g#vO(r\x27pO~O[9yO!Y9xO~P#/sO!Y9xO~Oj:PO!g#vO~Og(_y!](_y~P!1WO!]\x27na!_\x27na~P#/sOa%[q!_%[q\x27z%[q!]%[q~P#/sO[:UO~O!]1TO!^)Xq~O`:YO~O#`:ZO!]\x27pa!^\x27pa~O!]5uO!^)Ui~P#BwO!S:]O~O!_1oO%i:`O~O(VTO(YUO(e:eO~O!]1zO!^)Vq~O!k:hO~O!k:iO~O!k:jO~O!k:jO~P%[O#`:mO!]#hy!^#hy~O!]#hy!^#hy~P#BwO%i:rO~P&8fO!_\x27`O%i:rO~O$O#|y!]#|y!^#|y~P#BwOP$|iR$|i[$|ij$|ir$|i!S$|i!l$|i!p$|i#R$|i#n$|i#o$|i#p$|i#q$|i#r$|i#s$|i#t$|i#u$|i#v$|i#x$|i#z$|i#{$|i$O$|i(a$|i(r$|i!]$|i!^$|i~P\x27\x27VO!Q*OO\x27y*PO(z%POP\x27iaR\x27ia[\x27iaj\x27ian\x27iar\x27ia!S\x27ia!l\x27ia!p\x27ia#R\x27ia#n\x27ia#o\x27ia#p\x27ia#q\x27ia#r\x27ia#s\x27ia#t\x27ia#u\x27ia#v\x27ia#x\x27ia#z\x27ia#{\x27ia$O\x27ia(a\x27ia(r\x27ia(y\x27ia!]\x27ia!^\x27ia~O!Q*OO\x27y*POP\x27kaR\x27ka[\x27kaj\x27kan\x27kar\x27ka!S\x27ka!l\x27ka!p\x27ka#R\x27ka#n\x27ka#o\x27ka#p\x27ka#q\x27ka#r\x27ka#s\x27ka#t\x27ka#u\x27ka#v\x27ka#x\x27ka#z\x27ka#{\x27ka$O\x27ka(a\x27ka(r\x27ka(y\x27ka(z\x27ka!]\x27ka!^\x27ka~O(y$}OP%aiR%ai[%aij%ain%air%ai!Q%ai!S%ai!l%ai!p%ai#R%ai#n%ai#o%ai#p%ai#q%ai#r%ai#s%ai#t%ai#u%ai#v%ai#x%ai#z%ai#{%ai$O%ai\x27y%ai(a%ai(r%ai(z%ai!]%ai!^%ai~O(z%POP%ciR%ci[%cij%cin%cir%ci!Q%ci!S%ci!l%ci!p%ci#R%ci#n%ci#o%ci#p%ci#q%ci#r%ci#s%ci#t%ci#u%ci#v%ci#x%ci#z%ci#{%ci$O%ci\x27y%ci(a%ci(r%ci(y%ci!]%ci!^%ci~O$O$oy!]$oy!^$oy~P#BwO$O#cy!]#cy!^#cy~P#BwO!g#vO!]\x27eq!k\x27eq~O!]/pO!k)Oy~O!Y\x27gq!]\x27gq~P#/sOr:|O!g#vO(r\x27pO~O[;QO!Y;PO~P#/sO!Y;PO~Og(_!R!](_!R~P!1WOa%[y!_%[y\x27z%[y!]%[y~P#/sO!]1TO!^)Xy~O!]5uO!^)Uq~O(T;XO~O!_1oO%i;[O~O!k;_O~O%i;dO~P&8fOP$|qR$|q[$|qj$|qr$|q!S$|q!l$|q!p$|q#R$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#t$|q#u$|q#v$|q#x$|q#z$|q#{$|q$O$|q(a$|q(r$|q!]$|q!^$|q~P\x27\x27VO!Q*OO\x27y*PO(z%POP\x27jaR\x27ja[\x27jaj\x27jan\x27jar\x27ja!S\x27ja!l\x27ja!p\x27ja#R\x27ja#n\x27ja#o\x27ja#p\x27ja#q\x27ja#r\x27ja#s\x27ja#t\x27ja#u\x27ja#v\x27ja#x\x27ja#z\x27ja#{\x27ja$O\x27ja(a\x27ja(r\x27ja(y\x27ja!]\x27ja!^\x27ja~O!Q*OO\x27y*POP\x27laR\x27la[\x27laj\x27lan\x27lar\x27la!S\x27la!l\x27la!p\x27la#R\x27la#n\x27la#o\x27la#p\x27la#q\x27la#r\x27la#s\x27la#t\x27la#u\x27la#v\x27la#x\x27la#z\x27la#{\x27la$O\x27la(a\x27la(r\x27la(y\x27la(z\x27la!]\x27la!^\x27la~OP%OqR%Oq[%Oqj%Oqr%Oq!S%Oq!l%Oq!p%Oq#R%Oq#n%Oq#o%Oq#p%Oq#q%Oq#r%Oq#s%Oq#t%Oq#u%Oq#v%Oq#x%Oq#z%Oq#{%Oq$O%Oq(a%Oq(r%Oq!]%Oq!^%Oq~P\x27\x27VOg%e!Z!]%e!Z#`%e!Z$O%e!Z~P!1WO!Y;hO~P#/sOr;iO!g#vO(r\x27pO~O[;kO!Y;hO~P#/sO!]\x27pq!^\x27pq~P#BwO!]#h!Z!^#h!Z~P#BwO#k%e!ZP%e!ZR%e!Z[%e!Za%e!Zj%e!Zr%e!Z!S%e!Z!]%e!Z!l%e!Z!p%e!Z#R%e!Z#n%e!Z#o%e!Z#p%e!Z#q%e!Z#r%e!Z#s%e!Z#t%e!Z#u%e!Z#v%e!Z#x%e!Z#z%e!Z#{%e!Z\x27z%e!Z(a%e!Z(r%e!Z!k%e!Z!Y%e!Z\x27w%e!Z#`%e!Zv%e!Z!_%e!Z%i%e!Z!g%e!Z~P#/sOr;tO!g#vO(r\x27pO~O!Y;uO~P#/sOr;|O!g#vO(r\x27pO~O!Y;}O~P#/sOP%e!ZR%e!Z[%e!Zj%e!Zr%e!Z!S%e!Z!l%e!Z!p%e!Z#R%e!Z#n%e!Z#o%e!Z#p%e!Z#q%e!Z#r%e!Z#s%e!Z#t%e!Z#u%e!Z#v%e!Z#x%e!Z#z%e!Z#{%e!Z$O%e!Z(a%e!Z(r%e!Z!]%e!Z!^%e!Z~P\x27\x27VOr<QO!g#vO(r\x27pO~Ov(fX~P1qO!Q%rO~P!)[O(U!lO~P!)[O!YfX!]fX#`fX~P%2OOP]XR]X[]Xj]Xr]X!Q]X!S]X!]]X!]fX!l]X!p]X#R]X#S]X#`]X#`fX#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X(a]X(r]X(y]X(z]X~O!gfX!k]X!kfX(rfX~P\x27LTOP<UOQ<UOSfOd>ROe!iOpkOr<UOskOtkOzkO|<UO!O<UO!SWO!WkO!XkO!_XO!i<XO!lZO!o<UO!p<UO!q<UO!s<YO!u<]O!x!hO$W!kO$n>PO(T)]O(VTO(YUO(aVO(o[O~O!]<iO!^$qa~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<tO!S${O!_$|O!i>WO!l$xO#j<zO$W%`O$t<vO$v<xO$y%aO(T(vO(VTO(YUO(a$uO(y$}O(z%PO~Ol)dO~P(!yOr!eX(r!eX~P#!iOr(jX(r(jX~P##[O!^]X!^fX~P\x27LTO!YfX!Y$zX!]fX!]$zX#`fX~P!0SO#k<^O~O!g#vO#k<^O~O#`<nO~Oj<bO~O#`=OO!](wX!^(wX~O#`<nO!](uX!^(uX~O#k=PO~Og=RO~P!1WO#k=XO~O#k=YO~Og=RO(T&ZO~O!g#vO#k=ZO~O!g#vO#k=PO~O$O=[O~P#BwO#k=]O~O#k=^O~O#k=cO~O#k=dO~O#k=eO~O#k=fO~O$O=gO~P!1WO$O=hO~P!1WOl=sO~P7eOk#S#T#U#W#X#[#i#j#u$n$t$v$y%]%^%h%i%j%q%s%v%w%y%{~(OT#o!X\x27|(U#ps#n#qr!Q\x27}$]\x27}(T$_(e~','goto':'$9Y)]PPPPPP)^PP)aP)rP+W/]PPPP6mPP7TPP=QPPP@tPA^PA^PPPA^PCfPA^PA^PA^PCjPCoPD^PIWPPPI[PPPPI[L_PPPLeMVPI[PI[PP!\x20eI[PPPI[PI[P!#lI[P!\x27S!(X!(bP!)U!)Y!)U!,gPPPPPPP!-W!(XPP!-h!/YP!2iI[I[!2n!5z!:h!:h!>gPPP!>oI[PPPPPPPPP!BOP!C]PPI[!DnPI[PI[I[I[I[I[PI[!FQP!I[P!LbP!Lf!Lp!Lt!LtP!IXP!Lx!LxP#!OP#!SI[PI[#!Y#%_CjA^PA^PA^A^P#&lA^A^#)OA^#+vA^#.SA^A^#.r#1W#1W#1]#1f#1W#1qPP#1WPA^#2ZA^#6YA^A^6mPPP#:_PPP#:x#:xP#:xP#;`#:xPP#;fP#;]P#;]#;y#;]#<e#<k#<n)aP#<q)aP#<z#<z#<zP)aP)aP)aP)aPP)aP#=Q#=TP#=T)aP#=XP#=[P)aP)aP)aP)aP)aP)a)aPP#=b#=h#=s#=y#>P#>V#>]#>k#>q#>{#?R#?]#?c#?s#?y#@k#@}#AT#AZ#Ai#BO#Cs#DR#DY#Et#FS#Gt#HS#HY#H`#Hf#Hp#Hv#H|#IW#Ij#IpPPPPPPPPPPP#IvPPPPPPP#Jk#Mx$\x20b$\x20i$\x20qPPP$\x27]P$\x27f$*_$0x$0{$1O$1}$2Q$2X$2aP$2g$2jP$3W$3[$4S$5b$5g$5}PP$6S$6Y$6^$6a$6e$6i$7e$7|$8e$8i$8l$8o$8y$8|$9Q$9UR!|RoqOXst!Z#d%m&r&t&u&w,s,x2[2_Y!vQ\x27`-e1o5{Q%tvQ%|yQ&T|Q&j!VS\x27W!e-]Q\x27f!iS\x27l!r!yU*k$|*Z*oQ+o%}S+|&V&WQ,d&dQ-c\x27_Q-m\x27gQ-u\x27mQ0[*qQ1b,OQ1y,eR<{<Y%SdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&r&t&u&w&{\x27T\x27b\x27r(T(V(](d(x(z)O)}*i+X+],p,s,x-i-q.P.V.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3l4z6T6e6f6i6|8t9T9_S#q]<V!r)_$Z$n\x27X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SU+P%]<s<tQ+t&PQ,f&gQ,m&oQ0x+gQ0}+iQ1Y+uQ2R,kQ3`.gQ5`0|Q5f1TQ6[1zQ7Y3dQ8`5gR9e7[\x27QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{\x27T\x27X\x27b\x27r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>S!S!nQ!r!v!y!z$|\x27W\x27_\x27`\x27l\x27m\x27n*k*o*q*r-]-c-e-u0[0_1o5{5}%[$ti#v$b$c$d$x${%O%Q%^%_%c)y*R*T*V*Y*a*g*w*x+f+i,S,V.f/P/d/m/x/y/{0`0b0i0j0o1f1i1q3c4^4_4j4o5Q5[5_6S7W7v8Q8V8[8q9b9p9y:P:`:r;Q;[;d;k<l<m<o<p<q<r<u<v<w<x<y<z=S=T=U=V=X=Y=]=^=_=`=a=b=c=d=g=h>P>X>Y>]>^Q&X|Q\x27U!eS\x27[%i-`Q+t&PQ,P&WQ,f&gQ0n+SQ1Y+uQ1_+{Q2Q,jQ2R,kQ5f1TQ5o1aQ6[1zQ6_1|Q6`2PQ8`5gQ8c5lQ8|6bQ:X8dQ:f8yQ;V:YR<}*ZrnOXst!V!Z#d%m&i&r&t&u&w,s,x2[2_R,h&k&z^OPXYstuvwz!Z!`!g!j!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{\x27T\x27b\x27r(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>R>S[#]WZ#W#Z\x27X(T!b%jm#h#i#l$x%e%h(^(h(i(j*Y*^*b+Z+[+^,o-V.T.Z.[.]._/m/p2d3[3]4a6r7TQ%wxQ%{yW&Q|&V&W,OQ&_!TQ\x27c!hQ\x27e!iQ(q#sS+n%|%}Q+r&PQ,_&bQ,c&dS-l\x27f\x27gQ.i(rQ1R+oQ1X+uQ1Z+vQ1^+zQ1t,`S1x,d,eQ2|-mQ5e1TQ5i1WQ5n1`Q6Z1yQ8_5gQ8b5kQ8f5pQ:T8^R;T:U!U$zi$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Y!^%yy!i!u%{%|%}\x27V\x27e\x27f\x27g\x27k\x27u*j+n+o-Y-l-m-t0R0U1R2u2|3T4r4s4v7}9{Q+h%wQ,T&[Q,W&]Q,b&dQ.h(qQ1s,_U1w,c,d,eQ3e.iQ6U1tS6Y1x1yQ8x6Z#f>T#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^o>U<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=hW%Ti%V*y>PS&[!Q&iQ&]!RQ&^!SU*}%[%d=sR,R&Y%]%Si#v$b$c$d$x${%O%Q%^%_%c)y*R*T*V*Y*a*g*w*x+f+i,S,V.f/P/d/m/x/y/{0`0b0i0j0o1f1i1q3c4^4_4j4o5Q5[5_6S7W7v8Q8V8[8q9b9p9y:P:`:r;Q;[;d;k<l<m<o<p<q<r<u<v<w<x<y<z=S=T=U=V=X=Y=]=^=_=`=a=b=c=d=g=h>P>X>Y>]>^T)z$u){V+P%]<s<tW\x27[!e%i*Z-`S(}#y#zQ+c%rQ+y&SS.b(m(nQ1j,XQ5T0kR8i5u\x27QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{\x27T\x27X\x27b\x27r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>S$i$^c#Y#e%q%s%u(S(Y(t(y)R)S)T)U)V)W)X)Y)Z)[)^)`)b)g)q+d+x-Z-x-}.S.U.s.v.z.|.}/O/b0p2k2n3O3V3k3p3q3r3s3t3u3v3w3x3y3z3{3|4P4Q4X5X5c6u6{7Q7a7b7k7l8k9X9]9g9m9n:o;W;`<W=vT#TV#U\x27RkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{\x27T\x27X\x27b\x27r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SQ\x27Y!eR2q-]!W!nQ!e!r!v!y!z$|\x27W\x27_\x27`\x27l\x27m\x27n*Z*k*o*q*r-]-c-e-u0[0_1o5{5}R1l,ZnqOXst!Z#d%m&r&t&u&w,s,x2[2_Q&y!^Q\x27v!xS(s#u<^Q+l%zQ,]&_Q,^&aQ-j\x27dQ-w\x27oS.r(x=PS0q+X=ZQ1P+mQ1n,[Q2c,zQ2e,{Q2m-WQ2z-kQ2}-oS5Y0r=eQ5a1QS5d1S=fQ6t2oQ6x2{Q6}3SQ8]5bQ9Y6vQ9Z6yQ9^7OR:l9V$d$]c#Y#e%s%u(S(Y(t(y)R)S)T)U)V)W)X)Y)Z)[)^)`)b)g)q+d+x-Z-x-}.S.U.s.v.z.}/O/b0p2k2n3O3V3k3p3q3r3s3t3u3v3w3x3y3z3{3|4P4Q4X5X5c6u6{7Q7a7b7k7l8k9X9]9g9m9n:o;W;`<W=vS(o#p\x27iQ)P#zS+b%q.|S.c(n(pR3^.d\x27QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{\x27T\x27X\x27b\x27r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SS#q]<VQ&t!XQ&u!YQ&w![Q&x!]R2Z,vQ\x27a!hQ+e%wQ-h\x27cS.e(q+hQ2x-gW3b.h.i0w0yQ6w2yW7U3_3a3e5^U9a7V7X7ZU:q9c9d9fS;b:p:sQ;p;cR;x;qU!wQ\x27`-eT5y1o5{!Q_OXZ`st!V!Z#d#h%e%m&i&k&r&t&u&w(j,s,x.[2[2_]!pQ!r\x27`-e1o5{T#q]<V%^{OPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{\x27T\x27b\x27r(T(V(](d(x(z)O)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_S(}#y#zS.b(m(n!s=l$Z$n\x27X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SU$fd)_,mS(p#p\x27iU*v%R(w4OU0m+O.n7gQ5^0xQ7V3`Q9d7YR:s9em!tQ!r!v!y!z\x27`\x27l\x27m\x27n-e-u1o5{5}Q\x27t!uS(f#g2US-s\x27k\x27wQ/s*]Q0R*jQ3U-vQ4f/tQ4r0TQ4s0UQ4x0^Q7r4`S7}4t4vS8R4y4{Q9r7sQ9v7yQ9{8OQ:Q8TS:{9w9xS;g:|;PS;s;h;iS;{;t;uS<P;|;}R<S<QQ#wbQ\x27s!uS(e#g2US(g#m+WQ+Y%fQ+j%xQ+p&OU-r\x27k\x27t\x27wQ.W(fU/r*]*`/wQ0S*jQ0V*lQ1O+kQ1u,aS3R-s-vQ3Z.`S4e/s/tQ4n0PS4q0R0^Q4u0WQ6W1vQ7P3US7q4`4bQ7u4fU7|4r4x4{Q8P4wQ8v6XS9q7r7sQ9u7yQ9}8RQ:O8SQ:c8wQ:y9rS:z9v9xQ;S:QQ;^:dS;f:{;PS;r;g;hS;z;s;uS<O;{;}Q<R<PQ<T<SQ=o=jQ={=tR=|=uV!wQ\x27`-e%^aOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{\x27T\x27b\x27r(T(V(](d(x(z)O)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_S#wz!j!r=i$Z$n\x27X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SR=o>R%^bOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{\x27T\x27b\x27r(T(V(](d(x(z)O)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_Q%fj!^%xy!i!u%{%|%}\x27V\x27e\x27f\x27g\x27k\x27u*j+n+o-Y-l-m-t0R0U1R2u2|3T4r4s4v7}9{S&Oz!jQ+k%yQ,a&dW1v,b,c,d,eU6X1w1x1yS8w6Y6ZQ:d8x!r=j$Z$n\x27X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SQ=t>QR=u>R%QeOPXYstuvw!Z!`!g!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&r&t&u&w&{\x27T\x27b\x27r(V(](d(x(z)O)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_Y#bWZ#W#Z(T!b%jm#h#i#l$x%e%h(^(h(i(j*Y*^*b+Z+[+^,o-V.T.Z.[.]._/m/p2d3[3]4a6r7TQ,n&o!p=k$Z$n)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SR=n\x27XU\x27]!e%i*ZR2s-`%SdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&r&t&u&w&{\x27T\x27b\x27r(T(V(](d(x(z)O)}*i+X+],p,s,x-i-q.P.V.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3l4z6T6e6f6i6|8t9T9_!r)_$Z$n\x27X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SQ,m&oQ0x+gQ3`.gQ7Y3dR9e7[!b$Tc#Y%q(S(Y(t(y)Z)[)`)g+x-x-}.S.U.s.v/b0p3O3V3k3{5X5c6{7Q7a9]:o<W!P<d)^)q-Z.|2k2n3p3y3z4P4X6u7b7k7l8k9X9g9m9n;W;`=v!f$Vc#Y%q(S(Y(t(y)W)X)Z)[)`)g+x-x-}.S.U.s.v/b0p3O3V3k3{5X5c6{7Q7a9]:o<W!T<f)^)q-Z.|2k2n3p3v3w3y3z4P4X6u7b7k7l8k9X9g9m9n;W;`=v!^$Zc#Y%q(S(Y(t(y)`)g+x-x-}.S.U.s.v/b0p3O3V3k3{5X5c6{7Q7a9]:o<WQ4_/kz>S)^)q-Z.|2k2n3p4P4X6u7b7k7l8k9X9g9m9n;W;`=vQ>X>ZR>Y>[\x27QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{\x27T\x27X\x27b\x27r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SS$oh$pR4U/U\x27XgOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%m%t&R&k&n&o&r&t&u&w&{\x27T\x27X\x27b\x27r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/U/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>ST$kf$qQ$ifS)j$l)nR)v$qT$jf$qT)l$l)n\x27XhOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%m%t&R&k&n&o&r&t&u&w&{\x27T\x27X\x27b\x27r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/U/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>ST$oh$pQ$rhR)u$p%^jOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{\x27T\x27b\x27r(T(V(](d(x(z)O)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_!s>Q$Z$n\x27X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>S#glOPXZst!Z!`!o#S#d#o#{$n%m&k&n&o&r&t&u&w&{\x27T\x27b)O)s*i+]+g,p,s,x-i.g/V/n0]0l1r2S2T2V2X2[2_2a3d4T4z6T6e6f6i7[8t9T!U%Ri$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Y#f(w#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^Q+T%aQ/c*Oo4O<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=h!U$yi$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>YQ*c$zU*l$|*Z*oQ+U%bQ0W*m#f=q#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^n=r<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=hQ=w>TQ=x>UQ=y>VR=z>W!U%Ri$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Y#f(w#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^o4O<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=hnoOXst!Z#d%m&r&t&u&w,s,x2[2_S*f${*YQ-R\x27OQ-S\x27QR4i/y%[%Si#v$b$c$d$x${%O%Q%^%_%c)y*R*T*V*Y*a*g*w*x+f+i,S,V.f/P/d/m/x/y/{0`0b0i0j0o1f1i1q3c4^4_4j4o5Q5[5_6S7W7v8Q8V8[8q9b9p9y:P:`:r;Q;[;d;k<l<m<o<p<q<r<u<v<w<x<y<z=S=T=U=V=X=Y=]=^=_=`=a=b=c=d=g=h>P>X>Y>]>^Q,U&]Q1h,WQ5s1gR8h5tV*n$|*Z*oU*n$|*Z*oT5z1o5{S0P*i/nQ4w0]T8S4z:]Q+j%xQ0V*lQ1O+kQ1u,aQ6W1vQ8v6XQ:c8wR;^:d!U%Oi$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Yx*R$v)e*S*u+V/v0d0e4R4g5R5S5W7p8U:R:x=p=}>OS0`*t0a#f<o#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^n<p<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=h!d=S(u)c*[*e.j.m.q/_/k/|0v1e3h4[4h4l5r7]7`7w7z8X8Z9t9|:S:};R;e;j;v>Z>[`=T3}7c7f7j9h:t:w;yS=_.l3iT=`7e9k!U%Qi$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Y|*T$v)e*U*t+V/g/v0d0e4R4g4|5R5S5W7p8U:R:x=p=}>OS0b*u0c#f<q#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^n<r<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=h!h=U(u)c*[*e.k.l.q/_/k/|0v1e3f3h4[4h4l5r7]7^7`7w7z8X8Z9t9|:S:};R;e;j;v>Z>[d=V3}7d7e7j9h9i:t:u:w;yS=a.m3jT=b7f9lrnOXst!V!Z#d%m&i&r&t&u&w,s,x2[2_Q&f!UR,p&ornOXst!V!Z#d%m&i&r&t&u&w,s,x2[2_R&f!UQ,Y&^R1d,RsnOXst!V!Z#d%m&i&r&t&u&w,s,x2[2_Q1p,_S6R1s1tU8p6P6Q6US:_8r8sS;Y:^:aQ;m;ZR;w;nQ&m!VR,i&iR6_1|R:f8yW&Q|&V&W,OR1Z+vQ&r!WR,s&sR,y&xT2],x2_R,}&yQ,|&yR2f,}Q\x27y!{R-y\x27ySsOtQ#dXT%ps#dQ#OTR\x27{#OQ#RUR\x27}#RQ){$uR/`){Q#UVR(Q#UQ#XWU(W#X(X.QQ(X#YR.Q(YQ-^\x27YR2r-^Q.u(yS3m.u3nR3n.vQ-e\x27`R2v-eY!rQ\x27`-e1o5{R\x27j!rQ/Q)eR4S/QU#_W%h*YU(_#_(`.RQ(`#`R.R(ZQ-a\x27]R2t-at`OXst!V!Z#d%m&i&k&r&t&u&w,s,x2[2_S#hZ%eU#r`#h.[R.[(jQ(k#jQ.X(gW.a(k.X3X7RQ3X.YR7R3YQ)n$lR/W)nQ$phR)t$pQ$`cU)a$`-|<jQ-|<WR<j)qQ/q*]W4c/q4d7t9sU4d/r/s/tS7t4e4fR9s7u$e*Q$v(u)c)e*[*e*t*u+Q+R+V.l.m.o.p.q/_/g/i/k/v/|0d0e0v1e3f3g3h3}4R4[4g4h4l4|5O5R5S5W5r7]7^7_7`7e7f7h7i7j7p7w7z8U8X8Z9h9i9j9t9|:R:S:t:u:v:w:x:};R;e;j;v;y=p=}>O>Z>[Q/z*eU4k/z4m7xQ4m/|R7x4lS*o$|*ZR0Y*ox*S$v)e*t*u+V/v0d0e4R4g5R5S5W7p8U:R:x=p=}>O!d.j(u)c*[*e.l.m.q/_/k/|0v1e3h4[4h4l5r7]7`7w7z8X8Z9t9|:S:};R;e;j;v>Z>[U/h*S.j7ca7c3}7e7f7j9h:t:w;yQ0a*tQ3i.lU4}0a3i9kR9k7e|*U$v)e*t*u+V/g/v0d0e4R4g4|5R5S5W7p8U:R:x=p=}>O!h.k(u)c*[*e.l.m.q/_/k/|0v1e3f3h4[4h4l5r7]7^7`7w7z8X8Z9t9|:S:};R;e;j;v>Z>[U/j*U.k7de7d3}7e7f7j9h9i:t:u:w;yQ0c*uQ3j.mU5P0c3j9lR9l7fQ*z%UR0g*zQ5]0vR8Y5]Q+_%kR0u+_Q5v1jS8j5v:[R:[8kQ,[&_R1m,[Q5{1oR8m5{Q1{,fS6]1{8zR8z6_Q1U+rW5h1U5j8a:VQ5j1XQ8a5iR:V8bQ+w&QR1[+wQ2_,xR6m2_YrOXst#dQ&v!ZQ+a%mQ,r&rQ,t&tQ,u&uQ,w&wQ2Y,sS2],x2_R6l2[Q%opQ&z!_Q&}!aQ\x27P!bQ\x27R!cQ\x27q!uQ+`%lQ+l%zQ,Q&XQ,h&mQ-P&|W-p\x27k\x27s\x27t\x27wQ-w\x27oQ0X*nQ1P+mQ1c,PS2O,i,lQ2g-OQ2h-RQ2i-SQ2}-oW3P-r-s-v-xQ5a1QQ5m1_Q5q1eQ6V1uQ6a2QQ6k2ZU6z3O3R3UQ6}3SQ8]5bQ8e5oQ8g5rQ8l5zQ8u6WQ8{6`S9[6{7PQ9^7OQ:W8cQ:b8vQ:g8|Q:n9]Q;U:XQ;]:cQ;a:oQ;l;VR;o;^Q%zyQ\x27d!iQ\x27o!uU+m%{%|%}Q-W\x27VU-k\x27e\x27f\x27gS-o\x27k\x27uQ0Q*jS1Q+n+oQ2o-YS2{-l-mQ3S-tS4p0R0UQ5b1RQ6v2uQ6y2|Q7O3TU7{4r4s4vQ9z7}R;O9{S$wi>PR*{%VU%Ui%V>PR0f*yQ$viS(u#v+iS)c$b$cQ)e$dQ*[$xS*e${*YQ*t%OQ*u%QQ+Q%^Q+R%_Q+V%cQ.l<oQ.m<qQ.o<uQ.p<wQ.q<yQ/_)yQ/g*RQ/i*TQ/k*VQ/v*aS/|*g/mQ0d*wQ0e*xl0v+f,V.f1i1q3c6S7W8q9b:`:r;[;dQ1e,SQ3f=SQ3g=UQ3h=XS3}<l<mQ4R/PS4[/d4^Q4g/xQ4h/yQ4l/{Q4|0`Q5O0bQ5R0iQ5S0jQ5W0oQ5r1fQ7]=]Q7^=_Q7_=aQ7`=cQ7e<pQ7f<rQ7h<vQ7i<xQ7j<zQ7p4_Q7w4jQ7z4oQ8U5QQ8X5[Q8Z5_Q9h=YQ9i=TQ9j=VQ9t7vQ9|8QQ:R8VQ:S8[Q:t=^Q:u=`Q:v=bQ:w=dQ:x9pQ:}9yQ;R:PQ;e=gQ;j;QQ;v;kQ;y=hQ=p>PQ=}>XQ>O>YQ>Z>]R>[>^Q+O%]Q.n<sR7g<tnpOXst!Z#d%m&r&t&u&w,s,x2[2_Q!fPS#fZ#oQ&|!`W\x27h!o*i0]4zQ(P#SQ)Q#{Q)r$nS,l&k&nQ,q&oQ-O&{S-T\x27T/nQ-g\x27bQ.x)OQ/[)sQ0s+]Q0y+gQ2W,pQ2y-iQ3a.gQ4W/VQ5U0lQ6Q1rQ6c2SQ6d2TQ6h2VQ6j2XQ6o2aQ7Z3dQ7m4TQ8s6TQ9P6eQ9Q6fQ9S6iQ9f7[Q:a8tR:k9T#[cOPXZst!Z!`!o#d#o#{%m&k&n&o&r&t&u&w&{\x27T\x27b)O*i+]+g,p,s,x-i.g/n0]0l1r2S2T2V2X2[2_2a3d4z6T6e6f6i7[8t9TQ#YWQ#eYQ%quQ%svS%uw!gS(S#W(VQ(Y#ZQ(t#uQ(y#xQ)R$OQ)S$PQ)T$QQ)U$RQ)V$SQ)W$TQ)X$UQ)Y$VQ)Z$WQ)[$XQ)^$ZQ)`$_Q)b$aQ)g$eW)q$n)s/V4TQ+d%tQ+x&RS-Z\x27X2pQ-x\x27rS-}(T.PQ.S(]Q.U(dQ.s(xQ.v(zQ.z<UQ.|<XQ.}<YQ/O<]Q/b)}Q0p+XQ2k-UQ2n-XQ3O-qQ3V.VQ3k.tQ3p<^Q3q<_Q3r<`Q3s<aQ3t<bQ3u<cQ3v<dQ3w<eQ3x<fQ3y<gQ3z<hQ3{.{Q3|<kQ4P<nQ4Q<{Q4X<iQ5X0rQ5c1SQ6u=OQ6{3QQ7Q3WQ7a3lQ7b=PQ7k=RQ7l=ZQ8k5wQ9X6sQ9]6|Q9g=[Q9m=eQ9n=fQ:o9_Q;W:ZQ;`:mQ<W#SR=v>SR#[WR\x27Z!el!tQ!r!v!y!z\x27`\x27l\x27m\x27n-e-u1o5{5}S\x27V!e-]U*j$|*Z*oS-Y\x27W\x27_S0U*k*qQ0^*rQ2u-cQ4v0[R4{0_R({#xQ!fQT-d\x27`-e]!qQ!r\x27`-e1o5{Q#p]R\x27i<VR)f$dY!uQ\x27`-e1o5{Q\x27k!rS\x27u!v!yS\x27w!z5}S-t\x27l\x27mQ-v\x27nR3T-uT#kZ%eS#jZ%eS%km,oU(g#h#i#lS.Y(h(iQ.^(jQ0t+^Q3Y.ZU3Z.[.]._S7S3[3]R9`7Td#^W#W#Z%h(T(^*Y+Z.T/mr#gZm#h#i#l%e(h(i(j+^.Z.[.]._3[3]7TS*]$x*bQ/t*^Q2U,oQ2l-VQ4`/pQ6q2dQ7s4aQ9W6rT=m\x27X+[V#aW%h*YU#`W%h*YS(U#W(^U(Z#Z+Z/mS-[\x27X+[T.O(T.TV\x27^!e%i*ZQ$lfR)x$qT)m$l)nR4V/UT*_$x*bT*h${*YQ0w+fQ1g,VQ3_.fQ5t1iQ6P1qQ7X3cQ8r6SQ9c7WQ:^8qQ:p9bQ;Z:`Q;c:rQ;n;[R;q;dnqOXst!Z#d%m&r&t&u&w,s,x2[2_Q&l!VR,h&itmOXst!U!V!Z#d%m&i&r&t&u&w,s,x2[2_R,o&oT%lm,oR1k,XR,g&gQ&U|S+}&V&WR1^,OR+s&PT&p!W&sT&q!W&sT2^,x2_','nodeNames':'⚠\x20ArithOp\x20ArithOp\x20?.\x20JSXStartTag\x20LineComment\x20BlockComment\x20Script\x20Hashbang\x20ExportDeclaration\x20export\x20Star\x20as\x20VariableName\x20String\x20Escape\x20from\x20;\x20default\x20FunctionDeclaration\x20async\x20function\x20VariableDefinition\x20>\x20<\x20TypeParamList\x20in\x20out\x20const\x20TypeDefinition\x20extends\x20ThisType\x20this\x20LiteralType\x20ArithOp\x20Number\x20BooleanLiteral\x20TemplateType\x20InterpolationEnd\x20Interpolation\x20InterpolationStart\x20NullType\x20null\x20VoidType\x20void\x20TypeofType\x20typeof\x20MemberExpression\x20.\x20PropertyName\x20[\x20TemplateString\x20Escape\x20Interpolation\x20super\x20RegExp\x20]\x20ArrayExpression\x20Spread\x20,\x20}\x20{\x20ObjectExpression\x20Property\x20async\x20get\x20set\x20PropertyDefinition\x20Block\x20:\x20NewTarget\x20new\x20NewExpression\x20)\x20(\x20ArgList\x20UnaryExpression\x20delete\x20LogicOp\x20BitOp\x20YieldExpression\x20yield\x20AwaitExpression\x20await\x20ParenthesizedExpression\x20ClassExpression\x20class\x20ClassBody\x20MethodDeclaration\x20Decorator\x20@\x20MemberExpression\x20PrivatePropertyName\x20CallExpression\x20TypeArgList\x20CompareOp\x20<\x20declare\x20Privacy\x20static\x20abstract\x20override\x20PrivatePropertyDefinition\x20PropertyDeclaration\x20readonly\x20accessor\x20Optional\x20TypeAnnotation\x20Equals\x20StaticBlock\x20FunctionExpression\x20ArrowFunction\x20ParamList\x20ParamList\x20ArrayPattern\x20ObjectPattern\x20PatternProperty\x20Privacy\x20readonly\x20Arrow\x20MemberExpression\x20BinaryExpression\x20ArithOp\x20ArithOp\x20ArithOp\x20ArithOp\x20BitOp\x20CompareOp\x20instanceof\x20satisfies\x20CompareOp\x20BitOp\x20BitOp\x20BitOp\x20LogicOp\x20LogicOp\x20ConditionalExpression\x20LogicOp\x20LogicOp\x20AssignmentExpression\x20UpdateOp\x20PostfixExpression\x20CallExpression\x20InstantiationExpression\x20TaggedTemplateExpression\x20DynamicImport\x20import\x20ImportMeta\x20JSXElement\x20JSXSelfCloseEndTag\x20JSXSelfClosingTag\x20JSXIdentifier\x20JSXBuiltin\x20JSXIdentifier\x20JSXNamespacedName\x20JSXMemberExpression\x20JSXSpreadAttribute\x20JSXAttribute\x20JSXAttributeValue\x20JSXEscape\x20JSXEndTag\x20JSXOpenTag\x20JSXFragmentTag\x20JSXText\x20JSXEscape\x20JSXStartCloseTag\x20JSXCloseTag\x20PrefixCast\x20<\x20ArrowFunction\x20TypeParamList\x20SequenceExpression\x20InstantiationExpression\x20KeyofType\x20keyof\x20UniqueType\x20unique\x20ImportType\x20InferredType\x20infer\x20TypeName\x20ParenthesizedType\x20FunctionSignature\x20ParamList\x20NewSignature\x20IndexedType\x20TupleType\x20Label\x20ArrayType\x20ReadonlyType\x20ObjectType\x20MethodType\x20PropertyType\x20IndexSignature\x20PropertyDefinition\x20CallSignature\x20TypePredicate\x20asserts\x20is\x20NewSignature\x20new\x20UnionType\x20LogicOp\x20IntersectionType\x20LogicOp\x20ConditionalType\x20ParameterizedType\x20ClassDeclaration\x20abstract\x20implements\x20type\x20VariableDeclaration\x20let\x20var\x20using\x20TypeAliasDeclaration\x20InterfaceDeclaration\x20interface\x20EnumDeclaration\x20enum\x20EnumBody\x20NamespaceDeclaration\x20namespace\x20module\x20AmbientDeclaration\x20declare\x20GlobalDeclaration\x20global\x20ClassDeclaration\x20ClassBody\x20AmbientFunctionDeclaration\x20ExportGroup\x20VariableName\x20VariableName\x20ImportDeclaration\x20defer\x20ImportGroup\x20ForStatement\x20for\x20ForSpec\x20ForInSpec\x20ForOfSpec\x20of\x20WhileStatement\x20while\x20WithStatement\x20with\x20DoStatement\x20do\x20IfStatement\x20if\x20else\x20SwitchStatement\x20switch\x20SwitchBody\x20CaseLabel\x20case\x20DefaultLabel\x20TryStatement\x20try\x20CatchClause\x20catch\x20FinallyClause\x20finally\x20ReturnStatement\x20return\x20ThrowStatement\x20throw\x20BreakStatement\x20break\x20ContinueStatement\x20continue\x20DebuggerStatement\x20debugger\x20LabeledStatement\x20ExpressionStatement\x20SingleExpression\x20SingleClassItem','maxTerm':0x17c,'context':vz,'nodeProps':[['isolate',-0x8,0x5,0x6,0xe,0x25,0x27,0x33,0x35,0x37,''],['group',-0x1a,0x9,0x11,0x13,0x44,0xcf,0xd3,0xd7,0xd8,0xda,0xdd,0xe0,0xea,0xed,0xf3,0xf5,0xf7,0xf9,0xfc,0x102,0x108,0x10a,0x10c,0x10e,0x110,0x112,0x113,'Statement',-0x22,0xd,0xe,0x20,0x23,0x24,0x2a,0x33,0x36,0x37,0x39,0x3e,0x46,0x48,0x4c,0x50,0x52,0x54,0x55,0x6e,0x6f,0x78,0x79,0x88,0x8b,0x8d,0x8e,0x8f,0x90,0x91,0x93,0x94,0xa7,0xa9,0xab,'Expression',-0x17,0x1f,0x21,0x25,0x29,0x2b,0x2d,0xad,0xaf,0xb1,0xb2,0xb4,0xb5,0xb6,0xb8,0xb9,0xba,0xbc,0xbd,0xbe,0xc9,0xcb,0xcd,0xce,'Type',-0x3,0x58,0x67,0x6d,'ClassItem'],['openedBy',0x17,'<',0x26,'InterpolationStart',0x38,'[',0x3c,'{',0x49,'(',0xa0,'JSXStartCloseTag'],['closedBy',-0x2,0x18,0xa8,'>',0x28,'InterpolationEnd',0x32,']',0x3d,'}',0x4a,')',0xa5,'JSXEndTag']],'propSources':[kz],'skippedNodes':[0x0,0x5,0x6,0x116],'repeatNodeCount':0x25,'tokenData':'$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx!\x20Yxy!\x27iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;\x27SEr;\x27S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z&j&hT$i&jO!^&c!_#o&c#p;\x27S&c;\x27S;=`&w<%lO&c&j&zP;=`<%l&c\x27|\x27U]$i&j(Z!bOY&}YZ&cZw&}wx&cx!^&}!^!_\x27}!_#O&}#O#P&c#P#o&}#o#p\x27}#p;\x27S&};\x27S;=`(l<%lO&}!b(SU(Z!bOY\x27}Zw\x27}x#O\x27}#P;\x27S\x27};\x27S;=`(f<%lO\x27}!b(iP;=`<%l\x27}\x27|(oP;=`<%l&}\x27[(y]$i&j(WpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;\x27S(r;\x27S;=`*a<%lO(rp)wU(WpOY)rZr)rs#O)r#P;\x27S)r;\x27S;=`*Z<%lO)rp*^P;=`<%l)r\x27[*dP;=`<%l(r#S*nX(Wp(Z!bOY*gZr*grs\x27}sw*gwx)rx#O*g#P;\x27S*g;\x27S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$i&j(Wp(Z!b\x27|0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;\x27S%Z;\x27S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(X#S$i&j\x27}0/lO!^&c!_#o&c#p;\x27S&c;\x27S;=`&w<%lO&c07[.n_$i&j(Wp(Z!b\x27}0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z)3p/x`$i&j!p),Q(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KW1V`#v(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KW2d_#v(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27At3l_(V\x27:f$i&j(Z!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;\x27S4k;\x27S;=`:X<%lO4k(^4r_$i&j(Z!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;\x27S4k;\x27S;=`:X<%lO4k&z5vX$i&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;\x27S5q;\x27S;=`7h<%lO5q&z6jT$d`$i&jO!^&c!_#o&c#p;\x27S&c;\x27S;=`&w<%lO&c`6|TOr6yrs7]s;\x27S6y;\x27S;=`7b<%lO6y`7bO$d``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$d`$i&j(Z!bOY&}YZ&cZw&}wx&cx!^&}!^!_\x27}!_#O&}#O#P&c#P#o&}#o#p\x27}#p;\x27S&};\x27S;=`(l<%lO&}!r8uZ(Z!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;\x27S8p;\x27S;=`:R<%lO8p!r9oU$d`(Z!bOY\x27}Zw\x27}x#O\x27}#P;\x27S\x27};\x27S;=`(f<%lO\x27}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$i&j(Wp(Z!bOY%ZYZ&cZq%Zqr<Srs&}st%ZtuCruw%Zwx(rx!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;\x27SCr;\x27S;=`El<%lOCr(r<__WS$i&j(Wp(Z!bOY<SYZ&cZr<Srs=^sw<Swx@nx!^<S!^!_Bm!_#O<S#O#P>`#P#o<S#o#pBm#p;\x27S<S;\x27S;=`Cl<%lO<S(Q=g]WS$i&j(Z!bOY=^YZ&cZw=^wx>`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;\x27S=^;\x27S;=`@h<%lO=^&n>gXWS$i&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;\x27S>`;\x27S;=`?k<%lO>`S?XSWSOY?SZ;\x27S?S;\x27S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(Z!bOY?qZw?qwx?Sx#O?q#O#P?S#P;\x27S?q;\x27S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^\x27`@w]WS$i&j(WpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;\x27S@n;\x27S;=`Bg<%lO@ntAwWWS(WpOYApZrAprs?Ss#OAp#O#P?S#P;\x27SAp;\x27S;=`Ba<%lOAptBdP;=`<%lAp\x27`BjP;=`<%l@n#WBvYWS(Wp(Z!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;\x27SBm;\x27S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l<S%9[C}i$i&j(o%1l(Wp(Z!bOY%ZYZ&cZr%Zrs&}st%ZtuCruw%Zwx(rx!Q%Z!Q![Cr![!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;\x27SCr;\x27S;=`El<%lOCr%9[EoP;=`<%lCr07[FRk$i&j(Wp(Z!b$]#t(T,2j(e$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;\x27SEr;\x27S;=`I|<%lOEr+dHRk$i&j(Wp(Z!b$]#tOY%ZYZ&cZr%Zrs&}st%ZtuGvuw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Gv![!^%Z!^!_*g!_!c%Z!c!}Gv!}#O%Z#O#P&c#P#R%Z#R#SGv#S#T%Z#T#oGv#o#p*g#p$g%Z$g;\x27SGv;\x27S;=`Iv<%lOGv+dIyP;=`<%lGv07[JPP;=`<%lEr(KWJ_`$i&j(Wp(Z!b#p(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KWKl_$i&j$Q(Ch(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z,#xLva(z+JY$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sv%ZvwM{wx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KWNW`$i&j#z(Ch(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27At!\x20c_(Y\x27;W$i&j(WpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;\x27S!!b;\x27S;=`!\x27c<%lO!!b\x27l!!i_$i&j(WpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;\x27S!!b;\x27S;=`!\x27c<%lO!!b&z!#mX$i&jOw!#hwx6cx!^!#h!^!_!$Y!_#o!#h#o#p!$Y#p;\x27S!#h;\x27S;=`!$r<%lO!#h`!$]TOw!$Ywx7]x;\x27S!$Y;\x27S;=`!$l<%lO!$Y`!$oP;=`<%l!$Y&z!$uP;=`<%l!#h\x27l!%R]$d`$i&j(WpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;\x27S(r;\x27S;=`*a<%lO(r!Q!&PZ(WpOY!%zYZ!$YZr!%zrs!$Ysw!%zwx!&rx#O!%z#O#P!$Y#P;\x27S!%z;\x27S;=`!\x27]<%lO!%z!Q!&yU$d`(WpOY)rZr)rs#O)r#P;\x27S)r;\x27S;=`*Z<%lO)r!Q!\x27`P;=`<%l!%z\x27l!\x27fP;=`<%l!!b/5|!\x27t_!l/.^$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z#&U!)O_!k!Lf$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z-!n!*[b$i&j(Wp(Z!b(U%&f#q(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rxz%Zz{!+d{!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KW!+o`$i&j(Wp(Z!b#n(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z+;x!,|`$i&j(Wp(Z!br+4YOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z,$U!.Z_!]+Jf$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z07[!/ec$i&j(Wp(Z!b!Q.2^OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!0p!P!Q%Z!Q![!3Y![!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z#%|!0ya$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!2O!P!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z#%|!2Z_![!L^$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad!3eg$i&j(Wp(Z!bs\x279tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!3Y![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S!3Y#S#X%Z#X#Y!4|#Y#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad!5Vg$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx{%Z{|!6n|}%Z}!O!6n!O!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad!6wc$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad!8_c$i&j(Wp(Z!bs\x279tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z07[!9uf$i&j(Wp(Z!b#o(ChOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcxz!;Zz{#-}{!P!;Z!P!Q#/d!Q!^!;Z!^!_#(i!_!`#7S!`!a#8i!a!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;\x27S!;Z;\x27S;=`#-w<%lO!;Z?O!;fb$i&j(Wp(Z!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;\x27S!;Z;\x27S;=`#-w<%lO!;Z>^!<w`$i&j(Z!b!X7`OY!<nYZ&cZw!<nwx!=yx!P!<n!P!Q!Eq!Q!^!<n!^!_!Gr!_!}!<n!}#O!KS#O#P!Dy#P#o!<n#o#p!Gr#p;\x27S!<n;\x27S;=`!L]<%lO!<n<z!>Q^$i&j!X7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;\x27S!=y;\x27S;=`!Ek<%lO!=y<z!?Td$i&j!X7`O!^&c!_#W&c#W#X!>|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;\x27S&c;\x27S;=`&w<%lO&c7`!@hX!X7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;\x27S!@c;\x27S;=`!CQ<%lO!@c7`!AYW!X7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;\x27S!Ar;\x27S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;\x27S!Ar;\x27S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;\x27S!@c;\x27S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c<z!C][$i&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#O!CW#O#P!DR#P#Q!=y#Q#o!CW#o#p!Ar#p;\x27S!CW;\x27S;=`!Ds<%lO!CW<z!DWX$i&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#o!CW#o#p!Ar#p;\x27S!CW;\x27S;=`!Ds<%lO!CW<z!DvP;=`<%l!CW<z!EOX$i&jOY!=yYZ&cZ!^!=y!^!_!@c!_#o!=y#o#p!@c#p;\x27S!=y;\x27S;=`!Ek<%lO!=y<z!EnP;=`<%l!=y>^!Ezl$i&j(Z!b!X7`OY&}YZ&cZw&}wx&cx!^&}!^!_\x27}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p\x27}#p;\x27S&};\x27S;=`(l<%lO&}8r!GyZ(Z!b!X7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;\x27S!Gr;\x27S;=`!J|<%lO!Gr8r!Hse(Z!b!X7`OY\x27}Zw\x27}x#O\x27}#P#W\x27}#W#X!Hl#X#Z\x27}#Z#[!Hl#[#]\x27}#]#^!Hl#^#a\x27}#a#b!Hl#b#g\x27}#g#h!Hl#h#i\x27}#i#j!Hl#j#k!Hl#k#m\x27}#m#n!Hl#n;\x27S\x27};\x27S;=`(f<%lO\x27}8r!JZX(Z!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;\x27S!JU;\x27S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$i&j(Z!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!<n#Q#o!KS#o#p!JU#p;\x27S!KS;\x27S;=`!LV<%lO!KS>^!LYP;=`<%l!KS>^!L`P;=`<%l!<n=l!Ll`$i&j(Wp!X7`OY!LcYZ&cZr!Lcrs!=ys!P!Lc!P!Q!Mn!Q!^!Lc!^!_#\x20o!_!}!Lc!}#O#%P#O#P!Dy#P#o!Lc#o#p#\x20o#p;\x27S!Lc;\x27S;=`#&Y<%lO!Lc=l!Mwl$i&j(Wp!X7`OY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#W(r#W#X!Mn#X#Z(r#Z#[!Mn#[#](r#]#^!Mn#^#a(r#a#b!Mn#b#g(r#g#h!Mn#h#i(r#i#j!Mn#j#k!Mn#k#m(r#m#n!Mn#n#o(r#o#p)r#p;\x27S(r;\x27S;=`*a<%lO(r8Q#\x20vZ(Wp!X7`OY#\x20oZr#\x20ors!@cs!P#\x20o!P!Q#!i!Q!}#\x20o!}#O#$R#O#P!Bq#P;\x27S#\x20o;\x27S;=`#$y<%lO#\x20o8Q#!pe(Wp!X7`OY)rZr)rs#O)r#P#W)r#W#X#!i#X#Z)r#Z#[#!i#[#])r#]#^#!i#^#a)r#a#b#!i#b#g)r#g#h#!i#h#i)r#i#j#!i#j#k#!i#k#m)r#m#n#!i#n;\x27S)r;\x27S;=`*Z<%lO)r8Q#$WX(WpOY#$RZr#$Rrs!Ars#O#$R#O#P!B[#P#Q#\x20o#Q;\x27S#$R;\x27S;=`#$s<%lO#$R8Q#$vP;=`<%l#$R8Q#$|P;=`<%l#\x20o=l#%W^$i&j(WpOY#%PYZ&cZr#%Prs!CWs!^#%P!^!_#$R!_#O#%P#O#P!DR#P#Q!Lc#Q#o#%P#o#p#$R#p;\x27S#%P;\x27S;=`#&S<%lO#%P=l#&VP;=`<%l#%P=l#&]P;=`<%l!Lc?O#&kn$i&j(Wp(Z!b!X7`OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#W%Z#W#X#&`#X#Z%Z#Z#[#&`#[#]%Z#]#^#&`#^#a%Z#a#b#&`#b#g%Z#g#h#&`#h#i%Z#i#j#&`#j#k#&`#k#m%Z#m#n#&`#n#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z9d#(r](Wp(Z!b!X7`OY#(iZr#(irs!Grsw#(iwx#\x20ox!P#(i!P!Q#)k!Q!}#(i!}#O#+`#O#P!Bq#P;\x27S#(i;\x27S;=`#,`<%lO#(i9d#)th(Wp(Z!b!X7`OY*gZr*grs\x27}sw*gwx)rx#O*g#P#W*g#W#X#)k#X#Z*g#Z#[#)k#[#]*g#]#^#)k#^#a*g#a#b#)k#b#g*g#g#h#)k#h#i*g#i#j#)k#j#k#)k#k#m*g#m#n#)k#n;\x27S*g;\x27S;=`+Z<%lO*g9d#+gZ(Wp(Z!bOY#+`Zr#+`rs!JUsw#+`wx#$Rx#O#+`#O#P!B[#P#Q#(i#Q;\x27S#+`;\x27S;=`#,Y<%lO#+`9d#,]P;=`<%l#+`9d#,cP;=`<%l#(i?O#,o`$i&j(Wp(Z!bOY#,fYZ&cZr#,frs!KSsw#,fwx#%Px!^#,f!^!_#+`!_#O#,f#O#P!DR#P#Q!;Z#Q#o#,f#o#p#+`#p;\x27S#,f;\x27S;=`#-q<%lO#,f?O#-tP;=`<%l#,f?O#-zP;=`<%l!;Z07[#.[b$i&j(Wp(Z!b(O0/l!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;\x27S!;Z;\x27S;=`#-w<%lO!;Z07[#/o_$i&j(Wp(Z!bT0/lOY#/dYZ&cZr#/drs#0nsw#/dwx#4Ox!^#/d!^!_#5}!_#O#/d#O#P#1p#P#o#/d#o#p#5}#p;\x27S#/d;\x27S;=`#6|<%lO#/d06j#0w]$i&j(Z!bT0/lOY#0nYZ&cZw#0nwx#1px!^#0n!^!_#3R!_#O#0n#O#P#1p#P#o#0n#o#p#3R#p;\x27S#0n;\x27S;=`#3x<%lO#0n05W#1wX$i&jT0/lOY#1pYZ&cZ!^#1p!^!_#2d!_#o#1p#o#p#2d#p;\x27S#1p;\x27S;=`#2{<%lO#1p0/l#2iST0/lOY#2dZ;\x27S#2d;\x27S;=`#2u<%lO#2d0/l#2xP;=`<%l#2d05W#3OP;=`<%l#1p01O#3YW(Z!bT0/lOY#3RZw#3Rwx#2dx#O#3R#O#P#2d#P;\x27S#3R;\x27S;=`#3r<%lO#3R01O#3uP;=`<%l#3R06j#3{P;=`<%l#0n05x#4X]$i&j(WpT0/lOY#4OYZ&cZr#4Ors#1ps!^#4O!^!_#5Q!_#O#4O#O#P#1p#P#o#4O#o#p#5Q#p;\x27S#4O;\x27S;=`#5w<%lO#4O00^#5XW(WpT0/lOY#5QZr#5Qrs#2ds#O#5Q#O#P#2d#P;\x27S#5Q;\x27S;=`#5q<%lO#5Q00^#5tP;=`<%l#5Q05x#5zP;=`<%l#4O01p#6WY(Wp(Z!bT0/lOY#5}Zr#5}rs#3Rsw#5}wx#5Qx#O#5}#O#P#2d#P;\x27S#5};\x27S;=`#6v<%lO#5}01p#6yP;=`<%l#5}07[#7PP;=`<%l#/d)3h#7ab$i&j$Q(Ch(Wp(Z!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;\x27S!;Z;\x27S;=`#-w<%lO!;ZAt#8vb$Z#t$i&j(Wp(Z!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;\x27S!;Z;\x27S;=`#-w<%lO!;Z\x27Ad#:Zp$i&j(Wp(Z!bs\x279tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#U%Z#U#V#?i#V#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad#<jk$i&j(Wp(Z!bs\x279tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad#>j_$i&j(Wp(Z!bs\x279tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad#?rd$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad#A]f$i&j(Wp(Z!bs\x279tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad#Bzc$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad#Dbe$i&j(Wp(Z!bs\x279tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad#E|g$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad#Gpi$i&j(Wp(Z!bs\x279tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z*)x#Il_!g$b$i&j$O)Lv(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z)[#Jv_al$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z04f#LS^h#)`#R-<U(Wp(Z!b$n7`OY*gZr*grs\x27}sw*gwx)rx!P*g!P!Q#MO!Q!^*g!^!_#Mt!_!`$\x20f!`#O*g#P;\x27S*g;\x27S;=`+Z<%lO*g(n#MXX$k&j(Wp(Z!bOY*gZr*grs\x27}sw*gwx)rx#O*g#P;\x27S*g;\x27S;=`+Z<%lO*g(El#M}Z#r(Ch(Wp(Z!bOY*gZr*grs\x27}sw*gwx)rx!_*g!_!`#Np!`#O*g#P;\x27S*g;\x27S;=`+Z<%lO*g(El#NyX$Q(Ch(Wp(Z!bOY*gZr*grs\x27}sw*gwx)rx#O*g#P;\x27S*g;\x27S;=`+Z<%lO*g(El$\x20oX#s(Ch(Wp(Z!bOY*gZr*grs\x27}sw*gwx)rx#O*g#P;\x27S*g;\x27S;=`+Z<%lO*g*)x$!ga#`*!Y$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`!a$#l!a#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(K[$#w_#k(Cl$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z*)x$%Vag!*r#s(Ch$f#|$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`$&[!`!a$\x27f!a#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KW$&g_#s(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KW$\x27qa#r(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`!a$(v!a#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KW$)R`#r(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(Kd$*`a(r(Ct$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!a%Z!a!b$+e!b#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KW$+p`$i&j#{(Ch(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z%#`$,}_!|$Ip$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z04f$.X_!S0,v$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(n$/]Z$i&jO!^$0O!^!_$0f!_#i$0O#i#j$0k#j#l$0O#l#m$2^#m#o$0O#o#p$0f#p;\x27S$0O;\x27S;=`$4i<%lO$0O(n$0VT_#S$i&jO!^&c!_#o&c#p;\x27S&c;\x27S;=`&w<%lO&c#S$0kO_#S(n$0p[$i&jO!Q&c!Q![$1f![!^&c!_!c&c!c!i$1f!i#T&c#T#Z$1f#Z#o&c#o#p$3|#p;\x27S&c;\x27S;=`&w<%lO&c(n$1kZ$i&jO!Q&c!Q![$2^![!^&c!_!c&c!c!i$2^!i#T&c#T#Z$2^#Z#o&c#p;\x27S&c;\x27S;=`&w<%lO&c(n$2cZ$i&jO!Q&c!Q![$3U![!^&c!_!c&c!c!i$3U!i#T&c#T#Z$3U#Z#o&c#p;\x27S&c;\x27S;=`&w<%lO&c(n$3ZZ$i&jO!Q&c!Q![$0O![!^&c!_!c&c!c!i$0O!i#T&c#T#Z$0O#Z#o&c#p;\x27S&c;\x27S;=`&w<%lO&c#S$4PR!Q![$4Y!c!i$4Y#T#Z$4Y#S$4]S!Q![$4Y!c!i$4Y#T#Z$4Y#q#r$0f(n$4lP;=`<%l$0O#1[$4z_!Y#)l$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KW$6U`#x(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z+;p$7c_$i&j(Wp(Z!b(a+4QOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z07[$8qk$i&j(Wp(Z!b(T,2j$_#t(e$I[OY%ZYZ&cZr%Zrs&}st%Ztu$8buw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$8b![!^%Z!^!_*g!_!c%Z!c!}$8b!}#O%Z#O#P&c#P#R%Z#R#S$8b#S#T%Z#T#o$8b#o#p*g#p$g%Z$g;\x27S$8b;\x27S;=`$<l<%lO$8b+d$:qk$i&j(Wp(Z!b$_#tOY%ZYZ&cZr%Zrs&}st%Ztu$:fuw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$:f![!^%Z!^!_*g!_!c%Z!c!}$:f!}#O%Z#O#P&c#P#R%Z#R#S$:f#S#T%Z#T#o$:f#o#p*g#p$g%Z$g;\x27S$:f;\x27S;=`$<f<%lO$:f+d$<iP;=`<%l$:f07[$<oP;=`<%l$8b#Jf$<{X!_#Hb(Wp(Z!bOY*gZr*grs\x27}sw*gwx)rx#O*g#P;\x27S*g;\x27S;=`+Z<%lO*g,#x$=sa(y+JY$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p#q$+e#q;\x27S%Z;\x27S;=`+a<%lO%Z)>v$?V_!^(CdvBr$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z?O$@a_!q7`$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z07[$Aq|$i&j(Wp(Z!b\x27|0/l$]#t(T,2j(e$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;\x27SEr;\x27S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$i&j(Wp(Z!b\x27}0/l$]#t(T,2j(e$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;\x27SEr;\x27S;=`I|<%lOEr','tokenizers':[Ez,Tz,Az,Iz,0x2,0x3,0x4,0x5,0x6,0x7,0x8,0x9,0xa,0xb,0xc,0xd,0xe,_z,new Jq('$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;\x27S!P;\x27S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(c~~',0x8d,0x154),new Jq('j~RQYZXz{^~^O(Q~~aP!P!Qd~iO(R~~',0x19,0x143)],'topRules':{'Script':[0x0,0x7],'SingleExpression':[0x1,0x114],'SingleClassItem':[0x2,0x115]},'dialects':{'jsx':0x0,'ts':0x3b47},'dynamicPrecedences':{0x50:0x1,0x52:0x1,0x5e:0x1,0xa9:0x1,0xc7:0x1},'specialized':[{'term':0x147,'get':_0x38d2a7=>xz[_0x38d2a7]||-0x1},{'term':0x157,'get':_0x1006c6=>Cz[_0x1006c6]||-0x1},{'term':0x5f,'get':_0x53b5f5=>Rz[_0x53b5f5]||-0x1}],'tokenPrec':0x3b61}),Nz=[vq('function\x20${name}(${params})\x20{\x0a\x09${}\x0a}',{'label':'function','detail':'definition','type':'keyword'}),vq('for\x20(let\x20${index}\x20=\x200;\x20${index}\x20<\x20${bound};\x20${index}++)\x20{\x0a\x09${}\x0a}',{'label':'for','detail':'loop','type':'keyword'}),vq('for\x20(let\x20${name}\x20of\x20${collection})\x20{\x0a\x09${}\x0a}',{'label':'for','detail':'of\x20loop','type':'keyword'}),vq('do\x20{\x0a\x09${}\x0a}\x20while\x20(${})',{'label':'do','detail':'loop','type':'keyword'}),vq('while\x20(${})\x20{\x0a\x09${}\x0a}',{'label':'while','detail':'loop','type':'keyword'}),vq('try\x20{\x0a\x09${}\x0a}\x20catch\x20(${error})\x20{\x0a\x09${}\x0a}',{'label':'try','detail':'/\x20catch\x20block','type':'keyword'}),vq('if\x20(${})\x20{\x0a\x09${}\x0a}',{'label':'if','detail':'block','type':'keyword'}),vq('if\x20(${})\x20{\x0a\x09${}\x0a}\x20else\x20{\x0a\x09${}\x0a}',{'label':'if','detail':'/\x20else\x20block','type':'keyword'}),vq('class\x20${name}\x20{\x0a\x09constructor(${params})\x20{\x0a\x09\x09${}\x0a\x09}\x0a}',{'label':'class','detail':'definition','type':'keyword'}),vq('import\x20{${names}}\x20from\x20\x22${module}\x22\x0a${}',{'label':'import','detail':'named','type':'keyword'}),vq('import\x20${name}\x20from\x20\x22${module}\x22\x0a${}',{'label':'import','detail':'default','type':'keyword'})],Mz=Nz['concat']([vq('interface\x20${name}\x20{\x0a\x09${}\x0a}',{'label':'interface','detail':'definition','type':'keyword'}),vq('type\x20${name}\x20=\x20${type}',{'label':'type','detail':'definition','type':'keyword'}),vq('enum\x20${name}\x20{\x0a\x09${}\x0a}',{'label':'enum','detail':'definition','type':'keyword'})]),Lz=new gH(),$z=new Set(['Script','Block','FunctionExpression','FunctionDeclaration','ArrowFunction','MethodDeclaration','ForStatement']);function Dz(_0xca0401){return(_0x1dab24,_0x35b776)=>{let _0x564066=_0x1dab24['node']['getChild']('VariableDefinition');return _0x564066&&_0x35b776(_0x564066,_0xca0401),!0x0;};}const Qz=['FunctionDeclaration'],jz={'FunctionDeclaration':Dz('function'),'ClassDeclaration':Dz('class'),'ClassExpression':()=>!0x0,'EnumDeclaration':Dz('constant'),'TypeAliasDeclaration':Dz('type'),'NamespaceDeclaration':Dz('namespace'),'VariableDefinition'(_0x5752f0,_0x15f9df){_0x5752f0['matchContext'](Qz)||_0x15f9df(_0x5752f0,'variable');},'TypeDefinition'(_0xa9ac65,_0x108430){_0x108430(_0xa9ac65,'type');},'__proto__':null};function Uz(_0x2638e8,_0x5a5d0f){let _0x29e397=Lz['get'](_0x5a5d0f);if(_0x29e397)return _0x29e397;let _0x4dfa18=[],_0x392e1c=!0x0;function _0x2eda8c(_0x269392,_0x1bc19c){let _0x3f7663=_0x2638e8['sliceString'](_0x269392['from'],_0x269392['to']);_0x4dfa18['push']({'label':_0x3f7663,'type':_0x1bc19c});}return _0x5a5d0f['cursor'](zB['IncludeAnonymous'])['iterate'](_0x1a64d6=>{if(_0x392e1c)_0x392e1c=!0x1;else{if(_0x1a64d6['name']){let _0xbb6cd9=jz[_0x1a64d6['name']];if(_0xbb6cd9&&_0xbb6cd9(_0x1a64d6,_0x2eda8c)||$z['has'](_0x1a64d6['name']))return!0x1;}else{if(_0x1a64d6['to']-_0x1a64d6['from']>0x2000){for(let _0xdc5f66 of Uz(_0x2638e8,_0x1a64d6['node']))_0x4dfa18['push'](_0xdc5f66);return!0x1;}}}}),Lz['set'](_0x5a5d0f,_0x4dfa18),_0x4dfa18;}const Vz=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Bz=['TemplateString','String','RegExp','LineComment','BlockComment','VariableDefinition','TypeDefinition','Label','PropertyDefinition','PropertyName','PrivatePropertyDefinition','PrivatePropertyName','JSXText','JSXAttributeValue','JSXOpenTag','JSXCloseTag','JSXSelfClosingTag','.','?.'];function Hz(_0x2df709){let _0x99f8e0=dF(_0x2df709['state'])['resolveInner'](_0x2df709['pos'],-0x1);if(Bz['indexOf'](_0x99f8e0['name'])>-0x1)return null;let _0xadd9d4='VariableName'==_0x99f8e0['name']||_0x99f8e0['to']-_0x99f8e0['from']<0x14&&Vz['test'](_0x2df709['state']['sliceDoc'](_0x99f8e0['from'],_0x99f8e0['to']));if(!_0xadd9d4&&!_0x2df709['explicit'])return null;let _0x21cc41=[];for(let _0x1e653c=_0x99f8e0;_0x1e653c;_0x1e653c=_0x1e653c['parent'])$z['has'](_0x1e653c['name'])&&(_0x21cc41=_0x21cc41['concat'](Uz(_0x2df709['state']['doc'],_0x1e653c)));return{'options':_0x21cc41,'from':_0xadd9d4?_0x99f8e0['from']:_0x2df709['pos'],'validFor':Vz};}const Fz=uF['define']({'name':'javascript','parser':Pz['configure']({'props':[CF['add']({'IfStatement':QF({'except':/^\s*({|else\b)/}),'TryStatement':QF({'except':/^\s*({|catch\b|finally\b)/}),'LabeledStatement':_0x42a2e9=>_0x42a2e9['baseIndent'],'SwitchBody':_0x588bc1=>{let _0x2009de=_0x588bc1['textAfter'],_0x558880=/^\s*\}/['test'](_0x2009de),_0x239380=/^\s*(case|default)\b/['test'](_0x2009de);return _0x588bc1['baseIndent']+(_0x558880?0x0:_0x239380?0x1:0x2)*_0x588bc1['unit'];},'Block':$F({'closing':'}'}),'ArrowFunction':_0x1d3d43=>_0x1d3d43['baseIndent']+_0x1d3d43['unit'],'TemplateString\x20BlockComment':()=>null,'Statement\x20Property':QF({'except':/^\s*{/}),'JSXElement'(_0x359f2a){let _0x390b46=/^\s*<\//['test'](_0x359f2a['textAfter']);return _0x359f2a['lineIndent'](_0x359f2a['node']['from'])+(_0x390b46?0x0:_0x359f2a['unit']);},'JSXEscape'(_0x564bed){let _0x3b6d7f=/\s*\}/['test'](_0x564bed['textAfter']);return _0x564bed['lineIndent'](_0x564bed['node']['from'])+(_0x3b6d7f?0x0:_0x564bed['unit']);},'JSXOpenTag\x20JSXSelfClosingTag':_0x1d5f12=>_0x1d5f12['column'](_0x1d5f12['node']['from'])+_0x1d5f12['unit']}),VF['add']({'Block\x20ClassBody\x20SwitchBody\x20EnumBody\x20ObjectExpression\x20ArrayExpression\x20ObjectType':BF,'BlockComment':_0x2172b0=>({'from':_0x2172b0['from']+0x2,'to':_0x2172b0['to']-0x2}),'JSXElement'(_0x2cb687){let _0x33722=_0x2cb687['firstChild'];if(!_0x33722||'JSXSelfClosingTag'==_0x33722['name'])return null;let _0x1004f4=_0x2cb687['lastChild'];return{'from':_0x33722['to'],'to':_0x1004f4['type']['isError']?_0x2cb687['to']:_0x1004f4['from']};},'JSXSelfClosingTag\x20JSXOpenTag'(_0x8f44dc){var _0x5340b0;let _0x2dc9b1=null===(_0x5340b0=_0x8f44dc['firstChild'])||void 0x0===_0x5340b0?void 0x0:_0x5340b0['nextSibling'],_0x24a96c=_0x8f44dc['lastChild'];return!_0x2dc9b1||_0x2dc9b1['type']['isError']?null:{'from':_0x2dc9b1['to'],'to':_0x24a96c['type']['isError']?_0x8f44dc['to']:_0x24a96c['from']};}})]}),'languageData':{'closeBrackets':{'brackets':['(','[','{','\x27','\x22','`']},'commentTokens':{'line':'//','block':{'open':'/*','close':'*/'}},'indentOnInput':/^\s*(?:case |default:|\{|\}|<\/)$/,'wordChars':'$'}}),Zz={'test':_0x42b9bc=>/^JSX/['test'](_0x42b9bc['name']),'facet':aF({'commentTokens':{'block':{'open':'{/*','close':'*/}'}}})},Gz=Fz['configure']({'dialect':'ts'},'typescript'),Xz=Fz['configure']({'dialect':'jsx','props':[cF['add'](_0x2fe4fe=>_0x2fe4fe['isTop']?[Zz]:void 0x0)]}),qz=Fz['configure']({'dialect':'jsx\x20ts','props':[cF['add'](_0x4a7ead=>_0x4a7ead['isTop']?[Zz]:void 0x0)]},'typescript');let Wz=_0x28942b=>({'label':_0x28942b,'type':'keyword'});const zz='break\x20case\x20const\x20continue\x20default\x20delete\x20export\x20extends\x20false\x20finally\x20in\x20instanceof\x20let\x20new\x20return\x20static\x20super\x20switch\x20this\x20throw\x20true\x20typeof\x20var\x20yield'['split']('\x20')['map'](Wz),Yz=zz['concat'](['declare','implements','private','protected','public']['map'](Wz));function Kz(_0x53c67b={}){let _0x2398f2=_0x53c67b['jsx']?_0x53c67b['typescript']?qz:Xz:_0x53c67b['typescript']?Gz:Fz,_0x167e2b=_0x53c67b['typescript']?Mz['concat'](Yz):Nz['concat'](zz);return new _F(_0x2398f2,[Fz['data']['of']({'autocomplete':(_0x5b2323=Bz,_0x20a915=yX(_0x167e2b),_0x41cef3=>{for(let _0x57ff8a=dF(_0x41cef3['state'])['resolveInner'](_0x41cef3['pos'],-0x1);_0x57ff8a;_0x57ff8a=_0x57ff8a['parent']){if(_0x5b2323['indexOf'](_0x57ff8a['name'])>-0x1)return null;if(_0x57ff8a['type']['isTop'])break;}return _0x20a915(_0x41cef3);})}),Fz['data']['of']({'autocomplete':Hz}),_0x53c67b['jsx']?eY:[]]);var _0x5b2323,_0x20a915;}function Jz(_0x2390d6,_0x285c9d,_0x2f827a=_0x2390d6['length']){for(let _0x2accc0=null==_0x285c9d?void 0x0:_0x285c9d['firstChild'];_0x2accc0;_0x2accc0=_0x2accc0['nextSibling'])if('JSXIdentifier'==_0x2accc0['name']||'JSXBuiltin'==_0x2accc0['name']||'JSXNamespacedName'==_0x2accc0['name']||'JSXMemberExpression'==_0x2accc0['name'])return _0x2390d6['sliceString'](_0x2accc0['from'],Math['min'](_0x2accc0['to'],_0x2f827a));return'';}const tY='object'==typeof navigator&&/Android\b/['test'](navigator['userAgent']),eY=oV['inputHandler']['of']((_0x3e240c,_0x8a19c3,_0x13a1ae,_0x35d18a,_0x54c6be)=>{if((tY?_0x3e240c['composing']:_0x3e240c['compositionStarted'])||_0x3e240c['state']['readOnly']||_0x8a19c3!=_0x13a1ae||'>'!=_0x35d18a&&'/'!=_0x35d18a||!Fz['isActiveAt'](_0x3e240c['state'],_0x8a19c3,-0x1))return!0x1;let _0x33448a=_0x54c6be(),{state:_0x4ea40c}=_0x33448a,_0x336d48=_0x4ea40c['changeByRange'](_0x3cf211=>{var _0x3e2ba9;let _0x25911b,{head:_0x1f836c}=_0x3cf211,_0x51ee8f=dF(_0x4ea40c)['resolveInner'](_0x1f836c-0x1,-0x1);if('JSXStartTag'==_0x51ee8f['name']&&(_0x51ee8f=_0x51ee8f['parent']),_0x4ea40c['doc']['sliceString'](_0x1f836c-0x1,_0x1f836c)!=_0x35d18a||'JSXAttributeValue'==_0x51ee8f['name']&&_0x51ee8f['to']>_0x1f836c);else{if('>'==_0x35d18a&&'JSXFragmentTag'==_0x51ee8f['name'])return{'range':_0x3cf211,'changes':{'from':_0x1f836c,'insert':'</>'}};if('/'==_0x35d18a&&'JSXStartCloseTag'==_0x51ee8f['name']){let _0x41e546=_0x51ee8f['parent'],_0x7e43d5=_0x41e546['parent'];if(_0x7e43d5&&_0x41e546['from']==_0x1f836c-0x2&&((_0x25911b=Jz(_0x4ea40c['doc'],_0x7e43d5['firstChild'],_0x1f836c))||'JSXFragmentTag'==(null===(_0x3e2ba9=_0x7e43d5['firstChild'])||void 0x0===_0x3e2ba9?void 0x0:_0x3e2ba9['name']))){let _0x4d9bf6=_0x25911b+'>';return{'range':PL['cursor'](_0x1f836c+_0x4d9bf6['length'],-0x1),'changes':{'from':_0x1f836c,'insert':_0x4d9bf6}};}}else{if('>'==_0x35d18a){let _0x161f2a=function(_0x1af176){for(;;){if('JSXOpenTag'==_0x1af176['name']||'JSXSelfClosingTag'==_0x1af176['name']||'JSXFragmentTag'==_0x1af176['name'])return _0x1af176;if('JSXEscape'==_0x1af176['name']||!_0x1af176['parent'])return null;_0x1af176=_0x1af176['parent'];}}(_0x51ee8f);if(_0x161f2a&&'JSXOpenTag'==_0x161f2a['name']&&!/^\/?>|^<\//['test'](_0x4ea40c['doc']['sliceString'](_0x1f836c,_0x1f836c+0x2))&&(_0x25911b=Jz(_0x4ea40c['doc'],_0x161f2a,_0x1f836c)))return{'range':_0x3cf211,'changes':{'from':_0x1f836c,'insert':'</'+_0x25911b+'>'}};}}}return{'range':_0x3cf211};});return!_0x336d48['changes']['empty']&&(_0x3e240c['dispatch']([_0x33448a,_0x4ea40c['update'](_0x336d48,{'userEvent':'input.complete','scrollIntoView':!0x0})]),!0x0);}),iY=['_blank','_self','_top','_parent'],sY=['ascii','utf-8','utf-16','latin1','latin1'],nY=['get','post','put','delete'],rY=['application/x-www-form-urlencoded','multipart/form-data','text/plain'],oY=['true','false'],aY={},cY={'a':{'attrs':{'href':null,'ping':null,'type':null,'media':null,'target':iY,'hreflang':null}},'abbr':aY,'address':aY,'area':{'attrs':{'alt':null,'coords':null,'href':null,'target':null,'ping':null,'media':null,'hreflang':null,'type':null,'shape':['default','rect','circle','poly']}},'article':aY,'aside':aY,'audio':{'attrs':{'src':null,'mediagroup':null,'crossorigin':['anonymous','use-credentials'],'preload':['none','metadata','auto'],'autoplay':['autoplay'],'loop':['loop'],'controls':['controls']}},'b':aY,'base':{'attrs':{'href':null,'target':iY}},'bdi':aY,'bdo':aY,'blockquote':{'attrs':{'cite':null}},'body':aY,'br':aY,'button':{'attrs':{'form':null,'formaction':null,'name':null,'value':null,'autofocus':['autofocus'],'disabled':['autofocus'],'formenctype':rY,'formmethod':nY,'formnovalidate':['novalidate'],'formtarget':iY,'type':['submit','reset','button']}},'canvas':{'attrs':{'width':null,'height':null}},'caption':aY,'center':aY,'cite':aY,'code':aY,'col':{'attrs':{'span':null}},'colgroup':{'attrs':{'span':null}},'command':{'attrs':{'type':['command','checkbox','radio'],'label':null,'icon':null,'radiogroup':null,'command':null,'title':null,'disabled':['disabled'],'checked':['checked']}},'data':{'attrs':{'value':null}},'datagrid':{'attrs':{'disabled':['disabled'],'multiple':['multiple']}},'datalist':{'attrs':{'data':null}},'dd':aY,'del':{'attrs':{'cite':null,'datetime':null}},'details':{'attrs':{'open':['open']}},'dfn':aY,'div':aY,'dl':aY,'dt':aY,'em':aY,'embed':{'attrs':{'src':null,'type':null,'width':null,'height':null}},'eventsource':{'attrs':{'src':null}},'fieldset':{'attrs':{'disabled':['disabled'],'form':null,'name':null}},'figcaption':aY,'figure':aY,'footer':aY,'form':{'attrs':{'action':null,'name':null,'accept-charset':sY,'autocomplete':['on','off'],'enctype':rY,'method':nY,'novalidate':['novalidate'],'target':iY}},'h1':aY,'h2':aY,'h3':aY,'h4':aY,'h5':aY,'h6':aY,'head':{'children':['title','base','link','style','meta','script','noscript','command']},'header':aY,'hgroup':aY,'hr':aY,'html':{'attrs':{'manifest':null}},'i':aY,'iframe':{'attrs':{'src':null,'srcdoc':null,'name':null,'width':null,'height':null,'sandbox':['allow-top-navigation','allow-same-origin','allow-forms','allow-scripts'],'seamless':['seamless']}},'img':{'attrs':{'alt':null,'src':null,'ismap':null,'usemap':null,'width':null,'height':null,'crossorigin':['anonymous','use-credentials']}},'input':{'attrs':{'alt':null,'dirname':null,'form':null,'formaction':null,'height':null,'list':null,'max':null,'maxlength':null,'min':null,'name':null,'pattern':null,'placeholder':null,'size':null,'src':null,'step':null,'value':null,'width':null,'accept':['audio/*','video/*','image/*'],'autocomplete':['on','off'],'autofocus':['autofocus'],'checked':['checked'],'disabled':['disabled'],'formenctype':rY,'formmethod':nY,'formnovalidate':['novalidate'],'formtarget':iY,'multiple':['multiple'],'readonly':['readonly'],'required':['required'],'type':['hidden','text','search','tel','url','email','password','datetime','date','month','week','time','datetime-local','number','range','color','checkbox','radio','file','submit','image','reset','button']}},'ins':{'attrs':{'cite':null,'datetime':null}},'kbd':aY,'keygen':{'attrs':{'challenge':null,'form':null,'name':null,'autofocus':['autofocus'],'disabled':['disabled'],'keytype':['RSA']}},'label':{'attrs':{'for':null,'form':null}},'legend':aY,'li':{'attrs':{'value':null}},'link':{'attrs':{'href':null,'type':null,'hreflang':null,'media':null,'sizes':['all','16x16','16x16\x2032x32','16x16\x2032x32\x2064x64']}},'map':{'attrs':{'name':null}},'mark':aY,'menu':{'attrs':{'label':null,'type':['list','context','toolbar']}},'meta':{'attrs':{'content':null,'charset':sY,'name':['viewport','application-name','author','description','generator','keywords'],'http-equiv':['content-language','content-type','default-style','refresh']}},'meter':{'attrs':{'value':null,'min':null,'low':null,'high':null,'max':null,'optimum':null}},'nav':aY,'noscript':aY,'object':{'attrs':{'data':null,'type':null,'name':null,'usemap':null,'form':null,'width':null,'height':null,'typemustmatch':['typemustmatch']}},'ol':{'attrs':{'reversed':['reversed'],'start':null,'type':['1','a','A','i','I']},'children':['li','script','template','ul','ol']},'optgroup':{'attrs':{'disabled':['disabled'],'label':null}},'option':{'attrs':{'disabled':['disabled'],'label':null,'selected':['selected'],'value':null}},'output':{'attrs':{'for':null,'form':null,'name':null}},'p':aY,'param':{'attrs':{'name':null,'value':null}},'pre':aY,'progress':{'attrs':{'value':null,'max':null}},'q':{'attrs':{'cite':null}},'rp':aY,'rt':aY,'ruby':aY,'samp':aY,'script':{'attrs':{'type':['text/javascript'],'src':null,'async':['async'],'defer':['defer'],'charset':sY}},'section':aY,'select':{'attrs':{'form':null,'name':null,'size':null,'autofocus':['autofocus'],'disabled':['disabled'],'multiple':['multiple']}},'slot':{'attrs':{'name':null}},'small':aY,'source':{'attrs':{'src':null,'type':null,'media':null}},'span':aY,'strong':aY,'style':{'attrs':{'type':['text/css'],'media':null,'scoped':null}},'sub':aY,'summary':aY,'sup':aY,'table':aY,'tbody':aY,'td':{'attrs':{'colspan':null,'rowspan':null,'headers':null}},'template':aY,'textarea':{'attrs':{'dirname':null,'form':null,'maxlength':null,'name':null,'placeholder':null,'rows':null,'cols':null,'autofocus':['autofocus'],'disabled':['disabled'],'readonly':['readonly'],'required':['required'],'wrap':['soft','hard']}},'tfoot':aY,'th':{'attrs':{'colspan':null,'rowspan':null,'headers':null,'scope':['row','col','rowgroup','colgroup']}},'thead':aY,'time':{'attrs':{'datetime':null}},'title':aY,'tr':aY,'track':{'attrs':{'src':null,'label':null,'default':null,'kind':['subtitles','captions','descriptions','chapters','metadata'],'srclang':null}},'ul':{'children':['li','script','template','ul','ol']},'var':aY,'video':{'attrs':{'src':null,'poster':null,'width':null,'height':null,'crossorigin':['anonymous','use-credentials'],'preload':['auto','metadata','none'],'autoplay':['autoplay'],'mediagroup':['movie'],'muted':['muted'],'controls':['controls']}},'wbr':aY},lY={'accesskey':null,'class':null,'contenteditable':oY,'contextmenu':null,'dir':['ltr','rtl','auto'],'draggable':['true','false','auto'],'dropzone':['copy','move','link','string:','file:'],'hidden':['hidden'],'id':null,'inert':['inert'],'itemid':null,'itemprop':null,'itemref':null,'itemscope':['itemscope'],'itemtype':null,'lang':['ar','bn','de','en-GB','en-US','es','fr','hi','id','ja','pa','pt','ru','tr','zh'],'spellcheck':oY,'autocorrect':oY,'autocapitalize':oY,'style':null,'tabindex':null,'title':null,'translate':['yes','no'],'rel':['stylesheet','alternate','author','bookmark','help','license','next','nofollow','noreferrer','prefetch','prev','search','tag'],'role':'alert\x20application\x20article\x20banner\x20button\x20cell\x20checkbox\x20complementary\x20contentinfo\x20dialog\x20document\x20feed\x20figure\x20form\x20grid\x20gridcell\x20heading\x20img\x20list\x20listbox\x20listitem\x20main\x20navigation\x20region\x20row\x20rowgroup\x20search\x20switch\x20tab\x20table\x20tabpanel\x20textbox\x20timer'['split']('\x20'),'aria-activedescendant':null,'aria-atomic':oY,'aria-autocomplete':['inline','list','both','none'],'aria-busy':oY,'aria-checked':['true','false','mixed','undefined'],'aria-controls':null,'aria-describedby':null,'aria-disabled':oY,'aria-dropeffect':null,'aria-expanded':['true','false','undefined'],'aria-flowto':null,'aria-grabbed':['true','false','undefined'],'aria-haspopup':oY,'aria-hidden':oY,'aria-invalid':['true','false','grammar','spelling'],'aria-label':null,'aria-labelledby':null,'aria-level':null,'aria-live':['off','polite','assertive'],'aria-multiline':oY,'aria-multiselectable':oY,'aria-owns':null,'aria-posinset':null,'aria-pressed':['true','false','mixed','undefined'],'aria-readonly':oY,'aria-relevant':null,'aria-required':oY,'aria-selected':['true','false','undefined'],'aria-setsize':null,'aria-sort':['ascending','descending','none','other'],'aria-valuemax':null,'aria-valuemin':null,'aria-valuenow':null,'aria-valuetext':null},hY='beforeunload\x20copy\x20cut\x20dragstart\x20dragover\x20dragleave\x20dragenter\x20dragend\x20drag\x20paste\x20focus\x20blur\x20change\x20click\x20load\x20mousedown\x20mouseenter\x20mouseleave\x20mouseup\x20keydown\x20keyup\x20resize\x20scroll\x20unload'['split']('\x20')['map'](_0x40c422=>'on'+_0x40c422);for(let e of hY)lY[e]=null;var uY=class{constructor(_0x4b5f26,_0x305454){this['tags']={...cY,..._0x4b5f26},this['globalAttrs']={...lY,..._0x305454},this['allTags']=Object['keys'](this['tags']),this['globalAttrNames']=Object['keys'](this['globalAttrs']);}};function dY(_0xa18f26,_0x5b1a10,_0x7596a3=_0xa18f26['length']){if(!_0x5b1a10)return'';let _0x189d25=_0x5b1a10['firstChild'],_0x31bf27=_0x189d25&&_0x189d25['getChild']('TagName');return _0x31bf27?_0xa18f26['sliceString'](_0x31bf27['from'],Math['min'](_0x31bf27['to'],_0x7596a3)):'';}function fY(_0x139876,_0x42725e=!0x1){for(;_0x139876;_0x139876=_0x139876['parent'])if('Element'==_0x139876['name']){if(!_0x42725e)return _0x139876;_0x42725e=!0x1;}return null;}function mY(_0x538337,_0x57a704,_0x17a13a){let _0x2099d1=_0x17a13a['tags'][dY(_0x538337,fY(_0x57a704))];return(null==_0x2099d1?void 0x0:_0x2099d1['children'])||_0x17a13a['allTags'];}function pY(_0x2712a6,_0x3c390a){let _0x26e3b2=[];for(let _0x36b88b=fY(_0x3c390a);_0x36b88b&&!_0x36b88b['type']['isTop'];_0x36b88b=fY(_0x36b88b['parent'])){let _0x5d22c1=dY(_0x2712a6,_0x36b88b);if(_0x5d22c1&&'CloseTag'==_0x36b88b['lastChild']['name'])break;_0x5d22c1&&_0x26e3b2['indexOf'](_0x5d22c1)<0x0&&('EndTag'==_0x3c390a['name']||_0x3c390a['from']>=_0x36b88b['firstChild']['to'])&&_0x26e3b2['push'](_0x5d22c1);}return _0x26e3b2;}uY['default']=new uY();const gY=/^[:\-\.\w\u00b7-\uffff]*$/;function OY(_0x5ebec8,_0x43f11a,_0xfe30f1,_0x2cb5a9,_0x1fc45d){let _0x5ddc28=/\s*>/['test'](_0x5ebec8['sliceDoc'](_0x1fc45d,_0x1fc45d+0x5))?'':'>',_0x376339=fY(_0xfe30f1,'StartTag'==_0xfe30f1['name']||'TagName'==_0xfe30f1['name']);return{'from':_0x2cb5a9,'to':_0x1fc45d,'options':mY(_0x5ebec8['doc'],_0x376339,_0x43f11a)['map'](_0x42ae04=>({'label':_0x42ae04,'type':'type'}))['concat'](pY(_0x5ebec8['doc'],_0xfe30f1)['map']((_0x1beabb,_0xfe6b99)=>({'label':'/'+_0x1beabb,'apply':'/'+_0x1beabb+_0x5ddc28,'type':'type','boost':0x63-_0xfe6b99}))),'validFor':/^\/?[:\-\.\w\u00b7-\uffff]*$/};}function wY(_0x39da59,_0x2b376a,_0x4d2536,_0x33549d){let _0x953c15=/\s*>/['test'](_0x39da59['sliceDoc'](_0x33549d,_0x33549d+0x5))?'':'>';return{'from':_0x4d2536,'to':_0x33549d,'options':pY(_0x39da59['doc'],_0x2b376a)['map']((_0x4683db,_0x3491e5)=>({'label':_0x4683db,'apply':_0x4683db+_0x953c15,'type':'type','boost':0x63-_0x3491e5})),'validFor':gY};}function bY(_0x3a3abe,_0x43eb99){let {state:_0x15869f,pos:_0x40337a}=_0x43eb99,_0xf7675c=dF(_0x15869f)['resolveInner'](_0x40337a,-0x1),_0x4a256c=_0xf7675c['resolve'](_0x40337a);for(let _0x5b295e,_0x355249=_0x40337a;_0x4a256c==_0xf7675c&&(_0x5b295e=_0xf7675c['childBefore'](_0x355249));){let _0x2b8e31=_0x5b295e['lastChild'];if(!_0x2b8e31||!_0x2b8e31['type']['isError']||_0x2b8e31['from']<_0x2b8e31['to'])break;_0x4a256c=_0xf7675c=_0x5b295e,_0x355249=_0x2b8e31['from'];}return'TagName'==_0xf7675c['name']?_0xf7675c['parent']&&/CloseTag$/['test'](_0xf7675c['parent']['name'])?wY(_0x15869f,_0xf7675c,_0xf7675c['from'],_0x40337a):OY(_0x15869f,_0x3a3abe,_0xf7675c,_0xf7675c['from'],_0x40337a):'StartTag'==_0xf7675c['name']||'IncompleteTag'==_0xf7675c['name']?OY(_0x15869f,_0x3a3abe,_0xf7675c,_0x40337a,_0x40337a):'StartCloseTag'==_0xf7675c['name']||'IncompleteCloseTag'==_0xf7675c['name']?wY(_0x15869f,_0xf7675c,_0x40337a,_0x40337a):'OpenTag'==_0xf7675c['name']||'SelfClosingTag'==_0xf7675c['name']||'AttributeName'==_0xf7675c['name']?function(_0x180a48,_0x1f5da1,_0x3e64cc,_0x441ba5,_0x1a33d5){let _0x579f19=fY(_0x3e64cc),_0x192db6=_0x579f19?_0x1f5da1['tags'][dY(_0x180a48['doc'],_0x579f19)]:null,_0x2aee6e=_0x192db6&&_0x192db6['attrs']?Object['keys'](_0x192db6['attrs']):[];return{'from':_0x441ba5,'to':_0x1a33d5,'options':(_0x192db6&&!0x1===_0x192db6['globalAttrs']?_0x2aee6e:_0x2aee6e['length']?_0x2aee6e['concat'](_0x1f5da1['globalAttrNames']):_0x1f5da1['globalAttrNames'])['map'](_0x4e8cf4=>({'label':_0x4e8cf4,'type':'property'})),'validFor':gY};}(_0x15869f,_0x3a3abe,_0xf7675c,'AttributeName'==_0xf7675c['name']?_0xf7675c['from']:_0x40337a,_0x40337a):'Is'==_0xf7675c['name']||'AttributeValue'==_0xf7675c['name']||'UnquotedAttributeValue'==_0xf7675c['name']?function(_0x3fcf70,_0x3a219c,_0x30bc61,_0xda424a,_0x2b077e){var _0xbac48c;let _0xccce0a,_0x450333=null===(_0xbac48c=_0x30bc61['parent'])||void 0x0===_0xbac48c?void 0x0:_0xbac48c['getChild']('AttributeName'),_0x13200f=[];if(_0x450333){let _0x3cadb9=_0x3fcf70['sliceDoc'](_0x450333['from'],_0x450333['to']),_0x46b4a5=_0x3a219c['globalAttrs'][_0x3cadb9];if(!_0x46b4a5){let _0x1928c9=fY(_0x30bc61),_0x5da2a2=_0x1928c9?_0x3a219c['tags'][dY(_0x3fcf70['doc'],_0x1928c9)]:null;_0x46b4a5=(null==_0x5da2a2?void 0x0:_0x5da2a2['attrs'])&&_0x5da2a2['attrs'][_0x3cadb9];}if(_0x46b4a5){let _0x51c354=_0x3fcf70['sliceDoc'](_0xda424a,_0x2b077e)['toLowerCase'](),_0x59fb80='\x22',_0x45d42e='\x22';/^['"]/['test'](_0x51c354)?(_0xccce0a='\x22'==_0x51c354[0x0]?/^[^"]*$/:/^[^']*$/,_0x59fb80='',_0x45d42e=_0x3fcf70['sliceDoc'](_0x2b077e,_0x2b077e+0x1)==_0x51c354[0x0]?'':_0x51c354[0x0],_0x51c354=_0x51c354['slice'](0x1),_0xda424a++):_0xccce0a=/^[^\s<>='"]*$/;for(let _0x40fc5d of _0x46b4a5)_0x13200f['push']({'label':_0x40fc5d,'apply':_0x59fb80+_0x40fc5d+_0x45d42e,'type':'constant'});}}return{'from':_0xda424a,'to':_0x2b077e,'options':_0x13200f,'validFor':_0xccce0a};}(_0x15869f,_0x3a3abe,_0xf7675c,'Is'==_0xf7675c['name']?_0x40337a:_0xf7675c['from'],_0x40337a):!_0x43eb99['explicit']||'Element'!=_0x4a256c['name']&&'Text'!=_0x4a256c['name']&&'Document'!=_0x4a256c['name']?null:function(_0x5f4969,_0x2578e0,_0x346413,_0x2b72f5){let _0x30b7e6=[],_0x160ee2=0x0;for(let _0x44f824 of mY(_0x5f4969['doc'],_0x346413,_0x2578e0))_0x30b7e6['push']({'label':'<'+_0x44f824,'type':'type'});for(let _0x38beea of pY(_0x5f4969['doc'],_0x346413))_0x30b7e6['push']({'label':'</'+_0x38beea+'>','type':'type','boost':0x63-_0x160ee2++});return{'from':_0x2b72f5,'to':_0x2b72f5,'options':_0x30b7e6,'validFor':/^<\/?[:\-\.\w\u00b7-\uffff]*$/};}(_0x15869f,_0x3a3abe,_0xf7675c,_0x40337a);}function yY(_0x18eaea){let {extraTags:_0x22004d,extraGlobalAttributes:_0x789430}=_0x18eaea,_0x33143a=_0x789430||_0x22004d?new uY(_0x22004d,_0x789430):uY['default'];return _0x224326=>bY(_0x33143a,_0x224326);}const vY=Fz['parser']['configure']({'top':'SingleExpression'}),_Y=[{'tag':'script','attrs':_0x3920c7=>'text/typescript'==_0x3920c7['type']||'ts'==_0x3920c7['lang'],'parser':Gz['parser']},{'tag':'script','attrs':_0x98e63=>'text/babel'==_0x98e63['type']||'text/jsx'==_0x98e63['type'],'parser':Xz['parser']},{'tag':'script','attrs':_0x1799df=>'text/typescript-jsx'==_0x1799df['type'],'parser':qz['parser']},{'tag':'script','attrs':_0x54067c=>/^(importmap|speculationrules|application\/(.+\+)?json)$/i['test'](_0x54067c['type']),'parser':vY},{'tag':'script','attrs':_0x394a8b=>!_0x394a8b['type']||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i['test'](_0x394a8b['type']),'parser':Fz['parser']},{'tag':'style','attrs':_0x20653b=>(!_0x20653b['lang']||'css'==_0x20653b['lang'])&&(!_0x20653b['type']||/^(text\/)?(x-)?(stylesheet|css)$/i['test'](_0x20653b['type'])),'parser':bz['parser']}],EY=[{'name':'style','parser':bz['parser']['configure']({'top':'Styles'})}]['concat'](hY['map'](_0x2efcc0=>({'name':_0x2efcc0,'parser':Fz['parser']}))),TY=uF['define']({'name':'html','parser':QW['configure']({'props':[CF['add']({'Element'(_0x201f55){let _0x59a2f1=/^(\s*)(<\/)?/['exec'](_0x201f55['textAfter']);return _0x201f55['node']['to']<=_0x201f55['pos']+_0x59a2f1[0x0]['length']?_0x201f55['continue']():_0x201f55['lineIndent'](_0x201f55['node']['from'])+(_0x59a2f1[0x2]?0x0:_0x201f55['unit']);},'OpenTag\x20CloseTag\x20SelfClosingTag':_0x11b22=>_0x11b22['column'](_0x11b22['node']['from'])+_0x11b22['unit'],'Document'(_0x4d9e24){if(_0x4d9e24['pos']+/\s*/['exec'](_0x4d9e24['textAfter'])[0x0]['length']<_0x4d9e24['node']['to'])return _0x4d9e24['continue']();let _0x19117d,_0xca5c96=null;for(let _0x22f4d2=_0x4d9e24['node'];;){let _0x249f00=_0x22f4d2['lastChild'];if(!_0x249f00||'Element'!=_0x249f00['name']||_0x249f00['to']!=_0x22f4d2['to'])break;_0xca5c96=_0x22f4d2=_0x249f00;}return _0xca5c96&&(!(_0x19117d=_0xca5c96['lastChild'])||'CloseTag'!=_0x19117d['name']&&'SelfClosingTag'!=_0x19117d['name'])?_0x4d9e24['lineIndent'](_0xca5c96['from'])+_0x4d9e24['unit']:null;}}),VF['add']({'Element'(_0x40165b){let _0x385ecb=_0x40165b['firstChild'],_0x22205a=_0x40165b['lastChild'];return _0x385ecb&&'OpenTag'==_0x385ecb['name']?{'from':_0x385ecb['to'],'to':'CloseTag'==_0x22205a['name']?_0x22205a['from']:_0x40165b['to']}:null;}}),xZ['add']({'OpenTag\x20CloseTag':_0x4b7a24=>_0x4b7a24['getChild']('TagName')})]}),'languageData':{'commentTokens':{'block':{'open':'\x3c!--','close':'--\x3e'}},'indentOnInput':/^\s*<\/\w+\W$/,'wordChars':'-_'}}),AY=TY['configure']({'wrap':BW(_Y,EY)});function SY(_0x28cad4={}){let _0x35d3a5,_0x381975='';return!0x1===_0x28cad4['matchClosingTags']&&(_0x381975='noMatch'),!0x0===_0x28cad4['selfClosingTags']&&(_0x381975=(_0x381975?_0x381975+'\x20':'')+'selfClosing'),(_0x28cad4['nestedLanguages']&&_0x28cad4['nestedLanguages']['length']||_0x28cad4['nestedAttributes']&&_0x28cad4['nestedAttributes']['length'])&&(_0x35d3a5=BW((_0x28cad4['nestedLanguages']||[])['concat'](_Y),(_0x28cad4['nestedAttributes']||[])['concat'](EY))),new _F(_0x35d3a5?TY['configure']({'wrap':_0x35d3a5,'dialect':_0x381975}):_0x381975?AY['configure']({'dialect':_0x381975}):AY,[AY['data']['of']({'autocomplete':yY(_0x28cad4)}),!0x1!==_0x28cad4['autoCloseTags']?kY:[],Kz()['support'],new _F(bz,bz['data']['of']({'autocomplete':wz}))['support']]);}const IY=new Set('area\x20base\x20br\x20col\x20command\x20embed\x20frame\x20hr\x20img\x20input\x20keygen\x20link\x20meta\x20param\x20source\x20track\x20wbr\x20menuitem'['split']('\x20')),kY=oV['inputHandler']['of']((_0x2dbd10,_0x4dd424,_0x1c7d00,_0x394eb7,_0x23bb38)=>{if(_0x2dbd10['composing']||_0x2dbd10['state']['readOnly']||_0x4dd424!=_0x1c7d00||'>'!=_0x394eb7&&'/'!=_0x394eb7||!AY['isActiveAt'](_0x2dbd10['state'],_0x4dd424,-0x1))return!0x1;let _0x59983e=_0x23bb38(),{state:_0x4ea93a}=_0x59983e,_0x15136f=_0x4ea93a['changeByRange'](_0x2dd7b1=>{var _0x1525f4,_0x34c867,_0x4efef5;let _0xf4bd8f,_0x52caad=_0x4ea93a['doc']['sliceString'](_0x2dd7b1['from']-0x1,_0x2dd7b1['to'])==_0x394eb7,{head:_0x177c7b}=_0x2dd7b1,_0x545eb6=dF(_0x4ea93a)['resolveInner'](_0x177c7b,-0x1);if(_0x52caad&&'>'==_0x394eb7&&'EndTag'==_0x545eb6['name']){let _0x1fd7ec=_0x545eb6['parent'];if('CloseTag'!=(null===(_0x34c867=null===(_0x1525f4=_0x1fd7ec['parent'])||void 0x0===_0x1525f4?void 0x0:_0x1525f4['lastChild'])||void 0x0===_0x34c867?void 0x0:_0x34c867['name'])&&(_0xf4bd8f=dY(_0x4ea93a['doc'],_0x1fd7ec['parent'],_0x177c7b))&&!IY['has'](_0xf4bd8f))return{'range':_0x2dd7b1,'changes':{'from':_0x177c7b,'to':_0x177c7b+('>'===_0x4ea93a['doc']['sliceString'](_0x177c7b,_0x177c7b+0x1)?0x1:0x0),'insert':'</'+_0xf4bd8f+'>'}};}else{if(_0x52caad&&'/'==_0x394eb7&&'IncompleteCloseTag'==_0x545eb6['name']){let _0x599034=_0x545eb6['parent'];if(_0x545eb6['from']==_0x177c7b-0x2&&'CloseTag'!=(null===(_0x4efef5=_0x599034['lastChild'])||void 0x0===_0x4efef5?void 0x0:_0x4efef5['name'])&&(_0xf4bd8f=dY(_0x4ea93a['doc'],_0x599034,_0x177c7b))&&!IY['has'](_0xf4bd8f)){let _0x2897a5=_0x177c7b+('>'===_0x4ea93a['doc']['sliceString'](_0x177c7b,_0x177c7b+0x1)?0x1:0x0),_0x5bbb4d=_0xf4bd8f+'>';return{'range':PL['cursor'](_0x177c7b+_0x5bbb4d['length'],-0x1),'changes':{'from':_0x177c7b,'to':_0x2897a5,'insert':_0x5bbb4d}};}}}return{'range':_0x2dd7b1};});return!_0x15136f['changes']['empty']&&(_0x2dbd10['dispatch']([_0x59983e,_0x4ea93a['update'](_0x15136f,{'userEvent':'input.complete','scrollIntoView':!0x0})]),!0x0);});var xY,CY=class CompositeBlock{static create(_0x8bae91,_0x230fb2,_0x3feb53,_0x1574f0,_0x1a215e){return new CompositeBlock(_0x8bae91,_0x230fb2,_0x3feb53,_0x1574f0+(_0x1574f0<<0x8)+_0x8bae91+(_0x230fb2<<0x4)|0x0,_0x1a215e,[],[]);}constructor(_0x5b5a6d,_0x1ef8de,_0x568f20,_0x4a749e,_0x4f35d6,_0x33c881,_0xdcc68d){this['type']=_0x5b5a6d,this['value']=_0x1ef8de,this['from']=_0x568f20,this['hash']=_0x4a749e,this['end']=_0x4f35d6,this['children']=_0x33c881,this['positions']=_0xdcc68d,this['hashProp']=[[HB['contextHash'],_0x4a749e]];}['addChild'](_0x5f2f54,_0x30999a){_0x5f2f54['prop'](HB['contextHash'])!=this['hash']&&(_0x5f2f54=new YB(_0x5f2f54['type'],_0x5f2f54['children'],_0x5f2f54['positions'],_0x5f2f54['length'],this['hashProp'])),this['children']['push'](_0x5f2f54),this['positions']['push'](_0x30999a);}toTree(_0x3dd69f,_0x35a85e=this['end']){let _0xe64aa7=this['children']['length']-0x1;return _0xe64aa7>=0x0&&(_0x35a85e=Math['max'](_0x35a85e,this['positions'][_0xe64aa7]+this['children'][_0xe64aa7]['length']+this['from'])),new YB(_0x3dd69f['types'][this['type']],this['children'],this['positions'],_0x35a85e-this['from'])['balance']({'makeTree':(_0x25c9b2,_0x2736b5,_0x4f2584)=>new YB(GB['none'],_0x25c9b2,_0x2736b5,_0x4f2584,this['hashProp'])});}};!function(_0x20b8ef){_0x20b8ef[_0x20b8ef['Document']=0x1]='Document',_0x20b8ef[_0x20b8ef['CodeBlock']=0x2]='CodeBlock',_0x20b8ef[_0x20b8ef['FencedCode']=0x3]='FencedCode',_0x20b8ef[_0x20b8ef['Blockquote']=0x4]='Blockquote',_0x20b8ef[_0x20b8ef['HorizontalRule']=0x5]='HorizontalRule',_0x20b8ef[_0x20b8ef['BulletList']=0x6]='BulletList',_0x20b8ef[_0x20b8ef['OrderedList']=0x7]='OrderedList',_0x20b8ef[_0x20b8ef['ListItem']=0x8]='ListItem',_0x20b8ef[_0x20b8ef['ATXHeading1']=0x9]='ATXHeading1',_0x20b8ef[_0x20b8ef['ATXHeading2']=0xa]='ATXHeading2',_0x20b8ef[_0x20b8ef['ATXHeading3']=0xb]='ATXHeading3',_0x20b8ef[_0x20b8ef['ATXHeading4']=0xc]='ATXHeading4',_0x20b8ef[_0x20b8ef['ATXHeading5']=0xd]='ATXHeading5',_0x20b8ef[_0x20b8ef['ATXHeading6']=0xe]='ATXHeading6',_0x20b8ef[_0x20b8ef['SetextHeading1']=0xf]='SetextHeading1',_0x20b8ef[_0x20b8ef['SetextHeading2']=0x10]='SetextHeading2',_0x20b8ef[_0x20b8ef['HTMLBlock']=0x11]='HTMLBlock',_0x20b8ef[_0x20b8ef['LinkReference']=0x12]='LinkReference',_0x20b8ef[_0x20b8ef['Paragraph']=0x13]='Paragraph',_0x20b8ef[_0x20b8ef['CommentBlock']=0x14]='CommentBlock',_0x20b8ef[_0x20b8ef['ProcessingInstructionBlock']=0x15]='ProcessingInstructionBlock',_0x20b8ef[_0x20b8ef['Escape']=0x16]='Escape',_0x20b8ef[_0x20b8ef['Entity']=0x17]='Entity',_0x20b8ef[_0x20b8ef['HardBreak']=0x18]='HardBreak',_0x20b8ef[_0x20b8ef['Emphasis']=0x19]='Emphasis',_0x20b8ef[_0x20b8ef['StrongEmphasis']=0x1a]='StrongEmphasis',_0x20b8ef[_0x20b8ef['Link']=0x1b]='Link',_0x20b8ef[_0x20b8ef['Image']=0x1c]='Image',_0x20b8ef[_0x20b8ef['InlineCode']=0x1d]='InlineCode',_0x20b8ef[_0x20b8ef['HTMLTag']=0x1e]='HTMLTag',_0x20b8ef[_0x20b8ef['Comment']=0x1f]='Comment',_0x20b8ef[_0x20b8ef['ProcessingInstruction']=0x20]='ProcessingInstruction',_0x20b8ef[_0x20b8ef['Autolink']=0x21]='Autolink',_0x20b8ef[_0x20b8ef['HeaderMark']=0x22]='HeaderMark',_0x20b8ef[_0x20b8ef['QuoteMark']=0x23]='QuoteMark',_0x20b8ef[_0x20b8ef['ListMark']=0x24]='ListMark',_0x20b8ef[_0x20b8ef['LinkMark']=0x25]='LinkMark',_0x20b8ef[_0x20b8ef['EmphasisMark']=0x26]='EmphasisMark',_0x20b8ef[_0x20b8ef['CodeMark']=0x27]='CodeMark',_0x20b8ef[_0x20b8ef['CodeText']=0x28]='CodeText',_0x20b8ef[_0x20b8ef['CodeInfo']=0x29]='CodeInfo',_0x20b8ef[_0x20b8ef['LinkTitle']=0x2a]='LinkTitle',_0x20b8ef[_0x20b8ef['LinkLabel']=0x2b]='LinkLabel',_0x20b8ef[_0x20b8ef['URL']=0x2c]='URL';}(xY||(xY={}));var RY=class{constructor(_0x4f14c5,_0x66cea8){this['start']=_0x4f14c5,this['content']=_0x66cea8,this['marks']=[],this['parsers']=[];}},PY=class{constructor(){this['text']='',this['baseIndent']=0x0,this['basePos']=0x0,this['depth']=0x0,this['markers']=[],this['pos']=0x0,this['indent']=0x0,this['next']=-0x1;}['forward'](){this['basePos']>this['pos']&&this['forwardInner']();}['forwardInner'](){let _0x6c9b6e=this['skipSpace'](this['basePos']);this['indent']=this['countIndent'](_0x6c9b6e,this['pos'],this['indent']),this['pos']=_0x6c9b6e,this['next']=_0x6c9b6e==this['text']['length']?-0x1:this['text']['charCodeAt'](_0x6c9b6e);}['skipSpace'](_0x31a489){return $Y(this['text'],_0x31a489);}reset(_0x276cd1){for(this['text']=_0x276cd1,this['baseIndent']=this['basePos']=this['pos']=this['indent']=0x0,this['forwardInner'](),this['depth']=0x1;this['markers']['length'];)this['markers']['pop']();}['moveBase'](_0x6a8ba0){this['basePos']=_0x6a8ba0,this['baseIndent']=this['countIndent'](_0x6a8ba0,this['pos'],this['indent']);}['moveBaseColumn'](_0x56ee26){this['baseIndent']=_0x56ee26,this['basePos']=this['findColumn'](_0x56ee26);}['addMarker'](_0x4256b6){this['markers']['push'](_0x4256b6);}countIndent(_0x31898d,_0x2fc5f1=0x0,_0x396c49=0x0){for(let _0x2c5c86=_0x2fc5f1;_0x2c5c86<_0x31898d;_0x2c5c86++)_0x396c49+=0x9==this['text']['charCodeAt'](_0x2c5c86)?0x4-_0x396c49%0x4:0x1;return _0x396c49;}['findColumn'](_0xf32125){let _0x5a51f7=0x0;for(let _0x4055ca=0x0;_0x5a51f7<this['text']['length']&&_0x4055ca<_0xf32125;_0x5a51f7++)_0x4055ca+=0x9==this['text']['charCodeAt'](_0x5a51f7)?0x4-_0x4055ca%0x4:0x1;return _0x5a51f7;}['scrub'](){if(!this['baseIndent'])return this['text'];let _0x32db25='';for(let _0x3dca9b=0x0;_0x3dca9b<this['basePos'];_0x3dca9b++)_0x32db25+='\x20';return _0x32db25+this['text']['slice'](this['basePos']);}};function NY(_0x25b62a,_0x540a2d,_0x1c40f2){if(_0x1c40f2['pos']==_0x1c40f2['text']['length']||_0x25b62a!=_0x540a2d['block']&&_0x1c40f2['indent']>=_0x540a2d['stack'][_0x1c40f2['depth']+0x1]['value']+_0x1c40f2['baseIndent'])return!0x0;if(_0x1c40f2['indent']>=_0x1c40f2['baseIndent']+0x4)return!0x1;let _0x226500=(_0x25b62a['type']==xY['OrderedList']?HY:BY)(_0x1c40f2,_0x540a2d,!0x1);return _0x226500>0x0&&(_0x25b62a['type']!=xY['BulletList']||UY(_0x1c40f2,_0x540a2d,!0x1)<0x0)&&_0x1c40f2['text']['charCodeAt'](_0x1c40f2['pos']+_0x226500-0x1)==_0x25b62a['value'];}const MY={[xY['Blockquote']]:(_0x3915cd,_0x35e7d3,_0x494337)=>0x3e==_0x494337['next']&&(_0x494337['markers']['push'](OK(xY['QuoteMark'],_0x35e7d3['lineStart']+_0x494337['pos'],_0x35e7d3['lineStart']+_0x494337['pos']+0x1)),_0x494337['moveBase'](_0x494337['pos']+(LY(_0x494337['text']['charCodeAt'](_0x494337['pos']+0x1))?0x2:0x1)),_0x3915cd['end']=_0x35e7d3['lineStart']+_0x494337['text']['length'],!0x0),[xY['ListItem']]:(_0x264ee5,_0x23f714,_0x274896)=>!(_0x274896['indent']<_0x274896['baseIndent']+_0x264ee5['value']&&_0x274896['next']>-0x1)&&(_0x274896['moveBaseColumn'](_0x274896['baseIndent']+_0x264ee5['value']),!0x0),[xY['OrderedList']]:NY,[xY['BulletList']]:NY,[xY['Document']]:()=>!0x0};function LY(_0x318aaa){return 0x20==_0x318aaa||0x9==_0x318aaa||0xa==_0x318aaa||0xd==_0x318aaa;}function $Y(_0x2f5a7f,_0x2baeb1=0x0){for(;_0x2baeb1<_0x2f5a7f['length']&&LY(_0x2f5a7f['charCodeAt'](_0x2baeb1));)_0x2baeb1++;return _0x2baeb1;}function DY(_0x1f7602,_0x4a9ca8,_0x2336d7){for(;_0x4a9ca8>_0x2336d7&&LY(_0x1f7602['charCodeAt'](_0x4a9ca8-0x1));)_0x4a9ca8--;return _0x4a9ca8;}function QY(_0x2db687){if(0x60!=_0x2db687['next']&&0x7e!=_0x2db687['next'])return-0x1;let _0x5bb1bc=_0x2db687['pos']+0x1;for(;_0x5bb1bc<_0x2db687['text']['length']&&_0x2db687['text']['charCodeAt'](_0x5bb1bc)==_0x2db687['next'];)_0x5bb1bc++;if(_0x5bb1bc<_0x2db687['pos']+0x3)return-0x1;if(0x60==_0x2db687['next']){for(let _0x3878a5=_0x5bb1bc;_0x3878a5<_0x2db687['text']['length'];_0x3878a5++)if(0x60==_0x2db687['text']['charCodeAt'](_0x3878a5))return-0x1;}return _0x5bb1bc;}function jY(_0x530ff2){return 0x3e!=_0x530ff2['next']?-0x1:0x20==_0x530ff2['text']['charCodeAt'](_0x530ff2['pos']+0x1)?0x2:0x1;}function UY(_0x260eec,_0x26a994,_0x3f36c4){if(0x2a!=_0x260eec['next']&&0x2d!=_0x260eec['next']&&0x5f!=_0x260eec['next'])return-0x1;let _0x2dee4d=0x1;for(let _0xd22e0f=_0x260eec['pos']+0x1;_0xd22e0f<_0x260eec['text']['length'];_0xd22e0f++){let _0x5c36f1=_0x260eec['text']['charCodeAt'](_0xd22e0f);if(_0x5c36f1==_0x260eec['next'])_0x2dee4d++;else{if(!LY(_0x5c36f1))return-0x1;}}return _0x3f36c4&&0x2d==_0x260eec['next']&&ZY(_0x260eec)>-0x1&&_0x260eec['depth']==_0x26a994['stack']['length']&&_0x26a994['parser']['leafBlockParsers']['indexOf'](sK['SetextHeading'])>-0x1||_0x2dee4d<0x3?-0x1:0x1;}function VY(_0x16347c,_0x323c2a){for(let _0x1cca4b=_0x16347c['stack']['length']-0x1;_0x1cca4b>=0x0;_0x1cca4b--)if(_0x16347c['stack'][_0x1cca4b]['type']==_0x323c2a)return!0x0;return!0x1;}function BY(_0x58e65e,_0x348bb1,_0x12f1bb){return 0x2d!=_0x58e65e['next']&&0x2b!=_0x58e65e['next']&&0x2a!=_0x58e65e['next']||_0x58e65e['pos']!=_0x58e65e['text']['length']-0x1&&!LY(_0x58e65e['text']['charCodeAt'](_0x58e65e['pos']+0x1))||!(!_0x12f1bb||VY(_0x348bb1,xY['BulletList'])||_0x58e65e['skipSpace'](_0x58e65e['pos']+0x2)<_0x58e65e['text']['length'])?-0x1:0x1;}function HY(_0x4d8b2d,_0x386cf9,_0x496d3c){let _0x11e58d=_0x4d8b2d['pos'],_0x37ac5e=_0x4d8b2d['next'];for(;_0x37ac5e>=0x30&&_0x37ac5e<=0x39;){if(_0x11e58d++,_0x11e58d==_0x4d8b2d['text']['length'])return-0x1;_0x37ac5e=_0x4d8b2d['text']['charCodeAt'](_0x11e58d);}return _0x11e58d==_0x4d8b2d['pos']||_0x11e58d>_0x4d8b2d['pos']+0x9||0x2e!=_0x37ac5e&&0x29!=_0x37ac5e||_0x11e58d<_0x4d8b2d['text']['length']-0x1&&!LY(_0x4d8b2d['text']['charCodeAt'](_0x11e58d+0x1))||_0x496d3c&&!VY(_0x386cf9,xY['OrderedList'])&&(_0x4d8b2d['skipSpace'](_0x11e58d+0x1)==_0x4d8b2d['text']['length']||_0x11e58d>_0x4d8b2d['pos']+0x1||0x31!=_0x4d8b2d['next'])?-0x1:_0x11e58d+0x1-_0x4d8b2d['pos'];}function FY(_0x100591){if(0x23!=_0x100591['next'])return-0x1;let _0x29fe00=_0x100591['pos']+0x1;for(;_0x29fe00<_0x100591['text']['length']&&0x23==_0x100591['text']['charCodeAt'](_0x29fe00);)_0x29fe00++;if(_0x29fe00<_0x100591['text']['length']&&0x20!=_0x100591['text']['charCodeAt'](_0x29fe00))return-0x1;let _0x239017=_0x29fe00-_0x100591['pos'];return _0x239017>0x6?-0x1:_0x239017;}function ZY(_0x3a2a54){if(0x2d!=_0x3a2a54['next']&&0x3d!=_0x3a2a54['next']||_0x3a2a54['indent']>=_0x3a2a54['baseIndent']+0x4)return-0x1;let _0x2d54b3=_0x3a2a54['pos']+0x1;for(;_0x2d54b3<_0x3a2a54['text']['length']&&_0x3a2a54['text']['charCodeAt'](_0x2d54b3)==_0x3a2a54['next'];)_0x2d54b3++;let _0xe2c379=_0x2d54b3;for(;_0x2d54b3<_0x3a2a54['text']['length']&&LY(_0x3a2a54['text']['charCodeAt'](_0x2d54b3));)_0x2d54b3++;return _0x2d54b3==_0x3a2a54['text']['length']?_0xe2c379:-0x1;}const GY=/^[ \t]*$/,XY=/-->/,qY=/\?>/,WY=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,XY],[/^\s*<\?/,qY],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,GY],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,GY]];function zY(_0x4c05f5,_0x4ef6fd,_0x563188){if(0x3c!=_0x4c05f5['next'])return-0x1;let _0x507a8a=_0x4c05f5['text']['slice'](_0x4c05f5['pos']);for(let _0xc118b6=0x0,_0x5aedc9=WY['length']-(_0x563188?0x1:0x0);_0xc118b6<_0x5aedc9;_0xc118b6++)if(WY[_0xc118b6][0x0]['test'](_0x507a8a))return _0xc118b6;return-0x1;}function YY(_0x1cb264,_0x11e51e){let _0x24573d=_0x1cb264['countIndent'](_0x11e51e,_0x1cb264['pos'],_0x1cb264['indent']),_0x5a986e=_0x1cb264['countIndent'](_0x1cb264['skipSpace'](_0x11e51e),_0x11e51e,_0x24573d);return _0x5a986e>=_0x24573d+0x5?_0x24573d+0x1:_0x5a986e;}function KY(_0x144e42,_0x5951d8,_0x23ddb5){let _0x1b43a5=_0x144e42['length']-0x1;_0x1b43a5>=0x0&&_0x144e42[_0x1b43a5]['to']==_0x5951d8&&_0x144e42[_0x1b43a5]['type']==xY['CodeText']?_0x144e42[_0x1b43a5]['to']=_0x23ddb5:_0x144e42['push'](OK(xY['CodeText'],_0x5951d8,_0x23ddb5));}const JY={'LinkReference':void 0x0,'IndentedCode'(_0x365c01,_0x3d77b3){let _0x5c654c=_0x3d77b3['baseIndent']+0x4;if(_0x3d77b3['indent']<_0x5c654c)return!0x1;let _0x56aa97=_0x3d77b3['findColumn'](_0x5c654c),_0x5e2a91=_0x365c01['lineStart']+_0x56aa97,_0x5f3d83=_0x365c01['lineStart']+_0x3d77b3['text']['length'],_0x2d3c45=[],_0x1f78d1=[];for(KY(_0x2d3c45,_0x5e2a91,_0x5f3d83);_0x365c01['nextLine']()&&_0x3d77b3['depth']>=_0x365c01['stack']['length'];)if(_0x3d77b3['pos']==_0x3d77b3['text']['length']){KY(_0x1f78d1,_0x365c01['lineStart']-0x1,_0x365c01['lineStart']);for(let _0x35d994 of _0x3d77b3['markers'])_0x1f78d1['push'](_0x35d994);}else{if(_0x3d77b3['indent']<_0x5c654c)break;{if(_0x1f78d1['length']){for(let _0xf7d58b of _0x1f78d1)_0xf7d58b['type']==xY['CodeText']?KY(_0x2d3c45,_0xf7d58b['from'],_0xf7d58b['to']):_0x2d3c45['push'](_0xf7d58b);_0x1f78d1=[];}KY(_0x2d3c45,_0x365c01['lineStart']-0x1,_0x365c01['lineStart']);for(let _0x4096c3 of _0x3d77b3['markers'])_0x2d3c45['push'](_0x4096c3);_0x5f3d83=_0x365c01['lineStart']+_0x3d77b3['text']['length'];let _0xec8ffb=_0x365c01['lineStart']+_0x3d77b3['findColumn'](_0x3d77b3['baseIndent']+0x4);_0xec8ffb<_0x5f3d83&&KY(_0x2d3c45,_0xec8ffb,_0x5f3d83);}}return _0x1f78d1['length']&&(_0x1f78d1=_0x1f78d1['filter'](_0x3fd7a0=>_0x3fd7a0['type']!=xY['CodeText']),_0x1f78d1['length']&&(_0x3d77b3['markers']=_0x1f78d1['concat'](_0x3d77b3['markers']))),_0x365c01['addNode'](_0x365c01['buffer']['writeElements'](_0x2d3c45,-_0x5e2a91)['finish'](xY['CodeBlock'],_0x5f3d83-_0x5e2a91),_0x5e2a91),!0x0;},'FencedCode'(_0xfff300,_0x257f27){let _0x2f355b=QY(_0x257f27);if(_0x2f355b<0x0)return!0x1;let _0x5ead4e=_0xfff300['lineStart']+_0x257f27['pos'],_0x271c65=_0x257f27['next'],_0x56f307=_0x2f355b-_0x257f27['pos'],_0x3d4eab=_0x257f27['skipSpace'](_0x2f355b),_0x25a928=DY(_0x257f27['text'],_0x257f27['text']['length'],_0x3d4eab),_0x57db79=[OK(xY['CodeMark'],_0x5ead4e,_0x5ead4e+_0x56f307)];_0x3d4eab<_0x25a928&&_0x57db79['push'](OK(xY['CodeInfo'],_0xfff300['lineStart']+_0x3d4eab,_0xfff300['lineStart']+_0x25a928));for(let _0x573646=!0x0,_0x15dcb8=!0x0,_0x264fe1=!0x1;_0xfff300['nextLine']()&&_0x257f27['depth']>=_0xfff300['stack']['length'];_0x573646=!0x1){let _0x59a317=_0x257f27['pos'];if(_0x257f27['indent']-_0x257f27['baseIndent']<0x4){for(;_0x59a317<_0x257f27['text']['length']&&_0x257f27['text']['charCodeAt'](_0x59a317)==_0x271c65;)_0x59a317++;}if(_0x59a317-_0x257f27['pos']>=_0x56f307&&_0x257f27['skipSpace'](_0x59a317)==_0x257f27['text']['length']){for(let _0x51f902 of _0x257f27['markers'])_0x57db79['push'](_0x51f902);_0x15dcb8&&_0x264fe1&&KY(_0x57db79,_0xfff300['lineStart']-0x1,_0xfff300['lineStart']),_0x57db79['push'](OK(xY['CodeMark'],_0xfff300['lineStart']+_0x257f27['pos'],_0xfff300['lineStart']+_0x59a317)),_0xfff300['nextLine']();break;}{_0x264fe1=!0x0,_0x573646||(KY(_0x57db79,_0xfff300['lineStart']-0x1,_0xfff300['lineStart']),_0x15dcb8=!0x1);for(let _0xb817b1 of _0x257f27['markers'])_0x57db79['push'](_0xb817b1);let _0x322703=_0xfff300['lineStart']+_0x257f27['basePos'],_0x26e44c=_0xfff300['lineStart']+_0x257f27['text']['length'];_0x322703<_0x26e44c&&(KY(_0x57db79,_0x322703,_0x26e44c),_0x15dcb8=!0x1);}}return _0xfff300['addNode'](_0xfff300['buffer']['writeElements'](_0x57db79,-_0x5ead4e)['finish'](xY['FencedCode'],_0xfff300['prevLineEnd']()-_0x5ead4e),_0x5ead4e),!0x0;},'Blockquote'(_0x4eeffe,_0x107bd9){let _0x3b82af=jY(_0x107bd9);return!(_0x3b82af<0x0)&&(_0x4eeffe['startContext'](xY['Blockquote'],_0x107bd9['pos']),_0x4eeffe['addNode'](xY['QuoteMark'],_0x4eeffe['lineStart']+_0x107bd9['pos'],_0x4eeffe['lineStart']+_0x107bd9['pos']+0x1),_0x107bd9['moveBase'](_0x107bd9['pos']+_0x3b82af),null);},'HorizontalRule'(_0x250b0c,_0x9c331){if(UY(_0x9c331,_0x250b0c,!0x1)<0x0)return!0x1;let _0xb76195=_0x250b0c['lineStart']+_0x9c331['pos'];return _0x250b0c['nextLine'](),_0x250b0c['addNode'](xY['HorizontalRule'],_0xb76195),!0x0;},'BulletList'(_0x19760a,_0x4a450d){let _0x5de77c=BY(_0x4a450d,_0x19760a,!0x1);if(_0x5de77c<0x0)return!0x1;_0x19760a['block']['type']!=xY['BulletList']&&_0x19760a['startContext'](xY['BulletList'],_0x4a450d['basePos'],_0x4a450d['next']);let _0x299684=YY(_0x4a450d,_0x4a450d['pos']+0x1);return _0x19760a['startContext'](xY['ListItem'],_0x4a450d['basePos'],_0x299684-_0x4a450d['baseIndent']),_0x19760a['addNode'](xY['ListMark'],_0x19760a['lineStart']+_0x4a450d['pos'],_0x19760a['lineStart']+_0x4a450d['pos']+_0x5de77c),_0x4a450d['moveBaseColumn'](_0x299684),null;},'OrderedList'(_0x2a1145,_0x1f20f8){let _0x6d8bdf=HY(_0x1f20f8,_0x2a1145,!0x1);if(_0x6d8bdf<0x0)return!0x1;_0x2a1145['block']['type']!=xY['OrderedList']&&_0x2a1145['startContext'](xY['OrderedList'],_0x1f20f8['basePos'],_0x1f20f8['text']['charCodeAt'](_0x1f20f8['pos']+_0x6d8bdf-0x1));let _0x41f17d=YY(_0x1f20f8,_0x1f20f8['pos']+_0x6d8bdf);return _0x2a1145['startContext'](xY['ListItem'],_0x1f20f8['basePos'],_0x41f17d-_0x1f20f8['baseIndent']),_0x2a1145['addNode'](xY['ListMark'],_0x2a1145['lineStart']+_0x1f20f8['pos'],_0x2a1145['lineStart']+_0x1f20f8['pos']+_0x6d8bdf),_0x1f20f8['moveBaseColumn'](_0x41f17d),null;},'ATXHeading'(_0x3d11f1,_0x144307){let _0x30b206=FY(_0x144307);if(_0x30b206<0x0)return!0x1;let _0x9396fe=_0x144307['pos'],_0x36ad9b=_0x3d11f1['lineStart']+_0x9396fe,_0x3394f1=DY(_0x144307['text'],_0x144307['text']['length'],_0x9396fe),_0x5920ed=_0x3394f1;for(;_0x5920ed>_0x9396fe&&_0x144307['text']['charCodeAt'](_0x5920ed-0x1)==_0x144307['next'];)_0x5920ed--;_0x5920ed!=_0x3394f1&&_0x5920ed!=_0x9396fe&&LY(_0x144307['text']['charCodeAt'](_0x5920ed-0x1))||(_0x5920ed=_0x144307['text']['length']);let _0x5910c3=_0x3d11f1['buffer']['write'](xY['HeaderMark'],0x0,_0x30b206)['writeElements'](_0x3d11f1['parser']['parseInline'](_0x144307['text']['slice'](_0x9396fe+_0x30b206+0x1,_0x5920ed),_0x36ad9b+_0x30b206+0x1),-_0x36ad9b);_0x5920ed<_0x144307['text']['length']&&_0x5910c3['write'](xY['HeaderMark'],_0x5920ed-_0x9396fe,_0x3394f1-_0x9396fe);let _0x39e175=_0x5910c3['finish'](xY['ATXHeading1']-0x1+_0x30b206,_0x144307['text']['length']-_0x9396fe);return _0x3d11f1['nextLine'](),_0x3d11f1['addNode'](_0x39e175,_0x36ad9b),!0x0;},'HTMLBlock'(_0x17e35a,_0x116dc9){let _0x10bef9=zY(_0x116dc9,0x0,!0x1);if(_0x10bef9<0x0)return!0x1;let _0x499189=_0x17e35a['lineStart']+_0x116dc9['pos'],_0x11a955=WY[_0x10bef9][0x1],_0x2824a2=[],_0x1040e2=_0x11a955!=GY;for(;!_0x11a955['test'](_0x116dc9['text'])&&_0x17e35a['nextLine']();){if(_0x116dc9['depth']<_0x17e35a['stack']['length']){_0x1040e2=!0x1;break;}for(let _0x574338 of _0x116dc9['markers'])_0x2824a2['push'](_0x574338);}_0x1040e2&&_0x17e35a['nextLine']();let _0x34b8b9=_0x11a955==XY?xY['CommentBlock']:_0x11a955==qY?xY['ProcessingInstructionBlock']:xY['HTMLBlock'],_0x1a53dd=_0x17e35a['prevLineEnd']();return _0x17e35a['addNode'](_0x17e35a['buffer']['writeElements'](_0x2824a2,-_0x499189)['finish'](_0x34b8b9,_0x1a53dd-_0x499189),_0x499189),!0x0;},'SetextHeading':void 0x0};var tK=class{constructor(_0x58645b){this['stage']=0x0,this['elts']=[],this['pos']=0x0,this['start']=_0x58645b['start'],this['advance'](_0x58645b['content']);}nextLine(_0x14623f,_0x5865ef,_0x8c7f3a){if(-0x1==this['stage'])return!0x1;let _0x4b3bcc=_0x8c7f3a['content']+'\x0a'+_0x5865ef['scrub'](),_0x4b5dfe=this['advance'](_0x4b3bcc);return _0x4b5dfe>-0x1&&_0x4b5dfe<_0x4b3bcc['length']&&this['complete'](_0x14623f,_0x8c7f3a,_0x4b5dfe);}['finish'](_0x546a7f,_0x462ec3){return(0x2==this['stage']||0x3==this['stage'])&&$Y(_0x462ec3['content'],this['pos'])==_0x462ec3['content']['length']&&this['complete'](_0x546a7f,_0x462ec3,_0x462ec3['content']['length']);}complete(_0x278285,_0x30a98f,_0x333721){return _0x278285['addLeafElement'](_0x30a98f,OK(xY['LinkReference'],this['start'],this['start']+_0x333721,this['elts'])),!0x0;}nextStage(_0x5a2910){return _0x5a2910?(this['pos']=_0x5a2910['to']-this['start'],this['elts']['push'](_0x5a2910),this['stage']++,!0x0):(!0x1===_0x5a2910&&(this['stage']=-0x1),!0x1);}['advance'](_0x1ef24a){for(;;){if(-0x1==this['stage'])return-0x1;if(0x0==this['stage']){if(!this['nextStage'](kK(_0x1ef24a,this['pos'],this['start'],!0x0)))return-0x1;if(0x3a!=_0x1ef24a['charCodeAt'](this['pos']))return this['stage']=-0x1;this['elts']['push'](OK(xY['LinkMark'],this['pos']+this['start'],this['pos']+this['start']+0x1)),this['pos']++;}else{if(0x1!=this['stage']){if(0x2==this['stage']){let _0x5b850c=$Y(_0x1ef24a,this['pos']),_0x414f1b=0x0;if(_0x5b850c>this['pos']){let _0x2e5a33=IK(_0x1ef24a,_0x5b850c,this['start']);if(_0x2e5a33){let _0x5ee446=eK(_0x1ef24a,_0x2e5a33['to']-this['start']);_0x5ee446>0x0&&(this['nextStage'](_0x2e5a33),_0x414f1b=_0x5ee446);}}return _0x414f1b||(_0x414f1b=eK(_0x1ef24a,this['pos'])),_0x414f1b>0x0&&_0x414f1b<_0x1ef24a['length']?_0x414f1b:-0x1;}return eK(_0x1ef24a,this['pos']);}if(!this['nextStage'](SK(_0x1ef24a,$Y(_0x1ef24a,this['pos']),this['start'])))return-0x1;}}}};function eK(_0x55fee6,_0x12a162){for(;_0x12a162<_0x55fee6['length'];_0x12a162++){let _0x1af877=_0x55fee6['charCodeAt'](_0x12a162);if(0xa==_0x1af877)break;if(!LY(_0x1af877))return-0x1;}return _0x12a162;}var iK=class{nextLine(_0x420466,_0x3d00d0,_0x3129d5){let _0xc03d1b=_0x3d00d0['depth']<_0x420466['stack']['length']?-0x1:ZY(_0x3d00d0),_0x54a7e0=_0x3d00d0['next'];if(_0xc03d1b<0x0)return!0x1;let _0x421a5b=OK(xY['HeaderMark'],_0x420466['lineStart']+_0x3d00d0['pos'],_0x420466['lineStart']+_0xc03d1b);return _0x420466['nextLine'](),_0x420466['addLeafElement'](_0x3129d5,OK(0x3d==_0x54a7e0?xY['SetextHeading1']:xY['SetextHeading2'],_0x3129d5['start'],_0x420466['prevLineEnd'](),[..._0x420466['parser']['parseInline'](_0x3129d5['content'],_0x3129d5['start']),_0x421a5b])),!0x0;}['finish'](){return!0x1;}};const sK={'LinkReference':(_0x48b6b3,_0x11338c)=>0x5b==_0x11338c['content']['charCodeAt'](0x0)?new tK(_0x11338c):null,'SetextHeading':()=>new iK()},nK=[(_0x8eba30,_0xd8fe4e)=>FY(_0xd8fe4e)>=0x0,(_0x133014,_0x480b22)=>QY(_0x480b22)>=0x0,(_0x179365,_0x2ad97d)=>jY(_0x2ad97d)>=0x0,(_0x5c7d4d,_0x368e87)=>BY(_0x368e87,_0x5c7d4d,!0x0)>=0x0,(_0x1c2c8e,_0x46bac3)=>HY(_0x46bac3,_0x1c2c8e,!0x0)>=0x0,(_0x2fa641,_0x2da882)=>UY(_0x2da882,_0x2fa641,!0x0)>=0x0,(_0x4f3b11,_0x4cfc5f)=>zY(_0x4cfc5f,0x0,!0x0)>=0x0],rK={'text':'','end':0x0};var oK=class{constructor(_0xcf187c,_0x9280d8,_0x3ce5d8,_0x37aebb){this['parser']=_0xcf187c,this['input']=_0x9280d8,this['ranges']=_0x37aebb,this['line']=new PY(),this['atEnd']=!0x1,this['reusePlaceholders']=new Map(),this['stoppedAt']=null,this['rangeI']=0x0,this['to']=_0x37aebb[_0x37aebb['length']-0x1]['to'],this['lineStart']=this['absoluteLineStart']=this['absoluteLineEnd']=_0x37aebb[0x0]['from'],this['block']=CY['create'](xY['Document'],0x0,this['lineStart'],0x0,0x0),this['stack']=[this['block']],this['fragments']=_0x3ce5d8['length']?new PK(_0x3ce5d8,_0x9280d8):null,this['readLine']();}get['parsedPos'](){return this['absoluteLineStart'];}['advance'](){if(null!=this['stoppedAt']&&this['absoluteLineStart']>this['stoppedAt'])return this['finish']();let {line:_0x52447d}=this;for(;;){for(let _0x57678a=0x0;;){let _0x359914=_0x52447d['depth']<this['stack']['length']?this['stack'][this['stack']['length']-0x1]:null;for(;_0x57678a<_0x52447d['markers']['length']&&(!_0x359914||_0x52447d['markers'][_0x57678a]['from']<_0x359914['end']);){let _0x44bd7a=_0x52447d['markers'][_0x57678a++];this['addNode'](_0x44bd7a['type'],_0x44bd7a['from'],_0x44bd7a['to']);}if(!_0x359914)break;this['finishContext']();}if(_0x52447d['pos']<_0x52447d['text']['length'])break;if(!this['nextLine']())return this['finish']();}if(this['fragments']&&this['reuseFragment'](_0x52447d['basePos']))return null;t:for(;;){for(let _0x140d64 of this['parser']['blockParsers'])if(_0x140d64){let _0x35b343=_0x140d64(this,_0x52447d);if(0x0!=_0x35b343){if(0x1==_0x35b343)return null;_0x52447d['forward']();continue t;}}break;}let _0x2458ca=new RY(this['lineStart']+_0x52447d['pos'],_0x52447d['text']['slice'](_0x52447d['pos']));for(let _0x5c47f5 of this['parser']['leafBlockParsers'])if(_0x5c47f5){let _0x48805f=_0x5c47f5(this,_0x2458ca);_0x48805f&&_0x2458ca['parsers']['push'](_0x48805f);}t:for(;this['nextLine']()&&_0x52447d['pos']!=_0x52447d['text']['length'];){if(_0x52447d['indent']<_0x52447d['baseIndent']+0x4){for(let _0x213e08 of this['parser']['endLeafBlock'])if(_0x213e08(this,_0x52447d,_0x2458ca))break t;}for(let _0x1ae122 of _0x2458ca['parsers'])if(_0x1ae122['nextLine'](this,_0x52447d,_0x2458ca))return null;_0x2458ca['content']+='\x0a'+_0x52447d['scrub']();for(let _0xb4670b of _0x52447d['markers'])_0x2458ca['marks']['push'](_0xb4670b);}return this['finishLeaf'](_0x2458ca),null;}stopAt(_0x2b92b3){if(null!=this['stoppedAt']&&this['stoppedAt']<_0x2b92b3)throw new RangeError('Can\x27t\x20move\x20stoppedAt\x20forward');this['stoppedAt']=_0x2b92b3;}reuseFragment(_0xb57c7d){if(!this['fragments']['moveTo'](this['absoluteLineStart']+_0xb57c7d,this['absoluteLineStart'])||!this['fragments']['matches'](this['block']['hash']))return!0x1;let _0x533be7=this['fragments']['takeNodes'](this);return!!_0x533be7&&(this['absoluteLineStart']+=_0x533be7,this['lineStart']=NK(this['absoluteLineStart'],this['ranges']),this['moveRangeI'](),this['absoluteLineStart']<this['to']?(this['lineStart']++,this['absoluteLineStart']++,this['readLine']()):(this['atEnd']=!0x0,this['readLine']()),!0x0);}get depth(){return this['stack']['length'];}parentType(_0x2efa69=this['depth']-0x1){return this['parser']['nodeSet']['types'][this['stack'][_0x2efa69]['type']];}nextLine(){return this['lineStart']+=this['line']['text']['length'],this['absoluteLineEnd']>=this['to']?(this['absoluteLineStart']=this['absoluteLineEnd'],this['atEnd']=!0x0,this['readLine'](),!0x1):(this['lineStart']++,this['absoluteLineStart']=this['absoluteLineEnd']+0x1,this['moveRangeI'](),this['readLine'](),!0x0);}['peekLine'](){return this['scanLine'](this['absoluteLineEnd']+0x1)['text'];}['moveRangeI'](){for(;this['rangeI']<this['ranges']['length']-0x1&&this['absoluteLineStart']>=this['ranges'][this['rangeI']]['to'];)this['rangeI']++,this['absoluteLineStart']=Math['max'](this['absoluteLineStart'],this['ranges'][this['rangeI']]['from']);}['scanLine'](_0xa21cab){let _0x474257=rK;if(_0x474257['end']=_0xa21cab,_0xa21cab>=this['to'])_0x474257['text']='';else{if(_0x474257['text']=this['lineChunkAt'](_0xa21cab),_0x474257['end']+=_0x474257['text']['length'],this['ranges']['length']>0x1){let _0x5af083=this['absoluteLineStart'],_0x580f1b=this['rangeI'];for(;this['ranges'][_0x580f1b]['to']<_0x474257['end'];){_0x580f1b++;let _0x491779=this['ranges'][_0x580f1b]['from'],_0x15fc33=this['lineChunkAt'](_0x491779);_0x474257['end']=_0x491779+_0x15fc33['length'],_0x474257['text']=_0x474257['text']['slice'](0x0,this['ranges'][_0x580f1b-0x1]['to']-_0x5af083)+_0x15fc33,_0x5af083=_0x474257['end']-_0x474257['text']['length'];}}}return _0x474257;}['readLine'](){let {line:_0x404318}=this,{text:_0x5d4799,end:_0x294f30}=this['scanLine'](this['absoluteLineStart']);for(this['absoluteLineEnd']=_0x294f30,_0x404318['reset'](_0x5d4799);_0x404318['depth']<this['stack']['length'];_0x404318['depth']++){let _0x43bd0d=this['stack'][_0x404318['depth']],_0xd5c268=this['parser']['skipContextMarkup'][_0x43bd0d['type']];if(!_0xd5c268)throw new Error('Unhandled\x20block\x20context\x20'+xY[_0x43bd0d['type']]);let _0x3f7d73=this['line']['markers']['length'];if(!_0xd5c268(_0x43bd0d,this,_0x404318)){this['line']['markers']['length']>_0x3f7d73&&(_0x43bd0d['end']=this['line']['markers'][this['line']['markers']['length']-0x1]['to']),_0x404318['forward']();break;}_0x404318['forward']();}}lineChunkAt(_0x5055b4){let _0x4e8f77,_0x33a0ba=this['input']['chunk'](_0x5055b4);if(this['input']['lineChunks'])_0x4e8f77='\x0a'==_0x33a0ba?'':_0x33a0ba;else{let _0x81b32=_0x33a0ba['indexOf']('\x0a');_0x4e8f77=_0x81b32<0x0?_0x33a0ba:_0x33a0ba['slice'](0x0,_0x81b32);}return _0x5055b4+_0x4e8f77['length']>this['to']?_0x4e8f77['slice'](0x0,this['to']-_0x5055b4):_0x4e8f77;}['prevLineEnd'](){return this['atEnd']?this['lineStart']:this['lineStart']-0x1;}startContext(_0x10d67c,_0x1c6872,_0x2baf72=0x0){this['block']=CY['create'](_0x10d67c,_0x2baf72,this['lineStart']+_0x1c6872,this['block']['hash'],this['lineStart']+this['line']['text']['length']),this['stack']['push'](this['block']);}startComposite(_0x42c5b4,_0x32f609,_0x404584=0x0){this['startContext'](this['parser']['getNodeType'](_0x42c5b4),_0x32f609,_0x404584);}['addNode'](_0x23ad7a,_0x5ddc39,_0x2bac15){'number'==typeof _0x23ad7a&&(_0x23ad7a=new YB(this['parser']['nodeSet']['types'][_0x23ad7a],fK,fK,(null!=_0x2bac15?_0x2bac15:this['prevLineEnd']())-_0x5ddc39)),this['block']['addChild'](_0x23ad7a,_0x5ddc39-this['block']['from']);}addElement(_0x50d688){this['block']['addChild'](_0x50d688['toTree'](this['parser']['nodeSet']),_0x50d688['from']-this['block']['from']);}addLeafElement(_0x558be1,_0x27d448){this['addNode'](this['buffer']['writeElements'](CK(_0x27d448['children'],_0x558be1['marks']),-_0x27d448['from'])['finish'](_0x27d448['type'],_0x27d448['to']-_0x27d448['from']),_0x27d448['from']);}finishContext(){let _0x14b1eb=this['stack']['pop'](),_0x42b07e=this['stack'][this['stack']['length']-0x1];_0x42b07e['addChild'](_0x14b1eb['toTree'](this['parser']['nodeSet']),_0x14b1eb['from']-_0x42b07e['from']),this['block']=_0x42b07e;}['finish'](){for(;this['stack']['length']>0x1;)this['finishContext']();return this['addGaps'](this['block']['toTree'](this['parser']['nodeSet'],this['lineStart']));}['addGaps'](_0x36556d){return this['ranges']['length']>0x1?aK(this['ranges'],0x0,_0x36556d['topNode'],this['ranges'][0x0]['from'],this['reusePlaceholders']):_0x36556d;}['finishLeaf'](_0x26ab46){for(let _0x12f0cd of _0x26ab46['parsers'])if(_0x12f0cd['finish'](this,_0x26ab46))return;let _0x93dd8=CK(this['parser']['parseInline'](_0x26ab46['content'],_0x26ab46['start']),_0x26ab46['marks']);this['addNode'](this['buffer']['writeElements'](_0x93dd8,-_0x26ab46['start'])['finish'](xY['Paragraph'],_0x26ab46['content']['length']),_0x26ab46['start']);}elt(_0x2f15d3,_0x3243bf,_0x2990c6,_0xf799ba){return'string'==typeof _0x2f15d3?OK(this['parser']['getNodeType'](_0x2f15d3),_0x3243bf,_0x2990c6,_0xf799ba):new gK(_0x2f15d3,_0x3243bf);}get['buffer'](){return new mK(this['parser']['nodeSet']);}};function aK(_0x3c6abe,_0x53e67a,_0xe50f46,_0x2fffb7,_0x429cff){let _0x38b95d=_0x3c6abe[_0x53e67a]['to'],_0x6fef81=[],_0x1e18c8=[],_0x584a48=_0xe50f46['from']+_0x2fffb7;function _0x350b74(_0x542053,_0x3b9f9e){for(;_0x3b9f9e?_0x542053>=_0x38b95d:_0x542053>_0x38b95d;){let _0x540ff1=_0x3c6abe[_0x53e67a+0x1]['from']-_0x38b95d;_0x2fffb7+=_0x540ff1,_0x542053+=_0x540ff1,_0x53e67a++,_0x38b95d=_0x3c6abe[_0x53e67a]['to'];}}for(let _0x1be8e0=_0xe50f46['firstChild'];_0x1be8e0;_0x1be8e0=_0x1be8e0['nextSibling']){_0x350b74(_0x1be8e0['from']+_0x2fffb7,!0x0);let _0x5f14eb,_0x5d35e9=_0x1be8e0['from']+_0x2fffb7,_0x216d36=_0x429cff['get'](_0x1be8e0['tree']);_0x216d36?_0x5f14eb=_0x216d36:_0x1be8e0['to']+_0x2fffb7>_0x38b95d?(_0x5f14eb=aK(_0x3c6abe,_0x53e67a,_0x1be8e0,_0x2fffb7,_0x429cff),_0x350b74(_0x1be8e0['to']+_0x2fffb7,!0x1)):_0x5f14eb=_0x1be8e0['toTree'](),_0x6fef81['push'](_0x5f14eb),_0x1e18c8['push'](_0x5d35e9-_0x584a48);}return _0x350b74(_0xe50f46['to']+_0x2fffb7,!0x1),new YB(_0xe50f46['type'],_0x6fef81,_0x1e18c8,_0xe50f46['to']+_0x2fffb7-_0x584a48,_0xe50f46['tree']?_0xe50f46['tree']['propValues']:void 0x0);}var cK=class MarkdownParser extends wH{constructor(_0x18966c,_0x57da0d,_0xf0bdc8,_0x120c17,_0x2195b5,_0x17c168,_0x1f17f8,_0x44c8e0,_0x3c211e){super(),this['nodeSet']=_0x18966c,this['blockParsers']=_0x57da0d,this['leafBlockParsers']=_0xf0bdc8,this['blockNames']=_0x120c17,this['endLeafBlock']=_0x2195b5,this['skipContextMarkup']=_0x17c168,this['inlineParsers']=_0x1f17f8,this['inlineNames']=_0x44c8e0,this['wrappers']=_0x3c211e,this['nodeTypes']=Object['create'](null);for(let t of _0x18966c['types'])this['nodeTypes'][t['name']]=t['id'];}createParse(_0x308cdf,_0x5e849d,_0x2ec11f){let _0x14a885=new oK(this,_0x308cdf,_0x5e849d,_0x2ec11f);for(let _0x4d8e4f of this['wrappers'])_0x14a885=_0x4d8e4f(_0x14a885,_0x308cdf,_0x5e849d,_0x2ec11f);return _0x14a885;}['configure'](_0x2f0d99){let _0x465b00=hK(_0x2f0d99);if(!_0x465b00)return this;let {nodeSet:_0x454789,skipContextMarkup:_0x1e564b}=this,_0x1e2759=this['blockParsers']['slice'](),_0x42c8d5=this['leafBlockParsers']['slice'](),_0x473ace=this['blockNames']['slice'](),_0x13756f=this['inlineParsers']['slice'](),_0x3b0f64=this['inlineNames']['slice'](),_0x3e47ac=this['endLeafBlock']['slice'](),_0x5d1cad=this['wrappers'];if(lK(_0x465b00['defineNodes'])){_0x1e564b=Object['assign']({},_0x1e564b);let _0x5c722a,_0x4c82a9=_0x454789['types']['slice']();for(let _0x1fe80b of _0x465b00['defineNodes']){let {name:_0xe38a8e,block:_0x100bb3,composite:_0xd108ec,style:_0x5790d9}='string'==typeof _0x1fe80b?{'name':_0x1fe80b}:_0x1fe80b;if(_0x4c82a9['some'](t=>t['name']==_0xe38a8e))continue;_0xd108ec&&(_0x1e564b[_0x4c82a9['length']]=(_0x2e4a9b,_0x184bf5,_0x2e406c)=>_0xd108ec(_0x184bf5,_0x2e406c,_0x2e4a9b['value']));let _0x5c13a0=_0x4c82a9['length'],_0x4e0d40=_0xd108ec?['Block','BlockContext']:_0x100bb3?_0x5c13a0>=xY['ATXHeading1']&&_0x5c13a0<=xY['SetextHeading2']?['Block','LeafBlock','Heading']:['Block','LeafBlock']:void 0x0;_0x4c82a9['push'](GB['define']({'id':_0x5c13a0,'name':_0xe38a8e,'props':_0x4e0d40&&[[HB['group'],_0x4e0d40]]})),_0x5790d9&&(_0x5c722a||(_0x5c722a={}),Array['isArray'](_0x5790d9)||_0x5790d9 instanceof LH?_0x5c722a[_0xe38a8e]=_0x5790d9:Object['assign'](_0x5c722a,_0x5790d9));}_0x454789=new XB(_0x4c82a9),_0x5c722a&&(_0x454789=_0x454789['extend'](QH(_0x5c722a)));}if(lK(_0x465b00['props'])&&(_0x454789=_0x454789['extend'](..._0x465b00['props'])),lK(_0x465b00['remove']))for(let _0x2057e1 of _0x465b00['remove']){let _0x32ac09=this['blockNames']['indexOf'](_0x2057e1),_0x1f8f2e=this['inlineNames']['indexOf'](_0x2057e1);_0x32ac09>-0x1&&(_0x1e2759[_0x32ac09]=_0x42c8d5[_0x32ac09]=void 0x0),_0x1f8f2e>-0x1&&(_0x13756f[_0x1f8f2e]=void 0x0);}if(lK(_0x465b00['parseBlock']))for(let _0x37e55d of _0x465b00['parseBlock']){let _0x57bcc8=_0x473ace['indexOf'](_0x37e55d['name']);if(_0x57bcc8>-0x1)_0x1e2759[_0x57bcc8]=_0x37e55d['parse'],_0x42c8d5[_0x57bcc8]=_0x37e55d['leaf'];else{let _0x5e263c=_0x37e55d['before']?uK(_0x473ace,_0x37e55d['before']):_0x37e55d['after']?uK(_0x473ace,_0x37e55d['after'])+0x1:_0x473ace['length']-0x1;_0x1e2759['splice'](_0x5e263c,0x0,_0x37e55d['parse']),_0x42c8d5['splice'](_0x5e263c,0x0,_0x37e55d['leaf']),_0x473ace['splice'](_0x5e263c,0x0,_0x37e55d['name']);}_0x37e55d['endLeaf']&&_0x3e47ac['push'](_0x37e55d['endLeaf']);}if(lK(_0x465b00['parseInline']))for(let _0x482b86 of _0x465b00['parseInline']){let _0x5c645e=_0x3b0f64['indexOf'](_0x482b86['name']);if(_0x5c645e>-0x1)_0x13756f[_0x5c645e]=_0x482b86['parse'];else{let _0x465068=_0x482b86['before']?uK(_0x3b0f64,_0x482b86['before']):_0x482b86['after']?uK(_0x3b0f64,_0x482b86['after'])+0x1:_0x3b0f64['length']-0x1;_0x13756f['splice'](_0x465068,0x0,_0x482b86['parse']),_0x3b0f64['splice'](_0x465068,0x0,_0x482b86['name']);}}return _0x465b00['wrap']&&(_0x5d1cad=_0x5d1cad['concat'](_0x465b00['wrap'])),new MarkdownParser(_0x454789,_0x1e2759,_0x42c8d5,_0x473ace,_0x3e47ac,_0x1e564b,_0x13756f,_0x3b0f64,_0x5d1cad);}getNodeType(_0x1ad9f1){let _0x6f3491=this['nodeTypes'][_0x1ad9f1];if(null==_0x6f3491)throw new RangeError('Unknown\x20node\x20type\x20\x27'+_0x1ad9f1+'\x27');return _0x6f3491;}['parseInline'](_0x20c0f7,_0x5c39bf){let _0x4a0e8a=new xK(this,_0x20c0f7,_0x5c39bf);t:for(let _0x26e5e3=_0x5c39bf;_0x26e5e3<_0x4a0e8a['end'];){let _0x11883b=_0x4a0e8a['char'](_0x26e5e3);for(let _0x2ac38e of this['inlineParsers'])if(_0x2ac38e){let _0x8588ba=_0x2ac38e(_0x4a0e8a,_0x11883b,_0x26e5e3);if(_0x8588ba>=0x0){_0x26e5e3=_0x8588ba;continue t;}}_0x26e5e3++;}return _0x4a0e8a['resolveMarkers'](0x0);}};function lK(_0x3b097f){return null!=_0x3b097f&&_0x3b097f['length']>0x0;}function hK(_0x113926){if(!Array['isArray'](_0x113926))return _0x113926;if(0x0==_0x113926['length'])return null;let _0x4f4c6f=hK(_0x113926[0x0]);if(0x1==_0x113926['length'])return _0x4f4c6f;let _0x1d7676=hK(_0x113926['slice'](0x1));if(!_0x1d7676||!_0x4f4c6f)return _0x4f4c6f||_0x1d7676;let _0x357ff5=(_0x4d2a8b,_0x3d7333)=>(_0x4d2a8b||fK)['concat'](_0x3d7333||fK),_0x25fa41=_0x4f4c6f['wrap'],_0x143548=_0x1d7676['wrap'];return{'props':_0x357ff5(_0x4f4c6f['props'],_0x1d7676['props']),'defineNodes':_0x357ff5(_0x4f4c6f['defineNodes'],_0x1d7676['defineNodes']),'parseBlock':_0x357ff5(_0x4f4c6f['parseBlock'],_0x1d7676['parseBlock']),'parseInline':_0x357ff5(_0x4f4c6f['parseInline'],_0x1d7676['parseInline']),'remove':_0x357ff5(_0x4f4c6f['remove'],_0x1d7676['remove']),'wrap':_0x25fa41?_0x143548?(_0x5e78e2,_0x7d9f3,_0x498c5e,_0x458b43)=>_0x25fa41(_0x143548(_0x5e78e2,_0x7d9f3,_0x498c5e,_0x458b43),_0x7d9f3,_0x498c5e,_0x458b43):_0x25fa41:_0x143548};}function uK(_0x1f496f,_0x176627){let _0x599f08=_0x1f496f['indexOf'](_0x176627);if(_0x599f08<0x0)throw new RangeError('Position\x20specified\x20relative\x20to\x20unknown\x20parser\x20'+_0x176627);return _0x599f08;}let dK=[GB['none']];for(let e,s=0x1;e=xY[s];s++)dK[s]=GB['define']({'id':s,'name':e,'props':s>=xY['Escape']?[]:[[HB['group'],s in MY?['Block','BlockContext']:['Block','LeafBlock']]],'top':'Document'==e});const fK=[];var mK=class{constructor(_0x11c8fc){this['nodeSet']=_0x11c8fc,this['content']=[],this['nodes']=[];}write(_0x4cde2f,_0x2cf15f,_0x4bd42d,_0x1309b5=0x0){return this['content']['push'](_0x4cde2f,_0x2cf15f,_0x4bd42d,0x4+0x4*_0x1309b5),this;}writeElements(_0x15ca22,_0x94495b=0x0){for(let _0x20f048 of _0x15ca22)_0x20f048['writeTo'](this,_0x94495b);return this;}['finish'](_0x30b94c,_0x4c0fab){return YB['build']({'buffer':this['content'],'nodeSet':this['nodeSet'],'reused':this['nodes'],'topID':_0x30b94c,'length':_0x4c0fab});}},pK=class{constructor(_0x1ca267,_0x14045d,_0x107b3c,_0x8770ca=fK){this['type']=_0x1ca267,this['from']=_0x14045d,this['to']=_0x107b3c,this['children']=_0x8770ca;}writeTo(_0xd33743,_0x354189){let _0x427285=_0xd33743['content']['length'];_0xd33743['writeElements'](this['children'],_0x354189),_0xd33743['content']['push'](this['type'],this['from']+_0x354189,this['to']+_0x354189,_0xd33743['content']['length']+0x4-_0x427285);}toTree(_0x5e4ab3){return new mK(_0x5e4ab3)['writeElements'](this['children'],-this['from'])['finish'](this['type'],this['to']-this['from']);}},gK=class{constructor(_0x37670d,_0x5e9991){this['tree']=_0x37670d,this['from']=_0x5e9991;}get to(){return this['from']+this['tree']['length'];}get type(){return this['tree']['type']['id'];}get['children'](){return fK;}writeTo(_0x128ec2,_0x5654ff){_0x128ec2['nodes']['push'](this['tree']),_0x128ec2['content']['push'](_0x128ec2['nodes']['length']-0x1,this['from']+_0x5654ff,this['to']+_0x5654ff,-0x1);}toTree(){return this['tree'];}};function OK(_0x4a8c56,_0x2a940c,_0x2efa48,_0x6a1b25){return new pK(_0x4a8c56,_0x2a940c,_0x2efa48,_0x6a1b25);}const wK={'resolve':'Emphasis','mark':'EmphasisMark'},bK={'resolve':'Emphasis','mark':'EmphasisMark'},yK={},vK={};var _K=class{constructor(_0x457260,_0x546b2e,_0x54d14e,_0x19b619){this['type']=_0x457260,this['from']=_0x546b2e,this['to']=_0x54d14e,this['side']=_0x19b619;}};let EK=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{EK=new RegExp('[\x5cp{S}|\x5cp{P}]','u');}catch(_0xf577a1){}const TK={'Escape'(_0x3e7e8d,_0x20aabe,_0x1e1ea4){if(0x5c!=_0x20aabe||_0x1e1ea4==_0x3e7e8d['end']-0x1)return-0x1;let _0x12123d=_0x3e7e8d['char'](_0x1e1ea4+0x1);for(let _0x5ff1a3=0x0;_0x5ff1a3<0x20;_0x5ff1a3++)if('!\x22#$%&\x27()*+,-./:;<=>?@[\x5c]^_`{|}~'['charCodeAt'](_0x5ff1a3)==_0x12123d)return _0x3e7e8d['append'](OK(xY['Escape'],_0x1e1ea4,_0x1e1ea4+0x2));return-0x1;},'Entity'(_0x2e7557,_0x328bd8,_0x374c1f){if(0x26!=_0x328bd8)return-0x1;let _0x99876d=/^(?:#\d+|#x[a-f\d]+|\w+);/i['exec'](_0x2e7557['slice'](_0x374c1f+0x1,_0x374c1f+0x1f));return _0x99876d?_0x2e7557['append'](OK(xY['Entity'],_0x374c1f,_0x374c1f+0x1+_0x99876d[0x0]['length'])):-0x1;},'InlineCode'(_0x2dbd25,_0x533ac3,_0x3dbfa7){if(0x60!=_0x533ac3||_0x3dbfa7&&0x60==_0x2dbd25['char'](_0x3dbfa7-0x1))return-0x1;let _0xa9dbe5=_0x3dbfa7+0x1;for(;_0xa9dbe5<_0x2dbd25['end']&&0x60==_0x2dbd25['char'](_0xa9dbe5);)_0xa9dbe5++;let _0xbb1763=_0xa9dbe5-_0x3dbfa7,_0x852eeb=0x0;for(;_0xa9dbe5<_0x2dbd25['end'];_0xa9dbe5++)if(0x60==_0x2dbd25['char'](_0xa9dbe5)){if(_0x852eeb++,_0x852eeb==_0xbb1763&&0x60!=_0x2dbd25['char'](_0xa9dbe5+0x1))return _0x2dbd25['append'](OK(xY['InlineCode'],_0x3dbfa7,_0xa9dbe5+0x1,[OK(xY['CodeMark'],_0x3dbfa7,_0x3dbfa7+_0xbb1763),OK(xY['CodeMark'],_0xa9dbe5+0x1-_0xbb1763,_0xa9dbe5+0x1)]));}else _0x852eeb=0x0;return-0x1;},'HTMLTag'(_0x241fc2,_0x97efe8,_0x7f97c2){if(0x3c!=_0x97efe8||_0x7f97c2==_0x241fc2['end']-0x1)return-0x1;let _0x5e05f3=_0x241fc2['slice'](_0x7f97c2+0x1,_0x241fc2['end']),_0x5b67a6=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i['exec'](_0x5e05f3);if(_0x5b67a6)return _0x241fc2['append'](OK(xY['Autolink'],_0x7f97c2,_0x7f97c2+0x1+_0x5b67a6[0x0]['length'],[OK(xY['LinkMark'],_0x7f97c2,_0x7f97c2+0x1),OK(xY['URL'],_0x7f97c2+0x1,_0x7f97c2+_0x5b67a6[0x0]['length']),OK(xY['LinkMark'],_0x7f97c2+_0x5b67a6[0x0]['length'],_0x7f97c2+0x1+_0x5b67a6[0x0]['length'])]));let _0xb301c8=/^!--[^>](?:-[^-]|[^-])*?-->/i['exec'](_0x5e05f3);if(_0xb301c8)return _0x241fc2['append'](OK(xY['Comment'],_0x7f97c2,_0x7f97c2+0x1+_0xb301c8[0x0]['length']));let _0x240432=/^\?[^]*?\?>/['exec'](_0x5e05f3);if(_0x240432)return _0x241fc2['append'](OK(xY['ProcessingInstruction'],_0x7f97c2,_0x7f97c2+0x1+_0x240432[0x0]['length']));let _0x13f4a9=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/['exec'](_0x5e05f3);return _0x13f4a9?_0x241fc2['append'](OK(xY['HTMLTag'],_0x7f97c2,_0x7f97c2+0x1+_0x13f4a9[0x0]['length'])):-0x1;},'Emphasis'(_0x4a931c,_0x1f5778,_0x58c54f){if(0x5f!=_0x1f5778&&0x2a!=_0x1f5778)return-0x1;let _0x4f8484=_0x58c54f+0x1;for(;_0x4a931c['char'](_0x4f8484)==_0x1f5778;)_0x4f8484++;let _0x4c9b6e=_0x4a931c['slice'](_0x58c54f-0x1,_0x58c54f),_0x57d29e=_0x4a931c['slice'](_0x4f8484,_0x4f8484+0x1),_0x2783ed=EK['test'](_0x4c9b6e),_0x554212=EK['test'](_0x57d29e),_0x3c6788=/\s|^$/['test'](_0x4c9b6e),_0x302528=/\s|^$/['test'](_0x57d29e),_0x561fb2=!_0x302528&&(!_0x554212||_0x3c6788||_0x2783ed),_0x288ec6=!_0x3c6788&&(!_0x2783ed||_0x302528||_0x554212),_0x1dd50e=_0x561fb2&&(0x2a==_0x1f5778||!_0x288ec6||_0x2783ed),_0x2d1a27=_0x288ec6&&(0x2a==_0x1f5778||!_0x561fb2||_0x554212);return _0x4a931c['append'](new _K(0x5f==_0x1f5778?wK:bK,_0x58c54f,_0x4f8484,(_0x1dd50e?0x1:0x0)|(_0x2d1a27?0x2:0x0)));},'HardBreak'(_0x3b6949,_0x2149d7,_0x3cbbbb){if(0x5c==_0x2149d7&&0xa==_0x3b6949['char'](_0x3cbbbb+0x1))return _0x3b6949['append'](OK(xY['HardBreak'],_0x3cbbbb,_0x3cbbbb+0x2));if(0x20==_0x2149d7){let _0x5c1ed5=_0x3cbbbb+0x1;for(;0x20==_0x3b6949['char'](_0x5c1ed5);)_0x5c1ed5++;if(0xa==_0x3b6949['char'](_0x5c1ed5)&&_0x5c1ed5>=_0x3cbbbb+0x2)return _0x3b6949['append'](OK(xY['HardBreak'],_0x3cbbbb,_0x5c1ed5+0x1));}return-0x1;},'Link':(_0x22b5e4,_0x1814ec,_0x364d71)=>0x5b==_0x1814ec?_0x22b5e4['append'](new _K(yK,_0x364d71,_0x364d71+0x1,0x1)):-0x1,'Image':(_0x5957e4,_0xeef8f2,_0x5c7fec)=>0x21==_0xeef8f2&&0x5b==_0x5957e4['char'](_0x5c7fec+0x1)?_0x5957e4['append'](new _K(vK,_0x5c7fec,_0x5c7fec+0x2,0x1)):-0x1,'LinkEnd'(_0x40fe86,_0x15adb5,_0x324e70){if(0x5d!=_0x15adb5)return-0x1;for(let _0x5a005f=_0x40fe86['parts']['length']-0x1;_0x5a005f>=0x0;_0x5a005f--){let _0x350b39=_0x40fe86['parts'][_0x5a005f];if(_0x350b39 instanceof _K&&(_0x350b39['type']==yK||_0x350b39['type']==vK)){if(!_0x350b39['side']||_0x40fe86['skipSpace'](_0x350b39['to'])==_0x324e70&&!/[(\[]/['test'](_0x40fe86['slice'](_0x324e70+0x1,_0x324e70+0x2)))return _0x40fe86['parts'][_0x5a005f]=null,-0x1;let _0x5eca49=_0x40fe86['takeContent'](_0x5a005f),_0x1466f9=_0x40fe86['parts'][_0x5a005f]=AK(_0x40fe86,_0x5eca49,_0x350b39['type']==yK?xY['Link']:xY['Image'],_0x350b39['from'],_0x324e70+0x1);if(_0x350b39['type']==yK)for(let _0x2f2616=0x0;_0x2f2616<_0x5a005f;_0x2f2616++){let _0x4612ce=_0x40fe86['parts'][_0x2f2616];_0x4612ce instanceof _K&&_0x4612ce['type']==yK&&(_0x4612ce['side']=0x0);}return _0x1466f9['to'];}}return-0x1;}};function AK(_0x53d73a,_0x2489ed,_0x4e254e,_0x52e377,_0x5531f2){let {text:_0x5e5baa}=_0x53d73a,_0x4811d2=_0x53d73a['char'](_0x5531f2),_0x4186c7=_0x5531f2;if(_0x2489ed['unshift'](OK(xY['LinkMark'],_0x52e377,_0x52e377+(_0x4e254e==xY['Image']?0x2:0x1))),_0x2489ed['push'](OK(xY['LinkMark'],_0x5531f2-0x1,_0x5531f2)),0x28==_0x4811d2){let _0x15d0ae,_0x41b81a=_0x53d73a['skipSpace'](_0x5531f2+0x1),_0x552bee=SK(_0x5e5baa,_0x41b81a-_0x53d73a['offset'],_0x53d73a['offset']);_0x552bee&&(_0x41b81a=_0x53d73a['skipSpace'](_0x552bee['to']),_0x41b81a!=_0x552bee['to']&&(_0x15d0ae=IK(_0x5e5baa,_0x41b81a-_0x53d73a['offset'],_0x53d73a['offset']),_0x15d0ae&&(_0x41b81a=_0x53d73a['skipSpace'](_0x15d0ae['to'])))),0x29==_0x53d73a['char'](_0x41b81a)&&(_0x2489ed['push'](OK(xY['LinkMark'],_0x5531f2,_0x5531f2+0x1)),_0x4186c7=_0x41b81a+0x1,_0x552bee&&_0x2489ed['push'](_0x552bee),_0x15d0ae&&_0x2489ed['push'](_0x15d0ae),_0x2489ed['push'](OK(xY['LinkMark'],_0x41b81a,_0x4186c7)));}else{if(0x5b==_0x4811d2){let _0x3c0120=kK(_0x5e5baa,_0x5531f2-_0x53d73a['offset'],_0x53d73a['offset'],!0x1);_0x3c0120&&(_0x2489ed['push'](_0x3c0120),_0x4186c7=_0x3c0120['to']);}}return OK(_0x4e254e,_0x52e377,_0x4186c7,_0x2489ed);}function SK(_0x14a8ea,_0x1d6c3f,_0x8a9695){if(0x3c==_0x14a8ea['charCodeAt'](_0x1d6c3f)){for(let _0x30464e=_0x1d6c3f+0x1;_0x30464e<_0x14a8ea['length'];_0x30464e++){let _0x5270aa=_0x14a8ea['charCodeAt'](_0x30464e);if(0x3e==_0x5270aa)return OK(xY['URL'],_0x1d6c3f+_0x8a9695,_0x30464e+0x1+_0x8a9695);if(0x3c==_0x5270aa||0xa==_0x5270aa)return!0x1;}return null;}{let _0x5aa336=0x0,_0x254d02=_0x1d6c3f;for(let _0x49f99a=!0x1;_0x254d02<_0x14a8ea['length'];_0x254d02++){let _0xcec2bc=_0x14a8ea['charCodeAt'](_0x254d02);if(LY(_0xcec2bc))break;if(_0x49f99a)_0x49f99a=!0x1;else{if(0x28==_0xcec2bc)_0x5aa336++;else{if(0x29==_0xcec2bc){if(!_0x5aa336)break;_0x5aa336--;}else 0x5c==_0xcec2bc&&(_0x49f99a=!0x0);}}}return _0x254d02>_0x1d6c3f?OK(xY['URL'],_0x1d6c3f+_0x8a9695,_0x254d02+_0x8a9695):_0x254d02==_0x14a8ea['length']&&null;}}function IK(_0x1e1423,_0x1daa4c,_0x41e95c){let _0xcde4b4=_0x1e1423['charCodeAt'](_0x1daa4c);if(0x27!=_0xcde4b4&&0x22!=_0xcde4b4&&0x28!=_0xcde4b4)return!0x1;let _0x3d1875=0x28==_0xcde4b4?0x29:_0xcde4b4;for(let _0xb8e0b7=_0x1daa4c+0x1,_0x3503d9=!0x1;_0xb8e0b7<_0x1e1423['length'];_0xb8e0b7++){let _0x15e1db=_0x1e1423['charCodeAt'](_0xb8e0b7);if(_0x3503d9)_0x3503d9=!0x1;else{if(_0x15e1db==_0x3d1875)return OK(xY['LinkTitle'],_0x1daa4c+_0x41e95c,_0xb8e0b7+0x1+_0x41e95c);0x5c==_0x15e1db&&(_0x3503d9=!0x0);}}return null;}function kK(_0x223808,_0x4897bf,_0x32ae88,_0x24d762){for(let _0x1721a9=!0x1,_0x898078=_0x4897bf+0x1,_0x1ce237=Math['min'](_0x223808['length'],_0x898078+0x3e7);_0x898078<_0x1ce237;_0x898078++){let _0x513b66=_0x223808['charCodeAt'](_0x898078);if(_0x1721a9)_0x1721a9=!0x1;else{if(0x5d==_0x513b66)return!_0x24d762&&OK(xY['LinkLabel'],_0x4897bf+_0x32ae88,_0x898078+0x1+_0x32ae88);if(_0x24d762&&!LY(_0x513b66)&&(_0x24d762=!0x1),0x5b==_0x513b66)return!0x1;0x5c==_0x513b66&&(_0x1721a9=!0x0);}}return null;}var xK=class{constructor(_0x69ad9a,_0x4271d9,_0x29b360){this['parser']=_0x69ad9a,this['text']=_0x4271d9,this['offset']=_0x29b360,this['parts']=[];}['char'](_0x2a98cf){return _0x2a98cf>=this['end']?-0x1:this['text']['charCodeAt'](_0x2a98cf-this['offset']);}get['end'](){return this['offset']+this['text']['length'];}['slice'](_0x1f22ff,_0x4d1cec){return this['text']['slice'](_0x1f22ff-this['offset'],_0x4d1cec-this['offset']);}['append'](_0x4f082a){return this['parts']['push'](_0x4f082a),_0x4f082a['to'];}addDelimiter(_0x2e9925,_0x37d28d,_0x1b8ec4,_0x4fe4cd,_0x296eca){return this['append'](new _K(_0x2e9925,_0x37d28d,_0x1b8ec4,(_0x4fe4cd?0x1:0x0)|(_0x296eca?0x2:0x0)));}get['hasOpenLink'](){for(let _0xd82513=this['parts']['length']-0x1;_0xd82513>=0x0;_0xd82513--){let _0x1005ae=this['parts'][_0xd82513];if(_0x1005ae instanceof _K&&(_0x1005ae['type']==yK||_0x1005ae['type']==vK))return!0x0;}return!0x1;}addElement(_0x18e247){return this['append'](_0x18e247);}['resolveMarkers'](_0x453dc0){for(let _0x4919b8=_0x453dc0;_0x4919b8<this['parts']['length'];_0x4919b8++){let _0x15a857=this['parts'][_0x4919b8];if(!(_0x15a857 instanceof _K&&_0x15a857['type']['resolve']&&0x2&_0x15a857['side']))continue;let _0x21a897,_0x360b64=_0x15a857['type']==wK||_0x15a857['type']==bK,_0x3063a2=_0x15a857['to']-_0x15a857['from'],_0x2e6f2d=_0x4919b8-0x1;for(;_0x2e6f2d>=_0x453dc0;_0x2e6f2d--){let _0x55100f=this['parts'][_0x2e6f2d];if(_0x55100f instanceof _K&&0x1&_0x55100f['side']&&_0x55100f['type']==_0x15a857['type']&&!(_0x360b64&&(0x1&_0x15a857['side']||0x2&_0x55100f['side'])&&(_0x55100f['to']-_0x55100f['from']+_0x3063a2)%0x3==0x0&&((_0x55100f['to']-_0x55100f['from'])%0x3||_0x3063a2%0x3))){_0x21a897=_0x55100f;break;}}if(!_0x21a897)continue;let _0x19f7c=_0x15a857['type']['resolve'],_0x7ff044=[],_0x5ae3d0=_0x21a897['from'],_0x4f4d0f=_0x15a857['to'];if(_0x360b64){let _0x3adb1d=Math['min'](0x2,_0x21a897['to']-_0x21a897['from'],_0x3063a2);_0x5ae3d0=_0x21a897['to']-_0x3adb1d,_0x4f4d0f=_0x15a857['from']+_0x3adb1d,_0x19f7c=0x1==_0x3adb1d?'Emphasis':'StrongEmphasis';}_0x21a897['type']['mark']&&_0x7ff044['push'](this['elt'](_0x21a897['type']['mark'],_0x5ae3d0,_0x21a897['to']));for(let _0x1fce08=_0x2e6f2d+0x1;_0x1fce08<_0x4919b8;_0x1fce08++)this['parts'][_0x1fce08]instanceof pK&&_0x7ff044['push'](this['parts'][_0x1fce08]),this['parts'][_0x1fce08]=null;_0x15a857['type']['mark']&&_0x7ff044['push'](this['elt'](_0x15a857['type']['mark'],_0x15a857['from'],_0x4f4d0f));let _0xfcec70=this['elt'](_0x19f7c,_0x5ae3d0,_0x4f4d0f,_0x7ff044);this['parts'][_0x2e6f2d]=_0x360b64&&_0x21a897['from']!=_0x5ae3d0?new _K(_0x21a897['type'],_0x21a897['from'],_0x5ae3d0,_0x21a897['side']):null,(this['parts'][_0x4919b8]=_0x360b64&&_0x15a857['to']!=_0x4f4d0f?new _K(_0x15a857['type'],_0x4f4d0f,_0x15a857['to'],_0x15a857['side']):null)?this['parts']['splice'](_0x4919b8,0x0,_0xfcec70):this['parts'][_0x4919b8]=_0xfcec70;}let _0x30deb5=[];for(let _0x4b43d0=_0x453dc0;_0x4b43d0<this['parts']['length'];_0x4b43d0++){let _0x3b2047=this['parts'][_0x4b43d0];_0x3b2047 instanceof pK&&_0x30deb5['push'](_0x3b2047);}return _0x30deb5;}findOpeningDelimiter(_0x3e1c32){for(let _0x24dbbe=this['parts']['length']-0x1;_0x24dbbe>=0x0;_0x24dbbe--){let _0x2ed1c1=this['parts'][_0x24dbbe];if(_0x2ed1c1 instanceof _K&&_0x2ed1c1['type']==_0x3e1c32&&0x1&_0x2ed1c1['side'])return _0x24dbbe;}return null;}takeContent(_0x58be18){let _0x493c16=this['resolveMarkers'](_0x58be18);return this['parts']['length']=_0x58be18,_0x493c16;}getDelimiterAt(_0x46a172){let _0x5278c2=this['parts'][_0x46a172];return _0x5278c2 instanceof _K?_0x5278c2:null;}['skipSpace'](_0x31dc83){return $Y(this['text'],_0x31dc83-this['offset'])+this['offset'];}elt(_0x3b84b4,_0x403bd1,_0x213c1e,_0x705b89){return'string'==typeof _0x3b84b4?OK(this['parser']['getNodeType'](_0x3b84b4),_0x403bd1,_0x213c1e,_0x705b89):new gK(_0x3b84b4,_0x403bd1);}};function CK(_0x1901b1,_0x13a807){if(!_0x13a807['length'])return _0x1901b1;if(!_0x1901b1['length'])return _0x13a807;let _0x436d67=_0x1901b1['slice'](),_0x539463=0x0;for(let _0x5707d8 of _0x13a807){for(;_0x539463<_0x436d67['length']&&_0x436d67[_0x539463]['to']<_0x5707d8['to'];)_0x539463++;if(_0x539463<_0x436d67['length']&&_0x436d67[_0x539463]['from']<_0x5707d8['from']){let _0x3b4aaa=_0x436d67[_0x539463];_0x3b4aaa instanceof pK&&(_0x436d67[_0x539463]=new pK(_0x3b4aaa['type'],_0x3b4aaa['from'],_0x3b4aaa['to'],CK(_0x3b4aaa['children'],[_0x5707d8])));}else _0x436d67['splice'](_0x539463++,0x0,_0x5707d8);}return _0x436d67;}xK['linkStart']=yK,xK['imageStart']=vK;const RK=[xY['CodeBlock'],xY['ListItem'],xY['OrderedList'],xY['BulletList']];var PK=class{constructor(_0x374848,_0x755c90){this['fragments']=_0x374848,this['input']=_0x755c90,this['i']=0x0,this['fragment']=null,this['fragmentEnd']=-0x1,this['cursor']=null,_0x374848['length']&&(this['fragment']=_0x374848[this['i']++]);}nextFragment(){this['fragment']=this['i']<this['fragments']['length']?this['fragments'][this['i']++]:null,this['cursor']=null,this['fragmentEnd']=-0x1;}['moveTo'](_0x5dc7f6,_0x179b3d){for(;this['fragment']&&this['fragment']['to']<=_0x5dc7f6;)this['nextFragment']();if(!this['fragment']||this['fragment']['from']>(_0x5dc7f6?_0x5dc7f6-0x1:0x0))return!0x1;if(this['fragmentEnd']<0x0){let _0x38b6b3=this['fragment']['to'];for(;_0x38b6b3>0x0&&'\x0a'!=this['input']['read'](_0x38b6b3-0x1,_0x38b6b3);)_0x38b6b3--;this['fragmentEnd']=_0x38b6b3?_0x38b6b3-0x1:0x0;}let _0xaf6eda=this['cursor'];_0xaf6eda||(_0xaf6eda=this['cursor']=this['fragment']['tree']['cursor'](),_0xaf6eda['firstChild']());let _0x1c89bd=_0x5dc7f6+this['fragment']['offset'];for(;_0xaf6eda['to']<=_0x1c89bd;)if(!_0xaf6eda['parent']())return!0x1;for(;;){if(_0xaf6eda['from']>=_0x1c89bd)return this['fragment']['from']<=_0x179b3d;if(!_0xaf6eda['childAfter'](_0x1c89bd))return!0x1;}}matches(_0x18ffea){let _0x378ce8=this['cursor']['tree'];return _0x378ce8&&_0x378ce8['prop'](HB['contextHash'])==_0x18ffea;}takeNodes(_0x3a7bba){let _0x2ea3b0=this['cursor'],_0x3f549e=this['fragment']['offset'],_0x279bd6=this['fragmentEnd']-(this['fragment']['openEnd']?0x1:0x0),_0xa566e5=_0x3a7bba['absoluteLineStart'],_0x12fef8=_0xa566e5,_0xfe290c=_0x3a7bba['block']['children']['length'],_0x159433=_0x12fef8,_0x3cf841=_0xfe290c;for(;;){if(_0x2ea3b0['to']-_0x3f549e>_0x279bd6){if(_0x2ea3b0['type']['isAnonymous']&&_0x2ea3b0['firstChild']())continue;break;}let _0x43e71b=NK(_0x2ea3b0['from']-_0x3f549e,_0x3a7bba['ranges']);if(_0x2ea3b0['to']-_0x3f549e<=_0x3a7bba['ranges'][_0x3a7bba['rangeI']]['to'])_0x3a7bba['addNode'](_0x2ea3b0['tree'],_0x43e71b);else{let _0x5e7b5a=new YB(_0x3a7bba['parser']['nodeSet']['types'][xY['Paragraph']],[],[],0x0,_0x3a7bba['block']['hashProp']);_0x3a7bba['reusePlaceholders']['set'](_0x5e7b5a,_0x2ea3b0['tree']),_0x3a7bba['addNode'](_0x5e7b5a,_0x43e71b);}if(_0x2ea3b0['type']['is']('Block')&&(RK['indexOf'](_0x2ea3b0['type']['id'])<0x0?(_0x12fef8=_0x2ea3b0['to']-_0x3f549e,_0xfe290c=_0x3a7bba['block']['children']['length']):(_0x12fef8=_0x159433,_0xfe290c=_0x3cf841),_0x159433=_0x2ea3b0['to']-_0x3f549e,_0x3cf841=_0x3a7bba['block']['children']['length']),!_0x2ea3b0['nextSibling']())break;}for(;_0x3a7bba['block']['children']['length']>_0xfe290c;)_0x3a7bba['block']['children']['pop'](),_0x3a7bba['block']['positions']['pop']();return _0x12fef8-_0xa566e5;}};function NK(_0x1223d0,_0x345b12){let _0x2840a4=_0x1223d0;for(let _0x476a02=0x1;_0x476a02<_0x345b12['length'];_0x476a02++){let _0x2b02bc=_0x345b12[_0x476a02-0x1]['to'],_0x4f50f2=_0x345b12[_0x476a02]['from'];_0x2b02bc<_0x1223d0&&(_0x2840a4-=_0x4f50f2-_0x2b02bc);}return _0x2840a4;}const MK=QH({'Blockquote/...':nF['quote'],'HorizontalRule':nF['contentSeparator'],'ATXHeading1/...\x20SetextHeading1/...':nF['heading1'],'ATXHeading2/...\x20SetextHeading2/...':nF['heading2'],'ATXHeading3/...':nF['heading3'],'ATXHeading4/...':nF['heading4'],'ATXHeading5/...':nF['heading5'],'ATXHeading6/...':nF['heading6'],'Comment\x20CommentBlock':nF['comment'],'Escape':nF['escape'],'Entity':nF['character'],'Emphasis/...':nF['emphasis'],'StrongEmphasis/...':nF['strong'],'Link/...\x20Image/...':nF['link'],'OrderedList/...\x20BulletList/...':nF['list'],'BlockQuote/...':nF['quote'],'InlineCode\x20CodeText':nF['monospace'],'URL\x20Autolink':nF['url'],'HeaderMark\x20HardBreak\x20QuoteMark\x20ListMark\x20LinkMark\x20EmphasisMark\x20CodeMark':nF['processingInstruction'],'CodeInfo\x20LinkLabel':nF['labelName'],'LinkTitle':nF['string'],'Paragraph':nF['content']}),LK=new cK(new XB(dK)['extend'](MK),Object['keys'](JY)['map'](_0x590332=>JY[_0x590332]),Object['keys'](JY)['map'](_0x576525=>sK[_0x576525]),Object['keys'](JY),nK,MY,Object['keys'](TK)['map'](_0x1bc18b=>TK[_0x1bc18b]),Object['keys'](TK),[]);function $K(_0x439043,_0x90bb2f,_0x59e13a){let _0x477891=[];for(let _0x54fee9=_0x439043['firstChild'],_0x3ca9ca=_0x90bb2f;;_0x54fee9=_0x54fee9['nextSibling']){let _0x54440e=_0x54fee9?_0x54fee9['from']:_0x59e13a;if(_0x54440e>_0x3ca9ca&&_0x477891['push']({'from':_0x3ca9ca,'to':_0x54440e}),!_0x54fee9)break;_0x3ca9ca=_0x54fee9['to'];}return _0x477891;}const DK={'resolve':'Strikethrough','mark':'StrikethroughMark'},QK={'defineNodes':[{'name':'Strikethrough','style':{'Strikethrough/...':nF['strikethrough']}},{'name':'StrikethroughMark','style':nF['processingInstruction']}],'parseInline':[{'name':'Strikethrough','parse'(_0x554bee,_0x202a63,_0x316fb0){if(0x7e!=_0x202a63||0x7e!=_0x554bee['char'](_0x316fb0+0x1)||0x7e==_0x554bee['char'](_0x316fb0+0x2))return-0x1;let _0x5a728a=_0x554bee['slice'](_0x316fb0-0x1,_0x316fb0),_0x1bb216=_0x554bee['slice'](_0x316fb0+0x2,_0x316fb0+0x3),_0x5ef605=/\s|^$/['test'](_0x5a728a),_0x396312=/\s|^$/['test'](_0x1bb216),_0x56054e=EK['test'](_0x5a728a),_0x57f709=EK['test'](_0x1bb216);return _0x554bee['addDelimiter'](DK,_0x316fb0,_0x316fb0+0x2,!_0x396312&&(!_0x57f709||_0x5ef605||_0x56054e),!_0x5ef605&&(!_0x56054e||_0x396312||_0x57f709));},'after':'Emphasis'}]};function jK(_0x5e4151,_0x2e9bac,_0x4849c6=0x0,_0x331658,_0x3d8d60=0x0){let _0x6be0a4=0x0,_0x1923db=!0x0,_0x302c6f=-0x1,_0x23837e=-0x1,_0x4f1de3=!0x1,_0x479cde=()=>{_0x331658['push'](_0x5e4151['elt']('TableCell',_0x3d8d60+_0x302c6f,_0x3d8d60+_0x23837e,_0x5e4151['parser']['parseInline'](_0x2e9bac['slice'](_0x302c6f,_0x23837e),_0x3d8d60+_0x302c6f)));};for(let _0x37035b=_0x4849c6;_0x37035b<_0x2e9bac['length'];_0x37035b++){let _0x173ac1=_0x2e9bac['charCodeAt'](_0x37035b);0x7c!=_0x173ac1||_0x4f1de3?(_0x4f1de3||0x20!=_0x173ac1&&0x9!=_0x173ac1)&&(_0x302c6f<0x0&&(_0x302c6f=_0x37035b),_0x23837e=_0x37035b+0x1):((!_0x1923db||_0x302c6f>-0x1)&&_0x6be0a4++,_0x1923db=!0x1,_0x331658&&(_0x302c6f>-0x1&&_0x479cde(),_0x331658['push'](_0x5e4151['elt']('TableDelimiter',_0x37035b+_0x3d8d60,_0x37035b+_0x3d8d60+0x1))),_0x302c6f=_0x23837e=-0x1),_0x4f1de3=!_0x4f1de3&&0x5c==_0x173ac1;}return _0x302c6f>-0x1&&(_0x6be0a4++,_0x331658&&_0x479cde()),_0x6be0a4;}function UK(_0x5cd9fb,_0x281379){for(let _0x1c8876=_0x281379;_0x1c8876<_0x5cd9fb['length'];_0x1c8876++){let _0x18ddac=_0x5cd9fb['charCodeAt'](_0x1c8876);if(0x7c==_0x18ddac)return!0x0;0x5c==_0x18ddac&&_0x1c8876++;}return!0x1;}const VK=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;var BK=class{constructor(){this['rows']=null;}nextLine(_0x55927e,_0x54e779,_0x428e2f){if(null==this['rows']){let _0x395f1d;if(this['rows']=!0x1,(0x2d==_0x54e779['next']||0x3a==_0x54e779['next']||0x7c==_0x54e779['next'])&&VK['test'](_0x395f1d=_0x54e779['text']['slice'](_0x54e779['pos']))){let _0x2fd522=[];jK(_0x55927e,_0x428e2f['content'],0x0,_0x2fd522,_0x428e2f['start'])==jK(_0x55927e,_0x395f1d,0x0)&&(this['rows']=[_0x55927e['elt']('TableHeader',_0x428e2f['start'],_0x428e2f['start']+_0x428e2f['content']['length'],_0x2fd522),_0x55927e['elt']('TableDelimiter',_0x55927e['lineStart']+_0x54e779['pos'],_0x55927e['lineStart']+_0x54e779['text']['length'])]);}}else{if(this['rows']){let _0x3c6915=[];jK(_0x55927e,_0x54e779['text'],_0x54e779['pos'],_0x3c6915,_0x55927e['lineStart']),this['rows']['push'](_0x55927e['elt']('TableRow',_0x55927e['lineStart']+_0x54e779['pos'],_0x55927e['lineStart']+_0x54e779['text']['length'],_0x3c6915));}}return!0x1;}['finish'](_0x3f5aa0,_0x2526b4){return!!this['rows']&&(_0x3f5aa0['addLeafElement'](_0x2526b4,_0x3f5aa0['elt']('Table',_0x2526b4['start'],_0x2526b4['start']+_0x2526b4['content']['length'],this['rows'])),!0x0);}};const HK={'defineNodes':[{'name':'Table','block':!0x0},{'name':'TableHeader','style':{'TableHeader/...':nF['heading']}},'TableRow',{'name':'TableCell','style':nF['content']},{'name':'TableDelimiter','style':nF['processingInstruction']}],'parseBlock':[{'name':'Table','leaf':(_0x77cbd8,_0x21c17e)=>UK(_0x21c17e['content'],0x0)?new BK():null,'endLeaf'(_0x96e028,_0x1c7d22,_0x2c4c93){if(_0x2c4c93['parsers']['some'](_0x50a03c=>_0x50a03c instanceof BK)||!UK(_0x1c7d22['text'],_0x1c7d22['basePos']))return!0x1;let _0x50c88b=_0x96e028['peekLine']();return VK['test'](_0x50c88b)&&jK(_0x96e028,_0x1c7d22['text'],_0x1c7d22['basePos'])==jK(_0x96e028,_0x50c88b,_0x1c7d22['basePos']);},'before':'SetextHeading'}]};var FK=class{nextLine(){return!0x1;}['finish'](_0x2f7f1a,_0x51f1e9){return _0x2f7f1a['addLeafElement'](_0x51f1e9,_0x2f7f1a['elt']('Task',_0x51f1e9['start'],_0x51f1e9['start']+_0x51f1e9['content']['length'],[_0x2f7f1a['elt']('TaskMarker',_0x51f1e9['start'],_0x51f1e9['start']+0x3),..._0x2f7f1a['parser']['parseInline'](_0x51f1e9['content']['slice'](0x3),_0x51f1e9['start']+0x3)])),!0x0;}};const ZK={'defineNodes':[{'name':'Task','block':!0x0,'style':nF['list']},{'name':'TaskMarker','style':nF['atom']}],'parseBlock':[{'name':'TaskList','leaf':(_0x5050d,_0x1915b5)=>/^\[[ xX]\][ \t]/['test'](_0x1915b5['content'])&&'ListItem'==_0x5050d['parentType']()['name']?new FK():null,'after':'SetextHeading'}]},GK=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,XK=/[\w-]+(\.[\w-]+)+(:\d+)?(\/[^\s<]*)?/gy,qK=/[\w-]+\.[\w-]+($|[/:])/,WK=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,zK=/\/[a-zA-Z\d@.]+/gy;function YK(_0xaece41,_0x546c1b,_0x459280,_0x51e9c9){let _0x2b95b3=0x0;for(let _0x32eb55=_0x546c1b;_0x32eb55<_0x459280;_0x32eb55++)_0xaece41[_0x32eb55]==_0x51e9c9&&_0x2b95b3++;return _0x2b95b3;}function KK(_0x541e9a,_0x4e1b0c){WK['lastIndex']=_0x4e1b0c;let _0x5f10d3=WK['exec'](_0x541e9a);if(!_0x5f10d3)return-0x1;let _0x5137fe=_0x5f10d3[0x0][_0x5f10d3[0x0]['length']-0x1];return'_'==_0x5137fe||'-'==_0x5137fe?-0x1:_0x4e1b0c+_0x5f10d3[0x0]['length']-('.'==_0x5137fe?0x1:0x0);}const JK={'parseInline':[{'name':'Autolink','parse'(_0xc8b983,_0x1fdec7,_0x295a4d){let _0x408254=_0x295a4d-_0xc8b983['offset'];if(_0x408254&&/\w/['test'](_0xc8b983['text'][_0x408254-0x1]))return-0x1;GK['lastIndex']=_0x408254;let _0x21702d=GK['exec'](_0xc8b983['text']),_0x5eb8f8=-0x1;return _0x21702d?(_0x21702d[0x1]||_0x21702d[0x2]?(_0x5eb8f8=function(_0x25ccd9,_0x242500){XK['lastIndex']=_0x242500;let _0x2d5ead=XK['exec'](_0x25ccd9);if(!_0x2d5ead||qK['exec'](_0x2d5ead[0x0])[0x0]['indexOf']('_')>-0x1)return-0x1;let _0x58c347=_0x242500+_0x2d5ead[0x0]['length'];for(;;){let _0x36e658,_0x582c72=_0x25ccd9[_0x58c347-0x1];if(/[?!.,:*_~]/['test'](_0x582c72)||')'==_0x582c72&&YK(_0x25ccd9,_0x242500,_0x58c347,')')>YK(_0x25ccd9,_0x242500,_0x58c347,'('))_0x58c347--;else{if(';'!=_0x582c72||!(_0x36e658=/&(?:#\d+|#x[a-f\d]+|\w+);$/['exec'](_0x25ccd9['slice'](_0x242500,_0x58c347))))break;_0x58c347=_0x242500+_0x36e658['index'];}}return _0x58c347;}(_0xc8b983['text'],_0x408254+_0x21702d[0x0]['length']),_0x5eb8f8>-0x1&&_0xc8b983['hasOpenLink']&&(_0x5eb8f8=_0x408254+/([^\[\]]|\[[^\]]*\])*/['exec'](_0xc8b983['text']['slice'](_0x408254,_0x5eb8f8))[0x0]['length'])):_0x21702d[0x3]?_0x5eb8f8=KK(_0xc8b983['text'],_0x408254):(_0x5eb8f8=KK(_0xc8b983['text'],_0x408254+_0x21702d[0x0]['length']),_0x5eb8f8>-0x1&&'xmpp:'==_0x21702d[0x0]&&(zK['lastIndex']=_0x5eb8f8,_0x21702d=zK['exec'](_0xc8b983['text']),_0x21702d&&(_0x5eb8f8=_0x21702d['index']+_0x21702d[0x0]['length']))),_0x5eb8f8<0x0?-0x1:(_0xc8b983['addElement'](_0xc8b983['elt']('URL',_0x295a4d,_0x5eb8f8+_0xc8b983['offset'])),_0x5eb8f8+_0xc8b983['offset'])):-0x1;}}]},tJ=[HK,ZK,QK,JK];function eJ(_0x4e2e34,_0x4cde9f,_0x40e43d){return(_0x43df9c,_0x243cbd,_0x43af55)=>{if(_0x243cbd!=_0x4e2e34||_0x43df9c['char'](_0x43af55+0x1)==_0x4e2e34)return-0x1;let _0x5403fb=[_0x43df9c['elt'](_0x40e43d,_0x43af55,_0x43af55+0x1)];for(let _0x4610a3=_0x43af55+0x1;_0x4610a3<_0x43df9c['end'];_0x4610a3++){let _0x37f88f=_0x43df9c['char'](_0x4610a3);if(_0x37f88f==_0x4e2e34)return _0x43df9c['addElement'](_0x43df9c['elt'](_0x4cde9f,_0x43af55,_0x4610a3+0x1,_0x5403fb['concat'](_0x43df9c['elt'](_0x40e43d,_0x4610a3,_0x4610a3+0x1))));if(0x5c==_0x37f88f&&_0x5403fb['push'](_0x43df9c['elt']('Escape',_0x4610a3,0x2+_0x4610a3++)),LY(_0x37f88f))break;}return-0x1;};}const iJ={'defineNodes':[{'name':'Superscript','style':nF['special'](nF['content'])},{'name':'SuperscriptMark','style':nF['processingInstruction']}],'parseInline':[{'name':'Superscript','parse':eJ(0x5e,'Superscript','SuperscriptMark')}]},sJ={'defineNodes':[{'name':'Subscript','style':nF['special'](nF['content'])},{'name':'SubscriptMark','style':nF['processingInstruction']}],'parseInline':[{'name':'Subscript','parse':eJ(0x7e,'Subscript','SubscriptMark')}]},nJ={'defineNodes':[{'name':'Emoji','style':nF['character']}],'parseInline':[{'name':'Emoji','parse'(_0x2ce3af,_0x1bac41,_0x24f267){let _0x4270f5;return 0x3a==_0x1bac41&&(_0x4270f5=/^[a-zA-Z_0-9]+:/['exec'](_0x2ce3af['slice'](_0x24f267+0x1,_0x2ce3af['end'])))?_0x2ce3af['addElement'](_0x2ce3af['elt']('Emoji',_0x24f267,_0x24f267+0x1+_0x4270f5[0x0]['length'])):-0x1;}}]},rJ=aF({'commentTokens':{'block':{'open':'\x3c!--','close':'--\x3e'}}}),oJ=new HB(),aJ=LK['configure']({'props':[VF['add'](_0x17a61e=>!_0x17a61e['is']('Block')||_0x17a61e['is']('Document')||null!=cJ(_0x17a61e)||function(_0x482e57){return'OrderedList'==_0x482e57['name']||'BulletList'==_0x482e57['name'];}(_0x17a61e)?void 0x0:(_0x419cb0,_0x429e8e)=>({'from':_0x429e8e['doc']['lineAt'](_0x419cb0['from'])['to'],'to':_0x419cb0['to']})),oJ['add'](cJ),CF['add']({'Document':()=>null}),oF['add']({'Document':rJ})]});function cJ(_0x442eab){let _0x39b7d2=/^(?:ATX|Setext)Heading(\d)$/['exec'](_0x442eab['name']);return _0x39b7d2?+_0x39b7d2[0x1]:void 0x0;}function lJ(_0x182f7a,_0x133559){let _0x54f14f=_0x182f7a;for(;;){let _0x183c14,_0x2260ef=_0x54f14f['nextSibling'];if(!_0x2260ef||null!=(_0x183c14=cJ(_0x2260ef['type']))&&_0x183c14<=_0x133559)break;_0x54f14f=_0x2260ef;}return _0x54f14f['to'];}const hJ=UF['of']((_0x2fe372,_0x607d8,_0x56a9e5)=>{for(let _0x1f28fd=dF(_0x2fe372)['resolveInner'](_0x56a9e5,-0x1);_0x1f28fd&&!(_0x1f28fd['from']<_0x607d8);_0x1f28fd=_0x1f28fd['parent']){let _0x12c2c7=_0x1f28fd['type']['prop'](oJ);if(null==_0x12c2c7)continue;let _0x3d68bb=lJ(_0x1f28fd,_0x12c2c7);if(_0x3d68bb>_0x56a9e5)return{'from':_0x56a9e5,'to':_0x3d68bb};}return null;});function uJ(_0x342180){return new lF(rJ,_0x342180,[hJ],'markdown');}const dJ=uJ(aJ),fJ=uJ(aJ['configure']([tJ,sJ,iJ,nJ,{'props':[VF['add']({'Table':(_0x2696b4,_0x38d2b1)=>({'from':_0x38d2b1['doc']['lineAt'](_0x2696b4['from'])['to'],'to':_0x2696b4['to']})})]}]));var mJ=class{constructor(_0x7f9f2e,_0x44d24a,_0x1a5989,_0x2ac678,_0x41c748,_0x167c8d,_0x5c3ce7){this['node']=_0x7f9f2e,this['from']=_0x44d24a,this['to']=_0x1a5989,this['spaceBefore']=_0x2ac678,this['spaceAfter']=_0x41c748,this['type']=_0x167c8d,this['item']=_0x5c3ce7;}['blank'](_0x3169a5,_0x43cbb8=!0x0){let _0x149918=this['spaceBefore']+('Blockquote'==this['node']['name']?'>':'');if(null!=_0x3169a5){for(;_0x149918['length']<_0x3169a5;)_0x149918+='\x20';return _0x149918;}for(let _0x30ab29=this['to']-this['from']-_0x149918['length']-this['spaceAfter']['length'];_0x30ab29>0x0;_0x30ab29--)_0x149918+='\x20';return _0x149918+(_0x43cbb8?this['spaceAfter']:'');}['marker'](_0x30a17f,_0x2331af){let _0x2e8f88='OrderedList'==this['node']['name']?String(+gJ(this['item'],_0x30a17f)[0x2]+_0x2331af):'';return this['spaceBefore']+_0x2e8f88+this['type']+this['spaceAfter'];}};function pJ(_0x33eacf,_0x46d939){let _0x3cd760=[],_0x84d849=[];for(let _0x2481e9=_0x33eacf;_0x2481e9;_0x2481e9=_0x2481e9['parent']){if('FencedCode'==_0x2481e9['name'])return _0x84d849;'ListItem'!=_0x2481e9['name']&&'Blockquote'!=_0x2481e9['name']||_0x3cd760['push'](_0x2481e9);}for(let _0x1c1029=_0x3cd760['length']-0x1;_0x1c1029>=0x0;_0x1c1029--){let _0x57a54b,_0x398e2d=_0x3cd760[_0x1c1029],_0x42e656=_0x46d939['lineAt'](_0x398e2d['from']),_0x610281=_0x398e2d['from']-_0x42e656['from'];if('Blockquote'==_0x398e2d['name']&&(_0x57a54b=/^ *>( ?)/['exec'](_0x42e656['text']['slice'](_0x610281))))_0x84d849['push'](new mJ(_0x398e2d,_0x610281,_0x610281+_0x57a54b[0x0]['length'],'',_0x57a54b[0x1],'>',null));else{if('ListItem'==_0x398e2d['name']&&'OrderedList'==_0x398e2d['parent']['name']&&(_0x57a54b=/^( *)\d+([.)])( *)/['exec'](_0x42e656['text']['slice'](_0x610281)))){let _0x1da4dc=_0x57a54b[0x3],_0x3246fa=_0x57a54b[0x0]['length'];_0x1da4dc['length']>=0x4&&(_0x1da4dc=_0x1da4dc['slice'](0x0,_0x1da4dc['length']-0x4),_0x3246fa-=0x4),_0x84d849['push'](new mJ(_0x398e2d['parent'],_0x610281,_0x610281+_0x3246fa,_0x57a54b[0x1],_0x1da4dc,_0x57a54b[0x2],_0x398e2d));}else{if('ListItem'==_0x398e2d['name']&&'BulletList'==_0x398e2d['parent']['name']&&(_0x57a54b=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/['exec'](_0x42e656['text']['slice'](_0x610281)))){let _0x222d01=_0x57a54b[0x4],_0x439c59=_0x57a54b[0x0]['length'];_0x222d01['length']>0x4&&(_0x222d01=_0x222d01['slice'](0x0,_0x222d01['length']-0x4),_0x439c59-=0x4);let _0x1bde73=_0x57a54b[0x2];_0x57a54b[0x3]&&(_0x1bde73+=_0x57a54b[0x3]['replace'](/[xX]/,'\x20')),_0x84d849['push'](new mJ(_0x398e2d['parent'],_0x610281,_0x610281+_0x439c59,_0x57a54b[0x1],_0x222d01,_0x1bde73,_0x398e2d));}}}}return _0x84d849;}function gJ(_0xd5c3b9,_0xd48bd6){return/^(\s*)(\d+)(?=[.)])/['exec'](_0xd48bd6['sliceString'](_0xd5c3b9['from'],_0xd5c3b9['from']+0xa));}function OJ(_0x33305a,_0x34d7cd,_0x25cc01,_0x24d343=0x0){for(let _0x2558f4=-0x1,_0x31266d=_0x33305a;;){if('ListItem'==_0x31266d['name']){let _0x319b1c=gJ(_0x31266d,_0x34d7cd),_0x4cd6a8=+_0x319b1c[0x2];if(_0x2558f4>=0x0){if(_0x4cd6a8!=_0x2558f4+0x1)return;_0x25cc01['push']({'from':_0x31266d['from']+_0x319b1c[0x1]['length'],'to':_0x31266d['from']+_0x319b1c[0x0]['length'],'insert':String(_0x2558f4+0x2+_0x24d343)});}_0x2558f4=_0x4cd6a8;}let _0x2f0911=_0x31266d['nextSibling'];if(!_0x2f0911)break;_0x31266d=_0x2f0911;}}function wJ(_0x55716c,_0x302bfc){let _0x19950c=/^[ \t]*/['exec'](_0x55716c)[0x0]['length'];if(!_0x19950c||'\x09'!=_0x302bfc['facet'](AF))return _0x55716c;let _0x35dff7='';for(let _0x3fff2b=B$(_0x55716c,0x4,_0x19950c);_0x3fff2b>0x0;)_0x3fff2b>=0x4?(_0x35dff7+='\x09',_0x3fff2b-=0x4):(_0x35dff7+='\x20',_0x3fff2b--);return _0x35dff7+_0x55716c['slice'](_0x19950c);}function bJ(_0x52c875){return'QuoteMark'==_0x52c875['name']||'ListMark'==_0x52c875['name'];}function yJ(_0x212c8f,_0x59d1a4,_0x2a849a){let _0x50aae0='';for(let _0x373d8f=0x0,_0x5b78ea=_0x212c8f['length']-0x2;_0x373d8f<=_0x5b78ea;_0x373d8f++)_0x50aae0+=_0x212c8f[_0x373d8f]['blank'](_0x373d8f<_0x5b78ea?B$(_0x2a849a['text'],0x4,Math['min'](_0x2a849a['text']['length'],_0x212c8f[_0x373d8f+0x1]['from']))-_0x50aae0['length']:null,_0x373d8f<_0x5b78ea);return wJ(_0x50aae0,_0x59d1a4);}const vJ=[{'key':'Enter','run':({state:_0x46842f,dispatch:_0x18473a})=>{let _0x35ee24=dF(_0x46842f),{doc:_0xbb850f}=_0x46842f,_0x409b96=null,_0x69e36b=_0x46842f['changeByRange'](_0x94a8da=>{if(!_0x94a8da['empty']||!fJ['isActiveAt'](_0x46842f,_0x94a8da['from'],0x0))return _0x409b96={'range':_0x94a8da};let _0xdd409f=_0x94a8da['from'],_0x69705e=_0xbb850f['lineAt'](_0xdd409f),_0x274f4b=pJ(_0x35ee24['resolveInner'](_0xdd409f,-0x1),_0xbb850f);for(;_0x274f4b['length']&&_0x274f4b[_0x274f4b['length']-0x1]['from']>_0xdd409f-_0x69705e['from'];)_0x274f4b['pop']();if(!_0x274f4b['length'])return _0x409b96={'range':_0x94a8da};let _0x4a9d4c=_0x274f4b[_0x274f4b['length']-0x1];if(_0x4a9d4c['to']-_0x4a9d4c['spaceAfter']['length']>_0xdd409f-_0x69705e['from'])return _0x409b96={'range':_0x94a8da};let _0x5a11ed=_0xdd409f>=_0x4a9d4c['to']-_0x4a9d4c['spaceAfter']['length']&&!/\S/['test'](_0x69705e['text']['slice'](_0x4a9d4c['to']));if(_0x4a9d4c['item']&&_0x5a11ed){let _0x2491f1=_0x4a9d4c['node']['firstChild'],_0x4009fc=_0x4a9d4c['node']['getChild']('ListItem','ListItem');if(_0x2491f1['to']>=_0xdd409f||_0x4009fc&&_0x4009fc['to']<_0xdd409f||_0x69705e['from']>0x0&&!/[^\s>]/['test'](_0xbb850f['lineAt'](_0x69705e['from']-0x1)['text'])){let _0x47fd8b,_0xb3a7b5=_0x274f4b['length']>0x1?_0x274f4b[_0x274f4b['length']-0x2]:null,_0x760458='';_0xb3a7b5&&_0xb3a7b5['item']?(_0x47fd8b=_0x69705e['from']+_0xb3a7b5['from'],_0x760458=_0xb3a7b5['marker'](_0xbb850f,0x1)):_0x47fd8b=_0x69705e['from']+(_0xb3a7b5?_0xb3a7b5['to']:0x0);let _0x26a510=[{'from':_0x47fd8b,'to':_0xdd409f,'insert':_0x760458}];return'OrderedList'==_0x4a9d4c['node']['name']&&OJ(_0x4a9d4c['item'],_0xbb850f,_0x26a510,-0x2),_0xb3a7b5&&'OrderedList'==_0xb3a7b5['node']['name']&&OJ(_0xb3a7b5['item'],_0xbb850f,_0x26a510),{'range':PL['cursor'](_0x47fd8b+_0x760458['length']),'changes':_0x26a510};}{let _0x2c669c=yJ(_0x274f4b,_0x46842f,_0x69705e);return{'range':PL['cursor'](_0xdd409f+_0x2c669c['length']+0x1),'changes':{'from':_0x69705e['from'],'insert':_0x2c669c+_0x46842f['lineBreak']}};}}if('Blockquote'==_0x4a9d4c['node']['name']&&_0x5a11ed&&_0x69705e['from']){let _0x336e0f=_0xbb850f['lineAt'](_0x69705e['from']-0x1),_0xf8152=/>\s*$/['exec'](_0x336e0f['text']);if(_0xf8152&&_0xf8152['index']==_0x4a9d4c['from']){let _0x402dd7=_0x46842f['changes']([{'from':_0x336e0f['from']+_0xf8152['index'],'to':_0x336e0f['to']},{'from':_0x69705e['from']+_0x4a9d4c['from'],'to':_0x69705e['to']}]);return{'range':_0x94a8da['map'](_0x402dd7),'changes':_0x402dd7};}}let _0x3f2fc1=[];'OrderedList'==_0x4a9d4c['node']['name']&&OJ(_0x4a9d4c['item'],_0xbb850f,_0x3f2fc1);let _0xc2ab5e=_0x4a9d4c['item']&&_0x4a9d4c['item']['from']<_0x69705e['from'],_0x53b117='';if(!_0xc2ab5e||/^[\s\d.)\-+*>]*/['exec'](_0x69705e['text'])[0x0]['length']>=_0x4a9d4c['to']){for(let _0x21e6d1=0x0,_0x4e4aa3=_0x274f4b['length']-0x1;_0x21e6d1<=_0x4e4aa3;_0x21e6d1++)_0x53b117+=_0x21e6d1!=_0x4e4aa3||_0xc2ab5e?_0x274f4b[_0x21e6d1]['blank'](_0x21e6d1<_0x4e4aa3?B$(_0x69705e['text'],0x4,_0x274f4b[_0x21e6d1+0x1]['from'])-_0x53b117['length']:null):_0x274f4b[_0x21e6d1]['marker'](_0xbb850f,0x1);}let _0x3dbea=_0xdd409f;for(;_0x3dbea>_0x69705e['from']&&/\s/['test'](_0x69705e['text']['charAt'](_0x3dbea-_0x69705e['from']-0x1));)_0x3dbea--;return _0x53b117=wJ(_0x53b117,_0x46842f),function(_0x350ddd,_0x392e5e){if('OrderedList'!=_0x350ddd['name']&&'BulletList'!=_0x350ddd['name'])return!0x1;let _0x2987d0=_0x350ddd['firstChild'],_0x58307d=_0x350ddd['getChild']('ListItem','ListItem');if(!_0x58307d)return!0x1;let _0x54ecc1=_0x392e5e['lineAt'](_0x2987d0['to']),_0x575a27=_0x392e5e['lineAt'](_0x58307d['from']),_0x5a35ef=/^[\s>]*$/['test'](_0x54ecc1['text']);return _0x54ecc1['number']+(_0x5a35ef?0x0:0x1)<_0x575a27['number'];}(_0x4a9d4c['node'],_0x46842f['doc'])&&(_0x53b117=yJ(_0x274f4b,_0x46842f,_0x69705e)+_0x46842f['lineBreak']+_0x53b117),_0x3f2fc1['push']({'from':_0x3dbea,'to':_0xdd409f,'insert':_0x46842f['lineBreak']+_0x53b117}),{'range':PL['cursor'](_0x3dbea+_0x53b117['length']+0x1),'changes':_0x3f2fc1};});return!_0x409b96&&(_0x18473a(_0x46842f['update'](_0x69e36b,{'scrollIntoView':!0x0,'userEvent':'input'})),!0x0);}},{'key':'Backspace','run':({state:_0x4cd215,dispatch:_0x14d109})=>{let _0x4d8340=dF(_0x4cd215),_0x1b5a00=null,_0x5c0c17=_0x4cd215['changeByRange'](_0x185665=>{let _0x12c609=_0x185665['from'],{doc:_0x277564}=_0x4cd215;if(_0x185665['empty']&&fJ['isActiveAt'](_0x4cd215,_0x185665['from'])){let _0x15c171=_0x277564['lineAt'](_0x12c609),_0x40d978=pJ(function(_0x4b7bc0,_0x14e567){let _0x30b0e9=_0x4b7bc0['resolveInner'](_0x14e567,-0x1),_0x3bd984=_0x14e567;bJ(_0x30b0e9)&&(_0x3bd984=_0x30b0e9['from'],_0x30b0e9=_0x30b0e9['parent']);for(let _0xb87589;_0xb87589=_0x30b0e9['childBefore'](_0x3bd984);)if(bJ(_0xb87589))_0x3bd984=_0xb87589['from'];else{if('OrderedList'!=_0xb87589['name']&&'BulletList'!=_0xb87589['name'])break;_0x30b0e9=_0xb87589['lastChild'],_0x3bd984=_0x30b0e9['to'];}return _0x30b0e9;}(_0x4d8340,_0x12c609),_0x277564);if(_0x40d978['length']){let _0x580253=_0x40d978[_0x40d978['length']-0x1],_0x472ab9=_0x580253['to']-_0x580253['spaceAfter']['length']+(_0x580253['spaceAfter']?0x1:0x0);if(_0x12c609-_0x15c171['from']>_0x472ab9&&!/\S/['test'](_0x15c171['text']['slice'](_0x472ab9,_0x12c609-_0x15c171['from'])))return{'range':PL['cursor'](_0x15c171['from']+_0x472ab9),'changes':{'from':_0x15c171['from']+_0x472ab9,'to':_0x12c609}};if(_0x12c609-_0x15c171['from']==_0x472ab9&&(!_0x580253['item']||_0x15c171['from']<=_0x580253['item']['from']||!/\S/['test'](_0x15c171['text']['slice'](0x0,_0x580253['to'])))){let _0x1d414e=_0x15c171['from']+_0x580253['from'];if(_0x580253['item']&&_0x580253['node']['from']<_0x580253['item']['from']&&/\S/['test'](_0x15c171['text']['slice'](_0x580253['from'],_0x580253['to']))){let _0x13bbd9=_0x580253['blank'](B$(_0x15c171['text'],0x4,_0x580253['to'])-B$(_0x15c171['text'],0x4,_0x580253['from']));return _0x1d414e==_0x15c171['from']&&(_0x13bbd9=wJ(_0x13bbd9,_0x4cd215)),{'range':PL['cursor'](_0x1d414e+_0x13bbd9['length']),'changes':{'from':_0x1d414e,'to':_0x15c171['from']+_0x580253['to'],'insert':_0x13bbd9}};}if(_0x1d414e<_0x12c609)return{'range':PL['cursor'](_0x1d414e),'changes':{'from':_0x1d414e,'to':_0x12c609}};}}}return _0x1b5a00={'range':_0x185665};});return!_0x1b5a00&&(_0x14d109(_0x4cd215['update'](_0x5c0c17,{'scrollIntoView':!0x0,'userEvent':'delete'})),!0x0);}}],_J=SY({'matchClosingTags':!0x1});function EJ(_0x505df9={}){let {codeLanguages:_0x4d17fc,defaultCodeLanguage:_0x452a71,addKeymap:_0x139740=!0x0,base:{parser:_0x47c76c}=dJ,completeHTMLTags:_0x4adbc7=!0x0,htmlTagLanguage:_0x1987dc=_J}=_0x505df9;if(!(_0x47c76c instanceof cK))throw new RangeError('Base\x20parser\x20provided\x20to\x20`markdown`\x20should\x20be\x20a\x20Markdown\x20parser');let _0x160c98,_0x1d6b7d=_0x505df9['extensions']?[_0x505df9['extensions']]:[],_0x438cd2=[_0x1987dc['support']];_0x452a71 instanceof _F?(_0x438cd2['push'](_0x452a71['support']),_0x160c98=_0x452a71['language']):_0x452a71&&(_0x160c98=_0x452a71);let _0x228acc=_0x4d17fc||_0x160c98?(_0x2e3244=_0x4d17fc,_0x6fff43=_0x160c98,_0x4277a2=>{if(_0x4277a2&&_0x2e3244){let _0xcce870=null;if(_0x4277a2=/\S*/['exec'](_0x4277a2)[0x0],_0xcce870='function'==typeof _0x2e3244?_0x2e3244(_0x4277a2):EF['matchLanguageName'](_0x2e3244,_0x4277a2,!0x0),_0xcce870 instanceof EF)return _0xcce870['support']?_0xcce870['support']['language']['parser']:pF['getSkippingParser'](_0xcce870['load']());if(_0xcce870)return _0xcce870['parser'];}return _0x6fff43?_0x6fff43['parser']:null;}):void 0x0;var _0x2e3244,_0x6fff43;_0x1d6b7d['push'](function(_0x6d33f7){let {codeParser:_0xbf1778,htmlParser:_0x3ac16d}=_0x6d33f7;return{'wrap':yH((_0x3a6b0a,_0x21b174)=>{let _0x3d3910=_0x3a6b0a['type']['id'];if(!_0xbf1778||_0x3d3910!=xY['CodeBlock']&&_0x3d3910!=xY['FencedCode']){if(_0x3ac16d&&(_0x3d3910==xY['HTMLBlock']||_0x3d3910==xY['HTMLTag']||_0x3d3910==xY['CommentBlock']))return{'parser':_0x3ac16d,'overlay':$K(_0x3a6b0a['node'],_0x3a6b0a['from'],_0x3a6b0a['to'])};}else{let _0x5d16d0='';if(_0x3d3910==xY['FencedCode']){let _0x4211e7=_0x3a6b0a['node']['getChild'](xY['CodeInfo']);_0x4211e7&&(_0x5d16d0=_0x21b174['read'](_0x4211e7['from'],_0x4211e7['to']));}let _0x53af37=_0xbf1778(_0x5d16d0);if(_0x53af37)return{'parser':_0x53af37,'overlay':_0x3931b3=>_0x3931b3['type']['id']==xY['CodeText'],'bracketed':_0x3d3910==xY['FencedCode']};}return null;})};}({'codeParser':_0x228acc,'htmlParser':_0x1987dc['language']['parser']})),_0x139740&&_0x438cd2['push'](qL['high'](mV['of'](vJ)));let _0x28a447=uJ(_0x47c76c['configure'](_0x1d6b7d));return _0x4adbc7&&_0x438cd2['push'](_0x28a447['data']['of']({'autocomplete':TJ})),new _F(_0x28a447,_0x438cd2);}function TJ(_0x37d551){let {state:_0x216ae2,pos:_0x51f90d}=_0x37d551,_0x207f7a=/<[:\-\.\w\u00b7-\uffff]*$/['exec'](_0x216ae2['sliceDoc'](_0x51f90d-0x19,_0x51f90d));if(!_0x207f7a)return null;let _0x227cd3=dF(_0x216ae2)['resolveInner'](_0x51f90d,-0x1);for(;_0x227cd3&&!_0x227cd3['type']['isTop'];){if('CodeBlock'==_0x227cd3['name']||'FencedCode'==_0x227cd3['name']||'ProcessingInstructionBlock'==_0x227cd3['name']||'CommentBlock'==_0x227cd3['name']||'Link'==_0x227cd3['name']||'Image'==_0x227cd3['name'])return null;_0x227cd3=_0x227cd3['parent'];}return{'from':_0x51f90d-_0x207f7a[0x0]['length'],'to':_0x51f90d,'options':SJ(),'validFor':/^<[:\-\.\w\u00b7-\uffff]*$/};}let AJ=null;function SJ(){if(AJ)return AJ;let _0x2ad83e=(_0x567120=new wX(E$['create']({'extensions':_J}),0x0,!0x0),bY(uY['default'],_0x567120));var _0x567120;return AJ=_0x2ad83e?_0x2ad83e['options']:[];}const IJ='#e06c75',kJ='#abb2bf',xJ='#7d8799',CJ='#d19a66',RJ='#2c313a',PJ='#282c34',NJ='#353a42',MJ='#528bff',LJ=[oV['theme']({'&':{'color':kJ,'backgroundColor':PJ},'.cm-content':{'caretColor':MJ},'.cm-cursor,\x20.cm-dropCursor':{'borderLeftColor':MJ},'&.cm-focused\x20>\x20.cm-scroller\x20>\x20.cm-selectionLayer\x20.cm-selectionBackground,\x20.cm-selectionBackground,\x20.cm-content\x20::selection':{'backgroundColor':'#3E4451'},'.cm-panels':{'backgroundColor':'#21252b','color':kJ},'.cm-panels.cm-panels-top':{'borderBottom':'2px\x20solid\x20black'},'.cm-panels.cm-panels-bottom':{'borderTop':'2px\x20solid\x20black'},'.cm-searchMatch':{'backgroundColor':'#72a1ff59','outline':'1px\x20solid\x20#457dff'},'.cm-searchMatch.cm-searchMatch-selected':{'backgroundColor':'#6199ff2f'},'.cm-activeLine':{'backgroundColor':'#6699ff0b'},'.cm-selectionMatch':{'backgroundColor':'#aafe661a'},'&.cm-focused\x20.cm-matchingBracket,\x20&.cm-focused\x20.cm-nonmatchingBracket':{'backgroundColor':'#bad0f847'},'.cm-gutters':{'backgroundColor':PJ,'color':xJ,'border':'none'},'.cm-activeLineGutter':{'backgroundColor':RJ},'.cm-foldPlaceholder':{'backgroundColor':'transparent','border':'none','color':'#ddd'},'.cm-tooltip':{'border':'none','backgroundColor':NJ},'.cm-tooltip\x20.cm-tooltip-arrow:before':{'borderTopColor':'transparent','borderBottomColor':'transparent'},'.cm-tooltip\x20.cm-tooltip-arrow:after':{'borderTopColor':NJ,'borderBottomColor':NJ},'.cm-tooltip-autocomplete':{'&\x20>\x20ul\x20>\x20li[aria-selected]':{'backgroundColor':RJ,'color':kJ}}},{'dark':!0x0}),gZ(dZ['define']([{'tag':nF['keyword'],'color':'#c678dd'},{'tag':[nF['name'],nF['deleted'],nF['character'],nF['propertyName'],nF['macroName']],'color':IJ},{'tag':[nF['function'](nF['variableName']),nF['labelName']],'color':'#61afef'},{'tag':[nF['color'],nF['constant'](nF['name']),nF['standard'](nF['name'])],'color':CJ},{'tag':[nF['definition'](nF['name']),nF['separator']],'color':kJ},{'tag':[nF['typeName'],nF['className'],nF['number'],nF['changed'],nF['annotation'],nF['modifier'],nF['self'],nF['namespace']],'color':'#e5c07b'},{'tag':[nF['operator'],nF['operatorKeyword'],nF['url'],nF['escape'],nF['regexp'],nF['link'],nF['special'](nF['string'])],'color':'#56b6c2'},{'tag':[nF['meta'],nF['comment']],'color':xJ},{'tag':nF['strong'],'fontWeight':'bold'},{'tag':nF['emphasis'],'fontStyle':'italic'},{'tag':nF['strikethrough'],'textDecoration':'line-through'},{'tag':nF['link'],'color':xJ,'textDecoration':'underline'},{'tag':nF['heading'],'fontWeight':'bold','color':IJ},{'tag':[nF['atom'],nF['bool'],nF['special'](nF['variableName'])],'color':CJ},{'tag':[nF['processingInstruction'],nF['string'],nF['inserted']],'color':'#98c379'},{'tag':nF['invalid'],'color':'#ffffff'}]))];function $J(_0x58909c){const _0x335b8e=[oV['lineWrapping'],Vq(),kZ(),Iq(),sB(),IV(),$V(),LB(),hZ(),qV(),jB(),FV(),tG(),jF(),tB(),gZ(bZ,{'fallback':!0x0})],_0x2d65dd=new zL();_0x335b8e['push'](_0x2d65dd['of'](oV['editable']['of'](!0x0))),'html'===_0x58909c['syntaxLanguage']?_0x335b8e['push'](SY()):_0x335b8e['push'](EJ());const _0x7bacab=(_0x350c0d=_0x58909c['theme'])&&'default'!==_0x350c0d?'dark'===_0x350c0d?LJ:_0x350c0d:null;var _0x350c0d;_0x7bacab&&_0x335b8e['push'](_0x7bacab),_0x335b8e['push'](mV['of']([...Nq,...OX,...OG,...eZ,...Bq,{'key':'Tab','run':dX,'shift':fX,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':sG,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':sG,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':iG,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x101d7c=new oV({'extensions':_0x335b8e,'parent':_0x58909c['parent']});return mX(_0x101d7c),{'focus':()=>{_0x101d7c['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x101d7c['focus']();},'getData':()=>_0x101d7c['state']['doc']['toString'](),'setData':_0xfccbba=>{_0x101d7c['dispatch']({'changes':{'from':0x0,'to':_0x101d7c['state']['doc']['length'],'insert':_0xfccbba},'annotations':d$['addToHistory']['of'](!0x1)});},'setReadOnly':_0x529e92=>{_0x101d7c['dispatch']({'effects':[_0x2d65dd['reconfigure'](oV['editable']['of'](!_0x529e92))]});},'destroy':()=>{_0x101d7c['destroy']();},'instance':_0x101d7c};}var DJ=class extends _0x2f6e1a{_codeEditorApi=null;_options;constructor(_0x235fbd,_0x1525f2){super(_0x235fbd),this['_options']=_0x1525f2,this['set']('isReadOnly',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-code-editor'],'tabindex':-0x1}});}['render'](){super['render'](),this['_codeEditorApi']=$J({'parent':this['element'],'syntaxLanguage':this['_options']['syntaxLanguage'],'theme':this['_options']['theme']}),this['on']('change:isReadOnly',(_0x478cd7,_0x3e2c32,_0x4e1b1f)=>{this['setReadOnly'](_0x4e1b1f);});}destroy(){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}getData(){return this['_codeEditorApi']['getData']();}setData(_0x24176c){this['_codeEditorApi']['setData'](_0x24176c);}setReadOnly(_0x25b193){this['_codeEditorApi']['setReadOnly'](_0x25b193);}};const QJ='SourceEditingEnhancedMode';var jJ=class extends _0x44d8e7{constructor(_0x5eda13){super(_0x5eda13),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x88e4e2)['on']('change:hasAny',(_0x14e5d6,_0x902ea,_0x227c34)=>{_0x227c34?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x2ae4b4=this['editor'];for(const _0x130001 of _0x2ae4b4['commands']['names']())['replaceSource','editSource']['includes'](_0x130001)||_0x2ae4b4['commands']['get'](_0x130001)['forceDisabled'](QJ);}['_enableCommands'](){const _0x84d643=this['editor'];for(const _0x1bac79 of _0x84d643['commands']['commands']())_0x1bac79['clearForceDisabled'](QJ);}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x4ddb16=this['editor'],_0x24af8e=_0x4ddb16['locale'],_0x5339bc=_0x4ddb16['plugins']['get']('Dialog'),_0x4eae8a=XM(_0x4ddb16),_0x508fa4=WM(_0x5f14f5=_0x4ddb16['data']['get']({'rootName':_0x4eae8a}))?_0xa5c05d(_0x5f14f5):_0x5f14f5;var _0x5f14f5;const _0x5ce4ce=new DJ(_0x24af8e,{'syntaxLanguage':_0x4ddb16['plugins']['has']('Markdown')?'markdown':'html','theme':_0x4ddb16['config']['get']('sourceEditingEnhanced.theme')});let _0xb88f14=!0x0;const _0x5860a0=_0x179a6f=>{if(_0xb88f14&&qM(_0x5ce4ce['getData']())!==qM(_0x508fa4))return window['confirm'](GM(_0x24af8e,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x179a6f['stop']();};_0x5339bc['show']({'id':'sourceEditingEnhanced','title':GM(_0x24af8e,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x5ce4ce,'actionButtons':[{'label':GM(_0x24af8e,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x5339bc['hide']();}},{'label':GM(_0x24af8e,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0xd2aff1=qM(_0x5ce4ce['getData']())!==qM(_0x508fa4);_0xd2aff1&&_0x4ddb16['execute']('replaceSource',_0x5ce4ce['getData']()),_0xb88f14=!0x1,_0x5339bc['hide'](),_0xd2aff1&&'editables'in _0x4ddb16['ui']['view']&&_0x4ddb16['ui']['view']['editables'][_0x4eae8a]['element']['focus']();},'onCreate':_0x5861df=>{_0x5861df['set']('isEnabled',!_0x4ddb16['isReadOnly']),_0x5861df['bind']('isEnabled')['to'](_0x4ddb16,'isReadOnly',this,'isEnabled',(_0x1dca56,_0x4cbdbc)=>!_0x1dca56&&_0x4cbdbc);}}],'onHide':()=>{this['_enableCommands'](),_0x5339bc['off']('hide',_0x5860a0),_0x5ce4ce['destroy']();},'onShow':()=>{_0x5ce4ce['bind']('isReadOnly')['to'](_0x4ddb16,'isReadOnly',this,'isEnabled',(_0x51d4f4,_0x3ab13a)=>_0x51d4f4||!_0x3ab13a),_0x5ce4ce['setData'](_0x508fa4),_0x5ce4ce['focus'](),_0x5339bc['on']('hide',_0x5860a0,{'priority':'highest'}),this['_disableCommands']();}});}},UJ=class extends _0x11fe30{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get requires(){return[_0x88e4e2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x262270=this['editor'],_0x43f5d1=_0x262270['locale'],_0xb1c455=new jJ(_0x262270);_0x262270['commands']['add']('editSource',_0xb1c455),_0x262270['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x452e04=this['_createButton'](_0x39ae99,_0xb1c455);return _0x452e04['set']({'label':GM(_0x43f5d1,'Source'),'icon':_0x181bd7,'tooltip':GM(_0x43f5d1,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x452e04;}),_0x262270['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x2054b7=this['_createButton'](_0x589436,_0xb1c455,!0x0);return _0x2054b7['set']({'label':GM(_0x43f5d1,'Edit\x20source\x20modal\x20label'),'icon':_0x181bd7,'role':'menuitemcheckbox'}),_0x2054b7;}),this['_registerKeybindings']();}afterInit(){!async function(_0x3d16cb){const _0x41c31f='NQVXyBFHJzr8WGI4aZnTeoUx6p9jfv3DitLwuckYlhdMA2K5S7mbCOPEs1qgR0',_0x8f9d1b=0x791d0,_0x1f9218=window['Date']['now'](),_0x579832=_0x3d16cb['editor'],_0x347543=new window['Promise'](_0x41ceb3=>{_0x579832['once']('ready',_0x41ceb3);}),_0x12b310={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x2b7b0c=_0x579832['config']['get']('licenseKey');async function _0x5a2536(){let _0x11eb10,_0x57f13e=null,_0x230178=null;try{return'GPL'==_0x2b7b0c?'NotAllowed':(_0x11eb10=_0x13e91b(),_0x11eb10?(_0x11eb10['usageEndpoint']&&(_0x230178=_0xaff6be(_0x11eb10['usageEndpoint'],_0x11eb10['jti'])),await _0x165152()?_0x2a119c()?_0x5e6de1()?'Expired':_0x30dbca()?('evaluation'==_0x11eb10['licenseType']&&(_0x57f13e=_0x3f9c28('EvaluationLimit')),await _0x20293()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x5e6de1(){const _0x156515=['evaluation','trial']['includes'](_0x11eb10['licenseType'])?_0x1f9218/0x3e8:0xe10*_0x8f9d1b;return _0x11eb10['exp']<_0x156515;}function _0x2a119c(){const _0x2fd88f=_0x11eb10['features'];return!!_0x2fd88f&&(!!_0x2fd88f['includes']('*')||!!_0x2fd88f['includes']('SEE'));}function _0x30dbca(){const _0x2a4f66=_0x11eb10['licensedHosts'];if(!_0x2a4f66||0x0==_0x2a4f66['length'])return!0x0;const {hostname:_0x9977c6}=new URL(window['location']['href']);if(_0x2a4f66['includes'](_0x9977c6))return!0x0;const _0x325300=_0x9977c6['split']('.');return _0x2a4f66['filter'](_0x4a58f7=>_0x4a58f7['includes']('*'))['map'](_0x1d3d02=>_0x1d3d02['split']('.'))['filter'](_0x10d6d4=>_0x10d6d4['length']<=_0x325300['length'])['map'](_0x14ace0=>Array(_0x325300['length']-_0x14ace0['length'])['fill']('*'===_0x14ace0[0x0]?'*':'')['concat'](_0x14ace0))['some'](_0x403100=>_0x325300['every']((_0x260817,_0x28a172)=>_0x403100[_0x28a172]===_0x260817||'*'===_0x403100[_0x28a172]));}function _0x20293(){return _0x57f13e&&_0x230178?new window['Promise']((_0x227782,_0x120c6a)=>{_0x57f13e['then'](_0x227782,_0x120c6a),_0x230178['then'](_0x2e4799=>{'Valid'!=_0x2e4799&&_0x227782(_0x2e4799);},_0x120c6a);}):_0x57f13e||_0x230178||'Valid';}}function _0xaff6be(_0x5841e6,_0x1f7e93){return new window['Promise'](_0x1f04ae=>{if(_0x4e99e2())return _0x1f04ae('Valid');_0x30de5c(),_0x579832['decorate']('_sendUsageRequest');let _0x47f825=!0x1;const _0x2626fa=_0xea66bb();function _0x4fde22(_0x6fb4ca){return!!_0x6fb4ca&&('object'==typeof _0x6fb4ca||'function'==typeof _0x6fb4ca)&&'function'==typeof _0x6fb4ca['then']&&'function'==typeof _0x6fb4ca['catch'];}function _0x57562c(_0x5cf34f){_0x388425(_0x5cf34f)['then'](_0x3cd9d7=>_0x3cd9d7&&'ok'==_0x3cd9d7['status']?_0xef1ee(_0x761dc8(_0x2626fa+_0x1f7e93))!=_0x3cd9d7['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x491b40=>(_0x271a1a(),_0x491b40),()=>{const _0x1a3427=_0x35106a();return null==_0x1a3427?(_0x271a1a(),'Valid'):_0x1f9218-_0x1a3427>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1f04ae)['catch'](()=>{_0x1f04ae('UsageLimit');});const _0x507c=0x36ee80;function _0x271a1a(){const _0x21c7d5='llct-'+_0xef1ee(_0x761dc8(_0x5841e6)),_0x26fd76=_0x4b4e08(_0xef1ee(window['Math']['ceil'](_0x1f9218/_0x507c)));window['localStorage']['setItem'](_0x21c7d5,_0x26fd76);}function _0x35106a(){const _0xf9dc20='llct-'+_0xef1ee(_0x761dc8(_0x5841e6)),_0x233181=window['localStorage']['getItem'](_0xf9dc20);return _0x233181?window['parseInt'](_0x4b4e08(_0x233181),0x10)*_0x507c:null;}function _0x388425(_0x2f30d8){return new window['Promise']((_0x32650b,_0x3693ac)=>{_0x2f30d8['then'](_0x32650b,_0x3693ac),window['setTimeout'](_0x3693ac,0x1d4c0);});}}_0x579832['on']('_sendUsageRequest',(_0x159e0e,_0x2abc22)=>{if(_0x2abc22[0x0]!=_0x5841e6)return _0x1f04ae('UsageLimit');_0x2abc22[0x1]={..._0x2abc22[0x1],'requestId':_0x2626fa};},{'priority':'high'}),_0x579832['on']('_sendUsageRequest',_0x168fb4=>{_0x4fde22(_0x168fb4['return'])&&(_0x47f825=!0x0,_0x57562c(_0x168fb4['return']));},{'priority':'low'}),_0x347543['then'](()=>{_0x47f825||_0x1f04ae('UsageLimit');});});function _0x4e99e2(){return'auto'==_0x579832['editing']['view']['_overlayModeHint'];}function _0x30de5c(){_0x579832['editing']['view']['_overlayModeHint']='auto';}}function _0x3f9c28(_0x2433f2){const _0x58c5cb=[new window['Promise'](_0x1b9613=>setTimeout(_0x1b9613,0x93ecc)),_0x347543['then'](()=>new window['Promise'](_0x1c8acf=>{let _0x41fc3d=0x0;_0x579832['model']['on']('applyOperation',(_0x43459d,_0x519814)=>{_0x519814[0x0]['isDocumentOperation']&&_0x41fc3d++,0x5e8==_0x41fc3d&&(_0x1c8acf(),_0x43459d['off']());});}))];return window['Promise']['race'](_0x58c5cb)['then'](()=>_0x2433f2);}async function _0x14f93d(){await _0x347543,_0x579832['model']['change']=_0x2eb1cb,_0x579832['model']['enqueueChange']=_0x2eb1cb,_0x579832['enableReadOnlyMode']('model');}function _0x4333e1(_0x2f9374){const _0x1bf672=_0x2b1084();_0x579832[_0x1bf672]='sourceEditingEnhancedLicenseKey'+_0x2f9374,'Valid'!=_0x2f9374&&_0x14f93d();}function _0x2b1084(){const _0x1f1e30=window['String'](window['performance']['now']())['replace']('.','');let _0x5ed78d='N';for(let _0x4be687=0x0;_0x4be687<_0x1f1e30['length'];_0x4be687+=0x2){let _0x17ec90=window['parseInt'](_0x1f1e30['substring'](_0x4be687,_0x4be687+0x2));_0x17ec90>=0x3e&&(_0x17ec90-=0x3e),_0x5ed78d+=_0x41c31f[_0x17ec90];}return _0x5ed78d;}function _0x13e91b(){const _0x49678f=_0x2b7b0c['split']('.');if(0x3!=_0x49678f['length'])return null;return _0x5f0c8a(_0x49678f[0x1]);function _0x5f0c8a(_0x1b2aa0){const _0x562455=_0x30a602(_0x1b2aa0);return _0x562455&&_0x1d12ba()?_0x562455:null;function _0x1d12ba(){const _0x48111b=_0x562455['jti'],_0x4a8728=window['parseInt'](_0x48111b['substring'](_0x48111b['length']-0x8),0x10),_0x5c27fa={..._0x562455,'jti':_0x48111b['substring'](0x0,_0x48111b['length']-0x8)};return delete _0x5c27fa['vc'],_0x761dc8(_0x5c27fa)==_0x4a8728;}}}async function _0x165152(){let _0x2198e6=!0x0;try{const [_0x41a7b2,_0x3fc1c6,_0x48196b]=_0x2b7b0c['split']('.');return _0xfad042(_0x41a7b2),await _0x4c57db(_0x41a7b2,_0x3fc1c6,_0x48196b),_0x2198e6;}catch{return!0x1;}function _0xfad042(_0x5450f3){const _0x21d5a4=_0x30a602(_0x5450f3);_0x21d5a4&&'ES256'==_0x21d5a4['alg']||(_0x2198e6=!0x1);}async function _0x4c57db(_0x17f5c8,_0x20cf70,_0x4a5446){const _0x2e5dd7=window['Uint8Array']['from'](_0x57289(_0x4a5446),_0x16224e=>_0x16224e['charCodeAt'](0x0)),_0x4fded7=new window['TextEncoder']()['encode'](_0x17f5c8+'.'+_0x20cf70),_0x57c850=window['crypto']['subtle'];if(!_0x57c850)return;const _0x448d75=await _0x57c850['importKey']('jwk',_0x12b310,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x57c850['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x448d75,_0x2e5dd7,_0x4fded7)||(_0x2198e6=!0x1);}}function _0x30a602(_0x43d0c9){return _0x43d0c9['startsWith']('ey')?JSON['parse'](_0x57289(_0x43d0c9)):null;}function _0x57289(_0x103b9d){return window['atob'](_0x103b9d['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x761dc8(_0x235513){let _0x509178=0x1505;function _0x474665(_0x27b8d5){for(let _0x139573=0x0;_0x139573<_0x27b8d5['length'];_0x139573++){const _0x6d9bff=_0x27b8d5['charCodeAt'](_0x139573);_0x509178=(_0x509178<<0x5)+_0x509178+_0x6d9bff,_0x509178&=_0x509178;}}function _0xdf77e9(_0x36d9ef){Array['isArray'](_0x36d9ef)?_0x36d9ef['forEach'](_0xdf77e9):_0x36d9ef&&'object'==typeof _0x36d9ef?Object['entries'](_0x36d9ef)['sort']()['forEach'](([_0x1f7802,_0x351f59])=>{_0x474665(_0x1f7802),_0xdf77e9(_0x351f59);}):_0x474665(window['String'](_0x36d9ef));}return _0xdf77e9(_0x235513),_0x509178>>>0x0;}function _0xef1ee(_0x18473e){return _0x18473e['toString'](0x10)['padStart'](0x8,'0');}function _0x4b4e08(_0x5d7e3b){return _0x5d7e3b['split']('')['reverse']()['join']('');}function _0x2eb1cb(){}_0x4333e1(await _0x5a2536());}(this);}_createButton(_0x37d8a3,_0x815302,_0xd2b457=!0x1){const _0x4eaef8=new _0x37d8a3(this['editor']['locale']);return _0x4eaef8['set']({'withText':_0xd2b457,'isToggleable':!0x1}),_0x4eaef8['bind']('isEnabled')['to'](_0x815302,'isEnabled'),this['listenTo'](_0x4eaef8,'execute',()=>_0x815302['execute']()),_0x4eaef8;}_registerKeybindings(){const _0x5aba1d=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':GM(_0x5aba1d,'Source\x20Editing\x20Enhanced')});const _0x5535ee=_0x5a4d25['isMac']||_0x5a4d25['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':GM(_0x5aba1d,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':GM(_0x5aba1d,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':GM(_0x5aba1d,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':GM(_0x5aba1d,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':GM(_0x5aba1d,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':GM(_0x5aba1d,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':GM(_0x5aba1d,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x5535ee?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':GM(_0x5aba1d,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':GM(_0x5aba1d,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':GM(_0x5aba1d,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':GM(_0x5aba1d,'Select\x20line'),'keystroke':_0x5535ee?'Ctrl!+L':'Alt+L'},{'label':GM(_0x5aba1d,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x5535ee?'Alt+Shift+M':'Ctrl+M'},{'label':GM(_0x5aba1d,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':GM(_0x5aba1d,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':GM(_0x5aba1d,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':GM(_0x5aba1d,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':GM(_0x5aba1d,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x5535ee?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}},VJ=class extends _0x44d8e7{constructor(_0x436792){super(_0x436792),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}execute(_0x566525,_0x1f4a16){const _0x401d9e=this['editor'],_0x4fb370=_0x1f4a16?.['rootName']??XM(_0x401d9e);_0x401d9e['data']['set']({[_0x4fb370]:_0x566525},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}},BJ=class extends _0x11fe30{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[UJ];}constructor(_0x46c4c5){super(_0x46c4c5),_0x46c4c5['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}init(){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new VJ(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xa39559=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2cfe5b;for(const _0x4b5ad2 in _0xa39559){const _0x225e29=_0x4b5ad2,_0x31cf84=_0xa39559[_0x225e29];if('sourceEditingEnhancedLicenseKeyValid'==_0x31cf84||'sourceEditingEnhancedLicenseKeyInvalid'==_0x31cf84||'sourceEditingEnhancedLicenseKeyExpired'==_0x31cf84||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x31cf84||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x31cf84||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x31cf84||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x31cf84){delete _0xa39559[_0x225e29],_0x2cfe5b=_0x31cf84,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x2cfe5b&&_0xa39559['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x2cfe5b&&_0xa39559['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x2cfe5b&&_0xa39559['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x2cfe5b&&_0xa39559['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x2cfe5b&&_0xa39559['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x2cfe5b&&_0xa39559['_showLicenseError']('usageLimit');},0x3e8);}destroy(){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_checkCompatibility(){const _0x2c89e5=this['editor'],_0x3dbed0=_0x2c89e5['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x3dbed0&&_0x2c89e5['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x4242d4('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x3dbed0&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x35f69f=>_0x2c89e5['plugins']['has'](_0x35f69f))&&console['warn']('You\x20initialized\x20the\x20editor\x20with\x20the\x20source\x20editing\x20enhanced\x20feature\x20and\x20at\x20least\x20one\x20of\x20the\x20collaboration\x20features.\x20Please\x20be\x20advised\x20that\x20the\x20source\x20editing\x20feature\x20may\x20not\x20work,\x20and\x20be\x20careful\x20when\x20editing\x20document\x20source\x20that\x20contains\x20markers\x20created\x20by\x20the\x20collaboration\x20features.'),_0x2c89e5['plugins']['has']('RestrictedEditingModeEditing')&&console['warn']('You\x20initialized\x20the\x20editor\x20with\x20the\x20source\x20editing\x20enhanced\x20feature\x20and\x20restricted\x20editing\x20feature.\x20Please\x20be\x20advised\x20that\x20the\x20source\x20editing\x20enhanced\x20feature\x20may\x20not\x20work,\x20and\x20be\x20careful\x20when\x20editing\x20document\x20source\x20that\x20contains\x20markers\x20created\x20by\x20the\x20restricted\x20editing\x20feature.');}},HJ=class extends _0x44d8e7{execute(_0x19defb){const {model:_0x233237}=this['editor'];let _0x46b95f;switch(typeof _0x19defb){case'string':_0x46b95f=_0x19defb;break;case'function':_0x46b95f=_0x19defb();}'string'==typeof _0x46b95f&&_0x233237['change'](()=>{const _0x2b9308=this['editor']['data']['htmlProcessor']['toView'](_0x46b95f),_0x23d776=_0x233237['document']['selection']['getFirstPosition']()['root'],_0x419a03=this['editor']['data']['toModel'](_0x2b9308,_0x23d776);_0x233237['insertContent'](_0x419a03);});}},FJ=class extends _0x11fe30{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x2fc9cb}=this;_0x2fc9cb['commands']['add']('insertTemplate',new HJ(_0x2fc9cb)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x380fa7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3291f7;for(const _0x34844e in _0x380fa7){const _0x22b070=_0x34844e,_0x377e71=_0x380fa7[_0x22b070];if('templateLicenseKeyValid'==_0x377e71||'templateLicenseKeyInvalid'==_0x377e71||'templateLicenseKeyExpired'==_0x377e71||'templateLicenseKeyDomainLimit'==_0x377e71||'templateLicenseKeyNotAllowed'==_0x377e71||'templateLicenseKeyEvaluationLimit'==_0x377e71||'templateLicenseKeyUsageLimit'==_0x377e71){delete _0x380fa7[_0x22b070],_0x3291f7=_0x377e71,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x3291f7&&_0x380fa7['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x3291f7&&_0x380fa7['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x3291f7&&_0x380fa7['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x3291f7&&_0x380fa7['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x3291f7&&_0x380fa7['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0x3291f7&&_0x380fa7['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},ZJ=class extends _0x19f1e8{filter(_0x1229de){if(!_0x1229de)return this['_resetFiltering']();const _0x3cc065=new Map(),_0x408945=this['items']['map'](_0x4e7a38=>{const _0x223a8d=_0x4e7a38['buttonView']['isMatching'](_0x1229de);return _0x4e7a38['isVisible']=!!_0x223a8d,_0x4e7a38['buttonView']['highlightText'](_0x223a8d?_0x1229de:null),_0x223a8d&&_0x3cc065['set'](_0x4e7a38,_0x223a8d),_0x4e7a38;})['sort'](GJ)['sort'](function(_0x2524df){return function(_0xd750b0,_0x511c87){const _0x3afd0b=_0x2524df['get'](_0xd750b0),_0xb16555=_0x2524df['get'](_0x511c87);return _0x3afd0b&&!_0xb16555?-0x1:_0xb16555&&!_0x3afd0b?0x1:_0x3afd0b||_0xb16555?_0x3afd0b['title']&&!_0xb16555['title']?-0x1:!_0x3afd0b['title']&&_0xb16555['title']?0x1:0x0:0x0;};}(_0x3cc065));return this['items']['clear'](),this['items']['addMany'](_0x408945),{'resultsCount':_0x3cc065['size'],'totalItemsCount':this['items']['length']};}_resetFiltering(){const _0xde92c5=this['items']['map'](_0x10ec96=>_0x10ec96)['sort'](GJ);return _0xde92c5['forEach'](_0x50f9ac=>{_0x50f9ac['isVisible']=!0x0,_0x50f9ac['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0xde92c5),{'resultsCount':_0xde92c5['length'],'totalItemsCount':_0xde92c5['length']};}};function GJ(_0x5f5cdb,_0xad9fb3){return _0x5f5cdb['originalIndex']-_0xad9fb3['originalIndex'];}var XJ=class extends _0x585012{['originalIndex'];buttonView;constructor(_0x1d227a,_0x510626){super(_0x1d227a),this['originalIndex']=_0x510626,this['buttonView']=null;}},qJ=class extends _0x39ae99{templateDefinition;textPartView;constructor(_0x1f0b65,_0x3b49e6){super(_0x1f0b65),this['templateDefinition']=_0x3b49e6,this['textPartView']=null;const {icon:_0x1f1343=_0x2a9864}=_0x3b49e6;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0x1f1343}),this['iconView']['isColorInherited']=!0x1;}['render'](){super['render'](),this['textPartView']=new WJ(this['locale'],this['templateDefinition'],this['labelView']['element']['id']),this['children']['remove'](this['labelView']),this['children']['add'](this['textPartView']);}destroy(){super['destroy'](),this['labelView']['destroy']();}isMatching(_0x17d10f){const {title:_0x12dde3,description:_0x1bc6b9}=this['templateDefinition'],_0x2efc10=!!_0x12dde3['match'](_0x17d10f),_0x319cf4=!(!_0x1bc6b9||!_0x1bc6b9['match'](_0x17d10f));return _0x2efc10||_0x319cf4?{'title':_0x2efc10,'description':_0x319cf4}:null;}highlightText(_0x2e31fa){this['textPartView']['highlightText'](_0x2e31fa);}},WJ=class extends _0x2f6e1a{constructor(_0x2a3d49,_0x2e8b2d,_0x7f54ad){super(_0x2a3d49),this['title']=_0x2e8b2d['title'],this['description']=_0x2e8b2d['description'],this['titleView']=new _0x5ad9a9(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0x7f54ad}});const _0x3c3396=[this['titleView']];this['description']&&(this['descriptionView']=new _0x5ad9a9(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0x3c3396['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0x3c3396});}highlightText(_0x324b4d){this['titleView']['highlightText'](_0x324b4d),this['description']&&this['descriptionView']['highlightText'](_0x324b4d);}};function zJ(_0x26e3d1,_0x1b4dfd,..._0x43ab26){const t=_0x26e3d1['t'];switch(_0x1b4dfd){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x43ab26);case'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.':return t('Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.');case'No\x20templates\x20available.':return t('No\x20templates\x20available.');case'%0\x20templates\x20found':return t('%0\x20templates\x20found',..._0x43ab26);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x1b4dfd;}}var YJ=class extends _0x11fe30{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x46ad3e}=this,_0x473afb=_0x46ad3e['config']['get']('template.definitions')||[];_0x46ad3e['ui']['componentFactory']['add']('insertTemplate',_0x275d0d=>{const _0x2b2731=_0x46490d(_0x275d0d),_0x243633=new _0x30d1f3(_0x275d0d,{'filteredView':this['_createTemplateListView'](_0x275d0d,_0x473afb),'queryView':{'label':zJ(_0x275d0d,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0x4cd89a=>zJ(_0x275d0d,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0x4cd89a),'secondary':zJ(_0x275d0d,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':zJ(_0x275d0d,'No\x20templates\x20available.')}}}}),_0x44065b=_0x46ad3e['commands']['get']('insertTemplate');return _0x243633['on']('search',(_0x29209f,_0x5e1f61)=>{_0x5e1f61['query']&&_0x5e1f61['query']['length']&&_0x46ad3e['ui']['ariaLiveAnnouncer']['announce'](zJ(_0x275d0d,'%0\x20templates\x20found',_0x5e1f61['resultsCount']));}),_0x2b2731['bind']('isEnabled')['to'](_0x44065b),_0x2b2731['panelView']['children']['add'](_0x243633),_0x2b2731['buttonView']['set']({'label':zJ(_0x275d0d,'Insert\x20template'),'icon':_0x547560,'tooltip':!0x0}),_0x2b2731['on']('change:isOpen',(_0x2e90e9,_0x17dc8e,_0x4545c5)=>{_0x4545c5||_0x243633['reset']();}),_0x2b2731;}),_0x46ad3e['ui']['componentFactory']['add']('menuBar:insertTemplate',_0x1498db=>{const _0x211bb8=_0x46ad3e['commands']['get']('insertTemplate'),_0x424f26=new _0xf2980e(_0x1498db);_0x424f26['buttonView']['set']({'label':zJ(_0x1498db,'Template'),'icon':_0x547560});const _0x3cb0d5=new _0x32d381(_0x1498db);if(!_0x473afb||!_0x473afb['length']){const _0x28274e=new _0x1bf87e(_0x1498db,_0x424f26),_0x201188=new _0x589436(_0x1498db);_0x201188['set']({'label':zJ(_0x1498db,'No\x20templates\x20available.')}),_0x201188['delegate']('execute')['to'](_0x424f26),_0x201188['on']('execute',()=>{_0x46ad3e['editing']['view']['focus']();}),_0x28274e['children']['add'](_0x201188),_0x3cb0d5['items']['add'](_0x28274e);}for(const _0x5685a9 of _0x473afb){const _0x3914e6=new _0x1bf87e(_0x1498db,_0x424f26),_0x98a2c6=new _0x589436(_0x1498db);_0x98a2c6['set']({'class':'ck-template-button','label':_0x5685a9['title'],'icon':_0x5685a9['icon']||_0x2a9864}),_0x98a2c6['delegate']('execute')['to'](_0x424f26),_0x98a2c6['on']('execute',()=>{_0x46ad3e['execute']('insertTemplate',_0x5685a9['data']),_0x46ad3e['editing']['view']['focus']();}),_0x3914e6['children']['add'](_0x98a2c6),_0x3cb0d5['items']['add'](_0x3914e6);}return _0x424f26['panelView']['children']['add'](_0x3cb0d5),_0x424f26['bind']('isEnabled')['to'](_0x211bb8,'isEnabled'),_0x424f26;});}afterInit(){!async function(_0x32ebbc){const _0x312e87='5goNZRxHzmBfrl0Fq6Cks1ahDGS2LUEWiby3wKvu4IVPdeT8jn9MOQJtcAY7Xp',_0x8b1f74=0x791d0,_0x7048dd=window['Date']['now'](),_0x4ae48c=_0x32ebbc['editor'],_0x78edf5=new window['Promise'](_0x7d8c6d=>{_0x4ae48c['once']('ready',_0x7d8c6d);}),_0x4a595f={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x5ec239=_0x4ae48c['config']['get']('licenseKey');async function _0x1a9310(){let _0x515cbb,_0x13e425=null,_0x3b7a05=null;try{return'GPL'==_0x5ec239?'NotAllowed':(_0x515cbb=_0xead0b5(),_0x515cbb?(_0x515cbb['usageEndpoint']&&(_0x3b7a05=_0x31170b(_0x515cbb['usageEndpoint'],_0x515cbb['jti'])),await _0x10340b()?_0x51a410()?_0x21295c()?'Expired':_0x45080b()?('evaluation'==_0x515cbb['licenseType']&&(_0x13e425=_0x319278('EvaluationLimit')),await _0x1e372a()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x21295c(){const _0x337f93=['evaluation','trial']['includes'](_0x515cbb['licenseType'])?_0x7048dd/0x3e8:0xe10*_0x8b1f74;return _0x515cbb['exp']<_0x337f93;}function _0x51a410(){const _0x196e00=_0x515cbb['features'];return!!_0x196e00&&(!!_0x196e00['includes']('*')||(!!_0x196e00['includes']('TPL')||(!!_0x196e00['includes']('PP')||(!(!_0x196e00['includes']('DRUP')||!_0x3013bd())||!(!_0x196e00['includes']('TRILIUM')||!_0x454c12())))));}function _0x45080b(){const _0x1e1fcc=_0x515cbb['licensedHosts'];if(!_0x1e1fcc||0x0==_0x1e1fcc['length'])return!0x0;const {hostname:_0x2f63d0}=new URL(window['location']['href']);if(_0x1e1fcc['includes'](_0x2f63d0))return!0x0;const _0x13c432=_0x2f63d0['split']('.');return _0x1e1fcc['filter'](_0x17b093=>_0x17b093['includes']('*'))['map'](_0x32aefd=>_0x32aefd['split']('.'))['filter'](_0x4da24e=>_0x4da24e['length']<=_0x13c432['length'])['map'](_0x54b45b=>Array(_0x13c432['length']-_0x54b45b['length'])['fill']('*'===_0x54b45b[0x0]?'*':'')['concat'](_0x54b45b))['some'](_0x1c7537=>_0x13c432['every']((_0x132971,_0x58f9ff)=>_0x1c7537[_0x58f9ff]===_0x132971||'*'===_0x1c7537[_0x58f9ff]));}function _0x1e372a(){return _0x13e425&&_0x3b7a05?new window['Promise']((_0x46e150,_0x3a6f61)=>{_0x13e425['then'](_0x46e150,_0x3a6f61),_0x3b7a05['then'](_0x1a7089=>{'Valid'!=_0x1a7089&&_0x46e150(_0x1a7089);},_0x3a6f61);}):_0x13e425||_0x3b7a05||'Valid';}}function _0x31170b(_0x283059,_0x4b3e76){return new window['Promise'](_0x390f01=>{if(_0xca0df8())return _0x390f01('Valid');_0x3b5ad8(),_0x4ae48c['decorate']('_sendUsageRequest');let _0xe5fab9=!0x1;const _0x25851c=_0xea66bb();function _0x233717(_0x5c1308){return!!_0x5c1308&&('object'==typeof _0x5c1308||'function'==typeof _0x5c1308)&&'function'==typeof _0x5c1308['then']&&'function'==typeof _0x5c1308['catch'];}function _0x1419cd(_0x399d3d){_0x5a361d(_0x399d3d)['then'](_0x4173ff=>_0x4173ff&&'ok'==_0x4173ff['status']?_0x314e9c(_0x1a5bb0(_0x25851c+_0x4b3e76))!=_0x4173ff['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x2f2812=>(_0x4d2b7a(),_0x2f2812),()=>{const _0x57cbb1=_0x983113();return null==_0x57cbb1?(_0x4d2b7a(),'Valid'):_0x7048dd-_0x57cbb1>0x240c8400?'UsageLimit':'Valid';})['then'](_0x390f01)['catch'](()=>{_0x390f01('UsageLimit');});const _0xf7f175=0x36ee80;function _0x4d2b7a(){const _0x2d5abb='llct-'+_0x314e9c(_0x1a5bb0(_0x283059)),_0x17e0aa=_0x3bbb87(_0x314e9c(window['Math']['ceil'](_0x7048dd/_0xf7f175)));window['localStorage']['setItem'](_0x2d5abb,_0x17e0aa);}function _0x983113(){const _0x3945e2='llct-'+_0x314e9c(_0x1a5bb0(_0x283059)),_0x2abffe=window['localStorage']['getItem'](_0x3945e2);return _0x2abffe?window['parseInt'](_0x3bbb87(_0x2abffe),0x10)*_0xf7f175:null;}function _0x5a361d(_0xe22854){return new window['Promise']((_0x9df65b,_0x27f17d)=>{_0xe22854['then'](_0x9df65b,_0x27f17d),window['setTimeout'](_0x27f17d,0x1d4c0);});}}_0x4ae48c['on']('_sendUsageRequest',(_0x182978,_0x40c36f)=>{if(_0x40c36f[0x0]!=_0x283059)return _0x390f01('UsageLimit');_0x40c36f[0x1]={..._0x40c36f[0x1],'requestId':_0x25851c};},{'priority':'high'}),_0x4ae48c['on']('_sendUsageRequest',_0x505094=>{_0x233717(_0x505094['return'])&&(_0xe5fab9=!0x0,_0x1419cd(_0x505094['return']));},{'priority':'low'}),_0x78edf5['then'](()=>{_0xe5fab9||_0x390f01('UsageLimit');});});function _0xca0df8(){return'auto'==_0x4ae48c['editing']['view']['_overlayModeHint'];}function _0x3b5ad8(){_0x4ae48c['editing']['view']['_overlayModeHint']='auto';}}function _0x319278(_0x4b8c53){const _0x547c34=[new window['Promise'](_0x5824b5=>setTimeout(_0x5824b5,0x93ecc)),_0x78edf5['then'](()=>new window['Promise'](_0x45bd45=>{let _0x374337=0x0;_0x4ae48c['model']['on']('applyOperation',(_0x2e84bd,_0x20c31f)=>{_0x20c31f[0x0]['isDocumentOperation']&&_0x374337++,0x5e8==_0x374337&&(_0x45bd45(),_0x2e84bd['off']());});}))];return window['Promise']['race'](_0x547c34)['then'](()=>_0x4b8c53);}async function _0x3d5529(){await _0x78edf5,_0x4ae48c['model']['change']=_0x4fe507,_0x4ae48c['model']['enqueueChange']=_0x4fe507,_0x4ae48c['enableReadOnlyMode']('model');}function _0x3013bd(){return window['Drupal'];}function _0x454c12(){return window['glob']&&window['glob']['triliumVersion'];}function _0x5b0d43(_0x354331){const _0x6451c2=_0x765e8d();_0x4ae48c[_0x6451c2]='templateLicenseKey'+_0x354331,'Valid'!=_0x354331&&_0x3d5529();}function _0x765e8d(){const _0x49a940=window['String'](window['performance']['now']())['replace']('.','');let _0x46d3fb='g';for(let _0x50a75a=0x0;_0x50a75a<_0x49a940['length'];_0x50a75a+=0x2){let _0x358245=window['parseInt'](_0x49a940['substring'](_0x50a75a,_0x50a75a+0x2));_0x358245>=0x3e&&(_0x358245-=0x3e),_0x46d3fb+=_0x312e87[_0x358245];}return _0x46d3fb;}function _0xead0b5(){const _0x1e2bbc=_0x5ec239['split']('.');if(0x3!=_0x1e2bbc['length'])return null;return _0x20b08f(_0x1e2bbc[0x1]);function _0x20b08f(_0x38cec7){const _0x415805=_0x3a9adb(_0x38cec7);return _0x415805&&_0x42804d()?_0x415805:null;function _0x42804d(){const _0x16014a=_0x415805['jti'],_0x3a5ae4=window['parseInt'](_0x16014a['substring'](_0x16014a['length']-0x8),0x10),_0x31236a={..._0x415805,'jti':_0x16014a['substring'](0x0,_0x16014a['length']-0x8)};return delete _0x31236a['vc'],_0x1a5bb0(_0x31236a)==_0x3a5ae4;}}}async function _0x10340b(){let _0x35a83a=!0x0;try{const [_0x47c321,_0x4f7321,_0x11a45c]=_0x5ec239['split']('.');return _0x584b3d(_0x47c321),await _0x2bbe8b(_0x47c321,_0x4f7321,_0x11a45c),_0x35a83a;}catch{return!0x1;}function _0x584b3d(_0x397fad){const _0x38c8bd=_0x3a9adb(_0x397fad);_0x38c8bd&&'ES256'==_0x38c8bd['alg']||(_0x35a83a=!0x1);}async function _0x2bbe8b(_0x2aaaa2,_0x45ac9a,_0x46e9f0){const _0x1ad47a=window['Uint8Array']['from'](_0x178798(_0x46e9f0),_0x25d607=>_0x25d607['charCodeAt'](0x0)),_0x3e7e76=new window['TextEncoder']()['encode'](_0x2aaaa2+'.'+_0x45ac9a),_0x3ffb5a=window['crypto']['subtle'];if(!_0x3ffb5a)return;const _0x2481de=await _0x3ffb5a['importKey']('jwk',_0x4a595f,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x3ffb5a['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x2481de,_0x1ad47a,_0x3e7e76)||(_0x35a83a=!0x1);}}function _0x3a9adb(_0x213933){return _0x213933['startsWith']('ey')?JSON['parse'](_0x178798(_0x213933)):null;}function _0x178798(_0x31b8de){return window['atob'](_0x31b8de['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1a5bb0(_0x51d808){let _0x4503e5=0x1505;function _0x45aa2d(_0x5b2372){for(let _0x22a9c6=0x0;_0x22a9c6<_0x5b2372['length'];_0x22a9c6++){const _0x1870cf=_0x5b2372['charCodeAt'](_0x22a9c6);_0x4503e5=(_0x4503e5<<0x5)+_0x4503e5+_0x1870cf,_0x4503e5&=_0x4503e5;}}function _0x803a40(_0xd1ee20){Array['isArray'](_0xd1ee20)?_0xd1ee20['forEach'](_0x803a40):_0xd1ee20&&'object'==typeof _0xd1ee20?Object['entries'](_0xd1ee20)['sort']()['forEach'](([_0x12a066,_0x11433b])=>{_0x45aa2d(_0x12a066),_0x803a40(_0x11433b);}):_0x45aa2d(window['String'](_0xd1ee20));}return _0x803a40(_0x51d808),_0x4503e5>>>0x0;}function _0x314e9c(_0x9f0aa6){return _0x9f0aa6['toString'](0x10)['padStart'](0x8,'0');}function _0x3bbb87(_0x317772){return _0x317772['split']('')['reverse']()['join']('');}function _0x4fe507(){}_0x5b0d43(await _0x1a9310());}(this);}_createTemplateListView(_0x35874f,_0x4c5cb9){const {editor:_0x1c5d60}=this,_0x4552c5=new ZJ(_0x35874f);return _0x4552c5['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0x4552c5['items']['addMany'](_0x4c5cb9['map']((_0x462f3d,_0x4d2d9c)=>{const _0x5d23f1=new XJ(_0x35874f,_0x4d2d9c),_0x9bbc2c=new qJ(_0x35874f,_0x462f3d);return _0x5d23f1['buttonView']=_0x9bbc2c,_0x5d23f1['children']['add'](_0x9bbc2c),_0x5d23f1['buttonView']['on']('execute',_0x159d63=>{_0x1c5d60['execute']('insertTemplate',_0x159d63['source']['templateDefinition']['data']),_0x1c5d60['editing']['view']['focus']();}),_0x5d23f1;})),_0x4552c5;}},KJ=class extends _0x11fe30{static get requires(){return[FJ,YJ];}static get['pluginName'](){return'Template';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};function JJ(_0x57d102,_0x50e55d,_0xb5c183){const t=_0x57d102['t'],_0x1f40b0=_0x57d102['t'];switch(_0x50e55d){case'local':return{'text':_0x1f40b0('Insert'===_0xb5c183?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1f40b0('From\x20computer')};case'url':return{'text':'Insert'===_0xb5c183?_0x1f40b0('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1f40b0('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0xb5c183?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0xb5c183?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0xb5c183?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0xb5c183?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0xb5c183?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x50e55d;}}var t0=class extends _0x11fe30{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x159ce4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x147dbd;for(const _0x41109b in _0x159ce4){const _0x14266f=_0x41109b,_0x46ff60=_0x159ce4[_0x14266f];if('uploadcareLicenseKeyValid'==_0x46ff60||'uploadcareLicenseKeyInvalid'==_0x46ff60||'uploadcareLicenseKeyExpired'==_0x46ff60||'uploadcareLicenseKeyDomainLimit'==_0x46ff60||'uploadcareLicenseKeyNotAllowed'==_0x46ff60||'uploadcareLicenseKeyEvaluationLimit'==_0x46ff60||'uploadcareLicenseKeyUsageLimit'==_0x46ff60){delete _0x159ce4[_0x14266f],_0x147dbd=_0x46ff60,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x147dbd&&_0x159ce4['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x147dbd&&_0x159ce4['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x147dbd&&_0x159ce4['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x147dbd&&_0x159ce4['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x147dbd&&_0x159ce4['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x147dbd&&_0x159ce4['_showLicenseError']('usageLimit');},0x3e8);}afterInit(){const {editor:_0xc89b6f}=this,_0xaa6e90=_0xc89b6f['commands']['get']('uploadcare');if(!_0xaa6e90)return;const _0x1f9b14=this['_normalizeConfigSourceList'](_0xc89b6f['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5dd629,_0x9b398f)=>{const _0x55f530=this['_getIntegrationKey'](_0x9b398f['type']);return _0x5dd629[_0x55f530]||(_0x5dd629[_0x55f530]=[]),_0x5dd629[_0x55f530]['push'](_0x9b398f),_0x5dd629;},{});_0xc89b6f['plugins']['has']('ImageInsertUI')&&_0xc89b6f['commands']['get']('uploadcare')&&Object['entries'](_0x1f9b14)['forEach'](([_0x429e1a,_0xcb16f7])=>{_0xc89b6f['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x429e1a,'observable':()=>_0xaa6e90,'buttonViewCreator':()=>this['_createToolbarButton'](_0xcb16f7),'formViewCreator':()=>this['_createDropdownButtons'](_0xcb16f7),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xcb16f7),'override':'assetManager'!==_0x429e1a});});}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_normalizeConfigSourceList(_0x464ce6){const {locale:_0x247e56}=this['editor'];return _0x464ce6['map'](_0x2d70ad=>{const _0x1b36e6=JJ(_0x247e56,_0x2d70ad,'Insert');switch(_0x2d70ad){case'local':return{'icon':_0x442a3a,'type':'local',..._0x1b36e6};case'url':return{'icon':_0x4a1f54,'type':'url',..._0x1b36e6};case'dropbox':return{'icon':_0x565415,'type':'dropbox',..._0x1b36e6};case'facebook':return{'icon':et,'type':'facebook',..._0x1b36e6};case'gdrive':return{'icon':nt,'type':'gdrive',..._0x1b36e6};case'gphotos':return{'icon':rt,'type':'gphotos',..._0x1b36e6};case'onedrive':return{'icon':Dt,'type':'onedrive',..._0x1b36e6};}});}_getIntegrationKey(_0x1f76cf){switch(_0x1f76cf){case'local':return'upload';case'url':return'url';default:return'assetManager';}}_createButton(_0x5b9d71,_0x53c066){const _0x26ee8c=this['editor'],_0x334f89=new _0x5b9d71(_0x26ee8c['locale']),_0x12bfd5=_0x26ee8c['commands']['get']('uploadcare');return _0x334f89['bind']('isEnabled')['to'](_0x12bfd5),_0x334f89['on']('execute',()=>{_0x12bfd5['execute'](_0x53c066);}),_0x334f89;}_createToolbarButton(_0x381e6e){const {locale:_0x4244cc}=this['editor'],_0xf1af25=this['editor']['plugins']['get']('ImageInsertUI'),_0x11f85e=_0x381e6e[0x0],_0x290744=this['_createButton'](_0x39ae99,_0x11f85e['type']);return _0x290744['icon']=_0x11f85e['icon'],_0x290744['bind']('label')['to'](_0xf1af25,'isImageSelected',_0x17be19=>JJ(_0x4244cc,_0x11f85e['type'],_0x17be19?'Replace':'Insert')['text']),_0x290744['tooltip']=!0x0,_0x290744;}_createDropdownButtons(_0x36f062){const {locale:_0x431f6a}=this['editor'],_0x3e3c21=this['editor']['plugins']['get']('ImageInsertUI');return _0x36f062['map'](_0x341c3c=>{const _0x264f06=this['_createButton'](_0x39ae99,_0x341c3c['type']);return _0x264f06['withText']=!0x0,_0x264f06['icon']=_0x341c3c['icon'],_0x264f06['bind']('label')['to'](_0x3e3c21,'isImageSelected',_0x59c8fd=>JJ(_0x431f6a,_0x341c3c['type'],_0x59c8fd?'Replace':'Insert')['text']),_0x264f06;});}_createMenuBarButtons(_0x26369a){return _0x26369a['map'](_0x432933=>{const _0x3a1cad=this['_createButton'](_0x589436,_0x432933['type']);return _0x3a1cad['icon']=_0x432933['icon'],_0x3a1cad['label']=_0x432933['shortText'],_0x3a1cad;});}},e0=class extends _0x2f6e1a{['focusTracker'];['focusCycler'];constructor(_0x122a6e){super(_0x122a6e),this['focusTracker']=new _0x1c95ab(),this['focusCycler']=new _0x273f88({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}getFocusableElement(){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}},i0=class extends e0{constructor(_0x5e3627,_0x4ffd23){super(_0x5e3627),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader-'+_0x4ffd23}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}};function s0(_0x57e57f,_0x58bb78){const _0x3870d0=_0x57e57f['replace'](/\/$/,'');return{'imageFallbackUrl':_0x57e57f,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x812a5d=>_0x812a5d<_0x58bb78)['map'](_0x360dac=>_0x3870d0+'/-/resize/'+_0x360dac+'x/\x20'+_0x360dac+'w'),_0x57e57f+'\x20'+_0x58bb78+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x58bb78+'px)\x20100vw,\x20'+_0x58bb78+'px','type':'image/webp'}]};}function n0(_0x46d27a,_0x26dbb5,_0x3f397c){const _0x1f117f=_0x46d27a['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1f117f?parseInt(_0x1f117f[0x1],0xa):_0x26dbb5,'height':_0x1f117f?parseInt(_0x1f117f[0x2],0xa):_0x3f397c};}function r0(_0x388540,_0x33267b){const _0x18ab39=new(_0x5c7b5e())(),_0x3687d3=_0x388540['plugins']['get']('ImageUtils'),_0x5f0d56=_0x388540['editing']['mapper']['toViewElement'](_0x33267b),_0x5cf2ce=_0x3687d3['findViewImgElement'](_0x5f0d56),_0x5025f6=_0x388540['editing']['view']['domConverter']['viewToDom'](_0x5cf2ce),_0x192d10=_0x33267b['getAttribute']('width'),_0x517859=_0x33267b['getAttribute']('height'),_0x557b00='image-processing';_0x388540['editing']['view']['change'](_0x4f2ad4=>{_0x4f2ad4['addClass'](_0x557b00,_0x5f0d56),_0x4f2ad4['setStyle']('aspect-ratio',_0x192d10+'/'+_0x517859,_0x5cf2ce);}),_0x18ab39['listenTo'](_0x5025f6,'load',()=>{_0x18ab39['stopListening'](_0x5025f6,'load'),_0x388540['editing']['view']['change'](_0xb95d81=>{_0xb95d81['removeClass'](_0x557b00,_0x5f0d56),_0xb95d81['removeStyle']('aspect-ratio',_0x5cf2ce);});});}function o0(_0x2b4f4d){if(Array['isArray'](_0x2b4f4d)){const _0x2741c0=_0x2b4f4d['map'](o0);return _0x2a1445=>_0x2741c0['some'](_0x17e119=>_0x17e119(_0x2a1445));}if('origin'==_0x2b4f4d){const _0x3b00e3=_0x250afe['window']['location']['origin'];return _0x237c9f=>new URL(_0x237c9f,_0x250afe['document']['baseURI'])['origin']==_0x3b00e3;}return'function'==typeof _0x2b4f4d?_0x2b4f4d:_0x2b4f4d instanceof RegExp?_0x31cb63=>!(!_0x31cb63['match'](_0x2b4f4d)&&!_0x31cb63['replace'](/^https?:\/\//,'')['match'](_0x2b4f4d)):()=>!0x1;}function a0(_0x47d225,_0x388a74){return _0x198bde(_0x47d225['target'])['includes'](_0x388a74);}const c0=/* #__PURE__ -- @preserve */
_0x356c1e();var l0=class extends c0{_editor;['_dialog'];_editing;['_api'];_type=null;['_formView']=null;constructor(_0x5a3e79,_0x476c88,_0x3632a4){super(),this['_editor']=_0x5a3e79,this['_editing']=_0x476c88,this['_dialog']=_0x5a3e79['plugins']['get'](_0x3e3ae5),this['_api']=_0x476c88['ctxElement']['getAPI'](),this['_type']=_0x3632a4,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}destroy(){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}_initDialog(){const {locale:_0x3ab487,model:_0x3b2c1c}=this['_editor'],_0x1de394=_0x3b2c1c['document']['selection']['getSelectedElement'](),_0x3647bf=_0x1de394&&(_0x1de394['is']('element','imageBlock')||_0x1de394['is']('element','imageInline'));this['_formView']=new i0(_0x3ab487,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x442a3a,'title':JJ(_0x3ab487,this['_type'],_0x3647bf?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3846ff['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xdcfa3c=>!a0(_0xdcfa3c,this['_formView']['element'])}});}_initListeners(){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x594971}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5230bd=>{const _0x543b5c=_0x594971['length'];for(const _0x15994e of _0x594971){const _0x519436=_0x15994e===_0x594971[_0x543b5c-0x1],{cdnUrl:_0x309f68,fileInfo:_0x1992c5}=_0x15994e;if(!_0x309f68||!_0x1992c5)continue;const {width:_0x17c742,height:_0x4ce277}=_0x1992c5['imageInfo'],_0x5f315a=n0(_0x309f68,_0x17c742,_0x4ce277),_0x13c7b6=s0(_0x309f68,_0x5f315a['width']),_0x36c42d={'id':_0x1992c5['uuid'],'type':'image','attributes':{'imageDimension':_0x5f315a,..._0x13c7b6}};this['_insertAsset'](_0x36c42d,_0x519436,_0x5230bd);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2e0da8=>{'idle'===_0x2e0da8['detail']['status']&&!_0x2e0da8['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}_insertAsset(_0x12349a,_0x41ceb4,_0x1fc62a){const _0x115931=this['_editor']['model']['document']['selection'],_0x10e3cc=_0x115931['getSelectedElement'](),_0xd9399b=!(!_0x10e3cc||!_0x10e3cc['is']('element','imageInline'));_0x1fc62a['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x12349a,_0xd9399b),_0x41ceb4||_0x1fc62a['setSelection'](_0x115931['getLastPosition']());}_insertImage(_0x31122f,_0x130b84){const _0x5b52df=this['_editor'],{imageDimension:_0x2694a8,imageFallbackUrl:_0xd40ef2,imageSources:_0xb5720f}=_0x31122f['attributes'];_0x5b52df['execute']('insertImage',{'imageType':_0x130b84?'imageInline':null,'source':{'uploadcareImageId':_0x31122f['id'],'src':_0xd40ef2,'sources':_0xb5720f,..._0x2694a8}});}},h0=class extends _0x44d8e7{_editing;_controller=null;static get requires(){return[_0x3e3ae5,O1];}constructor(_0x10572d){super(_0x10572d),this['_editing']=_0x10572d['plugins']['get'](O1);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}execute(_0x31b71b){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l0(this['editor'],this['_editing'],_0x31b71b);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}};function u0(_0x2adf69){return'[object\x20Object]'===Object['prototype']['toString']['call'](_0x2adf69);}const d0=/\W|_/g;function f0(_0x3f5841){return _0x3f5841['split'](d0)['map']((_0x5f1665,_0x4b2d70)=>_0x5f1665['charAt'](0x0)[_0x4b2d70>0x0?'toUpperCase':'toLowerCase']()+_0x5f1665['slice'](0x1))['join']('');}function m0(_0x5d1dd0,{ignoreKeys:_0x48e785}={'ignoreKeys':[]}){return Array['isArray'](_0x5d1dd0)?_0x5d1dd0['map'](_0x2ae41d=>p0(_0x2ae41d,{'ignoreKeys':_0x48e785})):_0x5d1dd0;}function p0(_0x1314f5,{ignoreKeys:_0x3cfb0a}={'ignoreKeys':[]}){if(Array['isArray'](_0x1314f5))return m0(_0x1314f5,{'ignoreKeys':_0x3cfb0a});if(!u0(_0x1314f5))return _0x1314f5;const _0x138ab3={};for(const _0x57a544 of Object['keys'](_0x1314f5)){let _0x34c528=_0x1314f5[_0x57a544];_0x3cfb0a['includes'](_0x57a544)?_0x138ab3[_0x57a544]=_0x34c528:(u0(_0x34c528)?_0x34c528=p0(_0x34c528,{'ignoreKeys':_0x3cfb0a}):Array['isArray'](_0x34c528)&&(_0x34c528=m0(_0x34c528,{'ignoreKeys':_0x3cfb0a})),_0x138ab3[f0(_0x57a544)]=_0x34c528);}return _0x138ab3;}const g0={'factor':0x2,'time':0x64};function O0(_0x323b9f,_0x3c5e8c=g0){let _0x486e0d=0x0;return function _0x2f3668(_0x269aa2){const _0x13fc1f=Math['round'](_0x3c5e8c['time']*_0x3c5e8c['factor']**_0x486e0d);return _0x269aa2({'attempt':_0x486e0d,'retry':_0x54317d=>(_0x1b7e57=>new Promise(_0x422c64=>setTimeout(_0x422c64,_0x1b7e57)))(_0x54317d??_0x13fc1f)['then'](()=>(_0x486e0d+=0x1,_0x2f3668(_0x269aa2)))});}(_0x323b9f);}var w0=class extends Error{},b0=class NetworkError extends w0{originalProgressEvent;constructor(_0x49c7eb){super(),this['name']='NetworkError',this['message']='Network\x20error',Object['setPrototypeOf'](this,NetworkError['prototype']),this['originalProgressEvent']=_0x49c7eb;}};const y0=(_0x469d26,_0x40f6c6)=>{_0x469d26&&(_0x469d26['aborted']?Promise['resolve']()['then'](_0x40f6c6):_0x469d26['addEventListener']('abort',()=>_0x40f6c6(),{'once':!0x0}));};var v0=class CancelError extends w0{['isCancel']=!0x0;constructor(_0x2f311d='Request\x20canceled'){super(_0x2f311d),this['name']='CancelError',Object['setPrototypeOf'](this,CancelError['prototype']);}};const _0=({check:_0x5ba9da,interval:_0x18bd0b=0x1f4,timeout:_0x197aaa,signal:_0x5b3d3a})=>new Promise((_0x4c31ea,_0x48d2ce)=>{let _0x53b1ad,_0x426a55;y0(_0x5b3d3a,()=>{_0x53b1ad&&clearTimeout(_0x53b1ad),_0x48d2ce(new v0('Poll\x20cancelled'));}),_0x197aaa&&(_0x426a55=setTimeout(()=>{_0x53b1ad&&clearTimeout(_0x53b1ad),_0x48d2ce(new v0('Timed\x20out'));},_0x197aaa));const _0x120497=()=>{try{Promise['resolve'](_0x5ba9da(_0x5b3d3a))['then'](_0x2c7cd3=>{_0x2c7cd3?(_0x426a55&&clearTimeout(_0x426a55),_0x4c31ea(_0x2c7cd3)):_0x53b1ad=setTimeout(_0x120497,_0x18bd0b);})['catch'](_0xe37540=>{_0x426a55&&clearTimeout(_0x426a55),_0x48d2ce(_0xe37540);});}catch(_0x3a563a){_0x426a55&&clearTimeout(_0x426a55),_0x48d2ce(_0x3a563a);}};_0x53b1ad=setTimeout(_0x120497,0x0);}),E0='https://ucarecdn.com',T0='https://upload.uploadcare.com',A0=0x1,S0=0x3,I0=0x1900000,k0=0x500000,x0=0x4,C0='79ae88bd931ea68464d9',R0='application/octet-stream',P0='original',N0=({method:_0x10e908,url:_0x534814,data:_0x1c52fc,headers:_0x2eab34={},signal:_0x3434e2,onProgress:_0x4d99fa})=>new Promise((_0x132d23,_0x1adce5)=>{const _0x9be2fa=new XMLHttpRequest(),_0x52410b=_0x10e908?.['toUpperCase']()||'GET';let _0x197b79=!0x1;_0x9be2fa['open'](_0x52410b,_0x534814,!0x0),_0x2eab34&&Object['entries'](_0x2eab34)['forEach'](_0x2a2c81=>{const [_0x5e8c81,_0x4ea6e9]=_0x2a2c81;void 0x0!==_0x4ea6e9&&!Array['isArray'](_0x4ea6e9)&&_0x9be2fa['setRequestHeader'](_0x5e8c81,_0x4ea6e9);}),_0x9be2fa['responseType']='text',y0(_0x3434e2,()=>{_0x197b79=!0x0,_0x9be2fa['abort'](),_0x1adce5(new v0());}),_0x9be2fa['onload']=()=>{if(0xc8!=_0x9be2fa['status'])_0x1adce5(new Error('Error\x20'+_0x9be2fa['status']+':\x20'+_0x9be2fa['statusText']));else{const _0x31456b={'method':_0x52410b,'url':_0x534814,'data':_0x1c52fc,'headers':_0x2eab34||void 0x0,'signal':_0x3434e2,'onProgress':_0x4d99fa},_0x1ce8a2=_0x9be2fa['getAllResponseHeaders']()['trim']()['split'](/[\r\n]+/),_0x31112d={};_0x1ce8a2['forEach'](function(_0x53bb7a){const _0x40e6b4=_0x53bb7a['split'](':\x20'),_0x27cf6a=_0x40e6b4['shift'](),_0x51e3d7=_0x40e6b4['join'](':\x20');_0x27cf6a&&void 0x0!==_0x27cf6a&&(_0x31112d[_0x27cf6a]=_0x51e3d7);});const _0x17279b=_0x9be2fa['response'],_0x33f875=_0x9be2fa['status'];_0x132d23({'request':_0x31456b,'data':_0x17279b,'headers':_0x31112d,'status':_0x33f875});}},_0x9be2fa['onerror']=_0x3d568c=>{_0x197b79||_0x1adce5(new b0(_0x3d568c));},_0x4d99fa&&'function'==typeof _0x4d99fa&&(_0x9be2fa['upload']['onprogress']=_0x588d20=>{_0x588d20['lengthComputable']?_0x4d99fa({'isComputable':!0x0,'value':_0x588d20['loaded']/_0x588d20['total']}):_0x4d99fa({'isComputable':!0x1});}),_0x1c52fc?_0x9be2fa['send'](_0x1c52fc):_0x9be2fa['send']();}),M0=function(_0x231040,..._0x1c84d7){return _0x231040;},L0=_0x3a91a2=>'undefined'!=typeof Blob&&_0x3a91a2 instanceof Blob,$0=_0x271234=>'undefined'!=typeof File&&_0x271234 instanceof File,D0=_0x25dcdc=>!!_0x25dcdc&&'object'==typeof _0x25dcdc&&!Array['isArray'](_0x25dcdc)&&'uri'in _0x25dcdc&&'string'==typeof _0x25dcdc['uri'],Q0=_0x598f54=>L0(_0x598f54)||$0(_0x598f54)||D0(_0x598f54);function j0(_0x21c5bb,_0x300e21,_0x489420){if(Array['isArray'](_0x489420)){for(const _0x2cda9c of _0x489420)j0(_0x21c5bb,_0x300e21+'[]',_0x2cda9c);}else{if((_0x1687b4=>!!_0x1687b4&&'object'==typeof _0x1687b4&&'data'in _0x1687b4&&Q0(_0x1687b4['data']))(_0x489420)){const {name:_0x4cebc3,contentType:_0x368c8a}=_0x489420,_0x39ef45=M0(_0x489420['data'],_0x4cebc3,_0x368c8a??R0),_0x26f2ef=(({name:_0x12c69a})=>_0x12c69a?[_0x12c69a]:[])({'name':_0x4cebc3,'contentType':_0x368c8a});_0x21c5bb['push']([_0x300e21,_0x39ef45,..._0x26f2ef]);}else{if((_0x1c157b=>!!_0x1c157b&&'object'==typeof _0x1c157b&&!Array['isArray'](_0x1c157b))(_0x489420)){for(const [_0x463ded,_0x2ddea8]of Object['entries'](_0x489420))void 0x0!==_0x2ddea8&&_0x21c5bb['push']([_0x300e21+'['+_0x463ded+']',String(_0x2ddea8)]);}else(_0x2fd9ef=>'string'==typeof _0x2fd9ef||'number'==typeof _0x2fd9ef||void 0x0===_0x2fd9ef)(_0x489420)&&_0x489420&&_0x21c5bb['push']([_0x300e21,_0x489420['toString']()]);}}}function U0(_0x120108){const _0x49236e=new FormData(),_0x11e18f=function(_0x4edf23){const _0x2948ed=[];for(const [_0x1a04e7,_0x22537a]of Object['entries'](_0x4edf23))j0(_0x2948ed,_0x1a04e7,_0x22537a);return _0x2948ed;}(_0x120108);for(const _0xe49c15 of _0x11e18f){const [_0x360c68,_0x3eed77,..._0x5b4e10]=_0xe49c15;_0x49236e['append'](_0x360c68,_0x3eed77,..._0x5b4e10);}return _0x49236e;}var V0=class UploadError extends w0{['code'];request;['response'];['headers'];constructor(_0x3ed847,_0x143b7b,_0x529da9,_0x4acd5d,_0x148bbc){super(),this['name']='UploadError',this['message']=_0x3ed847,this['code']=_0x143b7b,this['request']=_0x529da9,this['response']=_0x4acd5d,this['headers']=_0x148bbc,Object['setPrototypeOf'](this,UploadError['prototype']);}};const B0=(_0x3ac32e,_0x1151e7,_0x54e11b)=>{const _0x7739bd=new URL(_0x3ac32e);return _0x7739bd['pathname']=(_0x7739bd['pathname']+_0x1151e7)['replace']('//','/'),_0x54e11b&&(_0x7739bd['search']=(_0x38f883=>{const _0x3fa280=new URLSearchParams();for(const [_0x2a4d32,_0xc27d4f]of Object['entries'](_0x38f883))_0xc27d4f&&'object'==typeof _0xc27d4f&&!Array['isArray'](_0xc27d4f)?Object['entries'](_0xc27d4f)['filter'](_0x1a284d=>_0x1a284d[0x1]??!0x1)['forEach'](_0x522d4d=>_0x3fa280['set'](_0x2a4d32+'['+_0x522d4d[0x0]+']',String(_0x522d4d[0x1]))):Array['isArray'](_0xc27d4f)?_0xc27d4f['forEach'](_0x336449=>{_0x3fa280['append'](_0x2a4d32+'[]',_0x336449);}):'string'==typeof _0xc27d4f&&_0xc27d4f?_0x3fa280['set'](_0x2a4d32,_0xc27d4f):'number'==typeof _0xc27d4f&&_0x3fa280['set'](_0x2a4d32,_0xc27d4f['toString']());return _0x3fa280['toString']();})(_0x54e11b)),_0x7739bd['toString']();};function H0(_0x26e7a5){return function({libraryName:_0x1151ad,libraryVersion:_0x52d48e,userAgent:_0x341caa,publicKey:_0x9b4b98='',integration:_0x4e6be8=''}){const _0x4388f7='JavaScript';return'string'==typeof _0x341caa?_0x341caa:'function'==typeof _0x341caa?_0x341caa({'publicKey':_0x9b4b98,'libraryName':_0x1151ad,'libraryVersion':_0x52d48e,'languageName':_0x4388f7,'integration':_0x4e6be8}):[_0x1151ad,_0x52d48e,_0x9b4b98]['filter'](Boolean)['join']('/')+'\x20('+[_0x4388f7,_0x4e6be8]['filter'](Boolean)['join'](';\x20')+')';}({'libraryName':'UploadcareUploadClient','libraryVersion':'6.14.3',..._0x26e7a5});}function F0(_0x365c0c,_0x5676ba){const {retryThrottledRequestMaxTimes:_0x3603c8,retryNetworkErrorMaxTimes:_0x2f6e26}=_0x5676ba;return O0(({attempt:_0xec3497,retry:_0x3c39eb})=>_0x365c0c()['catch'](_0x7e5e2a=>{if('response'in _0x7e5e2a&&'RequestThrottledError'===_0x7e5e2a?.['code']&&_0xec3497<_0x3603c8)return _0x3c39eb(function(_0x999565){const {headers:_0x107e5c}=_0x999565||{};if(!_0x107e5c||'string'!=typeof _0x107e5c['retry-after'])return 0x3a98;const _0x31722a=parseInt(_0x107e5c['retry-after'],0xa);return Number['isFinite'](_0x31722a)?0x3e8*_0x31722a:0x3a98;}(_0x7e5e2a));if(_0x7e5e2a instanceof b0&&_0xec3497<_0x2f6e26)return _0x3c39eb(0x3e8*(_0xec3497+0x1));throw _0x7e5e2a;}));}const Z0=_0x1476c5=>{let _0x5b74fb='';return(L0(_0x1476c5)||$0(_0x1476c5)||D0(_0x1476c5))&&(_0x5b74fb=_0x1476c5['type']),_0x5b74fb||R0;},G0=_0x17a562=>{let _0x313da1='';return $0(_0x17a562)&&_0x17a562['name']?_0x313da1=_0x17a562['name']:L0(_0x17a562)?_0x313da1='':D0(_0x17a562)&&_0x17a562['name']&&(_0x313da1=_0x17a562['name']),_0x313da1||P0;};function X0(_0x5ad04a){return void 0x0===_0x5ad04a||'auto'===_0x5ad04a?'auto':_0x5ad04a?'1':'0';}var q0,W0;!function(_0x237d39){_0x237d39['Token']='token',_0x237d39['FileInfo']='file_info';}(q0||(q0={})),function(_0x12551d){_0x12551d['Unknown']='unknown',_0x12551d['Waiting']='waiting',_0x12551d['Progress']='progress',_0x12551d['Error']='error',_0x12551d['Success']='success';}(W0||(W0={}));function z0(_0x357837,{publicKey:_0x11c914,baseURL:_0x4fa3d2=T0,signal:_0x584c50,integration:_0x83bb3,userAgent:_0x1389a5,retryThrottledRequestMaxTimes:_0x3f2bf7=A0,retryNetworkErrorMaxTimes:_0x51b587=S0}={}){return F0(()=>N0({'method':'GET','headers':_0x11c914?{'X-UC-User-Agent':H0({'publicKey':_0x11c914,'integration':_0x83bb3,'userAgent':_0x1389a5})}:void 0x0,'url':B0(_0x4fa3d2,'/from_url/status/',{'jsonerrors':0x1,'token':_0x357837}),'signal':_0x584c50})['then'](({data:_0x5c60dc,headers:_0x19ac00,request:_0x4dbb61})=>{const _0x295920=p0(JSON['parse'](_0x5c60dc));if('error'in _0x295920&&!(_0x2c5cc0=>'status'in _0x2c5cc0&&_0x2c5cc0['status']===W0['Error'])(_0x295920))throw new V0(_0x295920['error']['content'],_0x295920['error']['errorCode'],_0x4dbb61,_0x295920,_0x19ac00);return _0x295920;}),{'retryNetworkErrorMaxTimes':_0x51b587,'retryThrottledRequestMaxTimes':_0x3f2bf7});}function Y0(_0x350aa7,{publicKey:_0x53bb73,baseURL:_0x2fa59e=T0,signal:_0x8bcc5a,source:_0x554f27,integration:_0x528148,userAgent:_0x1c376d,retryThrottledRequestMaxTimes:_0x12f7c9=A0,retryNetworkErrorMaxTimes:_0x2469e9=S0}){return F0(()=>N0({'method':'GET','headers':{'X-UC-User-Agent':H0({'publicKey':_0x53bb73,'integration':_0x528148,'userAgent':_0x1c376d})},'url':B0(_0x2fa59e,'/info/',{'jsonerrors':0x1,'pub_key':_0x53bb73,'file_id':_0x350aa7,'source':_0x554f27}),'signal':_0x8bcc5a})['then'](({data:_0x448874,headers:_0x2f3550,request:_0x1b7a1d})=>{const _0x28cf86=p0(JSON['parse'](_0x448874));if('error'in _0x28cf86)throw new V0(_0x28cf86['error']['content'],_0x28cf86['error']['errorCode'],_0x1b7a1d,_0x28cf86,_0x2f3550);return _0x28cf86;}),{'retryThrottledRequestMaxTimes':_0x12f7c9,'retryNetworkErrorMaxTimes':_0x2469e9});}function K0(_0x14c5cf,{publicKey:_0xcbfc5,baseURL:_0x3d78d1,source:_0x42f851,integration:_0x5252e1,userAgent:_0x2fba52,retryThrottledRequestMaxTimes:_0x40d59d,retryNetworkErrorMaxTimes:_0xb047ac,signal:_0x1bf606,onProgress:_0x19c33e}){return _0({'check':_0x463858=>Y0(_0x14c5cf,{'publicKey':_0xcbfc5,'baseURL':_0x3d78d1,'signal':_0x463858,'source':_0x42f851,'integration':_0x5252e1,'userAgent':_0x2fba52,'retryThrottledRequestMaxTimes':_0x40d59d,'retryNetworkErrorMaxTimes':_0xb047ac})['then'](_0xd405ba=>_0xd405ba['isReady']?_0xd405ba:(_0x19c33e&&_0x19c33e({'isComputable':!0x0,'value':0x1}),!0x1)),'signal':_0x1bf606});}var J0=class{['uuid'];['name'];['size'];isStored;['isImage'];['mimeType'];['cdnUrl'];['s3Url'];['originalFilename'];['imageInfo'];['videoInfo'];contentInfo;metadata;s3Bucket;defaultEffects=null;constructor(_0x31a6b2,{baseCDN:_0x823d37=E0,fileName:_0x1f4e98}={}){const {uuid:_0x45d53f,s3Bucket:_0x59f0f3}=_0x31a6b2,_0x119905=B0(_0x823d37,_0x45d53f+'/'),_0x2690c6=_0x59f0f3?B0('https://'+_0x59f0f3+'.s3.amazonaws.com/',_0x45d53f+'/'+_0x31a6b2['filename']):null;this['uuid']=_0x45d53f,this['name']=_0x1f4e98||_0x31a6b2['filename'],this['size']=_0x31a6b2['size'],this['isStored']=_0x31a6b2['isStored'],this['isImage']=_0x31a6b2['isImage'],this['mimeType']=_0x31a6b2['mimeType'],this['cdnUrl']=_0x119905,this['originalFilename']=_0x31a6b2['originalFilename'],this['imageInfo']=_0x31a6b2['imageInfo'],this['videoInfo']=_0x31a6b2['videoInfo'],this['contentInfo']=_0x31a6b2['contentInfo'],this['metadata']=_0x31a6b2['metadata']||null,this['s3Bucket']=_0x59f0f3||null,this['s3Url']=_0x2690c6,function(_0x39d500){return'defaultEffects'in _0x39d500;}(_0x31a6b2)&&(this['defaultEffects']=_0x31a6b2['defaultEffects']);}};const t1=(_0x43396d,{publicKey:_0x426ae8,fileName:_0x3e129b,baseURL:_0x198797,secureSignature:_0x4599d9,secureExpire:_0xf1d044,store:_0x4a6155,contentType:_0x5c8e0f,signal:_0x33be1a,onProgress:_0x521be7,source:_0x44d0f6,integration:_0x4208c8,userAgent:_0x148cd2,retryThrottledRequestMaxTimes:_0x365cb8,retryNetworkErrorMaxTimes:_0xb489b9,baseCDN:_0x327c41,metadata:_0x48cae2})=>function(_0x46af92,{publicKey:_0x281b5c,fileName:_0x7c8aa9,contentType:_0xc8b964,baseURL:_0x2ba224=T0,secureSignature:_0x483641,secureExpire:_0xe39c39,store:_0x1632d2,signal:_0x2c1b36,onProgress:_0x101f44,source:_0x9ae942='local',integration:_0x11ec25,userAgent:_0x22e1af,retryThrottledRequestMaxTimes:_0x499e8d=A0,retryNetworkErrorMaxTimes:_0x538223=S0,metadata:_0x47f0f9}){return F0(()=>N0({'method':'POST','url':B0(_0x2ba224,'/base/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':H0({'publicKey':_0x281b5c,'integration':_0x11ec25,'userAgent':_0x22e1af})},'data':U0({'file':{'data':_0x46af92,'name':_0x7c8aa9||G0(_0x46af92),'contentType':_0xc8b964||Z0(_0x46af92)},'UPLOADCARE_PUB_KEY':_0x281b5c,'UPLOADCARE_STORE':X0(_0x1632d2),'signature':_0x483641,'expire':_0xe39c39,'source':_0x9ae942,'metadata':_0x47f0f9}),'signal':_0x2c1b36,'onProgress':_0x101f44})['then'](({data:_0x5def3d,headers:_0x39db87,request:_0x4b2941})=>{const _0x3a439e=p0(JSON['parse'](_0x5def3d));if('error'in _0x3a439e)throw new V0(_0x3a439e['error']['content'],_0x3a439e['error']['errorCode'],_0x4b2941,_0x3a439e,_0x39db87);return _0x3a439e;}),{'retryNetworkErrorMaxTimes':_0x538223,'retryThrottledRequestMaxTimes':_0x499e8d});}(_0x43396d,{'publicKey':_0x426ae8,'fileName':_0x3e129b,'contentType':_0x5c8e0f,'baseURL':_0x198797,'secureSignature':_0x4599d9,'secureExpire':_0xf1d044,'store':_0x4a6155,'signal':_0x33be1a,'onProgress':_0x521be7,'source':_0x44d0f6,'integration':_0x4208c8,'userAgent':_0x148cd2,'retryThrottledRequestMaxTimes':_0x365cb8,'retryNetworkErrorMaxTimes':_0xb489b9,'metadata':_0x48cae2})['then'](({file:_0x1f6320})=>K0(_0x1f6320,{'publicKey':_0x426ae8,'baseURL':_0x198797,'source':_0x44d0f6,'integration':_0x4208c8,'userAgent':_0x148cd2,'retryThrottledRequestMaxTimes':_0x365cb8,'retryNetworkErrorMaxTimes':_0xb489b9,'onProgress':_0x521be7,'signal':_0x33be1a}))['then'](_0x99f6f=>new J0(_0x99f6f,{'baseCDN':_0x327c41})),e1=(_0xae3e0f,{signal:_0x103098}={})=>{let _0x1438a3=null,_0x3811a4=null;const _0x2756be=_0xae3e0f['map'](()=>new AbortController());return y0(_0x103098,()=>{_0x2756be['forEach'](_0x519903=>_0x519903['abort']());}),Promise['all'](_0xae3e0f['map']((_0x14dc8d,_0x4963b2)=>{const _0x15a52d=(_0x20b9e9=>()=>{_0x3811a4=_0x20b9e9,_0x2756be['forEach']((_0x42d1d5,_0x183919)=>_0x183919!==_0x20b9e9&&_0x42d1d5['abort']());})(_0x4963b2);return Promise['resolve']()['then'](()=>_0x14dc8d({'stopRace':_0x15a52d,'signal':_0x2756be[_0x4963b2]['signal']}))['then'](_0x5c577b=>(_0x15a52d(),_0x5c577b))['catch'](_0x4813bb=>(_0x1438a3=_0x4813bb,null));}))['then'](_0x5ce66b=>{if(null===_0x3811a4)throw _0x1438a3;return _0x5ce66b[_0x3811a4];});};var i1=window['WebSocket'],s1=class{events=Object['create']({});emit(_0x37ba25,_0x5456f9){this['events'][_0x37ba25]?.['forEach'](_0x450b78=>_0x450b78(_0x5456f9));}['on'](_0x586e5a,_0x44d66c){this['events'][_0x586e5a]=this['events'][_0x586e5a]||[],this['events'][_0x586e5a]['push'](_0x44d66c);}['off'](_0x55bab7,_0x2a7d59){this['events'][_0x55bab7]=_0x2a7d59?this['events'][_0x55bab7]['filter'](_0x536298=>_0x536298!==_0x2a7d59):[];}},n1=class{['key'];disconnectTime;['ws']=void 0x0;['queue']=[];isConnected=!0x1;['subscribers']=0x0;emmitter=new s1();disconnectTimeoutId=null;constructor(_0x151d0c,_0x818f94=0x7530){this['key']=_0x151d0c,this['disconnectTime']=_0x818f94;}connect(){if(this['disconnectTimeoutId']&&clearTimeout(this['disconnectTimeoutId']),!this['isConnected']&&!this['ws']){const _0x30c267='wss://ws.pusherapp.com/app/'+this['key']+'?protocol=5&client=js&version=1.12.2';this['ws']=new i1(_0x30c267),this['ws']['addEventListener']('error',_0x107f28=>{this['emmitter']['emit']('error',new Error(_0x107f28['message']));}),this['emmitter']['on']('connected',()=>{this['isConnected']=!0x0,this['queue']['forEach'](_0x52286c=>this['send'](_0x52286c['event'],_0x52286c['data'])),this['queue']=[];}),this['ws']['addEventListener']('message',_0x388587=>{const _0x493ee0=JSON['parse'](_0x388587['data']['toString']());switch(_0x493ee0['event']){case'pusher:connection_established':this['emmitter']['emit']('connected',void 0x0);break;case'pusher:ping':this['send']('pusher:pong',{});break;case'progress':case'success':case'fail':this['emmitter']['emit'](_0x493ee0['channel'],((_0x59e86e,_0x4ff27f)=>'success'===_0x59e86e?{'status':W0['Success'],..._0x4ff27f}:'progress'===_0x59e86e?{'status':W0['Progress'],..._0x4ff27f}:{'status':W0['Error'],..._0x4ff27f})(_0x493ee0['event'],JSON['parse'](_0x493ee0['data'])));}});}}disconnect(){const _0x103bf9=()=>{this['ws']?.['close'](),this['ws']=void 0x0,this['isConnected']=!0x1;};this['disconnectTime']?this['disconnectTimeoutId']=setTimeout(()=>{_0x103bf9();},this['disconnectTime']):_0x103bf9();}['send'](_0x4f7303,_0x9b6434){const _0x1b4ca3=JSON['stringify']({'event':_0x4f7303,'data':_0x9b6434});this['ws']?.['send'](_0x1b4ca3);}['subscribe'](_0xad42a8,_0x3cee9c){this['subscribers']+=0x1,this['connect']();const _0x5f5030='task-status-'+_0xad42a8,_0x19ac18={'event':'pusher:subscribe','data':{'channel':_0x5f5030}};this['emmitter']['on'](_0x5f5030,_0x3cee9c),this['isConnected']?this['send'](_0x19ac18['event'],_0x19ac18['data']):this['queue']['push'](_0x19ac18);}['unsubscribe'](_0x42f1aa){this['subscribers']-=0x1;const _0x1dab1d='task-status-'+_0x42f1aa,_0x516aa2={'event':'pusher:unsubscribe','data':{'channel':_0x1dab1d}};this['emmitter']['off'](_0x1dab1d),this['isConnected']?this['send'](_0x516aa2['event'],_0x516aa2['data']):this['queue']=this['queue']['filter'](_0x5e9068=>_0x5e9068['data']['channel']!==_0x1dab1d),0x0===this['subscribers']&&this['disconnect']();}['onError'](_0x590db9){return this['emmitter']['on']('error',_0x590db9),()=>this['emmitter']['off']('error',_0x590db9);}};let r1=null;const o1=_0x4f8d74=>(r1||(r1=new n1(_0x4f8d74,'undefined'==typeof window?0x0:0x7530)),r1),a1=(_0x3bab0e,{publicKey:_0x5502f4,fileName:_0xd5e4c0,baseURL:_0x498af,baseCDN:_0x15b088,checkForUrlDuplicates:_0x77546f,saveUrlForRecurrentUploads:_0x422ef4,secureSignature:_0x56d9be,secureExpire:_0x44090b,store:_0x585d39,signal:_0x434cd0,onProgress:_0xfad4ef,source:_0x1e2da3,integration:_0x122179,userAgent:_0x58e292,retryThrottledRequestMaxTimes:_0x2b2c6d,pusherKey:_0xe04b57=C0,metadata:_0x48e335})=>{return Promise['resolve']((_0x40720a=_0xe04b57,void o1(_0x40720a)['connect']()))['then'](()=>function(_0x3eb664,{publicKey:_0x161301,baseURL:_0x23c215=T0,store:_0x58ac74,fileName:_0x7874b8,checkForUrlDuplicates:_0x43cbf1,saveUrlForRecurrentUploads:_0x3b0b0f,secureSignature:_0xf62546,secureExpire:_0x43c39c,source:_0xd2bdc3='url',signal:_0xcff8e,integration:_0x528bbd,userAgent:_0x3b6335,retryThrottledRequestMaxTimes:_0x48fafa=A0,retryNetworkErrorMaxTimes:_0x3eeaec=S0,metadata:_0x2c5eb6}){return F0(()=>N0({'method':'POST','headers':{'X-UC-User-Agent':H0({'publicKey':_0x161301,'integration':_0x528bbd,'userAgent':_0x3b6335})},'url':B0(_0x23c215,'/from_url/',{'jsonerrors':0x1,'pub_key':_0x161301,'source_url':_0x3eb664,'store':X0(_0x58ac74),'filename':_0x7874b8,'check_URL_duplicates':_0x43cbf1?0x1:void 0x0,'save_URL_duplicates':_0x3b0b0f?0x1:void 0x0,'signature':_0xf62546,'expire':_0x43c39c,'source':_0xd2bdc3,'metadata':_0x2c5eb6}),'signal':_0xcff8e})['then'](({data:_0x16113c,headers:_0x303100,request:_0x57d7f1})=>{const _0x38fd84=p0(JSON['parse'](_0x16113c));if('error'in _0x38fd84)throw new V0(_0x38fd84['error']['content'],_0x38fd84['error']['errorCode'],_0x57d7f1,_0x38fd84,_0x303100);return _0x38fd84;}),{'retryNetworkErrorMaxTimes':_0x3eeaec,'retryThrottledRequestMaxTimes':_0x48fafa});}(_0x3bab0e,{'publicKey':_0x5502f4,'fileName':_0xd5e4c0,'baseURL':_0x498af,'checkForUrlDuplicates':_0x77546f,'saveUrlForRecurrentUploads':_0x422ef4,'secureSignature':_0x56d9be,'secureExpire':_0x44090b,'store':_0x585d39,'signal':_0x434cd0,'source':_0x1e2da3,'integration':_0x122179,'userAgent':_0x58e292,'retryThrottledRequestMaxTimes':_0x2b2c6d,'metadata':_0x48e335}))['catch'](_0x13bd24=>(o1(_0xe04b57)?.['disconnect'](),Promise['reject'](_0x13bd24)))['then'](_0x3d7075=>_0x3d7075['type']===q0['FileInfo']?_0x3d7075:e1([({signal:_0x303656})=>function({token:_0x16406e,publicKey:_0x557fc6,baseURL:_0x4a6754,integration:_0x3e7db2,userAgent:_0x30ed68,retryThrottledRequestMaxTimes:_0x4d69d9,retryNetworkErrorMaxTimes:_0x51d8ac,onProgress:_0x411c16,signal:_0x1caab3}){return _0({'check':_0x2a522=>z0(_0x16406e,{'publicKey':_0x557fc6,'baseURL':_0x4a6754,'integration':_0x3e7db2,'userAgent':_0x30ed68,'retryThrottledRequestMaxTimes':_0x4d69d9,'retryNetworkErrorMaxTimes':_0x51d8ac,'signal':_0x2a522})['then'](_0x57eea4=>{switch(_0x57eea4['status']){case W0['Error']:return new V0(_0x57eea4['error'],_0x57eea4['errorCode']);case W0['Waiting']:return!0x1;case W0['Unknown']:return new V0('Token\x20\x22'+_0x16406e+'\x22\x20was\x20not\x20found.');case W0['Progress']:return _0x411c16&&('unknown'===_0x57eea4['total']?_0x411c16({'isComputable':!0x1}):_0x411c16({'isComputable':!0x0,'value':_0x57eea4['done']/_0x57eea4['total']})),!0x1;case W0['Success']:return _0x411c16&&_0x411c16({'isComputable':!0x0,'value':_0x57eea4['done']/_0x57eea4['total']}),_0x57eea4;default:throw new Error('Unknown\x20status');}}),'signal':_0x1caab3});}({'token':_0x3d7075['token'],'publicKey':_0x5502f4,'baseURL':_0x498af,'integration':_0x122179,'userAgent':_0x58e292,'retryThrottledRequestMaxTimes':_0x2b2c6d,'onProgress':_0xfad4ef,'signal':_0x303656}),({signal:_0x5a7a71})=>(({token:_0x298978,pusherKey:_0x290737,signal:_0x42079e,onProgress:_0x435983})=>new Promise((_0x596c03,_0x13a42d)=>{const _0x444ca5=o1(_0x290737),_0x4abb14=_0x444ca5['onError'](_0x13a42d),_0x14d2d6=()=>{_0x4abb14(),_0x444ca5['unsubscribe'](_0x298978);};y0(_0x42079e,()=>{_0x14d2d6(),_0x13a42d(new v0('pusher\x20cancelled'));}),_0x444ca5['subscribe'](_0x298978,_0x58b760=>{switch(_0x58b760['status']){case W0['Progress']:_0x435983&&('unknown'===_0x58b760['total']?_0x435983({'isComputable':!0x1}):_0x435983({'isComputable':!0x0,'value':_0x58b760['done']/_0x58b760['total']}));break;case W0['Success']:_0x14d2d6(),_0x435983&&_0x435983({'isComputable':!0x0,'value':_0x58b760['done']/_0x58b760['total']}),_0x596c03(_0x58b760);break;case W0['Error']:_0x14d2d6(),_0x13a42d(new V0(_0x58b760['msg'],_0x58b760['error_code']));}});}))({'token':_0x3d7075['token'],'pusherKey':_0xe04b57,'signal':_0x5a7a71,'onProgress':_0xfad4ef})],{'signal':_0x434cd0}))['then'](_0x23b779=>{if(_0x23b779 instanceof V0)throw _0x23b779;return _0x23b779;})['then'](_0x1233ac=>K0(_0x1233ac['uuid'],{'publicKey':_0x5502f4,'baseURL':_0x498af,'integration':_0x122179,'userAgent':_0x58e292,'retryThrottledRequestMaxTimes':_0x2b2c6d,'onProgress':_0xfad4ef,'signal':_0x434cd0}))['then'](_0x51287e=>new J0(_0x51287e,{'baseCDN':_0x15b088}));var _0x40720a;},c1=new WeakMap(),l1=async _0x29ffcb=>{if($0(_0x29ffcb)||L0(_0x29ffcb))return _0x29ffcb['size'];if(D0(_0x29ffcb))return(await(async _0x83fbe4=>{if(c1['has'](_0x83fbe4))return c1['get'](_0x83fbe4);const _0x4be7b2=await fetch(_0x83fbe4['uri'])['then'](_0x4d87af=>_0x4d87af['blob']());return c1['set'](_0x83fbe4,_0x4be7b2),_0x4be7b2;})(_0x29ffcb))['size'];throw new Error('Unknown\x20file\x20type.\x20Cannot\x20determine\x20file\x20size.');},h1=async(_0x5cd57c,_0x3637f4,_0x7c6297)=>_0x392034=>((_0xba921a,_0x5ce062,_0x145098,_0x1ba3c6)=>{const _0x5460e1=_0x1ba3c6*_0x5ce062,_0x521665=Math['min'](_0x5460e1+_0x1ba3c6,_0x145098);return _0xba921a['slice'](_0x5460e1,_0x521665);})(_0x5cd57c,_0x392034,_0x3637f4,_0x7c6297),u1=(_0xe49405,_0x5e0c95,{publicKey:_0x43cd4c,contentType:_0x41229b,onProgress:_0x52b5fb,signal:_0x59820d,integration:_0x19cd1f,retryThrottledRequestMaxTimes:_0x14109c,retryNetworkErrorMaxTimes:_0x4c5c34})=>function(_0x4c0980,_0x34a35d,{contentType:_0x3c730c,signal:_0x3af4c1,onProgress:_0x2383f1,retryThrottledRequestMaxTimes:_0x26c963=A0,retryNetworkErrorMaxTimes:_0x57eeaa=S0}){return F0(()=>N0({'method':'PUT','url':_0x34a35d,'data':_0x4c0980,'onProgress':_0x2383f1,'signal':_0x3af4c1,'headers':{'Content-Type':_0x3c730c||R0}})['then'](_0x193fe8=>(_0x2383f1&&_0x2383f1({'isComputable':!0x0,'value':0x1}),_0x193fe8))['then'](({status:_0x2cdb11})=>({'code':_0x2cdb11})),{'retryThrottledRequestMaxTimes':_0x26c963,'retryNetworkErrorMaxTimes':_0x57eeaa});}(_0xe49405,_0x5e0c95,{'publicKey':_0x43cd4c,'contentType':_0x41229b,'onProgress':_0x52b5fb,'signal':_0x59820d,'integration':_0x19cd1f,'retryThrottledRequestMaxTimes':_0x14109c,'retryNetworkErrorMaxTimes':_0x4c5c34}),d1=async(_0x19d2f4,{publicKey:_0x18b43a,fileName:_0xf3d569,fileSize:_0x1a8323,baseURL:_0x3c31ab,secureSignature:_0x427cda,secureExpire:_0x5d02fc,store:_0x1276b8,signal:_0x39e8bc,onProgress:_0x35103a,source:_0x38afe2,integration:_0xacaa7e,userAgent:_0xbd0bc7,retryThrottledRequestMaxTimes:_0xb8e90a,retryNetworkErrorMaxTimes:_0x2580fa,contentType:_0x3cb66b,multipartChunkSize:_0x2cee0d=k0,maxConcurrentRequests:_0x138efd=x0,baseCDN:_0x4d0425,metadata:_0x36ea12})=>{const _0x2be865=_0x1a8323??await l1(_0x19d2f4);let _0x29f464;const _0x3c1985=(_0x5e3eb9,_0x501981)=>{if(!_0x35103a)return;_0x29f464||(_0x29f464=Array(_0x5e3eb9)['fill'](0x0));const _0x8b7e22=_0x44314f=>_0x44314f['reduce']((_0xc0e88,_0x1f685f)=>_0xc0e88+_0x1f685f,0x0);return _0xbf3433=>{_0xbf3433['isComputable']&&(_0x29f464[_0x501981]=_0xbf3433['value'],_0x35103a({'isComputable':!0x0,'value':_0x8b7e22(_0x29f464)/_0x5e3eb9}));};};return _0x3cb66b||=Z0(_0x19d2f4),function(_0x1af917,{publicKey:_0x3defd3,contentType:_0x864e3a,fileName:_0x5b78e4,multipartChunkSize:_0x41d126=k0,baseURL:_0x185a6e='',secureSignature:_0x5439e7,secureExpire:_0x10b2c8,store:_0x565299,signal:_0x4e8a0f,source:_0x1cc614='local',integration:_0x22e253,userAgent:_0x1fd969,retryThrottledRequestMaxTimes:_0x5097cd=A0,retryNetworkErrorMaxTimes:_0x100bfe=S0,metadata:_0x399d44}){return F0(()=>N0({'method':'POST','url':B0(_0x185a6e,'/multipart/start/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':H0({'publicKey':_0x3defd3,'integration':_0x22e253,'userAgent':_0x1fd969})},'data':U0({'filename':_0x5b78e4||P0,'size':_0x1af917,'content_type':_0x864e3a||R0,'part_size':_0x41d126,'UPLOADCARE_STORE':X0(_0x565299),'UPLOADCARE_PUB_KEY':_0x3defd3,'signature':_0x5439e7,'expire':_0x10b2c8,'source':_0x1cc614,'metadata':_0x399d44}),'signal':_0x4e8a0f})['then'](({data:_0x5e6caa,headers:_0x584a8c,request:_0x422e03})=>{const _0x44f266=p0(JSON['parse'](_0x5e6caa));if('error'in _0x44f266)throw new V0(_0x44f266['error']['content'],_0x44f266['error']['errorCode'],_0x422e03,_0x44f266,_0x584a8c);return _0x44f266['parts']=Object['keys'](_0x44f266['parts'])['map'](_0x4299fa=>_0x44f266['parts'][Number(_0x4299fa)]),_0x44f266;}),{'retryThrottledRequestMaxTimes':_0x5097cd,'retryNetworkErrorMaxTimes':_0x100bfe});}(_0x2be865,{'publicKey':_0x18b43a,'contentType':_0x3cb66b,'fileName':_0xf3d569||G0(_0x19d2f4),'baseURL':_0x3c31ab,'secureSignature':_0x427cda,'secureExpire':_0x5d02fc,'store':_0x1276b8,'signal':_0x39e8bc,'source':_0x38afe2,'integration':_0xacaa7e,'userAgent':_0xbd0bc7,'retryThrottledRequestMaxTimes':_0xb8e90a,'retryNetworkErrorMaxTimes':_0x2580fa,'metadata':_0x36ea12,'multipartChunkSize':_0x2cee0d})['then'](async({uuid:_0x297dd7,parts:_0x9c6f8a})=>{const _0x5a3852=await h1(_0x19d2f4,_0x2be865,_0x2cee0d);return Promise['all']([_0x297dd7,(_0x1d241f=_0x138efd,_0x1314ec=_0x9c6f8a['map']((_0x35be3b,_0x39bb39)=>()=>u1(_0x5a3852(_0x39bb39),_0x35be3b,{'publicKey':_0x18b43a,'contentType':_0x3cb66b,'onProgress':_0x3c1985(_0x9c6f8a['length'],_0x39bb39),'signal':_0x39e8bc,'integration':_0xacaa7e,'retryThrottledRequestMaxTimes':_0xb8e90a,'retryNetworkErrorMaxTimes':_0x2580fa})),new Promise((_0x37cc1d,_0x574712)=>{const _0x343e86=[];let _0x5957c0=!0x1,_0x5cc551=_0x1314ec['length'];const _0x3c255a=[..._0x1314ec],_0x23f116=()=>{const _0xcdd15b=_0x1314ec['length']-_0x3c255a['length'],_0x2c8d09=_0x3c255a['shift']();_0x2c8d09&&_0x2c8d09()['then'](_0x157947=>{_0x5957c0||(_0x343e86[_0xcdd15b]=_0x157947,_0x5cc551-=0x1,_0x5cc551?_0x23f116():_0x37cc1d(_0x343e86));})['catch'](_0x448793=>{_0x5957c0=!0x0,_0x574712(_0x448793);});};for(let _0x808568=0x0;_0x808568<_0x1d241f;_0x808568++)_0x23f116();}))]);var _0x1d241f,_0x1314ec;})['then'](([_0x34a0eb])=>function(_0x5b9dfd,{publicKey:_0x502c5a,baseURL:_0x2939c2=T0,source:_0x2f5add='local',signal:_0x42c2b2,integration:_0x493fd7,userAgent:_0x23f52a,retryThrottledRequestMaxTimes:_0x2c6b26=A0,retryNetworkErrorMaxTimes:_0x39ef40=S0}){return F0(()=>N0({'method':'POST','url':B0(_0x2939c2,'/multipart/complete/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':H0({'publicKey':_0x502c5a,'integration':_0x493fd7,'userAgent':_0x23f52a})},'data':U0({'uuid':_0x5b9dfd,'UPLOADCARE_PUB_KEY':_0x502c5a,'source':_0x2f5add}),'signal':_0x42c2b2})['then'](({data:_0x39f110,headers:_0x107fc0,request:_0x45e8e2})=>{const _0x20cf0b=p0(JSON['parse'](_0x39f110));if('error'in _0x20cf0b)throw new V0(_0x20cf0b['error']['content'],_0x20cf0b['error']['errorCode'],_0x45e8e2,_0x20cf0b,_0x107fc0);return _0x20cf0b;}),{'retryThrottledRequestMaxTimes':_0x2c6b26,'retryNetworkErrorMaxTimes':_0x39ef40});}(_0x34a0eb,{'publicKey':_0x18b43a,'baseURL':_0x3c31ab,'source':_0x38afe2,'integration':_0xacaa7e,'userAgent':_0xbd0bc7,'retryThrottledRequestMaxTimes':_0xb8e90a,'retryNetworkErrorMaxTimes':_0x2580fa}))['then'](_0x36225d=>_0x36225d['isReady']?_0x36225d:K0(_0x36225d['uuid'],{'publicKey':_0x18b43a,'baseURL':_0x3c31ab,'source':_0x38afe2,'integration':_0xacaa7e,'userAgent':_0xbd0bc7,'retryThrottledRequestMaxTimes':_0xb8e90a,'retryNetworkErrorMaxTimes':_0x2580fa,'onProgress':_0x35103a,'signal':_0x39e8bc}))['then'](_0x2f4ebb=>new J0(_0x2f4ebb,{'baseCDN':_0x4d0425}));};async function f1(_0x19bf81,{publicKey:_0x253b9a,fileName:_0x39f141,baseURL:_0x491928=T0,secureSignature:_0x5ba211,secureExpire:_0x126af6,store:_0x4766ce,signal:_0x39331e,onProgress:_0x23d5f7,source:_0x11c8f4,integration:_0x26c27f,userAgent:_0x2a439a,retryThrottledRequestMaxTimes:_0x2f130b,retryNetworkErrorMaxTimes:_0x3dbab7,contentType:_0x152fa2,multipartMinFileSize:_0x3591d9,multipartChunkSize:_0x557664,maxConcurrentRequests:_0x22c922,baseCDN:_0x5a5a2c=E0,checkForUrlDuplicates:_0x5ee1d0,saveUrlForRecurrentUploads:_0x5bcab3,pusherKey:_0x2bf60d,metadata:_0x435729}){if(Q0(_0x19bf81)){const _0x5c0faf=await l1(_0x19bf81);return((_0x3ee588,_0x35ee49=I0)=>_0x3ee588>=_0x35ee49)(_0x5c0faf,_0x3591d9)?d1(_0x19bf81,{'publicKey':_0x253b9a,'contentType':_0x152fa2,'multipartChunkSize':_0x557664,'fileSize':_0x5c0faf,'fileName':_0x39f141,'baseURL':_0x491928,'secureSignature':_0x5ba211,'secureExpire':_0x126af6,'store':_0x4766ce,'signal':_0x39331e,'onProgress':_0x23d5f7,'source':_0x11c8f4,'integration':_0x26c27f,'userAgent':_0x2a439a,'maxConcurrentRequests':_0x22c922,'retryThrottledRequestMaxTimes':_0x2f130b,'retryNetworkErrorMaxTimes':_0x3dbab7,'baseCDN':_0x5a5a2c,'metadata':_0x435729}):t1(_0x19bf81,{'publicKey':_0x253b9a,'fileName':_0x39f141,'contentType':_0x152fa2,'baseURL':_0x491928,'secureSignature':_0x5ba211,'secureExpire':_0x126af6,'store':_0x4766ce,'signal':_0x39331e,'onProgress':_0x23d5f7,'source':_0x11c8f4,'integration':_0x26c27f,'userAgent':_0x2a439a,'retryThrottledRequestMaxTimes':_0x2f130b,'retryNetworkErrorMaxTimes':_0x3dbab7,'baseCDN':_0x5a5a2c,'metadata':_0x435729});}if((_0x613dc2=>{const _0x7af881=new RegExp('^(?:\x5cw+:)?\x5c/\x5c/([^\x5cs\x5c.]+\x5c.\x5cS{2}|localhost[\x5c:?\x5cd]*)\x5cS*$');return!Q0(_0x613dc2)&&_0x7af881['test'](_0x613dc2);})(_0x19bf81))return a1(_0x19bf81,{'publicKey':_0x253b9a,'fileName':_0x39f141,'baseURL':_0x491928,'baseCDN':_0x5a5a2c,'checkForUrlDuplicates':_0x5ee1d0,'saveUrlForRecurrentUploads':_0x5bcab3,'secureSignature':_0x5ba211,'secureExpire':_0x126af6,'store':_0x4766ce,'signal':_0x39331e,'onProgress':_0x23d5f7,'source':_0x11c8f4,'integration':_0x26c27f,'userAgent':_0x2a439a,'retryThrottledRequestMaxTimes':_0x2f130b,'retryNetworkErrorMaxTimes':_0x3dbab7,'pusherKey':_0x2bf60d,'metadata':_0x435729});if((_0x3efd02=>{const _0x2c63d=new RegExp('[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}');return!Q0(_0x3efd02)&&_0x2c63d['test'](_0x3efd02);})(_0x19bf81))return((_0x2acb1d,{publicKey:_0x36e97b,fileName:_0xc3b610,baseURL:_0x5bec07,signal:_0x5c42c7,onProgress:_0x5960d4,source:_0x3ee404,integration:_0x4252d4,userAgent:_0x2481e2,retryThrottledRequestMaxTimes:_0x36baff,retryNetworkErrorMaxTimes:_0x5e1c1e,baseCDN:_0x2cf420})=>Y0(_0x2acb1d,{'publicKey':_0x36e97b,'baseURL':_0x5bec07,'signal':_0x5c42c7,'source':_0x3ee404,'integration':_0x4252d4,'userAgent':_0x2481e2,'retryThrottledRequestMaxTimes':_0x36baff,'retryNetworkErrorMaxTimes':_0x5e1c1e})['then'](_0x532807=>new J0(_0x532807,{'baseCDN':_0x2cf420,'fileName':_0xc3b610}))['then'](_0x16a695=>(_0x5960d4&&_0x5960d4({'isComputable':!0x0,'value':0x1}),_0x16a695)))(_0x19bf81,{'publicKey':_0x253b9a,'fileName':_0x39f141,'baseURL':_0x491928,'signal':_0x39331e,'onProgress':_0x23d5f7,'source':_0x11c8f4,'integration':_0x26c27f,'userAgent':_0x2a439a,'retryThrottledRequestMaxTimes':_0x2f130b,'retryNetworkErrorMaxTimes':_0x3dbab7,'baseCDN':_0x5a5a2c});throw new TypeError('File\x20uploading\x20from\x20\x22'+_0x19bf81+'\x22\x20is\x20not\x20supported');}var m1=class{static['upload']({file:_0x321e0f,..._0x23b841}){return f1(_0x321e0f,_0x23b841);}static getInfo(_0x35c320,_0x5e8f0d){return Y0(_0x35c320,_0x5e8f0d);}},p1=class extends _0x11fe30{static get requires(){return[_0x5284ea,_0x95e42b,_0x1ec573,O1];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async afterInit(){const _0xa01643=this['editor'];if(!_0xa01643['config']['get']('uploadcare'))return;_0xa01643['plugins']['get'](_0x1ec573)['createUploadAdapter']=_0x3b5233=>new g1(_0x3b5233,_0xa01643),_0xa01643['plugins']['get'](_0x5284ea)['on']('uploadComplete',(_0x4f3992,{imageElement:_0x40a6c7,data:_0x32645f})=>{_0xa01643['model']['change'](_0x35d977=>{_0x35d977['setAttribute']('uploadcareImageId',_0x32645f['uploadcareImageId'],_0x40a6c7);});});}},g1=class{['loader'];editor;controller;constructor(_0x155a77,_0xa66f10){this['loader']=_0x155a77,this['editor']=_0xa66f10,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x35445a=await this['loader']['file'];return m1['upload']({'file':_0x35445a,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x243189=>{_0x243189&&_0x243189['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x243189['value']);}})['then'](async _0x323cf8=>{const {imageFallbackUrl:_0x3910a0,imageSources:_0x5e31d6}=s0(_0x323cf8['cdnUrl'],_0x323cf8['imageInfo']['width']);return{'uploadcareImageId':_0x323cf8['uuid'],'default':_0x3910a0,'sources':_0x5e31d6};})['catch'](()=>{const _0x5d0c33=t('Cannot\x20upload\x20file:')+('\x20'+_0x35445a['name']+'.');return Promise['reject'](_0x5d0c33);});}abort(){this['controller']['abort']();}},O1=class extends _0x11fe30{_configElement=null;_ctxElement=null;static get['pluginName'](){return'UploadcareEditing';}static get requires(){return[_0x1dca4a,p1,_0x3e3ae5];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}ucContextId;get configElement(){return this['_configElement'];}get ctxElement(){return this['_ctxElement'];}constructor(_0x30ec9d){super(_0x30ec9d),this['ucContextId']=_0xea66bb();}init(){const _0x2a82e2=this['editor'];_0x2a82e2['commands']['add']('uploadcare',new h0(_0x2a82e2));}afterInit(){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x20be76=_0x250afe['document']['querySelector']('input[uploadcare-file-input]');_0x20be76&&_0x20be76['remove']();}),async function(_0x273fdf){const _0x469721='hgP68pqc7OBJx9u3zrHatYUXf04TdVkMFmwCs5SDAvj21iWQGeZKLyRlENnoIb',_0x3a48ec=0x791d0,_0x51abae=window['Date']['now'](),_0x423c61=_0x273fdf['editor'],_0x3adf96=new window['Promise'](_0x36387d=>{_0x423c61['once']('ready',_0x36387d);}),_0x5d4345={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x1654c8=_0x423c61['config']['get']('licenseKey');async function _0x11929f(){let _0xc2a1ba,_0x22aaae=null,_0x2acbb2=null;try{return'GPL'==_0x1654c8?'NotAllowed':(_0xc2a1ba=_0xcd0368(),_0xc2a1ba?(_0xc2a1ba['usageEndpoint']&&(_0x2acbb2=_0x2f54bd(_0xc2a1ba['usageEndpoint'],_0xc2a1ba['jti'])),await _0x118cfa()?_0xdd9144()?_0x39e722()?'Expired':_0x536ad9()?('evaluation'==_0xc2a1ba['licenseType']&&(_0x22aaae=_0x6c6837('EvaluationLimit')),await _0x357a37()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x39e722(){const _0x2f4287=['evaluation','trial']['includes'](_0xc2a1ba['licenseType'])?_0x51abae/0x3e8:0xe10*_0x3a48ec;return _0xc2a1ba['exp']<_0x2f4287;}function _0xdd9144(){const _0x474440=_0xc2a1ba['features'];return!!_0x474440&&(!!_0x474440['includes']('*')||!!_0x474440['includes']('UPLC'));}function _0x536ad9(){const _0x4fc91e=_0xc2a1ba['licensedHosts'];if(!_0x4fc91e||0x0==_0x4fc91e['length'])return!0x0;const {hostname:_0x54c3f1}=new URL(window['location']['href']);if(_0x4fc91e['includes'](_0x54c3f1))return!0x0;const _0x429f68=_0x54c3f1['split']('.');return _0x4fc91e['filter'](_0x298844=>_0x298844['includes']('*'))['map'](_0x494a9e=>_0x494a9e['split']('.'))['filter'](_0x50b0cf=>_0x50b0cf['length']<=_0x429f68['length'])['map'](_0x27f5a9=>Array(_0x429f68['length']-_0x27f5a9['length'])['fill']('*'===_0x27f5a9[0x0]?'*':'')['concat'](_0x27f5a9))['some'](_0x5b86c2=>_0x429f68['every']((_0x31d9ab,_0x2f2e29)=>_0x5b86c2[_0x2f2e29]===_0x31d9ab||'*'===_0x5b86c2[_0x2f2e29]));}function _0x357a37(){return _0x22aaae&&_0x2acbb2?new window['Promise']((_0x30ba2b,_0x4e3721)=>{_0x22aaae['then'](_0x30ba2b,_0x4e3721),_0x2acbb2['then'](_0x460924=>{'Valid'!=_0x460924&&_0x30ba2b(_0x460924);},_0x4e3721);}):_0x22aaae||_0x2acbb2||'Valid';}}function _0x2f54bd(_0x481d6a,_0x2856b9){return new window['Promise'](_0xd85ca=>{if(_0x5b6304())return _0xd85ca('Valid');_0x130836(),_0x423c61['decorate']('_sendUsageRequest');let _0x495ee0=!0x1;const _0x3ba136=_0xea66bb();function _0x5133a0(_0x4173eb){return!!_0x4173eb&&('object'==typeof _0x4173eb||'function'==typeof _0x4173eb)&&'function'==typeof _0x4173eb['then']&&'function'==typeof _0x4173eb['catch'];}function _0x3bc828(_0x1615b9){_0x5102e1(_0x1615b9)['then'](_0x5ae3ac=>_0x5ae3ac&&'ok'==_0x5ae3ac['status']?_0x2e48a0(_0x1609ac(_0x3ba136+_0x2856b9))!=_0x5ae3ac['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0xf28a56=>(_0x3d0865(),_0xf28a56),()=>{const _0x49496e=_0x46c6d8();return null==_0x49496e?(_0x3d0865(),'Valid'):_0x51abae-_0x49496e>0x240c8400?'UsageLimit':'Valid';})['then'](_0xd85ca)['catch'](()=>{_0xd85ca('UsageLimit');});const _0x3dcf4b=0x36ee80;function _0x3d0865(){const _0x100e80='llct-'+_0x2e48a0(_0x1609ac(_0x481d6a)),_0x44cd91=_0x4e2db5(_0x2e48a0(window['Math']['ceil'](_0x51abae/_0x3dcf4b)));window['localStorage']['setItem'](_0x100e80,_0x44cd91);}function _0x46c6d8(){const _0x59d21e='llct-'+_0x2e48a0(_0x1609ac(_0x481d6a)),_0x1389bf=window['localStorage']['getItem'](_0x59d21e);return _0x1389bf?window['parseInt'](_0x4e2db5(_0x1389bf),0x10)*_0x3dcf4b:null;}function _0x5102e1(_0x46e14a){return new window['Promise']((_0x59d9d6,_0x4765a6)=>{_0x46e14a['then'](_0x59d9d6,_0x4765a6),window['setTimeout'](_0x4765a6,0x1d4c0);});}}_0x423c61['on']('_sendUsageRequest',(_0x52bc7f,_0x55fdaf)=>{if(_0x55fdaf[0x0]!=_0x481d6a)return _0xd85ca('UsageLimit');_0x55fdaf[0x1]={..._0x55fdaf[0x1],'requestId':_0x3ba136};},{'priority':'high'}),_0x423c61['on']('_sendUsageRequest',_0x1997b8=>{_0x5133a0(_0x1997b8['return'])&&(_0x495ee0=!0x0,_0x3bc828(_0x1997b8['return']));},{'priority':'low'}),_0x3adf96['then'](()=>{_0x495ee0||_0xd85ca('UsageLimit');});});function _0x5b6304(){return'auto'==_0x423c61['editing']['view']['_overlayModeHint'];}function _0x130836(){_0x423c61['editing']['view']['_overlayModeHint']='auto';}}function _0x6c6837(_0x94683e){const _0x20a853=[new window['Promise'](_0xc9e89d=>setTimeout(_0xc9e89d,0x93ecc)),_0x3adf96['then'](()=>new window['Promise'](_0x308278=>{let _0x4c9254=0x0;_0x423c61['model']['on']('applyOperation',(_0x52d49f,_0x510336)=>{_0x510336[0x0]['isDocumentOperation']&&_0x4c9254++,0x5e8==_0x4c9254&&(_0x308278(),_0x52d49f['off']());});}))];return window['Promise']['race'](_0x20a853)['then'](()=>_0x94683e);}async function _0x3f90e4(){await _0x3adf96,_0x423c61['model']['change']=_0xd5cac,_0x423c61['model']['enqueueChange']=_0xd5cac,_0x423c61['enableReadOnlyMode']('model');}function _0x5395b5(_0x492f7c){const _0x1744ef=_0x4d868c();_0x423c61[_0x1744ef]='uploadcareLicenseKey'+_0x492f7c,'Valid'!=_0x492f7c&&_0x3f90e4();}function _0x4d868c(){const _0x2a2d0d=window['String'](window['performance']['now']())['replace']('.','');let _0x59ebc4='h';for(let _0xbd2ecf=0x0;_0xbd2ecf<_0x2a2d0d['length'];_0xbd2ecf+=0x2){let _0x4226c8=window['parseInt'](_0x2a2d0d['substring'](_0xbd2ecf,_0xbd2ecf+0x2));_0x4226c8>=0x3e&&(_0x4226c8-=0x3e),_0x59ebc4+=_0x469721[_0x4226c8];}return _0x59ebc4;}function _0xcd0368(){const _0x5e842e=_0x1654c8['split']('.');if(0x3!=_0x5e842e['length'])return null;return _0x75471d(_0x5e842e[0x1]);function _0x75471d(_0x1f0ad3){const _0x4db4e4=_0x314876(_0x1f0ad3);return _0x4db4e4&&_0x720c02()?_0x4db4e4:null;function _0x720c02(){const _0x39961d=_0x4db4e4['jti'],_0x1c0f1d=window['parseInt'](_0x39961d['substring'](_0x39961d['length']-0x8),0x10),_0x461fea={..._0x4db4e4,'jti':_0x39961d['substring'](0x0,_0x39961d['length']-0x8)};return delete _0x461fea['vc'],_0x1609ac(_0x461fea)==_0x1c0f1d;}}}async function _0x118cfa(){let _0x4fe117=!0x0;try{const [_0x43dc77,_0x3ff710,_0x4e50f0]=_0x1654c8['split']('.');return _0x594525(_0x43dc77),await _0x2926aa(_0x43dc77,_0x3ff710,_0x4e50f0),_0x4fe117;}catch{return!0x1;}function _0x594525(_0x70c0ac){const _0x5220d0=_0x314876(_0x70c0ac);_0x5220d0&&'ES256'==_0x5220d0['alg']||(_0x4fe117=!0x1);}async function _0x2926aa(_0x6b4eef,_0x18eb75,_0x291af8){const _0x409625=window['Uint8Array']['from'](_0x38b14f(_0x291af8),_0x42030d=>_0x42030d['charCodeAt'](0x0)),_0x5dc1bc=new window['TextEncoder']()['encode'](_0x6b4eef+'.'+_0x18eb75),_0x57d73c=window['crypto']['subtle'];if(!_0x57d73c)return;const _0x43e19f=await _0x57d73c['importKey']('jwk',_0x5d4345,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x57d73c['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x43e19f,_0x409625,_0x5dc1bc)||(_0x4fe117=!0x1);}}function _0x314876(_0x213498){return _0x213498['startsWith']('ey')?JSON['parse'](_0x38b14f(_0x213498)):null;}function _0x38b14f(_0x37d85f){return window['atob'](_0x37d85f['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1609ac(_0x41a1b0){let _0x5040c3=0x1505;function _0x1deab1(_0xc6cb58){for(let _0x214c9c=0x0;_0x214c9c<_0xc6cb58['length'];_0x214c9c++){const _0x234bea=_0xc6cb58['charCodeAt'](_0x214c9c);_0x5040c3=(_0x5040c3<<0x5)+_0x5040c3+_0x234bea,_0x5040c3&=_0x5040c3;}}function _0x24fb5c(_0x2496e2){Array['isArray'](_0x2496e2)?_0x2496e2['forEach'](_0x24fb5c):_0x2496e2&&'object'==typeof _0x2496e2?Object['entries'](_0x2496e2)['sort']()['forEach'](([_0x44cd26,_0x34be29])=>{_0x1deab1(_0x44cd26),_0x24fb5c(_0x34be29);}):_0x1deab1(window['String'](_0x2496e2));}return _0x24fb5c(_0x41a1b0),_0x5040c3>>>0x0;}function _0x2e48a0(_0x49fc4f){return _0x49fc4f['toString'](0x10)['padStart'](0x8,'0');}function _0x4e2db5(_0x2a6303){return _0x2a6303['split']('')['reverse']()['join']('');}function _0xd5cac(){}_0x5395b5(await _0x11929f());}(this);}_initSchema(){const _0x293c33=this['editor']['model']['schema'];_0x293c33['isRegistered']('imageBlock')&&_0x293c33['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x293c33['isRegistered']('imageInline')&&_0x293c33['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}_initConversion(){const _0x452396=this['editor'];_0x452396['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x452396['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x242d54=>_0x242d54['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xd03286=_0x452396['commands']['get']('replaceImageSource');_0xd03286&&this['listenTo'](_0xd03286,'cleanupImage',(_0x5a5247,[_0xf9c08,_0x1e78dd])=>{_0xf9c08['removeAttribute']('uploadcareImageId',_0x1e78dd);});}_initConfig(){const _0x3668b1=this['editor']['config']['get']('uploadcare.uploader')||{},_0x310b19=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2a0f20(_0x250afe['document'],'uc-config',{..._0x3668b1,'pubkey':_0x310b19,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x4f095b=>{if('closeMax'==_0x4f095b)return'#uc-icon-arrow-down';},_0x250afe['document']['body']['appendChild'](this['_configElement']);}_initCtx(){this['_ctxElement']=_0x2a0f20(_0x250afe['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x250afe['document']['body']['appendChild'](this['_ctxElement']);}_initImageProcessingIndicator(){const _0x121398=this['editor']['commands']['get']('insertImage');_0x121398&&this['listenTo'](_0x121398,'execute',()=>{const _0x3a8115=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3a8115&&_0x3a8115['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{r0(this['editor'],_0x3a8115);});});const _0x30ffbc=this['editor']['commands']['get']('uploadcareImageReplace');_0x30ffbc&&this['listenTo'](_0x30ffbc,'execute',()=>{const _0x45b330=this['editor']['model']['document']['selection']['getSelectedElement']();_0x45b330&&_0x45b330['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{r0(this['editor'],_0x45b330);});});}},w1=Kn({'ActivityBlock':()=>h7,'ActivityHeader':()=>i8,'BaseComponent':()=>J2,'Block':()=>t6,'BtnUi':()=>J8,'CameraSource':()=>H9,'CloudImageEditor':()=>A9,'CloudImageEditorActivity':()=>S9,'CloudImageEditorBlock':()=>E9,'Config':()=>j8,'Copyright':()=>B7,'CropFrame':()=>e9,'Data':()=>k1,'DropArea':()=>w8,'EditorAspectRatioButtonControl':()=>p9,'EditorCropButtonControl':()=>g9,'EditorFilterControl':()=>O9,'EditorFreeformButtonControl':()=>m9,'EditorImageCropper':()=>i9,'EditorImageFader':()=>r9,'EditorOperationControl':()=>w9,'EditorScroller':()=>y9,'EditorSlider':()=>u9,'EditorToolbar':()=>v9,'ExternalSource':()=>D9,'ExternalUploadSource':()=>L6,'FileItem':()=>h8,'FileUploaderInline':()=>Ctt,'FileUploaderMinimal':()=>Ptt,'FileUploaderRegular':()=>xtt,'FormInput':()=>V7,'Icon':()=>d7,'Img':()=>y7,'LineLoaderUi':()=>z8,'Modal':()=>U7,'ModalEvents':()=>W5,'PACKAGE_NAME':()=>B4,'PACKAGE_VERSION':()=>H4,'PluginActivityHost':()=>V8,'PluginActivityRenderer':()=>B8,'PresenceToggle':()=>W8,'ProgressBar':()=>H7,'ProgressBarCommon':()=>F7,'Select':()=>Z7,'SimpleBtn':()=>U8,'SliderUi':()=>l9,'SolutionBlock':()=>c6,'SourceBtn':()=>G7,'SourceList':()=>X7,'Spinner':()=>q7,'StartFrom':()=>s8,'Thumb':()=>e8,'UID':()=>t5,'UploadCtxProvider':()=>n8,'UploadList':()=>b8,'UploadSource':()=>D6,'UploaderBlock':()=>u7,'UrlSource':()=>I9,'defineComponents':()=>i5,'defineLocale':()=>l5,'loadFileUploaderFrom':()=>n5,'toKebabCase':()=>Y5}),b1=Object['defineProperty'],y1=Object['getOwnPropertyDescriptor'],v1=(_0xb1a3fd,_0x1dce6f)=>{for(var t in _0x1dce6f)b1(_0xb1a3fd,t,{'get':_0x1dce6f[t],'enumerable':!0x0});},_1=(_0x5a168b,_0x426916,t,_0x3755c3)=>{for(var _0x3d88a7,_0x31a72a=_0x3755c3>0x1?void 0x0:_0x3755c3?y1(_0x426916,t):_0x426916,_0x38eff5=_0x5a168b['length']-0x1;_0x38eff5>=0x0;_0x38eff5--)(_0x3d88a7=_0x5a168b[_0x38eff5])&&(_0x31a72a=(_0x3755c3?_0x3d88a7(_0x426916,t,_0x31a72a):_0x3d88a7(_0x31a72a))||_0x31a72a);return _0x3755c3&&_0x31a72a&&b1(_0x426916,t,_0x31a72a),_0x31a72a;},E1=[],T1=0x0;function A1(_0x573f56,_0x360cef,t){let _0x3bec70=new Set(_0x360cef)['add'](void 0x0);return _0x573f56['listen']((_0x26fefa,_0x59f348,_0x1b65c0)=>{_0x3bec70['has'](_0x1b65c0)&&t(_0x26fefa,_0x59f348,_0x1b65c0);});}function S1(_0x243346,_0x175858,t){let _0x16e52d=A1(_0x243346,_0x175858,t);return t(_0x243346['value']),_0x16e52d;}var I1=(_0x49fc={})=>{let _0x27204a=(_0x5ac757=>{let _0x56cef7=[],t={'get':()=>(t['lc']||t['listen'](()=>{})(),t['value']),'lc':0x0,'listen':_0x35fc76=>(t['lc']=_0x56cef7['push'](_0x35fc76),()=>{for(let _0xabd5c8=T1+0x4;_0xabd5c8<E1['length'];)E1[_0xabd5c8]===_0x35fc76?E1['splice'](_0xabd5c8,0x4):_0xabd5c8+=0x4;let _0x4ae6c7=_0x56cef7['indexOf'](_0x35fc76);~_0x4ae6c7&&(_0x56cef7['splice'](_0x4ae6c7,0x1),--t['lc']||t['off']());}),'notify'(_0x297a02,_0x59ae83){let _0x3b90a9=!E1['length'];for(let _0x1c00cf of _0x56cef7)E1['push'](_0x1c00cf,t['value'],_0x297a02,_0x59ae83);if(_0x3b90a9){for(T1=0x0;T1<E1['length'];T1+=0x4)E1[T1](E1[T1+0x1],E1[T1+0x2],E1[T1+0x3]);E1['length']=0x0;}},'off'(){},'set'(_0x4c40f8){let _0x181315=t['value'];_0x181315!==_0x4c40f8&&(t['value']=_0x4c40f8,t['notify'](_0x181315));},'subscribe'(_0x3e144f){let _0x12e19c=t['listen'](_0x3e144f);return _0x3e144f(t['value']),_0x12e19c;},'value':_0x5ac757};return t;})(_0x49fc);return _0x27204a['setKey']=function(t,_0x56347f){let _0x57d1bb=_0x27204a['value'];typeof _0x56347f>'u'&&t in _0x27204a['value']?(_0x27204a['value']={..._0x27204a['value']},delete _0x27204a['value'][t],_0x27204a['notify'](_0x57d1bb,t)):_0x27204a['value'][t]!==_0x56347f&&(_0x27204a['value']={..._0x27204a['value'],[t]:_0x56347f},_0x27204a['notify'](_0x57d1bb,t));},_0x27204a;},k1=class o{static{this['qt']=new Map();}constructor(_0x4b5cfa,t){this['J']=_0x4b5cfa,this['ae']=t;}get['id'](){return this['J'];}['pub'](_0xfab148,t){_0xfab148 in this['ae']['get']()||console['warn']('PubSub#pub:\x20Key\x20\x22'+String(_0xfab148)+'\x22\x20not\x20found'),this['ae']['setKey'](_0xfab148,t);}['sub'](_0x201f65,t,_0x567bcb=!0x0){return(_0x567bcb?S1:A1)(this['ae'],[_0x201f65],_0x547992=>{t(_0x547992[_0x201f65]);});}['read'](_0x271e40){return _0x271e40 in this['ae']['get']()||console['warn']('PubSub#read:\x20Key\x20\x22'+String(_0x271e40)+'\x22\x20not\x20found'),this['ae']['get']()[_0x271e40];}['add'](_0x5514f7,t,_0x116315=!0x1){(!(_0x5514f7 in this['ae']['get']())||_0x116315)&&this['ae']['setKey'](_0x5514f7,t);}['has'](_0x28e9ee){return _0x28e9ee in this['ae']['get']();}get store(){return this['ae']['get']();}static registerCtx(_0x1fb8f8,t){if(o['qt']['has'](t))throw new Error('PubSub:\x20Context\x20with\x20id\x20\x22'+t+'\x22\x20already\x20exists');let _0x81c980=I1(_0x1fb8f8);return o['qt']['set'](t,_0x81c980),new o(t,_0x81c980);}static deleteCtx(_0x4b01e9){o['qt']['delete'](_0x4b01e9);}static getCtx(_0x12bb6f){let t=o['qt']['get'](_0x12bb6f);return t?new o(_0x12bb6f,t):null;}static hasCtx(_0x3d7be9){return o['qt']['has'](_0x3d7be9);}},x1=globalThis,C1=x1['ShadowRoot']&&(void 0x0===x1['ShadyCSS']||x1['ShadyCSS']['nativeShadow'])&&'adoptedStyleSheets'in Document['prototype']&&'replace'in CSSStyleSheet['prototype'],R1=Symbol(),P1=new WeakMap(),N1=class{constructor(_0x323b0e,t,_0x24c096){if(this['Cc']=!0x0,_0x24c096!==R1)throw Error('CSSResult\x20is\x20not\x20constructable.\x20Use\x20`unsafeCSS`\x20or\x20`css`\x20instead.');this['cssText']=_0x323b0e,this['t']=t;}get styleSheet(){let _0x3476c4=this['o'],t=this['t'];if(C1&&void 0x0===_0x3476c4){let _0x1fddcd=void 0x0!==t&&0x1===t['length'];_0x1fddcd&&(_0x3476c4=P1['get'](t)),void 0x0===_0x3476c4&&((this['o']=_0x3476c4=new CSSStyleSheet())['replaceSync'](this['cssText']),_0x1fddcd&&P1['set'](t,_0x3476c4));}return _0x3476c4;}toString(){return this['cssText'];}},M1=C1?_0x597766=>_0x597766:_0x176bca=>_0x176bca instanceof CSSStyleSheet?(_0xd99b9=>{let t='';for(let _0x1f91dc of _0xd99b9['cssRules'])t+=_0x1f91dc['cssText'];return(_0x573adc=>new N1('string'==typeof _0x573adc?_0x573adc:_0x573adc+'',void 0x0,R1))(t);})(_0x176bca):_0x176bca,{is:L1,defineProperty:$1,getOwnPropertyDescriptor:D1,getOwnPropertyNames:Q1,getOwnPropertySymbols:j1,getPrototypeOf:U1}=Object,V1=globalThis,B1=V1['trustedTypes'],H1=B1?B1['emptyScript']:'',F1=V1['reactiveElementPolyfillSupport'],Z1=(_0x528c4c,_0x73324b)=>_0x528c4c,G1={'toAttribute'(_0x1f2a8f,_0x37ee08){switch(_0x37ee08){case Boolean:_0x1f2a8f=_0x1f2a8f?H1:null;break;case Object:case Array:_0x1f2a8f=null==_0x1f2a8f?_0x1f2a8f:JSON['stringify'](_0x1f2a8f);}return _0x1f2a8f;},'fromAttribute'(_0x5cb82d,_0x4fb166){let t=_0x5cb82d;switch(_0x4fb166){case Boolean:t=null!==_0x5cb82d;break;case Number:t=null===_0x5cb82d?null:Number(_0x5cb82d);break;case Object:case Array:try{t=JSON['parse'](_0x5cb82d);}catch{t=null;}}return t;}},X1=(_0x5480b1,_0xf59b0d)=>!L1(_0x5480b1,_0xf59b0d),q1={'attribute':!0x0,'type':String,'converter':G1,'reflect':!0x1,'useDefault':!0x1,'hasChanged':X1};Symbol['metadata']??=Symbol('metadata'),V1['litPropertyMetadata']??=new WeakMap();var W1=class extends HTMLElement{static addInitializer(_0x528c9c){this['Br'](),(this['l']??=[])['push'](_0x528c9c);}static get observedAttributes(){return this['finalize'](),this['Li']&&[...this['Li']['keys']()];}static createProperty(_0x53ca28,t=q1){if(t['state']&&(t['attribute']=!0x1),this['Br'](),this['prototype']['hasOwnProperty'](_0x53ca28)&&((t=Object['create'](t))['wrapped']=!0x0),this['elementProperties']['set'](_0x53ca28,t),!t['noAccessor']){let _0x57029b=Symbol(),_0x15b6dc=this['getPropertyDescriptor'](_0x53ca28,_0x57029b,t);void 0x0!==_0x15b6dc&&$1(this['prototype'],_0x53ca28,_0x15b6dc);}}static getPropertyDescriptor(_0x490d23,t,_0x41b20e){let {get:_0x44037b,set:_0x9af256}=D1(this['prototype'],_0x490d23)??{'get'(){return this[t];},'set'(_0x258d4e){this[t]=_0x258d4e;}};return{'get':_0x44037b,'set'(_0x7bf05b){let _0x484e67=_0x44037b?.['call'](this);_0x9af256?.['call'](this,_0x7bf05b),this['requestUpdate'](_0x490d23,_0x484e67,_0x41b20e);},'configurable':!0x0,'enumerable':!0x0};}static getPropertyOptions(_0x1494e0){return this['elementProperties']['get'](_0x1494e0)??q1;}static['Br'](){if(this['hasOwnProperty'](Z1('elementProperties')))return;let _0x5d3f34=U1(this);_0x5d3f34['finalize'](),void 0x0!==_0x5d3f34['l']&&(this['l']=[..._0x5d3f34['l']]),this['elementProperties']=new Map(_0x5d3f34['elementProperties']);}static['finalize'](){if(this['hasOwnProperty'](Z1('finalized')))return;if(this['finalized']=!0x0,this['Br'](),this['hasOwnProperty'](Z1('properties'))){let t=this['properties'],_0xfb849e=[...Q1(t),...j1(t)];for(let _0x3b47bf of _0xfb849e)this['createProperty'](_0x3b47bf,t[_0x3b47bf]);}let _0x2aabb4=this[Symbol['metadata']];if(null!==_0x2aabb4){let t=litPropertyMetadata['get'](_0x2aabb4);if(void 0x0!==t){for(let [_0x497e87,_0x403e32]of t)this['elementProperties']['set'](_0x497e87,_0x403e32);}}this['Li']=new Map();for(let [t,_0xc19832]of this['elementProperties']){let _0x5aa06a=this['zr'](t,_0xc19832);void 0x0!==_0x5aa06a&&this['Li']['set'](_0x5aa06a,t);}this['elementStyles']=this['finalizeStyles'](this['styles']);}static finalizeStyles(_0x282f6a){let t=[];if(Array['isArray'](_0x282f6a)){let _0x295087=new Set(_0x282f6a['flat'](0x1/0x0)['reverse']());for(let _0x6c97ef of _0x295087)t['unshift'](M1(_0x6c97ef));}else void 0x0!==_0x282f6a&&t['push'](M1(_0x282f6a));return t;}static['zr'](_0x16148e,t){let _0x134b51=t['attribute'];return!0x1===_0x134b51?void 0x0:'string'==typeof _0x134b51?_0x134b51:'string'==typeof _0x16148e?_0x16148e['toLowerCase']():void 0x0;}constructor(){super(),this['Ri']=void 0x0,this['isUpdatePending']=!0x1,this['hasUpdated']=!0x1,this['vt']=null,this['Sc']();}['Sc'](){this['Hr']=new Promise(_0x4c54b1=>this['enableUpdating']=_0x4c54b1),this['Fe']=new Map(),this['Ac'](),this['requestUpdate'](),this['constructor']['l']?.['forEach'](_0x528298=>_0x528298(this));}addController(_0x39de94){(this['Wt']??=new Set())['add'](_0x39de94),void 0x0!==this['renderRoot']&&this['isConnected']&&_0x39de94['hostConnected']?.();}removeController(_0x91d019){this['Wt']?.['delete'](_0x91d019);}['Ac'](){let _0x25be59=new Map(),t=this['constructor']['elementProperties'];for(let _0x1d3a6d of t['keys']())this['hasOwnProperty'](_0x1d3a6d)&&(_0x25be59['set'](_0x1d3a6d,this[_0x1d3a6d]),delete this[_0x1d3a6d]);_0x25be59['size']>0x0&&(this['Ri']=_0x25be59);}createRenderRoot(){let _0x1b9dbf=this['shadowRoot']??this['attachShadow'](this['constructor']['shadowRootOptions']);return((_0xcf0222,_0x4ccf54)=>{if(C1)_0xcf0222['adoptedStyleSheets']=_0x4ccf54['map'](t=>t instanceof CSSStyleSheet?t:t['styleSheet']);else for(let t of _0x4ccf54){let _0x16ecde=document['createElement']('style'),_0x54b31c=x1['litNonce'];void 0x0!==_0x54b31c&&_0x16ecde['setAttribute']('nonce',_0x54b31c),_0x16ecde['textContent']=t['cssText'],_0xcf0222['appendChild'](_0x16ecde);}})(_0x1b9dbf,this['constructor']['elementStyles']),_0x1b9dbf;}connectedCallback(){this['renderRoot']??=this['createRenderRoot'](),this['enableUpdating'](!0x0),this['Wt']?.['forEach'](_0x1eb008=>_0x1eb008['hostConnected']?.());}enableUpdating(_0x5ac5bc){}disconnectedCallback(){this['Wt']?.['forEach'](_0x462b80=>_0x462b80['hostDisconnected']?.());}attributeChangedCallback(_0x5a216a,t,_0x273a76){this['Kr'](_0x5a216a,_0x273a76);}['kc'](_0x5a9e98,t){let _0x4db20d=this['constructor']['elementProperties']['get'](_0x5a9e98),_0x438221=this['constructor']['zr'](_0x5a9e98,_0x4db20d);if(void 0x0!==_0x438221&&!0x0===_0x4db20d['reflect']){let _0x371a36=(void 0x0!==_0x4db20d['converter']?.['toAttribute']?_0x4db20d['converter']:G1)['toAttribute'](t,_0x4db20d['type']);this['vt']=_0x5a9e98,null==_0x371a36?this['removeAttribute'](_0x438221):this['setAttribute'](_0x438221,_0x371a36),this['vt']=null;}}['Kr'](_0x316b1e,t){let _0x23cbfe=this['constructor'],_0x25ecd1=_0x23cbfe['Li']['get'](_0x316b1e);if(void 0x0!==_0x25ecd1&&this['vt']!==_0x25ecd1){let _0x4d0a91=_0x23cbfe['getPropertyOptions'](_0x25ecd1),_0x3545ad='function'==typeof _0x4d0a91['converter']?{'fromAttribute':_0x4d0a91['converter']}:void 0x0!==_0x4d0a91['converter']?.['fromAttribute']?_0x4d0a91['converter']:G1;this['vt']=_0x25ecd1;let _0x4adff3=_0x3545ad['fromAttribute'](t,_0x4d0a91['type']);this[_0x25ecd1]=_0x4adff3??this['jr']?.['get'](_0x25ecd1)??_0x4adff3,this['vt']=null;}}requestUpdate(_0x3abcbf,t,_0x54594a,_0x1fd79a=!0x1,_0x179265){if(void 0x0!==_0x3abcbf){let _0x564640=this['constructor'];if(!0x1===_0x1fd79a&&(_0x179265=this[_0x3abcbf]),_0x54594a??=_0x564640['getPropertyOptions'](_0x3abcbf),!((_0x54594a['hasChanged']??X1)(_0x179265,t)||_0x54594a['useDefault']&&_0x54594a['reflect']&&_0x179265===this['jr']?.['get'](_0x3abcbf)&&!this['hasAttribute'](_0x564640['zr'](_0x3abcbf,_0x54594a))))return;this['C'](_0x3abcbf,t,_0x54594a);}!0x1===this['isUpdatePending']&&(this['Hr']=this['Mc']());}['C'](_0x531f72,t,{useDefault:_0x23b8f8,reflect:_0x36c755,wrapped:_0x5658fa},_0x18f14a){_0x23b8f8&&!(this['jr']??=new Map())['has'](_0x531f72)&&(this['jr']['set'](_0x531f72,_0x18f14a??t??this[_0x531f72]),!0x0!==_0x5658fa||void 0x0!==_0x18f14a)||(this['Fe']['has'](_0x531f72)||(this['hasUpdated']||_0x23b8f8||(t=void 0x0),this['Fe']['set'](_0x531f72,t)),!0x0===_0x36c755&&this['vt']!==_0x531f72&&(this['Gs']??=new Set())['add'](_0x531f72));}async['Mc'](){this['isUpdatePending']=!0x0;try{await this['Hr'];}catch(_0x149fe9){Promise['reject'](_0x149fe9);}let _0x1094b0=this['scheduleUpdate']();return null!=_0x1094b0&&await _0x1094b0,!this['isUpdatePending'];}scheduleUpdate(){return this['performUpdate']();}performUpdate(){if(!this['isUpdatePending'])return;if(!this['hasUpdated']){if(this['renderRoot']??=this['createRenderRoot'](),this['Ri']){for(let [_0x383061,_0x217f65]of this['Ri'])this[_0x383061]=_0x217f65;this['Ri']=void 0x0;}let _0x5506b3=this['constructor']['elementProperties'];if(_0x5506b3['size']>0x0)for(let [_0x1d0af1,_0x4b458c]of _0x5506b3){let {wrapped:_0x228b0b}=_0x4b458c,_0x59ca9c=this[_0x1d0af1];!0x0!==_0x228b0b||this['Fe']['has'](_0x1d0af1)||void 0x0===_0x59ca9c||this['C'](_0x1d0af1,void 0x0,_0x4b458c,_0x59ca9c);}}let _0x3894fc=!0x1,t=this['Fe'];try{_0x3894fc=this['shouldUpdate'](t),_0x3894fc?(this['willUpdate'](t),this['Wt']?.['forEach'](_0x3baa90=>_0x3baa90['hostUpdate']?.()),this['update'](t)):this['Gr']();}catch(_0x36b46f){throw _0x3894fc=!0x1,this['Gr'](),_0x36b46f;}_0x3894fc&&this['Oc'](t);}willUpdate(_0x251009){}['Oc'](_0x632dcc){this['Wt']?.['forEach'](t=>t['hostUpdated']?.()),this['hasUpdated']||(this['hasUpdated']=!0x0,this['firstUpdated'](_0x632dcc)),this['updated'](_0x632dcc);}['Gr'](){this['Fe']=new Map(),this['isUpdatePending']=!0x1;}get updateComplete(){return this['getUpdateComplete']();}getUpdateComplete(){return this['Hr'];}shouldUpdate(_0x1e2245){return!0x0;}update(_0x587a15){this['Gs']&&=this['Gs']['forEach'](t=>this['kc'](t,this[t])),this['Gr']();}updated(_0x1705f8){}firstUpdated(_0xaed95f){}};W1['elementStyles']=[],W1['shadowRootOptions']={'mode':'open'},W1[Z1('elementProperties')]=new Map(),W1[Z1('finalized')]=new Map(),F1?.({'ReactiveElement':W1}),(V1['reactiveElementVersions']??=[])['push']('2.1.2');var z1,Y1=globalThis,K1=_0x1601de=>_0x1601de,J1=Y1['trustedTypes'],t2=J1?J1['createPolicy']('lit-html',{'createHTML':_0x3f768d=>_0x3f768d}):void 0x0,e2='$lit$',i2='lit$'+Math['random']()['toFixed'](0x9)['slice'](0x2)+'$',s2='?'+i2,n2='<'+s2+'>',r2=document,o2=()=>r2['createComment'](''),a2=_0x10372e=>null===_0x10372e||'object'!=typeof _0x10372e&&'function'!=typeof _0x10372e,c2=Array['isArray'],l2='[\x20\x0c\x0d]',h2=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,u2=/-->/g,d2=/>/g,f2=RegExp('>|'+l2+'(?:([^\x5cs\x22\x27>=/]+)('+l2+'*='+l2+'*(?:[^\x20\x0c\x0d\x22\x27`<>=]|(\x22|\x27)|))|$)','g'),m2=/'/g,p2=/"/g,g2=/^(?:script|style|textarea|title)$/i,O2=(z1=0x1,(_0x1bf09c,...t)=>({'Ne':z1,'strings':_0x1bf09c,'values':t})),w2=Symbol['for']('lit-noChange'),b2=Symbol['for']('lit-nothing'),y2=new WeakMap(),v2=r2['createTreeWalker'](r2,0x81);function _2(_0x10e25c,_0x5cf118){if(!c2(_0x10e25c)||!_0x10e25c['hasOwnProperty']('raw'))throw Error('invalid\x20template\x20strings\x20array');return void 0x0!==t2?t2['createHTML'](_0x5cf118):_0x5cf118;}var E2=class o{constructor({strings:_0x48b5e5,Ne:t},_0x29cd7a){let _0x333c7a;this['parts']=[];let _0x4995fc=0x0,_0x40421d=0x0,_0x216bf2=_0x48b5e5['length']-0x1,_0x29e7db=this['parts'],[_0x917485,_0x2b7c79]=((_0x36b9ef,_0x11d2b9)=>{let _0x404fea,t=_0x36b9ef['length']-0x1,_0x3127d1=[],_0x587760=0x2===_0x11d2b9?'<svg>':0x3===_0x11d2b9?'<math>':'',_0x154d69=h2;for(let _0x165ebb=0x0;_0x165ebb<t;_0x165ebb++){let _0x52cc1e,_0xb54176,_0x25a8c1=_0x36b9ef[_0x165ebb],_0x52196e=-0x1,_0x39132d=0x0;for(;_0x39132d<_0x25a8c1['length']&&(_0x154d69['lastIndex']=_0x39132d,_0xb54176=_0x154d69['exec'](_0x25a8c1),null!==_0xb54176);)_0x39132d=_0x154d69['lastIndex'],_0x154d69===h2?'!--'===_0xb54176[0x1]?_0x154d69=u2:void 0x0!==_0xb54176[0x1]?_0x154d69=d2:void 0x0!==_0xb54176[0x2]?(g2['test'](_0xb54176[0x2])&&(_0x404fea=RegExp('</'+_0xb54176[0x2],'g')),_0x154d69=f2):void 0x0!==_0xb54176[0x3]&&(_0x154d69=f2):_0x154d69===f2?'>'===_0xb54176[0x0]?(_0x154d69=_0x404fea??h2,_0x52196e=-0x1):void 0x0===_0xb54176[0x1]?_0x52196e=-0x2:(_0x52196e=_0x154d69['lastIndex']-_0xb54176[0x2]['length'],_0x52cc1e=_0xb54176[0x1],_0x154d69=void 0x0===_0xb54176[0x3]?f2:'\x22'===_0xb54176[0x3]?p2:m2):_0x154d69===p2||_0x154d69===m2?_0x154d69=f2:_0x154d69===u2||_0x154d69===d2?_0x154d69=h2:(_0x154d69=f2,_0x404fea=void 0x0);let _0x49317f=_0x154d69===f2&&_0x36b9ef[_0x165ebb+0x1]['startsWith']('/>')?'\x20':'';_0x587760+=_0x154d69===h2?_0x25a8c1+n2:_0x52196e>=0x0?(_0x3127d1['push'](_0x52cc1e),_0x25a8c1['slice'](0x0,_0x52196e)+e2+_0x25a8c1['slice'](_0x52196e)+i2+_0x49317f):_0x25a8c1+i2+(-0x2===_0x52196e?_0x165ebb:_0x49317f);}return[_2(_0x36b9ef,_0x587760+(_0x36b9ef[t]||'<?>')+(0x2===_0x11d2b9?'</svg>':0x3===_0x11d2b9?'</math>':'')),_0x3127d1];})(_0x48b5e5,t);if(this['el']=o['createElement'](_0x917485,_0x29cd7a),v2['currentNode']=this['el']['content'],0x2===t||0x3===t){let _0x461023=this['el']['content']['firstChild'];_0x461023['replaceWith'](..._0x461023['childNodes']);}for(;null!==(_0x333c7a=v2['nextNode']())&&_0x29e7db['length']<_0x216bf2;){if(0x1===_0x333c7a['nodeType']){if(_0x333c7a['hasAttributes']()){for(let _0x2cfbc1 of _0x333c7a['getAttributeNames']())if(_0x2cfbc1['endsWith'](e2)){let _0x6a8a02=_0x2b7c79[_0x40421d++],_0x45337b=_0x333c7a['getAttribute'](_0x2cfbc1)['split'](i2),_0x424316=/([.?@])?(.*)/['exec'](_0x6a8a02);_0x29e7db['push']({'type':0x1,'index':_0x4995fc,'name':_0x424316[0x2],'strings':_0x45337b,'ctor':'.'===_0x424316[0x1]?k2:'?'===_0x424316[0x1]?x2:'@'===_0x424316[0x1]?C2:I2}),_0x333c7a['removeAttribute'](_0x2cfbc1);}else _0x2cfbc1['startsWith'](i2)&&(_0x29e7db['push']({'type':0x6,'index':_0x4995fc}),_0x333c7a['removeAttribute'](_0x2cfbc1));}if(g2['test'](_0x333c7a['tagName'])){let _0x306a18=_0x333c7a['textContent']['split'](i2),_0x25b22c=_0x306a18['length']-0x1;if(_0x25b22c>0x0){_0x333c7a['textContent']=J1?J1['emptyScript']:'';for(let _0x320adf=0x0;_0x320adf<_0x25b22c;_0x320adf++)_0x333c7a['append'](_0x306a18[_0x320adf],o2()),v2['nextNode'](),_0x29e7db['push']({'type':0x2,'index':++_0x4995fc});_0x333c7a['append'](_0x306a18[_0x25b22c],o2());}}}else{if(0x8===_0x333c7a['nodeType']){if(_0x333c7a['data']===s2)_0x29e7db['push']({'type':0x2,'index':_0x4995fc});else{let _0x13e3e8=-0x1;for(;-0x1!==(_0x13e3e8=_0x333c7a['data']['indexOf'](i2,_0x13e3e8+0x1));)_0x29e7db['push']({'type':0x7,'index':_0x4995fc}),_0x13e3e8+=i2['length']-0x1;}}}_0x4995fc++;}}static createElement(_0x2d00a3,t){let _0x18ccc6=r2['createElement']('template');return _0x18ccc6['innerHTML']=_0x2d00a3,_0x18ccc6;}};function T2(_0x3cc34c,_0x58d3ad,t=_0x3cc34c,_0x21ee9a){if(_0x58d3ad===w2)return _0x58d3ad;let _0x1590d0=void 0x0!==_0x21ee9a?t['Ic']?.[_0x21ee9a]:t['Pc'],_0x5a5da7=a2(_0x58d3ad)?void 0x0:_0x58d3ad['qr'];return _0x1590d0?.['constructor']!==_0x5a5da7&&(_0x1590d0?.['qs']?.(!0x1),void 0x0===_0x5a5da7?_0x1590d0=void 0x0:(_0x1590d0=new _0x5a5da7(_0x3cc34c),_0x1590d0['Wr'](_0x3cc34c,t,_0x21ee9a)),void 0x0!==_0x21ee9a?(t['Ic']??=[])[_0x21ee9a]=_0x1590d0:t['Pc']=_0x1590d0),void 0x0!==_0x1590d0&&(_0x58d3ad=T2(_0x3cc34c,_0x1590d0['Lc'](_0x3cc34c,_0x58d3ad['values']),_0x1590d0,_0x21ee9a)),_0x58d3ad;}var A2=class{constructor(_0x17a4c5,t){this['Ws']=[],this['le']=void 0x0,this['Zs']=_0x17a4c5,this['f']=t;}get parentNode(){return this['f']['parentNode'];}get['W'](){return this['f']['W'];}['u'](_0x520eb8){let {el:{content:t},parts:_0x499d88}=this['Zs'],_0xda2e03=(_0x520eb8?.['creationScope']??r2)['importNode'](t,!0x0);v2['currentNode']=_0xda2e03;let _0x20eca8=v2['nextNode'](),_0x114011=0x0,_0x329a02=0x0,_0x1f132d=_0x499d88[0x0];for(;void 0x0!==_0x1f132d;){if(_0x114011===_0x1f132d['index']){let _0xe74943;0x2===_0x1f132d['type']?_0xe74943=new S2(_0x20eca8,_0x20eca8['nextSibling'],this,_0x520eb8):0x1===_0x1f132d['type']?_0xe74943=new _0x1f132d['ctor'](_0x20eca8,_0x1f132d['name'],_0x1f132d['strings'],this,_0x520eb8):0x6===_0x1f132d['type']&&(_0xe74943=new R2(_0x20eca8,this,_0x520eb8)),this['Ws']['push'](_0xe74943),_0x1f132d=_0x499d88[++_0x329a02];}_0x114011!==_0x1f132d?.['index']&&(_0x20eca8=v2['nextNode'](),_0x114011++);}return v2['currentNode']=r2,_0xda2e03;}['p'](_0x2c6ed8){let t=0x0;for(let _0x56af57 of this['Ws'])void 0x0!==_0x56af57&&(void 0x0!==_0x56af57['strings']?(_0x56af57['ce'](_0x2c6ed8,_0x56af57,t),t+=_0x56af57['strings']['length']-0x2):_0x56af57['ce'](_0x2c6ed8[t])),t++;}},S2=class o{get['W'](){return this['f']?.['W']??this['Ys'];}constructor(_0x125c54,t,_0x55ac7d,_0x4fe941){this['type']=0x2,this['r']=b2,this['le']=void 0x0,this['ve']=_0x125c54,this['yt']=t,this['f']=_0x55ac7d,this['options']=_0x4fe941,this['Ys']=_0x4fe941?.['isConnected']??!0x0;}get parentNode(){let _0x5abd64=this['ve']['parentNode'],t=this['f'];return void 0x0!==t&&0xb===_0x5abd64?.['nodeType']&&(_0x5abd64=t['parentNode']),_0x5abd64;}get startNode(){return this['ve'];}get['endNode'](){return this['yt'];}['ce'](_0x139dd0,t=this){_0x139dd0=T2(this,_0x139dd0,t),a2(_0x139dd0)?_0x139dd0===b2||null==_0x139dd0||''===_0x139dd0?(this['r']!==b2&&this['bt'](),this['r']=b2):_0x139dd0!==this['r']&&_0x139dd0!==w2&&this['Xs'](_0x139dd0):void 0x0!==_0x139dd0['Ne']?this['$'](_0x139dd0):void 0x0!==_0x139dd0['nodeType']?this['T'](_0x139dd0):(_0x4be3ac=>c2(_0x4be3ac)||'function'==typeof _0x4be3ac?.[Symbol['iterator']])(_0x139dd0)?this['k'](_0x139dd0):this['Xs'](_0x139dd0);}['O'](_0x2127cd){return this['ve']['parentNode']['insertBefore'](_0x2127cd,this['yt']);}['T'](_0x4dc10c){this['r']!==_0x4dc10c&&(this['bt'](),this['r']=this['O'](_0x4dc10c));}['Xs'](_0x1c14be){this['r']!==b2&&a2(this['r'])?this['ve']['nextSibling']['data']=_0x1c14be:this['T'](r2['createTextNode'](_0x1c14be)),this['r']=_0x1c14be;}['$'](_0x523c9d){let {values:t,Ne:_0xea6a63}=_0x523c9d,_0x1f2824='number'==typeof _0xea6a63?this['Rc'](_0x523c9d):(void 0x0===_0xea6a63['el']&&(_0xea6a63['el']=E2['createElement'](_2(_0xea6a63['h'],_0xea6a63['h'][0x0]),this['options'])),_0xea6a63);if(this['r']?.['Zs']===_0x1f2824)this['r']['p'](t);else{let _0x3af5bd=new A2(_0x1f2824,this),_0x3a490a=_0x3af5bd['u'](this['options']);_0x3af5bd['p'](t),this['T'](_0x3a490a),this['r']=_0x3af5bd;}}['Rc'](_0x1bf192){let t=y2['get'](_0x1bf192['strings']);return void 0x0===t&&y2['set'](_0x1bf192['strings'],t=new E2(_0x1bf192)),t;}['k'](_0x40627f){c2(this['r'])||(this['r']=[],this['bt']());let _0x56bdda,t=this['r'],_0x4b630f=0x0;for(let _0x3001f6 of _0x40627f)_0x4b630f===t['length']?t['push'](_0x56bdda=new o(this['O'](o2()),this['O'](o2()),this,this['options'])):_0x56bdda=t[_0x4b630f],_0x56bdda['ce'](_0x3001f6),_0x4b630f++;_0x4b630f<t['length']&&(this['bt'](_0x56bdda&&_0x56bdda['yt']['nextSibling'],_0x4b630f),t['length']=_0x4b630f);}bt(_0x539fc2=this['ve']['nextSibling'],t){for(this['Ui']?.(!0x1,!0x0,t);_0x539fc2!==this['yt'];){let _0x37108f=K1(_0x539fc2)['nextSibling'];K1(_0x539fc2)['remove'](),_0x539fc2=_0x37108f;}}setConnected(_0x8fe0d2){void 0x0===this['f']&&(this['Ys']=_0x8fe0d2,this['Ui']?.(_0x8fe0d2));}},I2=class{get tagName(){return this['element']['tagName'];}get['W'](){return this['f']['W'];}constructor(_0x3e576c,t,_0x3233a4,_0x6efed8,_0xf3b8b4){this['type']=0x1,this['r']=b2,this['le']=void 0x0,this['element']=_0x3e576c,this['name']=t,this['f']=_0x6efed8,this['options']=_0xf3b8b4,_0x3233a4['length']>0x2||''!==_0x3233a4[0x0]||''!==_0x3233a4[0x1]?(this['r']=Array(_0x3233a4['length']-0x1)['fill'](new String()),this['strings']=_0x3233a4):this['r']=b2;}['ce'](_0x36e43f,t=this,_0x2997cb,_0x29595){let _0x427990=this['strings'],_0x2d9ac7=!0x1;if(void 0x0===_0x427990)_0x36e43f=T2(this,_0x36e43f,t,0x0),_0x2d9ac7=!a2(_0x36e43f)||_0x36e43f!==this['r']&&_0x36e43f!==w2,_0x2d9ac7&&(this['r']=_0x36e43f);else{let _0x1b174b,_0x4dd065,_0x550eb7=_0x36e43f;for(_0x36e43f=_0x427990[0x0],_0x1b174b=0x0;_0x1b174b<_0x427990['length']-0x1;_0x1b174b++)_0x4dd065=T2(this,_0x550eb7[_0x2997cb+_0x1b174b],t,_0x1b174b),_0x4dd065===w2&&(_0x4dd065=this['r'][_0x1b174b]),_0x2d9ac7||=!a2(_0x4dd065)||_0x4dd065!==this['r'][_0x1b174b],_0x4dd065===b2?_0x36e43f=b2:_0x36e43f!==b2&&(_0x36e43f+=(_0x4dd065??'')+_0x427990[_0x1b174b+0x1]),this['r'][_0x1b174b]=_0x4dd065;}_0x2d9ac7&&!_0x29595&&this['j'](_0x36e43f);}['j'](_0x26542e){_0x26542e===b2?this['element']['removeAttribute'](this['name']):this['element']['setAttribute'](this['name'],_0x26542e??'');}},k2=class extends I2{constructor(){super(...arguments),this['type']=0x3;}['j'](_0x5dbe0b){this['element'][this['name']]=_0x5dbe0b===b2?void 0x0:_0x5dbe0b;}},x2=class extends I2{constructor(){super(...arguments),this['type']=0x4;}['j'](_0x134601){this['element']['toggleAttribute'](this['name'],!!_0x134601&&_0x134601!==b2);}},C2=class extends I2{constructor(_0xb49e9d,t,_0x370dfe,_0x567f44,_0x4bfc24){super(_0xb49e9d,t,_0x370dfe,_0x567f44,_0x4bfc24),this['type']=0x5;}['ce'](_0x3f5445,t=this){if((_0x3f5445=T2(this,_0x3f5445,t,0x0)??b2)===w2)return;let _0x5b8f8d=this['r'],_0x1e3220=_0x3f5445===b2&&_0x5b8f8d!==b2||_0x3f5445['capture']!==_0x5b8f8d['capture']||_0x3f5445['once']!==_0x5b8f8d['once']||_0x3f5445['passive']!==_0x5b8f8d['passive'],_0x4cd0af=_0x3f5445!==b2&&(_0x5b8f8d===b2||_0x1e3220);_0x1e3220&&this['element']['removeEventListener'](this['name'],this,_0x5b8f8d),_0x4cd0af&&this['element']['addEventListener'](this['name'],this,_0x3f5445),this['r']=_0x3f5445;}handleEvent(_0x1ed7ad){'function'==typeof this['r']?this['r']['call'](this['options']?.['host']??this['element'],_0x1ed7ad):this['r']['handleEvent'](_0x1ed7ad);}},R2=class{constructor(_0x269fda,t,_0x5ae2ff){this['element']=_0x269fda,this['type']=0x6,this['le']=void 0x0,this['f']=t,this['options']=_0x5ae2ff;}get['W'](){return this['f']['W'];}['ce'](_0x3e15d9){T2(this,_0x3e15d9);}},P2={'I':S2},N2=Y1['litHtmlPolyfillSupport'];N2?.(E2,S2),(Y1['litHtmlVersions']??=[])['push']('3.3.2');var M2=globalThis,L2=class extends W1{constructor(){super(...arguments),this['renderOptions']={'host':this},this['Zr']=void 0x0;}createRenderRoot(){let _0x24c836=super['createRenderRoot']();return this['renderOptions']['renderBefore']??=_0x24c836['firstChild'],_0x24c836;}update(_0x54c527){let t=this['render']();this['hasUpdated']||(this['renderOptions']['isConnected']=this['isConnected']),super['update'](_0x54c527),this['Zr']=((_0x5017d4,_0x127762,t)=>{let _0x5a8de7=t?.['renderBefore']??_0x127762,_0x42d94a=_0x5a8de7['Uc'];if(void 0x0===_0x42d94a){let _0x3a708b=t?.['renderBefore']??null;_0x5a8de7['Uc']=_0x42d94a=new S2(_0x127762['insertBefore'](o2(),_0x3a708b),_0x3a708b,void 0x0,t??{});}return _0x42d94a['ce'](_0x5017d4),_0x42d94a;})(t,this['renderRoot'],this['renderOptions']);}connectedCallback(){super['connectedCallback'](),this['Zr']?.['setConnected'](!0x0);}disconnectedCallback(){super['disconnectedCallback'](),this['Zr']?.['setConnected'](!0x1);}['render'](){return w2;}};L2['jp']=!0x0,L2['finalized']=!0x0,M2['litElementHydrateSupport']?.({'LitElement':L2});var $2=M2['litElementPolyfillSupport'];$2?.({'LitElement':L2}),(M2['litElementVersions']??=[])['push']('4.2.2');var D2=/\\([0-9a-fA-F]{1,6} ?)/g;function Q2(_0x1d16e6){return class _0x4a1df9 extends _0x1d16e6{constructor(){super(...arguments),this['Qs']=null,this['Yr']=null;}getCssData(_0x169a94,_0x182351=!0x1){let _0x3bed6f=this['Qs']??Object['create'](null);if(!Object['keys'](_0x3bed6f)['includes'](_0x169a94)||!_0x3bed6f[_0x169a94]){this['Yr']||(this['Yr']=window['getComputedStyle'](this));let _0x328c58=this['Yr']['getPropertyValue'](_0x169a94)['trim']();try{_0x3bed6f[_0x169a94]=function(_0x2e193f){let _0x59423e=_0x2e193f;(function(_0x3734d4){return!(_0x3734d4['length']<0x2||'\x22'!==_0x3734d4[0x0]&&'\x27'!==_0x3734d4[0x0]||'\x22'!==_0x3734d4[_0x3734d4['length']-0x1]&&'\x27'!==_0x3734d4[_0x3734d4['length']-0x1]);}(_0x2e193f)&&(_0x59423e=function(_0x1d9b87){let _0x1a1e98=_0x1d9b87;return('\x22'===_0x1a1e98[0x0]||'\x27'===_0x1a1e98[0x0])&&(_0x1a1e98=_0x1a1e98['slice'](0x1)),('\x22'===_0x1a1e98[_0x1a1e98['length']-0x1]||'\x27'===_0x1a1e98[_0x1a1e98['length']-0x1])&&(_0x1a1e98=_0x1a1e98['slice'](0x0,-0x1)),_0x1a1e98;}(_0x59423e),_0x59423e=_0x59423e['replace'](D2,(t,_0xb8c5e)=>String['fromCodePoint'](parseInt(_0xb8c5e['trim'](),0x10))),_0x59423e=_0x59423e['replaceAll']('\x5c\x20','\x5cn'),_0x59423e=function(_0x11f9d7){let _0x1d4a24='',t='';for(let _0x1a9450=0x0;_0x1a9450<_0x11f9d7['length'];_0x1a9450++){let _0x348884=_0x11f9d7[_0x1a9450+0x1];'\x5c'===_0x11f9d7[_0x1a9450]&&'\x22'===_0x348884?(_0x1d4a24+='\x5c\x22',_0x1a9450++):'\x22'===_0x11f9d7[_0x1a9450]&&'\x5c'!==t?_0x1d4a24+='\x5c\x22':_0x1d4a24+=_0x11f9d7[_0x1a9450],t=_0x11f9d7[_0x1a9450]??'';}return _0x1d4a24;}(_0x59423e),_0x59423e='\x22'+_0x59423e+'\x22'));try{return JSON['parse'](_0x59423e);}catch{return;}}(_0x328c58);}catch(_0x195fc0){_0x182351||console['warn']('CSS\x20Data\x20error:\x20'+_0x169a94,_0x195fc0),_0x3bed6f[_0x169a94]=null;}}return this['Qs']=_0x3bed6f,_0x3bed6f[_0x169a94];}};}function j2(_0x573ad5){return class _0x536fc6 extends _0x573ad5{constructor(){super(...arguments),this['willYield']=!0x0,this['Ve']={},this['_e']=null,this['$i']=!0x1;}createRenderRoot(){return this;}connectedCallback(){this['_e']||(this['_e']=Array['from'](this['childNodes'])),super['connectedCallback']();}['$c'](){if(this['$i'])return;this['$i']=!0x0,this['Ve']={};let _0x1e478f=Array['from'](this['childNodes']),_0x2d8ea9=_0x1e478f['length']?_0x1e478f:this['_e']??[];for(let _0x595b1c of _0x2d8ea9){let _0x421d80=this['Js'](_0x595b1c),_0xc6d16a=this['Ve'][_0x421d80]??[];_0x595b1c instanceof Element&&(_0x595b1c['removeAttribute']('slot'),_0x595b1c['removeAttribute']('content-for')),_0xc6d16a['push'](_0x595b1c),this['Ve'][_0x421d80]=_0xc6d16a;}this['_e']=null;}['Js'](_0x4f627d){return _0x4f627d instanceof Comment&&_0x4f627d['nextSibling']instanceof Element?this['Js'](_0x4f627d['nextSibling']):'contentFor'in _0x4f627d?_0x4f627d['contentFor']||'':_0x4f627d instanceof Element&&_0x4f627d['hasAttribute']('content-for')&&_0x4f627d['getAttribute']('content-for')||'';}['Dc'](_0x518c54){return!_0x518c54['textContent']||!_0x518c54['textContent']['trim']();}['Fc'](_0x183199){let _0x469cb6=this['Ve'][_0x183199];return!_0x469cb6||_0x469cb6['every'](_0x20e1e7=>_0x20e1e7 instanceof Comment||_0x20e1e7 instanceof Text&&this['Dc'](_0x20e1e7));}update(_0x13b3de){!this['hasUpdated']&&this['willYield']&&this['$c'](),super['update'](_0x13b3de);}['yield'](_0x1148f8,_0xd2fee3){if(''===_0x1148f8&&!this['Ve'][_0x1148f8]&&!this['$i']&&this['_e']?.['length']){let _0x145a95=[];for(let _0x4bab8b of this['_e'])_0x4bab8b instanceof Element&&(_0x4bab8b['removeAttribute']('slot'),_0x4bab8b['removeAttribute']('content-for')),_0x145a95['push'](_0x4bab8b);this['Ve'][_0x1148f8]=_0x145a95,this['$i']=!0x0,this['_e']=null;}return O2` ${this['Ve'][_0x1148f8]} ${this['Fc'](_0x1148f8)?_0xd2fee3:void 0x0} `;}};}function U2(_0x38b3d0){return class _0xfbe3d3 extends _0x38b3d0{static['reg'](_0x393e19){let _0x3e8162=this,_0x40870c=window['customElements']['get'](_0x393e19);_0x40870c?_0x40870c!==_0x3e8162&&console['warn'](['Element\x20with\x20tag\x20name\x20\x22'+_0x393e19+'\x22\x20already\x20registered.','You\x27re\x20trying\x20to\x20override\x20it\x20with\x20another\x20class\x20\x22'+this['name']+'\x22.','This\x20is\x20most\x20likely\x20a\x20mistake.','New\x20element\x20will\x20not\x20be\x20registered.']['join']('\x20')):window['customElements']['define'](_0x393e19,_0x3e8162);}};}var V2=class extends Event{constructor(_0x1d5e91,t,_0x2cb203,_0x30ce15){super('context-request',{'bubbles':!0x0,'composed':!0x0}),this['context']=_0x1d5e91,this['contextTarget']=t,this['callback']=_0x2cb203,this['subscribe']=_0x30ce15??!0x1;}},B2=class{constructor(_0xa91d8a,t,_0x292942,_0x458437){if(this['subscribe']=!0x1,this['provided']=!0x1,this['value']=void 0x0,this['t']=(_0x3a7a2e,_0x4a8273)=>{this['unsubscribe']&&(this['unsubscribe']!==_0x4a8273&&(this['provided']=!0x1,this['unsubscribe']()),this['subscribe']||this['unsubscribe']()),this['value']=_0x3a7a2e,this['host']['requestUpdate'](),this['provided']&&!this['subscribe']||(this['provided']=!0x0,this['callback']&&this['callback'](_0x3a7a2e,_0x4a8273)),this['unsubscribe']=_0x4a8273;},this['host']=_0xa91d8a,void 0x0!==t['context']){let _0x52502e=t;this['context']=_0x52502e['context'],this['callback']=_0x52502e['callback'],this['subscribe']=_0x52502e['subscribe']??!0x1;}else this['context']=t,this['callback']=_0x292942,this['subscribe']=_0x458437??!0x1;this['host']['addController'](this);}hostConnected(){this['dispatchRequest']();}hostDisconnected(){this['unsubscribe']&&(this['unsubscribe'](),this['unsubscribe']=void 0x0);}dispatchRequest(){this['host']['dispatchEvent'](new V2(this['context'],this['host'],this['t'],this['subscribe']));}},H2=class{get['value'](){return this['o'];}set['value'](_0x30a340){this['setValue'](_0x30a340);}setValue(_0x237f67,t=!0x1){let _0x2db74c=t||!Object['is'](_0x237f67,this['o']);this['o']=_0x237f67,_0x2db74c&&this['updateObservers']();}constructor(_0x4242ec){this['subscriptions']=new Map(),this['updateObservers']=()=>{for(let [t,{disposer:_0x5037b0}]of this['subscriptions'])t(this['o'],_0x5037b0);},void 0x0!==_0x4242ec&&(this['value']=_0x4242ec);}['addCallback'](_0x58e2e9,t,_0x5e0390){if(!_0x5e0390)return void _0x58e2e9(this['value']);this['subscriptions']['has'](_0x58e2e9)||this['subscriptions']['set'](_0x58e2e9,{'disposer':()=>{this['subscriptions']['delete'](_0x58e2e9);},'consumerHost':t});let {disposer:_0x1722cc}=this['subscriptions']['get'](_0x58e2e9);_0x58e2e9(this['value'],_0x1722cc);}['clearCallbacks'](){this['subscriptions']['clear']();}},F2=class extends Event{constructor(_0xb961d8,t){super('context-provider',{'bubbles':!0x0,'composed':!0x0}),this['context']=_0xb961d8,this['contextTarget']=t;}},Z2=class extends H2{constructor(_0x38f861,t,_0xeab70c){super(void 0x0!==t['context']?t['initialValue']:_0xeab70c),this['onContextRequest']=_0x5b31bc=>{if(_0x5b31bc['context']!==this['context'])return;let _0x13c873=_0x5b31bc['contextTarget']??_0x5b31bc['composedPath']()[0x0];_0x13c873!==this['host']&&(_0x5b31bc['stopPropagation'](),this['addCallback'](_0x5b31bc['callback'],_0x13c873,_0x5b31bc['subscribe']));},this['onProviderRequest']=_0x4a0b73=>{if(_0x4a0b73['context']!==this['context']||(_0x4a0b73['contextTarget']??_0x4a0b73['composedPath']()[0x0])===this['host'])return;let _0x5c5dfb=new Set();for(let [_0x429a00,{consumerHost:_0x192c44}]of this['subscriptions'])_0x5c5dfb['has'](_0x429a00)||(_0x5c5dfb['add'](_0x429a00),_0x192c44['dispatchEvent'](new V2(this['context'],_0x192c44,_0x429a00,!0x0)));_0x4a0b73['stopPropagation']();},this['host']=_0x38f861,void 0x0!==t['context']?this['context']=t['context']:this['context']=t,this['attachListeners'](),this['host']['addController']?.(this);}attachListeners(){this['host']['addEventListener']('context-request',this['onContextRequest']),this['host']['addEventListener']('context-provider',this['onProviderRequest']);}hostConnected(){this['host']['dispatchEvent'](new F2(this['context'],this['host']));}},G2={'attribute':!0x0,'type':String,'converter':G1,'reflect':!0x1,'hasChanged':X1},X2=(_0x155140=G2,_0x3c82b5,t)=>{let {kind:_0x3853a8,metadata:_0x45455f}=t,_0x53142a=globalThis['litPropertyMetadata']['get'](_0x45455f);if(void 0x0===_0x53142a&&globalThis['litPropertyMetadata']['set'](_0x45455f,_0x53142a=new Map()),'setter'===_0x3853a8&&((_0x155140=Object['create'](_0x155140))['wrapped']=!0x0),_0x53142a['set'](t['name'],_0x155140),'accessor'===_0x3853a8){let {name:_0x3ddf0d}=t;return{'set'(_0x20d49b){let _0x3380f7=_0x3c82b5['get']['call'](this);_0x3c82b5['set']['call'](this,_0x20d49b),this['requestUpdate'](_0x3ddf0d,_0x3380f7,_0x155140,!0x0,_0x20d49b);},'init'(_0x2eb01c){return void 0x0!==_0x2eb01c&&this['C'](_0x3ddf0d,void 0x0,_0x155140,_0x2eb01c),_0x2eb01c;}};}if('setter'===_0x3853a8){let {name:_0x3f0431}=t;return function(_0x337fd3){let _0x36770b=this[_0x3f0431];_0x3c82b5['call'](this,_0x337fd3),this['requestUpdate'](_0x3f0431,_0x36770b,_0x155140,!0x0,_0x337fd3);};}throw Error('Unsupported\x20decorator\x20location:\x20'+_0x3853a8);};function q2(_0x172f18){return(_0x2f697a,t)=>'object'==typeof t?X2(_0x172f18,_0x2f697a,t):((_0x183719,_0x11d7c,_0x2f2f84)=>{let _0x50bf41=_0x11d7c['hasOwnProperty'](_0x2f2f84);return _0x11d7c['constructor']['createProperty'](_0x2f2f84,_0x183719),_0x50bf41?Object['getOwnPropertyDescriptor'](_0x11d7c,_0x2f2f84):void 0x0;})(_0x172f18,_0x2f697a,t);}function W2(_0x5ed3ce){return q2({..._0x5ed3ce,'state':!0x0,'attribute':!0x1});}function z2(_0x1147f9,_0x33db1a){let t,_0x16d451=(..._0x476b53)=>{t&&clearTimeout(t),t=setTimeout(()=>_0x1147f9(..._0x476b53),_0x33db1a);};return _0x16d451['cancel']=()=>{t&&clearTimeout(t);},_0x16d451;}var Y2='ctx-name-context';function K2(){return function(_0x449837){class _0x5030f5 extends _0x449837{constructor(..._0x5563c9){super(..._0x5563c9),this['ee']=null,this['Zt']=!0x1,this['Xr']=!0x1,this['Qr']=void 0x0,this['wt']=new Map(),this['Yt']=new Set(),this['init$']={},this['ctxOwner']=!0x1,this['Di']=void 0x0,this['Fi']=!0x1,this['ctxName']=this['Ae'],this['ke']=!0x1,this['Di']=this['getAttribute']('ctx-name')||void 0x0,this['ctxName']=this['Ae'],this['Nc']=new B2(this,{'context':Y2,'callback':_0x50de75=>{_0x50de75?(this['rn']=_0x50de75,this['tn']()):console['error']('SymbioteMixin:\x20Received\x20invalid\x20ctx-name\x20from\x20context');},'subscribe':!0x0});}static set template(_0x31c075){console['error']('Caution:\x20static\x20\x27template\x27\x20property\x20is\x20deprecated\x20and\x20has\x20no\x20effect.\x20See\x20https://github.com/uploadcare/file-uploader/releases/tag/v1.25.0\x20for\x20details.');}get['en'](){return this['Di'];}set['en'](_0x4d2e3e){let _0x1e034b=_0x4d2e3e??void 0x0;this['Di']!==_0x1e034b&&(this['Di']=_0x1e034b,this['tn']());}shouldUpdate(_0x2e54b4){return!!this['ke']&&super['shouldUpdate'](_0x2e54b4);}get['Ae'](){return this['en']||this['rn']||void 0x0;}tn(){if(this['ctxName']=this['Ae'],this['ctxName']&&!this['Zt']){if(this['isConnected'])return void this['Jr']();this['Fi']=!0x0;}}willUpdate(_0x131d06){super['willUpdate'](_0x131d06),this['ctxName']=this['Ae'],this['ctxName']&&(this['Qr']?this['Qr']['setValue'](this['ctxName']):this['Qr']=new Z2(this,{'context':Y2,'initialValue':this['ctxName']}));}['sn'](){if(this['ee']&&0x0!==this['wt']['size']){for(let [_0x38fa80,{value:_0x1a354a,rewrite:_0x4e5502}]of this['wt'])this['ee']['add'](_0x38fa80,_0x1a354a,_0x4e5502);this['wt']['clear']();}}['nn'](){return!this['ee']&&this['Ae']&&this['eo'](),this['ee']&&this['sn'](),this['ee'];}['Ni'](){let _0x3f87aa=this['nn']();if(!_0x3f87aa)throw new Error('SymbioteMixin:\x20Shared\x20context\x20is\x20not\x20initialized.');return _0x3f87aa;}['eo'](){let _0x4543bc=this['init$'],_0x5ec193=this['Ae'];if(_0x5ec193){if(!this['ee']){this['ee']=k1['getCtx'](_0x5ec193)??k1['registerCtx'](_0x4543bc,_0x5ec193);for(let [_0x3ffd78,_0x23d532]of Object['entries'](this['init$']))this['ee']['add'](_0x3ffd78,_0x23d532,this['ctxOwner']);this['sn']();}}else console['error']('SymbioteMixin:\x20ctx-name\x20is\x20required\x20for\x20components\x20with\x20shared\x20properties\x20(*)');}get['$'](){return this['Ae']&&this['eo'](),new Proxy({},{'get':(_0x1ce3f8,_0x267c8b)=>{if('string'==typeof _0x267c8b)return this['ee']?.['read'](_0x267c8b);},'set':(_0xce8f5b,_0x448dc3,_0x3d1257)=>('string'!=typeof _0x448dc3||this['ee']?.['pub'](_0x448dc3,_0x3d1257),!0x0)});}['sub'](_0x5aba61,_0x265a53,_0xb393c2=!0x0){let _0x567f8c=this['Ni']()['sub'](_0x5aba61,_0x265a53,_0xb393c2);if(!_0x567f8c||'function'!=typeof _0x567f8c)return()=>{};let _0x16902d=_0x567f8c['bind'](_0x567f8c),_0x53d6e1=!0x1,_0x5c81b4=()=>{_0x53d6e1||(_0x53d6e1=!0x0,_0x16902d(),this['Yt']['delete'](_0x5c81b4));};return this['Yt']['add'](_0x5c81b4),_0x5c81b4;}['pub'](_0x7aa2ca,_0x45f8fe){this['Ni']()['pub'](_0x7aa2ca,_0x45f8fe);}set$(_0x25b5b6){for(let [_0x5640d5,_0x289334]of Object['entries'](_0x25b5b6))this['pub'](_0x5640d5,_0x289334);}get sharedCtx(){return this['Ni']();}['has'](_0x504aa6){return this['ee']?.['has'](_0x504aa6)??!0x1;}['add'](_0x3c3576,_0x5c9df9,_0x3fd8d4=!0x1){let _0x530349=this['nn']();if(_0x530349)this['wt']['delete'](_0x3c3576),_0x530349['add'](_0x3c3576,_0x5c9df9,_0x3fd8d4);else{if(!_0x3fd8d4&&this['wt']['has'](_0x3c3576))return;this['wt']['set'](_0x3c3576,{'value':_0x5c9df9,'rewrite':_0x3fd8d4});}}['add$'](_0x4caf69,_0x375a8e=!0x1){for(let [_0x5c9aa3,_0x17510f]of Object['entries'](_0x4caf69))this['add'](_0x5c9aa3,_0x17510f,_0x375a8e);}connectedCallback(){super['connectedCallback'](),this['Zt']?this['ke']&&this['Xr']&&(this['Xr']=!0x1,this['initCallback']()):(this['ctxName']||this['Fi']&&this['Ae'])&&(this['Fi']=!0x1,this['Jr']());}['Jr'](){if(this['Zt'])return;this['Zt']=!0x0,this['eo']();let _0x4df680=this['init$'];if(Object['keys'](_0x4df680)['length']>0x0){let _0x4e914e=this['Ni']();for(let [_0x15e5fa,_0x553b87]of Object['entries'](_0x4df680))void 0x0===_0x4e914e['read'](_0x15e5fa)&&_0x4e914e['pub'](_0x15e5fa,_0x553b87),this['sub'](_0x15e5fa,z2(async()=>{this['isConnected']&&(await this['updateComplete'],this['requestUpdate']());},0x0),!0x1);}this['initCallback'](),this['ke']=!0x0,this['requestUpdate']();}firstUpdated(_0x3583cc){super['firstUpdated'](_0x3583cc);}disconnectedCallback(){this['Vc'](),super['disconnectedCallback'](),this['Zt']&&(this['Xr']=!0x0);}['Vc'](){if(0x0!==this['Yt']['size']){for(let _0x3ce3b7 of[...this['Yt']])_0x3ce3b7();this['Yt']['clear']();}}initCallback(){}}return _1([q2({'type':String,'attribute':'ctx-name','noAccessor':!0x0})],_0x5030f5['prototype'],'en',0x1),_1([W2()],_0x5030f5['prototype'],'rn',0x2),_1([W2()],_0x5030f5['prototype'],'ctxName',0x2),_1([W2()],_0x5030f5['prototype'],'ke',0x2),_0x5030f5;};}var J2=class extends U2(K2()(Q2(j2(L2)))){},t5=class o{static generateFastUid(){return'uid-'+Date['now']()['toString'](0x24)+'-'+Math['random']()['toString'](0x24)['slice'](0x2,0xb);}static generateRandomUUID(){let _0x2a0850=globalThis['crypto'];return _0x2a0850&&'function'==typeof _0x2a0850['randomUUID']?_0x2a0850['randomUUID']():o['generateFastUid']();}},e5=['UploaderBlock','ActivityBlock','Block','SolutionBlock'];function i5(_0x3844bf){for(let _0x10a883 in _0x3844bf){if(e5['includes'](_0x10a883))continue;let t=[..._0x10a883]['reduce']((_0x20d051,_0x2ec53f)=>(_0x2ec53f['toUpperCase']()===_0x2ec53f&&(_0x2ec53f='-'+_0x2ec53f['toLowerCase']()),_0x20d051+=_0x2ec53f),'');t['startsWith']('-')&&(t=t['replace']('-','')),t['startsWith']('uc-')||(t='uc-'+t),_0x3844bf[_0x10a883]['reg']&&_0x3844bf[_0x10a883]['reg'](t);}}var s5='UC';function n5(_0x3d6389,_0x41af5b=!0x1){return new Promise((t,_0x413e48)=>{if('object'!=typeof document)return void t(null);if('object'==typeof window&&window[s5])return void t(window[s5]);let _0x446f67=document['createElement']('script');_0x446f67['async']=!0x0,_0x446f67['src']=_0x3d6389,_0x446f67['onerror']=()=>{_0x413e48();},_0x446f67['onload']=()=>{let _0xf6be8c=window[s5];_0x41af5b&&i5(_0xf6be8c),t(_0xf6be8c);},document['head']['appendChild'](_0x446f67);});}var r5={'locale-id':'en','social-source-lang':'en','upload-file':'Upload\x20file','upload-files':'Upload\x20files','choose-file':'Choose\x20file','choose-files':'Choose\x20files','drop-files-here':'Drop\x20files\x20here','drop-file-here':'Drop\x20file\x20here','select-file-source':'Select\x20file\x20source','selected':'Selected','upload':'Upload','add-more':'Add\x20more','cancel':'Cancel','start-from-cancel':'Cancel','clear':'Clear','camera-shot':'Shot','upload-url':'Import','upload-url-placeholder':'Paste\x20link\x20here','edit-image':'Edit\x20image','edit-detail':'Details','back':'Back','done':'Done','ok':'Ok','remove-from-list':'Remove','no':'No','yes':'Yes','confirm-your-action':'Confirm\x20your\x20action','are-you-sure':'Are\x20you\x20sure?','selected-count':'{{count}}\x20of\x20{{total}}\x20selected','select-all':'Select\x20all','deselect-all':'Deselect\x20all','upload-error':'Upload\x20error','validation-error':'Validation\x20error','no-files':'No\x20files\x20selected','browse':'Browse','not-uploaded-yet':'Not\x20uploaded\x20yet...','file__one':'file','file__other':'files','error__one':'error','error__other':'errors','header-uploading':'Uploading\x20{{count}}\x20{{plural:file(count)}}','header-failed':'{{count}}\x20{{plural:error(count)}}','header-succeed':'{{count}}\x20{{plural:file(count)}}\x20uploaded','header-total':'{{count}}\x20{{plural:file(count)}}\x20selected','src-type-local':'From\x20device','src-type-from-url':'From\x20link','src-type-camera':'Camera','src-type-mobile-video-camera':'Video','src-type-mobile-photo-camera':'Photo','src-type-facebook':'Facebook','src-type-dropbox':'Dropbox','src-type-gdrive':'Google\x20Drive','src-type-ngdrive':'Google\x20Drive','src-type-gphotos':'Google\x20Photos','src-type-flickr':'Flickr','src-type-vk':'VK','src-type-evernote':'Evernote','src-type-box':'Box','src-type-onedrive':'OneDrive','src-type-huddle':'Huddle','src-type-other':'Other','caption-from-url':'Import\x20from\x20link','caption-camera':'Camera','caption-edit-file':'Edit\x20file','file-no-name':'No\x20name...','toggle-fullscreen':'Toggle\x20fullscreen','toggle-guides':'Toggle\x20guides','rotate':'Rotate','flip-vertical':'Flip\x20vertical','flip-horizontal':'Flip\x20horizontal','apply':'Apply','brightness':'Brightness','contrast':'Contrast','saturation':'Saturation','exposure':'Exposure','gamma':'Gamma','vibrance':'Vibrance','warmth':'Warmth','enhance':'Enhance','original':'Original','resize':'Resize\x20image','crop':'Crop','select-color':'Select\x20color','text':'Text','draw':'Draw','cancel-edit':'Cancel\x20edit','tab-view':'Preview','tab-details':'Details','file-name':'Name','file-size':'Size','cdn-url':'CDN\x20URL','file-size-unknown':'Unknown','camera-permissions-denied':'Camera\x20access\x20denied','camera-permissions-prompt':'Please\x20allow\x20access\x20to\x20the\x20camera','camera-permissions-request':'Request\x20access','files-count-limit-error-title':'Files\x20count\x20limit\x20overflow','files-count-limit-error-too-few':'You’ve\x20chosen\x20{{total}}\x20{{plural:file(total)}}.\x20At\x20least\x20{{min}}\x20{{plural:file(min)}}\x20required.','files-count-limit-error-too-many':'You’ve\x20chosen\x20too\x20many\x20files.\x20{{max}}\x20{{plural:file(max)}}\x20is\x20maximum.','files-max-size-limit-error':'File\x20is\x20too\x20big.\x20Max\x20file\x20size\x20is\x20{{maxFileSize}}.','has-validation-errors':'File\x20validation\x20error\x20occurred.\x20Please,\x20check\x20your\x20files\x20before\x20upload.','images-only-accepted':'Only\x20image\x20files\x20are\x20accepted.','file-type-not-allowed':'Uploading\x20of\x20these\x20file\x20types\x20is\x20not\x20allowed.','some-files-were-not-uploaded':'Some\x20files\x20were\x20not\x20uploaded.','file-item-edit-button':'Edit','file-item-remove-button':'Remove','a11y-editor-tab-filters':'Filters','a11y-editor-tab-tuning':'Tuning','a11y-editor-tab-crop':'Crop','a11y-activity-header-button-close':'Close','flip':'Flip','mirror':'Mirror','a11y-cloud-editor-apply-filter':'Apply\x20{{name}}\x20filter','a11y-cloud-editor-apply-crop':'Apply\x20{{name}}\x20operation','a11y-cloud-editor-apply-tuning':'Apply\x20{{name}}\x20tuning','a11y-cloud-editor-apply-aspect-ratio':'Apply\x20operation\x20{{name}}\x20{{value}}','finished':'Finished','failed':'Failed','uploading':'Uploading','idle':'Idle','a11y-file-item-status':'File\x20{{fileName}}\x20in\x20status\x20{{status}}','waiting-for':'Waiting\x20for\x20{{source}}','queued-uploading':'Queued\x20for\x20upload','queued-validation':'Queued\x20for\x20validation','validation':'Validating','crop-to-shape':'Crop\x20to\x20{{value}}','custom':'Freeform','freeform-crop':'Freeform\x20crop'},o5=new Map(),a5=new Map(),c5=(_0x17683b,_0x5a724a)=>{o5['has'](_0x17683b)&&console['log']('Locale\x20'+_0x17683b+'\x20is\x20already\x20defined.\x20Overwriting...');let t={...r5,..._0x5a724a};return o5['set'](_0x17683b,t),t;},l5=(_0x485126,_0x1b0a8f)=>{'function'==typeof _0x1b0a8f?((_0x40e5eb,_0x5b2a00)=>{a5['set'](_0x40e5eb,_0x5b2a00);})(_0x485126,_0x1b0a8f):c5(_0x485126,_0x1b0a8f);};l5('en',r5);var h5=_0x589301=>'*cfg/'+_0x589301,u5=_0x2e0c6f=>_0x2e0c6f?_0x2e0c6f['split'](',')['map'](_0x1a8b57=>_0x1a8b57['trim']())['filter'](Boolean):[],d5=_0x235d43=>_0x235d43['join'](','),f5=_0x227588=>{if('string'!=typeof _0x227588||!_0x227588)return'';let _0x57d2f2=_0x227588['trim']();return _0x57d2f2['startsWith']('-/')?_0x57d2f2=_0x57d2f2['slice'](0x2):_0x57d2f2['startsWith']('/')&&(_0x57d2f2=_0x57d2f2['slice'](0x1)),_0x57d2f2['endsWith']('/')&&(_0x57d2f2=_0x57d2f2['slice'](0x0,_0x57d2f2['length']-0x1)),_0x57d2f2;},m5=(..._0xf1957b)=>_0xf1957b['filter'](_0x2873d4=>'string'==typeof _0x2873d4&&!!_0x2873d4)['map'](_0x16acc6=>f5(_0x16acc6))['join']('/-/'),p5=(..._0x45ac0e)=>{let _0x41c9d5=m5(..._0x45ac0e);return _0x41c9d5?'-/'+_0x41c9d5+'/':'';};function g5(_0x4ea6f9){let _0x99d7b9=new URL(_0x4ea6f9),t=_0x99d7b9['pathname']+_0x99d7b9['search']+_0x99d7b9['hash'],_0x30c3b5=t['lastIndexOf']('http'),_0xadb6e2=t['lastIndexOf']('/'),_0x12a6cf='';return _0x30c3b5>=0x0?_0x12a6cf=t['slice'](_0x30c3b5):_0xadb6e2>=0x0&&(_0x12a6cf=t['slice'](_0xadb6e2+0x1)),_0x12a6cf;}function O5(_0x42520f){let {pathname:t}=new URL(_0x42520f),_0x691607=t['indexOf']('/'),_0x56573d=t['indexOf']('/',_0x691607+0x1);return t['substring'](_0x691607+0x1,_0x56573d);}function w5(_0x3d0020){let _0x3d2a82=y5(_0x3d0020),t=new URL(_0x3d2a82),_0x44527d=t['pathname']['indexOf']('/-/');return-0x1===_0x44527d?'':t['pathname']['substring'](_0x44527d)['slice'](0x1);}function b5(_0x108643){return w5(_0x108643)['split']('/-/')['filter'](Boolean)['map'](t=>f5(t));}function y5(_0x2b23a2){let _0x51cdb7=new URL(_0x2b23a2),t=g5(_0x2b23a2),_0x37a63b=v5(t)?_5(t)['pathname']:t;return _0x51cdb7['pathname']=_0x51cdb7['pathname']['replace'](_0x37a63b,''),_0x51cdb7['search']='',_0x51cdb7['hash']='',_0x51cdb7['toString']();}function v5(_0x3684ca){return _0x3684ca['startsWith']('http');}function _5(_0x1d041b){let _0x373f0f=new URL(_0x1d041b);return{'pathname':''+_0x373f0f['origin']+(_0x373f0f['pathname']??''),'search':_0x373f0f['search']??'','hash':_0x373f0f['hash']??''};}var E5=(_0x582082,_0x761498,t)=>{let _0x4ef67=new URL(y5(_0x582082)),_0x146af0=t??g5(_0x582082),_0x162c4d=_0x761498??'';if(_0x4ef67['pathname']['startsWith']('//')&&(_0x4ef67['pathname']=_0x4ef67['pathname']['replace']('//','/')),_0x146af0&&v5(_0x146af0)){let _0x16b5e5=_5(_0x146af0);_0x4ef67['pathname']=''+_0x4ef67['pathname']+_0x162c4d+(_0x16b5e5['pathname']||''),_0x4ef67['search']=_0x16b5e5['search'],_0x4ef67['hash']=_0x16b5e5['hash'];}else _0x4ef67['pathname']=''+_0x4ef67['pathname']+_0x162c4d+(_0x146af0||'');return _0x4ef67['toString']();},T5=(_0x3b5ecf,_0x351f22)=>{let t=new URL(_0x3b5ecf);return t['pathname']=_0x351f22+'/',t['toString']();},A5=(_0xb160d5,_0x19cca0=',')=>_0xb160d5['trim']()['split'](_0x19cca0)['map'](t=>t['trim']())['filter'](t=>t['length']>0x0),S5=Object['freeze']({'brightness':0x0,'exposure':0x0,'gamma':0x64,'contrast':0x0,'saturation':0x0,'vibrance':0x0,'warmth':0x0,'enhance':0x0,'filter':0x0,'rotate':0x0,'mirror':!0x1,'flip':!0x1,'crop':void 0x0}),I5=['enhance','brightness','exposure','gamma','contrast','saturation','vibrance','warmth','filter','mirror','flip','rotate','crop'];function k5(_0x2a9f73){return m5(...I5['filter'](_0x16af49=>typeof _0x2a9f73[_0x16af49]<'u'&&null!==_0x2a9f73[_0x16af49])['map'](_0x41df23=>function(_0x5d8aec,_0x120fd2){if('number'==typeof _0x120fd2){let t=_0x120fd2;return S5[_0x5d8aec]!==t?_0x5d8aec+'/'+t:'';}if('boolean'==typeof _0x120fd2){let t=_0x120fd2;return S5[_0x5d8aec]!==t?''+_0x5d8aec:'';}if('filter'===_0x5d8aec&&_0x120fd2){let {name:t,amount:_0x3fdb3a}=_0x120fd2;return S5['filter']===_0x3fdb3a?'':_0x5d8aec+'/'+t+'/'+_0x3fdb3a;}if('crop'===_0x5d8aec&&_0x120fd2){let {dimensions:t,coords:_0x47bf1a}=_0x120fd2;return _0x5d8aec+'/'+t['join']('x')+'/'+_0x47bf1a['join'](',');}return'';}(_0x41df23,_0x2a9f73[_0x41df23]))['filter'](_0x1cfce1=>!!_0x1cfce1));}var x5=m5('format/auto','progressive/yes'),C5=([_0x5b7d3a])=>typeof _0x5b7d3a<'u'?Number(_0x5b7d3a):void 0x0,R5=()=>!0x0,P5=Object['freeze']({'enhance':C5,'brightness':C5,'exposure':C5,'gamma':C5,'contrast':C5,'saturation':C5,'vibrance':C5,'warmth':C5,'filter':([_0x50a670,_0x4637c4])=>({'name':_0x50a670,'amount':typeof _0x4637c4<'u'?Number(_0x4637c4):0x64}),'mirror':R5,'flip':R5,'rotate':C5,'crop':_0x4174e6=>{let [_0xabea50,t]=_0x4174e6,{dimensions:_0x552ada,coords:_0x2d7e05}=(([_0x5c9352,_0x3d7bcd])=>{if(!/\d+x\d+/['test'](_0x5c9352)||!/\d+,\d+/['test'](_0x3d7bcd))throw new Error('Crop\x20by\x20aspect\x20ratio,\x20percentage\x20or\x20alignment\x20shortcuts\x20is\x20not\x20supported.');return{'dimensions':A5(_0x5c9352,'x')['map'](Number),'coords':A5(_0x3d7bcd)['map'](Number)};})([_0xabea50,t]);return{'dimensions':_0x552ada,'coords':_0x2d7e05};}});function N5(_0x9d5c0b){let _0x226aef={};for(let t of _0x9d5c0b){let [_0x5b7b5a,..._0x7bc782]=t['split']('/');if(!_0x5b7b5a||!I5['includes'](_0x5b7b5a))continue;let _0x5ee7c1=_0x5b7b5a,_0x207735=P5[_0x5ee7c1];try{_0x226aef[_0x5ee7c1]=_0x207735(_0x7bc782);}catch(_0x5f025c){console['warn'](['Failed\x20to\x20parse\x20URL\x20operation\x20\x22'+t+'\x22.\x20It\x20will\x20be\x20ignored.',_0x5f025c instanceof Error?'Error\x20message:\x20\x22'+_0x5f025c['message']+'\x22':_0x5f025c,'If\x20you\x20need\x20this\x20functionality,\x20please\x20feel\x20free\x20to\x20open\x20an\x20issue\x20at\x20https://github.com/uploadcare/blocks/issues/new']['join']('\x20'));}}return _0x226aef;}var M5=Object['freeze']({'CROP':'crop','TUNING':'tuning','FILTERS':'filters'}),L5=Object['freeze']([M5['CROP'],M5['TUNING'],M5['FILTERS']]),$5=Object['freeze'](['brightness','exposure','gamma','contrast','saturation','vibrance','warmth','enhance']),D5=Object['freeze'](['adaris','briaril','calarel','carris','cynarel','cyren','elmet','elonni','enzana','erydark','fenralan','ferand','galen','gavin','gethriel','iorill','iothari','iselva','jadis','lavra','misiara','namala','nerion','nethari','pamaya','sarnar','sedis','sewen','sorahel','sorlen','tarian','thellassan','varriel','varven','vevera','virkas','yedis','yllara','zatvel','zevcen']),Q5=Object['freeze'](['rotate','mirror','flip']),j5=S5,U5=Object['freeze']({'brightness':{'zero':j5['brightness'],'range':[-0x64,0x64],'keypointsNumber':0x2},'exposure':{'zero':j5['exposure'],'range':[-0x1f4,0x1f4],'keypointsNumber':0x2},'gamma':{'zero':j5['gamma'],'range':[0x0,0x3e8],'keypointsNumber':0x2},'contrast':{'zero':j5['contrast'],'range':[-0x64,0x1f4],'keypointsNumber':0x2},'saturation':{'zero':j5['saturation'],'range':[-0x64,0x1f4],'keypointsNumber':0x1},'vibrance':{'zero':j5['vibrance'],'range':[-0x64,0x1f4],'keypointsNumber':0x1},'warmth':{'zero':j5['warmth'],'range':[-0x64,0x64],'keypointsNumber':0x1},'enhance':{'zero':j5['enhance'],'range':[0x0,0x64],'keypointsNumber':0x1},'filter':{'zero':j5['filter'],'range':[0x0,0x64],'keypointsNumber':0x1}}),V5='https://ucarecdn.com',B5={'pubkey':'','multiple':!0x0,'multipleMin':0x0,'multipleMax':Number['MAX_SAFE_INTEGER'],'confirmUpload':!0x1,'imgOnly':!0x1,'accept':'','externalSourcesPreferredTypes':'','externalSourcesEmbedCss':'','store':'auto','cameraMirror':!0x1,'cameraCapture':'','sourceList':'local,\x20url,\x20camera,\x20dropbox,\x20gdrive','topLevelOrigin':'','maxLocalFileSizeBytes':0x0,'thumbSize':0x4c,'showEmptyList':!0x1,'useLocalImageEditor':!0x1,'removeCopyright':!0x1,'cropPreset':'','imageShrink':'','modalScrollLock':!0x0,'modalBackdropStrokes':!0x1,'sourceListWrap':!0x0,'remoteTabSessionKey':'','cdnCname':V5,'cdnCnamePrefixed':'https://ucarecd.net','baseUrl':'https://upload.uploadcare.com','socialBaseUrl':'https://social.uploadcare.com','secureSignature':'','secureExpire':'','secureDeliveryProxy':'','retryThrottledRequestMaxTimes':0x3,'retryNetworkErrorMaxTimes':0x3,'multipartMinFileSize':0x1900000,'multipartChunkSize':0x500000,'maxConcurrentRequests':0xa,'multipartMaxConcurrentRequests':0x4,'multipartMaxAttempts':0x3,'checkForUrlDuplicates':!0x1,'saveUrlForRecurrentUploads':!0x1,'groupOutput':!0x1,'userAgentIntegration':'','debug':!0x1,'metadata':null,'localeName':'en','localeDefinitionOverride':null,'secureUploadsExpireThreshold':0x927c0,'secureUploadsSignatureResolver':null,'secureDeliveryProxyUrlResolver':null,'iconHrefResolver':null,'fileValidators':[],'collectionValidators':[],'validationTimeout':0x3a98,'validationConcurrency':0x64,'cameraModes':'photo,\x20video','defaultCameraMode':null,'enableAudioRecording':!0x0,'enableVideoRecording':null,'maxVideoRecordingDuration':null,'mediaRecorderOptions':null,'filesViewMode':'list','gridShowFileNames':!0x1,'useCloudImageEditor':!0x0,'cloudImageEditorAutoOpen':!0x1,'cloudImageEditorTabs':d5(L5),'cloudImageEditorMaskHref':null,'testMode':!0x1,'qualityInsights':!0x0,'pasteScope':'local','plugins':[]},H5=Object['freeze'](B5),F5=(_0xf1fb4e,_0x2f7852)=>(...t)=>{let _0x30e954=_0xf1fb4e();if(!_0x30e954['read'](h5('debug')))return;let _0x463b7d=t;'function'==typeof t?.[0x0]&&(_0x463b7d=(0x0,t[0x0])());let _0x296f73=[_0x30e954['id'],_0x2f7852]['filter'](Boolean);console['log']('['+_0x296f73['join']('][')+']',..._0x463b7d);},Z5=class{constructor(_0x623cce){this['to']=new Set(),this['Be']=null,this['w']=F5(()=>this['i']['ctx'],this['constructor']['name']),this['i']=_0x623cce,this['e']=_0x623cce['ctx'];}['addSub'](_0x2a678c){this['to']['add'](_0x2a678c);}get['ze'](){if(!this['Be']){let _0x4c7797={};this['Be']=new Proxy(_0x4c7797,{'set':()=>{throw new Error('SharedInstance\x20cfg\x20proxy\x20is\x20read-only');},'get':(t,_0x528286)=>{if('string'!=typeof _0x528286)return;let _0x59118e=h5(_0x528286);return this['i']['ctx']['has'](_0x59118e)?this['i']['ctx']['read'](_0x59118e):H5[_0x528286];}});}return this['Be'];}destroy(){for(let _0x1a415b of this['to'])try{_0x1a415b();}catch{}this['to']['clear']();}},G5={'modalManager':'*modalManager','pluginManager':'*pluginManager','telemetryManager':'*telemetryManager','localeManager':'*localeManager','a11y':'*a11y','clipboard':'*clipboard','blocksRegistry':'*blocksRegistry','eventEmitter':'*eventEmitter','uploadCollection':'*uploadCollection','secureUploadsManager':'*secureUploadsManager','api':'*publicApi','validationManager':'*validationManager'},X5=(_0x4236d1,_0x3b734f,t=!0x0)=>{let _0x2fa7a2=_0x4236d1['has'](_0x3b734f),_0x5e40f6=_0x2fa7a2?_0x4236d1['read'](_0x3b734f):null;if(_0x2fa7a2&&_0x5e40f6||!t)return _0x5e40f6;throw new Error('Unexpected\x20error:\x20shared\x20instance\x20for\x20key\x20\x22'+String(_0x3b734f)+'\x22\x20is\x20not\x20available');},q5=_0xe9cb34=>({get 'ctx'(){return _0xe9cb34();},get 'modalManager'(){return X5(_0xe9cb34(),'*modalManager',!0x1);},get 'pluginManager'(){return X5(_0xe9cb34(),'*pluginManager');},get 'telemetryManager'(){return X5(_0xe9cb34(),'*telemetryManager');},get 'localeManager'(){return X5(_0xe9cb34(),'*localeManager');},get 'a11y'(){return X5(_0xe9cb34(),'*a11y');},get 'blocksRegistry'(){return X5(_0xe9cb34(),'*blocksRegistry');},get 'eventEmitter'(){return X5(_0xe9cb34(),'*eventEmitter');},get 'uploadCollection'(){return X5(_0xe9cb34(),'*uploadCollection');},get 'secureUploadsManager'(){return X5(_0xe9cb34(),'*secureUploadsManager',!0x1);},get 'api'(){return X5(_0xe9cb34(),'*publicApi');},get 'validationManager'(){return X5(_0xe9cb34(),'*validationManager');},'when'(_0x2b7525,t){let _0xfa69f7,_0x4299f1=G5[_0x2b7525],_0x13d683=_0xe9cb34(),_0x1ee4bd=_0x13d683['has'](_0x4299f1)?_0x13d683['read'](_0x4299f1):void 0x0;return _0x1ee4bd?(t(_0x1ee4bd),()=>{}):(_0xfa69f7=_0x13d683['sub'](_0x4299f1,_0xd512de=>{_0xd512de&&(t(_0xd512de),_0xfa69f7?.());}),_0xfa69f7);},'wait'(_0x183a89){return new Promise(t=>{let _0x347219;_0x347219=this['when'](_0x183a89,_0x35aa98=>{t(_0x35aa98),_0x347219?.();});});}}),W5=Object['freeze']({'ADD':'modal:add','DELETE':'modal:delete','OPEN':'modal:open','CLOSE':'modal:close','CLOSE_ALL':'modal:closeAll','DESTROY':'modal:destroy'}),z5=class extends Z5{constructor(){super(...arguments),this['He']=new Map(),this['ue']=new Set(),this['c']=new Map();}registerModal(t,_0x3ae940){this['He']['set'](t,_0x3ae940),this['q'](W5['ADD'],{'id':t,'modal':_0x3ae940});}deleteModal(t){let _0x150547=this['He']['get'](t);return!!_0x150547&&(this['He']['delete'](t),this['ue']['delete'](t),this['q'](W5['DELETE'],{'id':t,'modal':_0x150547}),!0x0);}['open'](t){let _0x25a106=this['He']['get'](t);return _0x25a106?(this['ue']['add'](t),this['q'](W5['OPEN'],{'modal':_0x25a106,'id':t}),!0x0):(this['w']('Modal\x20with\x20ID\x20\x22'+t+'\x22\x20not\x20found'),!0x1);}['close'](t){let _0x5144ca=this['He']['get'](t);return _0x5144ca&&this['ue']['has'](t)?(this['ue']['delete'](t),this['q'](W5['CLOSE'],{'id':t,'modal':_0x5144ca}),!0x0):(this['w']('Modal\x20with\x20ID\x20\x22'+t+'\x22\x20not\x20found\x20or\x20not\x20active'),!0x1);}toggle(t){return this['He']['has'](t)?this['ue']['has'](t)?this['close'](t):this['open'](t):(this['w']('Modal\x20with\x20ID\x20\x22'+t+'\x22\x20not\x20found'),!0x1);}get hasActiveModals(){return this['ue']['size']>0x0;}['back'](){if(0x0===this['ue']['size'])return this['w']('No\x20active\x20modals\x20to\x20go\x20back\x20from'),!0x1;let t=Array['from'](this['ue'])['pop']();return!!t&&this['close'](t);}['closeAll'](){let t=this['ue']['size'];return this['ue']['clear'](),this['q'](W5['CLOSE_ALL'],{}),t;}['subscribe'](t,_0x257309){return this['c']['has'](t)||this['c']['set'](t,new Set()),this['c']['get'](t)?.['add'](_0x257309),()=>this['unsubscribe'](t,_0x257309);}['unsubscribe'](t,_0x3eef98){this['c']['has'](t)&&this['c']['get'](t)?.['delete'](_0x3eef98);}['q'](t,_0x4f7097){if(this['c']['has'](t)){for(let _0xc2b963 of this['c']['get'](t)??new Set())try{_0xc2b963(_0x4f7097);}catch(_0x424233){this['i']['telemetryManager']['sendEventError'](_0x424233,'modal\x20subscriber'),this['w']('Error\x20in\x20modal\x20subscriber:',_0x424233);}}}destroy(){super['destroy'](),this['closeAll'](),this['He']['clear'](),this['c']['clear'](),this['q'](W5['DESTROY'],{});}},Y5=_0x5a7364=>_0x5a7364['match'](/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)?.['map'](_0x37a0b1=>_0x37a0b1['toLowerCase']())['join']('-');function K5(_0x176d3e){return'[object\x20Object]'===Object['prototype']['toString']['call'](_0x176d3e);}var J5=/\W|_/g;function t3(_0x267d4d){return _0x267d4d['split'](J5)['map']((_0x4e03ea,t)=>_0x4e03ea['charAt'](0x0)[t>0x0?'toUpperCase':'toLowerCase']()+_0x4e03ea['slice'](0x1))['join']('');}function e3(_0x3b58ac,{ignoreKeys:_0x2ebb38}={'ignoreKeys':[]}){return Array['isArray'](_0x3b58ac)?_0x3b58ac['map'](t=>i3(t,{'ignoreKeys':_0x2ebb38})):_0x3b58ac;}function i3(_0x3303e3,{ignoreKeys:_0x5c169b}={'ignoreKeys':[]}){if(Array['isArray'](_0x3303e3))return e3(_0x3303e3,{'ignoreKeys':_0x5c169b});if(!K5(_0x3303e3))return _0x3303e3;let t={};for(let _0xcd4081 of Object['keys'](_0x3303e3)){let _0x152e61=_0x3303e3[_0xcd4081];_0x5c169b['includes'](_0xcd4081)?t[_0xcd4081]=_0x152e61:(K5(_0x152e61)?_0x152e61=i3(_0x152e61,{'ignoreKeys':_0x5c169b}):Array['isArray'](_0x152e61)&&(_0x152e61=e3(_0x152e61,{'ignoreKeys':_0x5c169b})),t[t3(_0xcd4081)]=_0x152e61);}return t;}function s3({libraryName:_0xed9835,libraryVersion:_0x2edd67,userAgent:t,publicKey:_0x37a4db='',integration:_0x134438=''}){let _0x5ace09='JavaScript';return'string'==typeof t?t:'function'==typeof t?t({'publicKey':_0x37a4db,'libraryName':_0xed9835,'libraryVersion':_0x2edd67,'languageName':_0x5ace09,'integration':_0x134438}):[_0xed9835,_0x2edd67,_0x37a4db]['filter'](Boolean)['join']('/')+'\x20('+[_0x5ace09,_0x134438]['filter'](Boolean)['join'](';\x20')+')';}var n3={'factor':0x2,'time':0x64};function r3(_0x53d3cb,_0x40debc=n3){let t=0x0;return function _0x1af614(_0x345d60){let _0x5c5c75=Math['round'](_0x40debc['time']*_0x40debc['factor']**t);return _0x345d60({'attempt':t,'retry':_0x29c53a=>(_0x91b116=>new Promise(_0x596783=>setTimeout(_0x596783,_0x91b116)))(_0x29c53a??_0x5c5c75)['then'](()=>(t+=0x1,_0x1af614(_0x345d60)))});}(_0x53d3cb);}var o3=class extends Error{},a3=class o extends o3{originalProgressEvent;constructor(_0x498689){super(),this['name']='NetworkError',this['message']='Network\x20error',Object['setPrototypeOf'](this,o['prototype']),this['originalProgressEvent']=_0x498689;}},c3=(_0x17e8b3,_0x25bb4d)=>{_0x17e8b3&&(_0x17e8b3['aborted']?Promise['resolve']()['then'](_0x25bb4d):_0x17e8b3['addEventListener']('abort',()=>_0x25bb4d(),{'once':!0x0}));},l3=class o extends o3{['isCancel']=!0x0;constructor(_0x123838='Request\x20canceled'){super(_0x123838),this['name']='CancelError',Object['setPrototypeOf'](this,o['prototype']);}},h3=({check:_0x3ca077,interval:_0xa1d3dd=0x1f4,timeout:t,signal:_0x49ebb1})=>new Promise((_0xe9dd12,_0x42b0fe)=>{let _0x3e6611,_0x4519ab;c3(_0x49ebb1,()=>{_0x3e6611&&clearTimeout(_0x3e6611),_0x42b0fe(new l3('Poll\x20cancelled'));}),t&&(_0x4519ab=setTimeout(()=>{_0x3e6611&&clearTimeout(_0x3e6611),_0x42b0fe(new l3('Timed\x20out'));},t));let _0x11b18d=()=>{try{Promise['resolve'](_0x3ca077(_0x49ebb1))['then'](_0x70f3f9=>{_0x70f3f9?(_0x4519ab&&clearTimeout(_0x4519ab),_0xe9dd12(_0x70f3f9)):_0x3e6611=setTimeout(_0x11b18d,_0xa1d3dd);})['catch'](_0x45f1f9=>{_0x4519ab&&clearTimeout(_0x4519ab),_0x42b0fe(_0x45f1f9);});}catch(_0x55a838){_0x4519ab&&clearTimeout(_0x4519ab),_0x42b0fe(_0x55a838);}};_0x3e6611=setTimeout(_0x11b18d,0x0);}),u3='https://ucarecdn.com',d3='https://upload.uploadcare.com',f3=0x1,m3=0x3,p3=0x1900000,g3=0x500000,O3=0x4,w3='79ae88bd931ea68464d9',b3='application/octet-stream',y3=({method:_0x174bea,url:_0xa7e039,data:t,headers:_0x17f418={},signal:_0x38ce11,onProgress:_0x2a4f86})=>new Promise((_0x59feeb,_0xb6bc5f)=>{let _0x15ae95=new XMLHttpRequest(),_0x1d2071=_0x174bea?.['toUpperCase']()||'GET',_0x4a0fd1=!0x1;_0x15ae95['open'](_0x1d2071,_0xa7e039,!0x0),_0x17f418&&Object['entries'](_0x17f418)['forEach'](_0x43ca32=>{let [_0x585111,_0x218221]=_0x43ca32;typeof _0x218221<'u'&&!Array['isArray'](_0x218221)&&_0x15ae95['setRequestHeader'](_0x585111,_0x218221);}),_0x15ae95['responseType']='text',c3(_0x38ce11,()=>{_0x4a0fd1=!0x0,_0x15ae95['abort'](),_0xb6bc5f(new l3());}),_0x15ae95['onload']=()=>{if(0xc8!=_0x15ae95['status'])_0xb6bc5f(new Error('Error\x20'+_0x15ae95['status']+':\x20'+_0x15ae95['statusText']));else{let _0x40dfb3={'method':_0x1d2071,'url':_0xa7e039,'data':t,'headers':_0x17f418||void 0x0,'signal':_0x38ce11,'onProgress':_0x2a4f86},_0x4baae0=_0x15ae95['getAllResponseHeaders']()['trim']()['split'](/[\r\n]+/),_0x7ed940={};_0x4baae0['forEach'](function(_0x2947e5){let _0x44086f=_0x2947e5['split'](':\x20'),_0x5ec7cf=_0x44086f['shift'](),_0x439d7e=_0x44086f['join'](':\x20');_0x5ec7cf&&typeof _0x5ec7cf<'u'&&(_0x7ed940[_0x5ec7cf]=_0x439d7e);});let _0x4478e4=_0x15ae95['response'],_0x421b16=_0x15ae95['status'];_0x59feeb({'request':_0x40dfb3,'data':_0x4478e4,'headers':_0x7ed940,'status':_0x421b16});}},_0x15ae95['onerror']=_0x4fb001=>{_0x4a0fd1||_0xb6bc5f(new a3(_0x4fb001));},_0x2a4f86&&'function'==typeof _0x2a4f86&&(_0x15ae95['upload']['onprogress']=_0x4b24c1=>{_0x4b24c1['lengthComputable']?_0x2a4f86({'isComputable':!0x0,'value':_0x4b24c1['loaded']/_0x4b24c1['total']}):_0x2a4f86({'isComputable':!0x1});}),t?_0x15ae95['send'](t):_0x15ae95['send']();}),v3=function(_0x5abd89,..._0x2afe39){return _0x5abd89;},_3=_0x3ce3a0=>typeof Blob<'u'&&_0x3ce3a0 instanceof Blob,E3=_0x101112=>typeof File<'u'&&_0x101112 instanceof File,T3=_0x52acc9=>!!_0x52acc9&&'object'==typeof _0x52acc9&&!Array['isArray'](_0x52acc9)&&'uri'in _0x52acc9&&'string'==typeof _0x52acc9['uri'],A3=_0x4104d0=>_3(_0x4104d0)||E3(_0x4104d0)||T3(_0x4104d0);function S3(_0x5be017,_0x5e7295,t){if(Array['isArray'](t)){for(let _0x3a51de of t)S3(_0x5be017,_0x5e7295+'[]',_0x3a51de);}else{if((_0x525c16=>!!_0x525c16&&'object'==typeof _0x525c16&&'data'in _0x525c16&&A3(_0x525c16['data']))(t)){let {name:_0x126d35,contentType:_0x4041fe}=t,_0xbf914a=v3(t['data'],_0x126d35,_0x4041fe??b3),_0x30f087=(({name:_0x2e3d55})=>_0x2e3d55?[_0x2e3d55]:[])({'name':_0x126d35});_0x5be017['push']([_0x5e7295,_0xbf914a,..._0x30f087]);}else{if((_0x575a87=>!!_0x575a87&&'object'==typeof _0x575a87&&!Array['isArray'](_0x575a87))(t)){for(let [_0x458648,_0x48a67e]of Object['entries'](t))typeof _0x48a67e<'u'&&_0x5be017['push']([_0x5e7295+'['+_0x458648+']',String(_0x48a67e)]);}else(_0xff8da4=>'string'==typeof _0xff8da4||'number'==typeof _0xff8da4||typeof _0xff8da4>'u')(t)&&t&&_0x5be017['push']([_0x5e7295,t['toString']()]);}}}function I3(_0x35d46f){let _0x1875ca=new FormData(),t=function(_0x341725){let _0x528a82=[];for(let [t,_0x56e0fc]of Object['entries'](_0x341725))S3(_0x528a82,t,_0x56e0fc);return _0x528a82;}(_0x35d46f);for(let _0x291691 of t){let [_0x35083c,_0x2be86c,..._0x39225d]=_0x291691;_0x1875ca['append'](_0x35083c,_0x2be86c,..._0x39225d);}return _0x1875ca;}var k3=class o extends o3{['code'];request;['response'];['headers'];constructor(_0x1f2161,t,_0x63e131,_0x4ac6ad,_0x24b4fe){super(),this['name']='UploadError',this['message']=_0x1f2161,this['code']=t,this['request']=_0x63e131,this['response']=_0x4ac6ad,this['headers']=_0x24b4fe,Object['setPrototypeOf'](this,o['prototype']);}},x3=(_0x3a5679,_0x2903b4,t)=>{let _0x1338c3=new URL(_0x3a5679);return _0x1338c3['pathname']=(_0x1338c3['pathname']+_0x2903b4)['replace']('//','/'),t&&(_0x1338c3['search']=(_0x4cef1b=>{let _0x54b274=new URLSearchParams();for(let [t,_0x3353d2]of Object['entries'](_0x4cef1b))_0x3353d2&&'object'==typeof _0x3353d2&&!Array['isArray'](_0x3353d2)?Object['entries'](_0x3353d2)['filter'](_0x1f560d=>_0x1f560d[0x1]??!0x1)['forEach'](_0x507925=>_0x54b274['set'](t+'['+_0x507925[0x0]+']',String(_0x507925[0x1]))):Array['isArray'](_0x3353d2)?_0x3353d2['forEach'](_0x40fa5f=>{_0x54b274['append'](t+'[]',_0x40fa5f);}):'string'==typeof _0x3353d2&&_0x3353d2?_0x54b274['set'](t,_0x3353d2):'number'==typeof _0x3353d2&&_0x54b274['set'](t,_0x3353d2['toString']());return _0x54b274['toString']();})(t)),_0x1338c3['toString']();};function C3(_0x1640f4){return s3({'libraryName':'UploadcareUploadClient','libraryVersion':'6.18.4',..._0x1640f4});}function R3(_0x26dc8f,_0x55e461){let {retryThrottledRequestMaxTimes:t,retryNetworkErrorMaxTimes:_0x191e0f}=_0x55e461;return r3(({attempt:_0xe68ec9,retry:_0x1e1799})=>_0x26dc8f()['catch'](_0x1c9f4b=>{if('response'in _0x1c9f4b&&'RequestThrottledError'===_0x1c9f4b?.['code']&&_0xe68ec9<t)return _0x1e1799(function(_0x3ccece){let {headers:_0x2fc9fd}=_0x3ccece||{};if(!_0x2fc9fd||'string'!=typeof _0x2fc9fd['retry-after'])return 0x3a98;let t=parseInt(_0x2fc9fd['retry-after'],0xa);return Number['isFinite'](t)?0x3e8*t:0x3a98;}(_0x1c9f4b));if(_0x1c9f4b instanceof a3&&_0xe68ec9<_0x191e0f)return _0x1e1799(0x3e8*(_0xe68ec9+0x1));throw _0x1c9f4b;}));}var P3,N3,M3=_0x32d2fd=>{let _0x4a68f6='';return(_3(_0x32d2fd)||E3(_0x32d2fd)||T3(_0x32d2fd))&&(_0x4a68f6=_0x32d2fd['type']),_0x4a68f6||b3;},L3=_0x566bd7=>{let _0x2421ce='';return E3(_0x566bd7)&&_0x566bd7['name']?_0x2421ce=_0x566bd7['name']:_3(_0x566bd7)?_0x2421ce='':T3(_0x566bd7)&&_0x566bd7['name']&&(_0x2421ce=_0x566bd7['name']),_0x2421ce||'original';};function $3(_0x3173bf){return typeof _0x3173bf>'u'||'auto'===_0x3173bf?'auto':_0x3173bf?'1':'0';}!function(_0x5c151d){_0x5c151d['Token']='token',_0x5c151d['FileInfo']='file_info';}(P3||(P3={})),function(_0x5502c6){_0x5502c6['Unknown']='unknown',_0x5502c6['Waiting']='waiting',_0x5502c6['Progress']='progress',_0x5502c6['Error']='error',_0x5502c6['Success']='success';}(N3||(N3={}));function D3(_0x377b59,{publicKey:_0x3e2edb,baseURL:t=d3,signal:_0x55875a,integration:_0x2c22f5,userAgent:_0x191006,retryThrottledRequestMaxTimes:_0x21a076=f3,retryNetworkErrorMaxTimes:_0x2343fa=m3}={}){return R3(()=>y3({'method':'GET','headers':_0x3e2edb?{'X-UC-User-Agent':C3({'publicKey':_0x3e2edb,'integration':_0x2c22f5,'userAgent':_0x191006})}:void 0x0,'url':x3(t,'/from_url/status/',{'jsonerrors':0x1,'token':_0x377b59}),'signal':_0x55875a})['then'](({data:_0x554794,headers:_0x532237,request:_0x2fad72})=>{let _0x3a8cce=i3(JSON['parse'](_0x554794));if('error'in _0x3a8cce&&!(_0x6ff083=>'status'in _0x6ff083&&_0x6ff083['status']===N3['Error'])(_0x3a8cce))throw new k3(_0x3a8cce['error']['content'],_0x3a8cce['error']['errorCode'],_0x2fad72,_0x3a8cce,_0x532237);return _0x3a8cce;}),{'retryNetworkErrorMaxTimes':_0x2343fa,'retryThrottledRequestMaxTimes':_0x21a076});}function Q3(_0x14eea0,{publicKey:_0x358814,baseURL:t=d3,signal:_0x21b184,source:_0x3456ef,integration:_0x46ef62,userAgent:_0x52d9ba,retryThrottledRequestMaxTimes:_0x568ced=f3,retryNetworkErrorMaxTimes:_0x321d31=m3}){return R3(()=>y3({'method':'GET','headers':{'X-UC-User-Agent':C3({'publicKey':_0x358814,'integration':_0x46ef62,'userAgent':_0x52d9ba})},'url':x3(t,'/info/',{'jsonerrors':0x1,'pub_key':_0x358814,'file_id':_0x14eea0,'source':_0x3456ef}),'signal':_0x21b184})['then'](({data:_0x2101bf,headers:_0x12f57a,request:_0xf584a9})=>{let _0x4a2451=i3(JSON['parse'](_0x2101bf));if('error'in _0x4a2451)throw new k3(_0x4a2451['error']['content'],_0x4a2451['error']['errorCode'],_0xf584a9,_0x4a2451,_0x12f57a);return _0x4a2451;}),{'retryThrottledRequestMaxTimes':_0x568ced,'retryNetworkErrorMaxTimes':_0x321d31});}function j3(_0x39d076,{publicKey:_0x2bf44b,baseURL:t,source:_0x5b1793,integration:_0xcb7d34,userAgent:_0x4a5e7b,retryThrottledRequestMaxTimes:_0x4f1500,retryNetworkErrorMaxTimes:_0x475f6d,signal:_0x2e284b,onProgress:_0x969ba}){return h3({'check':_0x2892e7=>Q3(_0x39d076,{'publicKey':_0x2bf44b,'baseURL':t,'signal':_0x2892e7,'source':_0x5b1793,'integration':_0xcb7d34,'userAgent':_0x4a5e7b,'retryThrottledRequestMaxTimes':_0x4f1500,'retryNetworkErrorMaxTimes':_0x475f6d})['then'](_0x3a56fb=>_0x3a56fb['isReady']?_0x3a56fb:(_0x969ba&&_0x969ba({'isComputable':!0x0,'value':0x1}),!0x1)),'signal':_0x2e284b});}var U3=class{['uuid'];['name'];['size'];isStored;['isImage'];['mimeType'];['cdnUrl'];['s3Url'];['originalFilename'];['imageInfo'];['videoInfo'];contentInfo;metadata;s3Bucket;defaultEffects=null;constructor(_0x50f0ca,{baseCDN:t=u3,fileName:_0x476662}={}){let {uuid:_0x188c9f,s3Bucket:_0xca6fc5}=_0x50f0ca,_0x4ccf11=x3(t,_0x188c9f+'/'),_0x87663b=_0xca6fc5?x3('https://'+_0xca6fc5+'.s3.amazonaws.com/',_0x188c9f+'/'+_0x50f0ca['filename']):null;this['uuid']=_0x188c9f,this['name']=_0x476662||_0x50f0ca['filename'],this['size']=_0x50f0ca['size'],this['isStored']=_0x50f0ca['isStored'],this['isImage']=_0x50f0ca['isImage'],this['mimeType']=_0x50f0ca['mimeType'],this['cdnUrl']=_0x4ccf11,this['originalFilename']=_0x50f0ca['originalFilename'],this['imageInfo']=_0x50f0ca['imageInfo'],this['videoInfo']=_0x50f0ca['videoInfo'],this['contentInfo']=_0x50f0ca['contentInfo'],this['metadata']=_0x50f0ca['metadata']||null,this['s3Bucket']=_0xca6fc5||null,this['s3Url']=_0x87663b,function(_0x19e265){return'defaultEffects'in _0x19e265;}(_0x50f0ca)&&(this['defaultEffects']=_0x50f0ca['defaultEffects']);}},V3=(_0x22e95d,{publicKey:_0x29ce30,fileName:t,baseURL:_0x49b09d,secureSignature:_0x8d75d4,secureExpire:_0xe8d7f1,store:_0x301ca3,contentType:_0x5e42e7,signal:_0x835a,onProgress:_0xcd2833,source:_0x1da16d,integration:_0x387fde,userAgent:_0x2294db,retryThrottledRequestMaxTimes:_0x54dffe,retryNetworkErrorMaxTimes:_0x355295,baseCDN:_0x59d1ce,metadata:_0x88f22f})=>function(_0x10b2fa,{publicKey:_0x9872ca,fileName:t,contentType:_0x26fab1,baseURL:_0x59715f=d3,secureSignature:_0x1bbe7e,secureExpire:_0x5b8c9e,store:_0x42b7d7,signal:_0x120f9c,onProgress:_0x6c9dc4,source:_0x3ddfd0='local',integration:_0x336081,userAgent:_0x169298,retryThrottledRequestMaxTimes:_0x3ce1a5=f3,retryNetworkErrorMaxTimes:_0x372726=m3,metadata:_0x293466}){return R3(()=>y3({'method':'POST','url':x3(_0x59715f,'/base/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':C3({'publicKey':_0x9872ca,'integration':_0x336081,'userAgent':_0x169298})},'data':I3({'file':{'data':_0x10b2fa,'name':t||L3(_0x10b2fa),'contentType':_0x26fab1||M3(_0x10b2fa)},'UPLOADCARE_PUB_KEY':_0x9872ca,'UPLOADCARE_STORE':$3(_0x42b7d7),'signature':_0x1bbe7e,'expire':_0x5b8c9e,'source':_0x3ddfd0,'metadata':_0x293466}),'signal':_0x120f9c,'onProgress':_0x6c9dc4})['then'](({data:_0x298adc,headers:_0x34432b,request:_0x29fb6a})=>{let _0x3a0ab9=i3(JSON['parse'](_0x298adc));if('error'in _0x3a0ab9)throw new k3(_0x3a0ab9['error']['content'],_0x3a0ab9['error']['errorCode'],_0x29fb6a,_0x3a0ab9,_0x34432b);return _0x3a0ab9;}),{'retryNetworkErrorMaxTimes':_0x372726,'retryThrottledRequestMaxTimes':_0x3ce1a5});}(_0x22e95d,{'publicKey':_0x29ce30,'fileName':t,'contentType':_0x5e42e7,'baseURL':_0x49b09d,'secureSignature':_0x8d75d4,'secureExpire':_0xe8d7f1,'store':_0x301ca3,'signal':_0x835a,'onProgress':_0xcd2833,'source':_0x1da16d,'integration':_0x387fde,'userAgent':_0x2294db,'retryThrottledRequestMaxTimes':_0x54dffe,'retryNetworkErrorMaxTimes':_0x355295,'metadata':_0x88f22f})['then'](({file:_0x551874})=>j3(_0x551874,{'publicKey':_0x29ce30,'baseURL':_0x49b09d,'source':_0x1da16d,'integration':_0x387fde,'userAgent':_0x2294db,'retryThrottledRequestMaxTimes':_0x54dffe,'retryNetworkErrorMaxTimes':_0x355295,'onProgress':_0xcd2833,'signal':_0x835a}))['then'](_0x43f63f=>new U3(_0x43f63f,{'baseCDN':_0x59d1ce})),B3=(_0x60b68c,{signal:_0x3632af}={})=>{let t=null,_0x5f05e8=null,_0x9ad3bd=_0x60b68c['map'](()=>new AbortController());return c3(_0x3632af,()=>{_0x9ad3bd['forEach'](_0xca38b5=>_0xca38b5['abort']());}),Promise['all'](_0x60b68c['map']((_0x2343b9,_0xdb204f)=>{let _0x4ca3c6=(_0x302424=>()=>{_0x5f05e8=_0x302424,_0x9ad3bd['forEach']((_0x36f8aa,_0x41f1d7)=>_0x41f1d7!==_0x302424&&_0x36f8aa['abort']());})(_0xdb204f);return Promise['resolve']()['then'](()=>_0x2343b9({'stopRace':_0x4ca3c6,'signal':_0x9ad3bd[_0xdb204f]['signal']}))['then'](_0x3000f7=>(_0x4ca3c6(),_0x3000f7))['catch'](_0x4849ce=>(t=_0x4849ce,null));}))['then'](_0x57ff41=>{if(null===_0x5f05e8)throw t;return _0x57ff41[_0x5f05e8];});},H3=window['WebSocket'],F3=class{events=Object['create']({});emit(_0x24e45c,t){this['events'][_0x24e45c]?.['forEach'](_0x2e3b69=>_0x2e3b69(t));}['on'](_0x59bcdd,t){this['events'][_0x59bcdd]=this['events'][_0x59bcdd]||[],this['events'][_0x59bcdd]['push'](t);}['off'](_0x3dd668,t){this['events'][_0x3dd668]=t?this['events'][_0x3dd668]['filter'](_0x4c751a=>_0x4c751a!==t):[];}},Z3=class{['key'];disconnectTime;['ws']=void 0x0;['queue']=[];isConnected=!0x1;['subscribers']=0x0;emmitter=new F3();disconnectTimeoutId=null;constructor(_0x194614,t=0x7530){this['key']=_0x194614,this['disconnectTime']=t;}connect(){if(this['disconnectTimeoutId']&&clearTimeout(this['disconnectTimeoutId']),!this['isConnected']&&!this['ws']){let _0x54c806='wss://ws.pusherapp.com/app/'+this['key']+'?protocol=5&client=js&version=1.12.2';this['ws']=new H3(_0x54c806),this['ws']['addEventListener']('error',t=>{this['emmitter']['emit']('error',new Error(t['message']));}),this['emmitter']['on']('connected',()=>{this['isConnected']=!0x0,this['queue']['forEach'](t=>this['send'](t['event'],t['data'])),this['queue']=[];}),this['ws']['addEventListener']('message',t=>{let _0x517a00=JSON['parse'](t['data']['toString']());switch(_0x517a00['event']){case'pusher:connection_established':this['emmitter']['emit']('connected',void 0x0);break;case'pusher:ping':this['send']('pusher:pong',{});break;case'progress':case'success':case'fail':this['emmitter']['emit'](_0x517a00['channel'],((_0xac18ff,_0x543bf9)=>'success'===_0xac18ff?{'status':N3['Success'],..._0x543bf9}:'progress'===_0xac18ff?{'status':N3['Progress'],..._0x543bf9}:{'status':N3['Error'],..._0x543bf9})(_0x517a00['event'],JSON['parse'](_0x517a00['data'])));}});}}disconnect(){let _0x1299fb=()=>{this['ws']?.['close'](),this['ws']=void 0x0,this['isConnected']=!0x1;};this['disconnectTime']?this['disconnectTimeoutId']=setTimeout(()=>{_0x1299fb();},this['disconnectTime']):_0x1299fb();}['send'](_0x18cc41,t){let _0x4b058d=JSON['stringify']({'event':_0x18cc41,'data':t});this['ws']?.['send'](_0x4b058d);}['subscribe'](_0x15d0b2,t){this['subscribers']+=0x1,this['connect']();let _0x4e0817='task-status-'+_0x15d0b2,_0x12678e={'event':'pusher:subscribe','data':{'channel':_0x4e0817}};this['emmitter']['on'](_0x4e0817,t),this['isConnected']?this['send'](_0x12678e['event'],_0x12678e['data']):this['queue']['push'](_0x12678e);}['unsubscribe'](_0x26c46f){this['subscribers']-=0x1;let t='task-status-'+_0x26c46f,_0x473f63={'event':'pusher:unsubscribe','data':{'channel':t}};this['emmitter']['off'](t),this['isConnected']?this['send'](_0x473f63['event'],_0x473f63['data']):this['queue']=this['queue']['filter'](_0x267a95=>_0x267a95['data']['channel']!==t),0x0===this['subscribers']&&this['disconnect']();}['onError'](_0x128e10){return this['emmitter']['on']('error',_0x128e10),()=>this['emmitter']['off']('error',_0x128e10);}},G3=null,X3=_0x317849=>(G3||(G3=new Z3(_0x317849,typeof window>'u'?0x0:0x7530)),G3),q3=(_0x13b8c3,{publicKey:_0x2fe24d,fileName:t,baseURL:_0x3c06f3,baseCDN:_0x27cfd8,checkForUrlDuplicates:_0x42e55c,saveUrlForRecurrentUploads:_0xef49d,secureSignature:_0x2e5512,secureExpire:_0x57f187,store:_0x1ff45b,signal:_0x415511,onProgress:_0x5e2d1a,source:_0x5bdf5a,integration:_0x41cfa3,userAgent:_0x28ae3f,retryThrottledRequestMaxTimes:_0x51236c,pusherKey:_0x58608b=w3,metadata:_0xd1fccf})=>Promise['resolve']((_0x416aec=>{X3(_0x416aec)['connect']();})(_0x58608b))['then'](()=>function(_0x3a3e4b,{publicKey:_0x424761,baseURL:t=d3,store:_0x485b2c,fileName:_0x39d1e0,checkForUrlDuplicates:_0x3638d0,saveUrlForRecurrentUploads:_0x154ea1,secureSignature:_0x15e3d3,secureExpire:_0x2d737c,source:_0x2143f3='url',signal:_0x30ff26,integration:_0x40d38d,userAgent:_0x126d33,retryThrottledRequestMaxTimes:_0x537491=f3,retryNetworkErrorMaxTimes:_0x4a208c=m3,metadata:_0x20db06}){return R3(()=>y3({'method':'POST','headers':{'X-UC-User-Agent':C3({'publicKey':_0x424761,'integration':_0x40d38d,'userAgent':_0x126d33})},'url':x3(t,'/from_url/',{'jsonerrors':0x1,'pub_key':_0x424761,'source_url':_0x3a3e4b,'store':$3(_0x485b2c),'filename':_0x39d1e0,'check_URL_duplicates':_0x3638d0?0x1:void 0x0,'save_URL_duplicates':_0x154ea1?0x1:void 0x0,'signature':_0x15e3d3,'expire':_0x2d737c,'source':_0x2143f3,'metadata':_0x20db06}),'signal':_0x30ff26})['then'](({data:_0x45ab34,headers:_0x1b7356,request:_0x3bddca})=>{let _0x3f39a2=i3(JSON['parse'](_0x45ab34));if('error'in _0x3f39a2)throw new k3(_0x3f39a2['error']['content'],_0x3f39a2['error']['errorCode'],_0x3bddca,_0x3f39a2,_0x1b7356);return _0x3f39a2;}),{'retryNetworkErrorMaxTimes':_0x4a208c,'retryThrottledRequestMaxTimes':_0x537491});}(_0x13b8c3,{'publicKey':_0x2fe24d,'fileName':t,'baseURL':_0x3c06f3,'checkForUrlDuplicates':_0x42e55c,'saveUrlForRecurrentUploads':_0xef49d,'secureSignature':_0x2e5512,'secureExpire':_0x57f187,'store':_0x1ff45b,'signal':_0x415511,'source':_0x5bdf5a,'integration':_0x41cfa3,'userAgent':_0x28ae3f,'retryThrottledRequestMaxTimes':_0x51236c,'metadata':_0xd1fccf}))['catch'](_0x1a504a=>(X3(_0x58608b)?.['disconnect'](),Promise['reject'](_0x1a504a)))['then'](_0x493d08=>_0x493d08['type']===P3['FileInfo']?_0x493d08:B3([({signal:_0x186f81})=>function({token:_0x412073,publicKey:_0x26d5a8,baseURL:t,integration:_0x4a993f,userAgent:_0x2fbe55,retryThrottledRequestMaxTimes:_0x312ab7,retryNetworkErrorMaxTimes:_0x5e18b1,onProgress:_0x5e7495,signal:_0x464aef}){return h3({'check':_0x3480d0=>D3(_0x412073,{'publicKey':_0x26d5a8,'baseURL':t,'integration':_0x4a993f,'userAgent':_0x2fbe55,'retryThrottledRequestMaxTimes':_0x312ab7,'retryNetworkErrorMaxTimes':_0x5e18b1,'signal':_0x3480d0})['then'](_0x59bfcd=>{switch(_0x59bfcd['status']){case N3['Error']:return new k3(_0x59bfcd['error'],_0x59bfcd['errorCode']);case N3['Waiting']:return!0x1;case N3['Unknown']:return new k3('Token\x20\x22'+_0x412073+'\x22\x20was\x20not\x20found.');case N3['Progress']:return _0x5e7495&&('unknown'===_0x59bfcd['total']?_0x5e7495({'isComputable':!0x1}):_0x5e7495({'isComputable':!0x0,'value':_0x59bfcd['done']/_0x59bfcd['total']})),!0x1;case N3['Success']:return _0x5e7495&&_0x5e7495({'isComputable':!0x0,'value':_0x59bfcd['done']/_0x59bfcd['total']}),_0x59bfcd;default:throw new Error('Unknown\x20status');}}),'signal':_0x464aef});}({'token':_0x493d08['token'],'publicKey':_0x2fe24d,'baseURL':_0x3c06f3,'integration':_0x41cfa3,'userAgent':_0x28ae3f,'retryThrottledRequestMaxTimes':_0x51236c,'onProgress':_0x5e2d1a,'signal':_0x186f81}),({signal:_0x425cc3})=>(({token:_0x55dd23,pusherKey:_0x25062a,signal:t,onProgress:_0x24d673})=>new Promise((_0x1b3e7f,_0xa9c429)=>{let _0x1305ab=X3(_0x25062a),_0x58cad5=_0x1305ab['onError'](_0xa9c429),_0x5bc9c0=()=>{_0x58cad5(),_0x1305ab['unsubscribe'](_0x55dd23);};c3(t,()=>{_0x5bc9c0(),_0xa9c429(new l3('pusher\x20cancelled'));}),_0x1305ab['subscribe'](_0x55dd23,_0x23a7b3=>{switch(_0x23a7b3['status']){case N3['Progress']:_0x24d673&&('unknown'===_0x23a7b3['total']?_0x24d673({'isComputable':!0x1}):_0x24d673({'isComputable':!0x0,'value':_0x23a7b3['done']/_0x23a7b3['total']}));break;case N3['Success']:_0x5bc9c0(),_0x24d673&&_0x24d673({'isComputable':!0x0,'value':_0x23a7b3['done']/_0x23a7b3['total']}),_0x1b3e7f(_0x23a7b3);break;case N3['Error']:_0x5bc9c0(),_0xa9c429(new k3(_0x23a7b3['msg'],_0x23a7b3['error_code']));}});}))({'token':_0x493d08['token'],'pusherKey':_0x58608b,'signal':_0x425cc3,'onProgress':_0x5e2d1a})],{'signal':_0x415511}))['then'](_0x41eaaa=>{if(_0x41eaaa instanceof k3)throw _0x41eaaa;return _0x41eaaa;})['then'](_0x7c2d10=>j3(_0x7c2d10['uuid'],{'publicKey':_0x2fe24d,'baseURL':_0x3c06f3,'integration':_0x41cfa3,'userAgent':_0x28ae3f,'retryThrottledRequestMaxTimes':_0x51236c,'onProgress':_0x5e2d1a,'signal':_0x415511}))['then'](_0x20f81e=>new U3(_0x20f81e,{'baseCDN':_0x27cfd8})),W3=new WeakMap(),z3=async _0x3f98a5=>{if(E3(_0x3f98a5)||_3(_0x3f98a5))return _0x3f98a5['size'];if(T3(_0x3f98a5))return(await(async _0x171abe=>{if(W3['has'](_0x171abe))return W3['get'](_0x171abe);let _0x5ea9e8=await fetch(_0x171abe['uri'])['then'](t=>t['blob']());return W3['set'](_0x171abe,_0x5ea9e8),_0x5ea9e8;})(_0x3f98a5))['size'];throw new Error('Unknown\x20file\x20type.\x20Cannot\x20determine\x20file\x20size.');},Y3=_0x50ecd9=>{let t=new RegExp('[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}');return!A3(_0x50ecd9)&&t['test'](_0x50ecd9);},K3=_0x272f16=>{let t=new RegExp('^(?:\x5cw+:)?\x5c/\x5c/([^\x5cs\x5c.]+\x5c.\x5cS{2}|localhost[\x5c:?\x5cd]*)\x5cS*$');return!A3(_0x272f16)&&t['test'](_0x272f16);},J3=(_0x34dfb3,_0x5ad31a)=>new Promise((t,_0x105667)=>{let _0x32819d=[],_0x186a28=!0x1,_0x3cf330=_0x5ad31a['length'],_0x2b8843=[..._0x5ad31a],_0x476565=()=>{let _0x419715=_0x5ad31a['length']-_0x2b8843['length'],_0x56a0b4=_0x2b8843['shift']();_0x56a0b4&&_0x56a0b4()['then'](_0x163f04=>{_0x186a28||(_0x32819d[_0x419715]=_0x163f04,_0x3cf330-=0x1,_0x3cf330?_0x476565():t(_0x32819d));})['catch'](_0x5af8f0=>{_0x186a28=!0x0,_0x105667(_0x5af8f0);});};for(let _0x33a983=0x0;_0x33a983<_0x34dfb3;_0x33a983++)_0x476565();}),t4=async(_0x1fbf56,_0x36734d,t)=>_0x2df111=>((_0x1623ff,_0x55cacc,t,_0x5bb893)=>{let _0x3868e8=_0x5bb893*_0x55cacc,_0x2d7e15=Math['min'](_0x3868e8+_0x5bb893,t);return _0x1623ff['slice'](_0x3868e8,_0x2d7e15);})(_0x1fbf56,_0x2df111,_0x36734d,t),e4=(_0x5197df,_0x1f2cde,{publicKey:t,contentType:_0x4aaa93,onProgress:_0x352c90,signal:_0x22efef,integration:_0x3738fc,retryThrottledRequestMaxTimes:_0x579efa,retryNetworkErrorMaxTimes:_0x264dbe})=>function(_0xce6a32,_0x2c285f,{contentType:t,signal:_0x597828,onProgress:_0x24ab31,retryThrottledRequestMaxTimes:_0x3cd067=f3,retryNetworkErrorMaxTimes:_0x2b3789=m3}){return R3(()=>y3({'method':'PUT','url':_0x2c285f,'data':_0xce6a32,'onProgress':_0x24ab31,'signal':_0x597828,'headers':{'Content-Type':t||b3}})['then'](_0x514296=>(_0x24ab31&&_0x24ab31({'isComputable':!0x0,'value':0x1}),_0x514296))['then'](({status:_0x86c3bf})=>({'code':_0x86c3bf})),{'retryThrottledRequestMaxTimes':_0x3cd067,'retryNetworkErrorMaxTimes':_0x2b3789});}(_0x5197df,_0x1f2cde,{'contentType':_0x4aaa93,'onProgress':_0x352c90,'signal':_0x22efef,'retryThrottledRequestMaxTimes':_0x579efa,'retryNetworkErrorMaxTimes':_0x264dbe}),i4=async(_0xcbf0b4,{publicKey:_0x48775a,fileName:t,fileSize:_0x2cbd4b,baseURL:_0x4cb786,secureSignature:_0x375aea,secureExpire:_0x4bb2e6,store:_0x852174,signal:_0x44caa7,onProgress:_0x55ea88,source:_0x487e11,integration:_0x3bda9a,userAgent:_0x52bfb4,retryThrottledRequestMaxTimes:_0x1a737a,retryNetworkErrorMaxTimes:_0x2a5460,contentType:_0x580a6e,multipartChunkSize:_0x12a0dd=g3,maxConcurrentRequests:_0x2d7558=O3,baseCDN:_0x357b0a,metadata:_0x371d78})=>{let _0x35b8ec,_0x19b0ef=_0x2cbd4b??await z3(_0xcbf0b4),_0xffc632=(_0x34b03f,_0x408ecc)=>{if(!_0x55ea88)return;_0x35b8ec||(_0x35b8ec=Array(_0x34b03f)['fill'](0x0));let _0x4a1bf8=_0x137cf1=>_0x137cf1['reduce']((_0x5d3a6c,_0x5e95a6)=>_0x5d3a6c+_0x5e95a6,0x0);return _0x102f6b=>{_0x102f6b['isComputable']&&(_0x35b8ec[_0x408ecc]=_0x102f6b['value'],_0x55ea88({'isComputable':!0x0,'value':_0x4a1bf8(_0x35b8ec)/_0x34b03f}));};};return _0x580a6e||=M3(_0xcbf0b4),function(_0x92cf86,{publicKey:_0xb94626,contentType:t,fileName:_0x36e2f8,multipartChunkSize:_0x483455=g3,baseURL:_0x35cf51='',secureSignature:_0x3a5329,secureExpire:_0x98f897,store:_0x14327b,signal:_0x428075,source:_0x41b640='local',integration:_0x78cec4,userAgent:_0x8328dd,retryThrottledRequestMaxTimes:_0x527018=f3,retryNetworkErrorMaxTimes:_0x4b5e06=m3,metadata:_0x2ed91b}){return R3(()=>y3({'method':'POST','url':x3(_0x35cf51,'/multipart/start/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':C3({'publicKey':_0xb94626,'integration':_0x78cec4,'userAgent':_0x8328dd})},'data':I3({'filename':_0x36e2f8,'size':_0x92cf86,'content_type':t||b3,'part_size':_0x483455,'UPLOADCARE_STORE':$3(_0x14327b),'UPLOADCARE_PUB_KEY':_0xb94626,'signature':_0x3a5329,'expire':_0x98f897,'source':_0x41b640,'metadata':_0x2ed91b}),'signal':_0x428075})['then'](({data:_0x45ff96,headers:_0x2f333e,request:_0x561169})=>{let _0x151a8c=i3(JSON['parse'](_0x45ff96));if('error'in _0x151a8c)throw new k3(_0x151a8c['error']['content'],_0x151a8c['error']['errorCode'],_0x561169,_0x151a8c,_0x2f333e);return _0x151a8c['parts']=Object['keys'](_0x151a8c['parts'])['map'](_0x4af3c8=>_0x151a8c['parts'][Number(_0x4af3c8)]),_0x151a8c;}),{'retryThrottledRequestMaxTimes':_0x527018,'retryNetworkErrorMaxTimes':_0x4b5e06});}(_0x19b0ef,{'publicKey':_0x48775a,'contentType':_0x580a6e,'fileName':t||L3(_0xcbf0b4),'baseURL':_0x4cb786,'secureSignature':_0x375aea,'secureExpire':_0x4bb2e6,'store':_0x852174,'signal':_0x44caa7,'source':_0x487e11,'integration':_0x3bda9a,'userAgent':_0x52bfb4,'retryThrottledRequestMaxTimes':_0x1a737a,'retryNetworkErrorMaxTimes':_0x2a5460,'metadata':_0x371d78,'multipartChunkSize':_0x12a0dd})['then'](async({uuid:_0x2be09e,parts:_0x38f78e})=>{let _0x4ffe2d=await t4(_0xcbf0b4,_0x19b0ef,_0x12a0dd);return Promise['all']([_0x2be09e,J3(_0x2d7558,_0x38f78e['map']((_0x1d976a,_0x51cd48)=>()=>e4(_0x4ffe2d(_0x51cd48),_0x1d976a,{'publicKey':_0x48775a,'contentType':_0x580a6e,'onProgress':_0xffc632(_0x38f78e['length'],_0x51cd48),'signal':_0x44caa7,'integration':_0x3bda9a,'retryThrottledRequestMaxTimes':_0x1a737a,'retryNetworkErrorMaxTimes':_0x2a5460})))]);})['then'](([_0x4b2c1d])=>function(_0x35cb07,{publicKey:_0x777681,baseURL:t=d3,source:_0x3a4f7a='local',signal:_0x4241df,integration:_0x4cc7f6,userAgent:_0x45f902,retryThrottledRequestMaxTimes:_0x5807cf=f3,retryNetworkErrorMaxTimes:_0x5db312=m3}){return R3(()=>y3({'method':'POST','url':x3(t,'/multipart/complete/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':C3({'publicKey':_0x777681,'integration':_0x4cc7f6,'userAgent':_0x45f902})},'data':I3({'uuid':_0x35cb07,'UPLOADCARE_PUB_KEY':_0x777681,'source':_0x3a4f7a}),'signal':_0x4241df})['then'](({data:_0x2ea1bc,headers:_0xc4790e,request:_0x30d213})=>{let _0x43dfa0=i3(JSON['parse'](_0x2ea1bc));if('error'in _0x43dfa0)throw new k3(_0x43dfa0['error']['content'],_0x43dfa0['error']['errorCode'],_0x30d213,_0x43dfa0,_0xc4790e);return _0x43dfa0;}),{'retryThrottledRequestMaxTimes':_0x5807cf,'retryNetworkErrorMaxTimes':_0x5db312});}(_0x4b2c1d,{'publicKey':_0x48775a,'baseURL':_0x4cb786,'source':_0x487e11,'integration':_0x3bda9a,'userAgent':_0x52bfb4,'retryThrottledRequestMaxTimes':_0x1a737a,'retryNetworkErrorMaxTimes':_0x2a5460}))['then'](_0x23605c=>_0x23605c['isReady']?_0x23605c:j3(_0x23605c['uuid'],{'publicKey':_0x48775a,'baseURL':_0x4cb786,'source':_0x487e11,'integration':_0x3bda9a,'userAgent':_0x52bfb4,'retryThrottledRequestMaxTimes':_0x1a737a,'retryNetworkErrorMaxTimes':_0x2a5460,'onProgress':_0x55ea88,'signal':_0x44caa7}))['then'](_0x46e5ae=>new U3(_0x46e5ae,{'baseCDN':_0x357b0a}));};async function s4(_0x4a6002,{publicKey:_0x3b2160,fileName:t,baseURL:_0x5a92fe=d3,secureSignature:_0x265813,secureExpire:_0xf4af87,store:_0x5454ad,signal:_0x279a27,onProgress:_0x126a96,source:_0xb589e0,integration:_0x390b08,userAgent:_0xda4127,retryThrottledRequestMaxTimes:_0x16c335,retryNetworkErrorMaxTimes:_0xe0db2,contentType:_0xc4a96a,multipartMinFileSize:_0x15c33d,multipartChunkSize:_0x43686d,maxConcurrentRequests:_0x28f8d0,baseCDN:_0x59580b=u3,checkForUrlDuplicates:_0x1b6473,saveUrlForRecurrentUploads:_0x5d81b4,pusherKey:_0x1777b7,metadata:_0x394c93}){if(A3(_0x4a6002)){let _0x373442=await z3(_0x4a6002);return((_0x4df596,_0xa7f0e6=p3)=>_0x4df596>=_0xa7f0e6)(_0x373442,_0x15c33d)?i4(_0x4a6002,{'publicKey':_0x3b2160,'contentType':_0xc4a96a,'multipartChunkSize':_0x43686d,'fileSize':_0x373442,'fileName':t,'baseURL':_0x5a92fe,'secureSignature':_0x265813,'secureExpire':_0xf4af87,'store':_0x5454ad,'signal':_0x279a27,'onProgress':_0x126a96,'source':_0xb589e0,'integration':_0x390b08,'userAgent':_0xda4127,'maxConcurrentRequests':_0x28f8d0,'retryThrottledRequestMaxTimes':_0x16c335,'retryNetworkErrorMaxTimes':_0xe0db2,'baseCDN':_0x59580b,'metadata':_0x394c93}):V3(_0x4a6002,{'publicKey':_0x3b2160,'fileName':t,'contentType':_0xc4a96a,'baseURL':_0x5a92fe,'secureSignature':_0x265813,'secureExpire':_0xf4af87,'store':_0x5454ad,'signal':_0x279a27,'onProgress':_0x126a96,'source':_0xb589e0,'integration':_0x390b08,'userAgent':_0xda4127,'retryThrottledRequestMaxTimes':_0x16c335,'retryNetworkErrorMaxTimes':_0xe0db2,'baseCDN':_0x59580b,'metadata':_0x394c93});}if(K3(_0x4a6002))return q3(_0x4a6002,{'publicKey':_0x3b2160,'fileName':t,'baseURL':_0x5a92fe,'baseCDN':_0x59580b,'checkForUrlDuplicates':_0x1b6473,'saveUrlForRecurrentUploads':_0x5d81b4,'secureSignature':_0x265813,'secureExpire':_0xf4af87,'store':_0x5454ad,'signal':_0x279a27,'onProgress':_0x126a96,'source':_0xb589e0,'integration':_0x390b08,'userAgent':_0xda4127,'retryThrottledRequestMaxTimes':_0x16c335,'pusherKey':_0x1777b7,'metadata':_0x394c93});if(Y3(_0x4a6002))return((_0x1d2ee8,{publicKey:_0x3059a2,fileName:t,baseURL:_0x2a4b84,signal:_0x436048,onProgress:_0x54e448,source:_0x28edc0,integration:_0x5cb31a,userAgent:_0x119d8c,retryThrottledRequestMaxTimes:_0x4d9f94,retryNetworkErrorMaxTimes:_0x4181cb,baseCDN:_0x1951fe})=>Q3(_0x1d2ee8,{'publicKey':_0x3059a2,'baseURL':_0x2a4b84,'signal':_0x436048,'source':_0x28edc0,'integration':_0x5cb31a,'userAgent':_0x119d8c,'retryThrottledRequestMaxTimes':_0x4d9f94,'retryNetworkErrorMaxTimes':_0x4181cb})['then'](_0xd4fdb2=>new U3(_0xd4fdb2,{'baseCDN':_0x1951fe,'fileName':t}))['then'](_0x1c1619=>(_0x54e448&&_0x54e448({'isComputable':!0x0,'value':0x1}),_0x1c1619)))(_0x4a6002,{'publicKey':_0x3b2160,'fileName':t,'baseURL':_0x5a92fe,'signal':_0x279a27,'onProgress':_0x126a96,'source':_0xb589e0,'integration':_0x390b08,'userAgent':_0xda4127,'retryThrottledRequestMaxTimes':_0x16c335,'retryNetworkErrorMaxTimes':_0xe0db2,'baseCDN':_0x59580b});throw new TypeError('File\x20uploading\x20from\x20\x22'+_0x4a6002+'\x22\x20is\x20not\x20supported');}var n4=class{['uuid'];filesCount;totalSize;isStored;['isImage'];['cdnUrl'];['files'];createdAt;storedAt=null;constructor(_0x298f6a,{baseCDN:t=u3}={}){this['uuid']=_0x298f6a['id'],this['filesCount']=_0x298f6a['filesCount'];let _0x32a6cd=_0x298f6a['files']['filter'](Boolean);this['totalSize']=Object['values'](_0x32a6cd)['reduce']((_0x496ea8,_0x1a12ab)=>_0x496ea8+_0x1a12ab['size'],0x0),this['isStored']=!!_0x298f6a['datetimeStored'],this['isImage']=!!Object['values'](_0x32a6cd)['filter'](_0x2340d1=>_0x2340d1['isImage'])['length'],this['cdnUrl']=((_0x350b3d,_0x4ec750)=>{try{let t=new URL(_0x350b3d),_0x2e9004=new URL(_0x4ec750);return t['protocol']=_0x2e9004['protocol'],t['hostname']=_0x2e9004['hostname'],t['port']=_0x2e9004['port'],t['toString']();}catch{return _0x350b3d;}})(_0x298f6a['cdnUrl'],t),this['files']=_0x32a6cd['map'](_0x5ccf36=>new U3(_0x5ccf36,{'baseCDN':t})),this['createdAt']=_0x298f6a['datetimeCreated'],this['storedAt']=_0x298f6a['datetimeStored'];}};function r4(_0x1f5341,{publicKey:_0x1b41b0,fileName:t,baseURL:_0x2f4775=d3,secureSignature:_0x5f1e3e,secureExpire:_0x816b77,store:_0x51584c,signal:_0x5a8ec8,onProgress:_0x120b30,source:_0x15aaac,integration:_0xecd34d,userAgent:_0x471654,retryThrottledRequestMaxTimes:_0x4f3a53,retryNetworkErrorMaxTimes:_0x50084b,contentType:_0x589962,multipartChunkSize:_0x87676d=g3,baseCDN:_0x157152=u3,checkForUrlDuplicates:_0x5176ba,saveUrlForRecurrentUploads:_0x5203ff,jsonpCallback:_0x2473e5}){if(!(_0x3f3053=>{for(let _0x4379dc of _0x3f3053)if(!A3(_0x4379dc))return!0x1;return!0x0;})(_0x1f5341)&&!(_0x5d48a5=>{for(let _0x5eb201 of _0x5d48a5)if(!K3(_0x5eb201))return!0x1;return!0x0;})(_0x1f5341)&&!(_0x1d2119=>{for(let _0x2cc69e of _0x1d2119)if(!Y3(_0x2cc69e))return!0x1;return!0x0;})(_0x1f5341))throw new TypeError('Group\x20uploading\x20from\x20\x22'+_0x1f5341+'\x22\x20is\x20not\x20supported');let _0x4d84a1,_0x196dee=!0x0,_0x3a26bb=_0x1f5341['length'],_0x441384=(_0x2b49b0,_0x2c0490)=>{if(!_0x120b30)return;_0x4d84a1||(_0x4d84a1=Array(_0x2b49b0)['fill'](0x0));let _0x67efef=_0x3538e9=>_0x3538e9['reduce']((_0x1472b9,_0x3e99aa)=>_0x1472b9+_0x3e99aa)/_0x2b49b0;return _0x33c55c=>{if(!_0x33c55c['isComputable']||!_0x196dee)return _0x196dee=!0x1,void _0x120b30({'isComputable':!0x1});_0x4d84a1[_0x2c0490]=_0x33c55c['value'],_0x120b30({'isComputable':!0x0,'value':_0x67efef(_0x4d84a1)});};};return Promise['all'](_0x1f5341['map']((_0xc97be0,_0x545228)=>A3(_0xc97be0)||K3(_0xc97be0)?s4(_0xc97be0,{'publicKey':_0x1b41b0,'fileName':t,'baseURL':_0x2f4775,'secureSignature':_0x5f1e3e,'secureExpire':_0x816b77,'store':_0x51584c,'signal':_0x5a8ec8,'onProgress':_0x441384(_0x3a26bb,_0x545228),'source':_0x15aaac,'integration':_0xecd34d,'userAgent':_0x471654,'retryThrottledRequestMaxTimes':_0x4f3a53,'retryNetworkErrorMaxTimes':_0x50084b,'contentType':_0x589962,'multipartChunkSize':_0x87676d,'baseCDN':_0x157152,'checkForUrlDuplicates':_0x5176ba,'saveUrlForRecurrentUploads':_0x5203ff})['then'](_0x1bf118=>_0x1bf118['uuid']):_0xc97be0))['then'](_0x594ed7=>function(_0x4f5d99,{publicKey:_0x7c3c1a,baseURL:t=d3,jsonpCallback:_0x1ccaa5,secureSignature:_0x49819c,secureExpire:_0x231a74,signal:_0x3dcc27,source:_0x542bbf,integration:_0x56ae29,userAgent:_0x5ef781,retryThrottledRequestMaxTimes:_0x6bb293=f3,retryNetworkErrorMaxTimes:_0x124289=m3}){return R3(()=>y3({'method':'POST','headers':{'X-UC-User-Agent':C3({'publicKey':_0x7c3c1a,'integration':_0x56ae29,'userAgent':_0x5ef781})},'url':x3(t,'/group/',{'jsonerrors':0x1}),'data':I3({'files':_0x4f5d99,'callback':_0x1ccaa5,'pub_key':_0x7c3c1a,'signature':_0x49819c,'expire':_0x231a74,'source':_0x542bbf}),'signal':_0x3dcc27})['then'](({data:_0x5331ed,headers:_0x484a2c,request:_0xf41aa})=>{let _0x1fa16d=i3(JSON['parse'](_0x5331ed));if('error'in _0x1fa16d)throw new k3(_0x1fa16d['error']['content'],_0x1fa16d['error']['errorCode'],_0xf41aa,_0x1fa16d,_0x484a2c);return _0x1fa16d;}),{'retryNetworkErrorMaxTimes':_0x124289,'retryThrottledRequestMaxTimes':_0x6bb293});}(_0x594ed7,{'publicKey':_0x1b41b0,'baseURL':_0x2f4775,'jsonpCallback':_0x2473e5,'secureSignature':_0x5f1e3e,'secureExpire':_0x816b77,'signal':_0x5a8ec8,'source':_0x15aaac,'integration':_0xecd34d,'userAgent':_0x471654,'retryThrottledRequestMaxTimes':_0x4f3a53,'retryNetworkErrorMaxTimes':_0x50084b})['then'](_0x3ef370=>new n4(_0x3ef370,{'baseCDN':_0x157152}))['then'](_0x1a7039=>(_0x120b30&&_0x120b30({'isComputable':!0x0,'value':0x1}),_0x1a7039)));}var o4=class{['Vi']=0x1;['io']=[];['_i']=0x0;['ro']=new Map();['oo']=new Map();constructor(_0x1641dd){this['Vi']=_0x1641dd;}['run'](){let _0x1e0042=this['Vi']-this['_i'];for(let t=0x0;t<_0x1e0042;t++){let _0x24dbfb=this['io']['shift']();if(!_0x24dbfb)return;let _0x2679f0=this['ro']['get'](_0x24dbfb),_0x3ef85a=this['oo']['get'](_0x24dbfb);if(!_0x2679f0||!_0x3ef85a)throw new Error('Unexpected\x20behavior:\x20resolver\x20or\x20rejector\x20is\x20undefined');this['_i']+=0x1,_0x24dbfb()['finally'](()=>{this['ro']['delete'](_0x24dbfb),this['oo']['delete'](_0x24dbfb),this['_i']-=0x1,this['run']();})['then'](_0xdae84=>_0x2679f0(_0xdae84))['catch'](_0x112974=>_0x3ef85a(_0x112974));}}['add'](_0x238e1c,{autoRun:t}={'autoRun':!0x0}){return new Promise((_0x34f002,_0x248bef)=>{this['ro']['set'](_0x238e1c,_0x34f002),this['oo']['set'](_0x238e1c,_0x248bef),this['io']['push'](_0x238e1c),t&&this['run']();});}get['pending'](){return this['io']['length'];}get['running'](){return this['_i'];}set['concurrency'](_0x593cdf){this['Vi']=_0x593cdf,this['run']();}get['concurrency'](){return this['Vi'];}},a4=_0xfb0f5f=>({'*currentActivity':null,'*currentActivityParams':{},'*history':[],'*historyBack':null,'*closeModal':()=>{_0xfb0f5f['modalManager']?.['close'](_0xfb0f5f['$']['*currentActivity']),_0xfb0f5f['pub']('*currentActivity',null);}}),c4=_0x3c460f=>({...a4(_0x3c460f),'*commonProgress':0x0,'*uploadList':[],'*uploadQueue':new o4(0x1),'*collectionErrors':[],'*collectionState':null,'*groupInfo':null,'*uploadTrigger':new Set()}),l4=Object['freeze']({'START_FROM':'start-from','CAMERA':'camera','UPLOAD_LIST':'upload-list','URL':'url','CLOUD_IMG_EDIT':'cloud-image-edit','EXTERNAL':'external'}),h4=class extends Z5{constructor(t){super(t),this['scopes']=new Set(),this['listener']=this['_c']['bind'](this),window['addEventListener']('paste',this['listener']);}openUploadList(){this['i']['api']['setCurrentActivity'](l4['UPLOAD_LIST']),this['i']['api']['setModalState'](!0x0);}async['_c'](t){if(t['clipboardData']){for(let _0x5f36ff of this['scopes'])if(_0x5f36ff['isConnected'])switch(this['ze']['pasteScope']){case'global':await this['handlePaste'](t);break;case'local':if(!_0x5f36ff['contains'](t['target']))continue;await this['handlePaste'](t);break;default:continue;}}}async handlePaste(t){if(!t['clipboardData'])return;let _0x3c003e=Array['from'](t['clipboardData']['items']),_0x18bd91=_0x3c003e['map'](_0x5b8cba=>_0x5b8cba['getAsFile']())['filter'](_0x15b9dd=>null!==_0x15b9dd),_0x2e6d6a=_0x3c003e['filter'](_0x560083=>'string'===_0x560083['kind']&&'text/plain'===_0x560083['type'])['map'](_0x2f1d2e=>new Promise(_0x43c7f8=>{_0x2f1d2e['getAsString'](_0x31e72e=>{_0x43c7f8(_0x31e72e);});}));_0x18bd91['length']>0x0&&(_0x18bd91['forEach'](_0x1adba4=>{this['i']['api']['addFileFromObject'](_0x1adba4,{'source':'clipboard'});}),this['openUploadList']()),_0x2e6d6a['length']>0x0&&((await Promise['all'](_0x2e6d6a))['forEach'](_0x13527d=>{this['i']['api']['addFileFromUrl'](_0x13527d,{'source':'clipboard'});}),this['openUploadList']());}registerBlock(t){return this['scopes']['add'](t),()=>{this['scopes']['delete'](t);};}destroy(){super['destroy'](),window['removeEventListener']('paste',this['listener']),this['scopes']['clear']();}},u4={'button':['toolbar'],'checkbox':['toolbar'],'menuitem':['menu','menubar'],'option':['listbox'],'tab':['tablist']};function d4(_0x251214,_0x270927){_0x270927['tabIndex']=0x0,_0x270927['focus'](),_0x251214['tabIndex']=-0x1;}function f4(_0x4e8203){let _0x5768e9=_0x4e8203['role']||_0x4e8203['type']||_0x4e8203['tagName'];if(!_0x5768e9)return null;let t=u4[_0x5768e9['toLowerCase']()];if(!t)return null;for(let _0x5133f1 of t){let _0xcffb0d=_0x4e8203['closest']('[role='+_0x5133f1+']');if(_0xcffb0d)return _0xcffb0d;}}function m4(_0x377428,_0x57e431){return'toolbar'===_0x57e431['role']?function(_0x4ce62c){return[..._0x4ce62c['querySelectorAll']('*')]['filter'](t=>'button'===t['role']||'button'===t['type']||'checkbox'===t['role']||'checkbox'===t['type']);}(_0x57e431):_0x57e431['querySelectorAll']('[role='+_0x377428['role']+']');}function p4(_0x12a199){return _0xe2d86c=>{let t=!0x1,_0xb71e56=0x0,_0x3a622b='';function _0x438692(_0x1b0b10){let _0x3b8844=f4(_0x1b0b10['target']);if(!_0x3b8844)return void _0x202480();let _0x4e7702=m4(_0x1b0b10['target'],_0x3b8844),_0x3ed983=function(_0x28c699,_0x124817){return Array['from'](_0x28c699)['filter'](t=>{let _0x488489=t['parentElement'];for(;_0x488489&&_0x488489!==_0x124817;){if('true'===_0x488489['getAttribute']('aria-hidden'))return!0x1;_0x488489=_0x488489['parentElement'];}return!0x0;});}(_0x4e7702,_0x3b8844),_0x10154c=Array['from'](_0x3ed983)['indexOf'](_0x1b0b10['target']),_0x1d4110='ArrowDown',_0x2fd1ff='ArrowUp';if(function(_0x1ccc21){let _0x538e77=_0x1ccc21['getAttribute']('aria-orientation');if('vertical'===_0x538e77)return!0x1;if('horizontal'===_0x538e77)return!0x0;let t=_0x1ccc21['role'];return'menubar'===t||'tablist'===t||'toolbar'===t;}(_0x3b8844)&&('rtl'===_0xe2d86c['document']['dir']?(_0x1d4110='ArrowLeft',_0x2fd1ff='ArrowRight'):(_0x1d4110='ArrowRight',_0x2fd1ff='ArrowLeft')),_0x1b0b10['key']===_0x1d4110)_0x1b0b10['preventDefault'](),d4(_0x1b0b10['target'],_0x3ed983[_0x10154c+0x1]||_0x3ed983[0x0]);else{if(_0x1b0b10['key']===_0x2fd1ff)_0x1b0b10['preventDefault'](),d4(_0x1b0b10['target'],_0x3ed983[_0x10154c-0x1]||_0x3ed983[_0x3ed983['length']-0x1]);else{if('Home'===_0x1b0b10['key'])_0x1b0b10['preventDefault'](),d4(_0x1b0b10['target'],_0x3ed983[0x0]);else{if('End'===_0x1b0b10['key'])_0x1b0b10['preventDefault'](),d4(_0x1b0b10['target'],_0x3ed983[_0x3ed983['length']-0x1]);else{if(0x1===_0x1b0b10['key']['length']&&'tablist'!==_0x3b8844['role']){_0x1b0b10['timeStamp']-_0xb71e56<=0x12c?_0x3a622b+=_0x1b0b10['key']['toLowerCase']():_0x3a622b=_0x1b0b10['key']['toLowerCase'](),_0xb71e56=_0x1b0b10['timeStamp'];let _0x304718=Array['from'](_0x4e7702)['find'](_0xd29dfd=>_0xd29dfd['textContent']?.['trim']()?.['toLowerCase']()?.['startsWith'](_0x3a622b));_0x304718&&(_0x1b0b10['preventDefault'](),d4(_0x1b0b10['target'],_0x304718));}}}}}}function _0x202480(){t=!0x1,_0xe2d86c['removeEventListener']('keydown',_0x438692);}function _0x508bfc(_0x34f776){let _0x3904cd=f4(_0x34f776['target']);if(_0x3904cd){t||(t=!0x0,_0xe2d86c['addEventListener']('keydown',_0x438692));let _0x38b9d4=m4(_0x34f776['target'],_0x3904cd);for(let _0x4b49a0 of _0x38b9d4)_0x4b49a0!==_0x34f776['target']&&_0x4b49a0['setAttribute']('tabindex',-0x1);}else t&&_0x202480();}function _0x5e1cb9(_0x3a1c97){(!_0x3a1c97['relatedTarget']||_0x3a1c97['relatedTarget']===_0xe2d86c['document'])&&_0x202480();}function _0x547fde(_0x519e86){let _0x30af9a=f4(_0x519e86['target']);if(_0x30af9a){let _0x751bad=m4(_0x519e86['target'],_0x30af9a);for(let _0x27b3b9 of _0x751bad)_0x27b3b9!==_0x519e86['target']&&_0x27b3b9['setAttribute']('tabindex',-0x1);_0x519e86['target']['setAttribute']('tabindex',0x0);}}return _0xe2d86c['addEventListener']('click',_0x547fde),_0xe2d86c['addEventListener']('focusin',_0x508bfc),_0xe2d86c['addEventListener']('focusout',_0x5e1cb9),()=>{_0x202480(),_0xe2d86c['removeEventListener']('click',_0x547fde),_0xe2d86c['removeEventListener']('focusin',_0x508bfc),_0xe2d86c['removeEventListener']('focusout',_0x5e1cb9);};};}function g4(){return _0x4c7d0c=>{let _0xdaf1b0=[];function _0x23194f(){let _0x21fd75=_0xdaf1b0['pop']();if(!_0x21fd75)return void _0x4c7d0c['document']['activeElement']['blur']();let _0x5a5a70=_0x21fd75['deref']();_0x5a5a70&&_0x5a5a70['isConnected']?_0x5a5a70['focus']():_0x23194f();}let _0x223e74,_0x8b9dc4=0x0;function _0x1b186f(_0x144640){clearInterval(_0x223e74);let _0x1c30e0=_0x144640['getAttribute']('aria-controls');_0x223e74=setInterval(()=>{if(_0x8b9dc4++>0x32)return void clearInterval(_0x223e74);let _0x367978=_0x4c7d0c['document']['getElementById'](_0x1c30e0);if(_0x367978){let _0x42871b=_0x367978['querySelector']('a,\x20button,\x20select,\x20textarea,\x20input:not([type=radio]),\x20[type=radio]:checked,\x20[tabindex]:not([tabindex=\x22-1\x22])');_0x42871b&&(clearInterval(_0x223e74),_0x367978['dispatchEvent'](new _0x4c7d0c['CustomEvent']('keyuxJump',{'bubbles':!0x0})),function(_0x26db99){let _0x1b428a=_0x4c7d0c['document']['activeElement'];_0x1b428a&&_0x1b428a!==_0x4c7d0c['document']['body']&&_0xdaf1b0['push'](new WeakRef(_0x1b428a)),_0x26db99['focus']({'focusVisible':!0x0});}(_0x42871b));}},0x32);}function _0x458a24(_0x17dcfa){_0x17dcfa['target']['getAttribute']('aria-controls')&&'Enter'===_0x17dcfa['key']&&_0x1b186f(_0x17dcfa['target']),'Escape'===_0x17dcfa['key']&&_0x23194f();}return _0x4c7d0c['addEventListener']('keydown',_0x458a24),()=>{_0x4c7d0c['removeEventListener']('keydown',_0x458a24);};};}function O4(_0x5ef56a){let _0xfe5023,_0x1718e3,t=_0x5ef56a['split']('\x20');function _0xb0e90(_0x5615ae){('Enter'===_0x5615ae['key']||'\x20'===_0x5615ae['key'])&&('BUTTON'===_0x5615ae['target']['tagName']||'A'===_0x5615ae['target']['tagName'])&&(_0x1244f8(),_0x5615ae['target']['classList']['add'](...t),_0xfe5023=_0x5615ae['target'],_0x1718e3=_0x5615ae['target']);}function _0x1244f8(){_0xfe5023&&(_0xfe5023['classList']['remove'](...t),_0xfe5023=0x0,setTimeout(()=>{_0x1718e3=0x0;},0x0));}function _0x433dfd(_0x3ce74f){0x0===_0x3ce74f['clientX']&&0x0===_0x3ce74f['clientY']&&_0xfe5023!==_0x3ce74f['target']&&(_0x1244f8(),_0x1718e3!==_0x3ce74f['target']&&(_0x3ce74f['target']['classList']['add'](...t),_0xfe5023=_0x3ce74f['target']));}return _0x53a86e=>(_0x53a86e['addEventListener']('click',_0x433dfd),_0x53a86e['addEventListener']('keydown',_0xb0e90),_0x53a86e['addEventListener']('keyup',_0x1244f8),()=>{_0x53a86e['removeEventListener']('click',_0x433dfd),_0x53a86e['removeEventListener']('keydown',_0xb0e90),_0x53a86e['removeEventListener']('keyup',_0x1244f8);});}var w4=class{constructor(){this['te']=new Map(),this['so']=[];}addEventListener(_0x1054d1,t){let _0x42919f=_0x1f743e=>{let _0x1b87c9=_0x1f743e['target'];_0x1b87c9 instanceof Node&&this['so']['some'](_0x252dd8=>_0x252dd8===_0x1b87c9||_0x252dd8['contains'](_0x1b87c9))&&t(_0x1f743e);};this['te']['set'](t,_0x42919f),window['addEventListener'](_0x1054d1,_0x42919f);}removeEventListener(_0x6dbe78,t){let _0x508728=this['te']['get'](t);_0x508728&&window['removeEventListener'](_0x6dbe78,_0x508728),this['te']['delete'](t);}get CustomEvent(){return window['CustomEvent'];}get document(){return window['document'];}get navigator(){return window['navigator'];}registerScope(_0x14fd48){this['so']['push'](_0x14fd48);}destroy(){this['so']=[];for(let _0x5add7a of this['te']['values']())window['removeEventListener']('keydown',_0x5add7a),window['removeEventListener']('keyup',_0x5add7a);this['te']['clear']();}},b4=class{constructor(){this['Bi']=new w4(),this['an']=function(_0x1918fa,_0x65f31f){let t=_0x65f31f['map'](_0x477ed2=>_0x477ed2(_0x1918fa));return()=>{t['forEach'](_0x307442=>_0x307442());};}(this['Bi'],[p4(),O4('is-pressed'),g4(),_0x554eab=>{let _0x25a87b,t;function _0x37a3af(_0x541aef){if('true'===_0x541aef['target']['getAttribute']('aria-hidden')){_0x25a87b=_0x541aef['target'],_0x25a87b['setAttribute']('aria-hidden','false'),t=_0x25a87b['hidden'],t&&(_0x25a87b['hidden']=!0x1);let _0x156038=_0x541aef['target']['querySelector']('a,\x20button,\x20select,\x20textarea,\x20input:not([type=radio]),\x20[type=radio]:checked,\x20[tabindex]:not([tabindex=\x22-1\x22])');_0x156038&&(_0x156038['tabIndex']=0x0);}}function _0x1e3b12(_0x442fef){_0x25a87b&&_0x25a87b['contains'](_0x442fef['target'])&&(!_0x442fef['relatedTarget']||!_0x25a87b['contains'](_0x442fef['relatedTarget']))&&(_0x442fef['target']['tabIndex']=-0x1,_0x25a87b['setAttribute']('aria-hidden','true'),t&&(_0x25a87b['hidden']=!0x0),_0x25a87b=null);}return _0x554eab['addEventListener']('keyuxJump',_0x37a3af),_0x554eab['addEventListener']('focusout',_0x1e3b12),()=>{_0x554eab['removeEventListener']('keyuxJump',_0x37a3af),_0x554eab['removeEventListener']('focusout',_0x1e3b12);};}]);}registerBlock(_0x1d4bb7){this['Bi']['registerScope'](_0x1d4bb7);}destroy(){this['an']?.(),this['Bi']['destroy']();}},y4=_0x2c4bef=>'*l10n/'+_0x2c4bef,v4=class extends Z5{constructor(t){super(t),this['Tt']='';for(let [_0x7cb86c,_0x1a5699]of Object['entries'](r5)){let _0x335a03=!this['e']['has'](y4(_0x7cb86c))||!this['e']['read'](y4(_0x7cb86c));this['e']['add'](y4(_0x7cb86c),_0x1a5699,_0x335a03);}let _0x37a0ef=t['pluginManager'];_0x37a0ef?.['onPluginsChange']&&this['addSub'](_0x37a0ef['onPluginsChange'](()=>{this['Tt']&&this['ln'](this['Tt']);})),this['addSub'](this['e']['sub'](h5('localeName'),async _0x4974a4=>{if(!_0x4974a4)return;this['Tt']=_0x4974a4;let _0x1d1e00=await(async _0x2d6c18=>{let _0x9b8348=o5['get'](_0x2d6c18);if(!_0x9b8348){let t=a5['get'](_0x2d6c18);if(!t)throw new Error('Locale\x20'+_0x2d6c18+'\x20is\x20not\x20defined');_0x9b8348=c5(_0x2d6c18,await t());}return _0x9b8348;})(_0x4974a4);'en'!==_0x4974a4&&this['Tt']!==_0x4974a4||(this['ln'](_0x4974a4),this['cn'](_0x4974a4,_0x1d1e00));})),this['addSub'](this['e']['sub'](h5('localeDefinitionOverride'),_0x190c2d=>{if(!_0x190c2d)return;let _0x42aed2=_0x190c2d[this['Tt']];_0x42aed2&&this['cn'](this['Tt'],_0x42aed2);}));}['cn'](t,_0x4dcfe9){let _0xea8d40=this['ze']['localeDefinitionOverride']?.[t];for(let [_0x3bf0cb,_0xc4dd4e]of Object['entries'](_0x4dcfe9)){let _0x2b697d=_0xea8d40?.[_0x3bf0cb];this['e']['add'](y4(_0x3bf0cb),_0x2b697d??_0xc4dd4e,!0x0);}}['ln'](t){let _0x20a378=this['i']['pluginManager'];if(!_0x20a378)return;let _0x42661a=_0x20a378['snapshot']();for(let _0xeb32a2 of _0x42661a['l10n']){let {pluginId:_0x186792,..._0x3df68e}=_0xeb32a2,_0x1d38a8=_0x3df68e[t];if(_0x1d38a8){for(let [_0x4a69c9,_0x542e5d]of Object['entries'](_0x1d38a8))void 0x0!==_0x542e5d&&this['e']['add'](y4(_0x4a69c9),_0x542e5d,!0x0);}}}},_4=()=>{let _0x3d4054=navigator['userAgent'];return/Macintosh|Windows/['test'](_0x3d4054)&&/Version\/[\d.]+.*Safari/['test'](_0x3d4054)&&!/Chrome|Chromium|Edg|OPR/['test'](_0x3d4054);},E4={'safariDesktop':_4()},T4={'htmlMediaCapture':'capture'in document['createElement']('input')},A4='image/*',S4='video/*',I4=E4['safariDesktop']?[A4]:[A4,...['image/heif','image/heif-sequence','image/heic','image/heic-sequence','image/avif','image/avif-sequence','.heif','.heifs','.heic','.heics','.avif','.avifs']],k4=_0x8066fe=>_0x8066fe?_0x8066fe['filter'](_0x43ed78=>'string'==typeof _0x43ed78)['flatMap'](_0x5dc241=>A5(_0x5dc241)):[],x4=(_0x494203,_0x43c2e2)=>_0x43c2e2['some'](t=>{if(t['endsWith']('*')){let _0x461545=t['replace']('*','');return _0x494203['startsWith'](_0x461545);}return _0x494203===t;}),C4=_0x5a0795=>{let _0x354d07=_0x5a0795?.['type'];return!!_0x354d07&&x4(_0x354d07,I4);},R4=class{constructor(_0x4414b8,t){this['e']=_0x4414b8,this['zc']=t,this['Xt']=new Set(),this['un']=this['e']['sub']('*lazyPlugins',_0x50a23e=>{this['Bc'](_0x50a23e??[]);});}['Bc'](_0x204ad3){for(let _0x3e8306 of this['Xt'])_0x3e8306();if(this['Xt']['clear'](),0x0===_0x204ad3['length'])return;let t=new Set([h5('plugins')]);for(let _0x17d81 of _0x204ad3)for(let _0x128448 of _0x17d81['configDeps'])t['add'](h5(_0x128448));let _0x1cb42f=()=>this['dn'](_0x204ad3);for(let _0x14e2d2 of t)this['Xt']['add'](this['e']['sub'](_0x14e2d2,_0x1cb42f,!0x1));this['dn'](_0x204ad3);}['dn'](_0x52e779){this['ao']?.['abort']();let t=new AbortController();this['ao']=t;let _0x13f09e=_0x4a3006=>this['e']['read'](h5(_0x4a3006)),_0x18b6e5=_0x13f09e('plugins'),_0x2364e1=(async({entries:_0x31b3fe,signal:_0x7690db})=>(await Promise['all'](_0x31b3fe['map'](async _0x16fe46=>{if(_0x16fe46['isEnabled']())try{let _0x525056=await _0x16fe46['load']();return _0x7690db['aborted']||!_0x16fe46['isEnabled']()?void 0x0:_0x525056??void 0x0;}catch(_0xdab959){return void(_0x7690db['aborted']||console['warn']('Failed\x20to\x20load\x20lazy\x20plugin',_0xdab959));}})))['filter'](_0x1d5fe9=>void 0x0!==_0x1d5fe9))({'entries':_0x52e779['map'](_0x324fe3=>({'isEnabled':()=>_0x324fe3['isEnabled'](_0x13f09e),'load':_0x324fe3['load']})),'signal':t['signal']})['then'](_0x61c875=>{if(!t['signal']['aborted'])return[..._0x18b6e5,..._0x61c875];});this['zc'](_0x2364e1);}destroy(){this['un']();for(let _0x1b1a7a of this['Xt'])_0x1b1a7a();this['Xt']['clear'](),this['ao']?.['abort']();}},P4=class{constructor(){this['Ke']=new Map();}register(_0x367c60,t){if(this['Ke']['has'](t['name']))return void console['warn']('[CustomConfig]\x20Config\x20option\x20\x22'+t['name']+'\x22\x20is\x20already\x20registered');let _0x277c6a={'attribute':!0x0,...t,'pluginId':_0x367c60};this['Ke']['set'](t['name'],_0x277c6a);}unregister(_0x3fc93b){this['Ke']['delete'](_0x3fc93b);}unregisterByPlugin(_0x3267cd){for(let [t,_0x196526]of this['Ke'])_0x196526['pluginId']===_0x3267cd&&this['Ke']['delete'](t);}get(_0xb75d13){return this['Ke']['get'](_0xb75d13);}getAll(){return new Map(this['Ke']);}},N4=class{constructor(){this['Me']=[],this['de']=[],this['zi']=[],this['Hi']=[],this['Ki']=[],this['Et']=[],this['config']=new P4();}xt(_0x21af38,t){return{...t,'pluginId':_0x21af38};}['addSource'](_0x476772,t){let _0x26a22b=this['Me']['find'](_0x4d7a1d=>_0x4d7a1d['id']===t['id']);_0x26a22b?console['warn']('[Plugin\x20\x22'+_0x476772+'\x22]\x20Source\x20with\x20id\x20\x22'+t['id']+'\x22\x20is\x20already\x20registered\x20by\x20plugin\x20\x22'+_0x26a22b['pluginId']+'\x22.\x20Skipping.'):this['Me']['push'](this['xt'](_0x476772,t));}addActivity(_0x5e2a52,t){let _0x29f354=this['de']['find'](_0x3f9f48=>_0x3f9f48['id']===t['id']);_0x29f354?console['warn']('[Plugin\x20\x22'+_0x5e2a52+'\x22]\x20Activity\x20with\x20id\x20\x22'+t['id']+'\x22\x20is\x20already\x20registered\x20by\x20plugin\x20\x22'+_0x29f354['pluginId']+'\x22.\x20Skipping.'):this['de']['push'](this['xt'](_0x5e2a52,t));}addFileAction(_0x2e39ff,t){this['zi']['push'](this['xt'](_0x2e39ff,t));}['addFileHook'](_0x31089d,t){this['Hi']['push'](this['xt'](_0x31089d,{'timeout':0x7530,...t}));}['addIcon'](_0x3483bc,t){this['Ki']['push'](this['xt'](_0x3483bc,t));}['addL10n'](_0x8fc190,t){this['Et']['push'](this['xt'](_0x8fc190,t));}['addConfig'](_0x5c2f8e,t){this['config']['register'](_0x5c2f8e,t);}['purge'](_0x5a5ac3){this['Me']=this['Me']['filter'](t=>t['pluginId']!==_0x5a5ac3),this['de']=this['de']['filter'](t=>t['pluginId']!==_0x5a5ac3),this['zi']=this['zi']['filter'](t=>t['pluginId']!==_0x5a5ac3),this['Hi']=this['Hi']['filter'](t=>t['pluginId']!==_0x5a5ac3),this['Ki']=this['Ki']['filter'](t=>t['pluginId']!==_0x5a5ac3),this['Et']=this['Et']['filter'](t=>t['pluginId']!==_0x5a5ac3),this['config']['unregisterByPlugin'](_0x5a5ac3);}snapshot(){return{'sources':[...this['Me']],'activities':[...this['de']],'fileActions':[...this['zi']],'fileHooks':[...this['Hi']],'icons':[...this['Ki']],'l10n':[...this['Et']]};}},M4=class extends Z5{constructor(t){super(t),this['je']=new Map(),this['c']=new Set(),this['lo']=Promise['resolve'](),this['registry']=new N4(),this['pn']=new R4(this['e'],_0x5d85ad=>{this['lo']=this['lo']['then'](()=>_0x5d85ad)['then'](_0x503fb9=>{if(_0x503fb9)return this['Hc'](_0x503fb9);});});}get configRegistry(){return this['registry']['config'];}['pluginsReady'](){return this['lo'];}['onPluginsChange'](t){return this['c']['add'](t),()=>{this['c']['delete'](t);};}async['Hc'](t){let _0xa8be75=new Set(this['je']['keys']()),_0x405c02=new Set();for(let _0x51baf5 of t)if(_0x51baf5['id']){if(_0x405c02['has'](_0x51baf5['id']))console['warn']('[PluginManager]\x20Plugin\x20\x22'+_0x51baf5['id']+'\x22\x20is\x20already\x20in\x20the\x20list,\x20skipping\x20duplicate');else{if(_0x405c02['add'](_0x51baf5['id']),!this['je']['has'](_0x51baf5['id']))try{await this['Kc'](_0x51baf5);}catch(_0x10c70d){this['registry']['purge'](_0x51baf5['id']),this['co'](),console['error']('[PluginManager]\x20Plugin\x20\x22'+_0x51baf5['id']+'\x22\x20setup()\x20threw\x20an\x20error',_0x10c70d);}_0xa8be75['delete'](_0x51baf5['id']);}}else console['warn']('[PluginManager]\x20A\x20plugin\x20is\x20missing\x20the\x20required\x20\x22id\x22\x20field,\x20skipping');for(let _0x3841db of _0xa8be75)this['uo'](_0x3841db);}async['Kc'](t){this['je']['has'](t['id'])&&this['uo'](t['id']);let _0x83fdcb,_0x3eca3d=[],_0x5eb2fe=function(_0x257c16,_0x509430,t,_0x4974a0,_0x520247){return{'registry':{'registerSource':_0x1a5e24=>_0x257c16['addSource'](_0x4974a0,_0x1a5e24),'registerActivity':_0x5be084=>_0x257c16['addActivity'](_0x4974a0,_0x5be084),'registerFileAction':_0x1608eb=>_0x257c16['addFileAction'](_0x4974a0,_0x1608eb),'registerFileHook':_0x27b98a=>_0x257c16['addFileHook'](_0x4974a0,_0x27b98a),'registerIcon':_0x4df98a=>_0x257c16['addIcon'](_0x4974a0,_0x4df98a),'registerL10n':_0x9d3fb2=>_0x257c16['addL10n'](_0x4974a0,_0x9d3fb2),'registerConfig':_0x2af30e=>{_0x257c16['addConfig'](_0x4974a0,_0x2af30e);let _0x471344=h5(_0x2af30e['name']);_0x509430['has'](_0x471344)||_0x509430['add'](_0x471344,_0x2af30e['defaultValue']);}},'config':{'get':_0x3d6f53=>{let _0x407fb8=h5(_0x3d6f53);return _0x509430['read'](_0x407fb8);},'subscribe':(_0x407408,_0x32fb97)=>{let _0x4cd07e=h5(_0x407408),_0x3c98d0=_0x509430['sub'](_0x4cd07e,_0x5a8cea=>{_0x32fb97(_0x5a8cea);});return _0x520247['push'](_0x3c98d0),_0x3c98d0;}},'activity':{'getParams':()=>_0x509430['read']('*currentActivityParams'),'subscribeToParams':_0x19c080=>{let _0x13c4c8=_0x509430['sub']('*currentActivityParams',_0xc8d47d=>{_0x19c080(_0xc8d47d);});return _0x520247['push'](_0x13c4c8),_0x13c4c8;}},'files':{'update':(_0x1127cc,_0x277f40)=>{let _0x281f57=t['uploadCollection']?.['read'](_0x1127cc);_0x281f57&&(void 0x0!==_0x277f40['file']&&(_0x281f57['setValue']('file',_0x277f40['file']),_0x281f57['setValue']('fileSize',_0x277f40['file']['size'])),void 0x0!==_0x277f40['cdnUrl']&&_0x281f57['setValue']('cdnUrl',_0x277f40['cdnUrl']),void 0x0!==_0x277f40['cdnUrlModifiers']&&_0x281f57['setValue']('cdnUrlModifiers',_0x277f40['cdnUrlModifiers']),void 0x0!==_0x277f40['mimeType']&&_0x281f57['setValue']('mimeType',_0x277f40['mimeType']));}}};}(this['registry'],this['e'],this['i'],t['id'],_0x3eca3d),_0x3e27fb=this['i']['api'];try{_0x83fdcb=await t['setup']({'pluginApi':_0x5eb2fe,'uploaderApi':_0x3e27fb})??void 0x0;}catch(_0x1bd3f5){for(let _0x1bbb69 of _0x3eca3d)try{_0x1bbb69();}catch(_0x5b0a23){this['w']('Failed\x20to\x20unsubscribe\x20config\x20listener',_0x5b0a23);}throw _0x1bd3f5;}this['je']['set'](t['id'],{'plugin':t,'dispose':_0x83fdcb,'configSubscriptions':_0x3eca3d}),this['co']();}['uo'](t){let _0x489caf=this['je']['get'](t);if(_0x489caf){this['registry']['purge'](t);for(let _0x1f13e7 of _0x489caf['configSubscriptions'])try{_0x1f13e7();}catch(_0x53fcac){this['w']('Failed\x20to\x20unsubscribe\x20config\x20listener',_0x53fcac);}_0x489caf['dispose']?.(),this['je']['delete'](t),this['co']();}}snapshot(){return this['registry']['snapshot']();}async['runOnAddHooks'](t){let _0x1a17b7=t['getValue']('file');if(!_0x1a17b7)return;let _0x1ca9b2=this['registry']['snapshot']()['fileHooks']['filter'](_0x1847b7=>'onAdd'===_0x1847b7['type']);if(0x0===_0x1ca9b2['length'])return;let _0x856de7=_0x1a17b7,_0x46cadd=new AbortController();for(let _0x526e8f of _0x1ca9b2){if(_0x46cadd['signal']['aborted'])break;try{let _0x3f8b06=_0x526e8f['handler']({'file':_0x856de7,'signal':_0x46cadd['signal']}),_0x7a195c=new Promise((_0x2b64be,_0x1773fb)=>setTimeout(()=>_0x1773fb(new Error('onAdd\x20hook\x20timed\x20out')),_0x526e8f['timeout']));({file:_0x856de7}=await Promise['race']([_0x3f8b06,_0x7a195c]));}catch(_0x3182f9){console['warn']('File\x20hook\x20\x22onAdd\x22\x20from\x20plugin\x20\x22'+_0x526e8f['pluginId']+'\x22\x20failed',_0x3182f9);}}_0x856de7!==_0x1a17b7&&(t['setValue']('file',_0x856de7),t['setValue']('fileSize',_0x856de7['size']),t['setValue']('mimeType',_0x856de7['type']||null),t['setValue']('isImage',C4(_0x856de7)),_0x856de7 instanceof File&&t['setValue']('fileName',_0x856de7['name']));}destroy(){for(let t of Array['from'](this['je']['keys']()))this['uo'](t);this['pn']['destroy'](),super['destroy']();}['co'](){for(let t of this['c'])try{t();}catch{}}};function L4(_0x5dea63){return Array['isArray'](_0x5dea63)?_0x5dea63['map'](_0x58e1e2=>'object'==typeof _0x58e1e2&&null!==_0x58e1e2?L4(_0x58e1e2):_0x58e1e2):'object'!=typeof _0x5dea63||null===_0x5dea63?_0x5dea63:Object['fromEntries'](Object['entries'](_0x5dea63)['map'](([_0xd7c514,t])=>{let _0x27d04f=function(_0x516c1f){return _0x516c1f['replace'](/[A-Z]/g,_0x56c3b6=>'_'+_0x56c3b6['toLowerCase']())['replace'](/__/g,'_');}(_0xd7c514);return'object'==typeof t&&null!==t?[_0x27d04f,L4(t)]:[_0x27d04f,t];}));}function $4(_0xebc6d1){return{'ok':!0x1,'error':_0xebc6d1};}var D4=class{constructor(_0x33e86d='https://tlm.uploadcare.com/api/'){this['baseUrl']=_0x33e86d;}async['base'](_0x3c871a,t={}){let _0x54f28e=''+this['baseUrl']+_0x3c871a;try{let _0x8ca060=await fetch(_0x54f28e,t);if(!_0x8ca060['ok'])return $4(new Error('Got\x20non-200\x20response\x20from\x20\x22'+_0x54f28e+'\x22.\x20Status:\x20'+_0x8ca060['status']['toString']()));try{return function(_0x4351dc){return{'ok':!0x0,'value':_0x4351dc};}(await _0x8ca060['json']());}catch(_0x5b9920){return $4(new Error('Error\x20parsing\x20JSON\x20from\x20\x22'+_0x54f28e+'\x22.\x20Error:\x20'+_0x5b9920));}}catch(_0x304049){return $4(new Error('Error\x20fetching\x20data\x20from\x20\x22'+_0x54f28e+'\x22.\x20Error:\x20'+_0x304049));}}async post(_0x5277a4,t,_0x3a0f1d={}){return await this['base'](_0x5277a4,{..._0x3a0f1d,'method':'POST','body':JSON['stringify'](L4(t)),'headers':{'Content-Type':'application/json',..._0x3a0f1d['headers']||{}}});}async get(_0x5089dc,t={}){return await this['base'](_0x5089dc,{'method':'GET',...t});}},Q4=class extends D4{constructor(){super();}async sendEvent(_0x55434c,t){let _0x2108c4=await(async _0x5d7e54=>(async(_0x26b332,_0x3f77fc)=>({'success':!0x0,'data':_0x3f77fc}))(0x0,_0x5d7e54))(_0x55434c);if(!_0x2108c4['success'])throw console['error']('TelemetryAPIService:\x20events:\x20body\x20is\x20invalid',_0x2108c4['error']),new Error('TelemetryAPIService:\x20events:\x20body\x20is\x20invalid');return this['post']('v1/events',_0x55434c,t);}},j4=Object['freeze']({'INIT_SOLUTION':'init-solution','CHANGE_CONFIG':'change-config','ACTION_EVENT':'action-event','ERROR_EVENT':'error-event'}),U4=Object['freeze']({'FILE_ADDED':'file-added','FILE_REMOVED':'file-removed','FILE_UPLOAD_START':'file-upload-start','FILE_UPLOAD_PROGRESS':'file-upload-progress','FILE_UPLOAD_SUCCESS':'file-upload-success','FILE_UPLOAD_FAILED':'file-upload-failed','FILE_URL_CHANGED':'file-url-changed','MODAL_OPEN':'modal-open','MODAL_CLOSE':'modal-close','DONE_CLICK':'done-click','UPLOAD_CLICK':'upload-click','ACTIVITY_CHANGE':'activity-change','COMMON_UPLOAD_START':'common-upload-start','COMMON_UPLOAD_PROGRESS':'common-upload-progress','COMMON_UPLOAD_SUCCESS':'common-upload-success','COMMON_UPLOAD_FAILED':'common-upload-failed','CHANGE':'change','GROUP_CREATED':'group-created'}),V4=class extends Z5{constructor(){super(...arguments),this['Qt']=new Map(),this['ji']=new Set(),this['te']=new Map();}bindTarget(t){return this['ji']['add'](t),()=>{this['ji']['delete'](t);};}['on'](t,_0x195bd9){let _0x2705c0=this['te']['get'](t);return _0x2705c0||(_0x2705c0=new Set(),this['te']['set'](t,_0x2705c0)),_0x2705c0['add'](_0x195bd9),()=>this['te']['get'](t)?.['delete'](_0x195bd9);}['hn'](t,_0x6755ee){for(let _0x17888f of this['ji'])_0x17888f['dispatchEvent'](new CustomEvent(t,{'detail':_0x6755ee}));let _0x4c8048=this['te']['get'](t);if(_0x4c8048){for(let _0x31ccb9 of _0x4c8048)_0x31ccb9(_0x6755ee);}this['w']?.(()=>{let _0x52920e=_0x6755ee&&'object'==typeof _0x6755ee?{..._0x6755ee}:_0x6755ee;return['event\x20\x22'+t+'\x22',_0x52920e];});}emit(t,_0x451697,_0x10ad6c={}){let {debounce:_0x1c383c}=_0x10ad6c;if('number'!=typeof _0x1c383c&&!_0x1c383c)return void this['hn'](t,'function'==typeof _0x451697?_0x451697():_0x451697);this['Qt']['has'](t)&&window['clearTimeout'](this['Qt']['get'](t));let _0x282264='number'==typeof _0x1c383c?_0x1c383c:0x14,_0x226234=window['setTimeout'](()=>{try{let _0x4b926a='function'==typeof _0x451697?_0x451697():_0x451697;this['hn'](t,_0x4b926a),this['Qt']['delete'](t);}catch(_0x21b993){this['w']?.(()=>'Error\x20while\x20getting\x20payload\x20for\x20event\x20\x22'+t+'\x22',_0x21b993);}},_0x282264);this['Qt']['set'](t,_0x226234);}destroy(){for(let t of this['Qt']['values']())window['clearTimeout'](t);this['ji']['clear'](),this['te']['clear']();}},B4='blocks',H4='1.29.0',F4=class extends Z5{constructor(t){super(t),this['jc']=t5['generateRandomUUID'](),this['Ct']=structuredClone(H5),this['po']=!0x1,this['ho']=null,this['Oe']=!0x1,this['mn']=new Q4(),this['St']=new o4(0xa),this['addSub'](this['e']['sub'](h5('qualityInsights'),_0x4ed1ba=>{this['Oe']=!!_0x4ed1ba;}));for(let _0x31cd07 of Object['keys'](this['Ct']))this['addSub'](this['e']['sub'](h5(_0x31cd07),_0x1f4c22=>{this['Oe']&&(this['po']&&this['Ct'][_0x31cd07]!==_0x1f4c22&&this['sendEvent']({'eventType':j4['CHANGE_CONFIG']}),this['Gc'](_0x31cd07,_0x1f4c22));}));}['qc'](t){t===j4['INIT_SOLUTION']&&!this['po']&&(this['po']=!0x0);}['Gc'](t,_0x5118ee){this['Ct'][t]!==_0x5118ee&&(this['Ct'][t]=_0x5118ee);}['Wc'](t){let _0x3b1553=t['payload']?{...t['payload']}:{};_0x3b1553['activity']&&(_0x3b1553['activity']=void 0x0);let _0x5120b3={...t};return(t['eventType']===j4['INIT_SOLUTION']||t['eventType']===j4['CHANGE_CONFIG'])&&(_0x5120b3['config']=this['Ct']),{..._0x5120b3,'appVersion':H4,'appName':B4,'sessionId':this['jc'],'component':this['Zc'],'activity':this['Yc'],'projectPubkey':this['Ct']['pubkey'],'userAgent':navigator['userAgent'],'eventType':_0x5120b3['eventType']??'','eventTimestamp':this['Xc'],'payload':{'location':this['Qc'],..._0x3b1553}};}['Jc'](t){return!(!t||![U4['CHANGE'],U4['COMMON_UPLOAD_PROGRESS'],U4['FILE_ADDED'],U4['FILE_REMOVED'],U4['FILE_UPLOAD_START'],U4['FILE_UPLOAD_PROGRESS'],U4['FILE_UPLOAD_SUCCESS'],U4['FILE_UPLOAD_FAILED']]['includes'](t));}sendEvent(t){if(!this['Oe'])return;let _0x3566ef=this['Wc']({'eventType':t['eventType'],'payload':t['payload'],'config':t['config']});this['qc'](t['eventType']),!(this['Jc'](t['eventType'])||this['ho']&&this['gn'](this['ho'],_0x3566ef))&&this['St']['add'](async()=>{this['ho']=_0x3566ef,await this['mn']['sendEvent'](_0x3566ef);});}sendEventError(t,_0x13ddbb='unknown'){this['sendEvent']({'eventType':j4['ERROR_EVENT'],'payload':{'metadata':{'event':'error','text':'Error\x20in\x20'+_0x13ddbb,'error':t['message']}}});}sendEventCloudImageEditor(t,_0x1a3653,_0x55c087={}){this['sendEvent']({'eventType':j4['ACTION_EVENT'],'payload':{'metadata':{'tabId':_0x1a3653,'node':t['currentTarget']?.['tagName'],'event':t['type'],..._0x55c087}}});}['gn'](t,_0xc9685a){if(JSON['stringify'](t)===JSON['stringify'](_0xc9685a))return!0x0;if('object'!=typeof t||'object'!=typeof _0xc9685a||null==t||null==_0xc9685a)return!0x1;let _0x2fc1c9=Object['keys'](t),_0xcc2f03=Object['keys'](_0xc9685a);if(_0x2fc1c9['length']!==_0xcc2f03['length'])return!0x1;for(let _0x1ff11f of _0x2fc1c9)if(!Object['hasOwn'](_0xc9685a,_0x1ff11f)||!this['gn'](t[_0x1ff11f],_0xc9685a[_0x1ff11f]))return!0x1;return!0x0;}get['Xc'](){return Date['now']();}get['Zc'](){if(!this['e']['has']('*solution'))return null;let t=this['e']['read']('*solution');return t?t['toLowerCase']():null;}get['Yc'](){return this['e']['has']('*currentActivity')?this['e']['read']('*currentActivity'):null;}get['Qc'](){return location['origin'];}},Z4=_0x346932=>_0x346932,G4='plural:';function X4(_0xa62f45,_0x825374={},t={}){let {openToken:_0x5aaa0a='{{',closeToken:_0x400fc2='}}',transform:_0x356078=Z4}=t;for(let _0x50f4f0 in _0x825374){let _0x227427=_0x825374[_0x50f4f0]?.['toString'](),_0x23aa9c='string'==typeof _0x227427?_0x356078(_0x227427):String(_0x227427);_0xa62f45=_0xa62f45['replaceAll'](_0x5aaa0a+_0x50f4f0+_0x400fc2,_0x23aa9c);}return _0xa62f45;}var q4='--uploadcare-blocks-window-height',W4=class o{static{this['clientsRegistry']=new Set();}static{this['flush']=z2(()=>{document['documentElement']['style']['setProperty'](q4,window['innerHeight']+'px');},0x64);}static registerClient(_0x328b76){0x0===o['clientsRegistry']['size']&&o['attachTracker'](),o['clientsRegistry']['add'](_0x328b76);}static unregisterClient(_0x54c2d4){o['clientsRegistry']['delete'](_0x54c2d4),0x0===o['clientsRegistry']['size']&&o['detachTracker']();}static attachTracker(){window['addEventListener']('resize',o['flush'],{'passive':!0x0,'capture':!0x0}),o['flush']();}static detachTracker(){window['removeEventListener']('resize',o['flush'],{'capture':!0x0}),document['documentElement']['style']['removeProperty'](q4);}},z4=(_0x1d095d,_0x3cd6b0)=>new Intl['PluralRules'](_0x1d095d)['select'](_0x3cd6b0),Y4=_0x4108d0=>{let _0x56ef4c=(_0x4c37a3=>(_0x4d600b,t)=>{let _0x143294=_0x4c37a3();return _0x143294(_0x4d600b+'__'+z4(_0x143294('locale-id')||'en',t));})(()=>t),t=(_0x1536ce,_0x484dc6={})=>{if(!_0x1536ce)return'';let _0x2b552e=_0x4108d0()['read'](y4(_0x1536ce))||_0x1536ce,_0x5825b3=function(_0x2be86b){let _0x166d08=[],t=_0x2be86b['indexOf']('{{');for(;-0x1!==t;){let _0x4b719b=_0x2be86b['indexOf']('}}',t);if(-0x1===_0x4b719b)break;let _0x399f67=_0x2be86b['substring'](t+0x2,_0x4b719b);if(_0x399f67['startsWith'](G4)){let _0x41fdf7=_0x2be86b['substring'](t+0x2,_0x4b719b)['replace'](G4,''),_0x2ebae0=_0x41fdf7['substring'](0x0,_0x41fdf7['indexOf']('(')),_0x39081a=_0x41fdf7['substring'](_0x41fdf7['indexOf']('(')+0x1,_0x41fdf7['indexOf'](')'));_0x166d08['push']({'variable':_0x399f67,'pluralKey':_0x2ebae0,'countVariable':_0x39081a});}t=_0x2be86b['indexOf']('{{',_0x4b719b);}return _0x166d08;}(_0x2b552e);for(let _0x3805e0 of _0x5825b3)_0x484dc6[_0x3805e0['variable']]=_0x56ef4c(_0x3805e0['pluralKey'],Number(_0x484dc6[_0x3805e0['countVariable']]));return X4(_0x2b552e,_0x484dc6);};return t;},K4=class{constructor(_0x2c497d){this['Ge']=new Set(),this['Gi']=new Map(),this['vn']=!0x1,this['qe']=_0x2c497d,this['qe']['addController'](this);}hostDisconnected(){this['qi']?.(),this['qi']=void 0x0,this['Ge']['clear'](),this['Gi']['clear']();}hostUpdated(){if(!this['qi']&&this['qe']['has'](h5('testMode'))){let _0x249b7d=this['qe']['subConfigValue']('testMode',t=>{this['vn']=!!t,this['yn']();});this['qi']=_0x249b7d;}this['eu'](),this['yn']();}['eu'](){let _0x29cec5=this['qe'],t=_0x29cec5['renderRoot']??_0x29cec5;if(!t)return;let _0x2088c0=this['qe'],_0x248a1d=_0x2088c0['tagName']?.['toLowerCase'](),_0x1f21af=Array['from'](t['querySelectorAll']('[data-testid]'))['filter'](_0x4de9c3=>!(_0x15ea13=>_0x15ea13['tagName']?.['includes']('-')??!0x1)(_0x4de9c3));for(let _0x1ed397 of _0x1f21af)if(!(_0x248a1d&&_0x1ed397['closest'](_0x248a1d)!==_0x2088c0||this['Ge']['has'](_0x1ed397))){let _0x2ed19f=_0x1ed397['getAttribute']('data-testid');if(!_0x2ed19f)continue;this['Ge']['add'](_0x1ed397),this['Gi']['set'](_0x1ed397,_0x2ed19f);}for(let _0x239d2a of Array['from'](this['Ge']))(!_0x239d2a['isConnected']||_0x248a1d&&_0x239d2a['closest'](_0x248a1d)!==_0x2088c0)&&(this['Ge']['delete'](_0x239d2a),this['Gi']['delete'](_0x239d2a));}['yn'](){if(!this['Ge']['size'])return;let _0x428a81=this['qe']['testId']||'';for(let t of this['Ge']){let _0x2fd617=this['Gi']['get'](t);_0x2fd617&&(this['vn']?t['setAttribute']('data-testid',_0x428a81+'--'+_0x2fd617):t['removeAttribute']('data-testid'));}}},J4=U2(K2()(Q2(j2(L2)))),t6=class extends J4{constructor(){super(),this['init$']={},this['l10n']=Y4(()=>this['sharedCtx']),this['debugPrint']=F5(()=>this['sharedCtx'],this['constructor']['name']),this['i']=q5(()=>this['sharedCtx']),new K4(this);}static{this['styleAttrs']=[];}emit(t,_0x49544a,_0x4617ec){let _0x33604b=this['has']('*eventEmitter')?this['$']['*eventEmitter']:void 0x0;if(!_0x33604b)return;_0x33604b['emit'](t,_0x49544a,_0x4617ec);let _0xa7f6d7='function'==typeof _0x49544a?_0x49544a():_0x49544a;this['telemetryManager']['sendEvent']({'eventType':t,'payload':_0xa7f6d7??void 0x0});}hasBlockInCtx(t){for(let _0x3adebe of this['blocksRegistry'])if(t(_0x3adebe))return!0x0;return!0x1;}connectedCallback(){this['constructor']['styleAttrs']['forEach'](_0x228b20=>{this['setAttribute'](_0x228b20,'');}),super['connectedCallback'](),W4['registerClient'](this);}initCallback(){this['Z']('*blocksRegistry',()=>new Set()),this['Z']('*pluginManager',t=>new M4(t)),this['Z']('*eventEmitter',t=>new V4(t)),this['Z']('*localeManager',t=>new v4(t)),this['Z']('*modalManager',t=>new z5(t)),this['Z']('*a11y',()=>new b4()),this['Z']('*clipboard',t=>new h4(t)),this['Z']('*telemetryManager',t=>new F4(t)),this['sub'](y4('locale-id'),t=>{let _0xfa7485=(_0x4ec80a=>{let _0x4ed8a0=new Intl['Locale'](_0x4ec80a),t='ltr',_0x4d8252=_0x4ed8a0['getTextInfo']?.()['direction'];return _0x4d8252?t=_0x4d8252:_0x4ed8a0['textInfo']?.['direction']&&(t=_0x4ed8a0['textInfo']['direction']),t;})(t);this['style']['direction']='ltr'===_0xfa7485?'':_0xfa7485,this['requestUpdate']();}),this['subConfigValue']('testMode',t=>{t&&this['testId']?this['setAttribute']('data-testid',this['testId']):this['removeAttribute']('data-testid');}),this['blocksRegistry']['add'](this);}get testId(){return window['customElements']['getName'](this['constructor']);}get['modalManager'](){return this['ie']('*modalManager',!0x1);}get telemetryManager(){return this['ie']('*telemetryManager');}get['localeManager'](){return this['ie']('*localeManager');}get['a11y'](){return this['ie']('*a11y');}get['clipboardLayer'](){return this['ie']('*clipboard');}get blocksRegistry(){return this['ie']('*blocksRegistry');}get eventEmitter(){return this['ie']('*eventEmitter');}disconnectedCallback(){super['disconnectedCallback'](),W4['unregisterClient'](this);let t=this['blocksRegistry'];t?.['delete'](this),0x0===t?.['size']&&setTimeout(()=>{this['isConnected']||t?.['size']>0x0||this['destroyCtxCallback']();},0x0);}destroyCtxCallback(){this['tu'](),k1['deleteCtx'](this['ctxName']);}['bn'](){let t='*sharedContextInstances';if(!this['has'](t)||!this['$'][t]){let _0x362900=new Map();this['add'](t,_0x362900,!0x0);}return this['$'][t];}['Z'](t,_0x2a7d06){let _0x19c09e=this['bn']();if(!(_0x19c09e['has'](t)||this['has'](t)&&this['$'][t])){let _0x40eac5=_0x2a7d06(this['i']);return this['add'](t,_0x40eac5,!0x0),void _0x19c09e['set'](t,_0x40eac5);}}tu(){let t=this['bn']();for(let [_0x2e17c5,_0xfa99d3]of t['entries']())_0xfa99d3?.['destroy']?.(),this['pub'](_0x2e17c5,null);t['clear']();}['ie'](t,_0x302f20=!0x0){if(this['has'](t)&&this['$'][t])return this['$'][t];if(!_0x302f20)return this['$'][t];throw new Error('Unexpected\x20error:\x20context\x20manager\x20for\x20key\x20\x22'+String(t)+'\x22\x20is\x20not\x20available');}async['proxyUrl'](t){if(this['cfg']['secureDeliveryProxy']&&this['cfg']['secureDeliveryProxyUrlResolver']&&console['warn']('Both\x20secureDeliveryProxy\x20and\x20secureDeliveryProxyUrlResolver\x20are\x20set.\x20The\x20secureDeliveryProxyUrlResolver\x20will\x20be\x20used.'),this['cfg']['secureDeliveryProxyUrlResolver'])try{return await this['cfg']['secureDeliveryProxyUrlResolver'](t,{'uuid':O5(t),'cdnUrlModifiers':w5(t),'fileName':g5(t)});}catch(_0xad1378){return console['error']('Failed\x20to\x20resolve\x20secure\x20delivery\x20proxy\x20URL.\x20Falling\x20back\x20to\x20the\x20default\x20URL.',_0xad1378),this['telemetryManager']['sendEventError'](_0xad1378,'secureDeliveryProxyUrlResolver.\x20Failed\x20to\x20resolve\x20secure\x20delivery\x20proxy\x20URL.\x20Falling\x20back\x20to\x20the\x20default\x20URL.'),t;}return this['cfg']['secureDeliveryProxy']?X4(this['cfg']['secureDeliveryProxy'],{'previewUrl':t},{'transform':_0x24e062=>window['encodeURIComponent'](_0x24e062)}):t;}get['cfg'](){if(!this['Be']){let t={};this['Be']=new Proxy(t,{'set':(_0x17fbf7,_0x1bd3c6,_0x2c9432)=>{if('string'!=typeof _0x1bd3c6||!(_0x1bd3c6 in H5))return!0x1;let _0x8950be=_0x1bd3c6,_0x462546=h5(_0x8950be);return this['has'](_0x462546)||this['add'](_0x462546,H5[_0x8950be]),this['$'][_0x462546]=_0x2c9432,!0x0;},'get':(_0xe06ca6,_0x580b9f)=>{let _0x29ac5a=h5(_0x580b9f);return this['has'](_0x29ac5a)||this['add'](_0x29ac5a,H5[_0x580b9f]),this['$'][_0x29ac5a];}});}return this['Be'];}['subConfigValue'](t,_0x565863){let _0x3399ff=h5(t);return this['has'](_0x3399ff)||this['add'](_0x3399ff,H5[t]),this['sub'](_0x3399ff,_0x565863);}},e6=0x1,i6=0x2,s6=_0x1755d5=>(..._0xa87df2)=>({'qr':_0x1755d5,'values':_0xa87df2}),n6=class{constructor(_0x45c309){}get['W'](){return this['f']['W'];}['Wr'](_0xf2e286,t,_0x109fbc){this['Wi']=_0xf2e286,this['f']=t,this['iu']=_0x109fbc;}['Lc'](_0x104032,t){return this['update'](_0x104032,t);}update(_0x4bd2e6,t){return this['render'](...t);}},r6=class extends n6{constructor(_0x12decf){if(super(_0x12decf),this['it']=b2,_0x12decf['type']!==i6)throw Error(this['constructor']['directiveName']+'()\x20can\x20only\x20be\x20used\x20in\x20child\x20bindings');}['render'](_0x16d369){if(_0x16d369===b2||null==_0x16d369)return this['wn']=void 0x0,this['it']=_0x16d369;if(_0x16d369===w2)return _0x16d369;if('string'!=typeof _0x16d369)throw Error(this['constructor']['directiveName']+'()\x20called\x20with\x20a\x20non-string\x20value');if(_0x16d369===this['it'])return this['wn'];this['it']=_0x16d369;let t=[_0x16d369];return t['raw']=t,this['wn']={'Ne':this['constructor']['resultType'],'strings':t,'values':[]};}};r6['directiveName']='unsafeHTML',r6['resultType']=0x1;var o6=class extends r6{};o6['directiveName']='unsafeSVG',o6['resultType']=0x2;var a6=s6(o6),c6=class extends t6{constructor(){super(...arguments),this['init$']=(_0x484047=>({...c4(_0x484047),'*solution':null,'*lazyPlugins':null}))(this);}static{this['styleAttrs']=['uc-wgt-common'];}static{this['lazyPlugins']=null;}initCallback(){super['initCallback'](),this['a11y']?.['registerBlock'](this),this['clipboardLayer']?.['registerBlock'](this),this['sharedCtx']['pub']('*solution',this['tagName']);let t=this['constructor']['lazyPlugins'];t&&this['sharedCtx']['pub']('*lazyPlugins',t);}['render'](){return O2`${a6('<svg\x20width=\x270\x27\x20height=\x270\x27\x20style=\x27position:absolute\x27><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-about\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M11.152\x2014.12v.1h1.523v-.1c.007-.409.053-.752.138-1.028.086-.277.22-.517.405-.72.188-.202.434-.397.735-.586.32-.191.593-.412.82-.66.232-.249.41-.531.533-.847.125-.32.187-.678.187-1.076\x200-.579-.137-1.085-.41-1.518a2.717\x202.717\x200\x200\x200-1.14-1.018c-.49-.245-1.062-.367-1.715-.367-.597\x200-1.142.114-1.636.34-.49.228-.884.564-1.182\x201.008-.299.44-.46.98-.485\x201.619h1.62c.024-.377.118-.684.282-.922a1.48\x201.48\x200\x200\x201\x20.617-.532c.25-.114.51-.17.784-.17.301\x200\x20.575.063.82.191.248.124.447.302.597.533.149.23.223.504.223.82\x200\x20.263-.05.502-.149.72a1.91\x201.91\x200\x200\x201-.405.574\x203.48\x203.48\x200\x200\x201-.575.453\x204.22\x204.22\x200\x200\x200-.847.66c-.234.242-.415.558-.543.949-.125.39-.19.916-.197\x201.577Zm.053\x203.03c.21.206.46.31.75.31.196\x200\x20.374-.049.534-.144a1.1\x201.1\x200\x200\x200\x20.383-.384c.1-.163.15-.343.15-.538a1\x201\x200\x200\x200-.32-.746\x201.019\x201.019\x200\x200\x200-.746-.314c-.291\x200-.542.105-.751.314-.21.206-.314.455-.314.746\x200\x20.295.104.547.314.756ZM24\x2012c0\x206.627-5.373\x2012-12\x2012S0\x2018.627\x200\x2012\x205.373\x200\x2012\x200s12\x205.373\x2012\x2012Zm-1.5\x200c0\x205.799-4.701\x2010.5-10.5\x2010.5S1.5\x2017.799\x201.5\x2012\x206.201\x201.5\x2012\x201.5\x2022.5\x206.201\x2022.5\x2012Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-add\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M12.75\x2021a.75.75\x200\x200\x201-1.5\x200v-8.25H3a.75.75\x200\x200\x201\x200-1.5h8.25V3a.75.75\x200\x200\x201\x201.5\x200v8.25H21a.75.75\x200\x200\x201\x200\x201.5h-8.25V21Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-arrow-down\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M11.5\x2023.03a.75.75\x200\x200\x200\x20.999\x200l9.29-8.276a.75.75\x200\x200\x200-.998-1.12l-8.042\x207.164V1.53a.75.75\x200\x200\x200-1.5\x200v19.267l-8.04-7.163a.75.75\x200\x200\x200-.998\x201.12z\x27/></symbol><symbol\x20fill=\x27none\x27\x20viewBox=\x270\x200\x209\x206\x27\x20id=\x27uc-icon-arrow-dropdown\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke=\x27currentColor\x27\x20d=\x27m1.5\x201.667\x203\x202.666\x203-2.666\x27\x20opacity=\x27.5\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-aspect-ratio\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke=\x27currentColor\x27\x20d=\x27M7.395\x2022.5H2.454v-5.25m14.824\x205.25h4.94v-5.25m0-10.5V1.5h-4.94m-9.883\x200H2.454v5.25\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-back\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M20.251\x2012a.75.75\x200\x200\x201-.75.75H6.067l5.72\x205.85a.75.75\x200\x201\x201-1.072\x201.05L4.136\x2012.92a1.292\x201.292\x200\x200\x201\x200-1.842l6.579-6.728a.75.75\x200\x201\x201\x201.072\x201.048l-5.72\x205.851H19.5a.75.75\x200\x200\x201\x20.75.75Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-badge-error\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M13.6\x2018.4a1.6\x201.6\x200\x201\x201-3.2\x200\x201.6\x201.6\x200\x200\x201\x203.2\x200zM12\x204.5A1.5\x201.5\x200\x200\x201\x2013.5\x206v7a1.5\x201.5\x200\x200\x201-3\x200V6A1.5\x201.5\x200\x200\x201\x2012\x204.5z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-badge-success\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27m10.5\x2018.204\x207.6-8.183a1.5\x201.5\x200\x200\x200-2.2-2.042l-5.4\x205.817-2.4-2.586a1.5\x201.5\x200\x201\x200-2.2\x202.041l4.6\x204.953Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-box\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M1.01\x204.148a.75.75\x200\x200\x201\x20.75.75v4.348a4.437\x204.437\x200\x200\x201\x202.988-1.153c1.734\x200\x203.23.992\x203.978\x202.438a4.478\x204.478\x200\x200\x201\x203.978-2.438c2.49\x200\x204.488\x202.044\x204.488\x204.543\x200\x202.5-1.999\x204.544-4.488\x204.544a4.478\x204.478\x200\x200\x201-3.978-2.438\x204.478\x204.478\x200\x200\x201-3.978\x202.438C2.26\x2017.18.26\x2015.135.26\x2012.636V4.898a.75.75\x200\x200\x201\x20.75-.75Zm.75\x208.488c0\x201.692\x201.348\x203.044\x202.988\x203.044s2.989-1.352\x202.989-3.044c0-1.691-1.349-3.043-2.989-3.043S1.76\x2010.945\x201.76\x2012.636Zm10.944-3.043c-1.64\x200-2.988\x201.352-2.988\x203.043\x200\x201.692\x201.348\x203.044\x202.988\x203.044s2.988-1.352\x202.988-3.044c0-1.69-1.348-3.043-2.988-3.043Zm4.328-1.23a.75.75\x200\x200\x201\x201.052.128l2.333\x202.983\x202.333-2.983a.75.75\x200\x200\x201\x201.181.924l-2.562\x203.277\x202.562\x203.276a.75.75\x200\x201\x201-1.181.924l-2.333-2.983-2.333\x202.983a.75.75\x200\x201\x201-1.181-.924l2.562-3.276-2.562-3.277a.75.75\x200\x200\x201\x20.129-1.052Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-camera\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M7.65\x202.55a.75.75\x200\x200\x201\x20.6-.3h7.5a.75.75\x200\x200\x201\x20.6.3l2.025\x202.7H21a3\x203\x200\x200\x201\x203\x203v10.5a3\x203\x200\x200\x201-3\x203H3a3\x203\x200\x200\x201-3-3V8.25a3\x203\x200\x200\x201\x203-3h2.625zm.975\x201.2L6.6\x206.45a.75.75\x200\x200\x201-.6.3H3a1.5\x201.5\x200\x200\x200-1.5\x201.5v10.5a1.5\x201.5\x200\x200\x200\x201.5\x201.5h18a1.5\x201.5\x200\x200\x200\x201.5-1.5V8.25a1.5\x201.5\x200\x200\x200-1.5-1.5h-3a.75.75\x200\x200\x201-.6-.3l-2.025-2.7zm3.375\x206a3.375\x203.375\x200\x201\x200\x200\x206.75\x203.375\x203.375\x200\x200\x200\x200-6.75zm-4.875\x203.375a4.875\x204.875\x200\x201\x201\x209.75\x200\x204.875\x204.875\x200\x200\x201-9.75\x200z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-camera-full\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill-rule=\x27evenodd\x27\x20clip-rule=\x27evenodd\x27\x20d=\x27M2\x204.667a2\x202\x200\x200\x200-2\x202V16a2\x202\x200\x200\x200\x202\x202h16a2\x202\x200\x200\x200\x202-2V6.667a2\x202\x200\x200\x200-2-2h-2.667l-2-2.667H6.667l-2\x202.667H2Zm8\x2010a3.667\x203.667\x200\x201\x200\x200-7.334\x203.667\x203.667\x200\x200\x200\x200\x207.334Z\x27\x20fill=\x27currentColor\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-close\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M4.604\x204.604a.75.75\x200\x200\x201\x201.06\x200L12\x2010.939l6.335-6.335a.75.75\x200\x201\x201\x201.061\x201.06L13.061\x2012l6.335\x206.335a.75.75\x200\x201\x201-1.06\x201.061L12\x2013.061l-6.335\x206.335a.75.75\x200\x200\x201-1.061-1.06L10.939\x2012\x204.604\x205.665a.75.75\x200\x200\x201\x200-1.061z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-collapse\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M3.116\x2012a.75.75\x200\x200\x201\x20.75-.75h16.268a.75.75\x200\x200\x201\x200\x201.5H3.866a.75.75\x200\x200\x201-.75-.75Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-default\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M11.501.392a.75.75\x200\x200\x201\x20.998\x200l6.704\x205.972a.75.75\x200\x200\x201-.998\x201.12l-5.455-4.86v13.439a.75.75\x200\x200\x201-1.5\x200V2.625l-5.454\x204.86a.75.75\x200\x201\x201-.998-1.12zM.857\x2016.73a.75.75\x200\x200\x201\x20.75.75v4.914h20.786v-4.914a.75.75\x200\x200\x201\x201.5\x200v5.664a.75.75\x200\x200\x201-.75.75H.857a.75.75\x200\x200\x201-.75-.75v-5.664a.75.75\x200\x200\x201\x20.75-.75z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-dropbox\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M6.019\x201.92a.75.75\x200\x200\x201\x20.806\x200L12\x205.219l5.176-3.297a.75.75\x200\x200\x201\x20.806\x200l5.577\x203.553a.75.75\x200\x200\x201\x200\x201.265l-4.574\x202.914\x204.574\x202.914a.75.75\x200\x200\x201\x200\x201.265l-5.577\x203.554a.75.75\x200\x200\x201-.806\x200L12\x2014.089l-5.175\x203.297a.75.75\x200\x200\x201-.806\x200L.44\x2013.833a.75.75\x200\x200\x201\x200-1.266l4.575-2.914L.44\x206.74a.75.75\x200\x200\x201\x200-1.265zm.403\x208.616L2.24\x2013.2l4.182\x202.664\x204.181-2.664zm6.975\x202.664\x204.182\x202.664L21.76\x2013.2l-4.181-2.664zm2.776-3.547L12\x2012.311\x207.828\x209.653\x2012\x206.995zm1.406-.882\x204.181-2.664-4.181-2.664-4.182\x202.664zm-6.976-2.664L6.422\x203.443\x202.24\x206.107\x206.422\x208.77zM5.791\x2018.544a.75.75\x200\x200\x201\x201.035-.23l5.175\x203.297\x205.175-3.297a.75.75\x200\x201\x201\x20.806\x201.265l-5.578\x203.554a.75.75\x200\x200\x201-.806\x200L6.02\x2019.579a.75.75\x200\x200\x201-.23-1.035z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-edit-file\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M18.558\x202.804a.78.78\x200\x200\x200-.557.235l-.008.007-2.472\x202.46\x203.847\x203.848\x202.46-2.473.004-.003a.78.78\x200\x200\x200\x200-1.108l-.004-.003-2.712-2.728a.78.78\x200\x200\x200-.558-.235Zm-.248\x207.613-3.852-3.852-8.93\x208.887-1.516\x205.41\x205.41-1.515\x208.888-8.93Zm-.636-8.934a2.28\x202.28\x200\x200\x201\x202.512.505l2.702\x202.717.002.002a2.278\x202.278\x200\x200\x201\x200\x203.234l-.002.002-12.541\x2012.602a.75.75\x200\x200\x201-.33.193l-6.884\x201.928a.75.75\x200\x200\x201-.925-.924l1.928-6.885a.75.75\x200\x200\x201\x20.193-.33l12.603-12.54a2.28\x202.28\x200\x200\x201\x20.742-.504Z\x27\x20clip-rule=\x27evenodd\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-error\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M13\x2013h-2V7h2m0\x2010h-2v-2h2M12\x202A10\x2010\x200\x200\x200\x202\x2012a10\x2010\x200\x200\x200\x2010\x2010\x2010\x2010\x200\x200\x200\x2010-10A10\x2010\x200\x200\x200\x2012\x202Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-evernote\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M9.804\x202.27v-.048c.055-.263.313-.562.85-.562h.44c.142\x200\x20.325.014.526.033.066.009.124.023.267.06l.13.032h.002c.319.079.515.275.644.482a1.461\x201.461\x200\x200\x201\x20.16.356l.004.012a.75.75\x200\x200\x200\x20.603.577l1.191.207a1988.512\x201988.512\x200\x200\x200\x202.332.402c.512.083\x201.1.178\x201.665.442.64.3\x201.19.795\x201.376\x201.77.548\x202.931.657\x205.829.621\x208a39.233\x2039.233\x200\x200\x201-.125\x202.602\x2017.518\x2017.518\x200\x200\x201-.092.849.735.735\x200\x200\x200-.024.112c-.378\x202.705-1.269\x203.796-2.04\x204.27-.746.457-1.53.451-2.217.447h-.192c-.46\x200-1.073-.23-1.581-.635-.518-.412-.763-.87-.763-1.217\x200-.45.188-.688.355-.786.161-.095.436-.137.796.087a.75.75\x200\x201\x200\x20.792-1.274c-.766-.476-1.64-.52-2.345-.108-.7.409-1.098\x201.188-1.098\x202.08\x200\x20.996.634\x201.84\x201.329\x202.392.704.56\x201.638.96\x202.515.96l.185.002c.667.009\x201.874.025\x203.007-.67\x201.283-.786\x202.314-2.358\x202.733-5.276a4.213\x204.213\x200\x200\x200\x20.056-.335c.023-.184.051-.445.079-.772.055-.655.111-1.585.13-2.704.037-2.234-.074-5.239-.647-8.301v-.002c-.294-1.544-1.233-2.391-2.215-2.85-.777-.363-1.623-.496-2.129-.576a8.872\x208.872\x200\x200\x201-.25-.041l-.006-.001-1.99-.345-.761-.132a2.93\x202.93\x200\x200\x200-.182-.338A2.532\x202.532\x200\x200\x200\x2012.379.329l-.091-.023a3.967\x203.967\x200\x200\x200-.493-.103L11.769.2a7.846\x207.846\x200\x200\x200-.675-.04h-.44c-.733\x200-1.368.284-1.795.742L2.416\x207.431c-.468.428-.751\x201.071-.751\x201.81\x200\x20.02\x200\x20.041.003.062l.003.034c.017.21.038.468.096.796.107.715.275\x201.47.391\x201.994.029.13.055.245.075.342l.002.008c.258\x201.141.641\x201.94.978\x202.466.168.263.323.456.444.589a2.808\x202.808\x200\x200\x200\x20.192.194c1.536\x201.562\x203.713\x202.196\x205.731\x202.08.13-.005.35-.032.537-.073a2.627\x202.627\x200\x200\x200\x20.652-.24c.425-.26.75-.661.992-1.046.184-.294.342-.61.473-.915a3.8\x203.8\x200\x200\x200\x20.627.493\x205.022\x205.022\x200\x200\x200\x201.97.709l.023.002.018.003.11.016c.088.014.205.035.325.058l.056.014c.088.022.164.04.235.061a1.736\x201.736\x200\x200\x201\x20.145.048l.03.014c.765.34\x201.302\x201.09\x201.302\x201.871a.75.75\x200\x200\x200\x201.5\x200c0-1.456-.964-2.69-2.18-3.235a3.595\x203.595\x200\x200\x200-.679-.217l-.063-.015a10.616\x2010.616\x200\x200\x200-.606-.105l-.02-.003-.03-.003h-.002a3.542\x203.542\x200\x200\x201-1.331-.485c-.471-.298-.788-.692-.828-1.234a.75.75\x200\x200\x200-1.48-.106l-.001.003-.004.017a8.23\x208.23\x200\x200\x201-.092.352\x209.963\x209.963\x200\x200\x201-.298.892c-.132.34-.29.68-.47.966-.174.276-.339.454-.478.549a1.178\x201.178\x200\x200\x201-.221.072\x201.949\x201.949\x200\x200\x201-.241.036h-.013l-.032.002c-1.684.1-3.423-.437-4.604-1.65a.746.746\x200\x200\x200-.053-.05L4.84\x2014.6a1.348\x201.348\x200\x200\x201-.07-.073\x202.99\x202.99\x200\x200\x201-.293-.392c-.242-.379-.558-1.014-.778-1.985a54.1\x2054.1\x200\x200\x200-.083-.376\x2027.494\x2027.494\x200\x200\x201-.367-1.872l-.003-.02a6.791\x206.791\x200\x200\x201-.08-.67c.004-.277.086-.475.2-.609l.067-.067a.63.63\x200\x200\x201\x20.292-.145h.05c.18\x200\x201.095.055\x202.013.115l1.207.08.534.037a.747.747\x200\x200\x200\x20.052.002c.782\x200\x201.349-.206\x201.759-.585l.005-.005c.553-.52.622-1.225.622-1.76V6.24l-.026-.565A774.97\x20774.97\x200\x200\x201\x209.885\x204.4c-.042-.961-.081-1.939-.081-2.13ZM4.995\x206.953a251.126\x20251.126\x200\x200\x201\x202.102.137l.508.035c.48-.004.646-.122.715-.185.07-.068.146-.209.147-.649l-.024-.548a791.69\x20791.69\x200\x200\x201-.095-2.187L4.995\x206.953Zm16.122\x209.996Zm-5.479-5.323a.75.75\x200\x200\x200\x201.014.31\x202.04\x202.04\x200\x200\x201\x20.304-.089\x201.84\x201.84\x200\x200\x201\x20.544-.039c.215.023.321.06.37.085.033.016.039.026.047.04a.75.75\x200\x200\x200\x201.289-.767c-.337-.567-.906-.783-1.552-.85a3.334\x203.334\x200\x200\x200-1.002.062c-.27.056-.531.14-.705.234a.75.75\x200\x200\x200-.31\x201.014Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-expand\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27m12\x208.337-8.47\x208.47a.75.75\x200\x200\x201-1.06-1.06l8.605-8.606a1.29\x201.29\x200\x200\x201\x201.85\x200l8.605\x208.605a.75.75\x200\x201\x201-1.06\x201.06L12\x208.338Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-external-source-placeholder\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M6.341\x203.27a10.5\x2010.5\x200\x200\x201\x205.834-1.77.75.75\x200\x200\x200\x200-1.5\x2012\x2012\x200\x201\x200\x2012\x2012\x20.75.75\x200\x200\x200-1.5\x200A10.5\x2010.5\x200\x201\x201\x206.34\x203.27Zm14.145\x201.48a.75.75\x200\x201\x200-1.06-1.062L9.925\x2013.19V7.95a.75.75\x200\x201\x200-1.5\x200V15c0\x20.414.336.75.75.75h7.05a.75.75\x200\x200\x200\x200-1.5h-5.24l9.501-9.5Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-facebook\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M12\x201.5C6.201\x201.5\x201.5\x206.201\x201.5\x2012c0\x204.943\x203.416\x209.089\x208.016\x2010.204v-6.108H7.383a.75.75\x200\x200\x201-.75-.75v-3.281a.75.75\x200\x200\x201\x20.75-.75h2.133V9.393c0-.958.225-2.511\x201.38-3.65\x201.194-1.177\x203.174-1.718\x206.254-1.056a.75.75\x200\x200\x201\x20.592.733v2.754a.75.75\x200\x200\x201-.75.75c-.692\x200-1.203.026-1.584.082-.387.057-.578.137-.675.202-.109.073-.237.205-.237\x201.029v1.078h2.39a.75.75\x200\x200\x201\x20.742.866l-.516\x203.281a.75.75\x200\x200\x201-.74.634h-1.876v6.106C19.09\x2021.082\x2022.5\x2016.939\x2022.5\x2012c0-5.799-4.701-10.5-10.5-10.5zM0\x2012C0\x205.373\x205.373\x200\x2012\x200s12\x205.373\x2012\x2012c0\x205.995-4.395\x2010.961-10.138\x2011.856a.75.75\x200\x200\x201-.866-.74v-7.77a.75.75\x200\x200\x201\x20.75-.75h1.984l.28-1.781h-2.264a.75.75\x200\x200\x201-.75-.75v-1.828c0-.829.089-1.729.9-2.274.363-.244.807-.37\x201.293-.441a9.623\x209.623\x200\x200\x201\x201.053-.086V6.04c-2.41-.405-3.645.132-4.293.771-.737.728-.933\x201.793-.933\x202.582v2.672a.75.75\x200\x200\x201-.75.75H8.133v1.78h2.133a.75.75\x200\x200\x201\x20.75.75v7.772a.75.75\x200\x200\x201-.865.741C4.4\x2022.968\x200\x2018\x200\x2012z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-file\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M2.895\x201.201c0-.473.383-.857.857-.857h8.4c.227\x200\x20.445.09.606.251l8.4\x208.4c.16.16.25.379.25.606v13.2a.857.857\x200\x200\x201-.856.857h-16.8a.857.857\x200\x200\x201-.857-.857zm1.714.857v19.886h15.085V10.458h-7.542a.857.857\x200\x200\x201-.858-.857V2.058zm8.4\x201.213\x205.473\x205.473H13.01z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-flickr\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M5.959\x207.926c-2.298\x200-4.14\x201.834-4.14\x204.073\x200\x202.241\x201.842\x204.075\x204.14\x204.075\x202.302\x200\x204.145-1.834\x204.145-4.075\x200-2.238-1.843-4.073-4.145-4.073Zm-5.64\x204.073c0-3.086\x202.533-5.573\x205.64-5.573\x203.11\x200\x205.645\x202.486\x205.645\x205.573\x200\x203.089-2.535\x205.575-5.645\x205.575-3.107\x200-5.64-2.487-5.64-5.575Zm18.07-4.073c-2.301\x200-4.144\x201.835-4.144\x204.073\x200\x202.24\x201.843\x204.075\x204.145\x204.075\x202.299\x200\x204.141-1.834\x204.141-4.075\x200-2.239-1.842-4.073-4.141-4.073Zm-5.644\x204.073c0-3.087\x202.535-5.573\x205.645-5.573\x203.108\x200\x205.641\x202.487\x205.641\x205.573\x200\x203.088-2.533\x205.575-5.641\x205.575-3.11\x200-5.645-2.486-5.645-5.575Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-gdrive\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M7.736\x201.818a.75.75\x200\x200\x201\x20.647-.37h7.587a.75.75\x200\x200\x201\x20.655.383l7.233\x2012.946a.75.75\x200\x200\x201-.003.737l-3.794\x206.66a.75.75\x200\x200\x201-.651.378H4.59a.75.75\x200\x200\x201-.651-.378l-3.794-6.66a.75.75\x200\x200\x201\x20.005-.75zm.64\x201.876L1.663\x2015.148l2.93\x205.145\x206.655-11.581zm3.736\x206.526-2.398\x204.173H14.5zm4.116\x204.173h5.697L15.53\x202.947H9.677zm5.685\x201.5H8.852l-2.966\x205.16h13.088z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-gphotos\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M12.51\x200c-.702\x200-1.272.57-1.272\x201.273V7.35A6.381\x206.381\x200\x200\x200\x200\x2011.489c0\x20.703.57\x201.273\x201.273\x201.273H7.35A6.381\x206.381\x200\x200\x200\x2011.488\x2024c.704\x200\x201.274-.57\x201.274-1.273V16.65A6.381\x206.381\x200\x200\x200\x2024\x2012.51c0-.703-.57-1.273-1.273-1.273H16.65A6.381\x206.381\x200\x200\x200\x2012.511\x200Zm.252\x2011.232V1.53a4.857\x204.857\x200\x200\x201\x200\x209.702Zm-1.53.006H1.53a4.857\x204.857\x200\x200\x201\x209.702\x200Zm1.536\x201.524a4.857\x204.857\x200\x200\x200\x209.702\x200h-9.702Zm-6.136\x204.857c0-2.598\x202.04-4.72\x204.606-4.85v9.7a4.857\x204.857\x200\x200\x201-4.606-4.85Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-huddle\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M6.204\x202.002c-.252.23-.357.486-.357.67V21.07c0\x20.15.084.505.313.812.208.28.499.477.929.477.519\x200\x20.796-.174.956-.365.178-.212.286-.535.286-.924v-.013l.117-6.58c.004-1.725\x201.419-3.883\x203.867-3.883\x201.33\x200\x202.332.581\x202.987\x201.364.637.762.95\x201.717.95\x202.526v6.47c0\x20.392.11.751.305.995.175.22.468.41\x201.008.41.52\x200\x20.816-.198\x201.002-.437.207-.266.31-.633.31-.969V14.04c0-2.81-1.943-5.108-4.136-5.422a5.971\x205.971\x200\x200\x200-3.183.41c-.912.393-1.538.96-1.81\x201.489a.75.75\x200\x200\x201-1.417-.344v-7.5c0-.587-.47-1.031-1.242-1.031-.315\x200-.638.136-.885.36ZM5.194.892A2.844\x202.844\x200\x200\x201\x207.09.142c1.328\x200\x202.742.867\x202.742\x202.53v5.607a6.358\x206.358\x200\x200\x201\x201.133-.629\x207.47\x207.47\x200\x200\x201\x203.989-.516c3.056.436\x205.425\x203.482\x205.425\x206.906v6.914c0\x20.602-.177\x201.313-.627\x201.89-.47.605-1.204\x201.016-2.186\x201.016-.96\x200-1.698-.37-2.179-.973-.46-.575-.633-1.294-.633-1.933v-6.469c0-.456-.19-1.071-.602-1.563-.394-.471-.986-.827-1.836-.827-1.447\x200-2.367\x201.304-2.367\x202.39v.014l-.117\x206.58c-.001.64-.177\x201.333-.637\x201.881-.48.57-1.2.9-2.105.9-.995\x200-1.7-.5-2.132-1.081-.41-.552-.61-1.217-.61-1.708V2.672c0-.707.366-1.341.847-1.78Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-info\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M11\x209h2V7h-2m1\x2013c-4.41\x200-8-3.59-8-8s3.59-8\x208-8\x208\x203.59\x208\x208-3.59\x208-8\x208m0-18A10\x2010\x200\x200\x200\x202\x2012a10\x2010\x200\x200\x200\x2010\x2010\x2010\x2010\x200\x200\x200\x2010-10A10\x2010\x200\x200\x200\x2012\x202m-1\x2015h2v-6h-2v6Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-local\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M3\x203.75a1.5\x201.5\x200\x200\x200-1.5\x201.5v13.5a1.5\x201.5\x200\x200\x200\x201.5\x201.5h18a1.5\x201.5\x200\x200\x200\x201.5-1.5V9A1.5\x201.5\x200\x200\x200\x2021\x207.5h-9a.75.75\x200\x200\x201-.643-.364L9.325\x203.75zm-3\x201.5a3\x203\x200\x200\x201\x203-3h6.75a.75.75\x200\x200\x201\x20.643.364L12.425\x206H21a3\x203\x200\x200\x201\x203\x203v9.75a3\x203\x200\x200\x201-3\x203H3a3\x203\x200\x200\x201-3-3z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-microphone\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20clip-rule=\x27evenodd\x27\x20d=\x27M7.5\x204.781a4.5\x204.5\x200\x200\x201\x209\x200v6.469a4.5\x204.5\x200\x201\x201-9\x200V4.781Zm4.5-3a3\x203\x200\x200\x200-3\x203v6.469a3\x203\x200\x201\x200\x206\x200V4.781a3\x203\x200\x200\x200-3-3Zm-8.156\x208.11a.75.75\x200\x200\x201\x20.75.75\x207.406\x207.406\x200\x201\x200\x2014.812\x200\x20.75.75\x200\x200\x201\x201.5\x200\x208.907\x208.907\x200\x200\x201-8.156\x208.875v2.703h3.258a.75.75\x200\x201\x201\x200\x201.5H7.992a.75.75\x200\x200\x201\x200-1.5h3.258v-2.703a8.907\x208.907\x200\x200\x201-8.156-8.875.75.75\x200\x200\x201\x20.75-.75Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-microphone-mute\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20clip-rule=\x27evenodd\x27\x20d=\x27M7.5\x204.781a4.5\x204.5\x200\x200\x201\x209\x200V6l3.524-3.524a.75.75\x200\x201\x201\x201.061\x201.06L5.036\x2019.585a.75.75\x200\x200\x201-1.06-1.06l1.656-1.657a8.88\x208.88\x200\x200\x201-2.538-6.227.75.75\x200\x200\x201\x201.5\x200c0\x202.009.8\x203.83\x202.1\x205.166l1.771-1.772A4.483\x204.483\x200\x200\x201\x207.5\x2011.25V4.781Zm2.037\x208.182L15\x207.5V4.781a3\x203\x200\x201\x200-6\x200v6.469c0\x20.637.198\x201.227.537\x201.713Zm10.62-3.072a.75.75\x200\x200\x201\x20.75.75\x208.907\x208.907\x200\x200\x201-8.157\x208.875v2.703h3.258a.75.75\x200\x201\x201\x200\x201.5H7.992a.75.75\x200\x200\x201\x200-1.5h3.258v-2.703a8.855\x208.855\x200\x200\x201-3.035-.811.75.75\x200\x201\x201\x20.638-1.358\x207.406\x207.406\x200\x200\x200\x2010.553-6.707.75.75\x200\x200\x201\x20.75-.75ZM15\x2010.81a.75.75\x200\x200\x201\x201.5\x200v.439a4.5\x204.5\x200\x200\x201-5\x204.473.75.75\x200\x201\x201\x20.166-1.491A3\x203\x200\x200\x200\x2015\x2011.25v-.44Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-mobile-photo-camera\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M7.65\x202.55a.75.75\x200\x200\x201\x20.6-.3h7.5a.75.75\x200\x200\x201\x20.6.3l2.025\x202.7H21a3\x203\x200\x200\x201\x203\x203v10.5a3\x203\x200\x200\x201-3\x203H3a3\x203\x200\x200\x201-3-3V8.25a3\x203\x200\x200\x201\x203-3h2.625zm.975\x201.2L6.6\x206.45a.75.75\x200\x200\x201-.6.3H3a1.5\x201.5\x200\x200\x200-1.5\x201.5v10.5a1.5\x201.5\x200\x200\x200\x201.5\x201.5h18a1.5\x201.5\x200\x200\x200\x201.5-1.5V8.25a1.5\x201.5\x200\x200\x200-1.5-1.5h-3a.75.75\x200\x200\x201-.6-.3l-2.025-2.7zm3.375\x206a3.375\x203.375\x200\x201\x200\x200\x206.75\x203.375\x203.375\x200\x200\x200\x200-6.75zm-4.875\x203.375a4.875\x204.875\x200\x201\x201\x209.75\x200\x204.875\x204.875\x200\x200\x201-9.75\x200z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-mobile-video-camera\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20clip-rule=\x27evenodd\x27\x20d=\x27M0\x206.75a3\x203\x200\x200\x201\x203-3h12a3\x203\x200\x200\x201\x203\x203v1.078L22.873\x205A.75.75\x200\x200\x201\x2024\x205.648v12.704a.75.75\x200\x200\x201-1.123.65L18\x2016.207v1.043a3\x203\x200\x200\x201-3\x203H3a3\x203\x200\x200\x201-3-3V6.75Zm18\x207.728\x204.5\x202.58V6.95L18\x209.562v4.916ZM16.5\x206.75a1.5\x201.5\x200\x200\x200-1.5-1.5H3a1.5\x201.5\x200\x200\x200-1.5\x201.5v10.5a1.5\x201.5\x200\x200\x200\x201.5\x201.5h12a1.5\x201.5\x200\x200\x200\x201.5-1.5V6.75Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-ngdrive\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M7.736\x201.818a.75.75\x200\x200\x201\x20.647-.37h7.587a.75.75\x200\x200\x201\x20.655.383l7.233\x2012.946a.75.75\x200\x200\x201-.003.737l-3.794\x206.66a.75.75\x200\x200\x201-.651.378H4.59a.75.75\x200\x200\x201-.651-.378l-3.794-6.66a.75.75\x200\x200\x201\x20.005-.75zm.64\x201.876L1.663\x2015.148l2.93\x205.145\x206.655-11.581zm3.736\x206.526-2.398\x204.173H14.5zm4.116\x204.173h5.697L15.53\x202.947H9.677zm5.685\x201.5H8.852l-2.966\x205.16h13.088z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-onedrive\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M13.616\x204.147a7.689\x207.689\x200\x200\x200-7.642\x203.285A6.299\x206.299\x200\x200\x200\x201.455\x2017.3c.684.894\x202.473\x202.658\x205.17\x202.658h12.141c.95\x200\x201.882-.256\x202.697-.743.815-.486\x201.514-1.247\x201.964-2.083a5.26\x205.26\x200\x200\x200-3.713-7.612\x207.69\x207.69\x200\x200\x200-6.098-5.373ZM3.34\x2017.15c.674.63\x201.761\x201.308\x203.284\x201.308h12.142a3.76\x203.76\x200\x200\x200\x202.915-1.383l-7.494-4.489L3.34\x2017.15Zm10.875-6.25\x202.47-1.038a5.239\x205.239\x200\x200\x201\x201.427-.389\x206.19\x206.19\x200\x200\x200-10.3-1.952\x206.338\x206.338\x200\x200\x201\x202.118.813l4.285\x202.567Zm4.55.033c-.512\x200-1.019.104-1.489.307l-.006.003-1.414.594\x206.521\x203.906a3.76\x203.76\x200\x200\x200-3.357-4.8l-.254-.01ZM4.097\x209.617A4.799\x204.799\x200\x200\x201\x206.558\x208.9c.9\x200\x201.84.25\x202.587.713l3.4\x202.037-10.17\x204.28a4.799\x204.799\x200\x200\x201\x201.721-6.312Z\x27/></symbol><symbol\x20fill=\x27none\x27\x20viewBox=\x270\x200\x2010\x2010\x27\x20id=\x27uc-icon-pause\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20d=\x27M1\x200h2.5v10H1zM6.5\x200H9v10H6.5z\x27/></symbol><symbol\x20fill=\x27none\x27\x20viewBox=\x270\x200\x2010\x2010\x27\x20id=\x27uc-icon-play\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20d=\x27m1\x200\x209\x205-9\x205V0Z\x27\x20fill=\x27currentColor\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-remove-file\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M11.955\x203.3A2.969\x202.969\x200\x200\x200\x208.998\x206h5.914a2.97\x202.97\x200\x200\x200-2.957-2.7zM16.416\x206a4.47\x204.47\x200\x200\x200-8.922\x200h-2.32a.755.755\x200\x200\x200-.111.008H3.075a.75.75\x200\x201\x200\x200\x201.5h1.35V19.35a2.85\x202.85\x200\x200\x200\x202.85\x202.85h9.45a2.85\x202.85\x200\x200\x200\x202.85-2.85V7.508h1.35a.75.75\x200\x200\x200\x200-1.5h-1.989A.754.754\x200\x200\x200\x2018.825\x206zM5.925\x207.508V19.35a1.35\x201.35\x200\x200\x200\x201.35\x201.35h9.45a1.35\x201.35\x200\x200\x200\x201.35-1.35V7.508z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-select\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27m7\x2010\x205\x205\x205-5H7Z\x27/></symbol><symbol\x20fill=\x27none\x27\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-square\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><rect\x20width=\x2720\x27\x20height=\x2720\x27\x20rx=\x274\x27\x20fill=\x27#fff\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-upload\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M11.501.392a.75.75\x200\x200\x201\x20.998\x200l6.704\x205.972a.75.75\x200\x200\x201-.998\x201.12l-5.455-4.86v13.439a.75.75\x200\x200\x201-1.5\x200V2.625l-5.454\x204.86a.75.75\x200\x201\x201-.998-1.12zM.857\x2016.73a.75.75\x200\x200\x201\x20.75.75v4.914h20.786v-4.914a.75.75\x200\x200\x201\x201.5\x200v5.664a.75.75\x200\x200\x201-.75.75H.857a.75.75\x200\x200\x201-.75-.75v-5.664a.75.75\x200\x200\x201\x20.75-.75z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-upload-error\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M13\x2013h-2V7h2m0\x2010h-2v-2h2M12\x202A10\x2010\x200\x200\x200\x202\x2012a10\x2010\x200\x200\x200\x2010\x2010\x2010\x2010\x200\x200\x200\x2010-10A10\x2010\x200\x200\x200\x2012\x202Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-url\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M19.11\x203.67c-1.71-1.709-4.578-1.682-6.408.148l-2.22\x202.22a.75.75\x200\x200\x201-1.062-1.06l2.222-2.221C14.018.381\x2017.836.276\x2020.17\x202.61l1.22\x201.22c2.335\x202.334\x202.23\x206.153-.147\x208.529l-2.22\x202.22a.75.75\x200\x200\x201-1.062-1.06l2.222-2.221c1.83-1.83\x201.856-4.698.147-6.408zm-3.36\x204.58a.75.75\x200\x200\x201\x200\x201.06l-6.439\x206.44a.75.75\x200\x200\x201-1.06-1.06l6.439-6.44a.75.75\x200\x200\x201\x201.06\x200zM6.04\x209.42a.75.75\x200\x200\x201\x200\x201.061l-2.222\x202.222c-1.83\x201.83-1.856\x204.698-.147\x206.407l1.22\x201.22c1.71\x201.71\x204.578\x201.683\x206.408-.147l2.221-2.221a.75.75\x200\x201\x201\x201.06\x201.06l-2.22\x202.222c-2.377\x202.376-6.195\x202.481-8.53.147l-1.22-1.22c-2.334-2.334-2.228-6.153.148-8.53l2.221-2.22a.75.75\x200\x200\x201\x201.06\x200z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-video-camera\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20clip-rule=\x27evenodd\x27\x20d=\x27M0\x206.75a3\x203\x200\x200\x201\x203-3h12a3\x203\x200\x200\x201\x203\x203v1.078L22.873\x205A.75.75\x200\x200\x201\x2024\x205.648v12.704a.75.75\x200\x200\x201-1.123.65L18\x2016.207v1.043a3\x203\x200\x200\x201-3\x203H3a3\x203\x200\x200\x201-3-3V6.75Zm18\x207.728\x204.5\x202.58V6.95L18\x209.562v4.916ZM16.5\x206.75a1.5\x201.5\x200\x200\x200-1.5-1.5H3a1.5\x201.5\x200\x200\x200-1.5\x201.5v10.5a1.5\x201.5\x200\x200\x200\x201.5\x201.5h12a1.5\x201.5\x200\x200\x200\x201.5-1.5V6.75Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-video-camera-full\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20d=\x27M2\x203.333a2\x202\x200\x200\x200-2\x202v9.334a2\x202\x200\x200\x200\x202\x202h10.938a2\x202\x200\x200\x200\x202-2v-2.013L20\x2015.646V4.354l-5.063\x203.03v-2.05a2\x202\x200\x200\x200-2-2H2Z\x27\x20fill=\x27currentColor\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-vk\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M6.341\x203.27a10.5\x2010.5\x200\x200\x201\x205.834-1.77.75.75\x200\x200\x200\x200-1.5\x2012\x2012\x200\x201\x200\x2012\x2012\x20.75.75\x200\x200\x200-1.5\x200A10.5\x2010.5\x200\x201\x201\x206.34\x203.27Zm14.145\x201.48a.75.75\x200\x201\x200-1.06-1.062L9.925\x2013.19V7.95a.75.75\x200\x201\x200-1.5\x200V15c0\x20.414.336.75.75.75h7.05a.75.75\x200\x200\x200\x200-1.5h-5.24l9.501-9.5Z\x27/></symbol></svg>')}`;}},l6=_0x19bf65=>'number'!=typeof _0x19bf65?0x0:Math['floor'](_0x19bf65/0x3e8),h6=class extends Z5{constructor(){super(...arguments),this['We']=null;}async getSecureToken(){let {secureSignature:t,secureExpire:_0x52ab16,secureUploadsSignatureResolver:_0x54e5ca,secureUploadsExpireThreshold:_0x3de95e}=this['ze'];if((t||_0x52ab16)&&_0x54e5ca&&console['warn']('Both\x20secureSignature/secureExpire\x20and\x20secureUploadsSignatureResolver\x20are\x20set.\x20secureUploadsSignatureResolver\x20will\x20be\x20used.'),_0x54e5ca){if(!this['We']||((_0x4a8881,{threshold:_0x55d498})=>{let {secureExpire:t}=_0x4a8881,_0x44355d=l6(Date['now']()),_0x4abc56=Number(t);return _0x44355d+l6(_0x55d498)>=_0x4abc56;})(this['We'],{'threshold':_0x3de95e})){this['We']?this['w']('Secure\x20signature\x20is\x20expired.\x20Resolving\x20a\x20new\x20one...'):this['w']('Secure\x20signature\x20is\x20not\x20set\x20yet.');try{let _0x53f717=await _0x54e5ca();_0x53f717?_0x53f717['secureSignature']&&_0x53f717['secureExpire']?(this['w']('Secure\x20signature\x20resolved:',_0x53f717),this['w']('Secure\x20signature\x20will\x20expire\x20in',new Date(0x3e8*Number(_0x53f717['secureExpire']))['toISOString']()),this['We']=_0x53f717):console['error']('Secure\x20signature\x20resolver\x20returned\x20an\x20invalid\x20result:',_0x53f717):(this['w']('Secure\x20signature\x20resolver\x20returned\x20nothing.'),this['We']=null);}catch(_0x2f79d7){console['error']('Secure\x20signature\x20resolving\x20failed.\x20Falling\x20back\x20to\x20the\x20previous\x20one.',_0x2f79d7),this['i']['telemetryManager']['sendEventError'](_0x2f79d7,'secureUploadsSignatureResolver.\x20Secure\x20signature\x20resolving\x20failed.\x20Falling\x20back\x20to\x20the\x20previous\x20one.');}}return this['We'];}return t&&_0x52ab16?(this['w']('Secure\x20signature\x20and\x20expire\x20are\x20set.\x20Using\x20them...',{'secureSignature':t,'secureExpire':_0x52ab16}),{'secureSignature':t,'secureExpire':_0x52ab16}):null;}destroy(){super['destroy'](),this['We']=null;}},u6=(_0x5262a7,_0x1ec192)=>{if(_0x5262a7['failedCount']>0x0)return{'type':'SOME_FILES_HAS_ERRORS','message':_0x1ec192['l10n']('some-files-were-not-uploaded')};},d6=(_0x4beb3a,_0x5c84d6)=>{let t=_0x4beb3a['totalCount'],_0x2e6b0b=_0x5c84d6['cfg']['multiple']?_0x5c84d6['cfg']['multipleMin']:0x0,_0xc722f5=_0x5c84d6['cfg']['multiple']?_0x5c84d6['cfg']['multipleMax']:0x1;return _0x2e6b0b&&t<_0x2e6b0b?{'type':'TOO_FEW_FILES','message':_0x5c84d6['l10n']('files-count-limit-error-too-few',{'min':_0x2e6b0b,'max':_0xc722f5,'total':t}),'payload':{'total':t,'min':_0x2e6b0b,'max':_0xc722f5}}:_0xc722f5&&t>_0xc722f5?{'type':'TOO_MANY_FILES','message':_0x5c84d6['l10n']('files-count-limit-error-too-many',{'min':_0x2e6b0b,'max':_0xc722f5,'total':t}),'payload':{'total':t,'min':_0x2e6b0b,'max':_0xc722f5}}:void 0x0;},f6=(_0x15419f,_0x5e35db)=>{let t=_0x5e35db['cfg']['imgOnly'],_0x4b39d8=_0x5e35db['cfg']['accept'],_0x2dcbca=k4([...t?I4:[],_0x4b39d8]);if(!_0x2dcbca['length'])return;let _0x114cfd=_0x15419f['mimeType'],_0x45be73=_0x15419f['name'];if(!_0x114cfd||!_0x45be73)return;let _0x5487ba=x4(_0x114cfd,_0x2dcbca),_0x3f09ce=((_0x408b5a,_0x225b06)=>_0x225b06['some'](t=>!!t['startsWith']('.')&&_0x408b5a['toLowerCase']()['endsWith'](t['toLowerCase']())))(_0x45be73,_0x2dcbca);return _0x5487ba||_0x3f09ce?void 0x0:{'type':'FORBIDDEN_FILE_TYPE','message':_0x5e35db['l10n']('file-type-not-allowed'),'payload':{'entry':_0x15419f}};},m6=(_0x514625,_0x3d9887)=>{let t=_0x3d9887['cfg']['imgOnly'],_0x4d7b59=_0x514625['isImage'];if(t&&!_0x4d7b59&&(_0x514625['fileInfo']||!_0x514625['externalUrl'])&&(_0x514625['fileInfo']||_0x514625['mimeType']))return{'type':'NOT_AN_IMAGE','message':_0x3d9887['l10n']('images-only-accepted'),'payload':{'entry':_0x514625}};},p6=0x3e8,g6=Object['freeze']({'AUTO':'auto','BYTE':'byte','KB':'kb','MB':'mb','GB':'gb','TB':'tb','PB':'pb'}),O6=_0x11d005=>Math['ceil'](0x64*_0x11d005)/0x64,w6=(_0x5f4a2c,_0x54715d=g6['AUTO'])=>{let t=_0x54715d===g6['AUTO'];return _0x54715d===g6['BYTE']||t&&_0x5f4a2c<0x3e8?_0x5f4a2c+'\x20'+('one'===z4('en-US',_0x5f4a2c)?'byte':'bytes'):_0x54715d===g6['KB']||t&&_0x5f4a2c<p6**0x2?O6(_0x5f4a2c/0x3e8)+'\x20KB':_0x54715d===g6['MB']||t&&_0x5f4a2c<p6**0x3?O6(_0x5f4a2c/p6**0x2)+'\x20MB':_0x54715d===g6['GB']||t&&_0x5f4a2c<p6**0x4?O6(_0x5f4a2c/p6**0x3)+'\x20GB':_0x54715d===g6['TB']||t&&_0x5f4a2c<p6**0x5?O6(_0x5f4a2c/p6**0x4)+'\x20TB':O6(_0x5f4a2c/p6**0x5)+'\x20PB';},b6=(_0x147afb,_0x41f96d)=>{let t=_0x41f96d['cfg']['maxLocalFileSizeBytes'],_0x4f4aca=_0x147afb['size'];if(t&&_0x4f4aca&&_0x4f4aca>t)return{'type':'FILE_SIZE_EXCEEDED','message':_0x41f96d['l10n']('files-max-size-limit-error',{'maxFileSize':w6(t)}),'payload':{'entry':_0x147afb}};},y6=(_0x444d1c,_0x12c448)=>{let {internalId:t}=_0x444d1c;if(!_0x12c448['v']['hasItem'](t))return;let _0x21056c=_0x12c448['v']['read'](t)?.['getValue']('uploadError');if(!_0x21056c)return;if(_0x21056c instanceof k3)return{'type':'UPLOAD_ERROR','message':_0x21056c['message'],'payload':{'entry':_0x444d1c,'error':_0x21056c}};if(_0x21056c instanceof a3)return{'type':'NETWORK_ERROR','message':_0x21056c['message'],'payload':{'entry':_0x444d1c,'error':_0x21056c}};let _0xa28cc=_0x21056c instanceof Error?_0x21056c:new Error('Unknown\x20error',{'cause':_0x21056c});return{'type':'UNKNOWN_ERROR','message':_0xa28cc['message'],'payload':{'entry':_0x444d1c,'error':_0xa28cc}};},v6='File\x20validator\x20execution\x20has\x20failed',_6='File\x20validator\x20execution\x20has\x20timed\x20out',E6='Collection\x20validator\x20execution\x20has\x20failed',T6='Missing\x20message.\x20We\x20recommend\x20adding\x20message:\x20value.',A6=_0x526d4a=>'function'==typeof _0x526d4a?{'runOn':'change','validator':_0x526d4a}:_0x526d4a,S6=class extends Z5{constructor(t){super(t),this['ru']=[m6,f6,b6,y6],this['ou']=[d6,u6],this['St']=new o4(0x14),this['Tn']=z2(()=>{this['St']['run']();},0x1f4),this['Ie']=!0x1,this['At']=new Map();let _0x4dfdef=z2(()=>{this['runFileValidators']('change'),this['runCollectionValidators']();},0x0);this['addSub'](this['e']['sub'](h5('maxLocalFileSizeBytes'),_0x4dfdef)),this['addSub'](this['e']['sub'](h5('multipleMin'),_0x4dfdef)),this['addSub'](this['e']['sub'](h5('multipleMax'),_0x4dfdef)),this['addSub'](this['e']['sub'](h5('multiple'),_0x4dfdef)),this['addSub'](this['e']['sub'](h5('imgOnly'),_0x4dfdef)),this['addSub'](this['e']['sub'](h5('accept'),_0x4dfdef)),this['addSub'](this['e']['sub'](h5('validationConcurrency'),_0x1b09f3=>{this['St']['concurrency']=_0x1b09f3;}));}get['v'](){return this['i']['uploadCollection'];}runFileValidators(t,_0x802794){if(this['Ie'])return;let _0x6955f4=_0x802794??this['v']['items']();for(let _0x412645 of _0x6955f4){let _0x7df2a=this['v']['read'](_0x412645);_0x7df2a&&this['su'](_0x7df2a,t);}}runCollectionValidators(){if(this['Ie'])return;let t=this['i']['api'],_0x421a6d=t['getOutputCollectionState'](),_0x2f5e84=[],_0x2a95a7=this['ze']['collectionValidators'];for(let _0x314b5d of[...this['ou'],..._0x2a95a7])try{let _0x116100=_0x314b5d(_0x421a6d,t);if(!_0x116100)continue;_0x116100&&(_0x2f5e84['push'](this['En'](_0x116100)),_0x116100['message']||console['warn'](T6));}catch(_0x3a2b5a){console['warn'](E6,_0x3a2b5a);}this['e']['pub']('*collectionErrors',_0x2f5e84),_0x2f5e84['length']>0x0&&this['i']['eventEmitter']['emit'](U4['COMMON_UPLOAD_FAILED'],()=>t['getOutputCollectionState'](),{'debounce':!0x0});}cleanupValidationForEntry(t){let _0x2281a3=this['At']['get'](t['uid']);_0x2281a3&&(_0x2281a3['abortController']?.['abort'](),this['At']['delete'](t['uid']));}async['su'](t,_0x2781bf){if(this['Ie'])return;let _0x875b17=this['i']['api'],_0xe8bf1c=this['xn'](t),_0x5da08b=_0xe8bf1c['promise']??Promise['resolve'](),_0x31f6cb=((async()=>{if(this['Ie']||(await _0x5da08b,this['Ie']))return;let _0x15d025=this['nu'](t,_0x2781bf);if(0x0===_0x15d025['length']||!this['v']['hasItem'](t['uid']))return;t['setMultipleValues']({'isQueuedForValidation':!0x0,'isValidationPending':!0x0});let _0x4d5ea5=_0x875b17['getOutputItem'](t['uid']),_0x1801ec=new AbortController();_0xe8bf1c['abortController']=_0x1801ec;let _0x2c747c=this['ze']['validationTimeout'],_0x4d1cc5=this['Cn'](),_0x185cd0=new Set(_0x15d025['map'](_0x34d923=>_0x34d923['validator'])),_0x4361fe=[];for(let _0x2d62a4 of _0x4d1cc5)if(!_0x185cd0['has'](_0x2d62a4['validator'])){let _0x50918e=_0xe8bf1c['lastErrorThrownByValidator']['get'](_0x2d62a4['validator']);_0x50918e&&_0x4361fe['push'](_0x50918e);}let _0x5771aa=_0x15d025['map'](_0x33ae7d=>async()=>{if(this['Ie'])return;let _0x2b93a2=setTimeout(()=>{_0xe8bf1c['skippedValidators']['add'](_0x33ae7d['validator']),_0x1801ec['abort'](),console['warn'](_6);},_0x2c747c);try{let _0x59b28a=await _0x33ae7d['validator'](_0x4d5ea5,_0x875b17,{'signal':_0x1801ec['signal']});if(!_0x59b28a||_0x1801ec['signal']['aborted'])return void _0xe8bf1c['lastErrorThrownByValidator']['set'](_0x33ae7d['validator'],void 0x0);let _0x4ef77d=this['En'](_0x59b28a);_0xe8bf1c['lastErrorThrownByValidator']['set'](_0x33ae7d['validator'],_0x4ef77d),_0x4361fe['push'](_0x4ef77d),_0x59b28a['message']||console['warn'](T6);}catch(_0x441ab4){_0x1801ec['signal']['aborted']||(_0xe8bf1c['skippedValidators']['add'](_0x33ae7d['validator']),console['warn'](v6,_0x441ab4),this['i']['telemetryManager']['sendEventError'](_0x441ab4,'file\x20validator.\x20'+v6));}finally{clearTimeout(_0x2b93a2),'change'!==_0x33ae7d['runOn']&&_0xe8bf1c['skippedValidators']['add'](_0x33ae7d['validator']);}});this['Tn'](),await this['St']['add'](async()=>{this['Ie']||(t['setValue']('isQueuedForValidation',!0x1),await Promise['all'](_0x5771aa['map'](_0x46d454=>_0x46d454()))['catch'](()=>{}));},{'autoRun':!0x1}),_0x1801ec['signal']['aborted']?t['setMultipleValues']({'isQueuedForValidation':!0x1,'isValidationPending':!0x1}):t['setMultipleValues']({'isValidationPending':!0x1,'isQueuedForValidation':!0x1,'errors':_0x4361fe});})());_0xe8bf1c['promise']=_0x31f6cb;try{await _0x31f6cb;}finally{_0xe8bf1c['promise']===_0x31f6cb&&(_0xe8bf1c['promise']=void 0x0);}}['En'](t){return{...t,'type':t['type']??'CUSTOM_ERROR'};}['xn'](t){let _0x44e881=this['At']['get'](t['uid']);if(_0x44e881)return _0x44e881;let _0x108288={'abortController':void 0x0,'skippedValidators':new WeakSet(),'promise':void 0x0,'lastErrorThrownByValidator':new WeakMap()};return this['At']['set'](t['uid'],_0x108288),_0x108288;}['Cn'](){let t=this['ze']['fileValidators'];return[...this['ru'],...t]['map'](A6);}['nu'](t,_0x26d387){let _0x265b4a=this['xn'](t);return this['Cn']()['filter'](_0x5cc7e3=>!_0x265b4a['skippedValidators']['has'](_0x5cc7e3['validator']))['filter'](_0x93eac6=>_0x93eac6['runOn']===_0x26d387);}destroy(){this['Ie']=!0x0,this['Tn']['cancel']();for(let t of this['At']['values']())t['abortController']?.['abort'](),t['promise']=void 0x0;this['At']['clear']();}},I6='[Typed\x20State]\x20Wrong\x20property\x20name:\x20',k6=class{constructor(_0x482854){this['J']=t5['generateFastUid'](),this['Y']=k1['registerCtx'](_0x482854,this['J']);}get['uid'](){return this['J'];}setValue(_0x2d1f8a,t){this['Y']['has'](_0x2d1f8a)?this['Y']['read'](_0x2d1f8a)!==t&&this['Y']['pub'](_0x2d1f8a,t):console['warn'](''+I6+String(_0x2d1f8a));}setMultipleValues(_0x42f494){for(let [t,_0x290cf4]of Object['entries'](_0x42f494))this['setValue'](t,_0x290cf4);}getValue(_0x2691f6){return this['Y']['has'](_0x2691f6)||console['warn'](''+I6+String(_0x2691f6)),this['Y']['read'](_0x2691f6);}['subscribe'](_0x29feb6,t){return this['Y']['sub'](_0x29feb6,t);}destroy(){k1['deleteCtx'](this['J']);}},x6=class o{constructor(_0x609e60){this['Pe']=Object['create'](null),this['Zi']=new Set(),this['Yi']=new Set(),this['ye']=new Set(),this['fo']=new Set(),this['mo']=new Set(),this['kt']=new Set(),this['kn']=_0x609e60['initialValue'],this['J']=t5['generateFastUid'](),this['Y']=k1['registerCtx']({},this['J']),this['Sn']=_0x609e60['watchList']||[];let t=Object['create'](null);this['An']=(_0x1ea793,_0x26d054)=>{this['Jt']&&window['clearTimeout'](this['Jt']),t[_0x1ea793]||(t[_0x1ea793]=new Set()),t[_0x1ea793]['add'](_0x26d054),this['Jt']=window['setTimeout'](()=>{0x0!==Object['keys'](t)['length']&&(this['Zi']['forEach'](_0x4bb1f4=>{_0x4bb1f4({...t});}),t=Object['create'](null));}),this['Mn']();},_0x609e60['handler']&&this['observeCollection'](_0x609e60['handler']);}static{this['au']=0x2710;}['q'](){this['ei']&&window['clearTimeout'](this['ei']),this['ei']=window['setTimeout'](()=>{let _0xa19da0=new Set(this['mo']),t=new Set(this['fo']);this['mo']['clear'](),this['fo']['clear']();for(let _0x5cf55d of this['Yi'])_0x5cf55d?.([...this['ye']],_0xa19da0,t);this['Mn']();});}['Mn'](){0x0!==this['kt']['size']&&(this['ti']&&window['clearTimeout'](this['ti']),this['ti']=window['setTimeout'](()=>{let _0x572a79=[...this['kt']];this['kt']['clear']();for(let t of _0x572a79)t['destroy']();},o['au']));}observeCollection(_0x4cf3d1){return this['Yi']['add'](_0x4cf3d1),this['ye']['size']>0x0&&this['q'](),()=>{this['unobserveCollection'](_0x4cf3d1);};}unobserveCollection(_0x53f475){this['Yi']['delete'](_0x53f475);}['add'](_0x8d9067){let t=new k6(this['kn']);for(let [_0x518d92,_0x3aeea6]of Object['entries'](_0x8d9067))t['setValue'](_0x518d92,_0x3aeea6);return this['ye']['add'](t['uid']),this['q'](),this['Y']['add'](t['uid'],t),this['mo']['add'](t),this['Sn']['forEach'](_0x382579=>{this['Pe'][t['uid']]||(this['Pe'][t['uid']]=[]),this['Pe'][t['uid']]?.['push'](t['subscribe'](_0x382579,()=>{this['An'](_0x382579,t['uid']);}));}),t['uid'];}hasItem(_0x48a186){return this['ye']['has'](_0x48a186);}['read'](_0x5bd921){return this['Y']['read'](_0x5bd921)??null;}['readProp'](_0x2584ae,t){let _0x13b98f=this['read'](_0x2584ae);if(!_0x13b98f)throw new Error('TypedCollection#readProp:\x20Item\x20with\x20id\x20'+_0x2584ae+'\x20not\x20found');return _0x13b98f['getValue'](t);}['publishProp'](_0x260ae5,t,_0x4673da){let _0x44a4d4=this['read'](_0x260ae5);if(!_0x44a4d4)throw new Error('TypedCollection#publishProp:\x20Item\x20with\x20id\x20'+_0x260ae5+'\x20not\x20found');_0x44a4d4['setValue'](t,_0x4673da);}['remove'](_0x32ed27){let t=this['read'](_0x32ed27);t&&(this['fo']['add'](t),this['kt']['add'](t)),this['ye']['delete'](_0x32ed27),this['q'](),this['Y']['pub'](_0x32ed27,void 0x0),this['Pe'][_0x32ed27]?.['forEach'](_0xe660ec=>{_0xe660ec();}),delete this['Pe'][_0x32ed27];}['clearAll'](){this['ye']['forEach'](_0x1fcc35=>{this['remove'](_0x1fcc35);});}observeProperties(_0x2c3a5a){return this['Zi']['add'](_0x2c3a5a),()=>{this['unobserveProperties'](_0x2c3a5a);};}unobserveProperties(_0x170494){this['Zi']['delete'](_0x170494);}findItems(_0x3baa84){let t=[];return this['ye']['forEach'](_0x69eca3=>{let _0x487df6=this['read'](_0x69eca3);_0x487df6&&_0x3baa84(_0x487df6)&&t['push'](_0x69eca3);}),t;}items(){return[...this['ye']];}get['size'](){return this['ye']['size'];}destroy(){this['Jt']&&window['clearTimeout'](this['Jt']),this['ei']&&window['clearTimeout'](this['ei']),this['ti']&&window['clearTimeout'](this['ti']);for(let _0x3fd9f6 of this['kt'])_0x3fd9f6['destroy']();this['kt']['clear'](),k1['deleteCtx'](this['J']),this['Zi']=new Set(),this['Yi']=new Set();for(let _0x440798 of Object['keys'](this['Pe']))this['Pe'][_0x440798]?.['forEach'](t=>{t();}),delete this['Pe'][_0x440798];}},C6=Object['freeze']({'PHOTO':'photo','VIDEO':'video'}),R6=Object['freeze']({'IDLE':'idle','SHOT':'shot','PLAY':'play','PAUSE':'pause','RESUME':'resume','STOP':'stop','RETAKE':'retake','ACCEPT':'accept'}),P6=(_0x10c071,_0xd77cd9,{timeout:t=0x3e8,onTimeout:_0x550ce8}={})=>new Promise(_0x21bf4c=>{let _0x3c06d7,_0x12aa57=setTimeout(()=>{cancelAnimationFrame(_0x3c06d7),_0x550ce8?.();},t),_0xf9ec6c=()=>{for(let _0x2996c4 of _0x10c071)if(_0xd77cd9(_0x2996c4))return clearTimeout(_0x12aa57),void _0x21bf4c(_0x2996c4);_0x3c06d7=requestAnimationFrame(_0xf9ec6c);};_0xf9ec6c();});function N6(_0x3efea3,_0x3ad62c){for(let t in _0x3ad62c)t['includes']('-')?_0x3efea3['style']['setProperty'](t,String(_0x3ad62c[t])):_0x3efea3['style'][t]=String(_0x3ad62c[t]);}var M6=new RegExp('^/?('+/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/i['source']+')(?:/(-/(?:[^/]+/)+)?([^/]*))?$','i'),L6=Object['freeze']({'FACEBOOK':'facebook','DROPBOX':'dropbox','DROPBOX_CHOOSER':'dropboxchooser','GDRIVE':'gdrive','GPHOTOS':'gphotos','FLICKR':'flickr','VK':'vk','EVERNOTE':'evernote','BOX':'box','ONEDRIVE':'onedrive','HUDDLE':'huddle'}),$6=Object['freeze']({'MOBILE_VIDEO_CAMERA':'mobile-video-camera','MOBILE_PHOTO_CAMERA':'mobile-photo-camera'}),D6=Object['freeze']({'LOCAL':'local','DROP_AREA':'drop-area','CAMERA':'camera','EXTERNAL':'external','API':'js-api','URL':'url',...$6,...L6}),Q6={[L6['DROPBOX_CHOOSER']]:L6['DROPBOX']},j6=_0x1bebc5=>Q6[_0x1bebc5]??_0x1bebc5,U6=_0x277851=>_0x277851['uploadCollection']['items']()['map'](_0x1e5ae9=>_0x277851['api']['getOutputItem'](_0x1e5ae9));function V6(_0x5d69f3){let _0x14aaf0=new Map();return(..._0x2cad5f)=>{let _0x3408dc=JSON['stringify'](_0x2cad5f);if(_0x14aaf0['has'](_0x3408dc))return _0x14aaf0['get'](_0x3408dc);let _0x3130dc=_0x5d69f3(..._0x2cad5f);return _0x14aaf0['set'](_0x3408dc,_0x3130dc),_0x3130dc;};}var B6=new Set();function H6(_0x5f1743){B6['has'](_0x5f1743)||(B6['add'](_0x5f1743),console['warn'](_0x5f1743));}function F6(_0x183139){let _0x5b5797={},t=_0x183139['ctx'],_0x44c1df={'progress':()=>t['read']('*commonProgress'),'errors':()=>t['read']('*collectionErrors'),'group':()=>t['read']('*groupInfo'),'totalCount':()=>_0x183139['uploadCollection']['size'],'failedCount':()=>_0x5b5797['failedEntries']['length'],'successCount':()=>_0x5b5797['successEntries']['length'],'uploadingCount':()=>_0x5b5797['uploadingEntries']['length'],'status':()=>_0x5b5797['isFailed']?'failed':_0x5b5797['isUploading']?'uploading':_0x5b5797['isSuccess']?'success':'idle','isSuccess':()=>_0x5b5797['allEntries']['length']>0x0&&0x0===_0x5b5797['errors']['length']&&_0x5b5797['successEntries']['length']===_0x5b5797['allEntries']['length'],'isUploading':()=>_0x5b5797['allEntries']['some'](_0x5f5556=>'uploading'===_0x5f5556['status']),'isFailed':()=>_0x5b5797['errors']['length']>0x0||_0x5b5797['failedEntries']['length']>0x0,'allEntries':()=>U6(_0x183139),'successEntries':()=>_0x5b5797['allEntries']['filter'](_0x598940=>'success'===_0x598940['status']),'failedEntries':()=>_0x5b5797['allEntries']['filter'](_0x2a8362=>'failed'===_0x2a8362['status']),'uploadingEntries':()=>_0x5b5797['allEntries']['filter'](_0x290f4c=>'uploading'===_0x290f4c['status']),'idleEntries':()=>_0x5b5797['allEntries']['filter'](_0x17b196=>'idle'===_0x17b196['status'])},_0x561c94=function(_0x3cb584){let _0x2ff74c=!0x1;return setTimeout(()=>{_0x2ff74c=!0x0;},0x0),_0x13fb7a=>(..._0x33e741)=>(_0x2ff74c&&H6(_0x3cb584),_0x13fb7a(..._0x33e741));}('You\x27re\x20trying\x20to\x20access\x20the\x20OutputCollectionState\x20asynchronously.\x20In\x20this\x20case,\x20the\x20data\x20you\x20retrieve\x20will\x20be\x20newer\x20than\x20it\x20was\x20when\x20the\x20OutputCollectionState\x20was\x20created\x20or\x20when\x20the\x20event\x20was\x20dispatched.\x20If\x20you\x20want\x20to\x20retain\x20the\x20state\x20at\x20a\x20specific\x20moment\x20in\x20time,\x20you\x20should\x20use\x20the\x20spread\x20operator\x20like\x20this:\x20`{...outputCollectionState}`\x20or\x20`{...e.detail}`');for(let [_0x1daf8c,_0x273be5]of Object['entries'](_0x44c1df)){let _0x35bc03=_0x1daf8c,_0x13f29d=V6(_0x561c94(_0x273be5));Object['defineProperty'](_0x5b5797,_0x35bc03,{'get':_0x13f29d,'enumerable':!0x0});}return _0x5b5797;}var Z6=class extends Z5{constructor(){super(...arguments),this['Et']=Y4(()=>this['e']),this['addFileFromUrl']=(t,{silent:_0x4c8e99,fileName:_0x49d4fe,source:_0x5bf183}={})=>{let _0x133435=this['v']['add']({'externalUrl':t,'fileName':_0x49d4fe??null,'silent':_0x4c8e99??!0x1,'source':_0x5bf183??D6['API']});return this['getOutputItem'](_0x133435);},this['addFileFromUuid']=(t,{silent:_0x387611,fileName:_0x3ae492,source:_0x1b24f5}={})=>{let _0x54602f=this['v']['add']({'uuid':t,'fileName':_0x3ae492??null,'silent':_0x387611??!0x1,'source':_0x1b24f5??D6['API']});return this['getOutputItem'](_0x54602f);},this['addFileFromCdnUrl']=(t,{silent:_0x228456,fileName:_0x159d30,source:_0x260934}={})=>{let _0x3dd999=(({url:_0x2b4b31,cdnBase:_0x4dbaa5})=>{let t=new URL(_0x4dbaa5),_0x4e622d=new URL(V5),_0x3aab76=new URL(_0x2b4b31);if(t['host']!==_0x3aab76['host']&&_0x4e622d['host']!==_0x3aab76['host'])return null;let _0x30446a=M6['exec'](_0x3aab76['pathname']);if(!_0x30446a)return null;let [,_0x434108,_0x4b60b8,_0x1bac57]=_0x30446a;return _0x434108?{'uuid':_0x434108,'cdnUrlModifiers':_0x4b60b8||'','filename':_0x1bac57||null}:null;})({'url':t,'cdnBase':this['cfg']['cdnCname']});if(!_0x3dd999)throw new Error('Invalid\x20CDN\x20URL');let _0x99a309=this['v']['add']({'uuid':_0x3dd999['uuid'],'cdnUrl':t,'cdnUrlModifiers':_0x3dd999['cdnUrlModifiers'],'fileName':_0x159d30??_0x3dd999['filename']??null,'silent':_0x228456??!0x1,'source':_0x260934??D6['API']});return this['getOutputItem'](_0x99a309);},this['addFileFromObject']=(t,{silent:_0x8db57c,fileName:_0xadb79d,source:_0x1758e0,fullPath:_0x1b1f30}={})=>{let _0x5b679d=this['v']['add']({'file':t,'isImage':C4(t),'mimeType':t['type']||null,'fileName':_0xadb79d??t['name'],'fileSize':t['size'],'silent':_0x8db57c??!0x1,'source':_0x1758e0??D6['API'],'fullPath':_0x1b1f30??null});return this['getOutputItem'](_0x5b679d);},this['removeFileByInternalId']=t=>{if(!this['v']['read'](t))throw new Error('File\x20with\x20internalId\x20'+t+'\x20not\x20found');this['v']['remove'](t);},this['uploadAll']=()=>{let t=this['v']['items']()['filter'](_0x30190d=>{let _0x511133=this['v']['read'](_0x30190d);return!!_0x511133&&!(_0x511133['getValue']('isRemoved')||_0x511133['getValue']('isUploading')||_0x511133['getValue']('fileInfo')||0x0!==_0x511133['getValue']('errors')['length']||_0x511133['getValue']('isValidationPending')||_0x511133['getValue']('isQueuedForValidation'));});0x0!==t['length']&&(this['e']['pub']('*uploadTrigger',new Set(t)),this['i']['eventEmitter']['emit'](U4['COMMON_UPLOAD_START'],this['getOutputCollectionState']()));},this['openSystemDialog']=(t={})=>{let _0x157ca9=d5(k4([this['cfg']['accept']??'',...this['cfg']['imgOnly']?I4:[]])),_0x202678='uploadcare-file-input',_0x460c0e=document['createElement']('input');if(_0x460c0e['setAttribute'](_0x202678,''),N6(_0x460c0e,{'opacity':0x0,'height':0x0,'width':0x0,'visibility':'hidden','position':'absolute','top':0x0,'left':0x0}),_0x460c0e['type']='file',_0x460c0e['multiple']=this['cfg']['multiple'],t['captureCamera']){_0x460c0e['capture']=this['cfg']['cameraCapture'];let {isPhotoEnabled:_0x36b6f6,isVideoRecordingEnabled:_0x1e50b1}=(_0xd8c957=>({'isVideoRecordingEnabled':u5(_0xd8c957['cameraModes'])['includes'](C6['VIDEO']),'isPhotoEnabled':u5(_0xd8c957['cameraModes'])['includes'](C6['PHOTO'])}))(this['cfg']);t['modeCamera']===C6['PHOTO']&&_0x36b6f6?_0x460c0e['accept']=A4:t['modeCamera']===C6['VIDEO']&&_0x1e50b1?_0x460c0e['accept']=S4:_0x460c0e['accept']=[A4,_0x1e50b1&&S4]['filter'](Boolean)['join'](',');}else _0x460c0e['accept']=_0x157ca9;_0x460c0e['addEventListener']('change',()=>{_0x460c0e['files']&&([..._0x460c0e['files']]['forEach'](_0x1db185=>{this['addFileFromObject'](_0x1db185,{'source':t['captureCamera']?D6['CAMERA']:D6['LOCAL']});}),this['e']['pub']('*currentActivity',l4['UPLOAD_LIST']),this['i']['modalManager']?.['open'](l4['UPLOAD_LIST']),_0x460c0e['remove']());},{'once':!0x0}),document['querySelectorAll']('['+_0x202678+']')['forEach'](_0x5a11ef=>{_0x5a11ef['remove']();}),document['body']['appendChild'](_0x460c0e),_0x460c0e['dispatchEvent'](new MouseEvent('click'));},this['initFlow']=(t=!0x1)=>{if(this['v']['size']>0x0&&!t)this['e']['pub']('*currentActivity',l4['UPLOAD_LIST']),this['i']['modalManager']?.['open'](l4['UPLOAD_LIST']);else{if(0x1===this['On']?.['length']){let _0x12971f=this['On'][0x0];this['go']()['then'](()=>{let _0x566366=this['i']['pluginManager']['snapshot']()['sources'],_0x4b3708=_0x566366['find'](_0x238cb4=>_0x238cb4['id']===_0x12971f);if(_0x4b3708){let _0x3f9070=_0x4b3708['expand']?.()??[_0x12971f];return void(0x1===_0x3f9070['length']?(_0x566366['find'](_0x5edc37=>_0x5edc37['id']===_0x3f9070[0x0])??_0x4b3708)['onSelect']():(this['e']['pub']('*currentActivity',l4['START_FROM']),this['i']['modalManager']?.['open'](l4['START_FROM'])));}this['e']['read']('*currentActivity')&&this['i']['modalManager']?.['open'](this['e']['read']('*currentActivity'));});}else this['e']['pub']('*currentActivity',l4['START_FROM']),this['i']['modalManager']?.['open'](l4['START_FROM']);}},this['doneFlow']=()=>{let t=((_0x33fd76,_0x5b7aae)=>{for(let t of _0x33fd76)if(_0x5b7aae(t))return t;})(this['i']['blocksRegistry'],_0x37e5c5=>'doneActivity'in _0x37e5c5);t&&(this['e']['pub']('*currentActivity',t['doneActivity']),this['e']['pub']('*history',t['doneActivity']?[t['doneActivity']]:[]),this['e']['read']('*currentActivity')||this['i']['modalManager']?.['closeAll']());},this['setCurrentActivity']=(t,..._0x24f3e6)=>{this['go']()['then'](()=>{this['e']['pub']('*currentActivityParams',_0x24f3e6[0x0]??{}),this['e']['pub']('*currentActivity',t),P6(this['i']['blocksRegistry'],_0x258e55=>_0x258e55['activityType']===t,{'onTimeout':()=>console['warn']('Activity\x20type\x20\x22'+t+'\x22\x20not\x20found\x20in\x20the\x20context'),'timeout':0x64});});},this['on']=(t,_0x57ff97)=>this['i']['eventEmitter']['on'](t,_0x57ff97),this['getCurrentActivity']=()=>this['e']['read']('*currentActivity'),this['historyBack']=()=>{this['e']['read']('*historyBack')?.();},this['setModalState']=t=>{this['go']()['then'](()=>{if(!t)return this['i']['modalManager']?.['close'](this['e']['read']('*currentActivity')),void this['e']['pub']('*currentActivity',null);let _0x45f2f7=this['e']['read']('*currentActivity');if(_0x45f2f7)return P6(this['i']['blocksRegistry'],_0x101d5f=>_0x101d5f['activityType']===_0x45f2f7,{'onTimeout':()=>console['warn']('Activity\x20block\x20\x22'+_0x45f2f7+'\x22\x20not\x20found\x20in\x20the\x20context')})['then'](()=>{this['i']['modalManager']?.['open'](_0x45f2f7);});console['warn']('Can\x27t\x20open\x20modal\x20without\x20current\x20activity.\x20Please\x20use\x20\x22setCurrentActivity\x22\x20method\x20first.');});};}get['v'](){return this['i']['uploadCollection'];}get['cfg'](){return this['ze'];}get['l10n'](){return this['Et'];}['removeAllFiles'](){this['v']['clearAll']();}getOutputItem(t){let _0x522898=k1['getCtx'](t);if(!_0x522898)throw new Error('UploaderPublicApi#getOutputItem:\x20Entry\x20with\x20ID\x20\x22'+t+'\x22\x20not\x20found\x20in\x20the\x20upload\x20collection');let _0x36747f=_0x522898['store'],_0x55e08a=_0x36747f['fileInfo'],_0x4a0fc5=_0x36747f['isRemoved']?'removed':_0x36747f['errors']['length']>0x0?'failed':_0x36747f['fileInfo']?'success':_0x36747f['isUploading']?'uploading':'idle';return{'uuid':_0x55e08a?.['uuid']??_0x36747f['uuid']??null,'internalId':t,'name':_0x55e08a?.['originalFilename']??_0x36747f['fileName'],'size':_0x55e08a?.['size']??_0x36747f['fileSize'],'isImage':_0x55e08a?.['isImage']??_0x36747f['isImage'],'mimeType':_0x55e08a?.['mimeType']??_0x36747f['mimeType'],'file':_0x36747f['file'],'externalUrl':_0x36747f['externalUrl'],'cdnUrlModifiers':_0x36747f['cdnUrlModifiers'],'cdnUrl':_0x36747f['cdnUrl']??_0x55e08a?.['cdnUrl']??null,'fullPath':_0x36747f['fullPath'],'uploadProgress':_0x36747f['uploadProgress'],'fileInfo':_0x55e08a??null,'metadata':_0x36747f['metadata']??_0x55e08a?.['metadata']??null,'isSuccess':'success'===_0x4a0fc5,'isUploading':'uploading'===_0x4a0fc5,'isFailed':'failed'===_0x4a0fc5,'isRemoved':'removed'===_0x4a0fc5,'isValidationPending':_0x36747f['isValidationPending'],'errors':_0x36747f['errors'],'status':_0x4a0fc5,'source':_0x36747f?.['source']};}getOutputCollectionState(){return F6(this['i']);}async['go'](){return(await this['i']['wait']('pluginManager'))['pluginsReady']();}get['On'](){let t=[];return this['cfg']['sourceList']&&(t=A5(this['cfg']['sourceList'])),t;}},G6={'file':null,'externalUrl':null,'fileName':null,'fileSize':null,'lastModified':Date['now'](),'uploadProgress':0x0,'uuid':null,'isImage':!0x1,'mimeType':null,'ctxName':null,'cdnUrl':null,'cdnUrlModifiers':null,'fileInfo':null,'isUploading':!0x1,'abortController':null,'thumbUrl':null,'silent':!0x1,'source':null,'fullPath':null,'metadata':null,'errors':[],'uploadError':null,'isRemoved':!0x1,'isQueuedForUploading':!0x1,'isValidationPending':!0x1,'isQueuedForValidation':!0x1},X6=33.333333333333336;function q6(_0x6da842,_0x38d3d5){for(let [t,_0x3003dd]of Object['entries'](_0x38d3d5))_0x6da842['setAttributeNS'](null,t,_0x3003dd['toString']());}function W6(_0x13cf40,_0x296e09={}){let t=document['createElementNS']('http://www.w3.org/2000/svg',_0x13cf40);return q6(t,_0x296e09),t;}function z6(_0x36bb6b,_0x4b6b7c,t){let {x:_0x52b3a1,y:_0x585eec,width:_0x383355,height:_0x322d02}=_0x36bb6b,_0x245c80=_0x4b6b7c['includes']('w')?0x0:0x1,_0x4f3ea9=_0x4b6b7c['includes']('n')?0x0:0x1,_0x2c41bc=0x0===_0x245c80?-0x1:0x1,_0x4ae331=0x0===_0x4f3ea9?-0x1:0x1,_0x9c9f98=[_0x52b3a1+_0x245c80*_0x383355+1.5*_0x2c41bc,_0x585eec+_0x4f3ea9*_0x322d02+1.5*_0x4ae331-0x18*t*_0x4ae331],_0xe33cc0=[_0x52b3a1+_0x245c80*_0x383355+1.5*_0x2c41bc,_0x585eec+_0x4f3ea9*_0x322d02+1.5*_0x4ae331],_0x2a0a06=[_0x52b3a1+_0x245c80*_0x383355-0x18*t*_0x2c41bc+1.5*_0x2c41bc,_0x585eec+_0x4f3ea9*_0x322d02+1.5*_0x4ae331];return{'d':'M\x20'+_0x9c9f98[0x0]+'\x20'+_0x9c9f98[0x1]+'\x20L\x20'+_0xe33cc0[0x0]+'\x20'+_0xe33cc0[0x1]+'\x20L\x20'+_0x2a0a06[0x0]+'\x20'+_0x2a0a06[0x1],'center':[_0xe33cc0[0x0],_0xe33cc0[0x1]]};}function Y6(_0x194a2b,_0x46a09f,t){let _0x175397,_0x558312,{x:_0x1efc1f,y:_0x3d1605,width:_0x2133e1,height:_0x2cff36}=_0x194a2b,_0x5b27bc='n'===_0x46a09f||'s'===_0x46a09f,_0x59eed0=_0x5b27bc?0.5:'w'===_0x46a09f?0x0:0x1,_0x1cd509='w'===_0x46a09f||'e'===_0x46a09f?0.5:'n'===_0x46a09f?0x0:0x1,_0x20dd7c='w'===_0x46a09f?-0x1:'e'===_0x46a09f?0x1:0x0,_0x1a45d6='n'===_0x46a09f?-0x1:'s'===_0x46a09f?0x1:0x0;return _0x5b27bc?(_0x175397=[_0x1efc1f+_0x59eed0*_0x2133e1-0x22*t/0x2,_0x3d1605+_0x1cd509*_0x2cff36+1.5*_0x1a45d6],_0x558312=[_0x1efc1f+_0x59eed0*_0x2133e1+0x22*t/0x2,_0x3d1605+_0x1cd509*_0x2cff36+1.5*_0x1a45d6]):(_0x175397=[_0x1efc1f+_0x59eed0*_0x2133e1+1.5*_0x20dd7c,_0x3d1605+_0x1cd509*_0x2cff36-0x22*t/0x2],_0x558312=[_0x1efc1f+_0x59eed0*_0x2133e1+1.5*_0x20dd7c,_0x3d1605+_0x1cd509*_0x2cff36+0x22*t/0x2]),{'d':'M\x20'+_0x175397[0x0]+'\x20'+_0x175397[0x1]+'\x20L\x20'+_0x558312[0x0]+'\x20'+_0x558312[0x1],'center':[(_0x175397[0x0]+_0x558312[0x0])/0x2,(_0x175397[0x1]+_0x558312[0x1])/0x2]};}function K6(_0x4de616,_0x551892){let {x:t}=_0x4de616,{y:_0x6ed15d}=_0x4de616;return _0x4de616['x']<_0x551892['x']?t=_0x551892['x']:_0x4de616['x']+_0x4de616['width']>_0x551892['x']+_0x551892['width']&&(t=_0x551892['x']+_0x551892['width']-_0x4de616['width']),_0x4de616['y']<_0x551892['y']?_0x6ed15d=_0x551892['y']:_0x4de616['y']+_0x4de616['height']>_0x551892['y']+_0x551892['height']&&(_0x6ed15d=_0x551892['y']+_0x551892['height']-_0x4de616['height']),{..._0x4de616,'x':t,'y':_0x6ed15d};}function J6({direction:_0x634802,..._0x9987ee}){switch(_0x634802){case'n':return function({rect:_0x322f11,delta:_0x5e6df3,aspectRatio:t,imageBox:_0x18d1ef}){let [,_0x2c7afb]=_0x5e6df3,{y:_0x1b690f,width:_0x1690bd,height:_0x1fdc59}=_0x322f11;_0x1b690f+=_0x2c7afb,_0x1fdc59-=_0x2c7afb,t&&(_0x1690bd=_0x1fdc59*t);let _0x1e4475=_0x322f11['x']+_0x322f11['width']/0x2-_0x1690bd/0x2;return _0x1b690f<=_0x18d1ef['y']&&(_0x1b690f=_0x18d1ef['y'],_0x1fdc59=_0x322f11['y']+_0x322f11['height']-_0x1b690f,t&&(_0x1690bd=_0x1fdc59*t,_0x1e4475=_0x322f11['x']+_0x322f11['width']/0x2-_0x1690bd/0x2)),_0x1e4475<=_0x18d1ef['x']&&(_0x1e4475=_0x18d1ef['x'],_0x1b690f=_0x322f11['y']+_0x322f11['height']-_0x1fdc59),_0x1e4475+_0x1690bd>=_0x18d1ef['x']+_0x18d1ef['width']&&(_0x1e4475=Math['max'](_0x18d1ef['x'],_0x18d1ef['x']+_0x18d1ef['width']-_0x1690bd),_0x1690bd=_0x18d1ef['x']+_0x18d1ef['width']-_0x1e4475,t&&(_0x1fdc59=_0x1690bd/t),_0x1b690f=_0x322f11['y']+_0x322f11['height']-_0x1fdc59),_0x1fdc59<0x1&&(_0x1fdc59=0x1,t&&(_0x1690bd=_0x1fdc59*t,_0x1e4475=_0x322f11['x']+_0x322f11['width']/0x2-_0x1690bd/0x2),_0x1b690f=_0x322f11['y']+_0x322f11['height']-_0x1fdc59),_0x1690bd<0x1&&(_0x1690bd=0x1,t&&(_0x1fdc59=_0x1690bd/t,_0x1e4475=_0x322f11['x']+_0x322f11['width']/0x2-_0x1690bd/0x2),_0x1b690f=_0x322f11['y']+_0x322f11['height']-_0x1fdc59),{'x':_0x1e4475,'y':_0x1b690f,'width':_0x1690bd,'height':_0x1fdc59};}(_0x9987ee);case'w':return function({rect:_0x1d2a56,delta:_0x482880,aspectRatio:t,imageBox:_0x5bf030}){let [_0xbee5ee]=_0x482880,{x:_0x15002a,width:_0x44527f,height:_0x21aaa8}=_0x1d2a56;_0x15002a+=_0xbee5ee,_0x44527f-=_0xbee5ee,t&&(_0x21aaa8=_0x44527f/t);let _0x370815=_0x1d2a56['y']+_0x1d2a56['height']/0x2-_0x21aaa8/0x2;return _0x15002a<=_0x5bf030['x']&&(_0x15002a=_0x5bf030['x'],_0x44527f=_0x1d2a56['x']+_0x1d2a56['width']-_0x15002a,t&&(_0x21aaa8=_0x44527f/t,_0x370815=_0x1d2a56['y']+_0x1d2a56['height']/0x2-_0x21aaa8/0x2)),_0x370815<=_0x5bf030['y']&&(_0x370815=_0x5bf030['y'],_0x15002a=_0x1d2a56['x']+_0x1d2a56['width']-_0x44527f),_0x370815+_0x21aaa8>=_0x5bf030['y']+_0x5bf030['height']&&(_0x370815=Math['max'](_0x5bf030['y'],_0x5bf030['y']+_0x5bf030['height']-_0x21aaa8),_0x21aaa8=_0x5bf030['y']+_0x5bf030['height']-_0x370815,t&&(_0x44527f=_0x21aaa8*t),_0x15002a=_0x1d2a56['x']+_0x1d2a56['width']-_0x44527f),_0x21aaa8<0x1&&(_0x21aaa8=0x1,t&&(_0x44527f=_0x21aaa8*t),_0x370815=_0x1d2a56['y']+_0x1d2a56['height']/0x2-_0x21aaa8/0x2,_0x15002a=_0x1d2a56['x']+_0x1d2a56['width']-_0x44527f),_0x44527f<0x1&&(_0x44527f=0x1,t&&(_0x21aaa8=_0x44527f/t),_0x370815=_0x1d2a56['y']+_0x1d2a56['height']/0x2-_0x21aaa8/0x2,_0x15002a=_0x1d2a56['x']+_0x1d2a56['width']-_0x44527f),{'x':_0x15002a,'y':_0x370815,'width':_0x44527f,'height':_0x21aaa8};}(_0x9987ee);case's':return function({rect:_0x37f68b,delta:_0x2d8051,aspectRatio:t,imageBox:_0x16c0dc}){let [,_0xf02e7e]=_0x2d8051,{y:_0x434e40,width:_0x4b9ee0,height:_0x1caa9e}=_0x37f68b;_0x1caa9e+=_0xf02e7e,t&&(_0x4b9ee0=_0x1caa9e*t);let _0x4231c9=_0x37f68b['x']+_0x37f68b['width']/0x2-_0x4b9ee0/0x2;return _0x434e40+_0x1caa9e>=_0x16c0dc['y']+_0x16c0dc['height']&&(_0x1caa9e=_0x16c0dc['y']+_0x16c0dc['height']-_0x434e40,t&&(_0x4b9ee0=_0x1caa9e*t),_0x4231c9=_0x37f68b['x']+_0x37f68b['width']/0x2-_0x4b9ee0/0x2),_0x4231c9<=_0x16c0dc['x']&&(_0x4231c9=_0x16c0dc['x'],_0x434e40=_0x37f68b['y']),_0x4231c9+_0x4b9ee0>=_0x16c0dc['x']+_0x16c0dc['width']&&(_0x4231c9=Math['max'](_0x16c0dc['x'],_0x16c0dc['x']+_0x16c0dc['width']-_0x4b9ee0),_0x4b9ee0=_0x16c0dc['x']+_0x16c0dc['width']-_0x4231c9,t&&(_0x1caa9e=_0x4b9ee0/t),_0x434e40=_0x37f68b['y']),_0x1caa9e<0x1&&(_0x1caa9e=0x1,t&&(_0x4b9ee0=_0x1caa9e*t),_0x4231c9=_0x37f68b['x']+_0x37f68b['width']/0x2-_0x4b9ee0/0x2),_0x4b9ee0<0x1&&(_0x4b9ee0=0x1,t&&(_0x1caa9e=_0x4b9ee0/t),_0x4231c9=_0x37f68b['x']+_0x37f68b['width']/0x2-_0x4b9ee0/0x2),{'x':_0x4231c9,'y':_0x434e40,'width':_0x4b9ee0,'height':_0x1caa9e};}(_0x9987ee);case'e':return function({rect:_0x58b726,delta:_0x28275d,aspectRatio:t,imageBox:_0x203302}){let [_0x17375c]=_0x28275d,{x:_0x589fc3,width:_0xab4a3,height:_0xa1cf1c}=_0x58b726;_0xab4a3+=_0x17375c,t&&(_0xa1cf1c=_0xab4a3/t);let _0x12be27=_0x58b726['y']+_0x58b726['height']/0x2-_0xa1cf1c/0x2;return _0x589fc3+_0xab4a3>=_0x203302['x']+_0x203302['width']&&(_0xab4a3=_0x203302['x']+_0x203302['width']-_0x589fc3,t&&(_0xa1cf1c=_0xab4a3/t),_0x12be27=_0x58b726['y']+_0x58b726['height']/0x2-_0xa1cf1c/0x2),_0x12be27<=_0x203302['y']&&(_0x12be27=_0x203302['y'],_0x589fc3=_0x58b726['x']),_0x12be27+_0xa1cf1c>=_0x203302['y']+_0x203302['height']&&(_0x12be27=Math['max'](_0x203302['y'],_0x203302['y']+_0x203302['height']-_0xa1cf1c),_0xa1cf1c=_0x203302['y']+_0x203302['height']-_0x12be27,t&&(_0xab4a3=_0xa1cf1c*t),_0x589fc3=_0x58b726['x']),_0xa1cf1c<0x1&&(_0xa1cf1c=0x1,t&&(_0xab4a3=_0xa1cf1c*t),_0x12be27=_0x58b726['y']+_0x58b726['height']/0x2-_0xa1cf1c/0x2),_0xab4a3<0x1&&(_0xab4a3=0x1,t&&(_0xa1cf1c=_0xab4a3/t),_0x12be27=_0x58b726['y']+_0x58b726['height']/0x2-_0xa1cf1c/0x2),{'x':_0x589fc3,'y':_0x12be27,'width':_0xab4a3,'height':_0xa1cf1c};}(_0x9987ee);case'nw':return function({rect:_0xd701f3,delta:_0x3e4da9,aspectRatio:t,imageBox:_0x353e26}){let [_0x5c7afe,_0x88f0b5]=_0x3e4da9,{x:_0x1ae91e,y:_0x1bfbef,width:_0x11715f,height:_0x13ac68}=_0xd701f3;return _0x1ae91e+_0x5c7afe<_0x353e26['x']&&(_0x5c7afe=_0x353e26['x']-_0x1ae91e),_0x1bfbef+_0x88f0b5<_0x353e26['y']&&(_0x88f0b5=_0x353e26['y']-_0x1bfbef),_0x1ae91e+=_0x5c7afe,_0x11715f-=_0x5c7afe,_0x1bfbef+=_0x88f0b5,_0x13ac68-=_0x88f0b5,t&&Math['abs'](_0x11715f/_0x13ac68)>t?(_0x88f0b5=_0x11715f/t-_0x13ac68,_0x13ac68+=_0x88f0b5,_0x1bfbef-=_0x88f0b5,_0x1bfbef<=_0x353e26['y']&&(_0x13ac68-=_0x353e26['y']-_0x1bfbef,_0x11715f=_0x13ac68*t,_0x1ae91e=_0xd701f3['x']+_0xd701f3['width']-_0x11715f,_0x1bfbef=_0x353e26['y'])):t&&(_0x5c7afe=_0x13ac68*t-_0x11715f,_0x11715f+=_0x5c7afe,_0x1ae91e-=_0x5c7afe,_0x1ae91e<=_0x353e26['x']&&(_0x11715f-=_0x353e26['x']-_0x1ae91e,_0x13ac68=_0x11715f/t,_0x1ae91e=_0x353e26['x'],_0x1bfbef=_0xd701f3['y']+_0xd701f3['height']-_0x13ac68)),_0x13ac68<0x1&&(_0x13ac68=0x1,t&&(_0x11715f=_0x13ac68*t),_0x1ae91e=_0xd701f3['x']+_0xd701f3['width']-_0x11715f,_0x1bfbef=_0xd701f3['y']+_0xd701f3['height']-_0x13ac68),_0x11715f<0x1&&(_0x11715f=0x1,t&&(_0x13ac68=_0x11715f/t),_0x1ae91e=_0xd701f3['x']+_0xd701f3['width']-_0x11715f,_0x1bfbef=_0xd701f3['y']+_0xd701f3['height']-_0x13ac68),{'x':_0x1ae91e,'y':_0x1bfbef,'width':_0x11715f,'height':_0x13ac68};}(_0x9987ee);case'ne':return function({rect:_0x51dc75,delta:_0x23cc80,aspectRatio:t,imageBox:_0x3a2a7b}){let [_0x513c79,_0x1584e1]=_0x23cc80,{x:_0x3a52e3,y:_0x596556,width:_0x5767ea,height:_0x47b681}=_0x51dc75;return _0x3a52e3+_0x5767ea+_0x513c79>_0x3a2a7b['x']+_0x3a2a7b['width']&&(_0x513c79=_0x3a2a7b['x']+_0x3a2a7b['width']-_0x3a52e3-_0x5767ea),_0x596556+_0x1584e1<_0x3a2a7b['y']&&(_0x1584e1=_0x3a2a7b['y']-_0x596556),_0x5767ea+=_0x513c79,_0x596556+=_0x1584e1,_0x47b681-=_0x1584e1,t&&Math['abs'](_0x5767ea/_0x47b681)>t?(_0x1584e1=_0x5767ea/t-_0x47b681,_0x47b681+=_0x1584e1,_0x596556-=_0x1584e1,_0x596556<=_0x3a2a7b['y']&&(_0x47b681-=_0x3a2a7b['y']-_0x596556,_0x5767ea=_0x47b681*t,_0x3a52e3=_0x51dc75['x'],_0x596556=_0x3a2a7b['y'])):t&&(_0x513c79=_0x47b681*t-_0x5767ea,_0x5767ea+=_0x513c79,_0x3a52e3+_0x5767ea>=_0x3a2a7b['x']+_0x3a2a7b['width']&&(_0x5767ea=_0x3a2a7b['x']+_0x3a2a7b['width']-_0x3a52e3,_0x47b681=_0x5767ea/t,_0x3a52e3=_0x3a2a7b['x']+_0x3a2a7b['width']-_0x5767ea,_0x596556=_0x51dc75['y']+_0x51dc75['height']-_0x47b681)),_0x47b681<0x1&&(_0x47b681=0x1,t&&(_0x5767ea=_0x47b681*t),_0x596556=_0x51dc75['y']+_0x51dc75['height']-_0x47b681),_0x5767ea<0x1&&(_0x5767ea=0x1,t&&(_0x47b681=_0x5767ea/t),_0x596556=_0x51dc75['y']+_0x51dc75['height']-_0x47b681),{'x':_0x3a52e3,'y':_0x596556,'width':_0x5767ea,'height':_0x47b681};}(_0x9987ee);case'sw':return function({rect:_0x41140f,delta:_0xdfcba8,aspectRatio:t,imageBox:_0x11c6ad}){let [_0x32c754,_0x44f24e]=_0xdfcba8,{x:_0x54f06c,y:_0x49e4e9,width:_0x3531e8,height:_0x467b16}=_0x41140f;return _0x54f06c+_0x32c754<_0x11c6ad['x']&&(_0x32c754=_0x11c6ad['x']-_0x54f06c),_0x49e4e9+_0x467b16+_0x44f24e>_0x11c6ad['y']+_0x11c6ad['height']&&(_0x44f24e=_0x11c6ad['y']+_0x11c6ad['height']-_0x49e4e9-_0x467b16),_0x54f06c+=_0x32c754,_0x3531e8-=_0x32c754,_0x467b16+=_0x44f24e,t&&Math['abs'](_0x3531e8/_0x467b16)>t?(_0x44f24e=_0x3531e8/t-_0x467b16,_0x467b16+=_0x44f24e,_0x49e4e9+_0x467b16>=_0x11c6ad['y']+_0x11c6ad['height']&&(_0x467b16=_0x11c6ad['y']+_0x11c6ad['height']-_0x49e4e9,_0x3531e8=_0x467b16*t,_0x54f06c=_0x41140f['x']+_0x41140f['width']-_0x3531e8,_0x49e4e9=_0x11c6ad['y']+_0x11c6ad['height']-_0x467b16)):t&&(_0x32c754=_0x467b16*t-_0x3531e8,_0x3531e8+=_0x32c754,_0x54f06c-=_0x32c754,_0x54f06c<=_0x11c6ad['x']&&(_0x3531e8-=_0x11c6ad['x']-_0x54f06c,_0x467b16=_0x3531e8/t,_0x54f06c=_0x11c6ad['x'],_0x49e4e9=_0x41140f['y'])),_0x467b16<0x1&&(_0x467b16=0x1,t&&(_0x3531e8=_0x467b16*t),_0x54f06c=_0x41140f['x']+_0x41140f['width']-_0x3531e8),_0x3531e8<0x1&&(_0x3531e8=0x1,t&&(_0x467b16=_0x3531e8/t),_0x54f06c=_0x41140f['x']+_0x41140f['width']-_0x3531e8),{'x':_0x54f06c,'y':_0x49e4e9,'width':_0x3531e8,'height':_0x467b16};}(_0x9987ee);case'se':return function({rect:_0x242b3c,delta:_0x57dff0,aspectRatio:t,imageBox:_0x538f20}){let [_0x66d78a,_0x56da07]=_0x57dff0,{x:_0x3e300c,y:_0x12a66a,width:_0x666a90,height:_0x3f4dbb}=_0x242b3c;return _0x3e300c+_0x666a90+_0x66d78a>_0x538f20['x']+_0x538f20['width']&&(_0x66d78a=_0x538f20['x']+_0x538f20['width']-_0x3e300c-_0x666a90),_0x12a66a+_0x3f4dbb+_0x56da07>_0x538f20['y']+_0x538f20['height']&&(_0x56da07=_0x538f20['y']+_0x538f20['height']-_0x12a66a-_0x3f4dbb),_0x666a90+=_0x66d78a,_0x3f4dbb+=_0x56da07,t&&Math['abs'](_0x666a90/_0x3f4dbb)>t?(_0x56da07=_0x666a90/t-_0x3f4dbb,_0x3f4dbb+=_0x56da07,_0x12a66a+_0x3f4dbb>=_0x538f20['y']+_0x538f20['height']&&(_0x3f4dbb=_0x538f20['y']+_0x538f20['height']-_0x12a66a,_0x666a90=_0x3f4dbb*t,_0x3e300c=_0x242b3c['x'],_0x12a66a=_0x538f20['y']+_0x538f20['height']-_0x3f4dbb)):t&&(_0x66d78a=_0x3f4dbb*t-_0x666a90,_0x666a90+=_0x66d78a,_0x3e300c+_0x666a90>=_0x538f20['x']+_0x538f20['width']&&(_0x666a90=_0x538f20['x']+_0x538f20['width']-_0x3e300c,_0x3f4dbb=_0x666a90/t,_0x3e300c=_0x538f20['x']+_0x538f20['width']-_0x666a90,_0x12a66a=_0x242b3c['y'])),_0x3f4dbb<0x1&&(_0x3f4dbb=0x1,t&&(_0x666a90=_0x3f4dbb*t)),_0x666a90<0x1&&(_0x666a90=0x1,t&&(_0x3f4dbb=_0x666a90/t)),{'x':_0x3e300c,'y':_0x12a66a,'width':_0x666a90,'height':_0x3f4dbb};}(_0x9987ee);default:return _0x9987ee['rect'];}}function t7({width:_0x3c9a70,height:_0x4a8b58},t){let _0x597004=t/0x5a%0x2!=0x0;return{'width':_0x597004?_0x4a8b58:_0x3c9a70,'height':_0x597004?_0x3c9a70:_0x4a8b58};}function e7(_0x4802bf,_0x47225f,t){let _0x5a36ff,_0x23592d;_0x4802bf/_0x47225f>t?(_0x5a36ff=Math['round'](_0x47225f*t),_0x23592d=_0x47225f):(_0x5a36ff=_0x4802bf,_0x23592d=Math['round'](_0x4802bf/t));let _0x31db3a=Math['round']((_0x4802bf-_0x5a36ff)/0x2),_0x12991e=Math['round']((_0x47225f-_0x23592d)/0x2);return _0x31db3a+_0x5a36ff>_0x4802bf&&(_0x5a36ff=_0x4802bf-_0x31db3a),_0x12991e+_0x23592d>_0x47225f&&(_0x23592d=_0x47225f-_0x12991e),{'x':_0x31db3a,'y':_0x12991e,'width':_0x5a36ff,'height':_0x23592d};}function i7(_0x242404){return{'x':Math['round'](_0x242404['x']),'y':Math['round'](_0x242404['y']),'width':Math['round'](_0x242404['width']),'height':Math['round'](_0x242404['height'])};}function s7(_0x1c3c32,_0x590365,t){return Math['min'](Math['max'](_0x1c3c32,_0x590365),t);}var n7=['free'],r7=_0x520e0b=>{let _0x19c11a=A5(_0x520e0b);if(!_0x19c11a||0x0===_0x19c11a['length'])return[];let t=[];for(let _0x5f5050 of _0x19c11a){let _0x274a27=_0x5f5050['trim']();if(!_0x274a27)continue;let _0x3725cb=_0x274a27['indexOf'](':');if(-0x1===_0x3725cb&&!n7['includes'](_0x274a27)){console['warn']('Invalid\x20crop\x20preset:\x20'+_0x274a27);continue;}let _0x43ee9a=Number(_0x274a27['slice'](0x0,_0x3725cb)),_0x12caaa=Number(_0x274a27['slice'](_0x3725cb+0x1));!(!Number['isFinite'](_0x43ee9a)||!Number['isFinite'](_0x12caaa)||_0x43ee9a<=0x0||_0x12caaa<=0x0)||n7['includes'](_0x274a27)?t['push']({'id':t5['generateFastUid'](),'type':'aspect-ratio','width':n7['includes'](_0x274a27)?0x0:_0x43ee9a,'height':n7['includes'](_0x274a27)?0x0:_0x12caaa,'hasFreeform':n7['includes'](_0x274a27)}):console['warn']('Invalid\x20crop\x20preset:\x20'+_0x274a27);}return t;};function o7(_0x51c12c){return s3({..._0x51c12c,'libraryName':B4,'libraryVersion':H4});}var a7,c7='active',l7='___ACTIVITY_IS_ACTIVE___',h7=class o extends(a7=t6,a7){constructor(){super(...arguments),this['historyTracked']=!0x1,this['activityType']=null,this['init$']=a4(this),this['lu']=z2(this['cu']['bind'](this),0xa);}['In'](){let t=o['ii']['get'](this);this[l7]=!0x1,this['removeAttribute'](c7),t?.['deactivateCallback']?.();}['uu'](){let t=o['ii']['get'](this);this['$']['*historyBack']=this['historyBack']['bind'](this),this[l7]=!0x0,this['setAttribute'](c7,''),t?.['activateCallback']?.(),this['lu'](),this['emit'](U4['ACTIVITY_CHANGE'],{'activity':this['activityType']});}initCallback(){super['initCallback'](),this['activityType']&&(this['hasAttribute']('activity')||this['setAttribute']('activity',this['activityType']),this['sub']('*currentActivity',t=>{try{this['activityType']!==t&&this[l7]?this['In']():this['activityType']===t&&!this[l7]&&this['uu']();}catch(_0x361222){this['telemetryManager']['sendEventError'](_0x361222,'activity\x20\x22'+this['activityType']+'\x22'),console['error']('Error\x20in\x20activity\x20\x22'+this['activityType']+'\x22.\x20',_0x361222);let _0x2caab1=this['$']['*history'][this['$']['*history']['length']-0x1];this['$']['*currentActivity']=_0x2caab1??null;}t||(this['$']['*history']=[]);}));}['cu'](){let t=this['$']['*history'];t&&(t['length']>0xa&&(t=t['slice'](t['length']-0xb,t['length']-0x1)),this['historyTracked']&&t[t['length']-0x1]!==this['activityType']&&t['push'](this['activityType']),this['$']['*history']=t);}['Pn'](){return!!this['activityType']&&o['ii']['has'](this);}static{this['ii']=new Map();}get isActivityActive(){return!!this[l7];}get couldOpenActivity(){return!0x0;}registerActivity(t,_0x256471={}){let {onActivate:_0x1b073b,onDeactivate:_0x42b877}=_0x256471;o['ii']['set'](this,{'activateCallback':_0x1b073b,'deactivateCallback':_0x42b877});}['du'](){this['isActivityActive']&&this['In'](),o['ii']['delete'](this);}disconnectedCallback(){super['disconnectedCallback'](),this['Pn']()&&this['du']();}get activityParams(){return this['$']['*currentActivityParams'];}get initActivity(){return this['getCssData']('--cfg-init-activity')??null;}get doneActivity(){return this['getCssData']('--cfg-done-activity')??null;}historyBack(){let t=this['$']['*history'];if(t){let _0x598a13=t['pop']();for(;_0x598a13===this['activityType'];)_0x598a13=t['pop']();let _0x3d3056=!!_0x598a13;_0x598a13&&(_0x3d3056=[...this['blocksRegistry']]['find'](_0x358994=>_0x358994['activityType']===_0x598a13)?.['couldOpenActivity']??!0x1),_0x598a13=_0x3d3056?_0x598a13:null,this['$']['*currentActivity']=_0x598a13??null,_0x598a13&&this['modalManager']?.['open'](_0x598a13),this['$']['*history']=t,_0x598a13||this['modalManager']?.['closeAll']();}}};h7['activities']=l4;var u7=class o extends h7{constructor(){super(...arguments),this['couldBeCtxOwner']=!0x1,this['Xi']=!0x1,this['init$']=c4(this),this['bo']=z2(async()=>{if(this['getOutputData']()['length']!==this['uploadCollection']['size'])return;let _0x5f4cdc=this['api']['getOutputCollectionState']();this['$']['*collectionState']=_0x5f4cdc,this['emit'](U4['CHANGE'],()=>this['api']['getOutputCollectionState'](),{'debounce':!0x0}),this['cfg']['groupOutput']&&_0x5f4cdc['totalCount']>0x0&&'success'===_0x5f4cdc['status']&&this['gu'](_0x5f4cdc);},0x12c),this['fu']=(t,_0x4f2b85,_0x4d5555)=>{if(this['isConnected']){(_0x4f2b85['size']||_0x4d5555['size'])&&(this['$']['*groupInfo']=null),this['validationManager']['runFileValidators']('add',[..._0x4f2b85]['map'](_0x122353=>_0x122353['uid']));for(let _0x188fc8 of _0x4f2b85)_0x188fc8['getValue']('silent')||this['emit'](U4['FILE_ADDED'],this['api']['getOutputItem'](_0x188fc8['uid'])),this['i']['wait']('pluginManager')['then'](_0x5bd712=>_0x5bd712['runOnAddHooks'](_0x188fc8));this['validationManager']['runCollectionValidators']();for(let _0x5b4d52 of _0x4d5555){this['$']['*uploadTrigger']['delete'](_0x5b4d52['uid']),this['validationManager']['cleanupValidationForEntry'](_0x5b4d52),_0x5b4d52['getValue']('abortController')?.['abort'](),_0x5b4d52['setMultipleValues']({'isRemoved':!0x0,'abortController':null,'isUploading':!0x1,'uploadProgress':0x0});let _0x2dd17b=_0x5b4d52?.['getValue']('thumbUrl');_0x2dd17b&&URL['revokeObjectURL'](_0x2dd17b),this['emit'](U4['FILE_REMOVED'],this['api']['getOutputItem'](_0x5b4d52['uid']));}this['$']['*uploadList']=t['map'](_0x37cae9=>({'uid':_0x37cae9})),this['Un'](),this['bo']();}},this['mu']=t=>{if(!this['isConnected'])return;this['bo']();let _0x1414e1=this['uploadCollection'],_0x382cc7=[...new Set(Object['entries'](t)['filter'](([_0x4acf0a])=>['file','uploadError','fileInfo','cdnUrl','cdnUrlModifiers']['includes'](_0x4acf0a))['flatMap'](([,_0x2d6404])=>[..._0x2d6404]))];if(_0x382cc7['length']>0x0&&setTimeout(()=>{if(!this['isConnected'])return;let _0x5a3bc3=_0x382cc7['filter'](_0xa94bd6=>t['fileInfo']?.['has'](_0xa94bd6)&&!!k1['getCtx'](_0xa94bd6)?.['store']['fileInfo']);_0x5a3bc3['length']>0x0&&this['validationManager']['runFileValidators']('upload',_0x5a3bc3),this['validationManager']['runFileValidators']('change',_0x382cc7);}),t['uploadProgress']){for(let _0x5ba53b of t['uploadProgress']){let _0x246401=k1['getCtx'](_0x5ba53b);if(!_0x246401)continue;let {isUploading:_0x55310e,silent:_0x53be96}=_0x246401['store'];_0x55310e&&!_0x53be96&&this['emit'](U4['FILE_UPLOAD_PROGRESS'],this['api']['getOutputItem'](_0x5ba53b));}this['Un']();}if(t['isUploading'])for(let _0x3a79ab of t['isUploading']){let _0x1235dd=k1['getCtx'](_0x3a79ab);if(!_0x1235dd)continue;let {isUploading:_0x38a12e,silent:_0x48be3c}=_0x1235dd['store'];_0x38a12e&&!_0x48be3c&&this['emit'](U4['FILE_UPLOAD_START'],this['api']['getOutputItem'](_0x3a79ab));}if(t['fileInfo']){for(let _0x218cb8 of t['fileInfo']){let _0x5233ba=k1['getCtx'](_0x218cb8);if(!_0x5233ba)continue;let {fileInfo:_0xc1350d,silent:_0x50a2e8}=_0x5233ba['store'];_0xc1350d&&!_0x50a2e8&&this['emit'](U4['FILE_UPLOAD_SUCCESS'],this['api']['getOutputItem'](_0x218cb8));}this['cfg']['cropPreset']&&this['vu']();}if(t['errors']){this['validationManager']['runCollectionValidators']();for(let _0x4d7937 of t['errors']){let _0x37cbbb=k1['getCtx'](_0x4d7937);if(!_0x37cbbb)continue;let {errors:_0x5b61e5}=_0x37cbbb['store'];_0x5b61e5['length']>0x0&&(this['emit'](U4['FILE_UPLOAD_FAILED'],this['api']['getOutputItem'](_0x4d7937)),this['emit'](U4['COMMON_UPLOAD_FAILED'],()=>this['api']['getOutputCollectionState'](),{'debounce':!0x0}));}let _0x39a758=_0x1414e1['findItems'](_0x38a508=>!!_0x38a508['getValue']('fileInfo')),_0x4a4671=_0x1414e1['findItems'](_0x5b8a17=>_0x5b8a17['getValue']('errors')['length']>0x0);_0x1414e1['size']>0x0&&0x0===_0x4a4671['length']&&_0x1414e1['size']===_0x39a758['length']&&0x0===this['$']['*collectionErrors']['length']&&this['emit'](U4['COMMON_UPLOAD_SUCCESS'],this['api']['getOutputCollectionState']());}t['cdnUrl']&&([...t['cdnUrl']]['filter'](_0x51ac5d=>!!this['uploadCollection']['read'](_0x51ac5d)?.['getValue']('cdnUrl'))['forEach'](_0x257bad=>{this['emit'](U4['FILE_URL_CHANGED'],this['api']['getOutputItem'](_0x257bad));}),this['$']['*groupInfo']=null);},this['Un']=()=>{let t=0x0,_0x23acca=[...this['$']['*uploadTrigger']]['filter'](_0x2a291=>!!this['uploadCollection']['read'](_0x2a291));_0x23acca['forEach'](_0x2c1089=>{let _0x6ef2cc=this['uploadCollection']['readProp'](_0x2c1089,'uploadProgress');'number'==typeof _0x6ef2cc&&(t+=_0x6ef2cc);});let _0x526ad1=_0x23acca['length']?Math['round'](t/_0x23acca['length']):0x0;this['$']['*commonProgress']!==_0x526ad1&&(this['$']['*commonProgress']=_0x526ad1,this['emit'](U4['COMMON_UPLOAD_PROGRESS'],this['api']['getOutputCollectionState']()));};}get['pu'](){return this['hasBlockInCtx'](t=>t instanceof o&&(t['Xi']&&t['isConnected']&&t!==this));}initCallback(){super['initCallback'](),this['Z']('*uploadCollection',()=>new x6({'initialValue':G6,'watchList':['file','uploadProgress','uploadError','fileInfo','errors','cdnUrl','isUploading','isValidationPending']})),this['Z']('*secureUploadsManager',t=>new h6(t)),this['Z']('*validationManager',t=>new S6(t)),this['Z']('*publicApi',t=>new Z6(t)),!this['pu']&&this['couldBeCtxOwner']&&this['hu']();}getAPI(){return this['api'];}get validationManager(){return this['ie']('*validationManager');}get['api'](){return this['ie']('*publicApi');}get uploadCollection(){return this['ie']('*uploadCollection');}get['secureUploadsManager'](){return this['ie']('*secureUploadsManager');}disconnectedCallback(){super['disconnectedCallback'](),this['Xi']&&this['Ln'](),this['bo']['cancel']();}connectedCallback(){super['connectedCallback'](),this['Xi']&&this['Rn']();}['hu'](){this['Xi']=!0x0,this['Rn'](),this['subConfigValue']('maxConcurrentRequests',t=>{this['$']['*uploadQueue']['concurrency']=Number(t)||0x1;});}['Rn'](){this['Ln'](),this['vo']=this['uploadCollection']['observeCollection'](this['fu']),this['yo']=this['uploadCollection']['observeProperties'](this['mu']);}['Ln'](){this['yo']?.(),this['vo']?.(),this['yo']=void 0x0,this['vo']=void 0x0;}async['gu'](t){let _0x47f66a=await this['getUploadClientOptions'](),_0x2fe420=t['allEntries']['map'](_0x5200e2=>_0x5200e2['uuid']+(_0x5200e2['cdnUrlModifiers']?'/'+_0x5200e2['cdnUrlModifiers']:'')),_0xf5c021=new AbortController(),_0x52f11d=await r4(_0x2fe420,{..._0x47f66a,'signal':_0xf5c021['signal']});if(this['$']['*collectionState']!==t)return void _0xf5c021['abort']();this['$']['*groupInfo']=_0x52f11d;let _0x3f570b=this['api']['getOutputCollectionState']();this['emit'](U4['GROUP_CREATED'],_0x3f570b),this['emit'](U4['CHANGE'],()=>this['api']['getOutputCollectionState'](),{'debounce':!0x0}),this['$']['*collectionState']=_0x3f570b;}['vu'](){let t=r7(this['cfg']['cropPreset']);if(!t)return;let [_0x32bd34]=t,_0x1d0803=this['uploadCollection']['findItems'](_0x3ef530=>!!_0x3ef530['getValue']('fileInfo')&&_0x3ef530['getValue']('isImage')&&!_0x3ef530['getValue']('cdnUrlModifiers')?.['includes']('/crop/'))['map'](_0x184735=>this['uploadCollection']['read'](_0x184735))['filter'](Boolean);for(let _0x5af5ec of _0x1d0803){let _0x47743a=_0x5af5ec['getValue']('fileInfo');if(!_0x47743a||!_0x47743a['imageInfo']){console['warn']('Failed\x20to\x20get\x20image\x20info\x20for\x20entry',_0x5af5ec['uid']);continue;}let {width:_0x1748b7,height:_0x457d9a}=_0x47743a['imageInfo'],_0x501d8b=e7(_0x1748b7,_0x457d9a,'number'==typeof _0x32bd34?.['width']&&'number'==typeof _0x32bd34?.['height']&&_0x32bd34['width']>0x0&&_0x32bd34['height']>0x0?_0x32bd34['width']/_0x32bd34['height']:0x1),_0x261029=p5('crop/'+_0x501d8b['width']+'x'+_0x501d8b['height']+'/'+_0x501d8b['x']+','+_0x501d8b['y'],'preview'),_0x35dd42=_0x5af5ec['getValue']('cdnUrl');_0x35dd42?_0x5af5ec['setMultipleValues']({'cdnUrlModifiers':_0x261029,'cdnUrl':E5(_0x35dd42,_0x261029)}):console['warn']('Failed\x20to\x20get\x20cdnUrl\x20for\x20entry',_0x5af5ec['uid']);}}async getMetadataFor(t){let _0x3c1522=this['cfg']['metadata']||void 0x0;return'function'==typeof _0x3c1522?await _0x3c1522(this['api']['getOutputItem'](t)):_0x3c1522;}async getUploadClientOptions(){let t=await this['secureUploadsManager']['getSecureToken']()['catch'](()=>null);return{'store':this['cfg']['store'],'publicKey':this['cfg']['pubkey'],'baseCDN':this['cfg']['cdnCname'],'baseURL':this['cfg']['baseUrl'],'userAgent':o7,'integration':this['cfg']['userAgentIntegration'],'secureSignature':t?.['secureSignature'],'secureExpire':t?.['secureExpire'],'retryThrottledRequestMaxTimes':this['cfg']['retryThrottledRequestMaxTimes'],'retryNetworkErrorMaxTimes':this['cfg']['retryNetworkErrorMaxTimes'],'multipartMinFileSize':this['cfg']['multipartMinFileSize'],'multipartChunkSize':this['cfg']['multipartChunkSize'],'maxConcurrentRequests':this['cfg']['multipartMaxConcurrentRequests'],'multipartMaxAttempts':this['cfg']['multipartMaxAttempts'],'checkForUrlDuplicates':!!this['cfg']['checkForUrlDuplicates'],'saveUrlForRecurrentUploads':!!this['cfg']['saveUrlForRecurrentUploads']};}getOutputData(){return U6(this['i']);}};u7['extSrcList']=Object['freeze']({...L6}),u7['sourceTypes']=Object['freeze']({...D6});var d7=class extends t6{constructor(){super(...arguments),this['name']='',this['Qi']='',this['ri']=null,this['$n']=null;}initCallback(){super['initCallback'](),this['setAttribute']('aria-hidden','true'),this['subConfigValue']('iconHrefResolver',_0x163d07=>{this['$n']=_0x163d07,this['wo']();});let t=this['i']['pluginManager'];t?.['onPluginsChange']&&(this['E']=t['onPluginsChange'](()=>this['wo']()));}willUpdate(t){super['willUpdate'](t),t['has']('name')&&this['wo']();}['wo'](){if(!this['name'])return this['Qi']='',void(this['ri']=null);let _0x277548=this['i']['pluginManager']?.['snapshot']()['icons']['find'](_0x36ded4=>_0x36ded4['name']===this['name']);if(_0x277548)return this['ri']=_0x277548['svg'],void(this['Qi']='');this['ri']=null;let _0x3dd784='#uc-icon-'+this['name'],_0xb9449c=this['$n']?.(this['name']);this['Qi']=_0xb9449c??_0x3dd784;}['render'](){return this['ri']?O2`${this['yield']('',O2`${a6(this['ri'])}`)}`:O2` ${this['yield']('',O2`<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><use href=${this['Qi']}></use></svg>`)} `;}disconnectedCallback(){this['E']?.(),this['E']=void 0x0,super['disconnectedCallback']();}};_1([q2({'type':String})],d7['prototype'],'name',0x2),_1([W2()],d7['prototype'],'Qi',0x2),_1([W2()],d7['prototype'],'ri',0x2);var f7='--uc-img-',m7='unresolved',p7=!window['location']['host']['trim']()||window['location']['host']['includes'](':')||window['location']['hostname']['includes']('localhost'),g7=Object['freeze']({'PREVIEW':'PREVIEW','MAIN':'MAIN'}),O7=Object['freeze']({'dev-mode':{},'pubkey':{},'uuid':{},'src':{},'lazy':{'default':0x1},'intersection':{},'breakpoints':{},'cdn-cname':{'default':'https://ucarecdn.com'},'proxy-cname':{},'secure-delivery-proxy':{},'hi-res-support':{'default':0x1},'ultra-res-support':{},'format':{},'cdn-operations':{},'progressive':{},'quality':{},'is-background-for':{},'is-preview-blur':{'default':0x1}}),w7=class extends Q2(U2(L2)){constructor(){super(),this['Mt']={},this['c']=new Map(),this['Ot']=null,this['Ji']=null;for(let t in O7){let _0x10559e=O7[t];this['Mt'][f7+t]=_0x10559e?.['default']||'';}}createRenderRoot(){return this;}['$$'](t){return this['Mt'][f7+t];}set$$(t){for(let _0x3439bf in t){let _0x240244=f7+_0x3439bf,_0x3def95=t[_0x3439bf];this['Mt'][_0x240244]=_0x3def95,this['q'](_0x240244,_0x3def95);}}['sub$$'](t,_0x568dce){let _0x22ae7f=f7+t;this['c']['has'](_0x22ae7f)||this['c']['set'](_0x22ae7f,new Set()),this['c']['get'](_0x22ae7f)?.['add'](_0x568dce);let _0x5e0cc1=this['Mt'][_0x22ae7f];null!==_0x5e0cc1&&''!==_0x5e0cc1&&_0x568dce(_0x5e0cc1);}['q'](t,_0x117cbf){this['c']['has'](t)&&this['c']['get'](t)?.['forEach'](_0x582831=>{null===_0x117cbf||''===_0x117cbf||_0x582831(_0x117cbf);});}analyticsParams(){return'-/@clib/'+B4+'/'+H4+'/uc-img/';}initAttributes(t){Array['from'](this['attributes'])['forEach'](_0x5a969e=>{let _0x484bf3=_0x5a969e;O7[_0x484bf3['name']]||t['setAttribute'](_0x484bf3['name'],_0x484bf3['value']);});}initIntersection(t,_0x387f60){this['Ot']=new IntersectionObserver(_0x3cbecd=>{_0x3cbecd['forEach'](_0x3b1673=>{_0x3b1673['isIntersecting']&&(_0x387f60(),this['Ot']?.['unobserve'](t));});},{'root':null,'rootMargin':'0px'}),this['Ot']['observe'](t),this['Ji']||(this['Ji']=new Set()),this['Ji']['add'](t);}connectedCallback(){super['connectedCallback'](),this['yu']();}['yu'](){for(let t in O7){let _0x5b286b=f7+t,_0x5b7b13=this['getCssData'](_0x5b286b,!0x0);null!=_0x5b7b13&&(this['Mt'][_0x5b286b]=_0x5b7b13);}}disconnectedCallback(){super['disconnectedCallback'](),this['Ot']&&(this['Ji']?.['forEach'](t=>{this['Ot']?.['unobserve'](t);}),this['Ot']=null),this['c']['clear']();}static get observedAttributes(){return Object['keys'](O7);}attributeChangedCallback(t,_0x5f0f87,_0x303da3){window['setTimeout'](()=>{let _0x16ab9c=f7+t;this['Mt'][_0x16ab9c]=_0x303da3,this['q'](_0x16ab9c,_0x303da3);});}},b7=class extends w7{constructor(){super(...arguments),this['be']=new Image(),this['pe']=new Image();}['Dn'](t){return!t['includes']('//')&&!p7&&(t=new URL(t,document['baseURI'])['href']),t;}['er'](t){if(!t)return;let _0x5b670e=t,_0x3559f8=_0x5b670e['match'](/\d+/)?.[0x0],_0x461409=_0x5b670e['match'](/[a-zA-Z]+/)?.[0x0];if(!_0x3559f8||!_0x461409)return;let _0x475d2d=parseInt(_0x3559f8,0xa);return Number(_0x475d2d)>0x1388&&this['Fn']?0x1388+_0x461409:Number(_0x475d2d)>0xbb8&&!this['Fn']?0xbb8+_0x461409:t;}['bu'](t,_0x161b32){return p5(...(_0xe1af71=>Object['entries'](_0xe1af71)['filter'](([_0x4184e3,t])=>void 0x0!==t&&''!==t)['map'](([_0x200e30,t])=>'cdn-operations'===_0x200e30||'analytics'===_0x200e30?t:_0x200e30+'/'+t))({'format':this['To']('format'),'quality':this['To']('quality'),'resize':this['er'](t),'blur':_0x161b32,'cdn-operations':this['To']('cdn-operations')??void 0x0,'analytics':this['analyticsParams']()}));}['To'](t){let _0x589a8c=this['$$'](t);if(null==_0x589a8c||'string'==typeof _0x589a8c||'number'==typeof _0x589a8c||'boolean'==typeof _0x589a8c)return _0x589a8c;}['re'](t='',_0x36e125=''){let _0x4b8c18=this['$$']('src');if(_0x4b8c18['startsWith']('data:')||_0x4b8c18['startsWith']('blob:'))return _0x4b8c18;if(p7&&_0x4b8c18&&!_0x4b8c18['includes']('//'))return this['oi'](_0x4b8c18);let _0x8fd3f5=this['bu'](t,_0x36e125),_0xd6e3f8=this['$$']('cdn-cname'),_0x3e6f00=_0xd6e3f8;if(_0x4b8c18['startsWith'](String(_0xd6e3f8)))return E5(_0x4b8c18,_0x8fd3f5);let _0x87c8aa=this['$$']('uuid');if(_0x3e6f00&&_0x87c8aa)return this['oi'](E5(T5(_0x3e6f00,_0x87c8aa),_0x8fd3f5));if(_0x87c8aa)return this['oi'](E5(T5(_0x3e6f00,_0x87c8aa),_0x8fd3f5));let _0x4de0c8=this['$$']('proxy-cname');if(_0x4de0c8)return this['oi'](E5(_0x4de0c8,_0x8fd3f5,this['Dn'](_0x4b8c18)));let _0x1123f1=this['$$']('pubkey');return _0x1123f1?this['oi'](E5('https://'+_0x1123f1+'.ucr.io/',_0x8fd3f5,this['Dn'](_0x4b8c18))):void 0x0;}['oi'](t){let _0x2c7e95=this['$$']('secure-delivery-proxy');return _0x2c7e95?X4(_0x2c7e95,{'previewUrl':t},{'transform':_0x1fa466=>window['encodeURIComponent'](_0x1fa466)}):t;}It(t,_0x2d860f=0x1,_0x569b98=!0x0){let _0x876484=t['getBoundingClientRect'](),_0x5479e7=_0x2d860f*Math['round'](_0x876484['width']),_0x1db201=_0x569b98?'':_0x2d860f*Math['round'](_0x876484['height']);return _0x5479e7||_0x1db201?(_0x5479e7||'')+'x'+(_0x1db201||''):null;}['wu'](t){let _0x54b85e=_0x591133=>{_0x591133['stopPropagation']();let _0x3f3976=new Event(_0x591133['type'],_0x591133);this['dispatchEvent'](_0x3f3976);};for(let _0x48a35d of['load','error'])t['addEventListener'](_0x48a35d,_0x54b85e);}get['img'](){return this['we']||(this['Eo']({'elNode':this['be']}),this['appendChild'](this['be'])),this['be'];}get tr(){return this['we']?{'type':g7['PREVIEW'],'img':this['pe']}:{'type':g7['MAIN'],'img':this['img']};}get['we'](){return this['$$']('is-preview-blur');}get['Nn'](){return this['$$']('is-background-for');}get['Vn'](){let t=this['$$']('breakpoints');return t?(_0x16b1a6=>[...new Set(_0x16b1a6)])(A5(t)['map'](_0x3848e8=>parseInt(_0x3848e8,0xa))):null;}get['Fn'](){return'jpeg'===this['$$']('format')['toLowerCase']();}['_n'](t){let _0x2d5003=new Set();_0x2d5003['add']('url(\x22'+this['re'](this['It'](t))+'\x22)\x201x'),this['$$']('hi-res-support')&&_0x2d5003['add']('url(\x22'+this['re'](this['It'](t,0x2))+'\x22)\x202x'),this['$$']('ultra-res-support')&&_0x2d5003['add']('url(\x22'+this['re'](this['It'](t,0x3))+'\x22)\x203x');let _0x5582b9='image-set('+[..._0x2d5003]['join'](',\x20')+')';t['style']['setProperty']('background-image',_0x5582b9),t['style']['setProperty']('background-image','-webkit-'+_0x5582b9);}['Bn'](){let t=new Set();return this['Vn']?this['Vn']['forEach'](_0x55a979=>{t['add'](this['re'](_0x55a979+'x')+'\x20'+this['er'](_0x55a979+'w')),this['$$']('hi-res-support')&&t['add'](this['re'](0x2*_0x55a979+'x')+'\x20'+this['er'](0x2*_0x55a979+'w')),this['$$']('ultra-res-support')&&t['add'](this['re'](0x3*_0x55a979+'x')+'\x20'+this['er'](0x3*_0x55a979+'w'));}):(t['add'](this['re'](this['It'](this['tr']['img']))+'\x201x'),this['$$']('hi-res-support')&&t['add'](this['re'](this['It'](this['tr']['img'],0x2))+'\x202x'),this['$$']('ultra-res-support')&&t['add'](this['re'](this['It'](this['tr']['img'],0x3))+'\x203x')),[...t]['join']();}['zn'](){return this['re']();}get['Hn'](){return this['re']('100x','100');}['Tu'](){let t=this['Nn'];[...document['querySelectorAll'](t)]['forEach'](_0x294541=>{this['$$']('intersection')?this['initIntersection'](_0x294541,()=>{this['_n'](_0x294541);}):this['_n'](_0x294541);});}['Eu']({elNode:t,src:_0x4ef25d,srcset:_0x420c1b}){_0x4ef25d&&(t['src']=_0x4ef25d),_0x420c1b&&(t['srcset']=_0x420c1b);}['Eo']({elNode:t}){this['wu'](t),this['initAttributes'](t);}['xo']({src:t,srcset:_0x4d7c37,elNode:_0x10db7f}){return new Promise((_0x5b70fa,_0x3ddb3c)=>{this['Eo']({'elNode':_0x10db7f}),_0x10db7f['setAttribute'](m7,''),_0x10db7f['addEventListener']('load',()=>{_0x10db7f['removeAttribute'](m7),_0x5b70fa(_0x10db7f);}),_0x10db7f['addEventListener']('error',()=>{_0x3ddb3c(!0x1);}),this['Eu']({'elNode':_0x10db7f,'src':t,'srcset':_0x4d7c37});});}async['xu'](){if(this['$$']('intersection'))return this['we']&&(this['Eo']({'elNode':this['pe']}),this['appendChild'](this['pe'])),void this['initIntersection'](this['tr']['img'],async()=>{this['we']&&(this['pe']['src']=this['Hn']);try{await this['xo']({'src':this['zn'](),'srcset':this['Bn'](),'elNode':this['be']}),this['we']&&await this['pe']['remove'](),this['appendChild'](this['be']);}catch{this['we']&&await this['pe']?.['remove'](),this['appendChild'](this['be']);}});try{this['we']&&(await this['xo']({'src':this['Hn'],'elNode':this['pe']}),this['appendChild'](this['pe'])),await this['xo']({'src':this['zn'](),'srcset':this['Bn'](),'elNode':this['be']}),this['we']&&await this['pe']?.['remove'](),this['appendChild'](this['be']);}catch{this['we']&&await this['pe']?.['remove'](),this['appendChild'](this['be']);}}init(){this['Nn']?this['Tu']():this['xu']();}},y7=class extends b7{connectedCallback(){super['connectedCallback'](),this['sub$$']('src',()=>{this['init']();}),this['sub$$']('uuid',()=>{this['init']();}),this['sub$$']('lazy',_0x2123d3=>{!this['$$']('is-background-for')&&!this['$$']('is-preview-blur')&&(this['img']['loading']=_0x2123d3?'lazy':'eager');});}},{I:v7}=P2,_7=_0x16265d=>_0x16265d,E7=()=>document['createComment'](''),T7=(_0x202e7a,_0x3830ef,t)=>{let _0x64099a=_0x202e7a['ve']['parentNode'],_0x1bce96=void 0x0===_0x3830ef?_0x202e7a['yt']:_0x3830ef['ve'];if(void 0x0===t)t=new v7(_0x64099a['insertBefore'](E7(),_0x1bce96),_0x64099a['insertBefore'](E7(),_0x1bce96),_0x202e7a,_0x202e7a['options']);else{let _0x43c1c5=t['yt']['nextSibling'],_0x4d737e=t['f'],_0x426489=_0x4d737e!==_0x202e7a;if(_0x426489){let _0x244881;t['Cu']?.(_0x202e7a),t['f']=_0x202e7a,void 0x0!==t['Ui']&&(_0x244881=_0x202e7a['W'])!==_0x4d737e['W']&&t['Ui'](_0x244881);}if(_0x43c1c5!==_0x1bce96||_0x426489){let _0x55dd75=t['ve'];for(;_0x55dd75!==_0x43c1c5;){let _0x80ff3=_7(_0x55dd75)['nextSibling'];_7(_0x64099a)['insertBefore'](_0x55dd75,_0x1bce96),_0x55dd75=_0x80ff3;}}}return t;},A7=(_0x40d57c,_0x32c4cc,t=_0x40d57c)=>(_0x40d57c['ce'](_0x32c4cc,t),_0x40d57c),S7={},I7=_0x26ed6d=>{_0x26ed6d['bt'](),_0x26ed6d['ve']['remove']();},k7=(_0x3e0c63,_0x5b36bd)=>{let t=_0x3e0c63['le'];if(void 0x0===t)return!0x1;for(let _0x37939c of t)_0x37939c['qs']?.(_0x5b36bd,!0x1),k7(_0x37939c,_0x5b36bd);return!0x0;},x7=_0x5a8eed=>{let _0x36b0fc,t;do{if(void 0x0===(_0x36b0fc=_0x5a8eed['f']))break;t=_0x36b0fc['le'],t['delete'](_0x5a8eed),_0x5a8eed=_0x36b0fc;}while(0x0===t?.['size']);},C7=_0x449bc7=>{for(let _0x35a5e6;_0x35a5e6=_0x449bc7['f'];_0x449bc7=_0x35a5e6){let t=_0x35a5e6['le'];if(void 0x0===t)_0x35a5e6['le']=t=new Set();else{if(t['has'](_0x449bc7))break;}t['add'](_0x449bc7),N7(_0x35a5e6);}};function R7(_0x3c73d3){void 0x0!==this['le']?(x7(this),this['f']=_0x3c73d3,C7(this)):this['f']=_0x3c73d3;}function P7(_0xa31952,_0x3e64aa=!0x1,t=0x0){let _0x15428c=this['r'],_0x2001a6=this['le'];if(void 0x0!==_0x2001a6&&0x0!==_0x2001a6['size']){if(_0x3e64aa){if(Array['isArray'](_0x15428c)){for(let _0xbb4921=t;_0xbb4921<_0x15428c['length'];_0xbb4921++)k7(_0x15428c[_0xbb4921],!0x1),x7(_0x15428c[_0xbb4921]);}else null!=_0x15428c&&(k7(_0x15428c,!0x1),x7(_0x15428c));}else k7(this,_0xa31952);}}var N7=_0x583b5c=>{_0x583b5c['type']==i6&&(_0x583b5c['Ui']??=P7,_0x583b5c['Cu']??=R7);},M7=class extends n6{constructor(){super(...arguments),this['le']=void 0x0;}['Wr'](_0x4b269a,t,_0x2de84e){super['Wr'](_0x4b269a,t,_0x2de84e),C7(this),this['isConnected']=_0x4b269a['W'];}['qs'](_0x438c53,t=!0x0){_0x438c53!==this['isConnected']&&(this['isConnected']=_0x438c53,_0x438c53?this['reconnected']?.():this['disconnected']?.()),t&&(k7(this,_0x438c53),x7(this));}setValue(_0x4d859e){if((_0x5b1fc8=>void 0x0===_0x5b1fc8['strings'])(this['Wi']))this['Wi']['ce'](_0x4d859e,this);else{let t=[...this['Wi']['r']];t[this['iu']]=_0x4d859e,this['Wi']['ce'](t,this,0x0);}}disconnected(){}reconnected(){}},L7=()=>new $7(),$7=class{},D7=new WeakMap(),Q7=s6(class extends M7{['render'](_0x5e905b){return b2;}update(_0x270054,[_0x45d1aa]){let t=_0x45d1aa!==this['G'];return t&&void 0x0!==this['G']&&this['rt'](void 0x0),(t||this['lt']!==this['ct'])&&(this['G']=_0x45d1aa,this['ht']=_0x270054['options']?.['host'],this['rt'](this['ct']=_0x270054['element'])),b2;}rt(_0x4eef74){if(this['isConnected']||(_0x4eef74=void 0x0),'function'==typeof this['G']){let _0x36b535=this['ht']??globalThis,t=D7['get'](_0x36b535);void 0x0===t&&(t=new WeakMap(),D7['set'](_0x36b535,t)),void 0x0!==t['get'](this['G'])&&this['G']['call'](this['ht'],void 0x0),t['set'](this['G'],_0x4eef74),void 0x0!==_0x4eef74&&this['G']['call'](this['ht'],_0x4eef74);}else this['G']['value']=_0x4eef74;}get lt(){return'function'==typeof this['G']?D7['get'](this['ht']??globalThis)?.['get'](this['G']):this['G']?.['value'];}disconnected(){this['lt']===this['ct']&&this['rt'](void 0x0);}reconnected(){this['rt'](this['ct']);}}),j7=null,U7=class extends t6{constructor(){super(...arguments),this['dialogEl']=L7(),this['strokes']=!0x1,this['blockBodyScrolling']=!0x1,this['closeDialog']=()=>{this['modalManager']?.['close'](this['id']),this['modalManager']?.['hasActiveModals']||(document['body']['style']['overflow']='',this['$']['*currentActivity']=null);},this['Su']=()=>{this['closeDialog']();},this['Au']=t=>{this['Co']=t['target'];},this['ku']=t=>{let _0x1afb34=t['target'];_0x1afb34===this['dialogEl']['value']&&_0x1afb34===this['Co']&&this['closeDialog']();},this['si']=({id:t})=>{t===this['id']?(j7=t,this['show'](),this['emit'](U4['MODAL_OPEN'],{'modalId':t},{'debounce':!0x0})):this['hide']();},this['ni']=({id:t})=>{t===this['id']&&(this['hide'](),this['emit'](U4['MODAL_CLOSE'],{'modalId':t,'hasActiveModals':this['modalManager']?.['hasActiveModals']},{'debounce':!0x0}));},this['Kn']=t=>{this['hide'](),j7===this['id']&&this['emit'](U4['MODAL_CLOSE'],{'modalId':j7,'hasActiveModals':this['modalManager']?.['hasActiveModals']},{'debounce':!0x0});};}static{this['styleAttrs']=[...super['styleAttrs'],'uc-modal'];}async['show'](){await this['updateComplete'];let t=this['dialogEl']['value'];'function'==typeof t['showModal']?(this['setAttribute']('aria-modal','true'),t['showModal']()):t['setAttribute']('open',''),this['cfg']['modalScrollLock']&&(document['body']['style']['overflow']='hidden');}['hide'](){let t=this['dialogEl']['value'];t&&('function'==typeof t['close']?(this['setAttribute']('aria-modal','false'),t['close']()):t['removeAttribute']('open'));}initCallback(){super['initCallback'](),this['modalManager']?.['registerModal'](this['id'],this),this['subConfigValue']('modalBackdropStrokes',t=>{t?this['setAttribute']('strokes',''):this['removeAttribute']('strokes');}),this['modalManager']?.['subscribe'](W5['OPEN'],this['si']),this['modalManager']?.['subscribe'](W5['CLOSE'],this['ni']),this['modalManager']?.['subscribe'](W5['CLOSE_ALL'],this['Kn']);}disconnectedCallback(){super['disconnectedCallback'](),document['body']['style']['overflow']='',this['Co']=void 0x0,this['modalManager']?.['unsubscribe'](W5['OPEN'],this['si']),this['modalManager']?.['unsubscribe'](W5['CLOSE'],this['ni']),this['modalManager']?.['unsubscribe'](W5['CLOSE_ALL'],this['Kn']);}['Mu'](t){this['dialogEl']={'value':t},this['dialogEl']['value']?.['addEventListener']('close',this['Su']),this['dialogEl']['value']?.['addEventListener']('mousedown',this['Au']),this['dialogEl']['value']?.['addEventListener']('mouseup',this['ku']);}['render'](){return O2`<dialog ${Q7(this['Mu'])}>${this['yield']('')}</dialog>`;}};_1([q2({'type':Boolean,'noAccessor':!0x0})],U7['prototype'],'strokes',0x2),_1([q2({'type':Boolean,'attribute':'block-body-scrolling','noAccessor':!0x0})],U7['prototype'],'blockBodyScrolling',0x2);var V7=class extends u7{constructor(){super(...arguments),this['z']=null,this['ir']=null;}get['jn'](){return this['nameAttrValue']??this['ctxName'];}['Gn'](){let t=document['createElement']('input');return t['type']='text',t['name']=this['jn'],t['required']=this['cfg']['multipleMin']>0x0,t['tabIndex']=-0x1,N6(t,{'opacity':0x0,'height':0x0,'width':0x0}),t;}initCallback(){super['initCallback'](),this['z']=this['Gn'](),this['appendChild'](this['z']),this['sub']('*collectionState',t=>{if(!t)return;if(!this['ir']){let _0x146088=document['createElement']('div');this['appendChild'](_0x146088),this['ir']=_0x146088;}if(!this['z']){let _0x504af3=this['Gn']();this['appendChild'](_0x504af3),this['z']=_0x504af3;}if(this['ir']['innerHTML']='','uploading'===t['status']||'idle'===t['status'])return this['z']['value']='',void this['z']['setCustomValidity']('');if('failed'===t['status']){let _0x13aedd=t['errors'][0x0]?.['message'];return this['z']['value']='',void this['z']['setCustomValidity'](_0x13aedd??'');}let _0x37673b=t['group']?t['group']:null;if(_0x37673b)return this['z']['value']=_0x37673b['cdnUrl']??'',void this['z']['setCustomValidity']('');let _0x29cbb3=t['allEntries']['map'](_0x56bafc=>_0x56bafc['cdnUrl'])['filter'](_0x3fb727=>'string'==typeof _0x3fb727);if(!this['cfg']['multiple']&&0x1===_0x29cbb3['length']&&_0x29cbb3[0x0])return this['z']['value']=_0x29cbb3[0x0],void this['z']['setCustomValidity']('');this['z']['remove'](),this['z']=null;let _0x46767d=new DocumentFragment();for(let _0x53f0de of _0x29cbb3){let _0xf27212=document['createElement']('input');_0xf27212['type']='hidden',_0xf27212['name']=this['jn']+'[]',_0xf27212['value']=_0x53f0de,_0x46767d['appendChild'](_0xf27212);}this['ir']['replaceChildren'](_0x46767d);},!0x1);}};_1([q2({'type':String,'noAccessor':!0x0,'attribute':'name'})],V7['prototype'],'nameAttrValue',0x2);var B7=class extends t6{initCallback(){super['initCallback'](),this['subConfigValue']('removeCopyright',_0x5b3a28=>{this['toggleAttribute']('hidden',!!_0x5b3a28);});}['render'](){return O2`<a href="https://uploadcare.com/?utm_source=copyright&amp;utm_medium=referral&amp;utm_campaign=v4" target="_blank noopener" class="uc-credits" >Powered by Uploadcare</a >`;}},H7=class extends t6{constructor(){super(...arguments),this['hasFileName']=!0x1,this['value']=0x0,this['visible']=!0x0,this['oe']=0x0,this['rr']=L7(),this['qn']=()=>{let t=this['rr']['value'];if(t){if(!this['visible'])return void t['classList']['add']('uc-fake-progress--hidden');this['oe']>0x0&&t['classList']['add']('uc-fake-progress--hidden');}};}firstUpdated(t){super['firstUpdated'](t),this['oe']=this['So'](this['value']),this['Ao'](),this['rr']['value']?.['addEventListener']('animationiteration',this['qn']);}updated(t){if(super['updated'](t),t['has']('value')){let _0x21cc1b=this['So'](this['value']);if(this['visible']){let _0x3a31d5=Math['max'](this['oe'],_0x21cc1b);_0x3a31d5!==this['oe']&&(this['oe']=_0x3a31d5,this['Ao']());}else this['oe']=_0x21cc1b;}t['has']('visible')&&(this['classList']['toggle']('uc-progress-bar--hidden',!this['visible']),this['visible']?this['Ao']():this['oe']=this['So'](this['value']));}disconnectedCallback(){super['disconnectedCallback'](),this['rr']['value']?.['removeEventListener']('animationiteration',this['qn']);}['So'](t){return Number['isFinite'](t)?Math['min'](0x64,Math['max'](0x0,t)):0x0;}['Ao'](){this['visible']&&this['style']['setProperty']('--l-progress-value',this['oe']['toString']());}['render'](){return O2`<div ${Q7(this['rr'])} class="uc-fake-progress"></div><div class="uc-progress"></div>`;}};_1([q2({'type':Boolean,'noAccessor':!0x0})],H7['prototype'],'hasFileName',0x2),_1([q2({'type':Number})],H7['prototype'],'value',0x2),_1([q2({'type':Boolean,'reflect':!0x0})],H7['prototype'],'visible',0x2);var F7=class extends u7{constructor(){super(),this['he']=!0x1,this['Pt']=0x0,this['init$']={...this['init$'],'*commonProgress':0x0};}initCallback(){super['initCallback'](),this['ko']=this['uploadCollection']['observeProperties'](()=>{let t=this['uploadCollection']['items']()['some'](_0x3204c3=>this['uploadCollection']['read'](_0x3204c3)?.['getValue']('isUploading')??!0x1);this['he']=t;}),this['sub']('*commonProgress',t=>{this['Pt']=t;});}updated(t){super['updated'](t),t['has']('visible')&&(this['he']?this['setAttribute']('active',''):this['removeAttribute']('active'));}disconnectedCallback(){super['disconnectedCallback'](),this['ko']?.(),this['ko']=void 0x0;}['render'](){return O2`<uc-progress-bar .value=${this['Pt']} .visible=${this['he']}></uc-progress-bar>`;}};_1([W2()],F7['prototype'],'he',0x2),_1([W2()],F7['prototype'],'Pt',0x2);var Z7=class extends t6{constructor(){super(...arguments),this['value']='',this['disabled']=!0x1,this['options']=[],this['Ou']=t=>{if(this['disabled'])return t['preventDefault'](),void t['stopPropagation']();t['preventDefault'](),t['stopPropagation']();let _0x4bf196=t['currentTarget'];_0x4bf196&&(this['value']=_0x4bf196['value'],this['dispatchEvent'](new Event('change')));};}['render'](){return O2`<select @change=${this['Ou']} .value=${this['value']} ?disabled=${this['disabled']}>${this['options']['map'](t=>O2`<option value=${t['value']}>${t['text']}</option>`)}</select>`;}};_1([q2({'type':String,'attribute':!0x1})],Z7['prototype'],'value',0x2),_1([q2({'type':Boolean,'reflect':!0x0})],Z7['prototype'],'disabled',0x2),_1([q2({'type':Array,'attribute':!0x1})],Z7['prototype'],'options',0x2);var G7=class extends u7{constructor(){super(...arguments),this['couldBeCtxOwner']=!0x0,this['Mo']='default',this['Oo']='';}willUpdate(t){super['willUpdate'](t),t['has']('source')&&this['Iu'](this['source']);}['Iu'](t){if(!t)return this['Oo']='',void(this['Mo']='default');let {label:_0x47cb40,icon:_0x43ea83,id:_0x24f509}=t;this['Oo']=_0x47cb40,this['Mo']=_0x43ea83??_0x24f509??'default';}activate(){this['source']&&this['source']['onClick']();}['render'](){return O2`<button type="button" @click=${this['activate']}><uc-icon name=${this['Mo']}></uc-icon><div class="uc-txt">${this['l10n'](this['Oo'])}</div></button>`;}};_1([q2({'attribute':!0x1})],G7['prototype'],'source',0x2),_1([W2()],G7['prototype'],'Mo',0x2),_1([W2()],G7['prototype'],'Oo',0x2);var X7=class extends u7{constructor(){super(...arguments),this['Wn']=[],this['Me']=[],this['wrap']=!0x1;}initCallback(){super['initCallback'](),this['subConfigValue']('sourceList',_0x44c743=>{this['Wn']=A5(_0x44c743),this['Zn']();});let t=this['i']['pluginManager'];t?.['onPluginsChange']&&(this['E']=t['onPluginsChange'](()=>this['Zn']()));}updated(t){super['updated'](t),this['cfg']['sourceListWrap']?this['style']['removeProperty']('display'):this['style']['display']='contents';}['Zn'](){let _0x4f586d=this['i']['pluginManager']?.['snapshot']()['sources']??[],_0x37e24b=new Map(_0x4f586d['map'](_0xa6c2a4=>[_0xa6c2a4['id'],_0xa6c2a4])),_0x70429f=[];this['Wn']['forEach'](_0x19acb6=>{let _0x4eaa27=this['Pu'](_0x19acb6,_0x37e24b);if(0x1!==_0x4eaa27['length']||_0x4eaa27[0x0]!==_0x19acb6){for(let _0x1b75ae of _0x4eaa27){let _0x8bfed6=_0x37e24b['get'](_0x1b75ae);_0x8bfed6&&_0x70429f['push'](this['Yn'](_0x8bfed6));}return;}let _0x5c528b=_0x37e24b['get'](_0x19acb6);_0x5c528b&&_0x70429f['push'](this['Yn'](_0x5c528b));}),this['Me']=_0x70429f;}['Pu'](t,_0x4e9158){let _0x5ba507=_0x4e9158['get'](t);return _0x5ba507?.['expand']?_0x5ba507['expand']():[t];}['Yn'](t){return{'id':t['id'],'label':t['label'],'icon':t['icon'],'onClick':()=>t['onSelect']()};}['render'](){return O2`${this['Me']['map'](t=>O2`<uc-source-btn role="listitem" .source=${t} data-source-id=${t['id']}></uc-source-btn>`)}`;}disconnectedCallback(){this['E']?.(),this['E']=void 0x0,super['disconnectedCallback']();}};_1([W2()],X7['prototype'],'Me',0x2),_1([q2({'type':Boolean,'attribute':'wrap','noAccessor':!0x0})],X7['prototype'],'wrap',0x2);var q7=class extends t6{['render'](){return O2`<div class="uc-spinner"></div>`;}},W7='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=';function z7(_0x3bbb46){let _0x4abd3a=new Image();return{'promise':new Promise((_0x380fad,_0x27f76b)=>{_0x4abd3a['src']=_0x3bbb46,_0x4abd3a['onload']=()=>_0x380fad(),_0x4abd3a['onerror']=_0x10f57f=>_0x27f76b(_0x10f57f);}),'image':_0x4abd3a,'cancel':()=>{0x0===_0x4abd3a['naturalWidth']&&(_0x4abd3a['src']=W7);}};}function Y7(_0x57a254){let _0x5bdf93=[];for(let _0x298d72 of _0x57a254){let _0xcb5ba2=z7(_0x298d72);_0x5bdf93['push'](_0xcb5ba2);}let t=_0x5bdf93['map'](_0x390338=>_0x390338['image']);return{'promise':Promise['allSettled'](_0x5bdf93['map'](_0x12d0ae=>_0x12d0ae['promise'])),'images':t,'cancel':()=>{_0x5bdf93['forEach'](_0x278241=>{_0x278241['cancel']();});}};}function K7(_0x5a47d7,_0x3dc808=0x28){if('image/svg+xml'===_0x5a47d7['type'])return URL['createObjectURL'](_0x5a47d7);let t=document['createElement']('canvas'),_0x2cb720=t['getContext']('2d');if(!_0x2cb720)return Promise['reject'](new Error('Canvas\x20context\x20not\x20supported'));let _0x2772ca=new Image(),_0x2bb797=new Promise((_0x30d412,_0xcd27a9)=>{_0x2772ca['onload']=()=>{let _0x20cc90=_0x2772ca['height']/_0x2772ca['width'];_0x20cc90>0x1?(t['width']=_0x3dc808,t['height']=_0x3dc808*_0x20cc90):(t['height']=_0x3dc808,t['width']=_0x3dc808/_0x20cc90),_0x2cb720['fillStyle']='rgb(240,\x20240,\x20240)',_0x2cb720['fillRect'](0x0,0x0,t['width'],t['height']),_0x2cb720['drawImage'](_0x2772ca,0x0,0x0,t['width'],t['height']),t['toBlob'](_0x29fb7d=>{_0x29fb7d?_0x30d412(URL['createObjectURL'](_0x29fb7d)):_0xcd27a9();});},_0x2772ca['onerror']=_0x4d8f97=>{_0xcd27a9(_0x4d8f97);};});return _0x2772ca['src']=URL['createObjectURL'](_0x5a47d7),_0x2bb797;}var J7=class extends u7{constructor(){super(...arguments),this['or']=new Set(),this['entry']=null;}withEntry(t){return(..._0x36fcc5)=>{let _0x1f951f=this['entry'];if(_0x1f951f)return t(_0x1f951f,..._0x36fcc5);console['warn']('No\x20entry\x20found');};}subEntry(t,_0x2e7871){this['withEntry']((_0xdf9904,_0x591525,_0x4f629b)=>{let _0xfb83e9=_0xdf9904['subscribe'](_0x591525,_0x29f618=>{this['isConnected']&&_0x4f629b(_0x29f618);});this['or']['add'](_0xfb83e9);})(t,_0x2e7871);}reset(){for(let t of this['or'])t();this['or']=new Set(),this['entry']=null;}disconnectedCallback(){super['disconnectedCallback'](),this['or']=new Set();}};function t8(_0x7f5f9='hsl(209,\x2021%,\x2065%)',_0x172a6c=0x20,t=0x20){return function(_0x254d12){let _0xbf0eca=new Blob([_0x254d12],{'type':'image/svg+xml'});return URL['createObjectURL'](_0xbf0eca);}('<svg\x20width=\x22'+_0x172a6c+'\x22\x20height=\x22'+t+'\x22\x20viewBox=\x220\x200\x2030\x2030\x22\x20fill=\x22none\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20fill-rule=\x22evenodd\x22\x20fill=\x22'+_0x7f5f9+'\x22\x20d=\x22M9.68848\x208.70068C9.68848\x208.42454\x209.91233\x208.20068\x2010.1885\x208.20068H15.0885C15.2211\x208.20068\x2015.3483\x208.25336\x2015.442\x208.34713L20.342\x2013.2471C20.4358\x2013.3409\x2020.4885\x2013.4681\x2020.4885\x2013.6007V21.3007C20.4885\x2021.5768\x2020.2646\x2021.8007\x2019.9885\x2021.8007H10.1885C9.91233\x2021.8007\x209.68848\x2021.5768\x209.68848\x2021.3007V8.70068ZM10.6885\x209.20068V20.8007H19.4885V14.1007L15.0885\x2014.1007C14.8123\x2014.1007\x2014.5885\x2013.8768\x2014.5885\x2013.6007L14.5885\x209.20068H10.6885ZM15.5885\x209.90779L18.7814\x2013.1007L15.5885\x2013.1007L15.5885\x209.90779Z\x22/></svg>');}var e8=class extends J7{constructor(){super(...arguments),this['badgeIcon']='',this['uid']='',this['Le']='',this['Xn']=!0x1,this['sr']=null,this['Qn']=!0x1,this['Lu']=this['cfg']['filesViewMode'],this['Jn']=this['withEntry'](async(t,_0x51a671=!0x1)=>{let _0x5c6554=t['getValue']('fileInfo'),_0x583765=t['getValue']('isImage'),_0x346322=t['getValue']('uuid'),_0x1bcc4d=t['getValue']('thumbUrl'),_0x322e1d=this['Ru'](_0x51a671);if(_0x5c6554&&_0x583765&&_0x346322){let _0x58ac68=await this['proxyUrl'](E5(T5(this['cfg']['cdnCname'],_0x346322),p5(t['getValue']('cdnUrlModifiers'),'stretch/off','scale_crop/'+_0x322e1d+'x'+_0x322e1d+'/center')));if(_0x1bcc4d===_0x58ac68)return;let {promise:_0x2f2003}=z7(_0x58ac68);return void _0x2f2003['then'](()=>{t['setValue']('thumbUrl',_0x58ac68),_0x1bcc4d?.['startsWith']('blob:')&&URL['revokeObjectURL'](_0x1bcc4d);})['catch'](async()=>{if(!_0x1bcc4d?.['startsWith']('blob:'))try{let _0x1dfe85=t['getValue']('file');if(!_0x1dfe85)return;let _0x5cef70=await K7(_0x1dfe85,_0x322e1d);t['setValue']('thumbUrl',_0x5cef70);}catch(_0x375da3){this['telemetryManager']['sendEventError'](_0x375da3,'thumbnail\x20generation.\x20Failed\x20to\x20generate\x20thumb\x20from\x20file');let _0x201da7=window['getComputedStyle'](this)['getPropertyValue']('--uc-muted-foreground');t['setValue']('thumbUrl',t8(_0x201da7));}});}if(t['getValue']('thumbUrl'))return;let _0x2bcd16=t['getValue']('file');if(_0x2bcd16?.['type']['includes']('image'))try{let _0x348b16=await K7(_0x2bcd16,_0x322e1d);t['setValue']('thumbUrl',_0x348b16);}catch(_0x101273){this['telemetryManager']['sendEventError'](_0x101273,'thumbnail\x20generation.\x20Failed\x20to\x20generate\x20thumb\x20from\x20file');let _0x3dfb2f=window['getComputedStyle'](this)['getPropertyValue']('--uc-muted-foreground');t['setValue']('thumbUrl',t8(_0x3dfb2f));}else{let _0x4740c3=window['getComputedStyle'](this)['getPropertyValue']('--uc-muted-foreground');t['setValue']('thumbUrl',t8(_0x4740c3));}}),this['nr']=z2(this['Jn']['bind'](this),0x64);}['Ru'](t=!0x1){t&&(this['sr']=this['getBoundingClientRect']());let _0x1875f2=Math['max'](parseInt(String(this?.['sr']?.['height']||0x0),0xa),parseInt(String(this?.['sr']?.['width']||0x0),0xa),this['cfg']['thumbSize']);return window['devicePixelRatio']>0x1&&(_0x1875f2*=window['devicePixelRatio']),Math['min'](_0x1875f2,0xbb8);}['Uu'](t,_0x1eeaf7){return new Promise((_0x3d0f24,_0x43e000)=>{let _0x209249=new Image();_0x209249['decoding']='async';let _0x3078e7=()=>{_0x209249&&(_0x209249['onload']=null,_0x209249['onerror']=null,_0x209249['src']=W7,_0x1eeaf7?.['removeEventListener']('abort',_0x5683d3),_0x209249=null);},_0x5683d3=()=>{_0x3078e7(),_0x43e000(new DOMException('Aborted','AbortError'));};if(_0x1eeaf7){if(_0x1eeaf7['aborted'])return void _0x5683d3();_0x1eeaf7['addEventListener']('abort',_0x5683d3,{'once':!0x0});}let _0x5db5e8=()=>{_0x3078e7(),_0x3d0f24();},_0x17b93e=_0x514576=>{_0x3078e7(),_0x43e000(_0x514576);};if('function'==typeof _0x209249['decode'])return _0x209249['src']=t,void _0x209249['decode']()['then'](_0x5db5e8)['catch'](_0x17b93e);_0x209249['onload']=_0x5db5e8,_0x209249['onerror']=_0x17b93e,_0x209249['src']=t;});}['Po'](){this['Io']?.['cancel'](),this['Io']=void 0x0;}['$u'](t){if(this['Po'](),!t)return void(this['Le']&&(this['Le']=''));if(t===this['Le'])return;let _0x4043be=new AbortController(),_0xad5ba1={'controller':_0x4043be,'cancel':()=>{_0x4043be['abort'](),void 0x0!==_0xad5ba1['rafId']&&window['cancelAnimationFrame'](_0xad5ba1['rafId']);}};this['Io']=_0xad5ba1,this['Uu'](t,_0x4043be['signal'])['then'](()=>{_0x4043be['signal']['aborted']||(_0xad5ba1['rafId']=window['requestAnimationFrame'](()=>{_0x4043be['signal']['aborted']||(this['Le']=t);}));})['catch'](_0x2794bf=>{_0x4043be['signal']['aborted']||_0x2794bf instanceof DOMException&&'AbortError'===_0x2794bf['name']||console['warn']('[Thumb]\x20Failed\x20to\x20decode\x20thumbnail\x20image',_0x2794bf);});}['ar'](t=!0x1){if(this['entry']){if(t)return void this['Jn'](!0x0);this['Qn']&&this['nr']();}}firstUpdated(t){super['firstUpdated'](t),this['ea']();}updated(t){super['updated'](t),t['has']('uid')&&this['ea']();}['ai'](t){let [_0x21bd01]=t;_0x21bd01&&(this['Qn']=_0x21bd01['isIntersecting'],_0x21bd01['isIntersecting']&&(this['sr']=_0x21bd01['boundingClientRect'],this['ar'](),this['s']?.['disconnect']()),0x0===_0x21bd01['intersectionRatio']&&this['nr']['cancel']());}reset(){super['reset'](),this['nr']['cancel'](),this['Po'](),this['Le']&&(this['Le']='');}['ea'](){let t=this['uid']?.['trim']();if(!t)return void(this['entry']&&this['reset']());let _0x83229a=this['uploadCollection']?.['read'](t);if(!_0x83229a||_0x83229a===this['entry'])return;this['reset'](),this['entry']=_0x83229a;let _0x53530c=()=>{this['ar']();};this['subEntry']('fileInfo',_0x563978=>{_0x563978?.['isImage']&&_0x53530c();}),this['subEntry']('thumbUrl',_0x14bfd3=>{this['$u'](_0x14bfd3??void 0x0);}),this['subEntry']('cdnUrlModifiers',_0x53530c),this['ar'](!0x0);}initCallback(){super['initCallback'](),this['subConfigValue']('filesViewMode',t=>{'grid'===t&&!this['Xn']&&('list'===this['Lu']&&this['ar'](!0x0),this['Xn']=!0x0);});}connectedCallback(){super['connectedCallback'](),this['s']?.['disconnect'](),this['s']=new window['IntersectionObserver'](this['ai']['bind'](this),{'threshold':0.1}),this['s']['observe'](this);}disconnectedCallback(){super['disconnectedCallback'](),this['nr']['cancel'](),this['Po'](),this['s']?.['disconnect']();}['render'](){return O2`<div class="uc-thumb"><img class="uc-thumb__img" src=${this['Le']||W7} role="img" alt="Preview of uploaded image" ?hidden=${!this['Le']} draggable="false" /><div class="uc-badge"><uc-icon name=${this['badgeIcon']}></uc-icon></div></div>`;}};_1([q2({'type':String})],e8['prototype'],'badgeIcon',0x2),_1([q2({'attribute':!0x1})],e8['prototype'],'uid',0x2),_1([W2()],e8['prototype'],'Le',0x2);var i8=class extends h7{},s8=class extends h7{constructor(){super(...arguments),this['historyTracked']=!0x0,this['activityType']=h7['activities']['START_FROM'];}initCallback(){super['initCallback'](),this['registerActivity'](this['activityType']??'');}['render'](){return O2`<div class="uc-content">${this['yield']('')}</div>`;}},n8=class extends u7{constructor(){super(...arguments),this['ta']=null;}static{this['styleAttrs']=['uc-wgt-common'];}static{this['EventType']=U4;}initCallback(){super['initCallback'](),this['ta']=this['eventEmitter']['bindTarget'](this);}disconnectedCallback(){super['disconnectedCallback'](),this['ta']?.();}},r8=(_0x34e599,_0x129d07)=>{let _0x28d7fb,t=!0x1,_0x2629b6=0x0,_0x4cc2ee=(..._0x17b932)=>{t?(_0x28d7fb&&clearTimeout(_0x28d7fb),_0x28d7fb=setTimeout(()=>{Date['now']()-_0x2629b6>=_0x129d07&&(_0x34e599(..._0x17b932),_0x2629b6=Date['now']());},Math['max'](_0x129d07-(Date['now']()-_0x2629b6),0x0))):(_0x34e599(..._0x17b932),_0x2629b6=Date['now'](),t=!0x0);};return Object['defineProperty'](_0x4cc2ee,'cancel',{'configurable':!0x1,'writable':!0x1,'enumerable':!0x1,'value':()=>{_0x28d7fb&&clearTimeout(_0x28d7fb);}}),_0x4cc2ee;},o8=(_0x2cd977,_0x25daa8,t)=>{let _0xe747b2=new Map();for(let _0x1fedfd=_0x25daa8;_0x1fedfd<=t;_0x1fedfd++)_0xe747b2['set'](_0x2cd977[_0x1fedfd],_0x1fedfd);return _0xe747b2;},a8=s6(class extends n6{constructor(_0x36de44){if(super(_0x36de44),_0x36de44['type']!==i6)throw Error('repeat()\x20can\x20only\x20be\x20used\x20in\x20text\x20expressions');}dt(_0xc1312d,_0x3074bc,t){let _0x3598cd;void 0x0===t?t=_0x3074bc:void 0x0!==_0x3074bc&&(_0x3598cd=_0x3074bc);let _0x1b27ac=[],_0x5b6ed8=[],_0x2652e0=0x0;for(let _0x1027c1 of _0xc1312d)_0x1b27ac[_0x2652e0]=_0x3598cd?_0x3598cd(_0x1027c1,_0x2652e0):_0x2652e0,_0x5b6ed8[_0x2652e0]=t(_0x1027c1,_0x2652e0),_0x2652e0++;return{'values':_0x5b6ed8,'keys':_0x1b27ac};}['render'](_0x1c77bb,_0x521e98,t){return this['dt'](_0x1c77bb,_0x521e98,t)['values'];}update(_0x172b1a,[_0x5d314a,t,_0x3389e2]){let _0x51dd54=(_0x26be7e=>_0x26be7e['r'])(_0x172b1a),{values:_0x45e9c4,keys:_0xeb020d}=this['dt'](_0x5d314a,t,_0x3389e2);if(!Array['isArray'](_0x51dd54))return this['ut']=_0xeb020d,_0x45e9c4;let _0x8dfa57,_0x4797ed,_0x6a46b6=this['ut']??=[],_0x5c3c03=[],_0x877806=0x0,_0x16cfcb=_0x51dd54['length']-0x1,_0x1087b2=0x0,_0x235478=_0x45e9c4['length']-0x1;for(;_0x877806<=_0x16cfcb&&_0x1087b2<=_0x235478;)if(null===_0x51dd54[_0x877806])_0x877806++;else{if(null===_0x51dd54[_0x16cfcb])_0x16cfcb--;else{if(_0x6a46b6[_0x877806]===_0xeb020d[_0x1087b2])_0x5c3c03[_0x1087b2]=A7(_0x51dd54[_0x877806],_0x45e9c4[_0x1087b2]),_0x877806++,_0x1087b2++;else{if(_0x6a46b6[_0x16cfcb]===_0xeb020d[_0x235478])_0x5c3c03[_0x235478]=A7(_0x51dd54[_0x16cfcb],_0x45e9c4[_0x235478]),_0x16cfcb--,_0x235478--;else{if(_0x6a46b6[_0x877806]===_0xeb020d[_0x235478])_0x5c3c03[_0x235478]=A7(_0x51dd54[_0x877806],_0x45e9c4[_0x235478]),T7(_0x172b1a,_0x5c3c03[_0x235478+0x1],_0x51dd54[_0x877806]),_0x877806++,_0x235478--;else{if(_0x6a46b6[_0x16cfcb]===_0xeb020d[_0x1087b2])_0x5c3c03[_0x1087b2]=A7(_0x51dd54[_0x16cfcb],_0x45e9c4[_0x1087b2]),T7(_0x172b1a,_0x51dd54[_0x877806],_0x51dd54[_0x16cfcb]),_0x16cfcb--,_0x1087b2++;else{if(void 0x0===_0x8dfa57&&(_0x8dfa57=o8(_0xeb020d,_0x1087b2,_0x235478),_0x4797ed=o8(_0x6a46b6,_0x877806,_0x16cfcb)),_0x8dfa57['has'](_0x6a46b6[_0x877806])){if(_0x8dfa57['has'](_0x6a46b6[_0x16cfcb])){let _0x270d55=_0x4797ed['get'](_0xeb020d[_0x1087b2]),_0x45a673=void 0x0!==_0x270d55?_0x51dd54[_0x270d55]:null;if(null===_0x45a673){let _0x2f58ca=T7(_0x172b1a,_0x51dd54[_0x877806]);A7(_0x2f58ca,_0x45e9c4[_0x1087b2]),_0x5c3c03[_0x1087b2]=_0x2f58ca;}else _0x5c3c03[_0x1087b2]=A7(_0x45a673,_0x45e9c4[_0x1087b2]),T7(_0x172b1a,_0x51dd54[_0x877806],_0x45a673),_0x51dd54[_0x270d55]=null;_0x1087b2++;}else I7(_0x51dd54[_0x16cfcb]),_0x16cfcb--;}else I7(_0x51dd54[_0x877806]),_0x877806++;}}}}}}for(;_0x1087b2<=_0x235478;){let _0x280930=T7(_0x172b1a,_0x5c3c03[_0x235478+0x1]);A7(_0x280930,_0x45e9c4[_0x1087b2]),_0x5c3c03[_0x1087b2++]=_0x280930;}for(;_0x877806<=_0x16cfcb;){let _0x254d1d=_0x51dd54[_0x877806++];null!==_0x254d1d&&I7(_0x254d1d);}return this['ut']=_0xeb020d,((_0x157141,_0x468216=S7)=>{_0x157141['r']=_0x468216;})(_0x172b1a,_0x5c3c03),w2;}}),c8=Object['freeze']({'FINISHED':Symbol('FINISHED'),'FAILED':Symbol('FAILED'),'UPLOADING':Symbol('UPLOADING'),'VALIDATION':Symbol('VALIDATION'),'QUEUED_UPLOADING':Symbol('QUEUED-UPLOADING'),'QUEUED_VALIDATION':Symbol('QUEUED-VALIDATION'),'IDLE':Symbol('IDLE')}),l8=class G extends J7{constructor(){super(...arguments),this['couldBeCtxOwner']=!0x0,this['ia']=!0x0,this['uid']='',this['Lo']='',this['Ro']='',this['Uo']='',this['oe']=0x0,this['ra']=!0x1,this['$o']='',this['oa']=!0x1,this['sa']=!0x1,this['na']=!0x1,this['aa']=!0x1,this['lr']=!0x1,this['la']='',this['cr']=[],this['ca']=!0x1,this['Du']=()=>{this['telemetryManager']['sendEvent']({'payload':{'metadata':{'event':'remove-file','node':this['tagName']}}}),this['uid']&&this['uploadCollection']['hasItem'](this['uid'])&&this['uploadCollection']['remove'](this['uid']);},this['Fu']=()=>{this['ua']();},this['S']=z2(()=>this['da'](),0x64),this['Vu']=this['withEntry'](r8((t,_0x86193c)=>{let _0x2ed30=t['getValue']('errors')?.[0x0]?.['message']??'',_0x11fd7a=t['getValue']('source'),_0x1c5ea5=t['getValue']('externalUrl'),_0x155d73=_0x86193c===c8['FINISHED'],_0x5d05a3=_0x86193c===c8['UPLOADING'],_0xa285ee=_0x86193c===c8['QUEUED_UPLOADING'],_0x2ece64=_0x86193c===c8['QUEUED_VALIDATION'],_0x287883=_0x86193c===c8['VALIDATION'],_0x3d5bf4=t['getValue']('fileName'),_0x3965f4='';_0x2ed30?_0x3965f4='':!_0x155d73&&_0x1c5ea5&&_0x11fd7a&&Object['values'](L6)['includes'](_0x11fd7a)&&(_0x3965f4=this['l10n']('waiting-for',{'source':this['l10n']('src-type-'+j6(_0x11fd7a))})),this['Uo']=_0x3965f4,this['Ro']=_0x2ed30,this['ra']=_0x5d05a3||_0xa285ee||_0x2ece64||_0x287883,this['oe']=_0x2ece64||_0x287883?0x0:t['getValue']('uploadProgress'),this['la']=_0x3d5bf4?this['l10n']('a11y-file-item-status',{'fileName':_0x3d5bf4,'status':this['l10n'](_0x86193c?.['description']?.['toLocaleLowerCase']()??'')['toLocaleLowerCase']()}):'';},0x64)),this['ua']=this['withEntry'](async t=>{if(!this['uploadCollection']['read'](t['uid'])||t['getValue']('fileInfo')||t['getValue']('isUploading')||t['getValue']('errors')['length']>0x0||t['getValue']('isValidationPending'))return;let _0x4cc435=this['cfg']['multiple']?this['cfg']['multipleMax']:0x1;if(!(_0x4cc435&&this['uploadCollection']['size']>_0x4cc435)){t['setMultipleValues']({'isUploading':!0x0,'errors':[],'isQueuedForUploading':!0x0}),this['S']();try{let _0x13e457=new AbortController();t['setValue']('abortController',_0x13e457);let _0x80d15=async()=>{t['setValue']('isQueuedForUploading',!0x1);let _0x42a3e1=t['getValue']('file');if(_0x42a3e1 instanceof File||_0x42a3e1 instanceof Blob){let _0x3e4897=(this['i']['pluginManager']?.['snapshot']()['fileHooks']??[])['filter'](_0x594b23=>'beforeUpload'===_0x594b23['type']);for(let _0x5096af of _0x3e4897)try{let _0x65c15b=_0x5096af['handler']({'file':_0x42a3e1,'signal':_0x13e457['signal']}),_0x2ac6d9=new Promise((_0x47f12b,_0x5c26b0)=>setTimeout(()=>_0x5c26b0(new Error('beforeUpload\x20hook\x20timed\x20out')),_0x5096af['timeout'])),{file:_0x3f3332}=await Promise['race']([_0x65c15b,_0x2ac6d9]);_0x3f3332!==_0x42a3e1&&(_0x42a3e1=_0x3f3332,t['setValue']('mimeType',_0x42a3e1['type']||null),t['setValue']('isImage',C4(_0x42a3e1)),t['setValue']('fileSize',_0x42a3e1['size']),_0x42a3e1 instanceof File&&t['setValue']('fileName',_0x42a3e1['name']));}catch(_0x3de2c3){console['warn']('File\x20hook\x20\x22beforeUpload\x22\x20from\x20plugin\x20\x22'+_0x5096af['pluginId']+'\x22\x20failed',_0x3de2c3);}}let _0x4c90dd=_0x42a3e1||t['getValue']('externalUrl')||t['getValue']('uuid');if(!_0x4c90dd)throw new Error('No\x20file\x20input');let _0x39f6ac={...await this['getUploadClientOptions'](),'fileName':t['getValue']('fileName')??void 0x0,'source':t['getValue']('source')??void 0x0,'onProgress':_0x305918=>{if(_0x305918['isComputable']){let _0x2d69dc=0x64*_0x305918['value'];t['setValue']('uploadProgress',_0x2d69dc);}},'signal':_0x13e457['signal'],'metadata':await this['getMetadataFor'](t['uid'])};return this['debugPrint']('upload\x20options',_0x4c90dd,_0x39f6ac),s4(_0x4c90dd,_0x39f6ac);},_0x3ba984=await this['$']['*uploadQueue']['add'](_0x80d15);t['setMultipleValues']({'fileInfo':_0x3ba984,'isQueuedForUploading':!0x1,'isUploading':!0x1,'fileName':_0x3ba984['originalFilename'],'fileSize':_0x3ba984['size'],'isImage':_0x3ba984['isImage']??!0x1,'mimeType':_0x3ba984['contentInfo']?.['mime']?.['mime']??_0x3ba984['mimeType'],'uuid':_0x3ba984['uuid'],'cdnUrl':t['getValue']('cdnUrl')??_0x3ba984['cdnUrl'],'cdnUrlModifiers':t['getValue']('cdnUrlModifiers')??'','uploadProgress':0x64,'source':t['getValue']('source')??null}),t===this['entry']&&this['S']();}catch(_0x3eec41){let _0xf24c50=_0x3eec41 instanceof l3&&_0x3eec41['isCancel'];_0xf24c50?t['setMultipleValues']({'isUploading':!0x1,'uploadProgress':0x0}):_0x3eec41 instanceof o3?t['setMultipleValues']({'isUploading':!0x1,'uploadProgress':0x0,'uploadError':_0x3eec41}):(console['error']('Unknown\x20upload\x20error',_0x3eec41),t['setMultipleValues']({'isUploading':!0x1,'uploadProgress':0x0,'uploadError':new Error('Something\x20went\x20wrong',{'cause':_0x3eec41})})),t===this['entry']&&this['S'](),this['isConnected']&&!_0xf24c50&&this['telemetryManager']['sendEventError'](_0x3eec41,'file\x20upload.\x20Failed\x20to\x20upload\x20file');}}});}['da'](){let t=this['entry'];if(!t)return;let _0x3ecf8e=c8['IDLE'];t['getValue']('errors')['length']>0x0?_0x3ecf8e=c8['FAILED']:t['getValue']('isQueuedForUploading')?_0x3ecf8e=c8['QUEUED_UPLOADING']:t['getValue']('isQueuedForValidation')?_0x3ecf8e=c8['QUEUED_VALIDATION']:t['getValue']('isValidationPending')?_0x3ecf8e=c8['VALIDATION']:t['getValue']('isUploading')?_0x3ecf8e=c8['UPLOADING']:t['getValue']('fileInfo')&&(_0x3ecf8e=c8['FINISHED']),this['Nu'](t,_0x3ecf8e);}['Nu'](t,_0x26ee9b){_0x26ee9b===c8['FAILED']?this['$o']='badge-error':_0x26ee9b===c8['FINISHED']&&(this['$o']='badge-success'),_0x26ee9b===c8['UPLOADING']&&(this['aa']=!0x1,this['removeAttribute']('focused')),this['sa']=_0x26ee9b===c8['FAILED'],this['na']=_0x26ee9b===c8['UPLOADING'],this['oa']=_0x26ee9b===c8['FINISHED'],this['Vu'](_0x26ee9b);}reset(){super['reset'](),this['S']['cancel']();}['ai'](t){let [_0x189198]=t;_0x189198&&_0x189198['isIntersecting']&&!this['ca']&&(this['ia']=!0x1,this['ca']=!0x0);}['pa'](t){this['reset']();let _0xcec1af=this['uploadCollection']?.['read'](t);this['entry']=_0xcec1af,_0xcec1af?(this['subEntry']('isQueuedForValidation',()=>{this['S']();}),this['subEntry']('isValidationPending',()=>{this['S']();}),this['subEntry']('uploadProgress',()=>{this['S']();}),this['subEntry']('isQueuedForUploading',()=>{this['S']();}),this['subEntry']('fileName',_0x49b877=>{this['Lo']=_0x49b877||_0xcec1af['getValue']('externalUrl')||this['l10n']('file-no-name'),this['S']();}),this['subEntry']('externalUrl',_0x222406=>{this['Lo']=_0xcec1af['getValue']('fileName')||_0x222406||this['l10n']('file-no-name');}),this['subEntry']('fileInfo',()=>{this['S']();}),this['subEntry']('errors',()=>this['S']()),this['subEntry']('isUploading',()=>this['S']()),this['subEntry']('fileSize',()=>this['S']()),this['subEntry']('mimeType',()=>this['S']()),this['subEntry']('isImage',()=>this['S']()),this['subEntry']('fileInfo',()=>this['Ze']()),this['subEntry']('isUploading',()=>this['Ze']()),this['subEntry']('errors',()=>this['Ze']()),this['da'](),this['Ze']()):this['Ze']();}['ha'](t){'list'!==this['cfg']['filesViewMode']?this['lr']=t:this['lr']=!0x0;}willUpdate(t){super['willUpdate'](t),t['has']('uid')&&this['pa'](this['uid']);}['Ze'](){let t=this['i']['pluginManager'];if(!t||!this['uid'])return void(this['cr']=[]);let _0x62445=t['snapshot']()['fileActions'],_0x340ec0=this['api']['getOutputItem'](this['uid']);this['cr']=_0x340ec0?_0x62445['filter'](_0x5c82ba=>{try{return _0x5c82ba['shouldRender'](_0x340ec0);}catch(_0x52b1e5){return console['error']('Error\x20in\x20plugin\x20file\x20action\x20shouldRender\x20('+_0x5c82ba['id']+'):',_0x52b1e5),!0x1;}}):[];}['_u'](t){if(!this['uid'])return;let _0x46e517=this['api']['getOutputItem'](this['uid']);if(_0x46e517){this['telemetryManager']['sendEvent']({'payload':{'metadata':{'event':t['id'],'node':this['tagName'],'pluginId':t['pluginId']}}});try{t['onClick'](_0x46e517);}catch(_0x47f635){console['error']('Error\x20in\x20plugin\x20file\x20action\x20onClick\x20('+t['id']+'):',_0x47f635);}}}initCallback(){super['initCallback'](),this['pa'](this['uid']),this['subConfigValue']('filesViewMode',_0x3abb29=>{this['ha'](this['cfg']['gridShowFileNames']),this['setAttribute']('mode',_0x3abb29);}),this['subConfigValue']('gridShowFileNames',_0x40ad4e=>{this['ha'](_0x40ad4e);}),this['onclick']=()=>{G['activeInstances']['forEach'](_0x4e1466=>{_0x4e1466===this?_0x4e1466['setAttribute']('focused',''):_0x4e1466['removeAttribute']('focused');});},this['sub']('*uploadTrigger',_0x41e740=>{this['entry']&&!_0x41e740['has'](this['entry']['uid'])||setTimeout(()=>this['isConnected']&&this['ua']());});let t=this['i']['pluginManager'];t?.['onPluginsChange']&&(this['E']=t['onPluginsChange'](()=>this['Ze']())),this['Ze'](),G['activeInstances']['add'](this);}connectedCallback(){super['connectedCallback'](),this['s']=new window['IntersectionObserver'](this['ai']['bind'](this),{'threshold':[0x0,0x1]}),this['s']['observe'](this);}disconnectedCallback(){this['E']?.(),this['E']=void 0x0,super['disconnectedCallback'](),this['s']?.['disconnect'](),G['activeInstances']['delete'](this),this['reset']();}static{this['activeInstances']=new Set();}shouldUpdate(t){return!this['ia']&&super['shouldUpdate'](t);}['render'](){return O2`<div class="uc-inner" ?data-finished=${this['oa']} ?data-uploading=${this['na']} ?data-failed=${this['sa']} ?data-focused=${this['aa']} ><uc-thumb .uid=${this['uid']} .badgeIcon=${this['$o']}></uc-thumb><div aria-atomic="true" aria-live="polite" class="uc-file-name-wrapper" aria-label=${this['la']}><span class="uc-file-name" ?hidden=${!this['lr']}>${this['Lo']}</span><span class="uc-file-error" ?hidden=${!this['Ro']}>${this['Ro']}</span><span class="uc-file-hint" ?hidden=${!this['Uo']}>${this['Uo']}</span></div><div class="uc-file-actions">${this['cr']['map'](t=>O2`<button type="button" @click=${()=>this['_u'](t)} title=${this['l10n'](t['label'])} aria-label=${this['l10n'](t['label'])} class="uc-plugin-action-btn uc-mini-btn" data-plugin-action-id=${t['id']} ><uc-icon name=${t['icon']}></uc-icon></button>`)}<button type="button" @click=${this['Du']} title=${this['l10n']('file-item-remove-button')} aria-label=${this['l10n']('file-item-remove-button')} class="uc-remove-btn uc-mini-btn" ><uc-icon name="remove-file"></uc-icon></button><button type="button" class="uc-upload-btn uc-mini-btn" @click=${this['Fu']}><uc-icon name="upload"></uc-icon></button></div><uc-progress-bar class="uc-progress-bar" .value=${this['oe']} .visible=${this['ra']} ?hasFileName=${this['lr']}></uc-progress-bar></div>`;}};_1([W2()],l8['prototype'],'ia',0x2),_1([q2({'attribute':!0x1})],l8['prototype'],'uid',0x2),_1([W2()],l8['prototype'],'Lo',0x2),_1([W2()],l8['prototype'],'Ro',0x2),_1([W2()],l8['prototype'],'Uo',0x2),_1([W2()],l8['prototype'],'oe',0x2),_1([W2()],l8['prototype'],'ra',0x2),_1([W2()],l8['prototype'],'$o',0x2),_1([W2()],l8['prototype'],'oa',0x2),_1([W2()],l8['prototype'],'sa',0x2),_1([W2()],l8['prototype'],'na',0x2),_1([W2()],l8['prototype'],'aa',0x2),_1([W2()],l8['prototype'],'lr',0x2),_1([W2()],l8['prototype'],'la',0x2),_1([W2()],l8['prototype'],'cr',0x2);var h8=l8;function u8(_0x2943d7){return new Promise(_0x682371=>{'function'!=typeof window['FileReader']&&_0x682371(!0x1);try{let t=new FileReader();t['onerror']=()=>{_0x682371(!0x0);};let _0x4d1a44=_0x582b7d=>{'loadend'!==_0x582b7d['type']&&t['abort'](),_0x682371(!0x1);};t['onloadend']=_0x4d1a44,t['onprogress']=_0x4d1a44,t['readAsDataURL'](_0x2943d7);}catch{_0x682371(!0x1);}});}function d8(_0x14b38b,_0x236ddd){return new Promise(t=>{let _0x16f25f=0x0,_0x3575d0=[],_0x3e241f=_0x1d4894=>{if(!_0x1d4894)return console['warn']('Unexpectedly\x20received\x20empty\x20content\x20entry',{'scope':'drag-and-drop'}),void t(null);_0x1d4894['isFile']?(_0x16f25f++,_0x1d4894['file'](_0x24ca82=>{_0x16f25f--;let _0xdf6de9=new File([_0x24ca82],_0x24ca82['name'],{'type':_0x24ca82['type']||_0x236ddd});_0x3575d0['push']({'type':'file','file':_0xdf6de9,'fullPath':_0x1d4894['fullPath']}),0x0===_0x16f25f&&t(_0x3575d0);})):_0x1d4894['isDirectory']&&_0x3c44dd(_0x1d4894['createReader']());},_0x3c44dd=_0x5059d1=>{_0x16f25f++,_0x5059d1['readEntries'](_0x5cede0=>{_0x16f25f--;for(let _0x327ecb of _0x5cede0)_0x3e241f(_0x327ecb);0x0===_0x16f25f&&t(_0x3575d0);});};_0x3e241f(_0x14b38b);});}var f8=Object['freeze']({'ACTIVE':0x0,'INACTIVE':0x1,'NEAR':0x2,'OVER':0x3}),m8=['focus'],p8=new Map();function g8(_0x2505c4){let _0x422a89=0x0,t=document['body'],_0x9dcacb=new Set(),_0x2a869e=f8['INACTIVE'],_0x1e7e37=_0x47f164=>{_0x2505c4['shouldIgnore']()&&_0x47f164!==f8['INACTIVE']||(_0x2a869e!==_0x47f164&&_0x9dcacb['forEach'](_0x45a30e=>{_0x45a30e(_0x47f164);}),_0x2a869e=_0x47f164);},_0x2c8d67=()=>_0x422a89>0x0;var _0x2a5c5d;_0x2a5c5d=_0x16fc0c=>_0x2505c4['onChange'](_0x16fc0c),_0x9dcacb['add'](_0x2a5c5d);let _0x3b093d=()=>{_0x422a89=0x0,_0x1e7e37(f8['INACTIVE']);},_0x16a787=()=>{_0x422a89+=0x1,_0x2a869e===f8['INACTIVE']&&_0x1e7e37(f8['ACTIVE']);},_0x177047=()=>{_0x422a89-=0x1,_0x2c8d67()||_0x1e7e37(f8['INACTIVE']);},_0x365565=_0x301fdd=>{_0x301fdd['preventDefault'](),_0x422a89=0x0,_0x1e7e37(f8['INACTIVE']);},_0x2269c6=_0x4828ec=>{if(_0x2505c4['shouldIgnore']())return;_0x2c8d67()||(_0x422a89+=0x1);let _0x20e8b1=[_0x4828ec['x'],_0x4828ec['y']],_0x53b01e=_0x2505c4['element']['getBoundingClientRect'](),_0x46b75a=Math['floor'](function(_0x1442fd,_0x15c142){let t=Math['max'](Math['min'](_0x1442fd[0x0],_0x15c142['x']+_0x15c142['width']),_0x15c142['x']),_0x24aa31=Math['max'](Math['min'](_0x1442fd[0x1],_0x15c142['y']+_0x15c142['height']),_0x15c142['y']);return Math['sqrt']((_0x1442fd[0x0]-t)*(_0x1442fd[0x0]-t)+(_0x1442fd[0x1]-_0x24aa31)*(_0x1442fd[0x1]-_0x24aa31));}(_0x20e8b1,_0x53b01e)),_0x312eef=_0x46b75a<0x64,_0x425df1=_0x4828ec['composedPath']()['includes'](_0x2505c4['element']);p8['set'](_0x2505c4['element'],_0x46b75a);let _0x13878e=Math['min'](...p8['values']())===_0x46b75a;_0x425df1&&_0x13878e?(_0x4828ec['preventDefault'](),_0x1e7e37(f8['OVER'])):_0x1e7e37(_0x312eef&&_0x13878e?f8['NEAR']:f8['ACTIVE']);},_0x242d8b=async _0x538c8c=>{if(_0x2505c4['shouldIgnore']())return;_0x538c8c['preventDefault']();let {dataTransfer:_0xfe8de9}=_0x538c8c;if(!_0xfe8de9)return;let _0x64b286=await function(_0x22cfdb){let _0x1a1a6e=[],t=[];for(let _0x4680ab=0x0;_0x4680ab<_0x22cfdb['items']['length'];_0x4680ab++){let _0x1158ff=_0x22cfdb['items'][_0x4680ab];if(_0x1158ff){if('file'===_0x1158ff['kind']){let _0x3dcff7=_0x1158ff['type'],_0x225dc1=_0x1158ff;if('function'==typeof _0x225dc1['webkitGetAsEntry']||'function'==typeof _0x225dc1['getAsEntry']){let _0x32b135='function'==typeof _0x225dc1['webkitGetAsEntry']?_0x225dc1['webkitGetAsEntry']():_0x225dc1['getAsEntry']?.();_0x32b135&&t['push'](d8(_0x32b135,_0x3dcff7)['then'](_0x1a7369=>{_0x1a7369&&_0x1a1a6e['push'](..._0x1a7369);}));continue;}let _0x232e25=_0x1158ff['getAsFile']();_0x232e25&&t['push'](u8(_0x232e25)['then'](_0x5debd6=>{_0x5debd6||_0x1a1a6e['push']({'type':'file','file':_0x232e25});}));}else'string'===_0x1158ff['kind']&&/^text\/uri-list/['test'](_0x1158ff['type'])&&t['push'](new Promise(_0x4571c2=>{_0x1158ff['getAsString'](_0xff8ba1=>{_0x1a1a6e['push']({'type':'url','url':_0xff8ba1}),_0x4571c2();});}));}}return Promise['all'](t)['then'](()=>_0x1a1a6e);}(_0xfe8de9);_0x2505c4['onItems'](_0x64b286),_0x1e7e37(f8['INACTIVE']);};return t['addEventListener']('drop',_0x365565),t['addEventListener']('dragleave',_0x177047),t['addEventListener']('dragenter',_0x16a787),t['addEventListener']('dragover',_0x2269c6),_0x2505c4['element']['addEventListener']('drop',_0x242d8b),m8['forEach'](_0x16c3cf=>{window['addEventListener'](_0x16c3cf,_0x3b093d);}),()=>{p8['delete'](_0x2505c4['element']),t['removeEventListener']('drop',_0x365565),t['removeEventListener']('dragleave',_0x177047),t['removeEventListener']('dragenter',_0x16a787),t['removeEventListener']('dragover',_0x2269c6),_0x2505c4['element']['removeEventListener']('drop',_0x242d8b),m8['forEach'](_0x13b5f4=>{window['removeEventListener'](_0x13b5f4,_0x3b093d);});};}var O8=new Set(),w8=class extends u7{constructor(){super(...arguments),this['single']=!0x1,this['ghost']=!0x1,this['disabled']=!0x1,this['clickable']=!0x1,this['withIcon']=!0x1,this['fullscreen']=!0x1,this['initflow']=!0x1,this['Oe']=!0x0,this['fa']=!0x0,this['Do']='drop-files-here',this['ma']=!0x1,this['va']=null,this['Fo']=null,this['ya']=L7(),this['Lt']=t=>{if(t instanceof KeyboardEvent){if('Space'!==t['code']&&'Enter'!==t['code'])return;}else{if(!(t instanceof MouseEvent))return;}this['initflow']?this['api']['initFlow']():this['api']['openSystemDialog']();},this['ba']=!0x0,this['Rt']=!0x1;}static{this['styleAttrs']=[...super['styleAttrs'],'uc-drop-area'];}['ga'](){let t=this['text'];'string'==typeof t&&t['length']>0x0?this['Do']=this['l10n'](t)||t:this['Do']=this['ma']?this['l10n']('drop-files-here'):this['l10n']('drop-file-here');}isActive(){if(!this['Oe'])return!0x1;let t=this['getBoundingClientRect'](),_0x459ebf=t['width']>0x0&&t['height']>0x0,_0x2128d8=t['top']>=0x0&&t['left']>=0x0&&t['bottom']<=(window['innerHeight']||document['documentElement']['clientHeight'])&&t['right']<=(window['innerWidth']||document['documentElement']['clientWidth']),_0x3ca73a=window['getComputedStyle'](this),_0x4865fc='hidden'!==_0x3ca73a['visibility']&&'none'!==_0x3ca73a['display'];return _0x459ebf&&_0x4865fc&&_0x2128d8;}initCallback(){super['initCallback'](),O8['add'](this),this['No'](),this['Vo'](),this['wa'](),this['Ta'](f8['INACTIVE']),this['va']=g8({'element':this,'shouldIgnore':()=>this['Ea'](),'onChange':t=>{this['Ta'](t);},'onItems':t=>{t['length']&&(t['forEach'](_0x5a0a08=>{'url'===_0x5a0a08['type']?this['api']['addFileFromUrl'](_0x5a0a08['url'],{'source':D6['DROP_AREA']}):'file'===_0x5a0a08['type']&&this['api']['addFileFromObject'](_0x5a0a08['file'],{'source':D6['DROP_AREA'],'fullPath':_0x5a0a08['fullPath']});}),this['uploadCollection']['size']&&(this['set$']({'*currentActivity':h7['activities']['UPLOAD_LIST']}),this['modalManager']?.['open'](h7['activities']['UPLOAD_LIST'])));}}),this['updateComplete']['then'](()=>this['Bu']()),this['subConfigValue']('sourceList',t=>{let _0xb5a8e=A5(t);this['ba']=_0xb5a8e['includes'](D6['LOCAL']),this['No'](),this['Vo']();}),this['subConfigValue']('multiple',t=>{this['ma']=!!t,this['ga']();});}willUpdate(t){super['willUpdate'](t),t['has']('disabled')&&(this['No'](),this['Vo']()),(t['has']('text')||t['has']('localeId'))&&this['ga']();}updated(t){super['updated'](t),t['has']('clickable')&&this['wa']();}['Ea'](){if(!this['Oe']||!this['zu']())return!0x0;if(!this['fullscreen'])return!0x1;let t=O8;return 0x0!==t['size']&&[...t]['filter'](_0x31df93=>_0x31df93!==this)['filter'](_0x542699=>_0x542699['isActive']())['length']>0x0;}['zu'](){let t=this['cfg']['multiple'],_0x31135d=this['cfg']['multipleMax'],_0x45a551=this['uploadCollection']['size'];return!(t&&_0x31135d&&_0x45a551>=_0x31135d||!t&&_0x45a551>0x0);}['No'](){let t=this['ba']&&!this['disabled'];this['Oe']=t;}['Vo'](){let t=this['Oe']||!this['querySelector']('[data-default-slot]');this['fa']=t,this['hidden']=!t;}['Ta'](t){let _0x1070b0=Object['entries'](f8)['find'](([,_0x31af64])=>_0x31af64===t)?.[0x0]['toLowerCase']();_0x1070b0&&this['setAttribute']('drag-state',_0x1070b0);}['Bu'](){if(this['Fo'])return;let t=this['ya']['value'];t&&(this['Fo']=g8({'element':t,'onChange':_0x4f54e1=>{let _0x16e955=Object['entries'](f8)['find'](([,_0x2f587a])=>_0x2f587a===_0x4f54e1)?.[0x0]['toLowerCase']();_0x16e955&&t['setAttribute']('drag-state',_0x16e955);},'onItems':()=>{},'shouldIgnore':()=>this['Ea']()}));}['wa'](){this['clickable']&&!this['Rt']?(this['addEventListener']('keydown',this['Lt']),this['addEventListener']('click',this['Lt']),this['Rt']=!0x0):!this['clickable']&&this['Rt']&&(this['removeEventListener']('keydown',this['Lt']),this['removeEventListener']('click',this['Lt']),this['Rt']=!0x1);}disconnectedCallback(){super['disconnectedCallback'](),O8['delete'](this),this['va']?.(),this['Fo']?.(),this['Rt']&&(this['removeEventListener']('keydown',this['Lt']),this['removeEventListener']('click',this['Lt']),this['Rt']=!0x1);}['render'](){return O2` ${this['yield']('',O2`<div data-default-slot hidden></div><div ${Q7(this['ya'])} class="uc-content-wrapper" ?hidden=${!this['fa']}><div class="uc-icon-container" ?hidden=${!this['withIcon']}><uc-icon name="default"></uc-icon><uc-icon name="arrow-down"></uc-icon></div><span class="uc-text">${this['Do']}</span></div>`)} `;}};_1([q2({'type':Boolean,'noAccessor':!0x0})],w8['prototype'],'single',0x2),_1([q2({'type':Boolean,'noAccessor':!0x0})],w8['prototype'],'ghost',0x2),_1([q2({'type':Boolean,'reflect':!0x0})],w8['prototype'],'disabled',0x2),_1([q2({'type':Boolean,'reflect':!0x0})],w8['prototype'],'clickable',0x2),_1([q2({'type':Boolean,'attribute':'with-icon','reflect':!0x0})],w8['prototype'],'withIcon',0x2),_1([q2({'type':Boolean,'reflect':!0x0})],w8['prototype'],'fullscreen',0x2),_1([q2({'type':Boolean,'reflect':!0x0})],w8['prototype'],'initflow',0x2),_1([q2({'type':String})],w8['prototype'],'text',0x2),_1([W2()],w8['prototype'],'Oe',0x2),_1([W2()],w8['prototype'],'fa',0x2),_1([W2()],w8['prototype'],'Do',0x2);var b8=class extends u7{constructor(){super(...arguments),this['couldBeCtxOwner']=!0x0,this['historyTracked']=!0x0,this['activityType']=h7['activities']['UPLOAD_LIST'],this['xa']=!0x1,this['Ca']=!0x1,this['Sa']=!0x1,this['_o']=!0x1,this['Bo']=!0x1,this['ur']=null,this['Aa']=!0x1,this['zo']=null,this['ka']=()=>{this['telemetryManager']['sendEvent']({'eventType':j4['ACTION_EVENT'],'payload':{'metadata':{'event':'add-more','node':this['tagName']}}}),this['api']['initFlow'](!0x0);},this['Ho']=()=>{this['emit'](U4['UPLOAD_CLICK']),this['api']['uploadAll'](),this['Te']();},this['Ko']=()=>{this['emit'](U4['DONE_CLICK'],this['api']['getOutputCollectionState']()),this['api']['doneFlow']();},this['Ee']=()=>{this['telemetryManager']['sendEvent']({'eventType':j4['ACTION_EVENT'],'payload':{'metadata':{'event':'clear-all','node':this['tagName']}}}),this['uploadCollection']['clearAll']();},this['Te']=r8(()=>{this['isConnected']&&(this['ju'](),!this['couldOpenActivity']&&this['$']['*currentActivity']===this['activityType']&&this['historyBack'](),this['cfg']['confirmUpload']||this['api']['uploadAll']());},0x12c);}get['Hu'](){return this['zo']?this['Ku'](this['zo']):'';}['ju'](){let t=this['api']['getOutputCollectionState'](),_0x11c80a={'total':t['totalCount'],'succeed':t['successCount'],'uploading':t['uploadingCount'],'failed':t['failedCount'],'validatingBeforeUploading':t['idleEntries']['filter'](_0x4ef016=>_0x4ef016['isValidationPending'])['length']},_0x15a38b=!t['errors']['some'](_0xbf7e7c=>'TOO_MANY_FILES'===_0xbf7e7c['type']||'TOO_FEW_FILES'===_0xbf7e7c['type']),_0x37dcb9=t['errors']['some'](_0x40b8d2=>'TOO_MANY_FILES'===_0x40b8d2['type']),_0x3a066c=t['totalCount']===(this['cfg']['multiple']?this['cfg']['multipleMax']:0x1),_0x1086dc=t['allEntries']['some'](_0x351e6d=>_0x351e6d['isValidationPending']),_0x25ebfa=0x0===_0x11c80a['failed']&&0x0===t['errors']['length']&&!_0x1086dc,_0xe01405=!0x1,_0x3dd025=!0x1,_0x10a23b=!0x1;if(_0x11c80a['total']-_0x11c80a['succeed']-_0x11c80a['uploading']-_0x11c80a['failed']>0x0&&_0x15a38b&&_0x25ebfa&&this['cfg']['confirmUpload'])_0xe01405=!0x0;else{_0x3dd025=!0x0;let _0x57f83f=!this['cfg']['groupOutput']||!!t['group'];_0x10a23b=_0x11c80a['total']===_0x11c80a['succeed']&&_0x15a38b&&_0x25ebfa&&_0x57f83f;}this['xa']=_0x3dd025,this['Ca']=_0x10a23b,this['Sa']=_0xe01405,this['Bo']=0x0===_0x11c80a['total']||!_0x37dcb9&&!_0x3a066c,this['_o']=!_0x3a066c||this['cfg']['multiple'],this['Aa']=_0x11c80a['total']>0x0,this['zo']=_0x11c80a;}['Ku'](t){let _0x371c40=_0x477dc5=>{let _0x52d744=t[_0x477dc5];return'uploading'===_0x477dc5&&(_0x52d744+=t['validatingBeforeUploading']),this['l10n']('header-'+_0x477dc5,{'count':_0x52d744});};return t['uploading']>0x0||t['validatingBeforeUploading']>0x0?_0x371c40('uploading'):t['failed']>0x0?_0x371c40('failed'):t['succeed']>0x0?_0x371c40('succeed'):_0x371c40('total');}get couldOpenActivity(){return this['cfg']['showEmptyList']||this['uploadCollection']['size']>0x0;}initCallback(){super['initCallback'](),this['registerActivity'](this['activityType']),this['subConfigValue']('multiple',this['Te']),this['subConfigValue']('multipleMin',this['Te']),this['subConfigValue']('multipleMax',this['Te']),this['sub']('*groupInfo',t=>{t&&this['Te']();}),this['subConfigValue']('filesViewMode',t=>{this['setAttribute']('mode',t);}),this['sub']('*currentActivity',t=>{!this['couldOpenActivity']&&t===this['activityType']&&(this['$']['*currentActivity']=this['initActivity']);}),this['uploadCollection']['observeProperties'](this['Te']),this['uploadCollection']['observeCollection'](this['Te']),this['sub']('*collectionErrors',t=>{let _0x12caf3=t['filter'](_0x3eebfe=>'SOME_FILES_HAS_ERRORS'!==_0x3eebfe['type'])[0x0];this['ur']=_0x12caf3?_0x12caf3['message']:null;});}disconnectedCallback(){super['disconnectedCallback'](),this['has']('*uploadCollection')&&(this['uploadCollection']['unobserveProperties'](this['Te']),this['uploadCollection']['unobserveCollection'](this['Te']));}['render'](){return O2`<uc-activity-header><span aria-live="polite" class="uc-header-text">${this['Hu']}</span><button type="button" class="uc-mini-btn uc-close-btn" @click=${this['$']['*closeModal']} title=${this['l10n']('a11y-activity-header-button-close')} aria-label=${this['l10n']('a11y-activity-header-button-close')} ><uc-icon name="close"></uc-icon></button></uc-activity-header><div class="uc-no-files" ?hidden=${this['Aa']}>${this['yield']('empty',O2`<span>${this['l10n']('no-files')}</span>`)}</div><div class="uc-files"><div class="uc-files-wrapper">${a8(this['$']['*uploadList']??[],({uid:t})=>t,({uid:t})=>O2`<uc-file-item .uid=${t}></uc-file-item>`)}</div><button type="button" class="uc-add-more-btn uc-secondary-btn" @click=${this['ka']} ?disabled=${!this['Bo']} ?hidden=${!this['_o']} ><uc-icon name="add"></uc-icon><span>${this['l10n']('add-more')}</span></button></div><div class="uc-common-error" ?hidden=${!this['ur']} >${this['ur']??''}</div><div class="uc-toolbar"><button type="button" class="uc-cancel-btn uc-secondary-btn" @click=${this['Ee']}>${this['l10n']('clear')}</button><div class="uc-toolbar-spacer"></div><button type="button" class="uc-add-more-btn uc-secondary-btn" ?hidden=${!this['_o']} ?disabled=${!this['Bo']} @click=${this['ka']} ><uc-icon name="add"></uc-icon><span>${this['l10n']('add-more')}</span></button><button type="button" class="uc-upload-btn uc-primary-btn" ?hidden=${!this['Sa']} @click=${this['Ho']} >${this['l10n']('upload')}</button><button type="button" class="uc-done-btn uc-primary-btn" ?hidden=${!this['xa']} ?disabled=${!this['Ca']} @click=${this['Ko']} >${this['l10n']('done')}</button></div><uc-drop-area ghost></uc-drop-area>`;}};_1([W2()],b8['prototype'],'xa',0x2),_1([W2()],b8['prototype'],'Ca',0x2),_1([W2()],b8['prototype'],'Sa',0x2),_1([W2()],b8['prototype'],'_o',0x2),_1([W2()],b8['prototype'],'Bo',0x2),_1([W2()],b8['prototype'],'ur',0x2),_1([W2()],b8['prototype'],'Aa',0x2),_1([W2()],b8['prototype'],'zo',0x2);var y8=[{'test':_0x1eaf2c=>!!_0x1eaf2c['accept']&&!!_0x1eaf2c['imgOnly'],'message':'There\x20could\x20be\x20a\x20mistake.\x0aBoth\x20`accept`\x20and\x20`imgOnly`\x20parameters\x20are\x20set.\x0aThe\x20value\x20of\x20`accept`\x20will\x20be\x20concatenated\x20with\x20the\x20internal\x20image\x20mime\x20types\x20list.'},{'test':_0x217886=>null!==_0x217886['enableVideoRecording'],'message':'The\x20`enableVideoRecording`\x20parameter\x20is\x20deprecated\x20and\x20will\x20be\x20removed\x20in\x20the\x20next\x20major\x20release.\x0aPlease\x20use\x20the\x20`cameraModes`\x20parameter\x20instead.'},{'test':_0x1b85b3=>null!==_0x1b85b3['defaultCameraMode'],'message':'The\x20`defaultCameraMode`\x20parameter\x20is\x20deprecated\x20and\x20will\x20be\x20removed\x20in\x20the\x20next\x20major\x20release.\x0aPlease\x20use\x20the\x20`cameraModes`\x20parameter\x20instead.'}],v8=z2(_0x5ec09e=>{for(let {test:_0x1c275f,message:t}of y8)_0x1c275f(_0x5ec09e)&&H6(t);},0x0),_8=async _0x41403e=>(_0xd72607=>{if(_0xd72607<=0x0n)return'0';let _0x1e062a='';for(;_0xd72607>0x0n;)_0x1e062a='0123456789abcdefghijklmnopqrstuvwxyz'[Number(_0xd72607%0x24n)]+_0x1e062a,_0xd72607/=0x24n;return _0x1e062a;})(await(async _0x5425b3=>{let _0x2ef931=new TextEncoder()['encode'](_0x5425b3),t=await window['crypto']['subtle']['digest']('SHA-256',_0x2ef931),_0x240a14=Array['from'](new Uint8Array(t))['map'](_0x24128f=>_0x24128f['toString'](0x10)['padStart'](0x2,'0'))['join']('');return BigInt('0x'+_0x240a14);})(_0x41403e))['slice'](0x0,0xa),E8=async(_0x4de38f,_0x4ab58c)=>((_0x55e67f,_0x4fca69)=>{let t=new URL(_0x4fca69);return t['hostname']=_0x55e67f+'.'+t['hostname'],t['toString']()['replace'](/\/$/,'');})(await _8(_0x4de38f),_0x4ab58c),T8=_0x388372=>_0x388372 instanceof Promise||!(!_0x388372||'object'!=typeof _0x388372||!('then'in _0x388372)||'function'!=typeof _0x388372['then']),A8=[{'key':'cameraModes','deps':['enableVideoRecording'],'fn':({cameraModes:_0x501357,enableVideoRecording:_0x1c5bd4})=>{let t=_0x1c5bd4();if(null===t)return _0x501357();let _0x29b44d=u5(_0x501357());return t&&!_0x29b44d['includes']('video')?_0x29b44d=_0x29b44d['concat']('video'):t||(_0x29b44d=_0x29b44d['filter'](_0x75b653=>'video'!==_0x75b653)),d5(_0x29b44d);}},{'key':'cameraModes','deps':['defaultCameraMode'],'fn':({cameraModes:_0x17474b,defaultCameraMode:_0x56b8a4})=>{let t=_0x56b8a4();if(null===t)return _0x17474b();let _0x5aecd4=u5(_0x17474b());return _0x5aecd4=_0x5aecd4['sort']((_0x145380,_0x7b154c)=>_0x145380===t?-0x1:_0x7b154c===t?0x1:0x0),d5(_0x5aecd4);}},{'key':'cdnCname','deps':['pubkey','cdnCnamePrefixed'],'fn':({pubkey:_0x427636,cdnCname:_0x9d06ab,cdnCnamePrefixed:t})=>{let _0x32adec=_0x427636(),_0x110bbb=_0x9d06ab(),_0x5ae1db=t();return _0x32adec&&(_0x110bbb===V5||((_0x5e1945,_0xabf26)=>{try{let t=new URL(_0x5e1945),_0x3adab2=new URL(_0xabf26);return t['hostname']['endsWith'](_0x3adab2['hostname']);}catch{return!0x1;}})(_0x110bbb,_0x5ae1db))?E8(_0x32adec,_0x5ae1db):_0x110bbb;}}],S8=_0x3f4690=>String(_0x3f4690),I8=_0x1feba9=>{let _0x37bf5b=Number(_0x1feba9);if(Number['isNaN'](_0x37bf5b))throw new Error('Invalid\x20number:\x20\x22'+_0x1feba9+'\x22');return _0x37bf5b;},k8=_0x276042=>{if(typeof _0x276042>'u'||null===_0x276042)return!0x1;if('boolean'==typeof _0x276042)return _0x276042;if('true'===_0x276042||''===_0x276042)return!0x0;if('false'===_0x276042)return!0x1;throw new Error('Invalid\x20boolean:\x20\x22'+_0x276042+'\x22');},x8=_0x32c0ce=>{if('object'==typeof _0x32c0ce)return _0x32c0ce;throw new Error('Invalid\x20value.\x20Must\x20be\x20an\x20object.');},C8=_0x268f5f=>{if('function'==typeof _0x268f5f)return _0x268f5f;throw new Error('Invalid\x20value.\x20Must\x20be\x20a\x20function.');},R8=_0x2e07fd=>{if(Array['isArray'](_0x2e07fd))return _0x2e07fd;throw new Error('Must\x20be\x20an\x20array.');},P8={'pubkey':S8,'multiple':k8,'multipleMin':I8,'multipleMax':I8,'confirmUpload':k8,'imgOnly':k8,'accept':S8,'externalSourcesPreferredTypes':S8,'externalSourcesEmbedCss':S8,'store':_0x4ad608=>'auto'===_0x4ad608?_0x4ad608:k8(_0x4ad608),'cameraMirror':k8,'cameraCapture':_0x104340=>{let _0x3baee4=S8(_0x104340);if('user'!==_0x3baee4&&'environment'!==_0x3baee4&&''!==_0x3baee4)throw new Error('Invalid\x20value:\x20\x22'+_0x3baee4+'\x22');return _0x3baee4;},'sourceList':S8,'topLevelOrigin':S8,'maxLocalFileSizeBytes':I8,'thumbSize':I8,'showEmptyList':k8,'useLocalImageEditor':k8,'useCloudImageEditor':k8,'cloudImageEditorTabs':S8,'removeCopyright':k8,'cropPreset':S8,'imageShrink':S8,'modalScrollLock':k8,'modalBackdropStrokes':k8,'sourceListWrap':k8,'remoteTabSessionKey':S8,'cdnCname':S8,'cdnCnamePrefixed':S8,'baseUrl':S8,'socialBaseUrl':S8,'secureSignature':S8,'secureExpire':S8,'secureDeliveryProxy':S8,'retryThrottledRequestMaxTimes':I8,'retryNetworkErrorMaxTimes':I8,'multipartMinFileSize':I8,'multipartChunkSize':I8,'maxConcurrentRequests':I8,'multipartMaxConcurrentRequests':I8,'multipartMaxAttempts':I8,'checkForUrlDuplicates':k8,'saveUrlForRecurrentUploads':k8,'groupOutput':k8,'userAgentIntegration':S8,'debug':k8,'localeName':S8,'metadata':_0x507d33=>{if('object'==typeof _0x507d33&&!Array['isArray'](_0x507d33)||'function'==typeof _0x507d33)return _0x507d33;throw new Error('Invalid\x20metadata\x20value.\x20Must\x20be\x20an\x20object\x20or\x20function.');},'secureUploadsExpireThreshold':I8,'localeDefinitionOverride':_0x4b452e=>x8(_0x4b452e),'secureUploadsSignatureResolver':_0x1bc254=>C8(_0x1bc254),'secureDeliveryProxyUrlResolver':_0x3ec351=>C8(_0x3ec351),'iconHrefResolver':_0x577535=>C8(_0x577535),'plugins':_0x3d7154=>R8(_0x3d7154),'fileValidators':R8,'collectionValidators':R8,'validationTimeout':I8,'validationConcurrency':I8,'cameraModes':_0x13725d=>{let _0x3c42b3=S8(_0x13725d),t=u5(_0x3c42b3);if(t['some'](_0x5809cd=>!Object['values'](C6)['includes'](_0x5809cd)))throw new Error('Invalid\x20value:\x20\x22'+JSON['stringify'](t)+'\x22');return _0x3c42b3;},'defaultCameraMode':_0x3375bf=>{let _0x4cb48a=S8(_0x3375bf);if(!Object['values'](C6)['includes'](_0x4cb48a))throw new Error('Invalid\x20value:\x20\x22'+_0x4cb48a+'\x22');return _0x4cb48a;},'enableAudioRecording':k8,'enableVideoRecording':k8,'mediaRecorderOptions':x8,'maxVideoRecordingDuration':I8,'filesViewMode':_0x268314=>{let _0x530d17=S8(_0x268314);if(['grid','list']['includes'](_0x530d17))return _0x530d17;throw new Error('Invalid\x20value:\x20\x22'+_0x530d17+'\x22');},'gridShowFileNames':k8,'cloudImageEditorAutoOpen':k8,'cloudImageEditorMaskHref':S8,'testMode':k8,'qualityInsights':k8,'pasteScope':_0x2ddabe=>{let _0x3f0d91=S8(_0x2ddabe);if('local'===_0x3f0d91||'global'===_0x3f0d91)return _0x3f0d91;if(!0x1===k8(_0x2ddabe))return!0x1;throw new Error('Invalid\x20value:\x20\x22'+_0x3f0d91+'\x22');}},N8=[...new Set(['debug',...Object['keys'](H5)])],M8=['metadata','plugins','localeDefinitionOverride','secureUploadsSignatureResolver','secureDeliveryProxyUrlResolver','iconHrefResolver','fileValidators','collectionValidators','mediaRecorderOptions'],L8=_0x47a8fe=>M8['includes'](_0x47a8fe),$8=N8['filter'](_0x4ba4cd=>!L8(_0x4ba4cd)),D8={...Object['fromEntries']($8['map'](_0x464165=>[Y5(_0x464165),_0x464165])),...Object['fromEntries']($8['map'](_0x1baaac=>[_0x1baaac['toLowerCase'](),_0x1baaac]))},Q8=_0x174312=>'__'+_0x174312,j8=class extends t6{constructor(){super(...arguments),this['init$']={...this['init$'],...Object['fromEntries'](Object['entries'](H5)['map'](([t,_0x12b98a])=>[h5(t),_0x12b98a]))},this['Gu']=new Map(),this['ci']={},this['Ma']=new Set(),this['Ut']=new Map();}['jo'](t){return this['Ma']['has'](t);}['Go'](t){let _0x1c6b5f=this['i']['pluginManager'];if(_0x1c6b5f)return _0x1c6b5f['configRegistry']['get'](t);}['Oa'](t){return[...new Set([Y5(t),t['toLowerCase']()])];}['qu'](t,_0x15d96d){if(L8(t)||this['jo'](t)&&!0x1===this['Go'](t)?.['attribute'])return;let _0x1e93e7=this['Oa'](t);for(let _0xbbc002 of _0x1e93e7)typeof _0x15d96d>'u'||null===_0x15d96d?this['removeAttribute'](_0xbbc002):this['getAttribute'](_0xbbc002)!==_0x15d96d['toString']()&&this['setAttribute'](_0xbbc002,_0x15d96d['toString']());}['Wu'](t,_0x14a299){let _0x580842=h5(t);if(this['$'][_0x580842]!==_0x14a299){if(typeof _0x14a299>'u'||null===_0x14a299){let _0x389f20=H5[t];this['$'][_0x580842]=void 0x0!==_0x389f20?_0x389f20:_0x14a299;}else this['$'][_0x580842]=_0x14a299;}}['Ye'](t,_0x5f444e){let _0x20fb03;if(this['jo'](t)){let _0x332de6=this['Go'](t);try{_0x20fb03=_0x332de6?.['normalize']?.(_0x5f444e)??_0x5f444e;}catch(_0x49ff4c){return void console['warn']('[uc-config]\x20normalize()\x20for\x20\x22'+t+'\x22\x20threw\x20an\x20error,\x20keeping\x20previous\x20value',_0x49ff4c);}}else _0x20fb03=((_0x2c9c69,_0x322d9c)=>{if(!(typeof _0x322d9c>'u'||null===_0x322d9c))try{return P8[_0x2c9c69](_0x322d9c);}catch(_0x17d338){return console['error']('Invalid\x20value\x20for\x20config\x20key\x20\x22'+_0x2c9c69+'\x22.',_0x17d338),H5[_0x2c9c69];}})(t,_0x5f444e);let _0x3b3233=this,_0x4c7d96=Q8(t);_0x3b3233[_0x4c7d96]!==_0x20fb03&&(this['Zu'](t,_0x3b3233[_0x4c7d96],_0x20fb03),_0x3b3233[_0x4c7d96]=_0x20fb03,this['qu'](t,_0x20fb03),this['Wu'](t,_0x20fb03),this['debugPrint']('\x22'+t+'\x22',_0x20fb03),this['jo'](t)||v8(this['cfg']));}['pr'](t){return this[Q8(t)]??this['$'][h5(t)];}['Zu'](t,_0x5a363a,_0x48fe18){this['cfg']['debug']&&_0x48fe18!==_0x5a363a&&'object'==typeof _0x48fe18&&'object'==typeof _0x5a363a&&JSON['stringify'](_0x48fe18)===JSON['stringify'](_0x5a363a)&&(console['warn']('[uc-config]\x20Option\x20\x22'+t+'\x22\x20value\x20is\x20the\x20same\x20as\x20the\x20previous\x20one\x20but\x20the\x20reference\x20is\x20different'),console['warn']('[uc-config]\x20You\x20should\x20avoid\x20changing\x20the\x20reference\x20of\x20the\x20object\x20to\x20prevent\x20unnecessary\x20calculations'),console['warn']('[uc-config]\x20\x22'+t+'\x22\x20previous\x20value:',_0x5a363a),console['warn']('[uc-config]\x20\x22'+t+'\x22\x20new\x20value:',_0x48fe18));}['Ia'](t){let _0x60c836=t['configRegistry']['getAll']();this['ci']={},this['Ma']=new Set(_0x60c836['keys']());for(let [_0x322aa6,_0x1cd379]of this['Ut'])_0x60c836['has'](_0x322aa6)||(_0x1cd379(),this['Ut']['delete'](_0x322aa6));for(let [_0x497162,_0x12910c]of _0x60c836){let _0x109c12=h5(_0x497162);if(_0x12910c['attribute']){let _0x26a476=this['Oa'](_0x497162);for(let _0x1cf05a of _0x26a476)this['ci'][_0x1cf05a]=_0x497162;}this['sharedCtx']['has'](_0x109c12)||this['sharedCtx']['add'](_0x109c12,_0x12910c['defaultValue']);let _0x25dc5d=Object['getOwnPropertyDescriptor'](this,_0x497162);if((!_0x25dc5d||!_0x25dc5d['set']||!_0x25dc5d['get'])&&Object['defineProperty'](this,_0x497162,{'set':_0x2478ff=>{this['Ye'](_0x497162,_0x2478ff);},'get':()=>this['pr'](_0x497162),'enumerable':!0x0,'configurable':!0x0}),!this['Ut']['has'](_0x497162)){let _0x1db99e=this['sub'](_0x109c12,_0x2a9e57=>{this['Ye'](_0x497162,_0x2a9e57);},!0x1);this['Ut']['set'](_0x497162,_0x1db99e);}}}['Yu'](){this['i']['when']('pluginManager',t=>{this['Ia'](t),this['dr']=t['onPluginsChange'](()=>{this['Ia'](t);});});}['Xu'](){this['li']=new MutationObserver(t=>{for(let _0xecd0ac of t)if('attributes'===_0xecd0ac['type']&&_0xecd0ac['attributeName']){let _0x3c0a65=_0xecd0ac['attributeName'],_0x5d3aef=_0xecd0ac['oldValue'],_0x1da1bb=this['getAttribute'](_0x3c0a65);if(_0x5d3aef===_0x1da1bb||_0x3c0a65 in D8)continue;if(_0x3c0a65 in this['ci']){let _0x1fb610=this['ci'][_0x3c0a65],_0x183305=this['Go'](_0x1fb610);this['attributeChangedCallback'](_0x3c0a65,_0x5d3aef??'',_0x1da1bb??_0x183305?.['defaultValue']??'');}}}),this['li']['observe'](this,{'attributes':!0x0,'attributeOldValue':!0x0});}initCallback(){super['initCallback']();let t=this;this['Yu'](),this['Xu']();for(let _0x1be29f of $8)this['sub'](h5(_0x1be29f),_0x2169f4=>{this['Ye'](_0x1be29f,_0x2169f4);},!0x1);for(let _0x25dfb1 of N8){let _0x3ea169=t[_0x25dfb1]??this['$'][h5(_0x25dfb1)];_0x3ea169!==H5[_0x25dfb1]&&this['Ye'](_0x25dfb1,_0x3ea169);let _0x3ea642=Object['getOwnPropertyDescriptor'](this,_0x25dfb1);(!_0x3ea642||!_0x3ea642['set']||!_0x3ea642['get'])&&Object['defineProperty'](this,_0x25dfb1,{'set':_0x2bc48a=>{this['Ye'](_0x25dfb1,_0x2bc48a);},'get':()=>this['pr'](_0x25dfb1)});}let _0x23825e=_0x4c33b9=>{(({key:_0x2d510a,setValue:_0x59af4b,getValue:t,computationControllers:_0x571fac})=>{for(let _0x1696c7 of A8){if(!_0x1696c7['deps']['includes'](_0x2d510a))continue;let _0x3b2e66={[_0x1696c7['key']]:()=>t(_0x1696c7['key'])};for(let _0x3afc07 of _0x1696c7['deps'])_0x3b2e66[_0x3afc07]=()=>t(_0x3afc07);let _0xbd7c4c,_0x161d07=new AbortController();_0x571fac['get'](_0x1696c7['fn'])?.['abort'](),_0x571fac['set'](_0x1696c7['fn'],_0x161d07);try{_0xbd7c4c=_0x1696c7['fn'](_0x3b2e66,{'signal':_0x161d07['signal']});}catch(_0x4ca7a9){return _0x571fac['get'](_0x1696c7['fn'])===_0x161d07&&_0x571fac['delete'](_0x1696c7['fn']),void console['error']('Failed\x20to\x20compute\x20value\x20for\x20\x22'+_0x1696c7['key']+'\x22',_0x4ca7a9);}T8(_0xbd7c4c)?_0xbd7c4c['then'](_0x21e788=>{_0x161d07['signal']['aborted']||_0x59af4b(_0x1696c7['key'],_0x21e788);})['catch'](_0x38b63a=>{_0x161d07['signal']['aborted']||console['error']('Failed\x20to\x20compute\x20value\x20for\x20\x22'+_0x1696c7['key']+'\x22',_0x38b63a);})['finally'](()=>{_0x571fac['get'](_0x1696c7['fn'])===_0x161d07&&_0x571fac['delete'](_0x1696c7['fn']);}):_0x59af4b(_0x1696c7['key'],_0xbd7c4c);}})({'key':_0x4c33b9,'setValue':this['Ye']['bind'](this),'getValue':this['pr']['bind'](this),'computationControllers':this['Gu']});};for(let _0x9909cc of N8)this['sub'](h5(_0x9909cc),()=>_0x23825e(_0x9909cc));}attributeChangedCallback(t,_0x43964c,_0x1fd183){if(super['attributeChangedCallback'](t,_0x43964c,_0x1fd183),_0x43964c===_0x1fd183)return;let _0x30d5e5=D8[t];_0x30d5e5?this[_0x30d5e5]=_0x1fd183:this['i']['when']('pluginManager',_0x45d6d4=>{let _0x59866b=this['getAttribute'](t);if(_0x59866b&&_0x59866b!==_0x1fd183)return;let _0x152456=this['ci'][t],_0xa8a86c=_0x152456?_0x45d6d4['configRegistry']['get'](_0x152456):void 0x0;if(_0x152456&&_0xa8a86c){let _0x2de72b=_0xa8a86c['fromAttribute']?_0xa8a86c['fromAttribute'](_0x1fd183):_0x1fd183;if(this['pr'](_0x152456)===_0x2de72b)return;this['Ye'](_0x152456,_0x2de72b);}});}disconnectedCallback(){super['disconnectedCallback'](),this['dr']&&(this['dr'](),this['dr']=void 0x0),this['li']&&(this['li']['disconnect'](),this['li']=void 0x0);for(let t of this['Ut']['values']())t();this['Ut']['clear']();}static get observedAttributes(){return[...super['observedAttributes'],...Object['keys'](D8)];}};for(let e of N8)j8['prototype'][e]=void 0x0;var U8=class extends u7{constructor(){super(...arguments),this['couldBeCtxOwner']=!0x0,this['dropzone']=!0x0,this['ui']='upload-file',this['Qu']=()=>{this['api']['initFlow']();};}static{this['styleAttrs']=[...super['styleAttrs'],'uc-simple-btn'];}initCallback(){super['initCallback'](),this['subConfigValue']('multiple',t=>{this['ui']=t?'upload-files':'upload-file';});}['render'](){return O2`<uc-drop-area .disabled=${!this['dropzone']}><button type="button" @click=${this['Qu']}><uc-icon name="upload"></uc-icon><span>${this['l10n'](this['ui'])}</span>${this['yield']('')}<div class="uc-visual-drop-area">${this['l10n']('drop-files-here')}</div></button></uc-drop-area>`;}};_1([q2({'attribute':'dropzone','type':Boolean})],U8['prototype'],'dropzone',0x2),_1([W2()],U8['prototype'],'ui',0x2);var V8=class extends h7{constructor(){super(...arguments),this['Wo']=L7();}initCallback(){this['activityType']=this['registration']?.['id']??null,this['Pa'](),super['initCallback']();}willUpdate(t){super['willUpdate'](t),t['has']('registration')&&(this['Pa'](),this['isActivityActive']&&(this['hr'](),this['La']()));}['Pa'](){this['registration']&&(this['Pn']()||this['registerActivity'](this['activityType']??'',{'onActivate':()=>this['La'](),'onDeactivate':()=>this['hr']()}));}async['La'](){await this['updateComplete'];let t=this['Wo']['value'];if(!t||!this['registration'])return;this['hr']();let _0x37b2a3=this['$']['*currentActivityParams'];try{this['qo']=this['registration']['render'](t,_0x37b2a3)??void 0x0;}catch(_0x40c55d){console['error']('[Plugin\x20\x22'+this['registration']['pluginId']+'\x22]\x20Activity\x20render()\x20threw\x20an\x20error',_0x40c55d);}}['hr'](){let t=this['Wo']['value'];if(t){try{this['qo']?.();}catch(_0x276bb3){console['error']('[Plugin\x20\x22'+this['registration']?.['pluginId']+'\x22]\x20Activity\x20dispose\x20threw\x20an\x20error',_0x276bb3);}this['qo']=void 0x0,t['replaceChildren']();}}disconnectedCallback(){this['hr'](),super['disconnectedCallback']();}['render'](){return O2`<div style="display: contents;" ${Q7(this['Wo'])}></div>`;}};_1([q2({'attribute':!0x1})],V8['prototype'],'registration',0x2);var B8=class extends t6{constructor(){super(...arguments),this['mode']='modal',this['de']=[];}initCallback(){super['initCallback']();let t=this['i']['pluginManager'];t?.['onPluginsChange']&&(this['E']=t['onPluginsChange'](()=>this['Ra']())),this['Ra']();}['Ra'](){let t=this['i']['pluginManager'];this['de']=t?t['snapshot']()['activities']:[];}disconnectedCallback(){this['E']?.(),this['E']=void 0x0,super['disconnectedCallback']();}['render'](){return'inline'===this['mode']?O2`${a8(this['de'],t=>t['id'],t=>O2`<uc-plugin-activity-host .registration=${t}></uc-plugin-activity-host>`)}`:O2`${a8(this['de'],t=>t['id'],t=>O2`<uc-modal id=${t['id']} strokes block-body-scrolling><uc-plugin-activity-host .registration=${t}></uc-plugin-activity-host></uc-modal>`)}`;}};function H8(_0x2a62a4,_0x5a9124,t){return _0x2a62a4?_0x5a9124(_0x2a62a4):t?.(_0x2a62a4);}function F8(..._0x31ac2c){return _0x31ac2c['reduce']((_0x45f927,t)=>{if('string'==typeof t)return _0x45f927[t]=!0x0,_0x45f927;for(let _0x36fdf6 of Object['keys'](t))_0x45f927[_0x36fdf6]=t[_0x36fdf6];return _0x45f927;},{});}function Z8(..._0xd5f26d){let _0x5db72c=F8(..._0xd5f26d);return Object['keys'](_0x5db72c)['reduce']((t,_0x1d0453)=>(_0x5db72c[_0x1d0453]&&t['push'](_0x1d0453),t),[])['join']('\x20');}_1([q2({'type':String})],B8['prototype'],'mode',0x2),_1([W2()],B8['prototype'],'de',0x2);var G8=_0x248644=>L5['includes'](_0x248644);function X8(_0x452696){return{'*originalUrl':null,'*loadingOperations':new Map(),'*faderEl':null,'*cropperEl':null,'*imgEl':null,'*imgContainerEl':null,'*networkProblems':!0x1,'*imageSize':null,'*editorTransformations':{},'*cropPresetList':[],'*currentAspectRatio':null,'*tabList':L5,'*tabId':M5['CROP'],'*on.retryNetwork':()=>{let _0x389bc6=_0x452696['querySelectorAll']('img');for(let t of _0x389bc6){let _0x34a1fe=t['src'];t['src']=W7,t['src']=_0x34a1fe;}_0x452696['$']['*networkProblems']=!0x1;},'*on.apply':_0x5ee441=>{if(!_0x5ee441)return;let t=_0x452696['$']['*originalUrl'];if(!t)return void console['warn']('Original\x20URL\x20is\x20null,\x20cannot\x20apply\x20transformations');let _0x13e431=p5(k5(_0x5ee441),'preview'),_0x594d2b={'originalUrl':t,'cdnUrlModifiers':_0x13e431,'cdnUrl':E5(t,_0x13e431),'transformations':_0x5ee441};_0x452696['dispatchEvent'](new CustomEvent('apply',{'detail':_0x594d2b,'bubbles':!0x0,'composed':!0x0})),_0x452696['remove']();},'*on.cancel':()=>{_0x452696['remove'](),_0x452696['dispatchEvent'](new CustomEvent('cancel',{'bubbles':!0x0,'composed':!0x0}));}};}var q8={'transition':'uc-transition','visible':'uc-visible','hidden':'uc-hidden'},W8=class extends t6{constructor(){super(...arguments),this['he']=!0x1,this['Ua']=q8,this['$a']=q8['visible'],this['Da']=q8['hidden'],this['Zo']=!0x1,this['Fa']=!0x1;}set['visible'](t){this['he']=t,this['Na']();}get['visible'](){return this['he'];}set styles(t){this['Ua']=t,this['Zo']=!0x0,this['$a']=t['visible']??q8['visible'],this['Da']=t['hidden']??q8['hidden'];}get styles(){return this['Ua'];}['Na'](){this['style']['visibility']=this['he']?'inherit':'hidden',function(_0x278a16,..._0x1b3377){let t=F8(..._0x1b3377);for(let _0x424338 of Object['keys'](t))_0x278a16['classList']['toggle'](_0x424338,!!t[_0x424338]);}(this,{[q8['transition']]:!this['Zo'],[this['$a']]:this['he'],[this['Da']]:!this['he']}),this['toggleAttribute']('inert',!this['he']);}['Ju'](){this['Fa']||(this['Fa']=!0x0,this['dispatchEvent'](new CustomEvent('initial-render',{'bubbles':!0x0,'composed':!0x0})));}initCallback(){super['initCallback'](),this['classList']['toggle']('uc-initial',!0x0),this['Zo']||this['classList']['add'](q8['transition']),this['Na'](),setTimeout(()=>{this['classList']['toggle']('uc-initial',!0x1),this['Ju']();},0x0);}};_1([q2({'type':Boolean})],W8['prototype'],'visible',0x1),_1([q2({'attribute':!0x1})],W8['prototype'],'styles',0x1);var z8=class extends t6{constructor(){super(...arguments),this['active']=!0x1,this['Xe']=L7(),this['Yo']=!0x1,this['Xo']=()=>{let t=this['Xe']['value'];t&&(this['Va'](t),this['Yo']&&this['active']&&this['Qo']());};}firstUpdated(t){super['firstUpdated'](t),this['active']&&this['Qo']();}updated(t){super['updated'](t),t['has']('active')&&(this['active']?this['Qo']():this['ed']());}['Qo'](){let t=this['Xe']['value'];if(!t)return;this['Yo']=!0x0;let {width:_0x25e15d}=this['getBoundingClientRect']();t['removeEventListener']('transitionend',this['Xo']),t['style']['transition']='transform\x201s',t['style']['opacity']='1',t['style']['transform']='translateX('+_0x25e15d+'px)',t['addEventListener']('transitionend',this['Xo'],{'once':!0x0});}['ed'](){let t=this['Xe']['value'];t&&(this['Yo']=!0x1,t['removeEventListener']('transitionend',this['Xo']),this['Va'](t));}['Va'](t){t['style']['transition']='initial',t['style']['opacity']='0',t['style']['transform']='translateX(-101%)';}['render'](){return O2`<div class="uc-inner"><div class="uc-line" ${Q7(this['Xe'])}></div></div>`;}};_1([q2({'type':Boolean,'reflect':!0x0})],z8['prototype'],'active',0x2);var Y8=s6(class extends n6{constructor(_0x197a02){if(super(_0x197a02),_0x197a02['type']!==e6||'class'!==_0x197a02['name']||_0x197a02['strings']?.['length']>0x2)throw Error('`classMap()`\x20can\x20only\x20be\x20used\x20in\x20the\x20`class`\x20attribute\x20and\x20must\x20be\x20the\x20only\x20part\x20in\x20the\x20attribute.');}['render'](_0xe0b6c6){return'\x20'+Object['keys'](_0xe0b6c6)['filter'](_0x2254af=>_0xe0b6c6[_0x2254af])['join']('\x20')+'\x20';}update(_0x2e2d97,[_0xb49e26]){if(void 0x0===this['st']){this['st']=new Set(),void 0x0!==_0x2e2d97['strings']&&(this['nt']=new Set(_0x2e2d97['strings']['join']('\x20')['split'](/\s/)['filter'](_0x2b9076=>''!==_0x2b9076)));for(let _0x5be21f in _0xb49e26)_0xb49e26[_0x5be21f]&&!this['nt']?.['has'](_0x5be21f)&&this['st']['add'](_0x5be21f);return this['render'](_0xb49e26);}let t=_0x2e2d97['element']['classList'];for(let _0x2dedee of this['st'])_0x2dedee in _0xb49e26||(t['remove'](_0x2dedee),this['st']['delete'](_0x2dedee));for(let _0x19cf88 in _0xb49e26){let _0x3e607b=!!_0xb49e26[_0x19cf88];_0x3e607b===this['st']['has'](_0x19cf88)||this['nt']?.['has'](_0x19cf88)||(_0x3e607b?(t['add'](_0x19cf88),this['st']['add'](_0x19cf88)):(t['remove'](_0x19cf88),this['st']['delete'](_0x19cf88)));}return w2;}}),K8=_0x321890=>_0x321890??b2,J8=class extends t6{constructor(){super(...arguments),this['text']='',this['icon']='',this['reverse']=!0x1,this['theme']='default',this['ariaRole']=void 0x0,this['ariaControls']='',this['titleProp']='',this['active']=!0x1;}firstUpdated(t){super['firstUpdated'](t),this['_a'](),this['Ba']();}updated(t){super['updated'](t),t['has']('reverse')&&this['_a'](),t['has']('theme')&&this['Ba']();}['_a'](){this['style']['flexDirection']=this['reverse']?'row-reverse':'';}['Ba'](){this['theme']&&'custom'!==this['theme']&&(this['className']='uc-'+this['theme']);}get td(){let t=this['Jo'];return{'uc-icon':!0x0,'uc-icon_left':!this['reverse'],'uc-icon_right':this['reverse'],'uc-icon_hidden':t,'uc-icon_single':this['rd']};}get['Jo'](){return!this['icon'];}get['rd'](){return!this['text']&&!this['Jo'];}['render'](){return O2`<button type="button" role=${K8(this['ariaRole']||void 0x0)} aria-controls=${K8(this['ariaControls']||void 0x0)} aria-label=${K8(this['l10n'](this['titleProp']))} title=${K8(this['l10n'](this['titleProp']))} ><uc-icon class=${Y8(this['td'])} name=${K8(this['icon']||void 0x0)} ?hidden=${this['Jo']} ></uc-icon><div class="uc-text">${this['text']}</div></button>`;}};function t9(_0x2b40bf,_0x1af7ee,t){let _0x31c404=window['devicePixelRatio'],_0x1832bd=Math['min'](Math['ceil'](_0x1af7ee*_0x31c404),0xbb8),_0x218b39=_0x31c404>=0x2?'lightest':'normal';return E5(_0x2b40bf,p5(x5,k5(t),'quality/'+_0x218b39,'stretch/off/-/resize/'+_0x1832bd+'x','@clib/'+B4+'/'+H4+'/uc-cloud-image-editor/'));}_1([q2({'type':String})],J8['prototype'],'text',0x2),_1([q2({'type':String})],J8['prototype'],'icon',0x2),_1([q2({'type':Boolean,'reflect':!0x0})],J8['prototype'],'reverse',0x2),_1([q2({'type':String,'reflect':!0x0})],J8['prototype'],'theme',0x2),_1([q2({'attribute':'aria-role'})],J8['prototype'],'ariaRole',0x2),_1([q2({'attribute':'aria-controls'})],J8['prototype'],'ariaControls',0x2),_1([q2({'attribute':'title-prop'})],J8['prototype'],'titleProp',0x2),_1([q2({'type':Boolean,'noAccessor':!0x0})],J8['prototype'],'active',0x2);var e9=class extends t6{constructor(){super(...arguments),this['za']='uc-backdrop-mask-'+t5['generateFastUid'](),this['mr']=!0x1,this['fi']=!0x1,this['ja']=L7(),this['mi']=!0x1,this['gi']=null,this['qa']=t=>{this['Wa'](),this['vi']&&(t['stopPropagation'](),t['preventDefault'](),this['vi']=!0x1);},this['Za']=t=>{if(!this['vi']||!this['fr']||!this['ts'])return;t['stopPropagation'](),t['preventDefault']();let _0x2dd0e3=this['Re'];if(!_0x2dd0e3)return;let {x:_0x589ece,y:_0x322797}=_0x2dd0e3['getBoundingClientRect'](),_0x71c7c9=t['x']-_0x589ece,_0x8a3091=t['y']-_0x322797,_0x43ebfc=_0x71c7c9-this['fr'][0x0],_0x1d3123=_0x8a3091-this['fr'][0x1],{direction:_0x3875e6}=this['ts'],_0x40978a=this['pd'](_0x3875e6,[_0x43ebfc,_0x1d3123]);_0x40978a&&(this['$']['*cropBox']=_0x40978a);},this['Ya']=t=>{if(!this['xe'])return;let _0x4455e2=Object['values'](this['xe'])['find'](_0x1d1085=>{if(!_0x1d1085||this['os'](_0x1d1085['direction']))return!0x1;let _0x37957a=_0x1d1085['interactionNode']['getBoundingClientRect']();return function(_0x2e75b6,[_0x579495,t]){return _0x2e75b6['x']<=_0x579495&&_0x579495<=_0x2e75b6['x']+_0x2e75b6['width']&&_0x2e75b6['y']<=t&&t<=_0x2e75b6['y']+_0x2e75b6['height'];}({'x':_0x37957a['x'],'y':_0x37957a['y'],'width':_0x37957a['width'],'height':_0x37957a['height']},[t['x'],t['y']]);});this['Ha']=_0x4455e2,this['Wa']();};}get['Re'](){return this['ja']['value']??null;}get['vi'](){return this['fi'];}set['vi'](t){this['fi']!==t&&(this['fi']=t,this['rs']());}['rs'](){this['pi']&&this['pi']['setAttribute']('class',Z8({'uc-guides--hidden':this['mr'],'uc-guides--visible':!this['mr']&&this['fi'],'uc-guides--semi-hidden':!this['mr']&&!this['fi']}));}['os'](t){let _0x267efc=this['$']['*imageBox'];if(!_0x267efc)return!0x1;if(''===t&&_0x267efc['height']<=0x1&&_0x267efc['width']<=0x1)return!0x0;let _0xc665d6=_0x267efc['height']<=0x1&&(t['includes']('n')||t['includes']('s')),_0x12cf4a=_0x267efc['width']<=0x1&&(t['includes']('e')||t['includes']('w'));return _0xc665d6||_0x12cf4a;}['od'](){let t=this['$']['*cropBox'];if(!t)return;let {x:_0x32cf4d,y:_0x3a0260,width:_0x2c7fc,height:_0x4c9b73}=t,_0x6aedb1=this['Re'];if(!_0x6aedb1)return;let _0x321dd9=W6('mask',{'id':this['za']}),_0x405311=W6('rect',{'x':0x0,'y':0x0,'width':'100%','height':'100%','fill':'white'}),_0x4e2a7c=W6('rect',{'x':_0x32cf4d,'y':_0x3a0260,'width':_0x2c7fc,'height':_0x4c9b73,'fill':'black'});_0x321dd9['appendChild'](_0x405311),_0x321dd9['appendChild'](_0x4e2a7c);let _0x38aa38=W6('rect',{'x':0x0,'y':0x0,'width':'100%','height':'100%','fill':'var(--color-image-background)','fill-opacity':0.85,'mask':'url(#'+this['za']+')'});_0x6aedb1['appendChild'](_0x38aa38),_0x6aedb1['appendChild'](_0x321dd9),this['di']=_0x321dd9,this['es']=_0x4e2a7c;}['sd'](){this['di']&&(this['di']['style']['display']='none',window['requestAnimationFrame'](()=>{this['di']&&(this['di']['style']['display']='block');}));}['nd'](){let t=this['$']['*cropBox'];if(!t)return;let {x:_0x3780e7,y:_0x4ec7d1,width:_0x291ba0,height:_0xa7c57}=t;this['es']&&q6(this['es'],{'x':_0x3780e7,'y':_0x4ec7d1,'width':_0x291ba0,'height':_0xa7c57});}['ad'](){let t=this['$']['*cropBox'];if(t&&this['pi']&&this['xe']){for(let _0x3af58a of Object['values'](this['xe'])){if(!_0x3af58a)continue;let {direction:_0x1c9415,pathNode:_0x5b1128,interactionNode:_0x45b11a,groupNode:_0x255cfa}=_0x3af58a,_0x210580=''===_0x1c9415,_0x545fb2=0x2===_0x1c9415['length'],{x:_0x3d776e,y:_0x29802a,width:_0x64d160,height:_0x8c97e6}=t;if(_0x210580)q6(_0x45b11a,{'x':_0x3d776e,'y':_0x29802a,'width':_0x64d160,'height':_0x8c97e6});else{let _0x215db8=s7(Math['min'](_0x64d160,_0x8c97e6)/0x52/0x2,0x0,0x1),_0xce7c90=_0x545fb2?z6(t,_0x1c9415,_0x215db8):Y6(t,_0x1c9415,_0x215db8),_0x5acffe=_0xce7c90['center'];if(!_0x5acffe)continue;let _0x1f85e2=Math['max'](0x18*s7(Math['min'](_0x64d160,_0x8c97e6)/0x18/0x3,0x0,0x1),0x6);q6(_0x45b11a,{'x':_0x5acffe[0x0]-_0x1f85e2,'y':_0x5acffe[0x1]-_0x1f85e2,'width':0x2*_0x1f85e2,'height':0x2*_0x1f85e2}),q6(_0x5b1128,{'d':_0xce7c90['d']});}let _0x26f41d=this['os'](_0x1c9415);_0x255cfa['setAttribute']('class',Z8('uc-thumb',{'uc-thumb--hidden':_0x26f41d,'uc-thumb--visible':!_0x26f41d}));}q6(this['pi'],{'x':t['x']-0.5,'y':t['y']-0.5,'width':t['width']+0x1,'height':t['height']+0x1});}}['Ga'](t,_0xfc6eda){let _0x2b0157=W6('g');_0x2b0157['classList']['add']('uc-thumb'),_0x2b0157['setAttribute']('with-effects','');let _0x496703=W6('rect',{'fill':'transparent'}),_0x13db6d=W6('path',{'stroke':'currentColor','fill':'none','stroke-width':0x3});_0x2b0157['appendChild'](_0x13db6d),_0x2b0157['appendChild'](_0x496703),t[_0xfc6eda]={'direction':_0xfc6eda,'pathNode':_0x13db6d,'interactionNode':_0x496703,'groupNode':_0x2b0157},''===_0xfc6eda&&(_0x2b0157['style']['cursor']='move'),_0x496703['addEventListener']('pointerdown',this['ld']['bind'](this,_0xfc6eda));}['cd'](){let t={};for(let _0xbe49a3=0x0;_0xbe49a3<0x3;_0xbe49a3++)for(let _0x265193=0x0;_0x265193<0x3;_0x265193++){let _0x2345d5=''+['n','','s'][_0xbe49a3]+['w','','e'][_0x265193];''!==_0x2345d5&&this['Ga'](t,_0x2345d5);}return this['Ga'](t,''),t;}['ud'](){let t=W6('svg'),_0x1fe5a9=W6('rect',{'x':0x0,'y':0x0,'width':'100%','height':'100%','fill':'none','stroke':'currentColor','stroke-width':0x1,'stroke-opacity':0.5});t['appendChild'](_0x1fe5a9);for(let _0x37151a=0x1;_0x37151a<=0x2;_0x37151a++){let _0x108c2e=W6('line',{'x1':X6*_0x37151a+'%','y1':'0%','x2':X6*_0x37151a+'%','y2':'100%','stroke':'currentColor','stroke-width':0x1,'stroke-opacity':0.3});t['appendChild'](_0x108c2e);}for(let _0x48deac=0x1;_0x48deac<=0x2;_0x48deac++){let _0x54ca5a=W6('line',{'x1':'0%','y1':X6*_0x48deac+'%','x2':'100%','y2':X6*_0x48deac+'%','stroke':'currentColor','stroke-width':0x1,'stroke-opacity':0.3});t['appendChild'](_0x54ca5a);}return t['classList']['add']('uc-guides','uc-guides--semi-hidden'),t;}['dd'](){let t=this['Re'];if(!t)return;let _0x1fbec3=document['createDocumentFragment'](),_0x10ebb6=this['ud']();_0x1fbec3['appendChild'](_0x10ebb6);let _0x295a37=this['cd']();for(let {groupNode:_0x452421}of Object['values'](_0x295a37))_0x1fbec3['appendChild'](_0x452421);t['appendChild'](_0x1fbec3),this['xe']=_0x295a37,this['pi']=_0x10ebb6,this['rs']();}['ld'](t,_0x34ad30){if(!this['xe'])return;let _0x1c8d90=this['xe'][t];if(!_0x1c8d90||this['os'](t))return;let _0x549704=this['$']['*cropBox'],_0x3294db=this['Re'];if(!_0x3294db)return;let {x:_0x53ab18,y:_0x4fb819}=_0x3294db['getBoundingClientRect'](),_0x819255=_0x34ad30['x']-_0x53ab18,_0x4e8d5f=_0x34ad30['y']-_0x4fb819;this['vi']=!0x0,this['ts']=_0x1c8d90,this['fr']=[_0x819255,_0x4e8d5f],this['Ka']={..._0x549704};}['pd'](t,_0x339991){let [_0x2752a6,_0x46366c]=_0x339991,_0x2faca1=this['$']['*imageBox'],_0x8fb76c=this['Ka']??this['$']['*cropBox'],_0x5b9752=this['$']['*currentAspectRatio'],_0x359fc9=_0x5b9752?_0x5b9752['width']/_0x5b9752['height']:void 0x0;if(_0x8fb76c=''===t?function({rect:_0x48d1fd,delta:[_0x307263,t],imageBox:_0x3bf608}){return K6({..._0x48d1fd,'x':_0x48d1fd['x']+_0x307263,'y':_0x48d1fd['y']+t},_0x3bf608);}({'rect':_0x8fb76c,'delta':[_0x2752a6,_0x46366c],'imageBox':_0x2faca1}):J6({'rect':_0x8fb76c,'delta':[_0x2752a6,_0x46366c],'direction':t,'aspectRatio':_0x359fc9,'imageBox':_0x2faca1}),Object['values'](_0x8fb76c)['every'](_0x5992c4=>Number['isFinite'](_0x5992c4)&&_0x5992c4>=0x0))return K6(i7(_0x8fb76c),_0x2faca1);console['error']('CropFrame\x20is\x20trying\x20to\x20create\x20invalid\x20rectangle',{'payload':_0x8fb76c});}['Wa'](){let t=this['Ha'],_0x46a9c1=this['Re'];_0x46a9c1&&(_0x46a9c1['style']['cursor']=t?function(_0x3cd00d){return''===_0x3cd00d?'move':['e','w']['includes'](_0x3cd00d)?'ew-resize':['n','s']['includes'](_0x3cd00d)?'ns-resize':['nw','se']['includes'](_0x3cd00d)?'nwse-resize':'nesw-resize';}(t['direction']):'initial');}['Xa'](t){if(this['hi'])return void this['hi']['setAttribute']('href',t);let _0x3b3769=this['Re'];if(!_0x3b3769)return void(this['gi']=t);this['gi']=null;let _0x1d7b7b=document['createDocumentFragment'](),_0x387181=W6('image',{'href':t});_0x387181['setAttribute']('class','uc-cloud-mask'),_0x1d7b7b['appendChild'](_0x387181),_0x3b3769['appendChild'](_0x1d7b7b),this['hi']=_0x387181;}['hd'](){let t=this['$']['*cropBox'];if(!t||!this['hi'])return;let {x:_0x38d5ac,y:_0x5e53d6,width:_0x455c46,height:_0x5dc4ff}=t;q6(this['hi'],{'x':_0x38d5ac,'y':_0x5e53d6,'height':_0x5dc4ff,'width':_0x455c46});}['ss'](){this['mi']&&(this['nd'](),this['ad'](),this['hd']());}toggleThumbs(t){if(this['xe'])for(let _0x4e64c8 of Object['values'](this['xe'])){if(!_0x4e64c8)continue;let {groupNode:_0x518a94}=_0x4e64c8;_0x518a94['setAttribute']('class',Z8('uc-thumb',{'uc-thumb--hidden':!t,'uc-thumb--visible':t}));}}initCallback(){super['initCallback'](),this['sub']('*imageBox',()=>{this['sd'](),this['mi']&&window['requestAnimationFrame'](()=>{this['ss']();});}),this['sub']('*cropBox',t=>{t&&(this['mr']=t['height']<=0x1||t['width']<=0x1,this['rs'](),this['mi']&&window['requestAnimationFrame'](()=>{this['ss']();}));}),this['subConfigValue']('cloudImageEditorMaskHref',t=>{t&&this['Xa'](t);}),document['addEventListener']('pointermove',this['Za'],!0x0),document['addEventListener']('pointerup',this['qa'],!0x0);}firstUpdated(t){super['firstUpdated'](t),this['fd']();}['fd'](){let t=this['Re'];if(t&&!this['mi']){if(this['od'](),this['dd'](),this['mi']=!0x0,t['addEventListener']('pointermove',this['Ya'],!0x0),this['gi']){let _0x49e0ed=this['gi'];this['gi']=null,this['Xa'](_0x49e0ed);}this['ss']();}}disconnectedCallback(){super['disconnectedCallback'](),this['Re']?.['removeEventListener']('pointermove',this['Ya'],!0x0),document['removeEventListener']('pointermove',this['Za'],!0x0),document['removeEventListener']('pointerup',this['qa'],!0x0);}['render'](){return O2`<svg class="uc-svg" xmlns="http://www.w3.org/2000/svg" ${Q7(this['ja'])}></svg>`;}};_1([W2()],e9['prototype'],'fi',0x2);var i9=class extends t6{constructor(){super(),this['ctxOwner']=!0x0,this['Qe']={'width':0x0,'height':0x0},this['e']=null,this['_']=!0x1,this['se']=null,this['Ja']=L7(),this['as']=L7(),this['init$']={...this['init$'],'*padding':0x14,'*operations':{'rotate':0x0,'mirror':!0x1,'flip':!0x1},'*imageBox':{'x':0x0,'y':0x0,'width':0x0,'height':0x0},'*cropBox':{'x':0x0,'y':0x0,'width':0x0,'height':0x0}},this['Qa']=z2(this['tl']['bind'](this),0x12c),this['ns']=r8(()=>{!this['isConnected']||!this['_']||(this['ls'](),this['il'](),this['rl'](),this['cs'](),this['us']());},0x64);}firstUpdated(t){super['firstUpdated'](t),this['ls']();}['il'](){let _0x209650=function(_0xf2675e,_0x16e8c4){let t={};for(let _0x3450c9 of _0x16e8c4){let _0xc3d4bf=_0xf2675e[_0x3450c9];(Object['hasOwn'](_0xf2675e,_0x3450c9)||void 0x0!==_0xc3d4bf)&&(t[_0x3450c9]=_0xc3d4bf);}return t;}(this['$']['*editorTransformations'],Object['keys'](this['$']['*operations'])),_0x2dd398={...this['$']['*operations'],..._0x209650};this['$']['*operations']=_0x2dd398;}['ls'](){let t=this['Ja']['value'];if(!t)return;let _0x4b039a=t['getContext']('2d'),_0x4de74=this['offsetWidth'],_0x2d86ca=this['offsetHeight'],_0x26738c=window['devicePixelRatio'];t['style']['width']=_0x4de74+'px',t['style']['height']=_0x2d86ca+'px',t['width']=_0x4de74*_0x26738c,t['height']=_0x2d86ca*_0x26738c,_0x4b039a?.['scale'](_0x26738c,_0x26738c),this['fe']=t,this['e']=_0x4b039a;}['rl'](){if(!this['_']||!this['se'])return;let _0x240d46,t=this['se'],_0x40cbb0=this['$']['*padding'],{rotate:_0x48541c}=this['$']['*operations'],_0x2a984d=this['offsetWidth'],_0x2af148=this['offsetHeight'],_0x35a79c=t7({'width':t['naturalWidth'],'height':t['naturalHeight']},_0x48541c);if(_0x35a79c['width']>_0x2a984d-0x2*_0x40cbb0||_0x35a79c['height']>_0x2af148-0x2*_0x40cbb0){let _0x181294=_0x35a79c['width']/_0x35a79c['height'];if(_0x181294>_0x2a984d/_0x2af148){let _0x2579aa=_0x2a984d-0x2*_0x40cbb0,_0x34bce2=_0x2579aa/_0x181294;_0x240d46={'x':0x0+_0x40cbb0,'y':_0x40cbb0+(_0x2af148-0x2*_0x40cbb0)/0x2-_0x34bce2/0x2,'width':_0x2579aa,'height':_0x34bce2};}else{let _0x11ea4e=_0x2af148-0x2*_0x40cbb0,_0x42bb62=_0x11ea4e*_0x181294;_0x240d46={'x':_0x40cbb0+(_0x2a984d-0x2*_0x40cbb0)/0x2-_0x42bb62/0x2,'y':0x0+_0x40cbb0,'width':_0x42bb62,'height':_0x11ea4e};}}else{let {width:_0x170c35,height:_0x82aa0f}=_0x35a79c;_0x240d46={'x':_0x40cbb0+(_0x2a984d-0x2*_0x40cbb0)/0x2-_0x170c35/0x2,'y':_0x40cbb0+(_0x2af148-0x2*_0x40cbb0)/0x2-_0x82aa0f/0x2,'width':_0x170c35,'height':_0x82aa0f};}this['$']['*imageBox']=i7(_0x240d46);}['cs'](){let t=this['$']['*cropBox'],_0x17c309=this['$']['*imageBox'],{rotate:_0x432f01}=this['$']['*operations'],_0x423157=this['$']['*editorTransformations']['crop'],{width:_0x328471,x:_0x113aae,y:_0x54c85f}=_0x17c309;if(_0x423157){let {dimensions:[_0x22821f,_0x2d0c6b],coords:[_0x29aeca,_0x1eae45]}=_0x423157,{width:_0x5ad12c}=t7(this['Qe'],_0x432f01),_0x5e74e3=_0x328471/_0x5ad12c;t=K6(i7({'x':_0x113aae+_0x29aeca*_0x5e74e3,'y':_0x54c85f+_0x1eae45*_0x5e74e3,'width':_0x22821f*_0x5e74e3,'height':_0x2d0c6b*_0x5e74e3}),_0x17c309);}let _0x4b5ae1=this['$']['*currentAspectRatio'],_0x424fcc=_0x4b5ae1?_0x4b5ae1['width']/_0x4b5ae1['height']:void 0x0;if(!function(_0x25a9b7,_0x135339){return _0x25a9b7['x']>=_0x135339['x']&&_0x25a9b7['y']>=_0x135339['y']&&_0x25a9b7['x']+_0x25a9b7['width']<=_0x135339['x']+_0x135339['width']&&_0x25a9b7['y']+_0x25a9b7['height']<=_0x135339['y']+_0x135339['height'];}(t,_0x17c309)||_0x424fcc&&!function(_0xa102ba,_0x22222a){return Math['abs'](_0xa102ba['width']/_0xa102ba['height']-_0x22222a)<0.1;}(t,_0x424fcc)){let _0xeb2c79=_0x17c309['width']/_0x17c309['height'],_0x38dc12=_0x17c309['width'],_0x1f337d=_0x17c309['height'];_0x424fcc&&(_0xeb2c79>_0x424fcc?_0x38dc12=Math['min'](_0x17c309['height']*_0x424fcc,_0x17c309['width']):_0x1f337d=Math['min'](_0x17c309['width']/_0x424fcc,_0x17c309['height'])),t={'x':_0x17c309['x']+_0x17c309['width']/0x2-_0x38dc12/0x2,'y':_0x17c309['y']+_0x17c309['height']/0x2-_0x1f337d/0x2,'width':_0x38dc12,'height':_0x1f337d};}this['$']['*cropBox']=K6(i7(t),_0x17c309);}['md'](){let t=this['e'];if(!t)return;let _0x572d19=this['se'];if(!_0x572d19)return;let _0x5b1582=this['$']['*imageBox'],{mirror:_0xdc526e,flip:_0x5d6f16,rotate:_0x56f8a0}=this['$']['*operations'],_0x2fc19d=t7({'width':_0x5b1582['width'],'height':_0x5b1582['height']},_0x56f8a0);t['save'](),t['translate'](_0x5b1582['x']+_0x5b1582['width']/0x2,_0x5b1582['y']+_0x5b1582['height']/0x2),t['rotate'](_0x56f8a0*Math['PI']*-0x1/0xb4),t['scale'](_0xdc526e?-0x1:0x1,_0x5d6f16?-0x1:0x1),t['drawImage'](_0x572d19,-_0x2fc19d['width']/0x2,-_0x2fc19d['height']/0x2,_0x2fc19d['width'],_0x2fc19d['height']),t['restore']();}['us'](){if(!(this['_']&&this['se']&&this['fe']&&this['e']))return;let t=this['fe'];this['e']['clearRect'](0x0,0x0,t['width'],t['height']),this['md']();}['gd']({fromViewer:t}){this['se']&&(this['as']['value']?.['toggleThumbs'](!0x0),this['vd'](),setTimeout(()=>{this['className']=Z8({'uc-active_from_viewer':t,'uc-active_from_editor':!t,'uc-inactive_to_editor':!0x1});}));}['ol'](){let t=this['$']['*cropBox'],_0x50a5bb=this['$']['*imageBox'],{rotate:_0x242230}=this['$']['*operations'],{width:_0x13306a,height:_0x1a7122}=_0x50a5bb,{width:_0x3151c0,height:_0x138c9d}=t7(this['Qe'],_0x242230),{width:_0x3c1f2f,height:_0x4d347f}=t,_0x95127d=_0x13306a/_0x3151c0,_0x9104a8=_0x1a7122/_0x138c9d;return[s7(Math['round'](_0x3c1f2f/_0x95127d),0x1,_0x3151c0),s7(Math['round'](_0x4d347f/_0x9104a8),0x1,_0x138c9d)];}['yd'](){let t=this['$']['*cropBox'],_0x3efae0=this['$']['*imageBox'],{rotate:_0x420422}=this['$']['*operations'],{width:_0x18178b,height:_0x360522,x:_0x5060c4,y:_0x265541}=_0x3efae0,{width:_0x552947,height:_0x5e9d4a}=t7(this['Qe'],_0x420422),{x:_0x38faf5,y:_0x58a226}=t,_0x3722cb=_0x18178b/_0x552947,_0x215e9a=_0x360522/_0x5e9d4a,_0x4cd2ae=this['ol'](),_0x320094={'dimensions':_0x4cd2ae,'coords':[s7(Math['round']((_0x38faf5-_0x5060c4)/_0x3722cb),0x0,_0x552947-_0x4cd2ae[0x0]),s7(Math['round']((_0x58a226-_0x265541)/_0x215e9a),0x0,_0x5e9d4a-_0x4cd2ae[0x1])]};if(function(_0x4bc290){return!_0x4bc290||[({dimensions:t,coords:_0x6fdafd})=>[...t,..._0x6fdafd]['every'](_0x4e4a60=>Number['isInteger'](_0x4e4a60)&&Number['isFinite'](_0x4e4a60)),({dimensions:t,coords:_0x2517e0})=>t['every'](_0x2c2c56=>_0x2c2c56>0x0)&&_0x2517e0['every'](_0x2b973a=>_0x2b973a>=0x0)]['every'](t=>t(_0x4bc290));}(_0x320094))return _0x4cd2ae[0x0]!==_0x552947||_0x4cd2ae[0x1]!==_0x5e9d4a?_0x320094:void 0x0;console['error']('Cropper\x20is\x20trying\x20to\x20create\x20invalid\x20crop\x20object',{'payload':_0x320094});}tl(){if(!this['isConnected']||!this['Qe'])return;let {rotate:_0x21cc25,mirror:_0x5ea1eb,flip:_0x2aa3fe}=this['$']['*operations'],_0x12ea3f=this['yd'](),_0x4a3db6={...this['$']['*editorTransformations'],'crop':_0x12ea3f,'rotate':_0x21cc25,'mirror':_0x5ea1eb,'flip':_0x2aa3fe};this['$']['*editorTransformations']=_0x4a3db6;}setValue(t,_0x2fa79a){this['$']['*operations']={...this['$']['*operations'],[t]:_0x2fa79a},this['_']&&(this['rl'](),this['cs'](),this['us']());}getValue(t){return this['$']['*operations'][t];}async activate(t,{fromViewer:_0x56ec60}={}){if(!this['_']){this['_']=!0x0,await this['updateComplete'],this['ls'](),this['Qe']=t,this['removeEventListener']('transitionend',this['sl']);try{let _0x4ac04e=this['$']['*originalUrl'],_0x5091ac=this['$']['*editorTransformations'];this['se']=await this['bd'](_0x4ac04e,_0x5091ac),this['il'](),this['ns'](),this['gd']({'fromViewer':_0x56ec60});}catch(_0x2e36f5){console['error']('Failed\x20to\x20activate\x20cropper',{'error':_0x2e36f5}),this['telemetryManager']['sendEventError'](_0x2e36f5,'cloud\x20editor\x20image.\x20Failed\x20to\x20activate\x20cropper');}this['s']=new ResizeObserver(_0x337f41=>{let [_0x56aefd]=_0x337f41;_0x56aefd&&_0x56aefd['contentRect']['width']>0x0&&_0x56aefd['contentRect']['height']>0x0&&this['_']&&this['se']&&this['ns']();}),this['s']['observe'](this);}}deactivate({reset:t=!0x1}={}){this['_']&&(!t&&this['tl'](),this['_']=!0x1,this['wd'](),this['className']=Z8({'uc-active_from_viewer':!0x1,'uc-active_from_editor':!0x1,'uc-inactive_to_editor':!0x0}),this['as']['value']?.['toggleThumbs'](!0x1),this['addEventListener']('transitionend',this['sl'],{'once':!0x0}),this['s']?.['disconnect']());}['wd'](){let t=this['ol'](),_0x322a1b=this['$']['*cropBox'],_0xbb4566=Math['min'](this['offsetWidth'],t[0x0])/_0x322a1b['width'],_0x3547a1=Math['min'](this['offsetHeight'],t[0x1])/_0x322a1b['height'],_0x25b6cf=Math['min'](_0xbb4566,_0x3547a1),_0x4ed709=_0x322a1b['x']+_0x322a1b['width']/0x2,_0x32e420=_0x322a1b['y']+_0x322a1b['height']/0x2;this['style']['transform']='scale('+_0x25b6cf+')\x20translate('+(this['offsetWidth']/0x2-_0x4ed709)/_0x25b6cf+'px,\x20'+(this['offsetHeight']/0x2-_0x32e420)/_0x25b6cf+'px)',this['style']['transformOrigin']=_0x4ed709+'px\x20'+_0x32e420+'px';}['vd'](){let t=this['$']['*cropBox'],_0x1f925c=t['x']+t['width']/0x2,_0x496c63=t['y']+t['height']/0x2;this['style']['transform']='scale(1)',this['style']['transformOrigin']=_0x1f925c+'px\x20'+_0x496c63+'px';}['sl'](){this['_']||(this['se']=null);}async['bd'](t,_0x5fc188){let _0x217917=this['offsetWidth'];_0x5fc188={..._0x5fc188,'crop':void 0x0,'rotate':void 0x0,'flip':void 0x0,'mirror':void 0x0};let _0x9d77ed=await this['proxyUrl'](t9(t,_0x217917,_0x5fc188)),{promise:_0x5098ec,cancel:_0x55742e,image:_0x447436}=z7(_0x9d77ed),_0x2cdfe0=this['$t'](_0x9d77ed);return _0x447436['addEventListener']('load',_0x2cdfe0,{'once':!0x0}),_0x447436['addEventListener']('error',_0x2cdfe0,{'once':!0x0}),this['b']?.(),this['b']=_0x55742e,_0x5098ec['then'](()=>_0x447436)['catch'](_0x2d41c3=>(console['error']('Failed\x20to\x20load\x20image',{'error':_0x2d41c3}),this['$']['*networkProblems']=!0x0,_0x447436));}$t(t){let _0xbe04eb='crop',_0x2428c1=this['$']['*loadingOperations'],_0x3ca81c=_0x2428c1['get'](_0xbe04eb);return _0x3ca81c||(_0x3ca81c=new Map(),_0x2428c1['set'](_0xbe04eb,_0x3ca81c)),_0x3ca81c['get'](t)||(_0x3ca81c['set'](t,!0x0),this['$']['*loadingOperations']=_0x2428c1),()=>{let _0x308824=_0x2428c1['get'](_0xbe04eb);_0x308824?.['has'](t)&&(_0x308824['delete'](t),this['$']['*loadingOperations']=_0x2428c1);};}initCallback(){super['initCallback'](),this['sub']('*imageBox',()=>{this['us']();}),this['sub']('*cropBox',()=>{this['se']&&this['Qa']();}),this['sub']('*currentAspectRatio',()=>{this['cs']();}),setTimeout(()=>{this['sub']('*networkProblems',t=>{t||this['_']&&this['Qe']&&this['activate'](this['Qe'],{'fromViewer':!0x1});});},0x0);}disconnectedCallback(){super['disconnectedCallback'](),this['s']?.['disconnect'](),this['se']&&(this['se']=null);}['render'](){return O2`<canvas class="uc-canvas" ${Q7(this['Ja'])}></canvas><uc-crop-frame ${Q7(this['as'])}></uc-crop-frame>`;}};function s9(_0x373008,_0x3a434f,t){let _0x302feb=t-0x1,_0x156323=new Array(t);for(let _0x3c2079=_0x302feb;_0x3c2079>=0x0;_0x3c2079-=0x1)_0x156323[_0x3c2079]=Math['ceil']((_0x3c2079*_0x3a434f+(_0x302feb-_0x3c2079)*_0x373008)/_0x302feb);return _0x156323;}function n9(_0x2e2d40,_0x3cf9fc){let t=U5[_0x2e2d40]['keypointsNumber'],{range:_0x265004,zero:_0x80d60c}=U5[_0x2e2d40];return[...new Set([...s9(_0x265004[0x0],_0x80d60c,t+0x1),...s9(_0x80d60c,_0x265004[0x1],t+0x1),_0x80d60c,_0x3cf9fc])]['sort']((_0x1f7387,_0x4bf94a)=>_0x1f7387-_0x4bf94a);}_1([W2()],i9['prototype'],'se',0x2);var r9=class extends t6{constructor(){super(),this['_']=!0x1,this['ds']=!0x0,this['n']='initial',this['nl']={},this['Ue']=[],this['al']=0x0,this['cl']=L7(),this['gr']=L7(),this['classList']['add']('uc-inactive_to_cropper'),this['ll']=z2(async(t,_0x17e4fc,_0xf35f7b)=>{let _0x1ba15e=()=>!this['ul'](t,_0x17e4fc)||this['Pt']!==_0xf35f7b||!!this['Ue']['find'](_0x3a5032=>_0x3a5032['value']===_0xf35f7b);if(_0x1ba15e())return;let _0x54f209=await this['dl'](t,_0xf35f7b),_0x521b30=new Image();_0x521b30['src']=_0x54f209['src'];let _0x210e19=this['$t'](_0x54f209['src']);_0x521b30['addEventListener']('load',_0x210e19,{'once':!0x0}),_0x521b30['addEventListener']('error',_0x210e19,{'once':!0x0}),_0x54f209['image']=_0x521b30,_0x521b30['classList']['add']('uc-fader-image'),_0x521b30['addEventListener']('load',()=>{if(_0x1ba15e())return;let _0x57c366=this['Ue'],_0x2a9979=_0x57c366['findIndex'](_0xd05874=>_0xd05874['value']>_0xf35f7b);-0x1===_0x2a9979&&(_0x2a9979=_0x57c366['length']);let _0x43bb25=_0x57c366[_0x2a9979]?.['image'],_0x55a544=this['gr']['value'];!_0x55a544||_0x43bb25&&!_0x55a544['contains'](_0x43bb25)||(_0x57c366['splice'](_0x2a9979,0x0,_0x54f209),_0x43bb25?_0x55a544['insertBefore'](_0x521b30,_0x43bb25):_0x55a544['appendChild'](_0x521b30),this['fs'](t,_0xf35f7b));},{'once':!0x0}),_0x521b30['addEventListener']('error',()=>{this['$']['*networkProblems']=!0x0;},{'once':!0x0});},0x258);}$t(t){let _0x29ccc8=this['n'],_0x4d599c=this['$']['*loadingOperations'];_0x4d599c['has'](_0x29ccc8)||_0x4d599c['set'](_0x29ccc8,new Map());let _0x2183ca=_0x4d599c['get'](_0x29ccc8);return _0x2183ca&&!_0x2183ca['get'](t)&&(_0x2183ca['set'](t,!0x0),this['$']['*loadingOperations']=_0x4d599c),()=>{let _0x2201ed=_0x4d599c['get'](_0x29ccc8);_0x2201ed?.['has'](t)&&(_0x2201ed['delete'](t),this['$']['*loadingOperations']=_0x4d599c);};}['pl'](){window['cancelAnimationFrame'](this['al']),this['al']=window['requestAnimationFrame'](()=>{for(let t of this['Ue']){let {image:_0x210d97}=t;_0x210d97&&(_0x210d97['style']['opacity']=t['opacity']['toString'](),_0x210d97['style']['zIndex']=t['zIndex']['toString']());}});}['Je']({url:t=this['Dt'],filter:_0xb2e244=this['m']??void 0x0,operation:_0x24d2aa,value:_0x1f595b}={}){if(!t)throw new Error('URL\x20is\x20not\x20defined');let _0x3061fe={...this['nl']};_0x24d2aa&&('filter'===_0x24d2aa?_0xb2e244&&'number'==typeof _0x1f595b&&(_0x3061fe['filter']={'name':_0xb2e244,'amount':_0x1f595b}):'number'==typeof _0x1f595b&&(_0x3061fe[_0x24d2aa]=_0x1f595b));let _0x1024dc=this['offsetWidth'];return this['proxyUrl'](t9(t,_0x1024dc,_0x3061fe));}async['dl'](t,_0x3951d0){return{'src':await this['Je']({'operation':t,'value':_0x3951d0}),'image':void 0x0,'opacity':0x0,'zIndex':0x0,'value':_0x3951d0};}['ul'](t,_0x4bf0a3){return this['n']===t&&this['m']===_0x4bf0a3;}set(t){let _0xed3b6a='string'==typeof t?parseInt(t,0xa):t;!function(_0x2710de){return'string'==typeof _0x2710de&&_0x2710de in U5;}(this['n'])||!Number['isFinite'](_0xed3b6a)||(this['fs'](this['n'],_0xed3b6a),this['ll'](this['n'],this['m'],_0xed3b6a));}['fs'](t,_0x50bbc8){this['n']=t,this['Pt']=_0x50bbc8;let {zero:_0x4ed0a7}=U5[t],_0x121059=this['Ue']['map'](_0x4569da=>_0x4569da['value']),_0x2c90a0=function(_0x1d9373,_0x2dae06,t){let _0xdb01d4=function(_0x2e8107){let _0x3cd2ac=[];for(let t=0x0;t<_0x2e8107['length']-0x1;t+=0x1){let _0x23ab96=_0x2e8107[t],_0x78c7d1=_0x2e8107[t+0x1];'number'==typeof _0x23ab96&&'number'==typeof _0x78c7d1&&_0x3cd2ac['push']([_0x23ab96,_0x78c7d1]);}return _0x3cd2ac;}(_0x1d9373)['find'](([_0x517b4a,_0xe15345])=>_0x517b4a<=_0x2dae06&&_0x2dae06<=_0xe15345);if(!_0xdb01d4)return _0x1d9373['map'](()=>0x0);let [_0x634be6,_0x9affb9]=_0xdb01d4;return _0x1d9373['map'](_0x2c2a88=>{let _0x5d1055=Math['abs'](_0x634be6-_0x9affb9)||0x1,_0x383976=Math['abs'](_0x2dae06-_0x634be6)/_0x5d1055;return _0x634be6===_0x2c2a88?_0x2dae06>t?0x1:0x1-_0x383976:_0x9affb9===_0x2c2a88?_0x2dae06>=t?_0x383976:0x1:0x0;});}(_0x121059,_0x50bbc8,_0x4ed0a7),_0x1534b0=function(_0x3c3c3e,_0x12b744){return _0x3c3c3e['map']((t,_0x53e94a)=>t<_0x12b744?_0x3c3c3e['length']-_0x53e94a:_0x53e94a);}(_0x121059,_0x4ed0a7);this['Ue']['forEach']((_0x4c91f5,_0x10e789)=>{let _0x512b0f=_0x2c90a0[_0x10e789],_0x378e04=_0x1534b0[_0x10e789];'number'==typeof _0x512b0f&&(_0x4c91f5['opacity']=_0x512b0f),'number'==typeof _0x378e04&&(_0x4c91f5['zIndex']=_0x378e04);}),this['pl']();}['hl'](){let t=new Image();return t['classList']['add']('uc-fader-image','uc-fader-image--preview'),t['style']['opacity']='0',t;}async['Td'](){this['a']=this['a']||this['hl']();let t=this['a'];t&&this['fl'](t);let {images:_0xae42a,promise:_0x52c6d3,cancel:_0x2083f4}=Y7(this['Ue']['map'](_0x2a3270=>_0x2a3270['src']));_0xae42a['forEach'](_0x58aeaa=>{let _0x3bc42e=this['$t'](_0x58aeaa['src']);_0x58aeaa['addEventListener']('load',_0x3bc42e),_0x58aeaa['addEventListener']('error',_0x3bc42e);}),this['ps']=()=>{_0x2083f4(),this['ps']=void 0x0;};let _0x206aae=this['n'],_0x2bce44=this['m'];if(await _0x52c6d3,this['_']&&this['ul'](_0x206aae,_0x2bce44)){let _0x4e1151=this['gr']['value'];if(!_0x4e1151)return;_0x4e1151['replaceChildren'](),this['Ue']['forEach']((_0x1bac1c,_0x3c1205)=>{let _0x19c1cf=_0xae42a[_0x3c1205];_0x19c1cf&&(_0x19c1cf['classList']['add']('uc-fader-image'),_0x1bac1c['image']=_0x19c1cf,_0x4e1151['appendChild'](_0x19c1cf));}),this['pl']();}}async setTransformations(t){if(this['nl']=t,this['a']){let _0x27fa30=await this['Je'](),_0x1587dc=this['$t'](_0x27fa30);this['a']['src']=_0x27fa30,this['a']['addEventListener']('load',_0x1587dc,{'once':!0x0}),this['a']['addEventListener']('error',_0x1587dc,{'once':!0x0}),this['a']['style']['opacity']='1',this['a']['addEventListener']('error',()=>{this['$']['*networkProblems']=!0x0;},{'once':!0x0});}}async['preload']({url:t,filter:_0x50397a,operation:_0x28b410,value:_0x478dcd}){if(!_0x28b410||'number'!=typeof _0x478dcd)return;this['hs']?.();let _0x3cb9d8=n9(_0x28b410,_0x478dcd),{cancel:_0x3bbdce}=Y7(await Promise['all'](_0x3cb9d8['map'](_0x405094=>this['Je']({'url':t,'filter':_0x50397a,'operation':_0x28b410,'value':_0x405094}))));this['hs']=_0x3bbdce;}['Ed'](t){let _0x26ddca=this['a']||this['hl']();if(this['fl'](_0x26ddca),this['a']=_0x26ddca,_0x26ddca['src']===t)return _0x26ddca['style']['opacity']='1',_0x26ddca['style']['transform']='scale(1)',void(this['className']=Z8({'uc-active_from_viewer':this['yi'],'uc-active_from_cropper':!this['yi'],'uc-inactive_to_cropper':!0x1}));_0x26ddca['style']['opacity']='0';let _0x5afa96=this['$t'](t);_0x26ddca['addEventListener']('error',_0x5afa96,{'once':!0x0}),_0x26ddca['src']=t,_0x26ddca['addEventListener']('load',()=>{_0x5afa96(),_0x26ddca&&(_0x26ddca['style']['opacity']='1',_0x26ddca['style']['transform']='scale(1)',this['className']=Z8({'uc-active_from_viewer':this['yi'],'uc-active_from_cropper':!this['yi'],'uc-inactive_to_cropper':!0x1}));},{'once':!0x0}),_0x26ddca['addEventListener']('error',()=>{this['$']['*networkProblems']=!0x0;},{'once':!0x0});}async activate({url:t,operation:_0x1702bd,value:_0x4a08ad,filter:_0x52f403,fromViewer:_0x5cb37a}){if(this['_']=!0x0,this['ds']=!0x1,await this['updateComplete'],this['Dt']=t,this['n']=_0x1702bd??'initial',this['Pt']=_0x4a08ad,this['m']=_0x52f403,this['yi']=_0x5cb37a,'number'!=typeof _0x4a08ad&&!_0x52f403){let _0x235f54=await this['Je']({'operation':_0x1702bd,'value':_0x4a08ad});return this['Ed'](_0x235f54),void this['ms']();}!_0x1702bd||'number'!=typeof _0x4a08ad||(this['Ue']=await Promise['all'](n9(_0x1702bd,_0x4a08ad)['map'](_0x3a9c92=>this['dl'](_0x1702bd,_0x3a9c92))),this['fs'](_0x1702bd,_0x4a08ad),this['Td']());}deactivate({hide:t=!0x0}={}){this['_']=!0x1,this['ps']?.(),this['hs']?.(),t&&!this['ds']?(this['ds']=!0x0,this['a']&&(this['a']['style']['transform']='scale(1)'),this['className']=Z8({'uc-active_from_viewer':!0x1,'uc-active_from_cropper':!0x1,'uc-inactive_to_cropper':!0x0}),this['addEventListener']('transitionend',()=>{this['ms']();},{'once':!0x0})):this['ms']();}['fl'](t){let _0x4360b4=this['cl']['value'];_0x4360b4&&(_0x4360b4['contains'](t)||_0x4360b4['appendChild'](t));}['ms'](){this['gr']['value']?.['replaceChildren']();}['render'](){return O2`<div class="uc-fader-preview-host" ${Q7(this['cl'])}></div><div class="uc-fader-layers-host" ${Q7(this['gr'])}></div>`;}},o9='important',a9='\x20!'+o9,c9=s6(class extends n6{constructor(_0x35a7a9){if(super(_0x35a7a9),_0x35a7a9['type']!==e6||'style'!==_0x35a7a9['name']||_0x35a7a9['strings']?.['length']>0x2)throw Error('The\x20`styleMap`\x20directive\x20must\x20be\x20used\x20in\x20the\x20`style`\x20attribute\x20and\x20must\x20be\x20the\x20only\x20part\x20in\x20the\x20attribute.');}['render'](_0x5ad35b){return Object['keys'](_0x5ad35b)['reduce']((_0x164676,t)=>{let _0x2da807=_0x5ad35b[t];return null==_0x2da807?_0x164676:_0x164676+((t=t['includes']('-')?t:t['replace'](/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,'-$&')['toLowerCase']())+':'+_0x2da807+';');},'');}update(_0x32213f,[_0x195f50]){let {style:t}=_0x32213f['element'];if(void 0x0===this['ft'])return this['ft']=new Set(Object['keys'](_0x195f50)),this['render'](_0x195f50);for(let _0x3d56b0 of this['ft'])_0x195f50[_0x3d56b0]??(this['ft']['delete'](_0x3d56b0),_0x3d56b0['includes']('-')?t['removeProperty'](_0x3d56b0):t[_0x3d56b0]=null);for(let _0x5c89dd in _0x195f50){let _0xcee272=_0x195f50[_0x5c89dd];if(null!=_0xcee272){this['ft']['add'](_0x5c89dd);let _0x1d1e45='string'==typeof _0xcee272&&_0xcee272['endsWith'](a9);_0x5c89dd['includes']('-')||_0x1d1e45?t['setProperty'](_0x5c89dd,_0x1d1e45?_0xcee272['slice'](0x0,-0xb):_0xcee272,_0x1d1e45?o9:''):t[_0x5c89dd]=_0xcee272;}}return w2;}}),l9=class extends t6{constructor(){super(),this['gs']=0x0,this['vr']=L7(),this['gl']=L7(),this['vl']=L7(),this['disabled']=!0x1,this['min']=0x0,this['max']=0x64,this['defaultValue']=0x0,this['zero']=0x0,this['$e']=0x0,this['Cd']=t=>{t['stopPropagation']();let _0x23ac65=this['yl'](t);null!==_0x23ac65&&(this['vs'](_0x23ac65),this['xd']('slider-input',_0x23ac65));},this['Sd']=t=>{t['stopPropagation']();let _0x5cc9e4=this['yl'](t);null!==_0x5cc9e4&&this['vs'](_0x5cc9e4);},this['bl']=()=>{this['style']['setProperty']('--color-effect','var(--hover-color-rgb)');},this['wl']=()=>{this['style']['setProperty']('--color-effect','var(--idle-color-rgb)');},this['setAttribute']('with-effects','');}['xd'](t,_0x35c6d6){this['dispatchEvent'](new CustomEvent(t,{'detail':{'value':_0x35c6d6},'bubbles':!0x0,'composed':!0x0}));}firstUpdated(t){super['firstUpdated'](t),this['gs']=Number['parseInt'](window['getComputedStyle'](this)['getPropertyValue']('--l-thumb-size'),0xa)||0x0,this['Tl'](this['$e']),this['ys'](),this['s']=new ResizeObserver(()=>{this['ys'](),this['yr'](this['$e']);}),this['s']['observe'](this);let _0x21cead=this['vr']['value'];_0x21cead?.['addEventListener']('focus',this['bl']),_0x21cead?.['addEventListener']('blur',this['wl']),window['setTimeout'](()=>{this['yr'](this['$e']);},0x0);}willUpdate(t){super['willUpdate'](t),t['has']('defaultValue')&&this['defaultValue']!==this['$e']&&this['vs'](this['defaultValue']),(t['has']('min')||t['has']('max'))&&this['hasUpdated']&&(this['ys'](),this['yr'](this['$e'])),t['has']('zero')&&this['hasUpdated']&&this['El'](this['$e']);}['yr'](t){this['El'](t);let _0x492ff3=this['max']-this['min'];if(0x0===_0x492ff3)return;let {width:_0x52aa57}=this['getBoundingClientRect'](),_0x4cd0ca=0x64/_0x492ff3*(t-this['min'])*(_0x52aa57-this['gs'])/0x64;window['requestAnimationFrame'](()=>{let _0x5e34ca=this['gl']['value'];_0x5e34ca&&(_0x5e34ca['style']['transform']='translateX('+_0x4cd0ca+'px)');});}['El'](t){if(!this['bi'])return;let _0x9d2bde=this['max']-this['min'];if(0x0===_0x9d2bde)return;this['bi']['style']['opacity']=t===this['zero']?'0':'1';let {width:_0x3826da}=this['getBoundingClientRect'](),_0x3011b2=0x64/_0x9d2bde*(this['zero']-this['min'])*(_0x3826da-this['gs'])/0x64;window['requestAnimationFrame'](()=>{this['bi']&&(this['bi']['style']['transform']='translateX('+_0x3011b2+'px)');});}['ys'](){let _0x260106=this['vl']['value'];if(!_0x260106)return;let {width:_0x557a50}=_0x260106['getBoundingClientRect'](),_0x22d31d=Math['ceil'](_0x557a50/0x2),_0x1dbcad=Math['ceil'](_0x22d31d/0xf)-0x2;if(this['ml']===_0x1dbcad)return;let _0x3212f0=document['createDocumentFragment'](),_0x14d8ad=document['createElement']('div'),_0x3b8268=document['createElement']('div');_0x14d8ad['className']='uc-minor-step',_0x3b8268['className']='uc-border-step',_0x3212f0['appendChild'](_0x3b8268);for(let _0x34ea73=0x0;_0x34ea73<_0x1dbcad;_0x34ea73+=0x1)_0x3212f0['appendChild'](_0x14d8ad['cloneNode']());_0x3212f0['appendChild'](_0x3b8268['cloneNode']());for(let _0x16b741=0x0;_0x16b741<_0x1dbcad;_0x16b741+=0x1)_0x3212f0['appendChild'](_0x14d8ad['cloneNode']());_0x3212f0['appendChild'](_0x3b8268['cloneNode']());let _0x3295b2=document['createElement']('div');_0x3295b2['className']='uc-zero-dot',_0x3212f0['appendChild'](_0x3295b2),this['bi']=_0x3295b2,_0x260106['innerHTML']='',_0x260106['appendChild'](_0x3212f0),this['ml']=_0x1dbcad;}disconnectedCallback(){super['disconnectedCallback']();let t=this['vr']['value'];t?.['removeEventListener']('focus',this['bl']),t?.['removeEventListener']('blur',this['wl']),this['s']?.['disconnect'](),this['s']=void 0x0;}['vs'](t){Number['isFinite'](t)&&(this['$e']=t,this['hasUpdated']&&(this['Tl'](t),this['yr'](t)));}['Tl'](t){let _0x2c070f=this['vr']['value'];_0x2c070f&&(_0x2c070f['value']=String(t));}['yl'](t){let _0x181e25=t['currentTarget'];if(!_0x181e25)return null;let _0x320d60=Number['parseInt'](_0x181e25['value'],0xa);return Number['isFinite'](_0x320d60)?_0x320d60:null;}['render'](){return O2`<div class="uc-steps" ${Q7(this['vl'])}></div><div class="uc-thumb" ${Q7(this['gl'])}></div><input class="uc-input" type="range" ${Q7(this['vr'])} .min=${String(this['min'])} .max=${String(this['max'])} .value=${String(this['$e'])} ?disabled=${this['disabled']} @input=${this['Cd']} @change=${this['Sd']} />`;}};_1([q2({'type':Boolean,'reflect':!0x0})],l9['prototype'],'disabled',0x2),_1([q2({'type':Number})],l9['prototype'],'min',0x2),_1([q2({'type':Number})],l9['prototype'],'max',0x2),_1([q2({'type':Number,'attribute':!0x1})],l9['prototype'],'defaultValue',0x2),_1([q2({'type':Number})],l9['prototype'],'zero',0x2),_1([W2()],l9['prototype'],'$e',0x2);var h9='original',u9=class extends t6{constructor(){super(...arguments),this['state']={'operation':'filter','filter':void 0x0,'originalUrl':'','disabled':!0x1,'min':0x0,'max':0x64,'value':0x0,'defaultValue':0x0,'zero':0x0},this['bs']=t=>{let {value:_0x5da3fa}=t['detail'];this['$']['*faderEl']?.['set'](_0x5da3fa),this['state']={...this['state'],'value':_0x5da3fa};};}setOperation(t,_0x3ddc7c){this['state']={...this['state'],'operation':t,'filter':_0x3ddc7c},this['Ad']();let _0x4b5b47=this['$']['*faderEl'],_0x12dce4=this['state']['originalUrl']||this['$']['*originalUrl'];_0x4b5b47&&_0x12dce4&&_0x4b5b47['activate']({'url':_0x12dce4,'operation':this['state']['operation'],'value':this['state']['filter']===h9?void 0x0:this['state']['value'],'filter':this['state']['filter']===h9?void 0x0:this['state']['filter'],'fromViewer':!0x1});}['Ad'](){let t=this['state']['operation'],{range:_0x1b69e9,zero:_0x29ea30}=U5[t],[_0x569b07,_0x4db62a]=_0x1b69e9;this['state']={...this['state'],'min':_0x569b07,'max':_0x4db62a,'zero':_0x29ea30};let _0x228446=this['$']['*editorTransformations'][t];if('filter'===t){let _0xc6fc30=Number(_0x4db62a),_0x4709e2=_0x228446;if(_0x4709e2){let {name:_0x376b5d,amount:_0x53f534}=_0x4709e2;_0xc6fc30=_0x376b5d===this['state']['filter']?_0x53f534:_0x4db62a;}return void(this['state']={...this['state'],'value':_0xc6fc30,'defaultValue':_0xc6fc30});}let _0xede177=typeof _0x228446<'u'?_0x228446:_0x29ea30;this['state']={...this['state'],'value':_0xede177,'defaultValue':_0xede177};}['apply'](){let _0x5aff8b={...this['$']['*editorTransformations']};'filter'===this['state']['operation']?this['state']['filter']&&this['state']['filter']!==h9?_0x5aff8b['filter']={'name':this['state']['filter'],'amount':this['state']['value']}:delete _0x5aff8b['filter']:_0x5aff8b[this['state']['operation']]=this['state']['value'],this['$']['*editorTransformations']=_0x5aff8b;}['cancel'](){this['$']['*faderEl']?.['deactivate']({'hide':!0x1});}initCallback(){super['initCallback'](),this['sub']('*originalUrl',t=>{t&&(this['state']={...this['state'],'originalUrl':t});});}updated(t){if(super['updated'](t),t['has']('state')){let _0x16352a=(this['state']['filter']??this['state']['operation'])+'\x20'+this['state']['value'];this['$']['*operationTooltip']=_0x16352a;}}['render'](){return O2`<uc-slider-ui .disabled=${this['state']['disabled']} .min=${this['state']['min']} .max=${this['state']['max']} .defaultValue=${this['state']['defaultValue']} .zero=${this['state']['zero']} @slider-input=${this['bs']} ></uc-slider-ui>`;}};function d9(_0x173f61){if(!_0x173f61)return null;let _0x3486fa=_0x173f61['match'](/^([A-Za-z]+)\s+(\d+)$/);if(!_0x3486fa)return null;let [,t,_0x55934f]=_0x3486fa;return!t||typeof _0x55934f>'u'?null:{'filter':t,'value':Number(_0x55934f)};}_1([W2()],u9['prototype'],'state',0x2);var f9=class extends t6{constructor(){super(...arguments),this['active']=!0x1,this['title']='',this['icon']='',this['titleProp']='';}get buttonClasses(){let t=this['active'];return{'uc-active':t,'uc-not_active':!t};}['xl'](){let t=this['buttonClasses'];for(let [_0x4e292e,_0x2f22a2]of Object['entries'](t))this['classList']['toggle'](_0x4e292e,_0x2f22a2);}['onClick'](t){}connectedCallback(){super['connectedCallback'](),this['xl']();}updated(t){super['updated'](t),t['has']('active')&&this['xl']();}['render'](){let t=this['onClick'],_0x47517f=this['title'];return O2`<button role="option" type="button" aria-label=${K8(this['titleProp'])} title=${K8(this['titleProp'])} @click=${t} ><uc-icon name=${this['icon']}></uc-icon><div class="uc-title" ?hidden=${!_0x47517f}>${_0x47517f}</div></button>`;}};_1([W2()],f9['prototype'],'active',0x2),_1([W2()],f9['prototype'],'title',0x2),_1([W2()],f9['prototype'],'icon',0x2),_1([W2()],f9['prototype'],'titleProp',0x2);var m9=class extends f9{initCallback(){super['initCallback'](),this['icon']='arrow-dropdown',this['sub']('*currentAspectRatio',_0x3c9cab=>{let t=this['kd'](_0x3c9cab);this['title']=t,this['titleProp']=t;});}['onClick'](){this['$']['*showListAspectRatio']=!0x0;}['kd'](_0x15dd30){return _0x15dd30?_0x15dd30['hasFreeform']?this['l10n']('freeform-crop'):this['l10n']('crop-to-shape',{'value':_0x15dd30['width']+':'+_0x15dd30['height']}):'';}['render'](){let _0x59db6a=this['onClick'],t=this['title'];return O2`<button role="option" type="button" class=${Y8(this['buttonClasses'])} aria-label=${K8(this['titleProp'])} title=${K8(this['titleProp'])} @click=${_0x59db6a} ><div class="uc-title" ?hidden=${!t}>${t}</div><uc-icon name=${this['icon']}></uc-icon></button>`;}},p9=class extends f9{constructor(){super(...arguments),this['X']=null;}get aspectRatio(){return this['X'];}set aspectRatio(t){if(this['X']===t)return;let _0xe5d953=this['X'];this['X']=t,this['requestUpdate']('aspectRatio',_0xe5d953),t?this['Cl'](t):(this['removeAttribute']('uc-aspect-ratio-freeform'),this['title']='',this['titleProp']='');}initCallback(){super['initCallback'](),this['X']&&this['Cl'](this['X']),this['sub']('*currentAspectRatio',t=>{this['active']=t&&t['id']===this['X']?.['id']||t?.['width']===this['X']?.['width']&&t?.['height']===this['X']?.['height'];});}['onClick'](){this['$']['*currentAspectRatio']?.['id']!==this['X']?.['id']&&(this['$']['*currentAspectRatio']=this['X']);}['Cl'](t){if(!this['isConnected'])return;let _0x11012d=!!t['hasFreeform'];this['toggleAttribute']('uc-aspect-ratio-freeform',_0x11012d),(((()=>{let _0x34ba55=_0x11012d?this['l10n']('custom'):t['width']+':'+t['height'];this['title']=_0x34ba55;})()),((()=>{let _0x2d73b7=this['l10n']('a11y-cloud-editor-apply-aspect-ratio',{'name':_0x11012d?this['l10n']('custom')['toLowerCase']():this['l10n']('crop-to-shape',{'value':t['width']+':'+t['height']})['toLowerCase'](),'value':''});this['titleProp']=_0x2d73b7;})()),_0x11012d||this['requestUpdate']());}['Md'](){let t=this['X'];if(!t||t['hasFreeform'])return O2`<uc-icon name=${this['icon']}></uc-icon>`;let {width:_0x10dabf,height:_0x82a681}=(_0x5b3ed5=>{let _0x49e906=0xc,t=0xc;return _0x5b3ed5['width']/_0x5b3ed5['height']>=0x1?(_0x49e906=0xc,t=Math['round'](0xc*_0x5b3ed5['height']/_0x5b3ed5['width'])):(t=0xc,_0x49e906=Math['round'](0xc*_0x5b3ed5['width']/_0x5b3ed5['height'])),{'width':_0x49e906,'height':t};})(t);return O2`<uc-icon><svg viewBox="0 0 ${0x10} ${0x10}" aria-hidden="true" focusable="false" ><rect x=${(0x10-_0x10dabf)/0x2} y=${(0x10-_0x82a681)/0x2} width=${_0x10dabf} height=${_0x82a681} rx="2" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linejoin="round" ></rect></svg></uc-icon>`;}['render'](){let t=this['onClick'],_0xcf94d4=this['title'];return O2`<button role="option" type="button" class=${Y8(this['buttonClasses'])} aria-label=${K8(this['titleProp'])} title=${K8(this['titleProp'])} @click=${t} >${this['Md']()}<div class="uc-title" ?hidden=${!_0xcf94d4}>${_0xcf94d4}</div></button>`;}};_1([q2({'attribute':!0x1})],p9['prototype'],'aspectRatio',0x1);var g9=class extends f9{constructor(){super(...arguments),this['operation']=void 0x0;}willUpdate(t){super['willUpdate'](t),this['operation']?(this['titleProp']=this['l10n']('a11y-cloud-editor-apply-crop',{'name':this['l10n'](this['operation'])['toLowerCase']()}),this['icon']=this['operation']):(this['icon']='',this['titleProp']='');}['onClick'](t){if(!this['operation'])return;let _0x3d6299=this['$']['*cropperEl'],_0x5a2579=_0x3d6299['getValue'](this['operation']),_0x3e5918=function(_0x146ece,_0x50178d){if('rotate'===_0x146ece)return function(_0x437878){let _0x1b04af=_0x437878+0x5a;return _0x1b04af=_0x1b04af>=0x168?0x0:_0x1b04af,_0x1b04af;}('number'==typeof _0x50178d?_0x50178d:0x0);if('mirror'===_0x146ece||'flip'===_0x146ece)return!_0x50178d;throw new Error('Unsupported\x20operation:\x20'+_0x146ece);}(this['operation'],_0x5a2579);this['telemetryManager']['sendEventCloudImageEditor'](t,this['$']['*tabId'],{'operation':this['operation'],'next':_0x3e5918,'prev':_0x5a2579}),_0x3d6299['setValue'](this['operation'],_0x3e5918);}};_1([q2({'type':String})],g9['prototype'],'operation',0x2);var O9=class extends f9{constructor(){super(...arguments),this['n']='',this['m']='',this['wi']='',this['br']=0x0,this['a']=null,this['Nt']=!0x1,this['isOriginal']=!0x1,this['Sl']=0x14;}get filter(){return this['m'];}set filter(t){let _0x2852c9=t??'';if(this['m']===_0x2852c9)return;let _0x28dfb5=this['m'];this['m']=_0x2852c9,this['n']='filter',this['isOriginal']=_0x2852c9===h9,this['icon']=this['isOriginal']?'original':'slider',this['Sl']=this['isOriginal']?0x28:0x14,this['requestUpdate']('filter',_0x28dfb5),this['isConnected']&&this['Al'](_0x2852c9);}['onClick'](t){if(this['active'])this['isOriginal']||(this['$']['*sliderEl']['setOperation'](this['n'],this['m']),this['$']['*showSlider']=!0x0);else{let _0x4d5314=this['$']['*sliderEl'];_0x4d5314['setOperation'](this['n'],this['m']),_0x4d5314['apply']();}this['telemetryManager']['sendEventCloudImageEditor'](t,this['$']['*tabId'],{'operation':d9(this['$']['*operationTooltip'])}),this['$']['*currentFilter']=this['m'];}['Od'](){let t=parseInt(window['getComputedStyle'](this)['getPropertyValue']('--l-base-min-width'),0xa),_0x547997=Number['isFinite'](t)&&t>0x0?t:this['Sl']||0x20,_0x4f6937=window['devicePixelRatio'],_0x2edd8b=Math['ceil'](_0x4f6937*_0x547997),_0x44a238=_0x4f6937>=0x2?'lightest':'normal',_0x302b91={...this['$']['*editorTransformations']};return _0x302b91[this['n']]=this['m']!==h9?{'name':this['m'],'amount':0x64}:void 0x0,E5(this['wi'],p5(x5,k5(_0x302b91),'quality/'+_0x44a238,'scale_crop/'+_0x2edd8b+'x'+_0x2edd8b+'/center','@clib/'+B4+'/'+H4+'/uc-cloud-image-editor/'));}async['ai'](t,_0x400d5d){t[0x0]?.['isIntersecting']?await this['Ts'](_0x400d5d):this['b']?.();}initCallback(){super['initCallback'](),this['s']=new window['IntersectionObserver'](this['ai']['bind'](this),{'threshold':[0x0,0x1]});let t=this['$']['*originalUrl'];this['wi']=t??'',this['sub']('*originalUrl',_0x274c4a=>{this['wi']=_0x274c4a??'',!this['isOriginal']&&this['wi']&&this['isConnected']&&!this['a']&&(this['s']?.['observe'](this),this['et']());}),this['isOriginal']||(this['s']?.['observe'](this),this['et']()),this['m']&&this['Al'](this['m']),this['sub']('*currentFilter',_0x42abe1=>{this['active']=!(!_0x42abe1||_0x42abe1!==this['m']);}),this['sub']('*networkProblems',async _0x15b8de=>{_0x15b8de||(this['a']?await this['Ts']():this['et']());});}disconnectedCallback(){super['disconnectedCallback'](),this['s']?.['disconnect'](),this['b']?.(),this['wr']();}updated(t){super['updated'](t),t['has']('isOriginal')&&(this['isOriginal']?this['s']?.['unobserve'](this):(this['s']?.['observe'](this),this['et']()));}['Al'](t){if(!t)return void(this['titleProp']='');let _0x43bace=this['l10n']('a11y-cloud-editor-apply-filter',{'name':t['toLowerCase']()});this['titleProp']=_0x43bace;}async['Ts'](t){if(!this['isConnected'])return t?.['unobserve'](this),this['b']?.(),void(this['b']=void 0x0);if(!this['wi'])return void(!this['Ft']&&!this['De']&&this['et']());let _0x5c2c5f=++this['br'],_0x34756a='';try{_0x34756a=await this['proxyUrl'](this['Od']());}catch(_0x582d60){return this['$']['*networkProblems']=!0x0,void console['error']('Failed\x20to\x20resolve\x20preview\x20URL',{'error':_0x582d60});}this['Nt']=!0x1,this['b']?.();let {promise:_0x23ca23,cancel:_0x195237}=z7(_0x34756a);this['b']=()=>{_0x195237(),this['br']===_0x5c2c5f&&(this['b']=void 0x0);};try{if(await _0x23ca23,this['br']!==_0x5c2c5f||!this['isConnected'])return;this['a']=_0x34756a,this['Nt']=!0x0,this['wr'](),(t??this['s'])?.['unobserve'](this);}catch(_0x2d27b8){this['$']['*networkProblems']=!0x0,console['error']('Failed\x20to\x20load\x20image',{'error':_0x2d27b8}),this['et']();}finally{this['br']===_0x5c2c5f&&(this['b']=void 0x0);}}et(){!this['isConnected']||this['a']||this['Nt']||this['isOriginal']||this['$']['*networkProblems']?this['wr']():(this['De']&&cancelAnimationFrame(this['De']),this['De']=requestAnimationFrame(()=>{if(this['De']=void 0x0,!this['isConnected']||this['a']||this['Nt']||this['isOriginal'])return void this['wr']();let t=this['getBoundingClientRect'](),_0x3fc106=t['width']>0x0&&t['height']>0x0,_0x477430=window['innerWidth']||document['documentElement']['clientWidth'],_0x42b1ed=window['innerHeight']||document['documentElement']['clientHeight'];_0x3fc106&&t['bottom']>0x0&&t['right']>0x0&&t['top']<_0x42b1ed&&t['left']<_0x477430?this['Ts']():this['Ft']=window['setTimeout'](()=>{this['Ft']=void 0x0,this['et']();},0x1f4);}));}['wr'](){this['De']&&(cancelAnimationFrame(this['De']),this['De']=void 0x0),this['Ft']&&(window['clearTimeout'](this['Ft']),this['Ft']=void 0x0);}get['Id'](){return!(!this['Nt']||this['active']||this['isOriginal']);}['render'](){let t=this['onClick'],_0x4832c6={'opacity':this['Id']?'1':'0'};this['a']&&(_0x4832c6['backgroundImage']='url('+this['a']+')');let _0x19c2f6={'opacity':this['active']||this['isOriginal']?'1':'0'};return O2`<button role="option" type="button" class=${Y8(this['buttonClasses'])} aria-label=${K8(this['titleProp'])} title=${K8(this['titleProp'])} @click=${t} ><div class="uc-preview" ?data-loaded=${this['Nt']} style=${c9(_0x4832c6)}></div><uc-icon class=${Y8({'uc-original-icon':this['isOriginal']})} name=${this['icon']} style=${c9(_0x19c2f6)} ></uc-icon></button>`;}};_1([W2()],O9['prototype'],'a',0x2),_1([W2()],O9['prototype'],'Nt',0x2),_1([W2()],O9['prototype'],'isOriginal',0x2),_1([W2()],O9['prototype'],'Sl',0x2),_1([q2({'type':String})],O9['prototype'],'filter',0x1);var w9=class extends f9{constructor(){super(...arguments),this['n']='';}get operation(){return this['n'];}set operation(t){let _0x76603f=t??'';if(this['n']===_0x76603f)return;let _0x4e733b=this['n'];this['n']=_0x76603f,this['requestUpdate']('operation',_0x4e733b),this['isConnected']&&_0x76603f&&this['kl'](_0x76603f);}['kl'](t){this['icon']=t,(((()=>{let _0x5e72cc=this['l10n']('a11y-cloud-editor-apply-tuning',{'name':this['l10n'](t)['toLowerCase']()});this['titleProp']=_0x5e72cc;})()),((()=>{let _0x281e47=this['l10n'](t);this['title']=_0x281e47;})()));}initCallback(){super['initCallback'](),this['n']&&this['kl'](this['n']),this['sub']('*editorTransformations',t=>{if(!this['n'])return;let {zero:_0x35f5a1}=U5[this['n']],_0x53f6be=t[this['n']],_0x30090c=typeof _0x53f6be<'u'&&_0x53f6be!==_0x35f5a1;this['active']=_0x30090c;});}['onClick'](t){this['$']['*sliderEl']?.['setOperation'](this['n']),this['$']['*showSlider']=!0x0,this['$']['*currentOperation']=this['n'],this['telemetryManager']['sendEventCloudImageEditor'](t,this['$']['*tabId'],{'operation':d9(this['$']['*operationTooltip'])});}};_1([q2({'type':String})],w9['prototype'],'operation',0x1);var b9=()=>{},y9=class extends t6{constructor(){super(...arguments),this['hiddenScrollbar']=!0x1,this['Ml']=t=>{t['preventDefault']();let {deltaY:_0xf86a14,deltaX:_0x101f1e}=t;Math['abs'](_0x101f1e)>0x1?this['scrollLeft']+=_0x101f1e:this['scrollLeft']+=_0xf86a14;};}connectedCallback(){super['connectedCallback'](),this['addEventListener']('wheel',this['Ml'],{'passive':!0x1}),this['addEventListener']('scroll',b9,{'passive':!0x0});}disconnectedCallback(){this['removeEventListener']('wheel',this['Ml']),this['removeEventListener']('scroll',b9),super['disconnectedCallback']();}};_1([q2({'type':Boolean,'noAccessor':!0x0,'attribute':'hidden-scrollbar'})],y9['prototype'],'hiddenScrollbar',0x2);var v9=class extends t6{constructor(){super(...arguments),this['Ti']=!0x1,this['showMainToolbar']=!0x0,this['showSubToolbar']=!0x1,this['Ol']=!0x0,this['tabList']=[...L5],this['activeTab']=M5['CROP'],this['Tr']=!0x0,this['Es']=!0x1,this['Il']=null,this['Pl']=0x0,this['Ll']=0x0,this['Er']=L7(),this['Rl']=L7(),this['tabToggleRefs']={[M5['CROP']]:L7(),[M5['TUNING']]:L7(),[M5['FILTERS']]:L7()},this['Ul']=()=>{this['tt']();},this['Ei']=[],this['xr']=z2(t=>{this['Ti']=t;},0x1f4),this['Cr']=z2(()=>{let t=this['$']['*editorTransformations'],_0x2200fa=this['$']['*currentOperation'],_0x731bbf='',_0x4cc17e=!0x1;if(this['$']['*tabId']===M5['FILTERS']){if(_0x4cc17e=!0x0,this['$']['*currentFilter']&&t?.['filter']?.['name']===this['$']['*currentFilter']){let _0x28eb7d=t?.['filter']?.['amount']||0x64;_0x731bbf=this['$']['*currentFilter']+'\x20'+_0x28eb7d;}else _0x731bbf=this['l10n'](h9);}else{if(this['showSubToolbar']&&this['$']['*tabId']===M5['TUNING']&&_0x2200fa){_0x4cc17e=!0x0;let _0x4764f2=t?.[_0x2200fa]||U5[_0x2200fa]['zero'];_0x731bbf=this['l10n'](_0x2200fa)+'\x20'+_0x4764f2;}}_0x4cc17e&&(this['$']['*operationTooltip']=_0x731bbf),this['Es']=_0x4cc17e;},0x0),this['Pd']={'hidden':'uc-sub-toolbar--top-hidden','visible':'uc-sub-toolbar--visible'},this['Ld']={'hidden':'uc-sub-toolbar--bottom-hidden','visible':'uc-sub-toolbar--visible'},this['Rd']={'hidden':'uc-tab-toggle--hidden','visible':'uc-tab-toggle--visible'},this['Ud']={'hidden':'uc-tab-toggles--hidden','visible':'uc-tab-toggles--visible'},this['init$']={...this['init$'],'*sliderEl':null,'*showSlider':!0x1,'*showListAspectRatio':!0x1,'*currentFilter':h9,'*currentOperation':null,'*operationTooltip':null},this['Ee']=t=>{this['telemetryManager']['sendEventCloudImageEditor'](t,this['$']['*tabId'],{'action':'cancel'}),this['b']?.();let _0x12d4f7=this['$']['*on.cancel'];_0x12d4f7?.();},this['As']=t=>{this['telemetryManager']['sendEventCloudImageEditor'](t,this['$']['*tabId'],{'action':'apply'});let _0x354a81=this['$']['*on.apply'];_0x354a81?.(this['$']['*editorTransformations']);},this['jd']=t=>{this['telemetryManager']['sendEventCloudImageEditor'](t,this['$']['*tabId'],{'action':'apply-slider','operation':d9(this['$']['*operationTooltip'])}),this['Er']['value']?.['apply'](),this['$l']();},this['Gd']=t=>{this['telemetryManager']['sendEventCloudImageEditor'](t,this['$']['*tabId'],{'action':'cancel-slider'}),this['Er']['value']?.['cancel'](),this['$l']();},this['qd']=t=>{let _0x3a6ea7=t['currentTarget']?.['getAttribute']('data-id');_0x3a6ea7&&(this['telemetryManager']['sendEventCloudImageEditor'](t,_0x3a6ea7),this['xs'](_0x3a6ea7,{'fromViewer':!0x1}));};}['$l'](){this['$']['*showSlider']=!0x1,this['$']['*tabId']===M5['CROP']&&(this['$']['*showListAspectRatio']=!0x1),this['$']['*tabId']===M5['TUNING']&&(this['Es']=!0x1);}['xs'](t,{fromViewer:_0x51d876=!0x1,force:_0x309b42=!0x1}={}){this['$']['*tabId']!==t&&(this['$']['*tabId']=t),this['Dl'](t,{'fromViewer':_0x51d876,'force':_0x309b42});}['Dl'](t,{fromViewer:_0x17ecbe,force:_0x3bd9a5=!0x1}){if(!_0x3bd9a5&&this['activeTab']===t)return void this['tt']();this['activeTab']=t;let _0x4180c8=this['$']['*faderEl'],_0x8abd80=this['$']['*cropperEl'];t===M5['CROP']?(_0x4180c8?.['deactivate'](),this['$']['*imageSize']&&_0x8abd80?.['activate'](this['$']['*imageSize'],{'fromViewer':_0x17ecbe})):(_0x4180c8?.['activate']({'url':this['$']['*originalUrl'],'fromViewer':_0x17ecbe}),_0x8abd80?.['deactivate']());for(let _0x389da9 of L5){let _0x90a476=_0x389da9===t,_0x1e25a2=this['tabToggleRefs'][_0x389da9]?.['value'];_0x1e25a2&&(_0x1e25a2['active']=_0x90a476),_0x90a476&&this['tt']();}}tt(){let _0x562292=this['tabToggleRefs'][this['activeTab']]?.['value'],_0x6c9e51=this['Rl']['value'];if(!_0x562292||!_0x6c9e51)return;let _0x2e5862=_0x562292['offsetLeft'],_0x53c2e6=_0x562292['offsetWidth']||Number(getComputedStyle(_0x562292)['width']['replace']('px',''));(this['Pl']!==_0x2e5862||this['Ll']!==_0x53c2e6)&&(this['Pl']=_0x2e5862,this['Ll']=_0x53c2e6,_0x6c9e51['style']['transform']='translateX('+_0x2e5862+'px)',_0x6c9e51['style']['width']=_0x53c2e6+'px');}get['Cs'](){return this['Ei']['length']>=0x3;}['$d'](t){switch(t){case M5['CROP']:return this['Dd']();case M5['FILTERS']:return this['Fd']();case M5['TUNING']:return this['Nd']();default:return[];}}['Dd'](){let t=[];if(this['Cs'])t['push'](()=>this['Vd']());else{for(let _0xda8217 of this['Ei'])t['push'](()=>this['Fl'](_0xda8217));}for(let _0x513964 of Q5)t['push'](()=>this['_d'](_0x513964));return this['Ss'](t);}['Fd'](){let _0x30b185=[h9,...D5]['map'](_0x2c8591=>()=>this['Bd'](_0x2c8591));return this['Ss'](_0x30b185);}['Nd'](){let t=$5['map'](_0x311c38=>()=>this['zd'](_0x311c38));return this['Ss'](t);}['Ss'](t){return t['length']?t['map'](_0x5befb1=>_0x5befb1()):[];}['Vd'](){return O2`<uc-editor-freeform-button-control></uc-editor-freeform-button-control>`;}['Fl'](t){return O2`<uc-editor-aspect-ratio-button-control .aspectRatio=${t}></uc-editor-aspect-ratio-button-control>`;}['_d'](t){return O2`<uc-editor-crop-button-control .operation=${t}></uc-editor-crop-button-control>`;}['Bd'](t){return O2`<uc-editor-filter-control .filter=${t}></uc-editor-filter-control>`;}['zd'](t){return O2`<uc-editor-operation-control .operation=${t}></uc-editor-operation-control>`;}['Hd'](){return this['Cs']?this['Ei']['map'](t=>this['Fl'](t)):[];}async['Kd'](){if(this['$']['*imgContainerEl']&&this['$']['*originalUrl']){let t=this['$']['*imgContainerEl']['offsetWidth'],_0x36a7c5=await this['proxyUrl'](t9(this['$']['*originalUrl'],t,this['$']['*editorTransformations']));this['b']?.();let {cancel:_0x2c2c33}=Y7([_0x36a7c5]);this['b']=()=>{_0x2c2c33(),this['b']=void 0x0;};}}initCallback(){super['initCallback']();let t=this['$']['*cropPresetList']??[];this['Ei']=[...t],this['sub']('*cropPresetList',_0x2ba21b=>{this['Ei']=[..._0x2ba21b??[]];}),this['sub']('*imageSize',_0xa7c26a=>{_0xa7c26a&&setTimeout(()=>{this['xs'](this['$']['*tabId'],{'fromViewer':!0x0});},0x0);}),this['sub']('*editorTransformations',_0xeacdd3=>{let _0x25f5cb=_0xeacdd3?.['filter']?.['name'];this['$']['*currentFilter']!==_0x25f5cb&&(this['$']['*currentFilter']=_0x25f5cb??'');}),this['sub']('*currentFilter',()=>{this['Cr']();}),this['sub']('*currentOperation',()=>{this['Cr']();}),this['sub']('*tabId',_0x514f85=>{this['Dl'](_0x514f85,{'fromViewer':!0x1,'force':!0x0}),this['Cr']();}),this['sub']('*originalUrl',()=>{this['$']['*faderEl']?.['deactivate']();}),this['sub']('*editorTransformations',_0x438d71=>{this['Kd'](),this['$']['*faderEl']?.['setTransformations'](_0x438d71);}),this['sub']('*loadingOperations',_0x3ed682=>{let _0x2453aa=!0x1;for(let [,_0x42227d]of _0x3ed682['entries']()){if(_0x2453aa)break;for(let [,_0x4b86ed]of _0x42227d['entries']())if(_0x4b86ed){_0x2453aa=!0x0;break;}}this['xr'](_0x2453aa);}),this['sub']('*showSlider',_0xd5dc31=>{_0xd5dc31?(this['showSubToolbar']=!0x0,this['showMainToolbar']=!0x1,this['Tr']=!0x0):this['$']['*showListAspectRatio']||(this['showSubToolbar']=!0x1,this['showMainToolbar']=!0x0);}),this['sub']('*showListAspectRatio',_0x21f8b2=>{_0x21f8b2?(this['showSubToolbar']=!0x0,this['showMainToolbar']=!0x1,this['Tr']=!0x1):this['$']['*showSlider']||(this['showSubToolbar']=!0x1,this['showMainToolbar']=!0x0);}),this['sub']('*tabList',_0x4a2855=>{if(this['tabList']=_0x4a2855,this['Ol']=_0x4a2855['length']>0x1,!_0x4a2855['includes'](this['$']['*tabId'])&&_0x4a2855['length']>0x0){let [_0x9b244a]=_0x4a2855;return void(_0x9b244a&&this['xs'](_0x9b244a,{'fromViewer':!0x1}));}this['tt']();}),this['sub']('*operationTooltip',_0x22b93e=>{this['Il']=_0x22b93e;}),this['Cr']();}connectedCallback(){super['connectedCallback'](),window['addEventListener']('resize',this['Ul']);}firstUpdated(t){super['firstUpdated'](t),this['Sr'](),this['tt']();}updated(t){super['updated'](t),(t['has']('activeTab')||t['has']('tabList'))&&this['updateComplete']['then'](()=>this['tt']()),(t['has']('showSubToolbar')||t['has']('showMainToolbar'))&&this['Sr']();}disconnectedCallback(){window['removeEventListener']('resize',this['Ul']),super['disconnectedCallback'](),this['$']['*showSlider']=!0x1,this['$']['*showListAspectRatio']=!0x1;}['Sr'](){let t=this['Er']['value'];t&&(this['$']['*sliderEl']=t);}['Wd'](t){let _0x26434b=this['tabList']['includes'](t),_0x5a92b2=this['activeTab']===t,_0x568f13=this['tabList']['indexOf'](t),_0x235e76=_0x568f13>=0x0?c9({'gridColumn':''+(_0x568f13+0x1)}):b2;return O2`<uc-presence-toggle class="uc-tab-toggle" .visible=${_0x26434b} .styles=${this['Rd']}><uc-btn-ui theme="tab" data-id=${t} icon=${t} role="tab" aria-controls=${'tab_'+t} aria-selected=${_0x5a92b2?'true':'false'} title-prop=${'a11y-editor-tab-'+t} .active=${_0x5a92b2} style=${_0x235e76} @click=${this['qd']} ${Q7(this['tabToggleRefs'][t])} ></uc-btn-ui></uc-presence-toggle>`;}['Zd'](t){let _0x283551=this['$d'](t);return O2`<div id=${'tab_'+t} class="uc-tab-content" ><uc-editor-scroller hidden-scrollbar><div class="uc-controls-list_align"><div role="listbox" aria-orientation="horizontal" class="uc-controls-list_inner">${_0x283551['length']?_0x283551:b2}</div></div></uc-editor-scroller></div>`;}['render'](){let t=['uc-info-tooltip',this['Es']?'uc-info-tooltip_visible':'uc-info-tooltip_hidden']['join']('\x20'),_0x3663ad=this['Cs'];return O2`<uc-line-loader-ui .active=${this['Ti']}></uc-line-loader-ui><div class="uc-info-tooltip_container"><div class="uc-info-tooltip_wrapper"><div class=${t}>${this['Il']??''}</div></div></div><div class="uc-toolbar-container"><uc-presence-toggle role="tablist" class="uc-sub-toolbar" .visible=${this['showMainToolbar']} .styles=${this['Pd']} ><div class="uc-tab-content-row">${L5['map'](_0x4b9dcf=>H8(this['activeTab']===_0x4b9dcf,()=>this['Zd'](_0x4b9dcf)))}</div><div class="uc-controls-row"><uc-presence-toggle class="uc-tab-toggles" .visible=${this['Ol']} .styles=${this['Ud']} @initial-render=${()=>this['tt']()} ><div class="uc-tab-toggles_indicator" ${Q7(this['Rl'])} ></div>${L5['map'](_0x2627df=>this['Wd'](_0x2627df))}</uc-presence-toggle><uc-btn-ui style="order: -1" theme="secondary-icon" icon="closeMax" title-prop="cancel" @click=${this['Ee']} ></uc-btn-ui><uc-btn-ui theme="primary-icon" icon="done" title-prop="apply" @click=${this['As']}></uc-btn-ui></div></uc-presence-toggle><uc-presence-toggle class="uc-sub-toolbar" .visible=${this['showSubToolbar']} .styles=${this['Ld']}><div class="uc-slider" ?hidden=${!this['Tr']}><uc-editor-slider ${Q7(this['Er'])}></uc-editor-slider></div><div class="uc-list-aspect-ratio-container" ?hidden=${this['Tr']||!_0x3663ad}>${_0x3663ad?O2`<div class="uc-list-aspect-ratio">${this['Hd']()}</div>`:b2}</div><div class="uc-controls-row"><uc-btn-ui theme="secondary" @click=${this['Gd']} text=${this['l10n']('cancel')}></uc-btn-ui><uc-btn-ui theme="primary" @click=${this['jd']} text=${this['l10n']('apply')}></uc-btn-ui></div></uc-presence-toggle></div>`;}};_1([W2()],v9['prototype'],'Ti',0x2),_1([W2()],v9['prototype'],'showMainToolbar',0x2),_1([W2()],v9['prototype'],'showSubToolbar',0x2),_1([W2()],v9['prototype'],'Ol',0x2),_1([W2()],v9['prototype'],'tabList',0x2),_1([W2()],v9['prototype'],'activeTab',0x2),_1([W2()],v9['prototype'],'Tr',0x2),_1([W2()],v9['prototype'],'Es',0x2),_1([W2()],v9['prototype'],'Il',0x2),_1([W2()],v9['prototype'],'Ei',0x2);var _9=d5([...L5]),E9=class extends t6{constructor(){super(...arguments),this['ctxOwner']=!0x0,this['Yd']='',this['Je']=W7,this['Xd']='',this['Ti']=!0x1,this['uuid']=null,this['cdnUrl']=null,this['cropPreset']='',this['tabs']=_9,this['Nl']=!0x1,this['ke']=!0x1,this['ks']=null,this['xi']=null,this['xr']=z2(t=>{this['Ti']=t;},0x12c),this['Ar']=L7(),this['Vl']=L7(),this['_l']=L7(),this['Bl']=L7(),this['zl']=()=>{this['xr'](!0x1),this['Je']!==W7&&(this['$']['*networkProblems']=!0x1);},this['Hl']=()=>{this['xr'](!0x1),this['$']['*networkProblems']=!0x0;},this['Qd']=()=>{let t=this['$']['*on.retryNetwork'];t?.();},this['init$']={...this['init$'],...X8(this)};}static{this['styleAttrs']=['uc-cloud-image-editor'];}['Jd'](){this['ke']||this['ks']||(this['ks']=this['updateComplete']['then'](()=>{this['ks']=null,this['ke']=!0x0;}));}initCallback(){super['initCallback'](),this['Kl'](),this['jl']();}['Sr'](){let t=this['_l']['value'];t&&(this['$']['*faderEl']=t);let _0x1e73aa=this['Vl']['value'];_0x1e73aa&&(this['$']['*cropperEl']=_0x1e73aa);let _0x32a796=this['Bl']['value'];_0x32a796&&(this['$']['*imgContainerEl']=_0x32a796);let _0x281bb9=this['Ar']['value'];_0x281bb9&&(this['$']['*imgEl']=_0x281bb9);}['ep'](){let t=this['Ar']['value'];t&&(t['addEventListener']('load',this['zl']),t['addEventListener']('error',this['Hl']));}tp(){let t=this['Ar']['value'];t&&(t['removeEventListener']('load',this['zl']),t['removeEventListener']('error',this['Hl']));}get['ip'](){let t=this['$']['*tabId'];return Z8('uc-image',{'uc-image_hidden_to_cropper':t===M5['CROP'],'uc-image_hidden_effects':t!==M5['CROP']});}['Gl'](){if(this['xi'])return this['xi'];return this['xi']=new Promise((_0x5ac5f7,_0x21a64f)=>{let _0x560420=()=>{window['clearTimeout'](_0x3933c2),_0x3c4f60['disconnect'](),this['xi']=null;},_0x13eb78=()=>{_0x560420(),window['setTimeout'](()=>_0x5ac5f7(),0x0);},_0x5e4907=()=>{let _0xd8426=new Error('[cloud-image-editor]\x20timeout\x20waiting\x20for\x20non-zero\x20container\x20size');_0x560420(),this['isConnected']&&console['error'](_0xd8426['message']),_0x21a64f(_0xd8426);},_0x3c4f60=new ResizeObserver(_0x264ddc=>{let [_0x1ea15c]=_0x264ddc;_0x1ea15c&&_0x1ea15c['contentRect']['width']>0x0&&_0x1ea15c['contentRect']['height']>0x0&&_0x13eb78();}),_0x3933c2=window['setTimeout'](()=>{_0x5e4907();},0xbb8);((()=>{let {width:_0x48b816,height:_0x441189}=this['getBoundingClientRect']();return _0x48b816>0x0&&_0x441189>0x0;})())?_0x13eb78():_0x3c4f60['observe'](this);}),this['xi'];}firstUpdated(t){super['firstUpdated'](t),this['Sr'](),this['ep'](),this['initEditor']();let _0x218c5e=!(!this['uuid']&&!this['cdnUrl']),_0x103bec=t['has']('uuid')||t['has']('cdnUrl');_0x218c5e&&!_0x103bec&&this['updateImage']();}disconnectedCallback(){this['tp'](),super['disconnectedCallback']();}['render'](){let t=this['Xd']??'',_0x5b3d37=this['Yd']??'',_0x5204d2=this['Je']||W7,_0xf99096=this['Ti'],_0x35101e=this['Nl'];return O2` ${a6('<svg\x20width=\x270\x27\x20height=\x270\x27\x20style=\x27position:absolute\x27><symbol\x20fill=\x27none\x27\x20viewBox=\x270\x200\x209\x206\x27\x20id=\x27uc-icon-arrow-dropdown\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke=\x27currentColor\x27\x20d=\x27m1.5\x201.667\x203\x202.666\x203-2.666\x27\x20opacity=\x27.5\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-aspect-ratio\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27/><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-brightness\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M15\x2010a5\x205\x200\x200\x201-5\x205m5-5a5\x205\x200\x200\x200-5-5m5\x205h-5m0\x205a5\x205\x200\x200\x201\x200-10m0\x2010V5m0\x2015v-3M2.93\x202.929\x205.05\x205.05M0\x2010h3m-.07\x207.071\x202.12-2.121M10\x200v3m7.07\x2014.071-2.12-2.121M20\x2010h-3m.07-7.071L14.95\x205.05m-.626\x202.45H10m4.324\x205H10\x27/></symbol><symbol\x20fill=\x27currentColor\x27\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-closeMax\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill-rule=\x27evenodd\x27\x20d=\x27M8.232\x2010\x203.585\x205.353l1.768-1.768L10\x208.232l4.648-4.647\x201.767\x201.768L11.768\x2010l4.647\x204.648-1.767\x201.767L10\x2011.768l-4.647\x204.647-1.768-1.767L8.232\x2010Z\x27\x20clip-rule=\x27evenodd\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-contrast\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M2\x2010a8\x208\x200\x201\x200\x2016\x200\x208\x208\x200\x201\x200-16\x200m8-8v16m8-8h-8m7.598\x202.5H10m6.24\x202.5H10m7.6-7.5H10M16.242\x205H10\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-crop\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M20\x2014H7.005C6.45\x2014\x206\x2013.55\x206\x2012.995V0M0\x206h13.067c.515\x200\x20.933.418.933.933V20M14.5.4\x2013\x202l1.5\x201.6M13\x202h2a3\x203\x200\x200\x201\x203\x203v2M5.5\x2019.6\x207\x2018l-1.5-1.6M7\x2018H5a3\x203\x200\x200\x201-3-3v-2\x27/></symbol><symbol\x20fill=\x27currentColor\x27\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-done\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill-rule=\x27evenodd\x27\x20d=\x27m18.057\x206.333-9.365\x209.125a1.25\x201.25\x200\x200\x201-1.768-.023L1.92\x2010.296l1.791-1.744\x204.132\x204.243\x208.47-8.253\x201.744\x201.79Z\x27\x20clip-rule=\x27evenodd\x27/></symbol><symbol\x20fill=\x27currentColor\x27\x20viewBox=\x270\x200\x2025\x2024\x27\x20id=\x27uc-icon-edit-file\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill-rule=\x27evenodd\x27\x20d=\x27M18.558\x202.804a.78.78\x200\x200\x200-.557.235l-.008.007-2.472\x202.46\x203.847\x203.848\x202.46-2.473.004-.003a.78.78\x200\x200\x200\x200-1.108l-.004-.003-2.712-2.728a.78.78\x200\x200\x200-.558-.235Zm-.248\x207.613-3.852-3.852-8.93\x208.887-1.516\x205.41\x205.41-1.515\x208.888-8.93Zm-.636-8.934a2.28\x202.28\x200\x200\x201\x202.512.505l2.702\x202.717.002.002a2.278\x202.278\x200\x200\x201\x200\x203.234l-.002.002-12.541\x2012.602a.75.75\x200\x200\x201-.33.193l-6.884\x201.928a.75.75\x200\x200\x201-.925-.924l1.928-6.885a.75.75\x200\x200\x201\x20.193-.33l12.603-12.54a2.28\x202.28\x200\x200\x201\x20.742-.504Z\x27\x20clip-rule=\x27evenodd\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-enhance\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M19\x2013h-2m0\x200a4\x204\x200\x200\x201-4-4m4\x204a4\x204\x200\x200\x200-4\x204m0-8V7m0\x202a4\x204\x200\x200\x201-4\x204m-2\x200h2m0\x200a4\x204\x200\x200\x201\x204\x204m0\x200v2M8\x208.5H6.5m0\x200a2\x202\x200\x200\x201-2-2m2\x202a2\x202\x200\x200\x200-2\x202m0-4V5m0\x201.5a2\x202\x200\x200\x201-2\x202M1\x208.5h1.5m0\x200a2\x202\x200\x200\x201\x202\x202m0\x200V12M12\x203h-1m0\x200a1\x201\x200\x200\x201-1-1m1\x201a1\x201\x200\x200\x200-1\x201m0-2V1m0\x201a1\x201\x200\x200\x201-1\x201M8\x203h1m0\x200a1\x201\x200\x200\x201\x201\x201m0\x200v1\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-exposure\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M10\x2020v-3M2.93\x202.929\x205.05\x205.05M0\x2010h3m-.07\x207.071\x202.12-2.121M10\x200v3m7.07\x2014.071-2.12-2.121M20\x2010h-3m.07-7.071L14.95\x205.05M5\x2010a5\x205\x200\x201\x200\x2010\x200\x205\x205\x200\x201\x200-10\x200\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-filters\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M4.5\x206.5a5.5\x205.5\x200\x201\x200\x2011\x200\x205.5\x205.5\x200\x201\x200-11\x200m-3.5\x206a5.5\x205.5\x200\x201\x200\x2011\x200\x205.5\x205.5\x200\x201\x200-11\x200m7\x200a5.5\x205.5\x200\x201\x200\x2011\x200\x205.5\x205.5\x200\x201\x200-11\x200\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-flip\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M19.6\x205\x2018\x203.5\x2016.4\x205m3.2\x2010L18\x2016.5\x2016.4\x2015M18\x203.523v12.954M3.3\x208.5h10.654c.301\x200\x20.415-.395.159-.554L3.459\x201.286A.3.3\x200\x200\x200\x203\x201.542V8.2a.3.3\x200\x200\x200\x20.3.3zm0\x203h10.654c.301\x200\x20.415.395.159.554l-10.654\x206.66A.3.3\x200\x200\x201\x203\x2018.458v-6.66a.3.3\x200\x200\x201\x20.3-.3z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-gamma\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M17\x203C9\x206\x202.5\x2011.5\x202.5\x2017.5m0\x200h1m-1\x200v-1m14\x201h1m-3\x200h1m-3\x200h1m-3\x200h1m-3\x200h1m-3\x200h1m-3\x200h1m-3-14v-1m0\x203v-1m0\x203v-1m0\x203v-1m0\x203v-1m0\x203v-1m0\x203v-1\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-mirror\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M5\x20.4\x203.5\x202\x205\x203.6M15\x20.4\x2016.5\x202\x2015\x203.6M3.52\x202h12.957M8.5\x2016.7V6.046c0-.301-.394-.415-.554-.159L1.287\x2016.541a.3.3\x200\x200\x200\x20.255.459H8.2a.3.3\x200\x200\x200\x20.3-.3zm3\x200V6.046c0-.301.395-.415.555-.159l6.659\x2010.654a.3.3\x200\x200\x201-.255.459H11.8a.3.3\x200\x200\x201-.3-.3z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2040\x2040\x27\x20id=\x27uc-icon-original\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.5\x27\x20d=\x27M0\x2040\x2040\x200\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-rotate\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M13.5.4\x2012\x202l1.5\x201.6M12.023\x202H14.4A3.6\x203.6\x200\x200\x201\x2018\x205.6V8M4\x2017h9a1\x201\x200\x200\x200\x201-1V7a1\x201\x200\x200\x200-1-1H4a1\x201\x200\x200\x200-1\x201v9a1\x201\x200\x200\x200\x201\x201z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-sad\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M2\x2017c4.418-4\x2011.582-4\x2016\x200M16.5\x205a1\x201\x200\x201\x201-2\x200\x201\x201\x200\x200\x201\x202\x200zm-11\x200a1\x201\x200\x201\x201-2\x200\x201\x201\x200\x200\x201\x202\x200z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-saturation\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><defs><linearGradient\x20id=\x27ruc-icon-id__a\x27\x20x1=\x2710.001\x27\x20y1=\x271\x27\x20x2=\x2710.001\x27\x20y2=\x2719\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient></defs><circle\x20cx=\x2710.001\x27\x20cy=\x2710\x27\x20r=\x279\x27\x20transform=\x27rotate(90\x2010\x2010)\x27\x20fill=\x27url(#ruc-icon-id__a)\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-slider\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M0\x2010h11m0\x200a2\x202\x200\x201\x200\x204\x200m-4\x200a2\x202\x200\x201\x201\x204\x200m0\x200h5\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-tuning\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M8\x2010h11M1\x2010h4M1\x204.5h11m3\x200h4m-18\x2011h11m3\x200h4m-7-11a1.5\x201.5\x200\x201\x200\x203\x200\x201.5\x201.5\x200\x201\x200-3\x200M5\x2010a1.5\x201.5\x200\x201\x200\x203\x200\x201.5\x201.5\x200\x201\x200-3\x200m7\x205.5a1.5\x201.5\x200\x201\x200\x203\x200\x201.5\x201.5\x200\x201\x200-3\x200\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-vibrance\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20d=\x27M2.125\x205.64A8.96\x208.96\x200\x200\x200\x201.001\x2010a8.96\x208.96\x200\x200\x200\x201.124\x204.36V5.64z\x27\x20fill=\x27url(#uuc-icon-id__a)\x27/><path\x20d=\x27M2.875\x2015.499V4.502a9.053\x209.053\x200\x200\x201\x201.75-1.72v14.437a9.05\x209.05\x200\x200\x201-1.75-1.72z\x27\x20fill=\x27url(#uuc-icon-id__b)\x27/><path\x20d=\x27M5.375\x2017.722c.548.33\x201.134.601\x201.75.809V1.469a8.956\x208.956\x200\x200\x200-1.75.81v15.443z\x27\x20fill=\x27url(#uuc-icon-id__c)\x27/><path\x20d=\x27M7.875\x201.253v17.495c.564.136\x201.15.22\x201.75.244V1.008a9\x209\x200\x200\x200-1.75.245z\x27\x20fill=\x27url(#uuc-icon-id__d)\x27/><path\x20d=\x27M10.375\x201.008v17.984a9\x209\x200\x200\x200\x201.75-.244V1.252a9\x209\x200\x200\x200-1.75-.244z\x27\x20fill=\x27url(#uuc-icon-id__e)\x27/><path\x20d=\x27M12.875\x201.469V18.53a8.957\x208.957\x200\x200\x200\x201.75-.808V2.277a8.957\x208.957\x200\x200\x200-1.75-.808z\x27\x20fill=\x27url(#uuc-icon-id__f)\x27/><path\x20d=\x27M15.375\x202.78v14.44a9.053\x209.053\x200\x200\x200\x201.75-1.72v-11a9.054\x209.054\x200\x200\x200-1.75-1.72z\x27\x20fill=\x27url(#uuc-icon-id__g)\x27/><path\x20d=\x27M17.875\x205.638v8.724A8.959\x208.959\x200\x200\x200\x2019.001\x2010a8.96\x208.96\x200\x200\x200-1.126-4.362z\x27\x20fill=\x27url(#uuc-icon-id__h)\x27/><defs><linearGradient\x20id=\x27uuc-icon-id__a\x27\x20x1=\x2719.001\x27\x20y1=\x2710\x27\x20x2=\x271.001\x27\x20y2=\x2710\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient><linearGradient\x20id=\x27uuc-icon-id__b\x27\x20x1=\x2719.001\x27\x20y1=\x2710\x27\x20x2=\x271.001\x27\x20y2=\x2710\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient><linearGradient\x20id=\x27uuc-icon-id__c\x27\x20x1=\x2719.001\x27\x20y1=\x2710\x27\x20x2=\x271.001\x27\x20y2=\x2710\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient><linearGradient\x20id=\x27uuc-icon-id__d\x27\x20x1=\x2719.001\x27\x20y1=\x2710\x27\x20x2=\x271.001\x27\x20y2=\x2710\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient><linearGradient\x20id=\x27uuc-icon-id__e\x27\x20x1=\x2719.001\x27\x20y1=\x2710\x27\x20x2=\x271.001\x27\x20y2=\x2710\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient><linearGradient\x20id=\x27uuc-icon-id__f\x27\x20x1=\x2719.001\x27\x20y1=\x2710\x27\x20x2=\x271.001\x27\x20y2=\x2710\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient><linearGradient\x20id=\x27uuc-icon-id__g\x27\x20x1=\x2719.001\x27\x20y1=\x2710\x27\x20x2=\x271.001\x27\x20y2=\x2710\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient><linearGradient\x20id=\x27uuc-icon-id__h\x27\x20x1=\x2719.001\x27\x20y1=\x2710\x27\x20x2=\x271.001\x27\x20y2=\x2710\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient></defs></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-warmth\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20d=\x27m7.5\x2013.05.429.42.171-.175v-.244h-.6zm5\x200h-.6v.245l.172.175.428-.42zM8.1\x203.5c0-1.05.85-1.9\x201.9-1.9V.4a3.1\x203.1\x200\x200\x200-3.1\x203.1h1.2zm0\x209.55V3.5H6.9v9.55h1.2zm-1\x202.45c0-.79.315-1.506.829-2.03l-.858-.84A4.088\x204.088\x200\x200\x200\x205.9\x2015.5h1.2zm2.9\x202.9a2.9\x202.9\x200\x200\x201-2.9-2.9H5.9a4.1\x204.1\x200\x200\x200\x204.1\x204.1v-1.2zm2.9-2.9a2.9\x202.9\x200\x200\x201-2.9\x202.9v1.2a4.1\x204.1\x200\x200\x200\x204.1-4.1h-1.2zm-.829-2.03c.514.524.829\x201.24.829\x202.03h1.2c0-1.117-.447-2.13-1.171-2.87l-.858.84zM11.9\x203.5v9.55h1.2V3.5h-1.2zM10\x201.6c1.05\x200\x201.9.85\x201.9\x201.9h1.2A3.1\x203.1\x200\x200\x200\x2010\x20.4v1.2z\x27\x20fill=\x27currentColor\x27/><path\x20d=\x27M10\x2014V8\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20stroke-linecap=\x27round\x27/><path\x20d=\x27M14\x203h3m-3\x203h3m-3\x203h3m-8\x206.5a1\x201\x200\x201\x200\x202\x200\x201\x201\x200\x201\x200-2\x200\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27/></symbol></svg>')}<div class="uc-wrapper uc-wrapper_desktop"><uc-presence-toggle class="uc-network_problems_splash" .visible=${_0x35101e}><div class="uc-network_problems_content"><div class="uc-network_problems_icon"><uc-icon name="sad"></uc-icon></div><div class="uc-network_problems_text">Network error</div></div><div class="uc-network_problems_footer"><uc-btn-ui theme="primary" text="Retry" @click=${this['Qd']}></uc-btn-ui></div></uc-presence-toggle><div class="uc-viewport"><div class="uc-file_type_outer"><div class="uc-file_type">${t}</div></div><div class="uc-image_container" ${Q7(this['Bl'])}><img src=${_0x5204d2} class=${this['ip']} ${Q7(this['Ar'])} />${H8(this['ke'],()=>O2`<uc-editor-image-cropper ${Q7(this['Vl'])}></uc-editor-image-cropper>`)}<uc-editor-image-fader ${Q7(this['_l'])}></uc-editor-image-fader></div><div class="uc-info_pan">${_0x5b3d37}</div></div><div class="uc-toolbar"><uc-line-loader-ui .active=${_0xf99096}></uc-line-loader-ui><div class="uc-toolbar_content uc-toolbar_content__editor">${H8(this['ke'],()=>O2`<uc-editor-toolbar></uc-editor-toolbar>`)}</div></div></div>`;}updated(t){super['updated'](t),t['has']('uuid')&&this['uuid']&&this['updateImage'](),t['has']('cdnUrl')&&this['cdnUrl']&&this['updateImage'](),t['has']('tabs')&&this['Kl'](),(t['has']('cropPreset')||t['has']('cdnUrl'))&&this['jl']();}['Kl'](){let t=this['tabs']||_9;this['$']['*tabList']=(_0x288f00=>{if(!_0x288f00)return L5;let _0x428d25=u5(_0x288f00)['filter'](G8);return 0x0===_0x428d25['length']?L5:_0x428d25;})(t);}['jl'](){let t=r7(this['cropPreset']??''),_0x1f8681=null;if(this['cdnUrl']){let _0x12268c=N5(b5(this['cdnUrl']));if(Array['isArray'](_0x12268c?.['crop']?.['dimensions'])){let [_0xd2816d,_0x2f426b]=_0x12268c['crop']['dimensions'];_0x1f8681=((_0x1b7a0d,_0x55e7e5,t,_0x1a35be=0.1)=>{let _0x340a75=_0x1b7a0d/_0x55e7e5,_0x2b1634=null,_0x32fb3b=0x1/0x0;for(let _0x53cd3d of t){let [_0x543530,_0x26af6b]=[_0x53cd3d['width'],_0x53cd3d['height']],_0x39a549=_0x543530/_0x26af6b,_0x2d1521=Math['abs'](_0x340a75-_0x39a549);_0x2d1521<_0x32fb3b&&(_0x32fb3b=_0x2d1521,_0x2b1634=_0x53cd3d);}if(_0x2b1634){let [_0x2d05ae,_0x4f5ffa]=[_0x2b1634['width'],_0x2b1634['height']],_0x506450=_0x2d05ae/_0x4f5ffa;if(Math['abs'](_0x340a75-_0x506450)/_0x506450>_0x1a35be)return null;}return _0x2b1634;})(_0xd2816d,_0x2f426b,t,0.1);}}this['$']['*cropPresetList']=t,this['$']['*currentAspectRatio']=_0x1f8681??t?.[0x0]??null;}async updateImage(){if(this['isConnected']){try{await this['Gl']();}catch{return;}if(this['isConnected']){if(this['cdnUrl']){let t=this['cdnUrl'],_0xd93cdb=T5(t,O5(t));if(_0xd93cdb===this['$']['*originalUrl'])return;this['$']['*originalUrl']=_0xd93cdb;let _0x406564=N5(b5(t));this['$']['*editorTransformations']=_0x406564;}else{if(!this['uuid'])throw new Error('No\x20UUID\x20nor\x20CDN\x20URL\x20provided');{let t=T5(this['cfg']['cdnCname'],this['uuid']);if(t===this['$']['*originalUrl'])return;this['$']['*originalUrl']=t,Object['keys'](this['$']['*editorTransformations'])['length']>0x0&&(this['$']['*editorTransformations']={});}}this['$']['*tabId']===M5['CROP']?this['$']['*cropperEl']?.['deactivate']({'reset':!0x0}):this['$']['*faderEl']?.['deactivate']();try{let t=this['$']['*originalUrl'],_0x27a9cf=await this['proxyUrl'](E5(t,p5('json'))),{width:_0x10348a,height:_0xde32e2}=await fetch(_0x27a9cf)['then'](_0x5cbd75=>_0x5cbd75['json']());this['$']['*imageSize']={'width':_0x10348a,'height':_0xde32e2},this['$']['*tabId']===M5['CROP']?this['$']['*cropperEl']?.['activate'](this['$']['*imageSize']):this['$']['*faderEl']?.['activate']({'url':t});}catch(_0x28e748){_0x28e748&&(this['telemetryManager']['sendEventError'](_0x28e748,'cloud\x20editor\x20image.\x20Failed\x20to\x20load\x20image\x20info'),console['error']('Failed\x20to\x20load\x20image\x20info',_0x28e748));}this['Jd']();}}}async initEditor(){try{await this['Gl']();}catch{return;}this['classList']['add']('uc-editor_ON'),this['sub']('*networkProblems',t=>{let _0x4afb3c=!!t;this['Nl']=_0x4afb3c;}),this['sub']('*editorTransformations',t=>{if(0x0===Object['keys'](t)['length'])return;let _0x2c2186=this['$']['*originalUrl'],_0x399d57=p5(k5(t),'preview'),_0x4d8b36={'originalUrl':_0x2c2186,'cdnUrlModifiers':_0x399d57,'cdnUrl':E5(_0x2c2186,_0x399d57),'transformations':t};this['dispatchEvent'](new CustomEvent('change',{'detail':_0x4d8b36,'bubbles':!0x0,'composed':!0x0}));},!0x1);}};_1([W2()],E9['prototype'],'Yd',0x2),_1([W2()],E9['prototype'],'Je',0x2),_1([W2()],E9['prototype'],'Xd',0x2),_1([W2()],E9['prototype'],'Ti',0x2),_1([q2({'type':String,'reflect':!0x0})],E9['prototype'],'uuid',0x2),_1([q2({'type':String,'attribute':'cdn-url','reflect':!0x0})],E9['prototype'],'cdnUrl',0x2),_1([q2({'type':String,'attribute':'crop-preset','reflect':!0x0})],E9['prototype'],'cropPreset',0x2),_1([q2({'type':String,'reflect':!0x0})],E9['prototype'],'tabs',0x2),_1([W2()],E9['prototype'],'Nl',0x2),_1([W2()],E9['prototype'],'ke',0x2);var T9={};v1(T9,{'CloudImageEditorActivity':()=>S9});var A9=class extends E9{static{this['styleAttrs']=[...super['styleAttrs'],'uc-wgt-common'];}constructor(){super(),this['init$']={...this['init$'],'*solution':this['tagName']};}initCallback(){super['initCallback'](),this['telemetryManager']['sendEvent']({'eventType':j4['INIT_SOLUTION']}),this['a11y']?.['registerBlock'](this);}},S9=class extends u7{constructor(){super(...arguments),this['Q']=null;}get activityParams(){let t=super['activityParams'];if('internalId'in t)return t;throw new Error('Cloud\x20Image\x20Editor\x20activity\x20params\x20not\x20found');}initCallback(){super['initCallback'](),this['subConfigValue']('cropPreset',t=>{this['Q']&&this['Q']['cropPreset']!==t&&(this['Q']={...this['Q'],'cropPreset':t});}),this['subConfigValue']('cloudImageEditorTabs',t=>{this['Q']&&this['Q']['tabs']!==t&&(this['Q']={...this['Q'],'tabs':t});}),this['rp']();}disconnectedCallback(){super['disconnectedCallback'](),this['op']();}['As'](t){if(!this['Ci'])return;this['debugPrint']('editor\x20event\x20\x22apply\x22',t['detail']);let _0x1ea160=t['detail'];this['Ci']['setMultipleValues']({'cdnUrl':_0x1ea160['cdnUrl'],'cdnUrlModifiers':_0x1ea160['cdnUrlModifiers']}),this['modalManager']?.['close'](h7['activities']['CLOUD_IMG_EDIT']),this['historyBack']();}['Ee'](t){let _0x5cbcd9=t instanceof CustomEvent?t['detail']:void 0x0;this['debugPrint']('editor\x20event\x20\x22cancel\x22',_0x5cbcd9),this['modalManager']?.['close'](h7['activities']['CLOUD_IMG_EDIT']),this['historyBack']();}['handleChange'](t){this['debugPrint']('editor\x20event\x20\x22change\x22',t['detail']);}['rp'](){let {internalId:t}=this['activityParams'],_0x4b8801=this['uploadCollection']['read'](t);if(!_0x4b8801)throw new Error('Entry\x20with\x20internalId\x20\x22'+t+'\x22\x20not\x20found');this['Ci']=_0x4b8801;let _0x493174=this['Ci']['getValue']('cdnUrl');if(!_0x493174)throw new Error('Entry\x20with\x20internalId\x20\x22'+t+'\x22\x20hasn\x27t\x20uploaded\x20yet');this['Q']=this['sp'](_0x493174);}['op'](){this['Ci']=void 0x0,this['Q']=null;}['render'](){if(!this['Q'])return b2;let {cdnUrl:t,cropPreset:_0x5a58f9,tabs:_0x187678}=this['Q'];return O2`<uc-cloud-image-editor cdn-url=${t} crop-preset=${K8(_0x5a58f9)} tabs=${K8(_0x187678)} @apply=${this['As']} @cancel=${this['Ee']} @change=${this['handleChange']} ></uc-cloud-image-editor>`;}['sp'](t){return{'cdnUrl':t,'cropPreset':this['cfg']['cropPreset'],'tabs':this['cfg']['cloudImageEditorTabs']};}};_1([W2()],S9['prototype'],'Q',0x2);var I9=class extends u7{constructor(){super(...arguments),this['Dt']='',this['bs']=t=>{this['Dt']=t['target']?.['value']??'';},this['Ho']=t=>{t['preventDefault'](),this['telemetryManager']['sendEvent']({'eventType':j4['ACTION_EVENT'],'payload':{'metadata':{'event':'upload-from-url','node':this['tagName']}}});let _0xf185a5=this['Dt']['trim']();_0xf185a5&&(this['api']['addFileFromUrl'](_0xf185a5,{'source':D6['URL']}),this['$']['*currentActivity']=h7['activities']['UPLOAD_LIST'],this['modalManager']?.['open'](h7['activities']['UPLOAD_LIST']));};}['render'](){return O2`<uc-activity-header><button type="button" class="uc-mini-btn" @click=${this['historyBack']} title=${this['l10n']('back')} aria-label=${this['l10n']('back')}><uc-icon name="back"></uc-icon></button><div><uc-icon name="url"></uc-icon><span>${this['l10n']('caption-from-url')}</span></div><button type="button" class="uc-mini-btn uc-close-btn" @click=${this['$']['*closeModal']} title=${this['l10n']('a11y-activity-header-button-close')} aria-label=${this['l10n']('a11y-activity-header-button-close')} ><uc-icon name="close"></uc-icon></button></uc-activity-header><form class="uc-content" @submit=${this['Ho']}><label><input placeholder="https://" class="uc-url-input" type="text" autofocus @input=${this['bs']} /></label><button type="submit" class="uc-url-upload-btn uc-primary-btn" ?disabled=${!this['Dt']} >${this['l10n']('upload-url')}</button></form>`;}};_1([W2()],I9['prototype'],'Dt',0x2);var k9=()=>{let _0x36e07b=globalThis['top']??globalThis['parent']??globalThis['self'];try{return _0x36e07b['location']['origin'];}catch(_0x293402){return console['warn']('Unable\x20to\x20access\x20top-level\x20window\x20location:',_0x293402),globalThis['location']['origin'];}},x9=_0x40fe5f=>_0x40fe5f['replace'](/[\\-\\[]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,'\x5c$&'),C9=(_0x508c76,_0x5bb5a8='i')=>{let t=_0x508c76['split']('*')['map'](x9);return new RegExp('^'+t['join']('.+')+'$',_0x5bb5a8);},R9=['--uc-font-family','--uc-font-size','--uc-line-height','--uc-button-size','--uc-preview-size','--uc-input-size','--uc-padding','--uc-radius','--uc-transition','--uc-background','--uc-foreground','--uc-primary','--uc-primary-hover','--uc-primary-transparent','--uc-primary-foreground','--uc-secondary','--uc-secondary-hover','--uc-secondary-foreground','--uc-muted','--uc-muted-foreground','--uc-destructive','--uc-destructive-foreground','--uc-border'],P9=(_0x2d19c5,_0x3be816)=>window['getComputedStyle'](_0x2d19c5)['getPropertyValue'](_0x3be816)['trim'](),N9=_0x390520=>{let _0xeb356b={};for(let t of R9){let _0x22fde5=P9(_0x390520,t);_0x22fde5&&(_0xeb356b[t]=_0x22fde5);}return _0xeb356b;},M9=['selected-files-change','toolbar-state-change'],L9=class{constructor(_0x29ff39,t){this['kr']=new Map(),this['Wl']=_0x17efbf=>{if(_0x17efbf['source']!==this['Ms'])return;let t=_0x17efbf['data'];if(!(_0x3b6273=>{if(!_0x3b6273||'object'!=typeof _0x3b6273||!('type'in _0x3b6273))return!0x1;let _0x7cc7d5=_0x3b6273['type'];return!('string'!=typeof _0x7cc7d5||!M9['includes'](_0x7cc7d5));})(t))return;let _0x19921b=this['kr']['get'](t['type']);if(_0x19921b){for(let _0x558a30 of _0x19921b)_0x558a30(t);}},this['Ms']=_0x29ff39,this['ql']=t,window['addEventListener']('message',this['Wl']);}['on'](_0x143338,t){let _0x43b199=this['kr']['get'](_0x143338)??new Set();this['kr']['has'](_0x143338)||this['kr']['set'](_0x143338,_0x43b199),_0x43b199['add'](t);}['send'](_0x460c3b){let t=this['ql']();this['Ms']['postMessage'](_0x460c3b,t);}destroy(){window['removeEventListener']('message',this['Wl']);}},$9={[L6['GDRIVE']]:'ngdrive'},D9=class extends u7{constructor(){super(...arguments),this['couldBeCtxOwner']=!0x0,this['Vt']=L7(),this['Mr']=null,this['Os']=[],this['Is']=!0x1,this['Ps']=!0x1,this['Ls']=!0x1,this['Rs']=!0x1,this['Or']=!0x1,this['Us']=!0x1,this['$s']='uc-hidden',this['Zl']=!0x0,this['Ko']=()=>{for(let t of this['Os']){let _0x203a36=this['ap'](t),{filename:_0x497855}=t,{externalSourceType:_0x28bce7}=this['activityParams'];this['api']['addFileFromUrl'](_0x203a36,{'fileName':_0x497855,'source':_0x28bce7});}this['$']['*currentActivity']=h7['activities']['UPLOAD_LIST'],this['modalManager']?.['open'](h7['activities']['UPLOAD_LIST']);},this['Ee']=()=>{this['historyBack']();},this['hp']=()=>{this['ne']?.['send']({'type':'select-all'});},this['fp']=()=>{this['ne']?.['send']({'type':'deselect-all'});};}get['np'](){if(!this['Mr'])return'';let {selectedCount:t,total:_0x18fb2b}=this['Mr'];return this['l10n']('selected-count',{'count':t,'total':_0x18fb2b});}get activityParams(){let t=super['activityParams'];if('externalSourceType'in t)return t;throw new Error('External\x20Source\x20activity\x20params\x20not\x20found');}initCallback(){super['initCallback']();let {externalSourceType:t}=this['activityParams'];t?this['Yl']():console['error']('Param\x20\x22externalSourceType\x22\x20is\x20required\x20for\x20external\x20source\x20activity'),this['sub']('*currentActivityParams',()=>{setTimeout(()=>{this['isConnected']&&(this['Xl'](),this['Yl']());});}),this['subConfigValue']('multiple',_0x8c44ee=>{this['Or']=_0x8c44ee;}),this['subConfigValue']('localeName',()=>{this['Ql']();}),this['subConfigValue']('externalSourcesEmbedCss',_0x3ea551=>{this['Jl'](_0x3ea551);});}['ap'](t){if(t['alternatives']){let _0xa53974=A5(this['cfg']['externalSourcesPreferredTypes']);for(let _0x10dc1c of _0xa53974){let _0x290d9f=C9(_0x10dc1c);for(let [_0x29661e,_0x2f081f]of Object['entries'](t['alternatives']))if(_0x290d9f['test'](_0x29661e))return _0x2f081f;}}return t['url'];}['lp'](t){this['Zl']=t['isVisible'];}async['cp'](t){this['cfg']['multiple']===t['isMultipleMode']?(this['up'](t['selectedCount'],t['total']),this['$s']=t['isReady']?'':'uc-hidden',this['Is']=t['isReady'],this['Ps']=t['isReady']&&t['selectedFiles']['length']>0x0,this['Or']=t['isMultipleMode']&&t['total']>0x0,this['Ls']=t['selectedCount']<t['total'],this['Rs']=t['selectedCount']===t['total'],this['Os']=t['selectedFiles']??[],this['Us']=t['total']>0x0):console['error']('Multiple\x20mode\x20mismatch');}['ec'](){this['Jl'](this['cfg']['externalSourcesEmbedCss']),this['dp'](),this['Ql']();}['dp'](){this['ne']?.['send']({'type':'set-theme-definition','theme':N9(this)});}['Jl'](t){this['ne']?.['send']({'type':'set-embed-css','css':t});}['Ql'](){this['ne']?.['send']({'type':'set-locale-definition','localeDefinition':this['cfg']['localeName']});}['pp'](){let {pubkey:t,remoteTabSessionKey:_0x3fa3c6,socialBaseUrl:_0x26613a,multiple:_0x54d411}=this['cfg'],{externalSourceType:_0xa2ab4b}=this['activityParams'],_0x456497=$9[_0xa2ab4b]??_0xa2ab4b,_0x4393f8={'lang':this['l10n']('social-source-lang')?.['split']('-')?.[0x0]||'en','public_key':t,'images_only':'false','session_key':_0x3fa3c6,'wait_for_theme':!0x0,'multiple':_0x54d411['toString'](),'origin':this['cfg']['topLevelOrigin']||k9(),'debug':this['cfg']['debug']},_0x44284d=new URL('/window4/'+_0x456497,_0x26613a);return _0x44284d['search']=function(_0x330cb0){let _0x4f4710=[];for(let [t,_0x4e5294]of Object['entries'](_0x330cb0))null==_0x4e5294||'string'==typeof _0x4e5294&&0x0===_0x4e5294['length']||_0x4f4710['push'](t+'='+encodeURIComponent(_0x4e5294));return _0x4f4710['join']('&');}(_0x4393f8),_0x44284d['toString']();}['up'](t,_0x4adab6){this['Mr']={'selectedCount':t,'total':_0x4adab6};}['Yl'](){let t=document['createElement']('iframe');t['src']=this['pp'](),t['marginHeight']=0x0,t['marginWidth']=0x0,t['frameBorder']='0',t['allowTransparency']=!0x0,t['addEventListener']('load',this['ec']['bind'](this)),t['addEventListener']('load',this['ec']['bind'](this)),this['Vt']['value']&&(this['Vt']['value']['innerHTML']='',this['Vt']['value']['appendChild'](t)),t['contentWindow']&&(this['ne']?.['destroy'](),this['ne']=new L9(t['contentWindow'],()=>this['cfg']['socialBaseUrl']),this['ne']['on']('selected-files-change',this['cp']['bind'](this)),this['ne']['on']('toolbar-state-change',this['lp']['bind'](this)),this['tc']());}['Xl'](){this['ne']?.['destroy'](),this['ne']=void 0x0,this['Vt']['value']&&(this['Vt']['value']['innerHTML']=''),this['tc']();}tc(){this['Os']=[],this['Is']=!0x1,this['Ps']=!0x1,this['Ls']=!0x1,this['Rs']=!0x1,this['Or']=!0x1,this['Us']=!0x1,this['$s']='uc-hidden',this['Mr']=null;}disconnectedCallback(){super['disconnectedCallback'](),this['Xl']();}['render'](){return O2`<uc-activity-header><button type="button" class="uc-mini-btn uc-close-btn" @click=${this['$']['*historyBack']} title=${this['l10n']('a11y-activity-header-button-close')} aria-label=${this['l10n']('a11y-activity-header-button-close')} ><uc-icon name="close"></uc-icon></button></uc-activity-header><div class="uc-content"><div ${Q7(this['Vt'])} class="uc-iframe-wrapper"></div><div class="uc-toolbar" ?hidden=${!this['Zl']}><button type="button" class="uc-cancel-btn uc-secondary-btn" @click=${this['Ee']}>${this['l10n']('cancel')}</button><div class="uc-selection-status-box" ?hidden=${!this['Or']}><span>${this['np']}</span><button type="button" @click=${this['hp']} ?hidden=${!this['Ls']}>${this['l10n']('select-all')}</button><button type="button" @click=${this['fp']} ?hidden=${!this['Rs']}>${this['l10n']('deselect-all')}</button></div><button type="button" class="uc-done-btn uc-primary-btn" @click=${this['Ko']} ?disabled=${!this['Ps']} ?hidden=${!this['Us']} ><uc-spinner ?hidden=${this['Is']}></uc-spinner><span class=${this['$s']}>${this['l10n']('done')}</span></button></div></div>`;}};_1([W2()],D9['prototype'],'Os',0x2),_1([W2()],D9['prototype'],'Is',0x2),_1([W2()],D9['prototype'],'Ps',0x2),_1([W2()],D9['prototype'],'Ls',0x2),_1([W2()],D9['prototype'],'Rs',0x2),_1([W2()],D9['prototype'],'Or',0x2),_1([W2()],D9['prototype'],'Us',0x2),_1([W2()],D9['prototype'],'$s',0x2),_1([W2()],D9['prototype'],'Zl',0x2);var Q9={'width':{'ideal':0x780},'height':{'ideal':0x438},'frameRate':{'ideal':0x1e}},j9=['camera','microphone'];function U9(_0x440e35){return Math['floor'](_0x440e35/0x3c)['toString']()['padStart'](0x2,'0')+':'+Math['floor'](_0x440e35%0x3c)['toString']()['padStart'](0x2,'0');}var V9='image/jpeg',B9='video/webm',H9=class extends u7{constructor(){super(...arguments),this['couldBeCtxOwner']=!0x0,this['Ir']=null,this['Ds']=!0x1,this['Si']=[],this['me']=null,this['ge']=null,this['Pr']=null,this['Lr']=null,this['g']=null,this['Ai']={},this['fe']=null,this['e']=null,this['_t']=[],this['Bt']=[],this['mp']={},this['Rr']=[],this['Ur']=null,this['ic']=()=>{this['rc'](),this['ki']='pause';},this['oc']=()=>{this['ki']='play',this['gp']();},this['Mi']=L7(),this['Xe']=L7(),this['K']=L7(),this['sc']=0x0,this['nc']=0x0,this['ac']=null,this['$r']=!0x0,this['Dr']=!0x0,this['vp']=typeof navigator['permissions']<'u',this['cc']=[],this['ot']=!0x0,this['Fs']='',this['zt']=!0x0,this['at']=!0x0,this['Ht']=!0x0,this['uc']=[],this['pt']=!0x0,this['Ns']=!0x0,this['mt']=!0x0,this['Ce']=!0x0,this['gt']=!0x0,this['Kt']='camera-full',this['ki']='play',this['dc']='microphone',this['Fr']='uc-shot-btn\x20uc-camera-action',this['yp']=()=>{if(this['telemetryManager']['sendEvent']({'eventType':j4['ACTION_EVENT'],'payload':{'metadata':{'event':'start-camera','node':this['tagName'],'tabId':this['g']}}}),this['g']===C6['PHOTO']&&this['bp'](),this['g']===C6['VIDEO']){if('recording'===this['me']?.['state'])return void this['pc']();this['wp']();}},this['Tp']=t=>{let _0x5be38c=t['target'];_0x5be38c&&(this['Lr']=_0x5be38c['value'],this['jt']());},this['Ep']=t=>{let _0x17dffc=t['target'];_0x17dffc&&(this['Pr']=_0x17dffc['value'],this['jt']());},this['xp']=()=>{this['jt']();},this['Cp']=()=>{this['telemetryManager']['sendEvent']({'eventType':j4['ACTION_EVENT'],'payload':{'metadata':{'event':'shot-camera','node':this['tagName'],'tabId':this['g']}}}),this['yp']();},this['Sp']=()=>{this['Ap']();},this['kp']=()=>{this['Mp']();},this['Op']=()=>{this['telemetryManager']['sendEvent']({'eventType':j4['ACTION_EVENT'],'payload':{'metadata':{'event':'retake-camera','node':this['tagName'],'tabId':this['g']}}}),this['Ip']();},this['Pp']=()=>{this['telemetryManager']['sendEvent']({'eventType':j4['ACTION_EVENT'],'payload':{'metadata':{'event':'accept-camera','node':this['tagName'],'tabId':this['g']}}}),this['Lp']();},this['hc']=t=>{let _0x23672c=t['currentTarget']?.['getAttribute']('data-id');_0x23672c&&this['fc'](_0x23672c);},this['mc']=()=>{let t=Math['floor']((performance['now']()-this['sc']+this['nc'])/0x3e8);if('number'==typeof this['cfg']['maxVideoRecordingDuration']&&this['cfg']['maxVideoRecordingDuration']>0x0){let _0x14e223=this['cfg']['maxVideoRecordingDuration']-t;if(_0x14e223<=0x0){let _0x4c1e4d=this['Mi']['value'];return _0x4c1e4d&&(_0x4c1e4d['textContent']=U9(_0x14e223)),void this['pc']();}let _0x1c514b=this['Mi']['value'];_0x1c514b&&(_0x1c514b['textContent']=U9(_0x14e223));}else{let _0x20d88c=this['Mi']['value'];_0x20d88c&&(_0x20d88c['textContent']=U9(t));}this['Gt']=requestAnimationFrame(this['mc']);},this['Rp']=()=>{this['sc']=performance['now'](),this['nc']=0x0,this['mc']();},this['gc']=()=>{this['Gt']&&cancelAnimationFrame(this['Gt']);},this['rc']=()=>{let t=this['K']['value'];if(!t)return;let _0x3bb31f=t['currentTime'],_0x984ac4=t['duration']||0x1,_0x142127=this['Xe']['value'];_0x142127&&(_0x142127['style']['transform']='scaleX('+_0x3bb31f/_0x984ac4+')');let _0x5ce516=this['Mi']['value'];_0x5ce516&&(_0x5ce516['textContent']=U9(_0x3bb31f)),this['Gt']=requestAnimationFrame(this['rc']);},this['gp']=()=>{this['Gt']&&cancelAnimationFrame(this['Gt']);},this['Gt']=null,this['wp']=()=>{try{this['Si']=[],this['Ai']={...this['cfg']['mediaRecorderOptions']};let {mimeType:t}=this['cfg']['mediaRecorderOptions']||{};t&&MediaRecorder['isTypeSupported'](t)?this['Ai']['mimeType']=t:MediaRecorder['isTypeSupported'](B9)?this['Ai']['mimeType']=B9:this['Ai']['mimeType']='video/mp4',this['ge']&&(this['me']=new MediaRecorder(this['ge'],this['Ai']),this['me']['start'](),this['me']['addEventListener']('dataavailable',_0x3fae0d=>{this['Si']['push'](_0x3fae0d['data']);}),this['Rp'](),this['classList']['add']('uc-recording'),this['Oi'](R6['PLAY']));}catch(_0x2321c1){console['error']('Failed\x20to\x20start\x20recording',_0x2321c1),this['telemetryManager']['sendEventError'](_0x2321c1,'camera\x20recording.\x20Failed\x20to\x20start\x20recording');}},this['pc']=()=>{this['me']?.['addEventListener']('stop',()=>{this['Up'](),this['gc'](),this['Oi'](R6['STOP']);}),this['me']?.['stop'](),this['classList']['remove']('uc-recording'),this['telemetryManager']['sendEvent']({'eventType':j4['ACTION_EVENT'],'payload':{'metadata':{'event':'stop-camera','node':this['tagName'],'tabId':this['g']}}});},this['Ap']=()=>{if('recording'===this['me']?.['state'])return;let t=this['K']['value'];t&&(!t['paused']&&!t['ended']&&t['readyState']>0x2?t['pause']():t['paused']&&t['play']());},this['Mp']=()=>{this['ge']?.['getAudioTracks']()['forEach'](t=>{t['enabled']=!t['enabled'],this['dc']=t['enabled']?'microphone':'microphone-mute',this['Ns']=!t['enabled'];});},this['Up']=()=>{try{let t=new Blob(this['Si'],{'type':this['me']?.['mimeType']}),_0xcc27af=URL['createObjectURL'](t),_0x31771b=this['K']['value'];if(!_0x31771b)return;_0x31771b['muted']=!0x1,_0x31771b['volume']=0x1,this['Ii'](null),_0x31771b['src']=_0xcc27af,this['$p'](_0x31771b);}catch(_0x2de498){console['error']('Failed\x20to\x20preview\x20video',_0x2de498),this['telemetryManager']['sendEventError'](_0x2de498,'camera\x20previewing.\x20Failed\x20to\x20preview\x20video');}},this['Ip']=()=>{if(this['Oi'](R6['RETAKE']),this['g']===C6['VIDEO']){this['Ii'](this['ge']);let t=this['K']['value'];t&&(t['muted']=!0x0);}this['K']['value']?.['play']?.();},this['Lp']=()=>{if(this['Oi'](R6['ACCEPT']),this['g']===C6['PHOTO'])return void this['fe']?.['toBlob'](_0x1c3560=>{if(!_0x1c3560)return;let _0x424b19=this['vc']('camera','jpeg',V9,_0x1c3560);this['yc'](_0x424b19);},V9);let t=new Blob(this['Si'],{'type':this['me']?.['mimeType']}),_0x1b22fd=this['Dp'](this['me']?.['mimeType']),_0x2319ab=this['vc']('video',_0x1b22fd,'video/'+_0x1b22fd,t);this['yc'](_0x2319ab),this['Si']=[];},this['Fp']=t=>{t===R6['SHOT']&&(this['gt']=!0x0,this['at']=!0x0,this['Ce']=!0x0,this['Ht']=!0x1,this['ot']=!0x0),(t===R6['RETAKE']||t===R6['ACCEPT'])&&(this['gt']=!this['Se']['includes'](C6['VIDEO']),this['Ce']=!this['Se']['includes'](C6['PHOTO']),this['at']=!0x1,this['Ht']=!0x0,this['ot']=this['_t']['length']<=0x1);},this['Np']=t=>{t===R6['PLAY']&&(this['zt']=!0x1,this['Ce']=!0x0,this['ot']=!0x0,this['pt']=!0x0,this['ki']='pause',this['Kt']='square',this['Fr']='uc-shot-btn\x20uc-camera-action\x20uc-stop-record'),t===R6['STOP']&&(this['zt']=!0x1,this['at']=!0x0,this['mt']=!0x0,this['Ht']=!0x1),(t===R6['RETAKE']||t===R6['ACCEPT'])&&(this['zt']=!0x0,this['gt']=!this['Se']['includes'](C6['VIDEO']),this['Ce']=!this['Se']['includes'](C6['PHOTO']),this['at']=!0x1,this['Ht']=!0x0,this['mt']=!this['cfg']['enableAudioRecording'],this['Kt']='video-camera-full',this['Fr']='uc-shot-btn\x20uc-camera-action',this['pt']=!this['cfg']['enableAudioRecording']||this['Bt']['length']<=0x1,this['ot']=this['_t']['length']<=0x1);},this['Oi']=t=>{this['g']===C6['PHOTO']&&('shot'===t||'retake'===t||'accept'===t)&&this['Fp'](t),this['g']===C6['VIDEO']&&('play'===t||'stop'===t||'retake'===t||'accept'===t||'pause'===t||'resume'===t)&&this['Np'](t);},this['fc']=t=>{t===C6['PHOTO']&&(this['Kt']='camera-full',this['pt']=!0x0,this['mt']=!0x0),t===C6['VIDEO']&&(this['ki']='play',this['Kt']='video-camera-full',this['pt']=!this['cfg']['enableAudioRecording']||this['Bt']['length']<=0x1,this['mt']=!this['cfg']['enableAudioRecording']),this['telemetryManager']['sendEvent']({'eventType':j4['ACTION_EVENT'],'payload':{'metadata':{'event':'camera-tab-switch','node':this['tagName'],'tabId':t}}}),this['g']=t;},this['vc']=(t,_0x5c64b5,_0x111052,_0x23174b)=>{let _0x1f2c75=Date['now']();return new File([_0x23174b],t+'-'+_0x1f2c75+'.'+_0x5c64b5,{'lastModified':_0x1f2c75,'type':_0x111052});},this['yc']=t=>{this['api']['addFileFromObject'](t,{'source':D6['CAMERA']}),this['set$']({'*currentActivity':h7['activities']['UPLOAD_LIST']}),this['modalManager']?.['open'](h7['activities']['UPLOAD_LIST']);},this['Pi']=z2(t=>{this['classList']['toggle']('uc-initialized','granted'===t);let _0x548603=this['g']===C6['VIDEO']&&this['cfg']['enableAudioRecording'],_0x152fbc=this['g']===C6['PHOTO']?'camera-full':'video-camera-full';'granted'===t?(this['$r']=!0x1,this['at']=!0x1,this['Ce']=!this['Se']['includes'](C6['PHOTO']),this['gt']=!this['Se']['includes'](C6['VIDEO']),this['Dr']=!0x0,this['zt']=!0x0,this['Kt']=_0x152fbc,this['mt']=!_0x548603,this['pt']=!_0x548603):'prompt'===t?(this['Fs']='camera-permissions-prompt',this['$r']=!0x0,this['at']=!0x0,this['Ce']=!0x0,this['Dr']=!0x1,this['Bs']()):(this['Fs']='camera-permissions-denied',this['$r']=!0x0,this['Dr']=!0x1,this['Ce']=!this['Se']['includes'](C6['PHOTO']),this['gt']=!this['Se']['includes'](C6['VIDEO']),this['Ht']=!0x0,this['Fr']='uc-shot-btn\x20uc-camera-action',this['Bs']());},0x12c),this['Vp']=()=>{if(!this['ge'])return!0x1;let t=this['ge']?.['getAudioTracks'](),_0x5212e5=this['ge']?.['getVideoTracks']();return t['forEach'](_0x2bb5fd=>{_0x2bb5fd['stop']();}),_0x5212e5['forEach'](_0x4eb274=>{_0x4eb274['stop']();}),!0x0;},this['Bs']=()=>{this['Ds']&&(this['K']['value']&&(this['K']['value']['volume']=0x0),this['Ur']?.['getTracks']?.()?.[0x0]?.['stop'](),this['Vs'](this['K']['value']),this['Ii'](null),this['Vp'](),this['gc'](),this['Ds']=!0x1);},this['jt']=async()=>{let t={'video':{...Q9},'audio':!!this['cfg']['enableAudioRecording']&&{}};this['Lr']&&(t['video']={'deviceId':{'exact':this['Lr']}}),this['Pr']&&this['cfg']['enableAudioRecording']&&(t['audio']={'deviceId':{'exact':this['Pr']}}),this['K']['value']&&(this['K']['value']['volume']=0x0);try{this['Pi']('prompt'),this['ge']=await navigator['mediaDevices']['getUserMedia'](t),this['ge']['addEventListener']('inactive',()=>{this['Pi']('denied');}),this['Ii'](this['ge']),this['Ds']=!0x0,this['Pi']('granted');}catch(_0x59709e){this['Pi']('denied'),console['log']('Failed\x20to\x20capture\x20camera',_0x59709e),this['telemetryManager']['sendEventError'](_0x59709e,'camera\x20capturing.\x20Failed\x20to\x20capture\x20camera');}},this['bc']=()=>{this['jt']();},this['_p']=async()=>{try{this['Nr']();for(let t of j9){let _0x408c89=await navigator['permissions']['query']({'name':t});this['mp'][t]=_0x408c89,_0x408c89['addEventListener']('change',this['bc']),this['Rr']['push'](()=>{_0x408c89['removeEventListener']('change',this['bc']);});}this['Ir']=()=>{this['Nr']();};}catch(_0x3120b5){this['Nr'](),console['log']('Failed\x20to\x20use\x20permissions\x20API.\x20Fallback\x20to\x20manual\x20request\x20mode.',_0x3120b5),this['telemetryManager']['sendEventError'](_0x3120b5,'camera\x20permissions.\x20Failed\x20to\x20use\x20permissions\x20API'),this['jt']();}},this['Bp']=async()=>{try{await navigator['mediaDevices']['getUserMedia']({'video':!0x0,'audio':this['cfg']['enableAudioRecording']}),await this['zs'](),navigator['mediaDevices']['addEventListener']('devicechange',this['zs']);}catch(_0x8be4a0){this['telemetryManager']['sendEventError'](_0x8be4a0,'camera\x20devices.\x20Failed\x20to\x20get\x20user\x20media'),console['log']('Failed\x20to\x20get\x20user\x20media',_0x8be4a0);}},this['zs']=async()=>{try{let t=await navigator['mediaDevices']['enumerateDevices']();this['_t']=t['filter'](_0x2d5f61=>'videoinput'===_0x2d5f61['kind'])['map']((_0x5bc6f3,_0x36003b)=>({'text':_0x5bc6f3['label']['trim']()||this['l10n']('caption-camera')+'\x20'+(_0x36003b+0x1),'value':_0x5bc6f3['deviceId']})),this['Bt']=this['cfg']['enableAudioRecording']?t['filter'](_0x59edc5=>'audioinput'===_0x59edc5['kind'])['map'](_0x1774f1=>({'text':_0x1774f1['label']['trim'](),'value':_0x1774f1['deviceId']})):[],this['cc']=this['_t'],this['ot']=this['_t']['length']<=0x1,this['Lr']=this['_t'][0x0]?.['value']??null,this['uc']=this['Bt'],this['pt']=!this['cfg']['enableAudioRecording']||this['Bt']['length']<=0x1,this['Pr']=this['Bt'][0x0]?.['value']??null;}catch(_0x15a07f){this['telemetryManager']['sendEventError'](_0x15a07f,'camera\x20devices.\x20Failed\x20to\x20get\x20devices'),console['log']('Failed\x20to\x20get\x20devices',_0x15a07f);}},this['zp']=async()=>{await this['_p'](),await this['Bp'](),await this['jt'](),this['wc'](this['Se']);},this['Hp']=async()=>{this['Ir']&&this['Ir'](),window['chrome']||this['Pi']('denied'),this['Bs']();},this['wc']=t=>{this['gt']=!t['includes'](C6['VIDEO']),this['Ce']=!t['includes'](C6['PHOTO']);let _0x995926=t[0x0];_0x995926&&(!this['g']||!t['includes'](this['g']))&&this['fc'](_0x995926);};}['$p'](t){this['Vs'](t),t['addEventListener']('play',this['ic']),t['addEventListener']('pause',this['oc']);}['Vs'](t){t?.['removeEventListener']('play',this['ic']),t?.['removeEventListener']('pause',this['oc']);}['Ii'](t){this['Ur']!==t&&(this['Ur']=t,this['_s']());}['_s'](){let t=this['K']['value'];if(!t)return;let _0x21f6d8=this['Ur']??null;t['srcObject']!==_0x21f6d8&&(t['srcObject']=_0x21f6d8);}['bp'](){if(this['Oi']('shot'),this['fe']=document['createElement']('canvas'),this['e']=this['fe']['getContext']('2d'),!this['e'])throw new Error('Failed\x20to\x20get\x20canvas\x20context');let t=this['K']['value'];if(!t)throw new Error('Video\x20element\x20not\x20found');this['fe']['height']=t['videoHeight'],this['fe']['width']=t['videoWidth'],this['cfg']['cameraMirror']&&(this['e']['translate'](this['fe']['width'],0x0),this['e']['scale'](-0x1,0x1)),this['e']['drawImage'](t,0x0,0x0),t['pause']();}['Dp'](t){let _0xc8e8bf={'mp4':'mp4','ogg':'ogg','webm':'webm','quicktime':'mov','x-matroska':'mkv'};if(''===t)return'webm';if(t){let _0x30ef00=t['split']('/');if('video'===_0x30ef00?.[0x0]){let _0x3bbf62=_0x30ef00['slice'](0x1)['join']('/')?.['split'](';')[0x0];if(_0x3bbf62&&_0xc8e8bf[_0x3bbf62])return _0xc8e8bf[_0x3bbf62];}}return'avi';}get['Se'](){return A5(this['cfg']['cameraModes'])['filter'](t=>t===C6['PHOTO']||t===C6['VIDEO']);}['Nr'](){if(0x0!==this['Rr']['length']){for(let t of this['Rr'])t();this['Rr']=[],this['Ir']=null;}}initCallback(){super['initCallback'](),this['subConfigValue']('cameraMirror',t=>{this['ac']=t?'scaleX(-1)':null;}),this['subConfigValue']('enableAudioRecording',t=>{this['mt']=!t,this['Ns']=!t;}),this['subConfigValue']('cameraModes',t=>{if(!this['isConnected'])return;let _0x26e82f=u5(t);this['wc'](_0x26e82f['filter'](_0x512ae1=>_0x512ae1===C6['PHOTO']||_0x512ae1===C6['VIDEO']));}),this['zp']();}firstUpdated(t){super['firstUpdated'](t),this['_s']();}updated(t){super['updated'](t),this['_s']();}['Kp'](){this['Nr'](),navigator['mediaDevices']?.['removeEventListener']('devicechange',this['zs']),this['Vs'](this['K']['value']),this['Ii'](null);}disconnectedCallback(){super['disconnectedCallback'](),this['Hp'](),this['Kp']();}['render'](){return O2`<uc-activity-header><button type="button" class="uc-mini-btn" @click=${this['$']['*historyBack']} title=${this['l10n']('back')} ><uc-icon name="back"></uc-icon></button><div ?hidden=${!this['ot']}><uc-icon name="camera"></uc-icon><span>${this['l10n']('caption-camera')}</span></div><uc-select class="uc-camera-select" .options=${this['cc']} ?hidden=${this['ot']} @change=${this['Tp']} ></uc-select><button type="button" class="uc-mini-btn uc-close-btn" @click=${this['$']['*closeModal']} title=${this['l10n']('a11y-activity-header-button-close')} aria-label=${this['l10n']('a11y-activity-header-button-close')} ><uc-icon name="close"></uc-icon></button></uc-activity-header><div class="uc-content"><video muted autoplay playsinline style=${c9({'transform':this['ac']})} ?hidden=${this['$r']} ${Q7(this['K'])} ></video><div class="uc-message-box" ?hidden=${this['Dr']}><span>${this['l10n'](this['Fs'])}</span><button type="button" @click=${this['xp']} ?hidden=${this['vp']} >${this['l10n']('camera-permissions-request')}</button></div></div><div class="uc-controls"><div class="uc-switcher" ?hidden=${!this['zt']}><button data-id="photo" type="button" class=${Y8({'uc-switch':!0x0,'uc-mini-btn':!0x0,'uc-active':this['g']===C6['PHOTO']})} @click=${this['hc']} ?hidden=${this['Ce']} data-testid="tab-photo" ><uc-icon name="camera"></uc-icon></button><button data-id="video" type="button" class=${Y8({'uc-switch':!0x0,'uc-mini-btn':!0x0,'uc-active':this['g']===C6['VIDEO']})} @click=${this['hc']} ?hidden=${this['gt']} data-testid="tab-video" ><uc-icon name="video-camera"></uc-icon></button></div><button class="uc-secondary-btn uc-recording-timer" @click=${this['Sp']} ?hidden=${this['zt']} data-testid="recording-timer" ><uc-icon name=${this['ki']}></uc-icon><span ${Q7(this['Mi'])}> 00:00 </span><span ${Q7(this['Xe'])} class="uc-line"></span></button><div class="uc-camera-actions uc-camera-action" ?hidden=${this['Ht']} ><button type="button" class="uc-secondary-btn" @click=${this['Op']}> Retake </button><button type="button" class="uc-primary-btn" @click=${this['Pp']} data-testid="accept" > Accept </button></div><button type="button" data-testid="shot" @click=${this['Cp']} class=${this['Fr']} ?hidden=${this['at']} ><uc-icon name=${this['Kt']}></uc-icon></button><div class="uc-select"><button type="button" class="uc-mini-btn uc-btn-microphone" @click=${this['kp']} ?hidden=${this['mt']} data-testid="toggle-microphone" ><uc-icon name=${this['dc']}></uc-icon></button><uc-select class="uc-audio-select" .options=${this['uc']} ?hidden=${this['pt']} ?disabled=${this['Ns']} @change=${this['Ep']} data-testid="audio-select" ></uc-select></div></div>`;}};_1([W2()],H9['prototype'],'ac',0x2),_1([W2()],H9['prototype'],'$r',0x2),_1([W2()],H9['prototype'],'Dr',0x2),_1([W2()],H9['prototype'],'vp',0x2),_1([W2()],H9['prototype'],'cc',0x2),_1([W2()],H9['prototype'],'ot',0x2),_1([W2()],H9['prototype'],'Fs',0x2),_1([W2()],H9['prototype'],'zt',0x2),_1([W2()],H9['prototype'],'at',0x2),_1([W2()],H9['prototype'],'Ht',0x2),_1([W2()],H9['prototype'],'uc',0x2),_1([W2()],H9['prototype'],'pt',0x2),_1([W2()],H9['prototype'],'Ns',0x2),_1([W2()],H9['prototype'],'mt',0x2),_1([W2()],H9['prototype'],'Ce',0x2),_1([W2()],H9['prototype'],'gt',0x2),_1([W2()],H9['prototype'],'Kt',0x2),_1([W2()],H9['prototype'],'ki',0x2),_1([W2()],H9['prototype'],'dc',0x2),_1([W2()],H9['prototype'],'Fr',0x2);var F9={'id':'camera','setup':async({pluginApi:_0x5e2e45,uploaderApi:_0xfa9559})=>{i5({'CameraSource':H9}),_0x5e2e45['registry']['registerSource']({'id':'camera','label':'src-type-camera','icon':'camera','expand':()=>{if(!T4['htmlMediaCapture'])return['camera'];let t=u5(_0x5e2e45['config']['get']('cameraModes'));return t['length']?t['map'](_0x377516=>'mobile-'+_0x377516+'-camera'):['mobile-photo-camera'];},'onSelect':()=>{_0xfa9559['setCurrentActivity'](l4['CAMERA']),_0xfa9559['setModalState'](!0x0);}}),_0x5e2e45['registry']['registerSource']({'id':'mobile-photo-camera','label':'src-type-mobile-photo-camera','icon':'camera','onSelect':()=>{_0xfa9559['openSystemDialog']({'captureCamera':!0x0,'modeCamera':'photo'});}}),_0x5e2e45['registry']['registerSource']({'id':'mobile-video-camera','label':'src-type-mobile-video-camera','icon':'camera','onSelect':()=>{_0xfa9559['openSystemDialog']({'captureCamera':!0x0,'modeCamera':'video'});}}),_0x5e2e45['registry']['registerActivity']({'id':l4['CAMERA'],'render':t=>{let _0x1c2bb8=document['createElement']('uc-camera-source');return t['append'](_0x1c2bb8),()=>{t['replaceChildren']();};}});}},Z9={};v1(Z9,{'BtnUi':()=>J8,'CloudImageEditor':()=>A9,'CloudImageEditorBlock':()=>E9,'Config':()=>j8,'CropFrame':()=>e9,'EditorAspectRatioButtonControl':()=>p9,'EditorCropButtonControl':()=>g9,'EditorFilterControl':()=>O9,'EditorFreeformButtonControl':()=>m9,'EditorImageCropper':()=>i9,'EditorImageFader':()=>r9,'EditorOperationControl':()=>w9,'EditorScroller':()=>y9,'EditorSlider':()=>u9,'EditorToolbar':()=>v9,'Icon':()=>d7,'LineLoaderUi':()=>z8,'PresenceToggle':()=>W8,'SliderUi':()=>l9,'defineComponents':()=>i5});var G9,X9={'id':'cloud-image-editor','setup':async({pluginApi:_0x23abcf,uploaderApi:_0x1df68a})=>(i5({...Z9,...T9}),_0x23abcf['registry']['registerIcon']({'name':'edit-file','svg':'<svg\x20viewBox=\x270\x200\x2024\x2024\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M18.558\x202.804a.78.78\x200\x200\x200-.557.235l-.008.007-2.472\x202.46\x203.847\x203.848\x202.46-2.473.004-.003a.78.78\x200\x200\x200\x200-1.108l-.004-.003-2.712-2.728a.78.78\x200\x200\x200-.558-.235Zm-.248\x207.613-3.852-3.852-8.93\x208.887-1.516\x205.41\x205.41-1.515\x208.888-8.93Zm-.636-8.934a2.28\x202.28\x200\x200\x201\x202.512.505l2.702\x202.717.002.002a2.278\x202.278\x200\x200\x201\x200\x203.234l-.002.002-12.541\x2012.602a.75.75\x200\x200\x201-.33.193l-6.884\x201.928a.75.75\x200\x200\x201-.925-.924l1.928-6.885a.75.75\x200\x200\x201\x20.193-.33l12.603-12.54a2.28\x202.28\x200\x200\x201\x20.742-.504Z\x27\x20clip-rule=\x27evenodd\x27/></svg>'}),_0x23abcf['registry']['registerFileAction']({'id':'edit-file','icon':'edit-file','label':'file-item-edit-button','shouldRender':_0x486313=>!(!_0x486313['isImage']||!_0x486313['cdnUrl']),'onClick':_0x5afa59=>{_0x1df68a['setCurrentActivity']?.(l4['CLOUD_IMG_EDIT'],{'internalId':_0x5afa59['internalId']}),_0x1df68a['setModalState']?.(!0x0);}}),_0x23abcf['registry']['registerActivity']({'id':l4['CLOUD_IMG_EDIT'],'render':_0x59a642=>{let _0x269224=document['createElement']('uc-cloud-image-editor-activity');return _0x59a642['append'](_0x269224),()=>{_0x59a642['replaceChildren']();};}}),_0x1df68a['on'](U4['FILE_UPLOAD_SUCCESS'],_0x1e0a3a=>{if(!_0x1e0a3a['isImage'])return;let _0x1ef46b=_0x23abcf['config']['get']('cropPreset'),_0x5ec320=_0x23abcf['config']['get']('useCloudImageEditor'),_0x21e4d1=_0x23abcf['config']['get']('cloudImageEditorAutoOpen'),_0x47ebab=_0x1df68a['v']['size'];_0x5ec320&&0x1===_0x47ebab&&(_0x1ef46b||_0x21e4d1)&&(_0x1df68a['setCurrentActivity']?.(l4['CLOUD_IMG_EDIT'],{'internalId':_0x1e0a3a['internalId']}),_0x1df68a['setModalState']?.(!0x0));}))},q9={'id':'external-sources','setup':async({pluginApi:_0x187577,uploaderApi:_0x6037a7})=>{i5({'ExternalSource':D9}),_0x187577['registry']['registerActivity']({'id':l4['EXTERNAL'],'render':t=>{let _0x3c2104=document['createElement']('uc-external-source');return t['append'](_0x3c2104),()=>{t['replaceChildren']();};}});for(let t of Object['values'](L6))_0x187577['registry']['registerSource']({'id':t,'label':'src-type-'+t,'icon':t,'onSelect':()=>{_0x6037a7['setCurrentActivity'](l4['EXTERNAL'],{'externalSourceType':t}),_0x6037a7['setModalState'](!0x0);}});}},W9=()=>{let _0x192e67=[];return{'stack':_0x192e67,'promiseReadJpegChunks':t=>new Promise((_0x31def9,_0x40a807)=>{let _0x2b8ad0=0x2,_0x4169bd=(_0x3233c4,_0x2aee49)=>{let _0x5c9f3e=new FileReader();_0x5c9f3e['addEventListener']('load',()=>{_0x2aee49(new DataView(_0x5c9f3e['result']));}),_0x5c9f3e['addEventListener']('error',_0x305801=>{_0x40a807('Reader\x20error:\x20'+_0x305801);}),_0x5c9f3e['readAsArrayBuffer'](_0x3233c4);},_0x24ed14=()=>_0x4169bd(t['slice'](_0x2b8ad0,_0x2b8ad0+0x80),_0x103014=>{let _0x48d4f5,_0x1acaf8,_0x4bffa0;for(_0x48d4f5=_0x1acaf8=0x0,_0x4bffa0=_0x103014['byteLength'];_0x4bffa0>=0x0?_0x1acaf8<_0x4bffa0:_0x1acaf8>_0x4bffa0;_0x48d4f5=_0x4bffa0>=0x0?++_0x1acaf8:--_0x1acaf8)if(0xff===_0x103014['getUint8'](_0x48d4f5)){_0x2b8ad0+=_0x48d4f5;break;}_0x4dcb55();}),_0x4dcb55=()=>{let _0x5970db=_0x2b8ad0;return _0x4169bd(t['slice'](_0x2b8ad0,_0x2b8ad0+=0x4),_0x3e414f=>{if(0x4!==_0x3e414f['byteLength']||0xff!==_0x3e414f['getUint8'](0x0))return void _0x40a807('Corrupted');let _0x4181f5=_0x3e414f['getUint8'](0x1);if(0xda===_0x4181f5)return void _0x31def9(!0x0);let _0x2b7746=_0x3e414f['getUint16'](0x2)-0x2;return _0x4169bd(t['slice'](_0x2b8ad0,_0x2b8ad0+=_0x2b7746),_0x349be3=>{_0x349be3['byteLength']===_0x2b7746?(_0x192e67['push']({'startPos':_0x5970db,'length':_0x2b7746,'marker':_0x4181f5,'view':_0x349be3}),_0x24ed14()):_0x40a807('Corrupted');});});};FileReader&&DataView||_0x40a807('Not\x20Support'),_0x4169bd(t['slice'](0x0,0x2),_0x59e375=>{0xffd8!==_0x59e375['getUint16'](0x0)&&_0x40a807('Not\x20jpeg'),_0x24ed14();});})};},z9=async _0x2d9434=>{let _0x57db0b=[],{promiseReadJpegChunks:t,stack:_0x425e2d}=W9();return await t(_0x2d9434),_0x425e2d['forEach'](({marker:_0x261dd8,view:_0x25cd92})=>{0xe2===_0x261dd8&&0x4943435f===_0x25cd92['getUint32'](0x0)&&0x50524f46===_0x25cd92['getUint32'](0x4)&&0x494c4500===_0x25cd92['getUint32'](0x8)&&_0x57db0b['push'](_0x25cd92);}),_0x57db0b;},Y9=async(_0x3d5bd1,_0x34ee80,t)=>{{let _0x4504ef=[],_0x514a3d=[],{promiseReadJpegChunks:_0xff5d22,stack:_0x4a0ce0}=W9();await _0xff5d22(_0x3d5bd1),_0x4a0ce0['forEach'](_0x1720c6=>{if(_0x1720c6['marker']===_0x34ee80)return _0x4504ef['push'](_0x1720c6['startPos']),_0x514a3d['push'](_0x1720c6['length']);});let _0x2586cd=[_0x3d5bd1['slice'](0x0,0x2)];for(let _0x1ad38d of t){let _0x27bd6e=new DataView(new ArrayBuffer(0x4));_0x27bd6e['setUint16'](0x0,0xff00+_0x34ee80),_0x27bd6e['setUint16'](0x2,_0x1ad38d['byteLength']+0x2),_0x2586cd['push'](_0x27bd6e['buffer']),_0x2586cd['push'](_0x1ad38d);}let _0x60da23=0x2;for(let _0xdea9e6=0x0;_0xdea9e6<_0x4504ef['length'];_0xdea9e6++)_0x4504ef[_0xdea9e6]>_0x60da23&&_0x2586cd['push'](_0x3d5bd1['slice'](_0x60da23,_0x4504ef[_0xdea9e6])),_0x60da23=_0x4504ef[_0xdea9e6]+_0x514a3d[_0xdea9e6]+0x4;return _0x2586cd['push'](_0x3d5bd1['slice'](_0x60da23,_0x3d5bd1['size'])),new Blob(_0x2586cd,{'type':_0x3d5bd1['type']});}},K9=(_0x5959d0,_0x2170d6)=>Y9(_0x5959d0,0xe2,_0x2170d6['map'](t=>t['buffer'])),J9=()=>{let _0x52a5b1=document['createElement']('canvas');return{'canvas':_0x52a5b1,'ctx':_0x52a5b1['getContext']('2d')};},ttt=async _0x3fa350=>{let _0x1b2982=null,{promiseReadJpegChunks:t,stack:_0x141f7f}=W9();return await t(_0x3fa350),_0x141f7f['forEach'](({marker:_0x32abc8,view:_0x1110cc})=>{!_0x1b2982&&0xe1===_0x32abc8&&_0x1110cc['byteLength']>=0xe&&0x45786966===_0x1110cc['getUint32'](0x0)&&0x0===_0x1110cc['getUint16'](0x4)&&(_0x1b2982=_0x1110cc);}),_0x1b2982;},ett=_0x5c4a43=>((_0x43408e,_0x1dcf0e)=>new Promise((t,_0x74fe59)=>{_0x1dcf0e&&(_0x43408e['src']=_0x1dcf0e),_0x43408e['complete']?t(_0x43408e):(_0x43408e['addEventListener']('load',()=>{t(_0x43408e);}),_0x43408e['addEventListener']('error',()=>{_0x74fe59(new Error('Failed\x20to\x20load\x20image.\x20Probably\x20not\x20an\x20image.'));}));}))(new Image(),_0x5c4a43),itt=[0x1,0x3],stt=[0xc0,0xc1,0xc2,0xc3,0xc5,0xc6,0xc7,0xc9,0xca,0xcb,0xcd,0xce,0xcf],ntt={'squareSide':[Math['floor'](Math['sqrt'](0x4c4b40)),0x1000,0x2000,0x2bac,0x2a54,0x2c8a,0x376c,0x4000],'dimension':[0x1000,0x2000,0x4000,0x7fff,0xffff]},rtt=(_0x27d81c,_0x12eb94)=>{let t={};return(..._0x4d3ef0)=>{let _0x40f162=_0x12eb94(_0x4d3ef0,t);return _0x40f162 in t?t[_0x40f162]:t[_0x40f162]=_0x27d81c(..._0x4d3ef0);};},ott=(_0x27cf81,_0x435d3)=>{let [t]=_0x27cf81,_0x54b86c=Object['keys'](_0x435d3)['map'](_0x5d7e59=>parseInt(_0x5d7e59,0xa))['sort']((_0xc25879,_0x660e3a)=>_0xc25879-_0x660e3a);for(let _0x271d8a=0x0;_0x271d8a<_0x54b86c['length'];_0x271d8a++){let _0x578e4f=_0x54b86c[_0x271d8a],_0x2e8476=!!_0x435d3[_0x578e4f];if(_0x578e4f>t&&_0x2e8476||_0x578e4f<t&&!_0x2e8476)return _0x578e4f;}return t;},att=0x37,ctt=0x6e,ltt=0xa5,htt=0xff,utt='rgba('+att+',\x20'+ctt+',\x20'+ltt+',\x20'+htt/0xff+')',dtt=(_0x4bdbda,_0x4f6f1d)=>{try{let t=[_0x4bdbda-0x1,_0x4f6f1d-0x1,0x1,0x1],{canvas:_0x418b41,ctx:_0xeab5b1}=J9();_0x418b41['width']=0x1,_0x418b41['height']=0x1;let {canvas:_0x4dc0dd,ctx:_0x3ab28a}=J9();_0x4dc0dd['width']=_0x4bdbda,_0x4dc0dd['height']=_0x4f6f1d,_0x3ab28a&&(_0x3ab28a['fillStyle']=utt,_0x3ab28a['fillRect'](...t),_0xeab5b1['drawImage'](_0x4dc0dd,_0x4bdbda-0x1,_0x4f6f1d-0x1,0x1,0x1,0x0,0x0,0x1,0x1));let _0x2fb20d=_0xeab5b1&&_0xeab5b1['getImageData'](0x0,0x0,0x1,0x1)['data'],_0x1abe28=!0x1;return _0x2fb20d&&(_0x1abe28=_0x2fb20d[0x0]===att&&_0x2fb20d[0x1]===ctt&&_0x2fb20d[0x2]===ltt&&_0x2fb20d[0x3]===htt),_0x4dc0dd['width']=_0x4dc0dd['height']=0x1,_0x1abe28;}catch{return console['error']('Failed\x20to\x20test\x20for\x20max\x20canvas\x20size\x20of\x20'+_0x4bdbda+'x'+_0x4f6f1d+'.'),!0x1;}};function ftt(_0x838047){return(..._0x32556c)=>new Promise(t=>{setTimeout(()=>{t(_0x838047(..._0x32556c));},0x0);});}var mtt=ftt(rtt(dtt,ott)),ptt=ftt(rtt(dtt,ott)),gtt=async(_0x1d2bf1,_0x2fedfc)=>{let t=ntt['squareSide']['find'](_0x54790a=>_0x54790a*_0x54790a>=_0x1d2bf1*_0x2fedfc),_0x567576=ntt['dimension']['find'](_0x3db73c=>_0x3db73c>=_0x1d2bf1&&_0x3db73c>=_0x2fedfc);if(!t||!_0x567576)throw new Error('Not\x20supported');let [_0x5aa88a,_0x4c51a8]=await Promise['all']([mtt(t,t),ptt(_0x567576,0x1)]);if(_0x5aa88a&&_0x4c51a8)return!0x0;throw new Error('Not\x20supported');},Ott=async(_0x4f4879,_0x4dcaf6,t)=>{try{let {ctx:_0x22b939,canvas:_0x21eeb1}=J9();return _0x21eeb1['width']=_0x4dcaf6,_0x21eeb1['height']=t,_0x22b939['imageSmoothingQuality']='high',_0x22b939['drawImage'](_0x4f4879,0x0,0x0,_0x4dcaf6,t),_0x4f4879 instanceof HTMLImageElement&&(_0x4f4879['src']='//:0'),_0x4f4879 instanceof HTMLCanvasElement&&(_0x4f4879['width']=_0x4f4879['height']=0x1),_0x21eeb1;}catch(_0x34b7a3){throw new Error('Canvas\x20resize\x20error',{'cause':_0x34b7a3});}},wtt=({img:_0x48a8dd,sourceW:_0x4a39e8,targetW:t,targetH:_0x4a8530,step:_0xdf8488})=>{let _0x41a181=function({sourceW:_0x599733,targetW:_0x507814,targetH:t,step:_0x2d264b}){let _0x117f9c=[],_0x166383=_0x507814,_0x493c86=t;do{_0x117f9c['push']([_0x166383,_0x493c86]),_0x166383=Math['round'](_0x166383/_0x2d264b),_0x493c86=Math['round'](_0x493c86/_0x2d264b);}while(_0x166383<_0x599733*_0x2d264b);return _0x117f9c['reverse']();}({'sourceW':_0x4a39e8,'targetW':t,'targetH':_0x4a8530,'step':_0xdf8488});return _0x41a181['reduce']((_0x30c477,[_0x6cf602,_0x3d1c0b],_0x417cef)=>_0x30c477['then'](_0x28469b=>gtt(_0x6cf602,_0x3d1c0b)['then'](()=>Ott(_0x28469b,_0x6cf602,_0x3d1c0b))['catch'](()=>{if(_0x417cef===_0x41a181['length']-0x1)throw new Error('Not\x20supported');return _0x28469b;})),Promise['resolve'](_0x48a8dd));},btt=navigator['maxTouchPoints']&&navigator['maxTouchPoints']>0x2&&/MacIntel/['test'](navigator['platform']),ytt=0.71,vtt=(_0x4de8b8,_0x4c8ed7)=>{if(_0x4de8b8['width']*ytt*_0x4de8b8['height']*ytt<_0x4c8ed7['size'])throw new Error('Not\x20required');let t=_0x4de8b8['width'],_0x41a5b5=t/_0x4de8b8['height'],_0x4f89c8=Math['floor'](Math['sqrt'](_0x4c8ed7['size']*_0x41a5b5)),_0x5221d0=Math['floor'](_0x4c8ed7['size']/Math['sqrt'](_0x4c8ed7['size']*_0x41a5b5));return gtt(_0x4f89c8,_0x5221d0)['then'](()=>{let {ctx:_0x3c4f0d}=J9();return!('imageSmoothingQuality'in _0x3c4f0d)||/iPad|iPhone|iPod/['test'](navigator['platform'])||navigator['maxTouchPoints']&&navigator['maxTouchPoints']>0x2&&/MacIntel/['test'](navigator['platform'])||btt?wtt({'img':_0x4de8b8,'sourceW':t,'targetW':_0x4f89c8,'targetH':_0x5221d0,'step':ytt}):(({img:_0x37a901,targetW:_0x1c9f57,targetH:t})=>Ott(_0x37a901,_0x1c9f57,t))({'img':_0x4de8b8,'targetW':_0x4f89c8,'targetH':_0x5221d0});})['catch'](()=>Promise['reject']('Not\x20supported'));},_tt=async(_0x2ba10a,_0x1ed67a)=>{try{if(await(async _0x538c81=>{let _0x1daf3e=!0x1,{promiseReadJpegChunks:t,stack:_0x409ef0}=W9();return await t(_0x538c81)['then'](()=>(_0x409ef0['forEach'](({marker:_0x3ace12,view:_0x3cb298})=>{if(!_0x1daf3e&&stt['indexOf'](_0x3ace12)>=0x0){let _0x291e28=_0x3cb298['getUint8'](0x5);itt['indexOf'](_0x291e28)<0x0&&(_0x1daf3e=!0x0);}}),_0x1daf3e))['catch'](()=>_0x1daf3e);})(_0x2ba10a))throw new Error('Should\x20skipped');let _0x130615=await Promise['allSettled']([ttt(_0x2ba10a),new Promise(_0x2b7c81=>{if(void 0x0!==G9)_0x2b7c81(G9);else{let _0x112d4e=new Image();_0x112d4e['addEventListener']('load',()=>{G9=_0x112d4e['naturalWidth']<_0x112d4e['naturalHeight'],_0x112d4e['src']='//:0',_0x2b7c81(G9);}),_0x112d4e['src']='data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QA6RXhpZgAATU0AKgAAAAgAAwESAAMAAAABAAYAAAEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////wAALCAABAAIBASIA/8QAJgABAAAAAAAAAAAAAAAAAAAAAxABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQAAPwBH/9k=';}}),z9(_0x2ba10a)]),_0x3590c3=!_0x130615['some'](_0x39d30d=>'rejected'===_0x39d30d['status']),[_0x16c8cc,_0x3cd508,_0x234508]=_0x130615,_0x459e48=await(async _0x9c3f02=>{try{return await K9(_0x9c3f02,[]);}catch(_0x215d62){throw new Error('Failed\x20to\x20strip\x20ICC\x20profile:\x20'+_0x215d62);}})(_0x2ba10a)['catch'](()=>_0x2ba10a),_0x4470e3=await ett(URL['createObjectURL'](_0x459e48));URL['revokeObjectURL'](_0x4470e3['src']);let _0x1f4fb0=await vtt(_0x4470e3,_0x1ed67a),_0x207b29='image/jpeg',_0x9e02d6=_0x1ed67a?.['quality']||0.8;!_0x3590c3&&(_0xd9e39f=>{let {ctx:t,canvas:_0xac68a7}=J9();_0xac68a7['width']=_0xac68a7['height']=0x32,t['drawImage'](_0xd9e39f,0x0,0x0,0x32,0x32);let _0x5f4328=t['getImageData'](0x0,0x0,0x32,0x32)['data'];_0xac68a7['width']=_0xac68a7['height']=0x1;for(let _0x1a0611=0x3;_0x1a0611<_0x5f4328['length'];_0x1a0611+=0x4)if(_0x5f4328[_0x1a0611]<0xfe)return!0x0;return!0x1;})(_0x1f4fb0)&&(_0x207b29='image/png',_0x9e02d6=void 0x0);let _0x1fdfac=await((_0x3f0e73,_0x57c32b,t)=>new Promise((_0x36a618,_0x3d434b)=>{_0x3f0e73['toBlob'](_0x5426e1=>{_0x5426e1?_0x36a618(_0x5426e1):_0x3d434b('Failed\x20to\x20convert\x20canvas\x20to\x20blob');},_0x57c32b,t),_0x3f0e73['width']=_0x3f0e73['height']=0x1;}))(_0x1f4fb0,_0x207b29,_0x9e02d6);if(_0x3590c3&&'fulfilled'===_0x16c8cc['status']&&_0x16c8cc['value']){let _0xfe6d0f=_0x16c8cc['value'],_0x2452da='fulfilled'===_0x3cd508['status']&&_0x3cd508['value'];_0x1fdfac=await(async(_0x259f84,_0xf95679,t)=>(t&&((_0x5a4eec,_0x1ccda9)=>{((_0x966f58,_0x50d2a9)=>{let t,_0x9d25a5,_0x1d9d36,_0x19c6e0;if(_0x966f58&&!(_0x966f58['byteLength']<0xe)&&0x45786966===_0x966f58['getUint32'](0x0)&&0x0===_0x966f58['getUint16'](0x4)){if(0x4949===_0x966f58['getUint16'](0x6))_0x9d25a5=!0x0;else{if(0x4d4d!==_0x966f58['getUint16'](0x6))return;_0x9d25a5=!0x1;}if(0x2a===_0x966f58['getUint16'](0x8,_0x9d25a5))for(_0x1d9d36=0x8+_0x966f58['getUint32'](0xa,_0x9d25a5),t=0x0,_0x19c6e0=_0x966f58['getUint16'](_0x1d9d36-0x2,_0x9d25a5);_0x19c6e0>=0x0?t<_0x19c6e0:t>_0x19c6e0;_0x19c6e0>=0x0?++t:--t){if(_0x966f58['byteLength']<_0x1d9d36+0xa)return;0x112===_0x966f58['getUint16'](_0x1d9d36,_0x9d25a5)&&_0x50d2a9(_0x1d9d36+0x8,_0x9d25a5),_0x1d9d36+=0xc;}}})(_0x5a4eec,(t,_0x4585ce)=>_0x5a4eec['setUint16'](t,_0x1ccda9,_0x4585ce));})(_0xf95679,0x1),Y9(_0x259f84,0xe1,[_0xf95679['buffer']])))(_0x1fdfac,_0xfe6d0f,_0x2452da);}return _0x3590c3&&'fulfilled'===_0x234508['status']&&_0x234508['value']['length']>0x0&&(_0x1fdfac=await K9(_0x1fdfac,_0x234508['value'])),_0x1fdfac;}catch(_0x4a52d5){let _0xb0c7be;throw _0x4a52d5 instanceof Error&&(_0xb0c7be=_0x4a52d5['message']),'string'==typeof _0x4a52d5&&(_0xb0c7be=_0x4a52d5),new Error('Failed\x20to\x20shrink\x20image.\x20'+(_0xb0c7be?'Message:\x20\x22'+_0xb0c7be+'\x22.':''),{'cause':_0x4a52d5});}},Ett=/^([0-9]+)x([0-9]+)(?:\s+(\d{1,2}|100)%)?$/i,Ttt={'id':'image-shrink','setup'({pluginApi:_0xa27ac6}){_0xa27ac6['registry']['registerFileHook']({'type':'beforeUpload','handler':async({file:_0x4e282b})=>{let t=_0xa27ac6['config']['get']('imageShrink');if(!t)return{'file':_0x4e282b};let _0x44c313=(_0x464178=>{if('string'!=typeof _0x464178)return!0x1;let _0x1d451a=Ett['exec'](_0x464178['toLocaleLowerCase']())??[];if(0x0===_0x1d451a['length'])return!0x1;let t=Number(_0x1d451a[0x1])*Number(_0x1d451a[0x2]),_0xb9fd29=0x10000000;return t>_0xb9fd29?(console['warn']('Shrinked\x20size\x20can\x20not\x20be\x20larger\x20than\x20'+Math['floor'](268.435456)+'MP.\x20You\x20have\x20set\x20'+_0x1d451a[0x1]+'x'+_0x1d451a[0x2]+'\x20('+Math['ceil'](t/0x3e8/0x64)/0xa+'MP).'),!0x1):{'quality':_0x1d451a[0x3]?Number(_0x1d451a[0x3])/0x64:void 0x0,'size':t};})(t);if(!_0x44c313)return console['warn']('[ImageShrinkPlugin]\x20Image\x20shrink\x20settings\x20are\x20invalid,\x20skipping\x20shrinking'),{'file':_0x4e282b};try{return{'file':await _tt(_0x4e282b,_0x44c313)};}catch{return{'file':_0x4e282b};}}});}},Att={'id':'instagram','setup'({pluginApi:_0x3da7d2}){_0x3da7d2['registry']['registerSource']({'id':'instagram','label':'src-type-instagram','icon':'instagram','expand':()=>(console['error']('Instagram\x20source\x20was\x20removed\x20because\x20the\x20Instagram\x20Basic\x20Display\x20API\x20hasn\x27t\x20been\x20available\x20since\x20December\x204,\x202024.\x20Official\x20statement,\x20see\x20here:\x20https://developers.facebook.com/blog/post/2024/09/04/update-on-instagram-basic-display-api/?locale=en_US'),[]),'onSelect':()=>{}});}},Stt={'id':D6['LOCAL'],'setup':({pluginApi:_0x4e648c,uploaderApi:_0x423a82})=>{_0x4e648c['registry']['registerSource']({'id':D6['LOCAL'],'label':'src-type-local','icon':'local','onSelect':()=>{_0x423a82['openSystemDialog']();}});}},Itt={'id':'url-source','setup':async({pluginApi:_0x1a246e,uploaderApi:_0x8bf971})=>{i5({'UrlSource':I9}),_0x1a246e['registry']['registerActivity']({'id':l4['URL'],'render':t=>{let _0xe483ed=document['createElement']('uc-url-source');return t['append'](_0xe483ed),()=>{t['replaceChildren']();};}}),_0x1a246e['registry']['registerSource']({'id':'url','label':'src-type-from-url','icon':'url','onSelect':()=>{_0x8bf971['setCurrentActivity'](l4['URL']),_0x8bf971['setModalState'](!0x0);}});}},ktt=[{'configDeps':['useCloudImageEditor'],'isEnabled':_0x572ded=>!!_0x572ded('useCloudImageEditor'),'load':()=>X9},{'configDeps':['imageShrink'],'isEnabled':_0x4825c3=>!!_0x4825c3('imageShrink'),'load':()=>Ttt},{'configDeps':['sourceList'],'isEnabled':_0x27bc43=>u5(_0x27bc43('sourceList'))['includes'](D6['LOCAL']),'load':()=>Stt},{'configDeps':['sourceList'],'isEnabled':_0x4251af=>u5(_0x4251af('sourceList'))['includes'](D6['CAMERA']),'load':()=>F9},{'configDeps':['sourceList'],'isEnabled':_0x4770be=>u5(_0x4770be('sourceList'))['includes']('instagram'),'load':()=>Att},{'configDeps':['sourceList'],'isEnabled':_0x476bb5=>Object['values'](L6)['some'](_0x470a93=>u5(_0x476bb5('sourceList'))['includes'](_0x470a93)),'load':()=>q9},{'configDeps':['sourceList'],'isEnabled':_0x167979=>u5(_0x167979('sourceList'))['includes'](D6['URL']),'load':()=>Itt}],xtt=class extends c6{constructor(){super(),this['headless']=!0x1,this['init$']={...this['init$']};}static{this['lazyPlugins']=ktt;}static{this['styleAttrs']=[...super['styleAttrs'],'uc-file-uploader-regular'];}initCallback(){super['initCallback'](),this['telemetryManager']['sendEvent']({'eventType':j4['INIT_SOLUTION']});}['render'](){return O2` ${super['render']()}<uc-simple-btn ?hidden=${this['headless']}></uc-simple-btn><uc-modal id="start-from" strokes block-body-scrolling><uc-start-from><uc-drop-area with-icon clickable></uc-drop-area><uc-source-list role="list" wrap></uc-source-list><button type="button" class="uc-secondary-btn" @click=${this['$']['*historyBack']}>${this['l10n']('start-from-cancel')}</button><uc-copyright></uc-copyright></uc-start-from></uc-modal><uc-modal id="upload-list" strokes block-body-scrolling><uc-upload-list></uc-upload-list></uc-modal><uc-plugin-activity-renderer mode="modal"></uc-plugin-activity-renderer>`;}};_1([q2({'type':Boolean})],xtt['prototype'],'headless',0x2);var Ctt=class extends c6{constructor(){super(),this['Tc']=!0x1,this['Ee']=()=>{if(this['Ec']){let t=this['$']['*historyBack'];return void t?.();}this['xc']&&(this['$']['*currentActivity']=h7['activities']['UPLOAD_LIST']);},this['init$']={...this['init$']};}static{this['lazyPlugins']=ktt;}static{this['styleAttrs']=[...super['styleAttrs'],'uc-file-uploader-inline'];}get['Ec'](){let t=this['$']['*history'];return!(!t||t['length']<=0x1)&&t[t['length']-0x1]!==h7['activities']['START_FROM'];}get['xc'](){let t=this['$']['*uploadList'];return this['cfg']['showEmptyList']||Array['isArray'](t)&&t['length']>0x0;}['Hs'](){return this['getCssData']('--cfg-init-activity')||h7['activities']['START_FROM'];}initCallback(){super['initCallback'](),this['telemetryManager']['sendEvent']({'eventType':j4['INIT_SOLUTION']});let t=this['Hs']();this['sub']('*currentActivity',_0x29bf46=>{_0x29bf46||(this['$']['*currentActivity']=t);}),this['sub']('*uploadList',_0xe0306f=>{Array['isArray'](_0xe0306f)&&_0xe0306f['length']>0x0&&this['$']['*currentActivity']===t&&(this['$']['*currentActivity']=h7['activities']['UPLOAD_LIST']);}),this['sub']('*history',()=>{this['Tc']=this['Ec']||this['xc'];});}['render'](){return O2` ${super['render']()}<uc-start-from><uc-drop-area with-icon clickable></uc-drop-area><uc-source-list role="list" wrap></uc-source-list><button type="button" class="uc-cancel-btn uc-secondary-btn" @click=${this['Ee']} ?hidden=${!this['Tc']} >${this['l10n']('start-from-cancel')}</button><uc-copyright></uc-copyright></uc-start-from><uc-upload-list></uc-upload-list><uc-plugin-activity-renderer mode="inline"></uc-plugin-activity-renderer>`;}};_1([W2()],Ctt['prototype'],'Tc',0x2);var Rtt='active',Ptt=class extends c6{constructor(){super(),this['Ks']=!0x1,this['Vr']=!0x1,this['_r']='',this['js']='',this['ui']='choose-file',this['si']=t=>{t['id']===h7['activities']['CLOUD_IMG_EDIT']&&(this['_r']=Rtt),this['$']['*currentActivity']===h7['activities']['UPLOAD_LIST']&&(this['_r']=Rtt,this['Vr']=!0x0);let _0x40ade4=this['$']['*uploadList'];(!_0x40ade4||_0x40ade4['length']<=0x0)&&(this['js']=Rtt);},this['ni']=t=>{t['id']===this['$']['*currentActivity']&&(this['$']['*currentActivity']=h7['activities']['UPLOAD_LIST'],this['Vr']=!0x1),t['id']===h7['activities']['CLOUD_IMG_EDIT']&&(this['$']['*currentActivity']=h7['activities']['UPLOAD_LIST']);},this['init$']={...this['init$']};}static{this['lazyPlugins']=ktt;}static{this['styleAttrs']=[...super['styleAttrs'],'uc-file-uploader-minimal'];}['Hs'](){return this['getCssData']('--cfg-init-activity')||h7['activities']['START_FROM'];}initCallback(){super['initCallback'](),this['telemetryManager']['sendEvent']({'eventType':j4['INIT_SOLUTION']});let t=this['Hs']();this['sub']('*currentActivity',_0x4d9034=>{_0x4d9034===h7['activities']['UPLOAD_LIST']&&this['modalManager']?.['closeAll'](),_0x4d9034||(this['$']['*currentActivity']=t);}),this['sub']('*uploadList',_0x196513=>{Array['isArray'](_0x196513)&&_0x196513['length']>0x0?(this['$']['*currentActivity']=h7['activities']['UPLOAD_LIST'],this['js']=''):(this['_r']='',this['Vr']=!0x1,this['$']['*currentActivity']=t);}),this['subConfigValue']('confirmUpload',_0x1240c9=>{!0x1!==_0x1240c9&&(this['cfg']['confirmUpload']=!0x1);}),this['subConfigValue']('filesViewMode',_0x58aa52=>{this['setAttribute']('mode',_0x58aa52),this['subConfigValue']('multiple',_0x36ce75=>{'grid'===_0x58aa52?(_0x36ce75?this['style']['removeProperty']('--uc-grid-col'):this['style']['setProperty']('--uc-grid-col','1'),this['Ks']=!_0x36ce75):(this['style']['removeProperty']('--uc-grid-col'),this['Ks']=!0x1);});}),this['subConfigValue']('multiple',_0x161534=>{this['ui']=_0x161534?'choose-files':'choose-file';}),this['modalManager']?.['subscribe'](W5['OPEN'],this['si']),this['modalManager']?.['subscribe'](W5['CLOSE'],this['ni']);}disconnectedCallback(){super['disconnectedCallback'](),this['modalManager']?.['unsubscribe'](W5['OPEN'],this['si']),this['modalManager']?.['unsubscribe'](W5['CLOSE'],this['ni']);}['render'](){return O2` ${super['render']()}<uc-start-from ?hidden=${this['Vr']} class=${this['js']}><uc-drop-area ?single=${this['Ks']} initflow clickable tabindex="0" ><span>${this['l10n'](this['ui'])}</span></uc-drop-area><uc-copyright></uc-copyright></uc-start-from><uc-upload-list class=${this['_r']}></uc-upload-list><uc-modal id="start-from" strokes block-body-scrolling><uc-start-from><uc-drop-area with-icon clickable></uc-drop-area><uc-source-list role="list" wrap></uc-source-list><button type="button" class="uc-secondary-btn" @click=${this['$']['*historyBack']} >${this['l10n']('start-from-cancel')}</button></uc-start-from></uc-modal><uc-plugin-activity-renderer mode="modal"></uc-plugin-activity-renderer>`;}};_1([W2()],Ptt['prototype'],'Ks',0x2),_1([W2()],Ptt['prototype'],'Vr',0x2),_1([W2()],Ptt['prototype'],'_r',0x2),_1([W2()],Ptt['prototype'],'js',0x2),_1([W2()],Ptt['prototype'],'ui',0x2);var Ntt=class extends _0x11fe30{static get requires(){return[O1,t0];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x35e26e){super(_0x35e26e),_0x35e26e['config']['define']('uploadcare.uploader.sourceList',['local','url']),i5(w1),this['_defineLocale']();}['_defineLocale'](){const _0x58b1a7=this['editor']['config']['get']('uploadcare.locale'),_0xb52583=this['editor']['locale']['contentLanguage'];_0x58b1a7&&l5(_0xb52583,_0x58b1a7);}},Mtt=class extends _0x2f6e1a{constructor(_0x344d58){super(_0x344d58);const t=_0x344d58['t'],_0x209d74=this['bindTemplate'],_0x1ddc70=new _0x4d4034();_0x1ddc70['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x1ddc70,{'text':_0x209d74['to']('imageUploadProgress',_0x46afc6=>t('Loading\x20image...')+'\x20('+(_0x46afc6||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}},Ltt=class extends _0x2f6e1a{constructor(_0xa17988){super(_0xa17988);const t=_0xa17988['t'];this['set']('errorType',null);const _0x17ffd0=new _0x39ae99(_0xa17988);_0x17ffd0['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x17ffd0['withText']=!0x0,_0x17ffd0['class']='ck-button-action',_0x17ffd0['on']('execute',()=>{this['fire']('retry');}),_0x17ffd0['bind']('isVisible')['to'](this,'errorType',_0x350e72=>'NotFound'!==_0x350e72);const _0x2822e6=new _0x5d1800();_0x2822e6['content']=_0x400451,_0x2822e6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3462c4=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x2822e6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3462c4['to']('errorType',_0x3f8595=>t('NotFound'!==_0x3f8595?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x17ffd0]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}},$tt=class extends _0x2f6e1a{constructor(_0x19cdc,_0x440c3f){super(_0x19cdc);const _0x19c7f3=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x440c3f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x19c7f3['to']('imageSrc')}});}},Dtt=class extends e0{_items;['_loadingView'];['_errorView'];_editingView;['_focusableView'];constructor(_0x28e64d,_0x1e7aa2,_0x5a6f76){super(_0x28e64d),this['_items']=this['createCollection'](),this['_loadingView']=new Mtt(_0x28e64d),this['_errorView']=new Ltt(_0x28e64d),this['_editingView']=new $tt(_0x28e64d,_0x5a6f76),this['_focusableView']=new _0x2f6e1a(_0x28e64d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1e7aa2),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x1ac82a=>{this['_addUploadcareImageEditorListeners'](_0x1ac82a);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}_setView(){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}_waitForImageEditorComponent(_0x47b1ed,_0x42e44f){const _0x478128='uc-cloud-image-editor',_0x5cbc82=_0x47b1ed['querySelector'](_0x478128);if(_0x5cbc82)return _0x42e44f(_0x5cbc82);const _0x138af6=new MutationObserver(_0x115be9=>{const _0x2c9767=_0x115be9['filter'](_0x209309=>_0x209309['target']===_0x47b1ed&&_0x209309['addedNodes']['length']>0x0&&_0x209309['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x478128);_0x2c9767['length']&&(_0x138af6['disconnect'](),_0x42e44f(_0x2c9767[0x0]['addedNodes'][0x0]));});_0x138af6['observe'](_0x47b1ed,{'childList':!0x0,'subtree':!0x0});}_addUploadcareImageEditorListeners(_0x63b3c1){_0x63b3c1['addEventListener']('apply',_0x36e6db=>{this['fire']('apply',{'imageSrc':_0x36e6db['detail']['cdnUrl']});}),_0x63b3c1['addEventListener']('cancel',()=>{this['fire']('cancel');});}_addErrorViewListeners(){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}};const Qtt=/* #__PURE__ -- @preserve */
_0x356c1e();var jtt=class extends Qtt{_editor;['_dialog'];_imageElement;['_imageCache'];_controller;_attributes;constructor(_0x466520,_0x26982b,_0x4e4e35){super(),this['_editor']=_0x466520,this['_dialog']=_0x26982b,this['_imageElement']=_0x4e4e35,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}destroy(){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x1b0884=this['_imageElement'],_0x4bc31d=_0x1b0884['getAttribute']('uploadcareImageId'),_0xc67a4=_0x1b0884['getAttribute']('src');if(_0x4bc31d)await this['_loadImageInfo'](_0x4bc31d,_0xc67a4);else{if(this['_imageCache']['has'](_0xc67a4)){const _0x50a9f8=this['_imageCache']['get'](_0xc67a4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x50a9f8['url'],this['imageDimension']=_0x50a9f8['dimension'],this['imageId']=_0x50a9f8['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2a89a1}=this['_editor'],t=_0x2a89a1['t'],_0x11822f=new Dtt(_0x2a89a1,this['imageStatus'],this['_attributes']);_0x11822f['bind']('status')['to'](this,'imageStatus'),_0x11822f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x11822f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x11822f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x11822f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x146b08,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x11822f,'position':_0x3846ff['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x11822f['focus']();},'onHide':()=>{_0x11822f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x518229=>!a0(_0x518229,_0x11822f['element'])}});}['_loadImageInfo'](_0x234d99,_0x1a24e3){return m1['getInfo'](_0x234d99,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1732ea=>{const {width:_0x5143e9,height:_0x5ea043}=_0x1732ea['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1a24e3,this['imageDimension']={'width':_0x5143e9,'height':_0x5ea043},this['imageId']=_0x234d99;})['catch'](_0x2179c8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2179c8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x35f788,_0x8de354){return this['_getImageAsFile'](_0x35f788)['then'](_0x565780=>m1['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x8de354['signal'],'file':_0x565780,'onProgress':_0x5ea003=>{_0x5ea003&&_0x5ea003['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5ea003['value']));}}))['then'](_0x3901cf=>{const {width:_0x36ad38,height:_0x23e9d9}=_0x3901cf['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3901cf['cdnUrl'],this['imageDimension']={'width':_0x36ad38,'height':_0x23e9d9},this['imageId']=_0x3901cf['uuid'],this['imageUploadProgress']=null;const _0x34f412=_0x35f788['getAttribute']('src');this['_imageCache']['set'](_0x34f412,{'id':_0x3901cf['uuid'],'url':_0x3901cf['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x568fdc=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x568fdc['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}_addEditViewListeners(_0x3a25fe,_0x369ae4){_0x3a25fe['on']('apply',(_0x585709,_0x53cfe8)=>{this['_replaceImage'](_0x369ae4,_0x53cfe8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3a25fe['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3a25fe['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5b9cba,_0x13d86f,_0x96607c){const _0x2e5a80=this['_editor'],{width:_0xf230df,height:_0x3202ea}=n0(_0x13d86f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x24f8e7,imageSources:_0x51e329}=s0(_0x13d86f,_0xf230df);_0x2e5a80['model']['change'](_0x250246=>{if('$graveyard'!==_0x5b9cba['root']['rootName'])_0x250246['setSelection'](_0x5b9cba,'on'),_0x2e5a80['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5b9cba['getAttributes']()),'uploadcareImageId':_0x96607c,'src':_0x24f8e7,'sources':_0x51e329,'width':_0xf230df,'height':_0x3202ea},_0x5b9cba);else{_0x2e5a80['execute']('insertImage',{'imageType':_0x5b9cba['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5b9cba['getAttributes']()),'uploadcareImageId':_0x96607c,'src':_0x24f8e7,'sources':_0x51e329,'width':_0xf230df,'height':_0x3202ea}});const _0xa58616=_0x5b9cba['getChildren']();_0x5b9cba=_0x2e5a80['model']['document']['selection']['getSelectedElement']();for(const _0x8d2b4c of _0xa58616)_0x250246['append'](_0x250246['cloneElement'](_0x8d2b4c),_0x5b9cba);}_0x250246['setSelection'](_0x5b9cba,'on');});}async _getImageAsFile(_0x19aa98){const _0x5bc520=_0x250afe['window'],_0x186da3=_0x250afe['document']['location']['href'],_0x5047cb=new _0x5bc520['URL'](_0x19aa98['getAttribute']('src'),_0x186da3);if('data:'===_0x5047cb['protocol']){const _0x19a3b1=_0x5047cb['href']['split'](','),_0x121868=_0x19a3b1[0x0]['match'](/:(.*?);/)[0x1],_0x541ac4=_0x121868['split']('/')[0x1],_0x5d2f9a=_0x5bc520['atob'](_0x19a3b1[_0x19a3b1['length']-0x1]);let _0x34a81f=_0x5d2f9a['length'];const _0x1add3a=new _0x5bc520['Uint8Array'](_0x34a81f);for(;_0x34a81f--;)_0x1add3a[_0x34a81f]=_0x5d2f9a['charCodeAt'](_0x34a81f);return new _0x5bc520['File']([_0x1add3a],'image.'+_0x541ac4,{'type':_0x121868});}const _0xf72cd0=_0x5047cb['href']['split']('/'),_0x14ccf9=_0xf72cd0[_0xf72cd0['length']-0x1],_0x249ccb=_0x14ccf9['split']('.')[0x1];return _0x5bc520['fetch'](_0x5047cb['href'])['then'](_0x25c858=>_0x25c858['clone']()['blob']())['then'](_0x1d7f87=>new _0x5bc520['File']([_0x1d7f87],_0x14ccf9,{'type':'image/'+_0x249ccb}));}},Utt=class extends _0x44d8e7{imageEditController;static get requires(){return[_0x3e3ae5];}_isEditable;constructor(_0x5db8f9){super(_0x5db8f9),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x44e1a3){const _0x35999c=o0(_0x44e1a3);return _0x1bea3d=>!(!_0x1bea3d||!_0x1bea3d['is']('element','imageBlock')&&!_0x1bea3d['is']('element','imageInline'))&&(!!_0x1bea3d['hasAttribute']('uploadcareImageId')||!!_0x1bea3d['hasAttribute']('src')&&_0x35999c(_0x1bea3d['getAttribute']('src')));}(_0x5db8f9['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x23a85e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x23a85e);}execute(){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2be8cc=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2be8cc&&(_0x2be8cc['is']('element','imageBlock')||_0x2be8cc['is']('element','imageInline'))&&(this['imageEditController']=new jtt(this['editor'],this['editor']['plugins']['get'](_0x3e3ae5),_0x2be8cc),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}},Vtt=class extends _0x44d8e7{['refresh'](){const _0x5eac10=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5eac10&&(_0x5eac10['is']('element','imageBlock')||_0x5eac10['is']('element','imageInline')));}execute(_0x5e1daf){const _0x44cc91=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1dc9ce=>{_0x1dc9ce['setAttributes'](_0x5e1daf,_0x44cc91),_0x1dc9ce['removeAttribute']('srcset',_0x44cc91),_0x1dc9ce['removeAttribute']('sizes',_0x44cc91);});}},Btt=class extends _0x11fe30{static get['pluginName'](){return'UploadcareImageEditEditing';}static get requires(){return[O1,_0x362622,_0x54720c,_0x3d4317];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x1a25f7}=this;_0x1a25f7['commands']['add']('uploadcareImageEdit',new Utt(_0x1a25f7)),_0x1a25f7['commands']['add']('uploadcareImageReplace',new Vtt(_0x1a25f7));}},Htt=class extends _0x11fe30{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}init(){const _0x381bb9=this['editor'];_0x381bb9['ui']['componentFactory']['add']('uploadcareImageEdit',_0x44f0cd=>{const _0x3c294f=_0x381bb9['commands']['get']('uploadcareImageEdit'),_0x3a8ead=new _0x39ae99(_0x44f0cd),t=_0x44f0cd['t'];return _0x3a8ead['set']({'icon':_0x146b08,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3a8ead['bind']('isEnabled')['to'](_0x3c294f),_0x3a8ead['bind']('isOn')['to'](_0x3c294f,'isActive'),this['listenTo'](_0x3a8ead,'execute',()=>{_0x381bb9['execute']('uploadcareImageEdit'),_0x381bb9['editing']['view']['focus']();}),_0x3a8ead;}),this['_initConfig']();}_initConfig(){const _0x5618c3=_0x2a0f20(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5618c3),this['listenTo'](this['editor'],'destroy',()=>{_0x5618c3['remove']();});}},Ftt=class extends _0x11fe30{static get['pluginName'](){return'UploadcareImageEdit';}static get requires(){return[Btt,Htt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{dy as AIActions,rr as AIAdapter,Fo as AIAssistant,Vo as AIAssistantUI,Db as AIBalloon,Ib as AIChat,Hg as AIChatController,aw as AIChatFeedCustomElementView,Sb as AIChatHistory,Ab as AIChatHistoryController,yb as AIChatHistoryUI,Dg as AIChatInteraction,Rb as AIChatShortcuts,fb as AIChatUI,Cy as AICheckRunSingleRootResult,oa as AIConnector,Ng as AIContext,da as AIContextLibrary,fa as AICore,wg as AICoreError,gg as AIDocumentProcessingGateway,mg as AIDocumentProcessingRunResult,_l as AIEditing,Bb as AIEditorIntegration,yg as AIErrorReporter,bg as AIErrorSink,cg as AIGateway,Cg as AIInteraction,ha as AIModels,fy as AIQuickActions,ty as AIQuickActionsUI,Ig as AIReply,or as AIRequestError,Fy as AIReviewCheck,$y as AIReviewCheckResult,Qy as AIReviewCheckResultChange,Uy as AIReviewCheckRun,ev as AIReviewGateway,iv as AIReviewMode,By as AIReviewModeController,My as AIReviewModeEditing,xy as AIReviewModeUI,pg as AIRunResult,fg as AIRunSingleRootResult,ea as AITabs,ta as AITabsMainView,Yo as AITabsView,Go as AITextAdapter,Nb as AIToggleButtonUI,fv as AITranslate,cv as AITranslateController,dv as AITranslateGateway,uv as AITranslateUI,qo as AWSTextAdapter,cR as AcceptSuggestionCommand,r_ as AddCommentThreadCommand,Zv as Annotation,Xv as AnnotationCollection,I_ as AnnotationCounterButtonView,Hv as AnnotationView,zv as Annotations,__ as AnnotationsSidebarItemView,y_ as AnnotationsSidebarView,w_ as AnnotationsUIs,Rl as AriaDescriptionView,Lv as BaseCommentThreadView,jv as BaseCommentView,dN as BaseSuggestionThreadView,bv as CaseChange,mv as CaseChangeCommand,gv as CaseChangeEditing,wv as CaseChangeUI,SN as CloudServicesCommentsAdapter,AM as CloudServicesRevisionHistoryAdapter,CN as CloudServicesTrackChangesAdapter,kl as CollaborationUserColor,s_ as Comment,i_ as CommentThread,vv as CommentThreadController,xv as CommentThreadInputView,Dv as CommentThreadView,Vv as CommentView,M_ as Comments,P_ as CommentsArchive,N_ as CommentsArchiveUI,d_ as CommentsEditing,Rv as CommentsListView,O_ as CommentsOnly,e_ as CommentsRepository,g_ as CommentsUI,Mm as ConfirmMixin,KT as CopyFormatCommand,pp as DATA_ID_MODEL_ATTRIBUTE,gp as DATA_ID_VIEW_ATTRIBUTE,lR as DiscardSuggestionCommand,Op as DocumentCompare,wp as DocumentDiff,B_ as DocumentOutline,U_ as DocumentOutlineUI,$_ as DocumentOutlineUtils,jJ as EditSourceCommand,o_ as EditorAnnotations,BE as EmailConfigurationHelper,z_ as EmailConfigurationLogger,CE as EmptyBlockEmailIntegration,gR as ExecuteOnAllSuggestionsCommand,OR as ExecuteOnSelectedSuggestionsCommand,mE as ExportInlineStyles,uE as ExportInlineStylesCommand,fE as ExportInlineStylesEditing,IE as ExportInlineStylesEmailIntegration,rT as ExportPdf,eT as ExportPdfCommand,dT as ExportWord,hT as ExportWordCommand,Xm as FOCUS_ANNOTATION_KEYSTROKE,RE as FontEmailIntegration,PT as Footnotes,IT as FootnotesClipboard,bT as FootnotesEditing,qT as FootnotesProperties,HT as FootnotesPropertiesEditing,XT as FootnotesPropertiesUI,DT as FootnotesStartCommand,$T as FootnotesStyleCommand,mT as FootnotesTracker,CT as FootnotesUI,nA as FormatPainter,tA as FormatPainterEditing,sA as FormatPainterUI,ME as GeneralHtmlIntegrationSupport,F_ as HeadingId,tE as HighlightEmailIntegration,AE as ImageEmailIntegration,lA as ImportWord,aA as ImportWordCommand,cA as ImportWordEditing,oA as ImportWordUI,x_ as InlineAnnotations,wT as InsertFootnoteCommand,kA as InsertMergeFieldBlockCommand,IA as InsertMergeFieldCommand,xA as InsertMergeFieldImageCommand,Pl as LateFocusButtonView,Nl as LateFocusDropdownButtonView,OA as LineHeight,hA as LineHeightCommand,pA as LineHeightEditing,mA as LineHeightTodoListIntegration,gA as LineHeightUI,VE as LinkEmailIntegration,kE as ListEmailIntegration,NE as MarkdownEmailIntegration,SE as MathTypeEmailIntegration,QE as MediaEmbedEmailIntegration,VA as MergeFields,PA as MergeFieldsEditing,LE as MergeFieldsEmailIntegration,$A as MergeFieldsUI,SA as MultiLevelList,wA as MultiLevelListCommand,bA as MultiLevelListEditing,UE as MultiLevelListEmailIntegration,AA as MultiLevelListUI,k_ as NarrowSidebar,Xo as OpenAITextAdapter,fS as Pagination,cS as PaginationRenderer,JT as PasteFormatCommand,NS as PasteFromOfficeEnhanced,El as Permissions,Cl as PillView,QM as PresenceList,DM as PresenceListUI,TN as PreviewFinalContentCommand,CA as PreviewMergeFieldsCommand,iR as RealTimeCollaborationClient,NN as RealTimeCollaborativeComments,oR as RealTimeCollaborativeEditing,IM as RealTimeCollaborativeRevisionHistory,MN as RealTimeCollaborativeTrackChanges,VJ as ReplaceSourceCommand,eM as RestoreRevisionCommand,$N as Revision,TM as RevisionHistory,qN as RevisionHistoryUI,QN as RevisionHistoryUtils,UN as RevisionTracker,JN as RevisionViewer,vM as RevisionViewerEditor,EM as RevisionViewerIntegration,rM as RevisionViewerLoadingOverlay,oM as RevisionViewerUI,DN as RevisionsRepository,gM as RevisionsSidebar,CC as Sessions,cr as ShowAIAssistantCommand,iM as ShowChangeCommand,E_ as Sidebar,ZM as SlashCommand,jM as SlashCommandConfig,BM as SlashCommandEditing,FM as SlashCommandUI,PE as SourceEditingEmailIntegration,BJ as SourceEditingEnhanced,bR as Suggestion,vR as SuggestionDescriptionFactory,fN as SuggestionThreadView,mN as SuggestionView,hh as SuggestionsConversion,xE as TableEmailIntegration,q_ as TableOfContents,H_ as TableOfContentsCommand,Z_ as TableOfContentsEditing,X_ as TableOfContentsUI,KJ as Template,HJ as TemplateCommand,FJ as TemplateEditing,$E as TemplateEmailIntegration,YJ as TemplateUI,jE as TodoListEmailIntegration,Pb as ToggleAICommand,ON as TrackChanges,aR as TrackChangesCommand,bN as TrackChangesData,yN as TrackChangesDataGetter,qP as TrackChangesEditing,AN as TrackChangesPreview,pN as TrackChangesUI,DE as UploadEmailIntegration,Ntt as Uploadcare,h0 as UploadcareCommand,O1 as UploadcareEditing,Ftt as UploadcareImageEdit,Utt as UploadcareImageEditCommand,Btt as UploadcareImageEditEditing,Htt as UploadcareImageEditUI,t0 as UploadcareUI,p1 as UploadcareUploadAdapter,Sl as User,xl as UserView,Al as Users,xC as WebSocketGateway,S_ as WideSidebar,qv as bindAnnotationCollections,Tg as createResizeButton,nE as dropImportantStyleSuffix,$l as fixElementSuggestionRange,Cm as getAllMarkersDomElementsSorted,km as getDateTimeFormatter,Zo as getDefaultAICommands,JE as getEmailInlineStylesTransformations,xm as getMarkerDomElement,Lm as hashObject,Vm as isInvalidAttributeOperation,J_ as isUnsupportedEmailColorFormat,K_ as isUnsupportedEmailColorValue,ag as markOperationsAsAI,Zm as sanitizeEditorConfig,qm as setupThreadKeyboardNavigation,Ll as splitSuggestionMarkerName,Gm as surroundingMarkersDetector,XE as transformEmailAlignToAttribute,WE as transformEmailColumnWidthsToCells,GE as transformEmailFigcaptionToDiv,_E as transformEmailFigureToTable,HE as transformEmailFloatToAlign,ZE as transformEmailImageWidthAttributes,FE as transformEmailMarginToAlign,Rm as trimHtml};